* config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
[official-gcc.git] / gcc / ChangeLog
blob4187dd9651fc903bec673abf109841d00ea46ec6
1 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
3         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
5 2014-10-23  Ian Lance Taylor  <iant@google.com>
7         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
9 2014-10-23  Ian Lance Taylor  <iant@google.com>
11         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't define.
13 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
15         PR debug/63623
16         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
17         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
18         instead of only handling autoinc in dest if it is a MEM.
19         (vt_stack_adjustments): Fix up formatting.
21 2014-10-23  DJ Delorie  <dj@redhat.com>
23         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
24         independend of -mlarge.
25         * config/msp430/constraints.md (Ys): Update comment.
27 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
29         PR target/63534
30         PR target/63618
31         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
32         while it is pseudo.
33         * dse.c (deletable_insn_p): Likewise.
35 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
37         * config/avr/avr.c: Fix GNU coding rules and typos.
38         * config/avr/avr.h: Dito.
39         * config/avr/avr-c.c: Dito.
40         * config/avr/avr.md: Dito.
42 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
44         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
45         New.
46         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
47         iterator.
48         (define_expand "abs<mode>2"): Ditto.
50 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
52         * tree-core.h (tree_var_decl): Extend `function_code' field
53         by one bit, move `regdecl_flag' field to ...
54         (tree_decl_with_vis): Here.
55         * tree.h (DECL_STATIC_CHAIN): Update struct name.
57 2014-10-23  Richard Biener  <rguenther@suse.de>
59         * Makefile.in (BUILD_CPPLIB): Add.
60         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
61         Drop LIBIBERTY.
63 2014-10-23  Richard Biener  <rguenther@suse.de>
65         * fold-const.c (fold_binary_loc): Preserve side-effects of
66         X - X when simplifying to 0.
67         * stor-layout.c (finish_bitfield_representative): Strip
68         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
70 2014-10-22  Richard Biener  <rguenther@suse.de>
71             Tobias Burnus <burnus@net-b.de>
73         PR lto/63603
74         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
76 2014-10-22  Dehao Chen  <dehao@google.com>
78         * auto-profile.c: Change order of header files.
80 2014-10-22  Guozhi Wei  <carrot@google.com>
82         PR tree-optimization/63530
83         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
84         pointer alignment according to DR_MISALIGNMENT.
86 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
88         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
90 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
92         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
93         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
94         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
95         * dominance.h: New.  Add prototypes for dominance.c.
96         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
97         * cfghooks.h: (struct profile_record) Relocate here.
98         Relocate 2 prototypes from basic-block.h.
99         * basic-block.h: Move prototypes and struct to new header files.
100         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
101         * rtl.h: Move a few prototypes to new header files.
102         * cfgcleanup.c (merge_memattrs): Make static.
103         * genopinit.c (main): Add predict.h to list of includes.
104         * predict.h: Update prototype list to match predict.c.
105         * predict.c (maybe_hot_count_p): Export.
106         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
107         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
108         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
109         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
110         * profile.h: Adjust prototypes.
111         * ifcvt.h: New.  Relocate struct ce_if_block here.
112         * ifcvt.c: Include ifcvt.h.
113         * config/frv/frv.c: Include ifcvt.h.
114         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
116 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
118         * lra.c (lra): Remove call to recog_init.
119         * config/i386/i386.md (preferred_for_speed): New attribute
120         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
121         "enabled".  Remove check for sched1.
123 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
125         * recog.h (recog_data_d): Remove enabled_alternatives.
126         * recog.c (extract_insn): Don't set it.
127         * reload.c (find_reloads): Call get_enabled_alternatives.
129 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
131         * recog.h (constrain_operands): Add an alternative_mask parameter.
132         (constrain_operands_cached): Likewise.
133         (get_preferred_alternatives): Declare new form.
134         * recog.c (get_preferred_alternatives): New bb-taking instance.
135         (constrain_operands): Take the set of available alternatives as
136         a parameter.
137         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
138         (extract_constrain_insn_cached): Update calls to constrain_operands.
139         * caller-save.c (reg_save_code): Likewise.
140         * ira.c (setup_prohibited_mode_move_regs): Likewise.
141         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
142         * ree.c (combine_reaching_defs): Likewise.
143         * reload.c (can_reload_into): Likewise.
144         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
145         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
146         (emit_insn_if_valid_for_reload): Likewise.
147         * reorg.c (fill_slots_from_thread): Likewise.
148         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
149         * config/pa/pa.c (pa_can_combine_p): Likewise.
150         * config/rl78/rl78.c (insn_ok_now): Likewise.
151         * config/sh/sh.md (define_peephole2): Likewise.
152         * final.c (final_scan_insn): Update call to constrain_operands_cached.
154 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
156         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
157         attributes.
158         * genattr.c (main): Handle "preferred_for_size" and
159         "preferred_for_speed" in the same way as "enabled".
160         * recog.h (bool_attr): New enum.
161         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
162         (get_preferred_alternatives, check_bool_attrs): Declare.
163         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
164         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
165         New functions.
166         (get_enabled_alternatives): Use get_bool_attr_mask.
167         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
168         instead of recog_data.enabled_alternatives.
169         * ira.c (ira_setup_alts): Likewise.
170         * postreload.c (reload_cse_simplify_operands): Likewise.
171         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
172         * ira-lives.c (preferred_alternatives): New variable.
173         (process_bb_node_lives): Set it.
174         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
175         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
176         of recog_data.enabled_alternatives.
177         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
178         to preferred_alternatives.
179         * lra-constraints.c (process_alt_operands): Update accordingly.
180         * lra.c (lra_set_insn_recog_data): Likewise.
181         (lra_update_insn_recog_data): Assert check_bool_attrs.
183 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
185         * recog.h (extract_constrain_insn): Declare.
186         * recog.c (extract_constrain_insn): New function.
187         * lra.c (check_rtl): Use it.
188         * postreload.c (reload_cse_simplify_operands): Likewise.
189         * reg-stack.c (check_asm_stack_operands): Likewise.
190         (subst_asm_stack_regs): Likewise.
191         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
192         * regrename.c (build_def_use): Likewise.
193         * sel-sched.c (get_reg_class): Likewise.
194         * config/arm/arm.c (note_invalid_constants): Likewise.
195         * config/s390/predicates.md (execute_operation): Likewise.
197 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
198             Yury Gribov  <y.gribov@samsung.com>
200         * common.opt (flag_sanitize_recover): New variable.
201         (fsanitize-recover): Remove Var/Init, deprecate.
202         (fsanitize-recover=): New option.
203         * doc/invoke.texi (fsanitize-recover): Update docs.
204         * opts.c (finish_options): Use opts->x_flag_sanitize
205         instead of flag_sanitize.  Prohibit -fsanitize-recover
206         for anything besides UBSan.  Formatting.
207         (common_handle_option): Handle OPT_fsanitize_recover_
208         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
209         instead of flag_sanitize.
210         * asan.c (pass_sanopt::execute): Fix up formatting.
211         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
212         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
213         instrument_bool_enum_load, ubsan_instrument_float_cast,
214         instrument_nonnull_arg, instrument_nonnull_return): Check
215         bits in flag_sanitize_recover bitmask instead of
216         flag_sanitize_recover as bool flag.
218 2014-10-22  Jiong Wang <jiong.wang@arm.com>
220         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
222 2014-10-22  Renlin Li <renlin.li@arm.com>
224         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
225         __ARM_FEATURE_IDIV__.
227 2014-10-22  Richard Biener  <rguenther@suse.de>
229         * Makefile.in (s-match): Adjust dependencies to only catch
230         match.pd.
232 2014-10-22  Richard Biener  <rguenther@suse.de>
233         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
235         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
236         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
237         (gimple-match.c): Generate by triggering s-match.
238         (generic-match.c): Likewise.
239         (s-match): Rule to build gimple-match.c and generic-match.c
240         by running the genmatch generator program.
241         (build/hash-table.o): Dependencies to build hash-table.c for the host.
242         (build/genmatch.o): Dependencies to build genmatch.
243         (genprog): Add match.
244         (build/genmatch): Likewise.
245         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
246         * generic-match-head.c: New file.
247         * gimple-match-head.c: Likewise.
248         * gimple-match.h: Likewise.
249         * genmatch.c: Likewise.
250         * match.pd: Likewise.
251         * builtins.h (fold_builtin_n): Export.
252         * builtins.c (fold_builtin_n): Likewise.
253         * gimple-fold.h (gimple_build): Declare various overloads.
254         (gimple_simplify): Likewise.
255         (gimple_convert): Re-implement in terms of gimple_build.
256         * gimple-fold.c (gimple_convert): Remove.
257         (gimple_build): New functions.
258         * doc/match-and-simplify.texi: New file.
259         * doc/gccint.texi: Add menu item Match and Simplify and include
260         match-and-simplify.texi.
262 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
264         PR target/63594
265         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
266         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
267         even for just TARGET_AVX2, not only for
268         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
269         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
270         otherwise build it using concatenation of 256-bit
271         broadcast.
272         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
273         avx512 broadcast patterns.
274         (vec_dup<mode>): Likewise.  For avx2 use
275         v<sseintprefix>broadcast<bcstscalarsuff> instead of
276         vbroadcast<ssescalarmodesuffix>.
277         (AVX2_VEC_DUP_MODE): New mode iterator.
278         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
279         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
281         PR target/63542
282         * config/i386/i386.c (ix86_pic_register_p): Also return
283         true if x is a hard register with ORIGINAL_REGNO equal to
284         pic_offset_table_rtx pseudo REGNO.
285         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
286         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
288 2014-10-22  Alan Modra  <amodra@gmail.com>
290         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
291         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
292         (gcc_obstack_init): Use obstack_specify_allocation in place of
293         _obstack_begin.
294         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
295         (regexp_representation): Likewise.
296         * godump.c (go_output_type): Likewise.
298 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
300         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
301         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
302         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
304 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
306         * doc/invoke.texi (pedantic-errors): Explain better.
308 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
309             Vidya Praveen <vidya.praveen@atmel.com>
310             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
311             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
312             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
314         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
315         __MEMX for avrtiny.
316         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
317         (avr_nonconst_pointer_addrspace): Likewise.
318         * config/avr/avr.h (AVR_HAVE_LPM): Define.
320         Added AVRTINY architecture to avr target.
321         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
322         (base_arch_s): member added for AVRTINY architecture.
323         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
324         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
325         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
326         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
327         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
328         in callee saved register list.
329         (avr_option_override): CCP address updated for AVRTINY.
330         (avr_init_expanders): tmp and zero rtx initialized as per arch.
331         Reset avr_have_dimode if AVRTINY.
332         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
333         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
334         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
335         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
336         (expand_epilogue): Likewise.
337         (avr_print_operand): Print CCP address in case of AVRTINY also.
338         <TBD>bad address
339         (function_arg_regno_p): Check different register list for arguments
340         if AVRTINY.
341         (init_cumulative_args): Check for AVRTINY to update number of argument
342         registers.
343         (tiny_valid_direct_memory_access_range): New function. Return false if
344         direct memory access range is not in accepted range for AVRTINY.
345         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
346         indirect load (with displacement) for AVRTINY.
347         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
348         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
349         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
350         indirect load (no displacement) for AVRTINY.
351         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
352         indirect load (with displacement) for AVRTINY.
353         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
354         indirect load for pre-decrement address.
355         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
356         functions. Update instruction length for AVRTINY.
357         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
358         SImode.
359         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
360         (out_movsi_r_mr): Likewise, for SImode.
361         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
362         indirect store (no displacement) for AVRTINY.
363         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
364         indirect store (with displacement) for AVRTINY.
365         (out_movsi_mr_r): Emit out insn for IO address store. Update store
366         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
367         store functions.
368         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
369         indirect load (no displacement) for PSImode in AVRTINY.
370         (avr_out_load_psi_reg_disp_tiny): New function to handle register
371         indirect load (with displacement) for PSImode in AVRTINY.
372         (avr_out_load_psi): Call PSImode register indirect load functions for
373         AVRTINY. Update instruction length for AVRTINY.
374         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
375         indirect store (no displacement) for PSImode in AVRTINY.
376         (avr_out_store_psi_reg_disp_tiny): New function to handle register
377         indirect store (with displacement) for PSImode in AVRTINY.
378         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
379         register indirect store functions for AVRTINY.
380         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
381         register indirect store (with displacement) for AVRTINY.
382         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
383         register indirect store function for QImode in AVRTINY.
384         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
385         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
386         indirect store (no displacement) for HImode in AVRTINY.
387         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
388         indirect store (with displacement) for HImode in AVRTINY.
389         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
390         indirect store for post-increment address in HImode.
391         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
392         register indirect store function for HImode in AVRTINY.
393         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
394         in case of AVRTINY.
395         (order_regs_for_local_alloc): Updated register allocation order for
396         AVRTINY.
397         (avr_conditional_register_usage): New function. It is a target hook
398         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
399         used registers list and register allocation order for AVRTINY.
400         (avr_return_in_memory): Update return value size for AVRTINY.
401         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
402         for AVRTINY arch and tiny program memory base address.
403         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
404         (avr_texinfo): Added description for AVRTINY arch.
405         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
406         STATIC_CHAIN_REGNUM for AVRTINY.
407         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
408         * config/avr/avr.md: Added constants for tmp/ zero registers in
409         AVRTINY. Attributes for AVRTINY added.
410         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
411         memory access range.
412         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
413         in AVRTINY memory access range.
414         (*mov<mode>): Likewise for HImode and SImode.
415         (*movsf): Likewise for SFmode.
416         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
417         not have sbiw.
418         * config/avr/avr-protos.h: Added function prototype for
419         tiny_valid_direct_memory_access_range.
420         * config/avr/avr-tables.opt: Regenerate.
421         * gcc/config/avr/t-multilib: Regenerate.
422         * doc/avr-mmcu.texi: Regenerate.
424 2014-10-21  Andrew Pinski  <apinski@cavium.com>
426         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
427         available option also.
428         * config/aarch64/aarch64-cost-tables.h: New file.
429         * config/aarch64/aarch64-cores.def (thunderx): New core.
430         * config/aarch64/aarch64-tune.md: Regenerate.
431         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
432         of config/arm/aarch-cost-tables.h.
433         (thunderx_regmove_cost): New variable.
434         (thunderx_tunings): New variable.
436 2014-10-21  Dehao Chen  <dehao@google.com>
438         * auto-profile.c: New file.
439         * auto-profile.h: New file.
440         * basic-block.h (maybe_hot_count_p): New export func.
441         (add_working_set): New export func.
442         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
443         (GCOV_TAG_AFDO_FUNCTION): Likewise.
444         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
445         * opts.c (enable_fdo_optimizations): New func.
446         (common_handle_option): Handle -fauto-profile flag.
447         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
448         (class pass_early_inline): Export early_inliner.
449         (early_inliner): Likewise.
450         (pass_early_inline::execute): Likewise.
451         * ipa-inline.h (early_inliner): Likewise.
452         * predict.c (maybe_hot_count_p): New export func.
453         (counts_to_freqs): AutoFDO logic.
454         (rebuild_frequencies): Likewise.
455         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
456         * profile.c (add_working_set): New func.
457         * Makefile.in (auto-profile.o): New object file.
458         * passes.def (pass_ipa_auto_profile): New pass.
459         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
460         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
461         * toplev.c (compile_file): AutoFDO logic.
462         * doc/invoke.texi (-fauto-profile): New doc.
463         * coverage.c (coverage_init): AutoFDO logic.
464         * common.opt (-fauto-profile): New flag.
465         * timevar.def (TV_IPA_AUTOFDO): New tag.
466         * value-prof.c (gimple_alloc_histogram_value): New export func.
467         (check_ic_target): Likewise.
468         * value-prof.h (gimple_alloc_histogram_value): Likewise.
469         (check_ic_target): Likewise.
471 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
473         * cgraph.c (cgraph_c_finalize): New function.
474         * cgraph.h (cgraph_c_finalize): New prototype.
475         (cgraphunit_c_finalize): New prototype.
476         * cgraphunit.c (first_analyzed): Move from analyze_functions
477         to file-scope.
478         (first_analyzed_var): Likewise.
479         (analyze_functions): Move static variables into file-scope.
480         (cgraphunit_c_finalize): New function.
481         * diagnostic.c (diagnostic_finish): Free the memory for
482         context->classify_diagnostic and context->printer, running the
483         destructor for the latter.
484         (bt_stop): Use toplev::main.
485         * dwarf2out.c (dwarf2out_finalize): New function.
486         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
487         * gcse.c (gcse_c_finalize): New function.
488         * gcse.h (gcse_c_finalize): New prototype.
489         * ggc-page.c (init_ggc): Make idempotent.
490         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
491         * ipa-cp.c (ipa_cp_c_finalize): New function.
492         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
493         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
494         a field of class pass_ipa_pure_const.
495         (node_duplication_hook_holder): Likewise.
496         (node_removal_hook_holder): Likewise.
497         (register_hooks): Convert to method...
498         (pass_ipa_pure_const::register_hooks): ...here, converting
499         static variable init_p into...
500         (pass_ipa_pure_const::init_p): ...new field.
501         (pure_const_generate_summary): Update invocation of
502         register_hooks to invoke as a method of current_pass.
503         (pure_const_read_summary): Likewise.
504         (propagate): Convert to...
505         (pass_ipa_pure_const::execute): ...method.
506         * ipa-reference.c (ipa_init): Move static bool init_p from here
507         to...
508         (ipa_init_p): New file-scope variable, so that it can be reset
509         when repeatedly invoking the compiler within one process by...
510         (ipa_reference_c_finalize): New function.
511         * ipa-reference.h (ipa_reference_c_finalize): New.
512         * main.c (main): Replace invocation of toplev_main with
513         construction of a toplev instance, and call its "main" method.
514         * params.c (global_init_params): Add an assert that
515         params_finished is false.
516         (params_c_finalize): New.
517         * params.h (params_c_finalize): New.
518         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
519         invoking generate_summary, for the benefit of pass_ipa_pure_const.
520         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
521         before calling write_summary hook.
522         (ipa_write_optimization_summaries_1): Likewise when calling
523         write_optimization_summary hook.
524         (ipa_read_summaries_1): Likewise for read_summary hook.
525         (ipa_read_optimization_summaries_1): Likewise for
526         read_optimization_summary hook.
527         (execute_ipa_stmt_fixups): Likewise.
528         * stringpool.c (init_stringpool): Clean up if we're called more
529         than once.
530         * timevar.c (timevar_init): Ignore repeated calls.
531         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
532         "ipa-prop.h".
533         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
534         (initialize_rtl): Move static local "initialized_once"
535         into file scope, and rename to...
536         (rtl_initialized): New variable.
537         (do_compile): Move timevar initialization from here to
538         toplev::start_timevars.
539         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
540         toplev::finalize): New functions.
541         (toplev_main): Rename to...
542         (toplev::main): ...this.
543         * toplev.h (class toplev): New class.
545 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
547         * loop-doloop.c: Include loop-unroll.h.
549 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
551         * cfg.h: New.  Header file for cfg.c.
552         * cfganal.h: New.  Header file for cfganal.c.
553         * lcm.h: New.  Header file for lcm.c.
554         * loop-unroll.h: New.  Header file for loop-unroll.h.
555         * cfgloop.h: (unroll_loops): Remove prototype.
556         * basic-block.h: Move prototypes and structs to new header files.
557         Include cfg.h, cfganal.h, and lcm.h.
558         * loop-init.c: Include loop-unroll.h.
559         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
560         * modulo-sched.c: Include loop-unroll.h.
562 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
564         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
565         MARKER_BYTE_UNKNOWN markers when handling casts.
567 2014-10-21  Richard Biener  <rguenther@suse.de>
569         * tree-ssa-phiopt.c (value_replacement): Properly verify we
570         are the non-singleton PHI.
572 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
574         PR tree-optimization/63563
575         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
576         if either dra or drb stmts are not normal loads/stores.
578 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
580         * config/i386/i386.c (expand_vec_perm_1): Fix
581         expand_vec_perm_palignr case.
582         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
583         VI1_AVX512.
585 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
587         * cfgloopanal.c (seq_cost): Delete.
588         * rtl.h (seq_cost): New prototype.
589         * rtlanal.c (seq_cost): New function.
590         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
592 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
594         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
595         * basic-block.h: Remove prototypes for cfgrtl.c.
596         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
597         prototypes to cfgrtl.h.
598         * profile.h (profile_info): Add extern export declaration.
599         * rtl.h: Remove prototypes for cfgrtl.h.
600         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
601         * ipa-inline.c: Include profile.h.
602         * loop-unroll.c: Ditto.
603         * modulo-sched.c: Ditto.
604         * postreload-gcse.c: Ditto.
605         * predict.c: Ditto.
606         * sched-ebb.c: Ditto.
607         * sched-rgn.c: Ditto.
608         * tracer.c: Ditto.
609         * tree-ssa-loop-ivcanon.c: Ditto.
611 2014-10-20  Richard Biener  <rguenther@suse.de>
613         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
614         operands to get a def operand kind match.  Signal mismatches
615         to the parent so we can try swapping its operands.
616         (vect_build_slp_tree): Try swapping operands if they have
617         a mismatched operand kind.
619 2014-10-20  Alan Modra  <amodra@gmail.com>
621         PR debug/60655
622         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
623         Increase "ops" array size.  Correct array size tests.  Init
624         n_constants in loop.  Break out of innermost loop when finding
625         a trivial CONST expression.
627 2014-10-20  Martin Liska  <mliska@suse.cz>
629         PR ipa/63583
630         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
631         Gimple tempate string is compared.
633 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
635         * varasm.c (const_alias_set): Remove.
636         (init_varasm_once): Remove initialization of const_alias_set.
637         (build_constant_desc): Do not set alias set to const_alias_set.
639 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
641         * configure: Regenerate.
642         * configure.ac: Move the test for section attribute specifier "e" in GAS
643         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
644         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
645         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
646         ifdef HAVE_GAS_SECTION_EXCLUDE.
648 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
650         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
651         match_operand expression.
653 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
654             David Edelsohn  <dje.gcc@gmail.com>
656         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
657         function.
658         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
660 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
662         * doc/invoke.texi (Options to Request or Suppress Warnings):
663         Explain options precedence.
664         (Wtrampolines): Do not indent paragraph.
666 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
668         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
669         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
670         (pa_jump_in_call_delay): Likewise.
671         * config/pa/pa.c (pa_option_override): Remove jump in call delay
672         override.
673         (pa_output_millicode_call): Remove support for jump in call delay.
674         (pa_output_call): Likewise.
675         (pa_jump_in_call_delay): Delete.
676         (pa_following_call): Likewise.
677         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
678         (uncond_branch): Remove following call check from attribute length.
680 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
682         PR target/53513
683         * config/sh/sh-modes.def (PSI): Remove.
684         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
685         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
686         (sh_reorg): Remove commented out FPSCR code.
687         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
688         insn instead of move insn.
689         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
690         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
691         handling.
692         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
693         (sh1_builtin_p): Uncomment.
694         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
695         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
696         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
697         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
698         (general_movsrc_operand, general_movdst_operand): Disallow
699         fpscr_operand.
700         * config/sh/sh.md (FPSCR_FR): New constant.
701         (push_fpscr): Emit sts_fpscr insn.
702         (pop_fpscr): Emit lds_fpscr_insn.
703         (movsi_ie): Disallow FPSCR operands.
704         (fpu_switch, unnamed related split, extend_psi_si,
705         truncate_si_psi): Remove insns.
706         (lds_fpscr, sts_fpscr): New insns.
707         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
709 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
711         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
712         (clone_inlined_nodes): Do not overwrite the clone if above predicate
713         returns true.
715 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
717         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
718         (expand_vec_perm_d): Ditto.
719         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
720         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
721         V4DFmode.
722         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
723         (ix86_expand_sse_unpack): Handle V64QImode.
724         (expand_vec_perm_blend): Update conditions for TARGET, handle
725         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
726         (expand_vec_perm_pshufb): Handle V64QImode.
727         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
728         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
729         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
730         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
731         (ix86_expand_vecop_qihi): Handle V64QImode.
732         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
733         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
734         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
735         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
736         (mul<mode>3): Use VI1_AVX512.
737         (<sse2_avx2>_packsswb): Ditto.
738         (<sse2_avx2>_packuswb): Ditto.
739         (<ssse3_avx2>_pshufb<mode>3): Ditto.
740         (<shift_insn><mode>3): Ditto.
742 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
744         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
745         conditions to fix bootstrap.
747 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
749         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
751 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
752             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
753             Anna Tikhonova  <anna.tikhonova@intel.com>
754             Ilya Tocar  <ilya.tocar@intel.com>
755             Andrey Turetskiy  <andrey.turetskiy@intel.com>
756             Ilya Verbin  <ilya.verbin@intel.com>
757             Kirill Yukhin  <kirill.yukhin@intel.com>
758             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
760         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
761         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
762         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
763         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
764         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
765         (define_expand "vec_init<mode>"): Use VF48_I1248.
767 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
768             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
769             Anna Tikhonova  <anna.tikhonova@intel.com>
770             Ilya Tocar  <ilya.tocar@intel.com>
771             Andrey Turetskiy  <andrey.turetskiy@intel.com>
772             Ilya Verbin  <ilya.verbin@intel.com>
773             Kirill Yukhin  <kirill.yukhin@intel.com>
774             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
776         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
777         expand_sse2_mulvxdi3.
779 2014-10-17  Richard Biener  <rguenther@suse.de>
781         * fold-const.c (fold_comparison): Remove redundant constant
782         folding and operand swapping.
783         (fold_binary_loc): Do comparison operand swapping here.
784         (fold_ternary_loc): Canonicalize operand order for
785         commutative ternary operations.
786         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
787         and FMA_EXPR.
789 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
791         PR tree-optimization/63464
792         * gimple.h (gimple_seq_discard): New prototype.
793         * gimple.c: Include stringpool.h and tree-ssanames.h.
794         (gimple_seq_discard): New function.
795         * optabs.h (lshift_cheap_p): New prototype.
796         * optabs.c (lshift_cheap_p): New function, moved from...
797         * tree-switch-conversion.c (lshift_cheap_p): ... here.
798         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
799         (reassoc_branch_fixups): New variable.
800         (update_range_test): Add otherrangep and seq arguments.
801         Unshare exp.  If otherrange is NULL, use for other ranges
802         array of pointers pointed by otherrangep instead.
803         Emit seq before gimplified statements for tem.
804         (optimize_range_tests_diff): Adjust update_range_test
805         caller.
806         (optimize_range_tests_xor): Likewise.  Fix up comment.
807         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
808         functions.
809         (optimize_range_tests): Adjust update_range_test caller.
810         Call optimize_range_tests_to_bit_test.
811         (branch_fixup): New function.
812         (execute_reassoc): Call branch_fixup.
814         PR tree-optimization/63302
815         * tree-ssa-reassoc.c (optimize_range_tests_xor,
816         optimize_range_tests_diff): Use !integer_pow2p () instead of
817         tree_log2 () < 0.
819 2014-10-17  Martin Liska  <mliska@suse.cz>
821         * ipa-icf.c (sem_function::merge): Local flags are set to false
822         to enforce equal calling convention to be used.
823         * opts.c (common_handle_option): Indentation fix.
825 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
827         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
829 2014-10-17  Tom de Vries  <tom@codesourcery.com>
831         PR rtl-optimization/61605
832         * regcprop.c (copyprop_hardreg_forward_1): Use
833         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
835 2014-10-17  Tom de Vries  <tom@codesourcery.com>
837         PR rtl-optimization/61605
838         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
839         notice stores for noops.  Don't regard noops as copies.
841 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
843         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
844         register in a special way.
845         (__cpuid_count): Ditto.
846         * config/i386/driver-i386.h: Protect with
847         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
848         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
849         is required to compile the function.
851 2014-10-16  DJ Delorie  <dj@redhat.com>
853         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
854         integers.
856         * config/rs6000/rs6000-c.c (rid_int128): New.
857         (rs6000_macro_to_expand): Use instead of RID_INT128.
859 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
861         * function.h: Flatten file.  Remove includes, adjust prototypes to
862         reflect only what is in function.h.
863         (enum direction, struct args_size, struct locate_and_pad_arg_data,
864         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
865         from expr.h.
866         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
867         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
868         prototypes to predict.h.
869         (init_varasm_status): Move prototype to varasm.h.
870         * expr.h: Adjust include files.
871         (enum direction, struct args_size, struct locate_and_pad_arg_data,
872         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
873         to function.h.
874         (locate_and_pad_parm): Move prototype to function.h.
875         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
876         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
877         assign_temp, reposition_prologue_and_epilogue_notes,
878         prologue_epilogue_contains, sibcall_epilogue_contains,
879         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
880         set_return_jump_label): Move prototypes to function.h.
881         * predict.h (optimize_function_for_size_p,
882         optimize_function_for_speed_p): Relocate prototypes from function.h.
883         * shrink-wrap.h (emit_return_into_block, active_insn_between,
884         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
885         function.h.
886         * varasm.h (init_varasm_status): Relocate prototype from function.h.
887         * genattrtab.c (write_header): Add predict.h to include list.
888         * genconditions.c (write_header): Add predict.h to include list.
889         * genemit.c (main): Adjust header file includes.
890         * gengtype.c (ifiles): Add flattened function.h header files.
891         * genoutput.c (output_prologue): Add predict.h to include list.
892         * genpreds.c (write_insn_preds_c): Adjust header file includes.
893         * genrecog.c (write_header): Add flattened function.h header files.
894         * alias.c: Adjust include files.
895         * auto-inc-dec.c: Likewise.
896         * basic-block.h: Likewise.
897         * bb-reorder.c: Likewise.
898         * bt-load.c: Likewise.
899         * builtins.c: Likewise.
900         * caller-save.c: Likewise.
901         * calls.c: Likewise.
902         * cfgbuild.c: Likewise.
903         * cfgcleanup.c: Likewise.
904         * cfgexpand.c: Likewise.
905         * cfgloop.c: Likewise.
906         * cfgloop.h: Likewise.
907         * cfgrtl.c: Likewise.
908         * cgraph.h: Likewise.
909         * cgraphclones.c: Likewise.
910         * cgraphunit.c: Likewise.
911         * combine-stack-adj.c: Likewise.
912         * combine.c: Likewise.
913         * coverage.c: Likewise.
914         * cprop.c: Likewise.
915         * cse.c: Likewise.
916         * cselib.c: Likewise.
917         * dbxout.c: Likewise.
918         * ddg.c: Likewise.
919         * df-core.c: Likewise.
920         * df-problems.c: Likewise.
921         * df-scan.c: Likewise.
922         * dojump.c: Likewise.
923         * dwarf2cfi.c: Likewise.
924         * dwarf2out.c: Likewise.
925         * emit-rtl.c: Likewise.
926         * except.c: Likewise.
927         * explow.c: Likewise.
928         * expr.c: Likewise.
929         * final.c: Likewise.
930         * function.c: Likewise.
931         * gcse.c: Likewise.
932         * gimple-fold.c: Likewise.
933         * gimple-low.c: Likewise.
934         * gimple-streamer.h: Likewise.
935         * haifa-sched.c: Likewise.
936         * ifcvt.c: Likewise.
937         * ira.c: Likewise.
938         * jump.c: Likewise.
939         * lcm.c: Likewise.
940         * loop-invariant.c: Likewise.
941         * lra-assigns.c: Likewise.
942         * lra-coalesce.c: Likewise.
943         * lra-constraints.c: Likewise.
944         * lra-eliminations.c: Likewise.
945         * lra-lives.c: Likewise.
946         * lra-spills.c: Likewise.
947         * lra.c: Likewise.
948         * lto-cgraph.c: Likewise.
949         * lto-section-in.c: Likewise.
950         * lto-section-out.c: Likewise.
951         * lto-streamer-in.c: Likewise.
952         * lto-streamer-out.c: Likewise.
953         * mode-switching.c: Likewise.
954         * modulo-sched.c: Likewise.
955         * omp-low.c: Likewise.
956         * optabs.c: Likewise.
957         * passes.c: Likewise.
958         * postreload-gcse.c: Likewise.
959         * postreload.c: Likewise.
960         * predict.c: Likewise.
961         * profile.c: Likewise.
962         * recog.c: Likewise.
963         * ree.c: Likewise.
964         * reg-stack.c: Likewise.
965         * regcprop.c: Likewise.
966         * reginfo.c: Likewise.
967         * regrename.c: Likewise.
968         * reload.c: Likewise.
969         * reload1.c: Likewise.
970         * reorg.c: Likewise.
971         * resource.c: Likewise.
972         * rtlanal.c: Likewise.
973         * sched-deps.c: Likewise.
974         * sched-ebb.c: Likewise.
975         * sched-rgn.c: Likewise.
976         * sel-sched-dump.c: Likewise.
977         * sel-sched-ir.c: Likewise.
978         * sel-sched.c: Likewise.
979         * shrink-wrap.c: Likewise.
980         * simplify-rtx.c: Likewise.
981         * statistics.c: Likewise.
982         * stmt.c: Likewise.
983         * stor-layout.c: Likewise.
984         * store-motion.c: Likewise.
985         * symtab.c: Likewise.
986         * targhooks.c: Likewise.
987         * toplev.c: Likewise.
988         * trans-mem.c: Likewise.
989         * tree-cfg.c: Likewise.
990         * tree-cfgcleanup.c: Likewise.
991         * tree-dfa.c: Likewise.
992         * tree-eh.c: Likewise.
993         * tree-inline.c: Likewise.
994         * tree-into-ssa.c: Likewise.
995         * tree-nested.c: Likewise.
996         * tree-nrv.c: Likewise.
997         * tree-profile.c: Likewise.
998         * tree-ssa-alias.c: Likewise.
999         * tree-ssa-ccp.c: Likewise.
1000         * tree-ssa-copy.c: Likewise.
1001         * tree-ssa-copyrename.c: Likewise.
1002         * tree-ssa-dom.c: Likewise.
1003         * tree-ssa-operands.c: Likewise.
1004         * tree-ssa-propagate.c: Likewise.
1005         * tree-ssa-structalias.c: Likewise.
1006         * tree-ssa-tail-merge.c: Likewise.
1007         * tree-ssa-threadedge.c: Likewise.
1008         * tree-ssa-threadupdate.c: Likewise.
1009         * tree-ssa-uncprop.c: Likewise.
1010         * tree-ssa-uninit.c: Likewise.
1011         * tree-ssa.c: Likewise.
1012         * tree-stdarg.c: Likewise.
1013         * tree-tailcall.c: Likewise.
1014         * tree.c: Likewise.
1015         * tsan.c: Likewise.
1016         * valtrack.c: Likewise.
1017         * varasm.c: Likewise.
1018         * vmsdbgout.c: Likewise.
1019         * web.c: Likewise.
1020         * config/aarch64/aarch64.c: Add flattened includes from function.h.
1021         * config/alpha/alpha.c: Likewise.
1022         * config/arc/arc.c: Likewise.
1023         * config/arm/arm.c: Likewise.
1024         * config/avr/avr-log.c: Likewise.
1025         * config/avr/avr.c: Likewise.
1026         * config/bfin/bfin.c: Likewise.
1027         * config/c6x/c6x.c: Likewise.
1028         * config/cr16/cr16.c: Likewise.
1029         * config/cris/cris.c: Likewise.
1030         * config/darwin.c: Likewise.
1031         * config/epiphany/epiphany.c: Likewise.
1032         * config/epiphany/mode-switch-use.c: Likewise.
1033         * config/epiphany/resolve-sw-modes.c: Likewise.
1034         * config/fr30/fr30.c: Likewise.
1035         * config/frv/frv.c: Likewise.
1036         * config/h8300/h8300.c: Likewise.
1037         * config/i386/i386.c: Likewise.
1038         * config/ia64/ia64.c: Likewise.
1039         * config/iq2000/iq2000.c: Likewise.
1040         * config/lm32/lm32.c: Likewise.
1041         * config/m32c/m32c.c: Likewise.
1042         * config/m32r/m32r.c: Likewise.
1043         * config/m68k/m68k.c: Likewise.
1044         * config/mcore/mcore.c: Likewise.
1045         * config/mep/mep-pragma.c: Likewise.
1046         * config/mep/mep.c: Likewise.
1047         * config/microblaze/microblaze.c: Likewise.
1048         * config/mips/mips.c: Likewise.
1049         * config/mmix/mmix.c: Likewise.
1050         * config/mn10300/mn10300.c: Likewise.
1051         * config/moxie/moxie.c: Likewise.
1052         * config/msp430/msp430.c: Likewise.
1053         * config/nds32/nds32-cost.c: Likewise.
1054         * config/nds32/nds32-fp-as-gp.c: Likewise.
1055         * config/nds32/nds32-intrinsic.c: Likewise.
1056         * config/nds32/nds32-isr.c: Likewise.
1057         * config/nds32/nds32-md-auxiliary.c: Likewise.
1058         * config/nds32/nds32-memory-manipulation.c: Likewise.
1059         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1060         * config/nds32/nds32-predicates.c: Likewise.
1061         * config/nds32/nds32.c: Likewise.
1062         * config/nios2/nios2.c: Likewise.
1063         * config/pa/pa.c: Likewise.
1064         * config/pdp11/pdp11.c: Likewise.
1065         * config/rl78/rl78.c: Likewise.
1066         * config/rs6000/rs6000.c: Likewise.
1067         * config/rx/rx.c: Likewise.
1068         * config/s390/s390.c: Likewise.
1069         * config/score/score.c: Likewise.
1070         * config/sh/sh.c: Likewise.
1071         * config/sparc/sparc.c: Likewise.
1072         * config/spu/spu.c: Likewise.
1073         * config/stormy16/stormy16.c: Likewise.
1074         * config/tilegx/tilegx.c: Likewise.
1075         * config/tilepro/tilepro.c: Likewise.
1076         * config/v850/v850.c: Likewise.
1077         * config/vax/vax.c: Likewise.
1078         * config/xtensa/xtensa.c: Likewise.
1080 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
1082         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1083         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1085 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1087         * config/sh/sh-protos.h (fldi_ok): Remove.
1088         * config/sh/sh.c (fldi_ok): Likewise.
1089         (sh_secondary_reload): Don't use fldi_ok.
1090         * config/sh/constraints.md (G constraint, H constraint): Don't use
1091         fldi_ok.
1093 2014-10-16  Martin Liska  <mliska@suse.cz>
1095         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1096         Cast to unsigned long.
1097         (sem_item_optimizer::dump_cong_classes): Likewise.
1099 2014-10-16  Tom de Vries  <tom@codesourcery.com>
1101         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1102         with SSA_NAME_IN_FREELIST.
1104 2014-10-16  Richard Biener  <rguenther@suse.de>
1106         PR middle-end/63554
1107         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1108         (fold_builtin_strncat_chk): Move ...
1109         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1110         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1112 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1114         PR target/59401
1115         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1116         GBR to 0.
1118 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1119             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1120             Anna Tikhonova  <anna.tikhonova@intel.com>
1121             Ilya Tocar  <ilya.tocar@intel.com>
1122             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1123             Ilya Verbin  <ilya.verbin@intel.com>
1124             Kirill Yukhin  <kirill.yukhin@intel.com>
1125             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1127         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1128         V64QI modes.
1130 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1131             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1132             Anna Tikhonova  <anna.tikhonova@intel.com>
1133             Ilya Tocar  <ilya.tocar@intel.com>
1134             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1135             Ilya Verbin  <ilya.verbin@intel.com>
1136             Kirill Yukhin  <kirill.yukhin@intel.com>
1137             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1139         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1140         V16SI, V32HI, V64QI modes.
1142 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1144         PR target/53513
1145         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1146         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1148         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1149         to match fp insn patterns.
1150         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1151         list.
1152         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1153         expand_df_unop, expand_df_binop): Remove.
1154         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1155         FPSCR_STAT_REG as not call clobbered.
1156         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1157         invoking fpscr_set_from_mem.
1159         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
1160         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
1161         FPSCR_STAT_REG.
1162         (REGISTER_NAMES): Adjust.
1163         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1164         (FIRST_PSEUDO_REGISTER): Increase to 156.
1165         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
1166         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
1167         FPSCR_STAT_REG.
1168         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
1169         FPSCR_MODES_REG and FPSCR_STAT_REG.
1170         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1172         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
1173         FPSCR_SZ): Add new constants.
1174         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
1176         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
1177         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
1178         Use TARGET_FPU_ANY condition.
1179         (fpu_switch peephole2): Remove.
1180         (fpu_switch split): Use simple_mem_operand to capture the mem and
1181         adjust split implementation.
1182         (extend_psi_si, truncate_si_psi): New insns.
1183         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
1184         set of FPSCR_MODES_REG.
1186         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
1187         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
1188         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
1189         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
1190         call_value_compact, call_value_compact_rettramp, call,
1191         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
1192         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
1193         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1194         sibcall_value_compact, sibcall_value, call_value_pop_compact,
1195         call_value_pop_compact_rettramp, various unnamed splits):
1196         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
1197         function uses.
1199         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1200         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1201         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1202         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1203         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1205         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1206         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1207         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1208         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1209         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1210         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1211         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
1213 2014-10-16  Martin Liska  <mliska@suse.cz>
1214             Jan Hubicka  <hubicka@ucw.cz>
1216         * Makefile.in: New object files included.
1217         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1218         is printed.
1219         (verify_edge_corresponds_to_fndecl): More sensitive verification
1220         of nodes that are merged by IPA ICF.
1221         * cgraph.h (cgraph_node::num_references): New function.
1222         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1223         * common.opt: New options ipa-icf, ipa-icf-functions and
1224         ipa-icf-variables introduced.
1225         * doc/invoke.texi: Documentation of new options introduced.
1226         * ipa-icf-gimple.c: New file.
1227         * ipa-icf-gimple.h: New file.
1228         * ipa-icf.c: New file.
1229         * ipa-icf.h: New file.
1230         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1231         (input_overwrite_node): Likewise.
1232         * lto-section-in.c: New icf section added.
1233         * lto-streamer.h (enum lto_section_type): Likewise.
1234         * opts.c (common_handle_option): New option added.
1235         * passes.def: New pass included.
1236         * timevar.def: Time variable for IPA ICF added.
1237         * tree-pass.h: New IPA ICF pass entry point added.
1239 2014-10-16  Richard Biener  <rguenther@suse.de>
1241         PR tree-optimization/63168
1242         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1243         latches if after merging they are no longer simple.
1244         * cfghooks.c (merge_blocks): Handle merging a latch block
1245         into another block.
1247 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1248             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1249             Anna Tikhonova  <anna.tikhonova@intel.com>
1250             Ilya Tocar  <ilya.tocar@intel.com>
1251             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1252             Ilya Verbin  <ilya.verbin@intel.com>
1253             Kirill Yukhin  <kirill.yukhin@intel.com>
1254             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1256         * config/i386/sse.md
1257         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1258         support AVX-512VL instructions.
1260 2014-10-16  DJ Delorie  <dj@redhat.com>
1262         * tree-core.h: Fix comment to not assume pointers are multiples of
1263         bytes.
1265 2014-10-15  Tom Tromey  <tromey@redhat.com>
1267         * timevar.h (class auto_timevar): New class.
1269 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
1271         PR go/59432
1272         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1273         Remove the second alternative.
1274         (regprefix): Remove mode attribute.
1275         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1276         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1278         Revert:
1279         2013-11-05  Ian Lance Taylor  <iant@google.com>
1281         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1282         If possible, add .cfi directives to record change to bx.
1283         * config/i386/i386.c (ix86_emit_cfi): New function.
1284         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1286 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
1288         PR lto/62026
1289         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1290         to duplicate.
1291         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1292         at WPA time.
1294 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
1296         PR rtl-optimization/63448
1297         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
1298         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
1299         (LRA_MAX_INHERITANCE_PASSES): Use it.
1300         (lra_constraint_iter_after_spill): Remove.
1301         (lra_assignment_iter): New.
1302         (lra_assignment_iter_after_spill): New.
1303         * lra-assigns.c (lra_assignment_iter): New.
1304         (lra_assignment_iter_after_spill): New.
1305         (former_reload_pseudo_spill_p): New.
1306         (spill_for): Set up former_reload_pseudo_spill_p.
1307         (setup_live_pseudos_and_spill_after_risky): Ditto.
1308         (assign_by_spills): Ditto.
1309         (lra_assign): Increment lra_assignment_iter.  Print the iteration
1310         number.  Reset former_reload_pseudo_spill_p.  Check
1311         lra_assignment_iter_after_spill.
1312         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
1313         lra_assignment_iter and lra_assignment_iter_after_spill.
1314         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
1315         (lra_constraints): Remove code with
1316         lra_assignment_iter_after_spill.
1318 2014-10-15  Teresa Johnson  <tejohnson@google.com>
1320         PR bootstrap/63432
1321         * tree-ssa-threadupdate.c (recompute_probabilities): Better
1322         overflow checking.
1324 2014-10-15  Renlin Li <renlin.li@arm.com>
1326         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1327         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
1328         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
1329         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
1331 2014-10-15  Richard Biener  <rguenther@suse.de>
1333         * gimple-fold.c (gimple_fold_call): Properly keep virtual
1334         SSA form up-to-date when devirtualizing a call to
1335         __builtin_unreachable and avoid fixing up EH info here.
1337 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1338             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1339             Anna Tikhonova  <anna.tikhonova@intel.com>
1340             Ilya Tocar  <ilya.tocar@intel.com>
1341             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1342             Ilya Verbin  <ilya.verbin@intel.com>
1343             Kirill Yukhin  <kirill.yukhin@intel.com>
1344             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1346         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
1347         to support AVX-512BW.
1348         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
1349         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
1350         (define_insn "*<plusminus_insn><mode>3"): Ditto.
1351         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
1352         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1353         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
1354         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1355         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
1356         (define_insn "*andnot<mode>3"): Ditto.
1357         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
1358         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
1359         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1360         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
1361         (define_insn "*abs<mode>2"): Remove masking support.
1362         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
1363         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
1364         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
1366 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1367             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1368             Anna Tikhonova  <anna.tikhonova@intel.com>
1369             Ilya Tocar  <ilya.tocar@intel.com>
1370             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1371             Ilya Verbin  <ilya.verbin@intel.com>
1372             Kirill Yukhin  <kirill.yukhin@intel.com>
1373             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1375         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
1376         * config/i386/sse.md
1377         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
1378         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
1379         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
1380         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1381         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1382         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1383         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1385 2014-10-15  Renlin Li <renlin.li@arm.com>
1387         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
1389 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
1391         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
1392         MINUS_EXPR in unsigned type to avoid undefined behavior.
1394 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
1396         * stor-layout.c (self_referential_size): Do not promote arguments.
1398 2014-10-15  Marek Polacek  <polacek@redhat.com>
1400         * doc/invoke.texi: Update to reflect that GNU11 is the default
1401         mode for C.
1402         * c-common.h (c_language_kind): Update comment.
1404 2014-10-15  Richard Biener  <rguenther@suse.de>
1406         * hash-table.c: Include bconfig.h if building for the host.
1407         * hash-table.h: Do not include ggc.h on the host but just declare
1408         a few ggc allocation templates.
1410 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
1411             Jeff Law  <law@redhat.com>
1413         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
1414         multiple hard registers, use smaller mode derived from MODE.
1416 2014-10-15  Andreas Schwab  <schwab@suse.de>
1418         * explow.c (convert_memory_address_addr_space_1): Mark in_const
1419         as ATTRIBUTE_UNUSED.
1421 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
1423         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
1424         (decide_unrolling): ... this one.
1425         (peel_loops_completely): Remove.
1426         (decide_peel_simple): Remove.
1427         (decide_peel_once_rolling): Remove.
1428         (decide_peel_completely): Remove.
1429         (peel_loop_simple): Remove.
1430         (peel_loop_completely): Remove.
1431         (unroll_and_peel_loops): Rename to ...
1432         (unroll_loops): ... this one; handle only unrolling.
1433         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
1434         LPT_PEEL_SIMPLE.
1435         (UAP_PEEL): Remove.
1436         (unroll_and_peel_loops): Remove.
1437         (unroll_loops): New.
1438         * passes.def: Replace
1439         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
1440         * loop-init.c (gate_rtl_unroll_and_peel_loops,
1441         rtl_unroll_and_peel_loops): Rename to ...
1442         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
1443         (pass_rtl_unroll_and_peel_loops): Rename to ...
1444         (pass_rtl_unroll_loops): ... this one.
1445         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
1446         (make_pass_rtl_unroll_loops): New.
1447         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
1448         (canonicalize_loop_induction_variables): Update.
1450 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
1452         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
1453         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
1454         !TARGET_HARD_FLOAT_POSTINC.
1455         (*lsip, *ssip): new instructions.
1457 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
1459         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
1460         remove.
1462 2014-10-14  Andrew Pinski  <apinski@cavium.com>
1464         * explow.c (convert_memory_address_addr_space): Rename to ...
1465         (convert_memory_address_addr_space_1): This.  Add in_const argument.
1466         Inside a CONST RTL, permute the conversion and addition of constant
1467         for zero and sign extended pointers.
1468         (convert_memory_address_addr_space): New function.
1470 2014-10-14  Andrew Pinski  <apinski@cavium.com>
1472         Revert:
1473         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1475         PR middle-end/49721
1476         * explow.c (convert_memory_address_addr_space): Also permute the
1477         conversion and addition of constant for zero-extend.
1479 2014-10-14  DJ Delorie  <dj@redhat.com>
1481         * config/msp430/msp430-modes.def (PSI): Add.
1483         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
1484         (msp430_hard_regno_nregs_with_padding): New.
1485         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
1486         (msp430_hard_regno_nregs_has_padding): New.
1487         (msp430_hard_regno_nregs_with_padding): New.
1488         (msp430_unwind_word_mode): Use PSImode instead of SImode.
1489         (msp430_addr_space_legitimate_address_p): New.
1490         (msp430_asm_integer): New.
1491         (msp430_init_dwarf_reg_sizes_extra): New.
1492         (msp430_print_operand): Use X suffix for PSImode even in small model.
1493         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
1494         (PTR_SIZE): ...but 4 bytes for EH.
1495         (SIZE_TYPE): Use __int20.
1496         (PTRDIFF_TYPE): Likewise.
1497         (INCOMING_FRAME_SP_OFFSET): Adjust.
1498         * config/msp430/msp430.md (movqi_topbyte): New.
1499         (movpsi): Use fixed suffixes.
1500         (movsipsi2): Enable for 430X, not large model.
1501         (extendhipsi2): Likewise.
1502         (zero_extendhisi2): Likewise.
1503         (zero_extendhisipsi2): Likewise.
1504         (extend_and_shift1_hipsi2): Likewise.
1505         (extendpsisi2): Likewise.
1506         (*bitbranch<mode>4_z): Fix suffix logic.
1508 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1510         PR ada/62019
1511         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
1512         do not choke on null node.
1513         <VAR_DECL>: Likewise.
1515 2014-10-14  DJ Delorie  <dj@redhat.com>
1517         * machmode.h (int_n_data_t): New.
1518         (int_n_enabled_p): New.
1519         (int_n_data): New.
1520         * tree.c (int_n_enabled_p): New.
1521         (int_n_trees): New.
1522         (make_or_reuse_type): Check for all __intN types, not just
1523         __int128.
1524         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
1525         entries.
1526         * tree.h (int128_integer_type_node): Remove.
1527         (int128_unsigned_type_node): Remove.
1528         (int_n_trees_t): New.
1529         (int_n_enabled_p): New.
1530         (int_n_trees): New.
1531         * toplev.c (standard_type_bitsize): New.
1532         (do_compile): Check which __intN types are enabled for the current
1533         run.
1534         * builtin-types.def (BT_INT128): Remove.
1535         (BT_UINT128): Remove.
1536         * machmode.def: Add macro to create __int128 for all targets.
1537         * stor-layout.c (mode_for_size): Support __intN types.
1538         (smallest_mode_for_size): Likewise.
1539         (initialize_sizetypes): Support __intN types.
1540         * genmodes.c (struct mode_data): Add int_n field.
1541         (blank_mode): Likewise.
1542         (INT_N): New.
1543         (make_int_n): New.
1544         (emit_insn_modes_h): Count __intN entries and define
1545         NUM_INT_N_ENTS.
1546         (emit_mode_int_n): New.
1547         (emit_insn_modes_c): Call it.
1548         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1549         types, not just __int128.
1550         * tree-core.h (integer_type_kind): Remove __int128-specific
1551         entries, reserve spots for __intN entries.
1553         * config/msp430/msp430-modes.def (PSI): Add.
1555 2014-10-14  Kito Cheng  <kito@0xlab.org>
1557         * ira.c: Fix typo in comment.
1558         * ira.h: Ditto.
1559         * ira-build.c: Ditto.
1560         * ira-color.c: Ditto.
1561         * ira-emit.c: Ditto.
1562         * ira-int.h: Ditto.
1563         * ira-lives.c: Ditto.
1565 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
1567         PR rtl-optimization/63475
1568         * alias.c (true_dependence_1): Always use get_addr to extract
1569         true address operands from x_addr and mem_addr.  Use extracted
1570         address operands to check for references with alignment ANDs.
1571         Use extracted address operands with find_base_term and
1572         base_alias_check. For noncanonicalized operands call canon_rtx with
1573         extracted address operand.
1574         (write_dependence_1): Ditto.
1575         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
1577 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
1579         PR target/63534
1580         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1581         __morestack local.
1583 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1584             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1585             Anna Tikhonova  <anna.tikhonova@intel.com>
1586             Ilya Tocar  <ilya.tocar@intel.com>
1587             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1588             Ilya Verbin  <ilya.verbin@intel.com>
1589             Kirill Yukhin  <kirill.yukhin@intel.com>
1590             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1592         * config/i386/i386.c
1593         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1594         (ix86_expand_int_vcond): Ditto.
1596 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1597             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1598             Anna Tikhonova  <anna.tikhonova@intel.com>
1599             Ilya Tocar  <ilya.tocar@intel.com>
1600             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1601             Ilya Verbin  <ilya.verbin@intel.com>
1602             Kirill Yukhin  <kirill.yukhin@intel.com>
1603             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1605         * config/i386/i386.c
1606         (emit_reduc_half): Handle V64QI and V32HI mode.
1607         * config/i386/sse.md
1608         (define_mode_iterator VI_AVX512BW): New.
1609         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1611 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1612             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1613             Anna Tikhonova  <anna.tikhonova@intel.com>
1614             Ilya Tocar  <ilya.tocar@intel.com>
1615             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1616             Ilya Verbin  <ilya.verbin@intel.com>
1617             Kirill Yukhin  <kirill.yukhin@intel.com>
1618             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1620         * config/i386/sse.md
1621         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1623 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1624             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1625             Anna Tikhonova  <anna.tikhonova@intel.com>
1626             Ilya Tocar  <ilya.tocar@intel.com>
1627             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1628             Ilya Verbin  <ilya.verbin@intel.com>
1629             Kirill Yukhin  <kirill.yukhin@intel.com>
1630             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1632         * config/i386/i386.c
1633         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1634         * config/i386/sse.md
1635         (define_mode_iterator VI): Add V64QI and V32HI modes.
1637 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1638             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1639             Anna Tikhonova  <anna.tikhonova@intel.com>
1640             Ilya Tocar  <ilya.tocar@intel.com>
1641             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1642             Ilya Verbin  <ilya.verbin@intel.com>
1643             Kirill Yukhin  <kirill.yukhin@intel.com>
1644             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1646         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
1648 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1649             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1650             Anna Tikhonova  <anna.tikhonova@intel.com>
1651             Ilya Tocar  <ilya.tocar@intel.com>
1652             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1653             Ilya Verbin  <ilya.verbin@intel.com>
1654             Kirill Yukhin  <kirill.yukhin@intel.com>
1655             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1657         * config/i386/sse.md
1658         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1659         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1661 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1662             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1663             Anna Tikhonova  <anna.tikhonova@intel.com>
1664             Ilya Tocar  <ilya.tocar@intel.com>
1665             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1666             Ilya Verbin  <ilya.verbin@intel.com>
1667             Kirill Yukhin  <kirill.yukhin@intel.com>
1668             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1670         * config/i386/sse.md
1671         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1672         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1674 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1675             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1676             Anna Tikhonova  <anna.tikhonova@intel.com>
1677             Ilya Tocar  <ilya.tocar@intel.com>
1678             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1679             Ilya Verbin  <ilya.verbin@intel.com>
1680             Kirill Yukhin  <kirill.yukhin@intel.com>
1681             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1683         * config/i386/sse.md
1684         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1685         (define_mode_iterator VI2_AVX2): Add V32HI mode.
1686         (define_expand "mul<mode>3<mask_name>"): Add masking.
1687         (define_insn "*mul<mode>3<mask_name>"): Ditto.
1688         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
1689         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
1690         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
1691         (define_mode_attr SDOT_PMADD_SUF): Ditto.
1692         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
1693         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
1694         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
1695         (define_insn "avx2_packusdw"): Delete.
1696         (define_insn "sse4_1_packusdw"): Ditto.
1697         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
1699 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1700             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1701             Anna Tikhonova  <anna.tikhonova@intel.com>
1702             Ilya Tocar  <ilya.tocar@intel.com>
1703             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1704             Ilya Verbin  <ilya.verbin@intel.com>
1705             Kirill Yukhin  <kirill.yukhin@intel.com>
1706             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1708         * config/i386/sse.md
1709         (define_insn "vec_dup<mode>"): Update constraints.
1711 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1712             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1713             Anna Tikhonova  <anna.tikhonova@intel.com>
1714             Ilya Tocar  <ilya.tocar@intel.com>
1715             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1716             Ilya Verbin  <ilya.verbin@intel.com>
1717             Kirill Yukhin  <kirill.yukhin@intel.com>
1718             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1720         * config/i386/sse.md
1721         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
1722         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
1723         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
1725 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1726             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1727             Anna Tikhonova  <anna.tikhonova@intel.com>
1728             Ilya Tocar  <ilya.tocar@intel.com>
1729             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1730             Ilya Verbin  <ilya.verbin@intel.com>
1731             Kirill Yukhin  <kirill.yukhin@intel.com>
1732             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1734         * config/i386/sse.md
1735         (define_expand "mul<mode>3<mask_name>"): Add masking.
1737 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1738             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1739             Anna Tikhonova  <anna.tikhonova@intel.com>
1740             Ilya Tocar  <ilya.tocar@intel.com>
1741             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1742             Ilya Verbin  <ilya.verbin@intel.com>
1743             Kirill Yukhin  <kirill.yukhin@intel.com>
1744             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1746         * config/i386/sse.md
1747         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
1748         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
1750 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1751             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1752             Anna Tikhonova  <anna.tikhonova@intel.com>
1753             Ilya Tocar  <ilya.tocar@intel.com>
1754             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1755             Ilya Verbin  <ilya.verbin@intel.com>
1756             Kirill Yukhin  <kirill.yukhin@intel.com>
1757             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1759         * config/i386/sse.md
1760         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
1761         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
1762         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
1763         Ditto.
1765 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1766             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1767             Anna Tikhonova  <anna.tikhonova@intel.com>
1768             Ilya Tocar  <ilya.tocar@intel.com>
1769             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1770             Ilya Verbin  <ilya.verbin@intel.com>
1771             Kirill Yukhin  <kirill.yukhin@intel.com>
1772             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1774         * config/i386/sse.md
1775         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
1776         use VF_128_256 mode iterator and update assembler emit code.
1777         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
1778         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
1779         Add masking, use VF_128_256 mode iterator.
1780         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
1781         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
1782         Add masking, use VF_128_256 mode iterator and update assembler emit
1783         code.
1784         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
1785         (define_mode_attr avx512flogicsuff): Delete.
1786         (define_insn "avx512f_<logic><mode>"): Ditto.
1787         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
1788         MODE_TI.
1789         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1791 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1792             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1793             Anna Tikhonova  <anna.tikhonova@intel.com>
1794             Ilya Tocar  <ilya.tocar@intel.com>
1795             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1796             Ilya Verbin  <ilya.verbin@intel.com>
1797             Kirill Yukhin  <kirill.yukhin@intel.com>
1798             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1800         * config/i386/sse.md
1801         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
1802         (define_expand "vashr<mode>3<mask_name>"): Add masking,
1803         use VI12_128 mode iterator.
1804         (define_expand "ashrv2di3<mask_name>"): New.
1806 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1807             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1808             Anna Tikhonova  <anna.tikhonova@intel.com>
1809             Ilya Tocar  <ilya.tocar@intel.com>
1810             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1811             Ilya Verbin  <ilya.verbin@intel.com>
1812             Kirill Yukhin  <kirill.yukhin@intel.com>
1813             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1815         * config/i386/i386.c
1816         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
1817         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
1818         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
1819         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
1820         CODE_FOR_avx512vl_ucmpv4si3_mask.
1821         * config/i386/sse.md
1822         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
1823         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
1824         (define_insn
1825         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
1826         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
1827         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
1828         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
1829         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
1830         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
1832 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1833             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1834             Anna Tikhonova  <anna.tikhonova@intel.com>
1835             Ilya Tocar  <ilya.tocar@intel.com>
1836             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1837             Ilya Verbin  <ilya.verbin@intel.com>
1838             Kirill Yukhin  <kirill.yukhin@intel.com>
1839             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1841         * config/i386/sse.md
1842         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
1843         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
1844         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
1845         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
1846         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
1847         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
1848         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1849         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1850         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
1852 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1853             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1854             Anna Tikhonova  <anna.tikhonova@intel.com>
1855             Ilya Tocar  <ilya.tocar@intel.com>
1856             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1857             Ilya Verbin  <ilya.verbin@intel.com>
1858             Kirill Yukhin  <kirill.yukhin@intel.com>
1859             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1861         * config/i386/sse.md
1862         (define_insn "avx512f_blendm<mode>"): Delete.
1863         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
1864         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
1865         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
1866         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
1867         (define_insn
1868         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1869         Remove.
1870         (define_insn
1871         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1872         New.
1873         (define_insn
1874         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1875         Ditto.
1876         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
1877         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
1878         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
1879         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
1880         Delete.
1881         (define_insn
1882         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
1883         New.
1884         (define_insn
1885         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
1886         Ditto.
1887         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
1888         Delete.
1889         (define_insn
1890         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
1891         New.
1892         (define_insn
1893         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
1894         Ditto.
1896 2014-10-14  Richard Biener  <rguenther@suse.de>
1898         PR tree-optimization/63512
1899         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
1900         modified.
1902 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
1904         PR target/63260
1905         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
1906         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
1907         of FPSCR.
1908         (negsf2_i): Rename to *negsf2_i.
1909         (abssf2_i): Rename to *abssf2_i.
1910         (negdf2_i): Rename to *negdf2_i.
1911         (absdf2_i): Rename to *absdf2_i.
1913 2014-10-14  Felix Yang  <felix.yang@huawei.com>
1914             Jeff Law  <law@redhat.com>
1916         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
1917         "replace" into boolean bitfields; turn member "loop_depth" into a short
1918         integer; add new member "no_equiv" and "reserved".
1919         (no_equiv): Set no_equiv of struct equivalence if register is marked
1920         as having no known equivalence.
1921         (update_equiv_regs): Check all definitions for a multiple-set
1922         register to make sure that the RHS have the same value.
1924 2014-10-13  Richard Henderson  <rth@redhat.com>
1926         * combine-stack-adj.c (no_unhandled_cfa): New.
1927         (maybe_merge_cfa_adjust): New.
1928         (combine_stack_adjustments_for_block): Use them.
1930 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
1932         * Makefile.in (TAGS): Tag ../include files.
1934 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1936         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
1937         to rs6000_dbx_register_number.
1938         (DWARF_FRAME_REGNUM): Redefine as identity map.
1939         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
1940         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
1941         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
1942         argument to handle .debug_frame and .eh_frame directly.  Always
1943         translate SPE high register numbers.  Add special treatment for CR,
1944         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
1946         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
1947         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
1948         (RS6000_USE_DWARF_NUMBERING): Define.
1949         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
1950         (RS6000_USE_DWARF_NUMBERING): Define.
1951         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
1952         (RS6000_USE_DWARF_NUMBERING): Define.
1953         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
1954         (RS6000_USE_DWARF_NUMBERING): Define.
1955         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
1956         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
1958 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
1960         * config/i386/i386.c (ix86_address_cost): Lower cost for
1961         when address contains GOT register.
1963 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1964             Vladimir Makarov  <vmakarov@redhat.com>
1966         PR target/8340
1967         PR middle-end/47602
1968         PR rtl-optimization/55458
1969         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
1970         (ix86_init_pic_reg): New.
1971         (ix86_select_alt_pic_regnum): Add check on pseudo register.
1972         (ix86_save_reg): Likewise.
1973         (ix86_expand_prologue): Remove PIC register initialization
1974         now performed in ix86_init_pic_reg.
1975         (ix86_output_function_epilogue): Add check on pseudo register.
1976         (set_pic_reg_ever_alive): New.
1977         (legitimize_pic_address): Replace df_set_regs_ever_live with new
1978         set_pic_reg_ever_alive.
1979         (legitimize_tls_address): Likewise.
1980         (ix86_pic_register_p): New check.
1981         (ix86_delegitimize_address): Add check on pseudo register.
1982         (ix86_expand_call): Insert move from pseudo PIC register to ABI
1983         defined REAL_PIC_OFFSET_TABLE_REGNUM.
1984         (TARGET_INIT_PIC_REG): New.
1985         (TARGET_USE_PSEUDO_PIC_REG): New.
1986         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
1987         if pic_offset_table_rtx exists.
1988         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
1989         Document.
1990         * doc/tm.texi: Regenerate.
1991         * function.c (assign_parms): Generate pseudo register for PIC.
1992         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
1993         register.
1994         * ira-color.c (color_pass): Add check on pseudo register.
1995         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
1996         register.
1997         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
1998         register.
1999         (ira): Add target specific PIC register initialization.
2000         (do_reload): Keep PIC pseudo register.
2001         * lra-assigns.c (spill_for): Add checks on pseudo register.
2002         * lra-constraints.c (contains_symbol_ref_p): New.
2003         (lra_constraints): Enable lra risky transformations when PIC is pseudo
2004         register.
2005         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2006         * target.def (use_pseudo_pic_reg): New.
2007         (init_pic_reg): New.
2009 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2011         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2012         Remove m_SILVERMONT and m_INTEL from the tune.
2014 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2016         PR libfortran/63471
2017         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2018         when _HPUX_SOURCE is defined.
2020 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2022         PR tree-optimization/62127
2023         * tree.c (remap_type_1): When remapping array, remap
2024         also its type.
2026 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
2028         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2029         longer impact parallelization.
2031 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2033         PR bootstrap/63496
2034         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2036 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
2038         * asan.c (instrument_derefs): BIT_FIELD_REF added.
2040 2014-10-13  Richard Biener  <rguenther@suse.de>
2042         PR tree-optimization/63419
2043         * gimple-fold.h (gimple_convert): New function.
2044         * gimple-fold.c (gimple_convert): Likewise.
2045         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2046         to split out required conversions early.
2048 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
2050         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2051         Add the parts of an insn in reverse order, with the pattern at
2052         the top of the queue.  Detect when we're iterating over a SEQUENCE
2053         pattern and in that case just consider patterns of subinstructions.
2055 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
2057         PR target/59401
2058         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2059         of rtx.
2060         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2061         insn walking.
2062         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2063         address.  Use def chains to handle GBR clobbering call insns.
2065 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
2067         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2068         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2069         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2070         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2071         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2072         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2073         * doc/gty.texi (for_user): Document new option.
2074         * gengtype.c (create_user_defined_type): Don't try to get a struct for
2075         char.
2076         (walk_type): Don't error out on for_user option.
2077         (write_func_for_structure): Emit user marking routines if requested by
2078         for_user option.
2079         (write_local_func_for_structure): Likewise.
2080         (main): Mark types with for_user option as used.
2081         * ggc.h (gt_pch_nx): Add overload for unsigned int.
2082         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2083         * hash-table.h (ggc_hasher): New struct.
2084         (hash_table::create_ggc): New function.
2085         (gt_pch_nx): New overload for hash_table.
2087 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
2089         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2090         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2091         * config/sh/sh.c: Likewise.
2092         * config/sh/sh-mem.cc: Likewise.
2093         * config/sh/sh.md: Likewise.
2094         * config/sh/predicates.md: Likewise.
2095         * config/sh/sync.md: Likewise.
2097 2014-10-11  Martin Liska  <mliska@suse.cz>
2099         PR middle-end/63376
2100         * cgraphunit.c (symbol_table::process_new_functions): Missing call
2101         for call_cgraph_insertion_hooks added.
2103 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
2105         PR c/63495
2106         * stor-layout.c (min_align_of_type): Don't decrease alignment
2107         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2108         TYPE_USER_ALIGN is set.
2110 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
2112         PR rtl-optimization/63483
2113         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2114         references when alignment ANDs are involved.
2115         (write_dependence_p): Ditto.
2116         (may_alias_p): Ditto.
2118 2014-10-10  Marek Polacek  <polacek@redhat.com>
2120         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2121         * doc/invoke.texi: Document -fsanitize=object-size.
2122         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2123         or it into SANITIZE_UNDEFINED.
2124         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2125         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2126         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2127         * opts.c (common_handle_option): Handle -fsanitize=object-size.
2128         * ubsan.c: Include tree-object-size.h.
2129         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2130         (ubsan_expand_bounds_ifn): Use false instead of 0.
2131         (ubsan_expand_objsize_ifn): New function.
2132         (instrument_object_size): New function.
2133         (pass_ubsan::execute): Add object size instrumentation.
2134         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2136 2014-10-10  Richard Henderson  <rth@redhat.com>
2138         PR target/63404
2139         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2140         Restrict the set of expressions we're willing to move.
2142 2014-10-10  Jeff Law  <law@redhat.com>
2144         * ira.c (struct equivalence): Promote INIT_INSNs field to
2145         an rtx_insn_list.  Add comments.
2146         (no_equiv): Promote LIST to an rtx_insn_list.  Update
2147         testing for and creating the special marker.  Use methods
2148         to extract the insn and next pointers.  Promote INSN to an
2149         rtx_insn.
2150         (update_equiv_regs): Update test for special marker in the
2151         INIT_INSNs list.
2153 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2155         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2156         * configure: Regenerate.
2157         * config/aarch64/aarch64.c (aarch64_override_options): Handle
2158         TARGET_FIX_ERR_A53_835769_DEFAULT.
2159         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
2160         value to 2.
2161         * doc/install.texi (aarch64*-*-*): Document
2162         new --enable-fix-cortex-a53-835769 option.
2164 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2165             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2167         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
2168         (ADJUST_INSN_LENGTH): Define.
2169         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
2170         * config/aarch64/aarch64.c (is_mem_p): New function.
2171         (is_memory_op): Likewise.
2172         (aarch64_prev_real_insn): Likewise.
2173         (is_madd_op): Likewise.
2174         (dep_between_memop_and_curr): Likewise.
2175         (aarch64_madd_needs_nop): Likewise.
2176         (aarch64_final_prescan_insn): Likewise.
2177         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
2178         and -mno-fix-cortex-a53-835769 options.
2180 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
2182         PR tree-optimization/63464
2183         * tree-switch-conversion.c (struct case_bit_test): Remove
2184         hi and lo fields, add wide_int mask field.
2185         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
2186         hi/lo fields into wide_int mask operations, optimize by pretending
2187         minval to be 0 if maxval is small enough.
2188         (process_switch): Adjust caller.
2190 2014-10-10  Richard Biener  <rguenther@suse.de>
2192         PR tree-optimization/63379
2193         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
2194         a neutral operand for min/max when it is not a reduction chain.
2196 2014-10-10  Richard Biener  <rguenther@suse.de>
2198         PR tree-optimization/63476
2199         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2200         (BB_LIVE_VOP_ON_EXIT): New define.
2201         (create_expression_by_pieces): Assign VUSEs to stmts.
2202         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2203         (pass_pre::execute): Assert virtual SSA form is up-to-date
2204         after insertion.
2206 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
2208         * lra-assigns.c (assign_by_spills): Error out on spill failure.
2210 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
2212         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2213         assertion.
2215 2014-10-09  Richard Biener  <rguenther@suse.de>
2217         PR tree-optimization/63380
2218         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2219         may trap.
2221 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
2223         * config/avr/avr.opt (mmcu=): Change to have a string value.
2224         (mn-flash=, mskip-bug, march=, mrmw): New options.
2225         (HeaderInclude): New.
2226         (mmcu=): Remove Var / Init clauses.
2227         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2228         -specs option.
2229         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2230         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2231         (SYMBOL_FLAG_IO_LOW): Define.
2232         (avr_device_to_as, avr_device_to_ld): Don't declare.
2233         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2234         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2235         (EXTRA_SPEC_FUNCTIONS): Don't define.
2236         (ASM_SPEC): Translate -arch= option to -mmcu= option.
2237         (LINK_SPEC): Translate -arch= option to -m= option.
2238         Don't use device_to_ld / device_to_data_start.
2239         (STARTFILE_SPEC): Now empty.
2240         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2241         * config/avr/gen-avr-mmcu-specs.c: New file.
2242         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2243         (s-device-specs): Likewise.
2244         (GCC_PASSES): Add s-device-specs.
2245         (install-driver): Depend on install-device-specs.
2246         (install-device-specs): New rule.
2247         * config/avr/avr.c (avr_option_override): Look up mcu arch by
2248         avr_arch_index and provide fallback initialization for avr_n_flash.
2249         (varasm.h): #include.
2250         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2251         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2252         (avr_attribute_table): Add "io", "address" and "io_low".
2253         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2254         Add special handling for symbols with "io" and/or "address" attributes.
2255         (avr_asm_asm_output_aligned_bss): New function.
2256         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2257         as appropriate.  Handle io_low attribute.
2258         (avr_out_sbxx_branch): Handle symbolic io addresses.
2259         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2260         avr_n_flash instead of avr_current_device->n_flash.
2261         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2262         (avr_emit_movmemhi): Likewise.
2263         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2264         Use TARGET_RMW instead of avr_current_device->dev_attributes.
2265         Don't define avr_current_device->macro (that's the specfile's job).
2266         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2267         * config/avr/avr.c (avr_2word_insn_p): Likewise.
2268         * config/avr/avr.md (*cpse.ne): Likewise.
2269         (mov<mode>): Use avr_eval_addr_attrib.
2270         (cbi): Change constraint for low_io_address_operand operand to "i".
2271         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2272         * config/avr/predicates.md (io_address_operand):
2273         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2274         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2275         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2276         Update prototype.
2277         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2278         * config/avr/genmultilib.awk: Use -march=.
2279         Remove Multilib matches processing.
2280         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2281         * config/avr/avr-arch.h: Add double include guard.
2282         (avr_mcu_t) <library_name>: Update comment.
2283         * config/avr/driver-avr.c (avr_device_to_as): Delete.
2284         (avr_device_to_ld, avr_device_to_data_start): Likewise.
2285         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2286         (avr_device_to_sp8): Likewise.
2287         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
2289         * doc/extend.texi (io, address): Document new AVR variable attributes.
2290         (io_low): Likewise.
2292 2014-10-09  Marek Polacek  <polacek@redhat.com>
2294         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2296 2014-10-08  Richard Biener  <rguenther@suse.de>
2298         PR tree-optimization/61969
2299         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
2300         variables.
2302 2014-10-09  Richard Biener  <rguenther@suse.de>
2304         PR tree-optimization/63445
2305         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
2306         overflow for non-equality compares.
2308 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
2310         PR rtl-optimization/57003
2311         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2312         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
2313         killing regs_invalidated_by_call.
2315 2014-10-08  Teresa Johnson  <tejohnson@google.com>
2317         PR bootstrap/63432.
2318         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
2319         (ssa_fix_duplicate_block_edges): Invoke it.
2320         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
2322 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
2324         PR target/52941
2325         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2326         atomic_fetch_<fetchop_name>si_hard,
2327         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
2328         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
2329         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
2330         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
2332 2014-10-08  Rong Xu  <xur@google.com>
2334         * gcov-tool.c (profile_overlap): New driver function
2335         to compute profile overlap.
2336         (print_overlap_usage_message): New.
2337         (overlap_usage): New.
2338         (do_overlap): New.
2339         (print_usage): Add calls to overlap function.
2340         (main): Ditto.
2341         * doc/gcov-tool.texi: Add documentation.
2343 2014-10-08  Steve Ellcey  <sellcey@mips.com>
2345         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
2346         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
2348 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
2350         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
2351         pattern matching of MEM_REF.
2352         (check_stmt_for_type_change): Update.
2354 2014-10-08  Steve Ellcey  <sellcey@mips.com>
2356         * config/mips/linux64.h: Remove.
2357         * config/mips/gnu-user64.h: Remove.
2358         * gcc.config (mips*-*-*): Remove references to linux64.h and
2359         gnu-user64.h
2360         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
2361         with modified version from gnu-user64.h.
2362         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
2363         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
2364         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
2365         linux64.h.
2366         (GNU_USER_LINK_EMULATION64): Ditto.
2367         (GNU_USER_LINK_EMULATIONN32): Ditto.
2368         (GLIBC_DYNAMIC_LINKER32): Ditto.
2369         (GLIBC_DYNAMIC_LINKER64): Ditto.
2370         (GLIBC_DYNAMIC_LINKERN32): Ditto.
2371         (UCLIBC_DYNAMIC_LINKER32): Ditto.
2372         (UCLIBC_DYNAMIC_LINKER64): Ditto.
2373         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
2374         (BIONIC_DYNAMIC_LINKERN32): Ditto.
2375         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
2376         (GLIBC_DYNAMIC_LINKER): Delete.
2377         (UCLIBC_DYNAMIC_LINKER): Delete.
2379 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
2380             Richard Biener  <rguenther@suse.de>
2382         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
2383         Get address space from operand 0 (BASE).
2385 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
2387         PR target/61387
2388         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
2390 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
2392         * dwarf2out.c: Remove current_function_has_inlines.
2393         (gen_subprogram_die): Same.
2394         (gen_inlined_subroutine_die): Same.
2396 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
2398         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
2399         type.
2400         (_addcarry_u64): Ditto.
2401         (_addcarryx_u64): Ditto.
2403 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
2405         * cgraph.h (cgraph_node::get_fun): Declare.
2406         * cgraph.c (cgraph_node::get_fun): New method.
2407         * ipa-inline.c (can_inline_edge_p): Use it.
2409 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
2411         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
2412         and -ftrapping-math.
2413         * lto-wrapper.c (merge_and_complain): Likewise.
2414         (run_gcc): Likewise.
2416 2014-10-06  Rong Xu  <xur@google.com>
2418         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
2419         * tree-profile.c: (params.h): New include.
2420         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
2421         and __gcov_indirect_call_topn_counters for
2422         indirect_call_topn_profile.
2423         (gimple_init_edge_profiler): New decls for
2424         __gcov_indirect_call_topn_profiler.
2425         (gimple_gen_ic_profiler): Generate the correct profiler call.
2426         (gimple_gen_ic_func_profiler): Fix format.
2427         * value-prof.c (params.h): New include.
2428         (dump_histogram_value): Hanlde indirect_call_topn counters.
2429         (stream_in_histogram_value): Ditto.
2430         (gimple_indirect_call_to_profile): Use indirect_call_topn
2431         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
2432         (gimple_find_values_to_profile): Hanlde indirect_call_topn
2433         counters.
2434         * value-prof.h (enum hist_type): Histrogram type for
2435         indirect_call_topn counters.
2436         * profile.c (instrument_values): Instrument
2437         indirect_call_topn counters.
2439 2014-10-06  Rong Xu  <xur@google.com>
2441         * Makefile.in: Fix dependence.
2442         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
2443         indirect call topn profiler.
2444         * gcov-io.h: Ditto.
2446 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2448         * calls.c (expand_call): Do not use the target as the return slot if
2449         it is not sufficiently aligned.
2451 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2453         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
2454         discussion of permutes and why we don't handle them.
2456 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2458         * config/sparc/predicates.md (int_register_operand): Delete.
2460 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2462         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
2464 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
2466         * ubsan.h (ubsan_get_source_location): New prototype.
2467         * ubsan.c (ubsan_source_location_type): New variable.
2468         Function renamed to ...
2469         (ubsan_get_source_location_type): ... this.  Cache
2470         return value in ubsan_source_location_type variable.
2471         (ubsan_source_location, ubsan_create_data): Use
2472         ubsan_get_source_location_type instead of
2473         ubsan_source_location_type.
2474         * asan.c (asan_protect_global): Don't protect globals
2475         with ubsan_get_source_location_type () type.
2476         (asan_add_global): Provide global decl location info
2477         if possible.
2479 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2481         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
2482         sanity check.
2484 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2486         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
2487         on size.
2488         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
2489         into vptr pointer.
2490         (ipa_polymorphic_call_context::dump): Fix formating.
2491         (walk_ssa_copies): Add logic avoiding loops; update uses.
2492         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
2494 2014-10-02  Mark Wielaard  <mjw@redhat.com>
2496         PR debug/63239
2497         * dwarf2out.c (gen_subprogram_die): When a member function is
2498         explicitly deleted then add a DW_AT_GNU_deleted attribute.
2499         * langhooks.h (struct lang_hooks_for_decls): Add
2500         function_decl_deleted_p langhook.
2501         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
2502         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
2504 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2506         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
2507         NULL pointer checks.
2508         (ipa_polymorphic_call_context::get_dynamic_type): Return true
2509         if type doesn't change.
2510         * cgraph.h (cgraph_indirect_call_info): New flag.
2511         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
2512         (cgraph_node::dump): Dump it.
2513         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
2514         of context.get_dynamic_type.
2515         (ipa_make_edge_direct_to_target): Do not speculate
2516         edge that is already speuclative.
2517         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
2518         speculate to __builtin_unreachable
2519         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
2520         vptr_changed.
2521         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
2523 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2525         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
2526         get_dynamic_type; drop TODO.
2527         * ipa-polymorphic-call.c
2528         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
2529         for otr_type to be unknown.
2531 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
2533         * common/config/score/score-common.c: Remove.
2534         * config.gcc: Remove support for score-*.
2535         * config/score/constraints.md: Remove.
2536         * config/score/elf.h: Remove.
2537         * config/score/predicates.md: Remove.
2538         * config/score/score-conv.h: Remove.
2539         * config/score/score-generic.md: Remove.
2540         * config/score/score-modes.def: Remove.
2541         * config/score/score-protos.h: Remove.
2542         * config/score/score.c: Remove.
2543         * config/score/score.h: Remove.
2544         * config/score/score.md: Remove.
2545         * config/score/score.opt: Remove.
2546         * doc/md.texi: Don't document score-*.
2548 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
2550         PR pch/63429
2551         * genconditions.c: Directly include ggc.h before rtl.h.
2553 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
2555         * ipa-polymorphic-call.c
2556         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2557         code determining speculative type.
2558         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2560 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2562         * altivec.md (altivec_lvsl): New define_expand.
2563         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2564         (altivec_lvsr): New define_expand.
2565         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2566         * rs6000.c (rs6000_expand_builtin): Change to use
2567         altivec_lvs[lr]_direct; remove commented-out code.
2569 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2571         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2572         Issue a warning message when vec_lvsl or vec_lvsr is used with a
2573         little endian target.
2575 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2577         * tree-pretty-print.c (dump_location): Make it extern. Dump also
2578         the column.
2579         * tree-pretty-print.h (dump_location): Declare.
2580         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2581         (pp_gimple_stmt_1): Likewise.
2582         (dump_implicit_edges): Likewise.
2583         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2584         LOCATION_LINE.
2587 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
2589         * gcc.c (driver::global_initializations): Remove "const" so
2590         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2591         and decoded_options_count.
2593 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2595         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2596         macro.
2597         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2598         TARGET_E500_DOUBLE case here.
2600 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
2602         PR c++/54427
2603         PR c++/57198
2604         PR c++/58845
2605         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2607 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
2609         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2610         * lto-cgraph.c (lto_output_edge, input_edge): Stream
2611         in_polymorphic_cdtor
2612         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2613         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2614         * cgraphclones.c (cgraph_edge::clone): Likewise.
2615         * ipa-prop.c (update_jump_functions_after_inlining,
2616         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2617         to possible_dynamic_type_change.
2618         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2619         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2620         IN_POLY_CDOTR argument.
2622         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2623         for BASE and OUTER_TYPE being NULL.
2624         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2625         in_poly_cdtor parameter.
2627 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
2629         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2630         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2631         TARGET_AVX512F.
2632         (expand_vec_perm_1): Likewise.
2634 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
2635             Uros Bizjak  <ubizjak@gmail.com>
2637         PR tree-optimization/61403
2638         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2639         error in comment.  Also optimize 256-bit vectors for AVX2
2640         or AVX (floating vectors only), provided the first permutation
2641         can be performed in one insn.
2643 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
2645         * gcc.c (class driver): New class.
2646         (main): Reimplement in terms of driver::main, moving most of the
2647         locals to be locals within individual methods of class driver.
2648         The remaining locals "explicit_link_files", "decoded_options" and
2649         "decoded_options_count" are used by multiple driver:: methods, and
2650         so become member data.  Doing so isolates the argc/argv reads and
2651         writes.  Replace "goto out" with a special exit code from
2652         new method driver::prepare_infiles.  Split out the old
2653         implementation of main into the following...
2654         (driver::main): New function, corresponding to the old "main"
2655         implementation.
2656         (driver::set_progname): New function, taken from the old
2657         "main" implementation.
2658         (driver::expand_at_files): Likewise.
2659         (driver::decode_argv): Likewise.
2660         (driver::global_initializations): Likewise.
2661         (driver::build_multilib_strings): Likewise.
2662         (driver::set_up_specs): Likewise.
2663         (driver::putenv_COLLECT_GCC): Likewise.
2664         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2665         (driver::handle_unrecognized_options): Likewise.
2666         (driver::maybe_print_and_exit): Likewise.
2667         (driver::prepare_infiles): Likewise.
2668         (driver::do_spec_on_infiles): Likewise.
2669         (driver::maybe_run_linker): Likewise.
2670         (driver::final_actions): Likewise.
2671         (driver::get_exit_code): Likewise.
2673 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
2675         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2676         don't emit empty ctors.
2678 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
2680         * convert.c (convert_to_integer): Do not introduce useless conversions
2681         between integral types.
2683 2014-10-03  David Sherwood  <david.sherwood@arm.com>
2685         * ira-int.h (ira_allocno): Mark hard_regno as signed.
2687 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
2689         * lra-constraints.c (inherit_in_ebb): Handle calls with
2690         multiple return values.
2691         * caller-save.c (save_call_clobbered_regs): Likewise.
2693 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
2695         * tree-vect-data-refs.c (vect_permute_load_chain,
2696         vect_shift_permute_load_chain): Fix a typo in temporary var names,
2697         suffle3 to shuffle3.
2699         PR libgomp/61200
2700         * omp-low.c (taskreg_contexts): New variable.
2701         (scan_omp_parallel): Push newly created context into taskreg_contexts
2702         vector and move record layout code to finish_taskreg_scan.
2703         (scan_omp_task): Likewise.
2704         (finish_taskreg_scan): New function.
2705         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
2706         vector elements and release it.
2708         PR target/62128
2709         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
2710         of palignr arguments can't be used due to min 0 or max - min
2711         too high, try also op0, op1 order of palignr arguments.
2713 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
2715         * cgraph.h (ipa_polymorphic_call_context):
2716         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
2717         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
2718         * ipa-polymorphic-call.c
2719         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
2720         past end of dynamic types.
2721         (ipa_polymorphic_call_context::stream_out,
2722         speculative_outer_type): Stream dynamic flag.
2723         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
2724         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
2725         Clear DYNAMIC.
2726         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
2727         set it.
2728         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
2729         * ipa-prop.c (update_jump_functions_after_inlining,
2730         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
2732 2014-10-02  Teresa Johnson  <tejohnson@google.com>
2734         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
2735         up when synthesizing counts to avoid rounding errors.
2737 2014-10-02  Teresa Johnson  <tejohnson@google.com>
2739         PR middle-end/63422
2740         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
2741         asserts to handle incoming insanities.
2743 2014-10-02  Martin Jambor  <mjambor@suse.cz>
2745         PR tree-optimization/63375
2746         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
2747         references.
2749 2014-10-02  Olivier Hainque  <hainque@adacore.com>
2751         * Makefile.in (CROSS): Define, to @CROSS.
2753 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
2755         PR target/62128
2756         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
2757         if it expands to a single insn only.
2758         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
2759         fail unless in_order is true.  Add forward declaration.
2760         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
2761         is useful for one_operand_p.
2762         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
2764 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2766         * cgraphclones.c (build_function_type_skip_args): Do not make new
2767         type variant of old.
2769 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2771         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
2772         when speculation is added.
2773         (ipa_edge_args): Add polymorphic_call_contexts.
2774         (ipa_get_ith_polymorhic_call_context): New accesor.
2775         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
2776         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
2777         (ipa_compute_jump_functions_for_edge): Compute contexts.
2778         (update_jump_functions_after_inlining): Update contexts.
2779         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
2780         update dumping; add speculative edge creation.
2781         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
2782         context updating.
2783         (update_indirect_edges_after_inlining): Pass down context.
2784         (ipa_edge_duplication_hook): Duplicate contexts.
2785         (ipa_write_node_info): Stream out contexts.
2786         (ipa_read_node_info): Stream in contexts.
2787         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
2788         types.
2789         (try_speculative_devirtualization): New function.
2790         * ipa-utils.h (try_speculative_devirtualization): Declare.
2792 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2794         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
2795         dumping during WPA.
2797 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2799         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
2800         type variants.
2802 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2804         * ipa-polymorphic-call.c
2805         (ipa_polymorphic_call_context::restrict_to_inner_class):
2806         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
2807         use speculation_consistent_p to do so; Add CONSDER_BASES
2808         and CONSIDER_PLACEMENT_NEW parameters.
2809         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
2810         short circuit obvious cases.
2811         (ipa_polymorphic_call_context::dump): Improve formatting.
2812         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
2813         combine_speculation_with to record speculations; Do not ICE when
2814         object is located in pointer type decl; do not ICE for methods
2815         of UNION_TYPE; do not record nonpolymorphic types.
2816         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
2817         (ipa_polymorphic_call_context::combine_speculation_with): New method.
2818         (ipa_polymorphic_call_context::combine_with): New method.
2819         (ipa_polymorphic_call_context::make_speculative): Move here; use
2820         combine speculation.
2821         * cgraph.h (ipa_polymorphic_call_context): Update
2822         restrict_to_inner_class prototype; add offset_by, make_speculative,
2823         combine_with, useless_p, combine_speculation_with and
2824         speculation_consistent_p methods.
2825         (ipa_polymorphic_call_context::offset_by): New method.
2826         (ipa_polymorphic_call_context::useless_p): New method.
2828 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2830         PR rtl-optimization/62151
2831         * combine.c (can_combine_p): Allow the destination register of INSN
2832         to be clobbered in I3.
2833         (subst): Do not substitute into clobbers of registers.
2835 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
2837         PR debug/63342
2838         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
2839         offset, TARGET_MEM_REF and SSA_NAME.
2841         * config/i386/i386.c (expand_vec_perm_palignr): Handle
2842         256-bit vectors for TARGET_AVX2.
2844         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
2845         dfirst permutation.
2847         PR target/63428
2848         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
2849         argument to avx2_permv2ti.
2851 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2853         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
2855 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
2857         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
2858         (fmod<mode>3): Ditto.
2859         (fpremxf4_i387): Ditto.
2860         (reminderxf3): Ditto.
2861         (reminder<mode>3): Ditto.
2862         (fprem1xf4_i387): Ditto.
2864 2014-09-30  Teresa Johnson  <tejohnson@google.com>
2866         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
2867         duplicate_blocks bitmap.
2868         (remove_ctrl_stmt_and_useless_edges): Ditto.
2869         (create_block_for_threading): Ditto.
2870         (compute_path_counts): New function.
2871         (update_profile): Ditto.
2872         (recompute_probabilities): Ditto.
2873         (update_joiner_offpath_counts): Ditto.
2874         (freqs_to_counts_path): Ditto.
2875         (clear_counts_path): Ditto.
2876         (ssa_fix_duplicate_block_edges): Update profile info.
2877         (ssa_create_duplicates): Pass new parameter.
2878         (ssa_redirect_edges): Remove old profile update.
2879         (thread_block_1): New duplicate_blocks bitmap,
2880         remove old profile update.
2881         (thread_single_edge): Pass new parameter.
2883 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
2885         PR middle-end/62120
2886         * varasm.c (decode_reg_name_and_count): Check availability for
2887         registers from ADDITIONAL_REGISTER_NAMES.
2889 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
2891         PR plugins/63410
2892         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
2893         (PLUGIN_HEADERS): Add pass-instances.def.
2895 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
2897         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
2898         iterator.
2899         * config/aarch64/aarch64-simd.md
2900         (aarch64_sqdmull_laneq<mode>): Expand iterator.
2901         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
2902         (vqdmulls_lane_s32): Fix return type.
2903         (vqdmulls_laneq_s32): New.
2905 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
2907         PR inline-asm/63282
2908         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
2909         or invert_jump_1 if jump isn't any_condjump_p.
2911 2014-09-30  Terry Guo  <terry.guo@arm.com>
2913         * config/arm/arm-cores.def (cortex-m7): New core name.
2914         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
2915         (fpv5-d16): Ditto.
2916         * config/arm/arm-tables.opt: Regenerated.
2917         * config/arm/arm-tune.md: Regenerated.
2918         * config/arm/arm.h (TARGET_VFP5): New macro.
2919         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
2920         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
2921         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
2922         * doc/invoke.texi: Document new cpu and fpu names.
2924 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
2926         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
2927         before sinking insn.
2929 2014-09-30  David Sherwood  <david.sherwood@arm.com>
2931         * ira-int.h (ira_allocno): Add "wmode" field.
2932         * ira-build.c (create_insn_allocnos): Add new "parent" function
2933         parameter.
2934         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
2935         that cannot be accessed in wmode.
2937 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
2939         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
2940         integer overflow.
2942 2014-09-29  Andi Kleen  <ak@linux.intel.com>
2944         * opts.c (print_filtered_help): Print --param min/max/default
2945         with -Q.
2947 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2949         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
2951 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
2953         * tree-vrp.c (get_single_symbol): New function.
2954         (build_symbolic_expr): Likewise.
2955         (symbolic_range_based_on_p): New predicate.
2956         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
2957         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
2958         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
2959         operand is symbolic and based on the other operand.
2961 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
2963         * config/microblaze/microblaze.md (call_internal1): Use VOID
2964         instead of SI to fix "((void (*)(void)) 0)()" issue
2966 2014-09-29  Nick Clifton  <nickc@redhat.com>
2968         * config/msp430/msp430.c (msp430_expand_prologue): Return a
2969         CLOBBER rtx for naked functions.
2970         (msp430_expand_epilogue): Likewise.
2971         (msp430_use_f5_series_hwmult): Cache result.
2972         (use_32bit_hwmult): Cache result.
2973         (msp430_no_hwmult): New function.
2974         (msp430_output_labelref): Use it.
2976 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
2978         PR middle-end/63247
2979         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
2980         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
2981         use the alignment of avar rather than ovar.
2983 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
2985         * config/pa/pa.c (pa_output_function_epilogue): Only update
2986         last_address when a nonnote insn is found.
2988 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
2990         PR ipa/60665
2991         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
2993 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
2995         PR ipa/62121
2996         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
2997         fix pasto in checking array size.
2999 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3001         PR middle-end/35545
3002         * passes.def (pass_tracer): Move before last dominator pass.
3004 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
3006         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
3007         users.
3008         (run_attempt): Handle errors of "pex_run" invocation.
3010 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
3012         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3013         (CC1_SPEC): Define.
3014         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3015         (TARGET_ASAN_SHADOW_OFFSET): Define.
3017 2014-09-26  Martin Liska  <mliska@suse.cz>
3019         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3020         introduced.
3021         * cgraph.h: Likewise.
3022         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3023         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3024         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3025         * tree-ssa-alias.h: Likewise.
3027 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
3028             Max Ostapenko  <m.ostapenko@partner.samsung.com>
3030         * common.opt: New option.
3031         * doc/invoke.texi: Describe new option.
3032         * gcc.c (execute): Don't free first string early, but at the end
3033         of the function.  Call retry_ice if compiler exited with
3034         ICE_EXIT_CODE.
3035         (main): Factor out common code.
3036         (print_configuration): New function.
3037         (files_equal_p): Likewise.
3038         (check_repro): Likewise.
3039         (run_attempt): Likewise.
3040         (do_report_bug): Likewise.
3041         (append_text): Likewise.
3042         (try_generate_repro): Likewise
3044 2014-09-25  Andi Kleen  <ak@linux.intel.com>
3046         * config/i386/i386.c (x86_print_call_or_nop): New function.
3047         (x86_function_profiler): Support -mnop-mcount and
3048         -mrecord-mcount.
3049         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3050         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3052 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3054         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3055         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3056         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3057         Remove.
3059 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3061         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3062         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3063         types_odr_comparable): Declare.
3064         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3065         * ipa-polymorphic-call.c: New file.
3066         (contains_polymorphic_type_p, possible_placement_new,
3067         ipa_polymorphic_call_context::restrict_to_inner_class,
3068         contains_type_p, decl_maybe_in_construction_p,
3069         ipa_polymorphic_call_context::stream_out,
3070         ipa_polymorphic_call_context::debug,
3071         ipa_polymorphic_call_context::stream_in,
3072         ipa_polymorphic_call_context::set_by_decl,
3073         ipa_polymorphic_call_context::set_by_invariant,
3074         walk_ssa_copies,
3075         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3076         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3077         extr_type_from_vtbl_ptr_store, record_known_type
3078         check_stmt_for_type_change,
3079         ipa_polymorphic_call_context::get_dynamic_type): Move here from
3080         ipa-devirt.c
3081         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3082         and streamer-hooks.h
3083         (contains_polymorphic_type_p, possible_placement_new,
3084         ipa_polymorphic_call_context::restrict_to_inner_class,
3085         contains_type_p, decl_maybe_in_construction_p,
3086         ipa_polymorphic_call_context::stream_out,
3087         ipa_polymorphic_call_context::debug,
3088         ipa_polymorphic_call_context::stream_in,
3089         ipa_polymorphic_call_context::set_by_decl,
3090         ipa_polymorphic_call_context::set_by_invariant,
3091         walk_ssa_copies,
3092         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3093         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3094         extr_type_from_vtbl_ptr_store, record_known_type
3095         check_stmt_for_type_change,
3096         ipa_polymorphic_call_context::get_dynamic_type): Move to
3097         ipa-polymorphic-call.c
3098         (type_all_derivations_known_p, types_odr_comparable,
3099         types_must_be_same_for_odr): Export.
3100         (type_known_to_have_no_deriavations_p): New function.
3101         * Makefile.in: Add ipa-polymorphic-call.c
3103 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3105         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3106         for better storage.
3107         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3108         (possible_polymorphic_call_targets): Instead of computing both
3109         speculative and non-speculative answers, do just one at a time.
3110         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3111         (dump_targets): Break out from ...
3112         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3113         and non-speculative lists.
3114         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3115         * ipa-utils.h (possible_polymorphic_call_targets): Update.
3117 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
3119         PR rtl-optimization/63348
3120         * emit-rtl.c (try_split): Do not emit extra barrier.
3122 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
3124         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3125         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3126         new predicates.
3127         (aarch64_<sur>shll2_n<mode>): Likewise.
3128         (aarch64_<sur>shr_n<mode>): Likewise.
3129         (aarch64_<sur>sra_n<mode>: Likewise.
3130         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3131         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3132         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3133         * config/aarch64/iterators.md (ve_mode): New.
3134         (offsetlr): Remap to infix text for use in new predicates.
3135         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3136         (aarch64_simd_shift_imm_hi): Likewise.
3137         (aarch64_simd_shift_imm_si): Likewise.
3138         (aarch64_simd_shift_imm_di): Likewise.
3139         (aarch64_simd_shift_imm_offset_qi): Likewise.
3140         (aarch64_simd_shift_imm_offset_hi): Likewise.
3141         (aarch64_simd_shift_imm_offset_si): Likewise.
3142         (aarch64_simd_shift_imm_offset_di): Likewise.
3143         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3144         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3145         (aarch64_simd_shift_imm_bitsize_si): Likewise.
3146         (aarch64_simd_shift_imm_bitsize_di): Likewise.
3148 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
3150         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3151         new created BB as the intersection of live-in from "old_dest" and
3152         live-out from "bb".
3154 2014-09-25  Felix Yang  <felix.yang@huawei.com>
3156         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3157         * genautomata.c (merge_states): Ditto.
3159 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
3161         PR target/62218
3162         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
3163         in instruction sequence.
3165 2014-09-25  Nick Clifton  <nickc@redhat.com>
3167         PR target/62218
3168         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
3169         in instruction sequence.
3171 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3173         PR target/63335
3174         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
3175         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
3177 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3178             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3179             Anna Tikhonova  <anna.tikhonova@intel.com>
3180             Ilya Tocar  <ilya.tocar@intel.com>
3181             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3182             Ilya Verbin  <ilya.verbin@intel.com>
3183             Kirill Yukhin  <kirill.yukhin@intel.com>
3184             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3186         * config/i386/sse.md
3187         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
3188         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
3189         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
3190         (define_expand "<avx512>_perm<mode>_mask"): ... this.
3191         Use VI8F_256_512 mode iterator.
3192         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
3193         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
3195 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3196             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3197             Anna Tikhonova  <anna.tikhonova@intel.com>
3198             Ilya Tocar  <ilya.tocar@intel.com>
3199             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3200             Ilya Verbin  <ilya.verbin@intel.com>
3201             Kirill Yukhin  <kirill.yukhin@intel.com>
3202             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3204         * config/i386/sse.md
3205         (define_insn "avx_movshdup256<mask_name>"): Add masking.
3206         (define_insn "sse3_movshdup<mask_name>"): Ditto.
3207         (define_insn "avx_movsldup256<mask_name>"): Ditto.
3208         (define_insn "sse3_movsldup<mask_name>"): Ditto.
3209         (define_insn "vec_dupv2df<mask_name>"): Ditto.
3210         (define_insn "*vec_concatv2df"): Add EVEX version.
3212 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3213             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3214             Anna Tikhonova  <anna.tikhonova@intel.com>
3215             Ilya Tocar  <ilya.tocar@intel.com>
3216             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3217             Ilya Verbin  <ilya.verbin@intel.com>
3218             Kirill Yukhin  <kirill.yukhin@intel.com>
3219             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3221         * config/i386/sse.md
3222         (define_insn "vec_set<mode>_0"): Add EVEX version.
3224 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3225             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3226             Anna Tikhonova  <anna.tikhonova@intel.com>
3227             Ilya Tocar  <ilya.tocar@intel.com>
3228             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3229             Ilya Verbin  <ilya.verbin@intel.com>
3230             Kirill Yukhin  <kirill.yukhin@intel.com>
3231             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3233         * config/i386/sse.md
3234         (define_insn
3235         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3236         New.
3237         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3238         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3239         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3240         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3241         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3242         (define_expand "sse2_cvtpd2ps_mask): New.
3243         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3244         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3246 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3247             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3248             Anna Tikhonova  <anna.tikhonova@intel.com>
3249             Ilya Tocar  <ilya.tocar@intel.com>
3250             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3251             Ilya Verbin  <ilya.verbin@intel.com>
3252             Kirill Yukhin  <kirill.yukhin@intel.com>
3253             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3255         * config/i386/i386.c
3256         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3257         (ufix_notruncv8dfv8si2_mask_round): ... this.
3258         * config/i386/sse.md
3259         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3260         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3261         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3262         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3263         (define_expand "sse2_cvtpd2dq"): Delete.
3264         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3265         make 2nd operand const0 vector.
3266         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3267         Delete.
3268         (define_mode_attr pd2udqsuff): New.
3269         (define_insn
3270         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3271         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3272         (define_insn "*avx_cvttpd2dq256_2"): Delete.
3273         (define_expand "sse2_cvttpd2dq"): Ditto.
3274         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3275         make 2nd operand const0 vector.
3277 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
3279         PR tree-optimization/63341
3280         * tree-vectorizer.h (vect_create_data_ref_ptr,
3281         vect_create_addr_base_for_vector_ref): Add another tree argument
3282         defaulting to NULL_TREE.
3283         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3284         argument, pass it down to vect_create_addr_base_for_vector_ref.
3285         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3286         add that to base_offset too if non-NULL.
3287         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3288         for dr_explicit_realign_optimized set it to vector byte size
3289         - 1 instead of setting offset, pass byte_offset down to
3290         vect_create_data_ref_ptr.
3292 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
3294         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
3295         forgotten debug output; canonicalize querries more wtih LTO.
3297 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
3299         * cgraph.h (class ipa_polymorphic_call_context): Move here from
3300         ipa-utils.h; add stream_int and stream_out methods.
3301         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
3302         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
3303         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
3304         add CONTEXT.
3305         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3306         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3307         ipa_polymorphic_call_context::clear_speculation,
3308         ipa_polymorphic_call_context::clear_outer_type): Move here from
3309         ipa-utils.h
3310         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
3311         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3312         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3313         ipa_polymorphic_call_context::clear_speculation,
3314         ipa_polymorphic_call_context::clear_outer_type): Likewise.
3315         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
3316         streamer-hooks.h
3317         (ipa_polymorphic_call_context::stream_out): New method.
3318         (ipa_polymorphic_call_context::stream_in): New method.
3319         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
3320         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
3321         OUTER_TYPE.
3322         (ipa_analyze_call_uses): Simplify.
3323         (update_indirect_edges_after_inlining): Do not care about outer_type.
3324         (ipa_write_indirect_edge_info): Update.
3325         (ipa_write_indirect_edge_info): Likewise.
3326         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
3327         (dump_edge_flags): Break out from ...
3328         (cgraph_node::dump): ... here; dump indirect edges.
3330 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
3332         * ipa-utils.h (polymorphic_call_context): Add
3333         metdhos dump, debug and clear_outer_type.
3334         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3335         (ipa_polymorphic_call_context::clear_outer_type): New method.
3336         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
3337         * ipa-devirt.c (types_odr_comparable): New function.
3338         (types_must_be_same_for_odr): New function.
3339         (odr_subtypes_equivalent_p): Simplify.
3340         (possible_placement_new): Break out from ...
3341         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
3342         be more cuatious about returning false in cases the context may be
3343         valid in derived type or via placement new.
3344         (contains_type_p): Clear maybe_derived_type
3345         (ipa_polymorphic_call_context::dump): New method.
3346         (ipa_polymorphic_call_context::debug): New method.
3347         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
3348         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
3349         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3350         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
3351         to suceed on all valid cases; remove confused sanity check.
3352         (dump_possible_polymorphic_call_targets): Simplify.
3354 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
3356         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
3357         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
3358         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
3359         varpool.c: Rename all instances of DECL_ABSTRACT to
3360         DECL_ABSTRACT_P.
3362 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3364         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
3365         special handling for stores whose SET_SRC is an UNSPEC (such as
3366         UNSPEC_STVE).
3368 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
3370         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
3371         !REG_P (src) to release more instruction sink opportunities.
3373 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3375         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
3376         move costs for 128-bit types.
3378 2014-09-24  Martin Jambor  <mjambor@suse.cz>
3380         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
3381         when duplicating a PASS_THROUGH jump function when creating a
3382         speculative edge.
3384 2014-09-24  Marek Polacek  <polacek@redhat.com>
3386         PR c/61405
3387         PR c/53874
3388         * asan.c (maybe_instrument_call): Add default case.
3389         * ipa-pure-const.c (special_builtin_state): Likewise.
3390         * predict.c (expr_expected_value_1): Likewise.
3391         * lto-streamer-out.c (write_symbol): Initialize variable.
3393 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3395         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
3396         the lane.
3397         (vmuld_laneq_f64): Likewise.
3398         (vmuls_lane_f32): Likewise.
3399         (vmuls_laneq_f32): Likewise.
3401 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
3403         PR bootstrap/63235
3404         * varpool.c (varpool_node::add): Pass decl attributes
3405         to lookup_attribute.
3407 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
3409         PR sanitizer/63316
3410         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
3412 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3414         PR tree-optimization/63266
3415         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
3416         marker for unknown byte value.
3417         (MARKER_MASK): New macro.
3418         (MARKER_BYTE_UNKNOWN): New macro.
3419         (HEAD_MARKER): New macro.
3420         (do_shift_rotate): Mark bytes with unknown values due to sign
3421         extension when doing an arithmetic right shift. Replace hardcoded
3422         mask for marker by new MARKER_MASK macro.
3423         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
3424         numbers accordingly.
3426 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3427             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3428             Anna Tikhonova  <anna.tikhonova@intel.com>
3429             Ilya Tocar  <ilya.tocar@intel.com>
3430             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3431             Ilya Verbin  <ilya.verbin@intel.com>
3432             Kirill Yukhin  <kirill.yukhin@intel.com>
3433             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3435         * config/i386/sse.md
3436         (define_insn
3437         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
3438         Add masking.
3439         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
3440         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
3442 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3443             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3444             Anna Tikhonova  <anna.tikhonova@intel.com>
3445             Ilya Tocar  <ilya.tocar@intel.com>
3446             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3447             Ilya Verbin  <ilya.verbin@intel.com>
3448             Kirill Yukhin  <kirill.yukhin@intel.com>
3449             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3451         * config/i386/sse.md
3452         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
3453         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
3454         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
3455         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
3456         (define_expand "avx512vl_pshuflw_mask"): New.
3457         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
3458         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
3459         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
3460         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
3461         (define_expand "avx512vl_pshufhw_mask"): New.
3462         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
3464 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3465             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3466             Anna Tikhonova  <anna.tikhonova@intel.com>
3467             Ilya Tocar  <ilya.tocar@intel.com>
3468             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3469             Ilya Verbin  <ilya.verbin@intel.com>
3470             Kirill Yukhin  <kirill.yukhin@intel.com>
3471             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3473         * config/i386/i386.c
3474         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
3475         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
3476         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
3477         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
3478         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
3479         * config/i386/sse.md
3480         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
3481         (define_insn
3482         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
3483         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
3484         (define_insn
3485         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
3486         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
3487         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
3488         (define_expand "avx512vl_pshufd_mask"): New.
3489         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
3491 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3492             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3493             Anna Tikhonova  <anna.tikhonova@intel.com>
3494             Ilya Tocar  <ilya.tocar@intel.com>
3495             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3496             Ilya Verbin  <ilya.verbin@intel.com>
3497             Kirill Yukhin  <kirill.yukhin@intel.com>
3498             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3500         * config/i386/i386.c
3501         (CODE_FOR_avx2_extracti128): Rename to ...
3502         (CODE_FOR_avx_vextractf128v4di): this.
3503         (CODE_FOR_avx2_inserti128): Rename to ...
3504         (CODE_FOR_avx_vinsertf128v4di): this.
3505         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
3506         CODE_FOR_avx_vextractf128v4di.
3507         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
3508         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
3509         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
3510         CODE_FOR_avx512vl_vinsertv8si.
3511         * config/i386/sse.md
3512         (define_expand
3513         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
3514         AVX512_VEC mode iterator.
3515         (define_insn
3516         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
3517         Ditto.
3518         (define_expand
3519         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
3520         AVX512_VEC_2 mode iterator.
3521         (define_insn "vec_set_lo_<mode><mask_name>"): New.
3522         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3523         (define_expand "avx512vl_vinsert<mode>"): Ditto.
3524         (define_insn "avx2_vec_set_lo_v4di"): Delete.
3525         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
3526         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
3527         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3528         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
3529         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3530         (define_expand "avx2_extracti128"): Delete.
3531         (define_expand "avx2_inserti128"): Ditto.
3533 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3534             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3535             Anna Tikhonova  <anna.tikhonova@intel.com>
3536             Ilya Tocar  <ilya.tocar@intel.com>
3537             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3538             Ilya Verbin  <ilya.verbin@intel.com>
3539             Kirill Yukhin  <kirill.yukhin@intel.com>
3540             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3542         * config/i386/sse.md
3543         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3544         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3545         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3546         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3547         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3548         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3549         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3550         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3551         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3552         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3553         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3554         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3555         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3557 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3559         PR rtl-optimization/63210
3560         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3561         HARD_REGNO is not available for CONFLICT_A.
3563 2014-09-23  Andi Kleen  <ak@linux.intel.com>
3565         * cgraph.h (symtab_node): Add no_reorder attribute.
3566         (symbol_table::output_asm_statements): Remove.
3567         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3568         (cgraph_node::create_version_clone): Dito.
3569         (symbol_table::output_asm_statements): Remove.
3570         * trans-mem.c (ipa_tm_create_version_alias): Dito.
3571         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3572         (output_in_order): Add no_reorder flag. Only handle no_reorder
3573         nodes when set.
3574         (symbol_table::compile): Add separate pass for no_reorder nodes.
3575         (process_common_attributes): Set no_reorder flag in symtab node.
3576         Add node argument.
3577         (process_function_and_variable_attributes): Pass symtab nodes to
3578         process_common_attributes.
3579         * doc/extend.texi (no_reorder): Document no_reorder attribute.
3580         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3581         (lto_output_varpool_node): Dito.
3582         (input_overwrite_node): Dito.
3583         (input_varpool_node): Dito.
3584         * varpool.c (varpool_node::add): Set no_reorder attribute.
3585         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3586         (symbol_table::output_variables): Dito.
3587         * symtab.c (symtab_node::dump_base): Print no_reorder.
3589 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
3591         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3592         be INVALID_REGNUM.
3594 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
3596         * configure: Regenerate.
3598 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
3600         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3601         when result_mode == shift_mode.
3603 2014-09-23  Kostya Serebryany  <kcc@google.com>
3605         Update to match the changed asan API.
3606         * asan.c (asan_global_struct): Update the __asan_global definition
3607         to match the new API.
3608         (asan_add_global): Ditto.
3609         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3610         to __asan_init_v4.
3612 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3614         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3615         refine the constraints used on 32/64-bit floating point moves.
3616         (f32_av): Likewise.
3617         (f64_vsx): Likewise.
3618         (f64_dm): Likewise.
3619         (f64_av): Likewise.
3620         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3621         (BOOL_REGS_OP1): Likewise.
3622         (BOOL_REGS_OP2): Likewise.
3623         (BOOL_REGS_UNARY): Likewise.
3624         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3625         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
3626         for moves involving VSX registers.  Do not use constraints that
3627         target VSX registers for decimal types.
3628         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3629         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3631 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
3633         * tree.h (int_bit_position): Turn into inline function;
3634         implement using wide int.
3635         * tree.c (int_bit_position): Remove.
3637 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
3639         PR bootstrap/63280
3640         * target-globals.c (target_globals::~target_globals): Fix location
3641         of ira_int destruction.
3643 2014-09-23  Renlin Li  <renlin.li@arm.com>
3645         * config/aarch64/aarch64.md (return): New.
3646         (simple_return): Likewise.
3647         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
3648         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
3650 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
3652         * common/config/aarch64/aarch64-common.c:
3653         (default_options aarch_option_optimization_table):
3654         Default to -fsched-pressure.
3656 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
3658         * cfgcleanup.c (try_optimize_cfg): Do not remove label
3659         with LABEL_PRESERVE_P flag set.
3661 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3662             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3663             Anna Tikhonova  <anna.tikhonova@intel.com>
3664             Ilya Tocar  <ilya.tocar@intel.com>
3665             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3666             Ilya Verbin  <ilya.verbin@intel.com>
3667             Kirill Yukhin  <kirill.yukhin@intel.com>
3668             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3670         * config/i386/sse.md
3671         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
3672         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3673         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3674         (define_insn "sse2_shufpd_v2df_mask"): New.
3676 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3677             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3678             Anna Tikhonova  <anna.tikhonova@intel.com>
3679             Ilya Tocar  <ilya.tocar@intel.com>
3680             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3681             Ilya Verbin  <ilya.verbin@intel.com>
3682             Kirill Yukhin  <kirill.yukhin@intel.com>
3683             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3685         * config/i386/sse.md
3686         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3687         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
3688         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
3689         (define_insn "sse_shufps_v4sf_mask"): New.
3691 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3692             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3693             Anna Tikhonova  <anna.tikhonova@intel.com>
3694             Ilya Tocar  <ilya.tocar@intel.com>
3695             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3696             Ilya Verbin  <ilya.verbin@intel.com>
3697             Kirill Yukhin  <kirill.yukhin@intel.com>
3698             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3700         * config/i386/sse.md
3701         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
3702         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
3703         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
3704         (define_insn "unpcklps128_mask"): New.
3706 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3707             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3708             Anna Tikhonova  <anna.tikhonova@intel.com>
3709             Ilya Tocar  <ilya.tocar@intel.com>
3710             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3711             Ilya Verbin  <ilya.verbin@intel.com>
3712             Kirill Yukhin  <kirill.yukhin@intel.com>
3713             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3715         * config/i386/sse.md
3716         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
3717         (define_insn "avx512vl_unpckhpd128_mask"): New.
3718         (define_expand "avx_movddup256<mask_name>"): Add masking.
3719         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
3720         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
3721         (define_insn "avx512vl_unpcklpd128_mask"): New.
3723 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
3725         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3726         * doc/tm.texi: Regenerate.
3727         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
3728         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3729         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3730         Remove.
3731         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3732         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3733         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3734         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3735         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3736         Remove.
3737         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3738         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3739         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3740         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3741         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3742         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3743         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3744         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3745         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3746         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3747         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3748         Remove.
3750 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
3752         * tree-ssa-ccp.c (prop_value_d): Rename to ...
3753         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
3754         * ipa-prop.c (struct type_change_info): Rename to ...
3755         (prop_type_change_info): ... this; update uses.
3756         * ggc-page.c (globals): Rename to ...
3757         (static struct ggc_globals): ... this; update uses.
3758         * tree-ssa-loop-im.c (mem_ref): Rename to ...
3759         (im_mem_ref): ... this; update uses.
3760         * ggc-common.c (loc_descriptor): Rename to ...
3761         (ggc_loc_descriptor): ... this; update uses.
3762         * lra-eliminations.c (elim_table): Rename to ...
3763         (lra_elim_table): ... this; update uses.
3764         * bitmap.c (output_info): Rename to ...
3765         (bitmap_output_info): ... this; update uses.
3766         * gcse.c (expr): Rename to ...
3767         (gcse_expr) ... this; update uses.
3768         (occr): Rename to ...
3769         (gcse_occr): .. this; update uses.
3770         * tree-ssa-copy.c (prop_value_d): Rename to ...
3771         (prop_value_t): ... this.
3772         * predict.c (block_info_def): Rename to ...
3773         (block_info): ... this; update uses.
3774         (edge_info_def): Rename to ...
3775         (edge_info): ... this; update uses.
3776         * profile.c (bb_info): Rename to ...
3777         (bb_profile_info): ... this; update uses.
3778         * alloc-pool.c (output_info): Rename to ...
3779         (pool_output_info): ... this; update uses.
3780         * ipa-cp.c (topo_info): Rename to ..
3781         (ipa_topo_info): ... this; update uses.
3782         * tree-nrv.c (nrv_data): Rename to ...
3783         (nrv_data_t): ... this; update uses.
3784         * ipa-split.c (bb_info): Rename to ...
3785         (split_bb_info): ... this one.
3786         * profile.h (edge_info): Rename to ...
3787         (edge_profile_info): ... this one; update uses.
3788         * dse.c (bb_info): Rename to ...
3789         (dse_bb_info): ... this one; update uses.
3790         * cprop.c (occr): Rename to ...
3791         (cprop_occr): ... this one; update uses.
3792         (expr): Rename to ...
3793         (cprop_expr): ... this one; update uses.
3795 2014-09-22  Jason Merrill  <jason@redhat.com>
3797         * Makefile.in (check-parallel-%): Add @.
3799 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
3801         * config/aarch64/geniterators.sh: New.
3802         * config/aarch64/iterators.md (VDQF_DF): New.
3803         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
3804         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
3806 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
3808         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
3809         -lnosys when -msim absent.
3811 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
3813         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3815 2014-09-22  Richard Biener  <rguenther@suse.de>
3817         * gimplify.c (gimplify_init_constructor): Do not leave
3818         non-GIMPLE vector constructors around.
3819         * tree-cfg.c (verify_gimple_assign_single): Verify that
3820         CONSTRUCTORs have gimple elements.
3822 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
3824         PR debug/63328
3825         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
3826         insert a debug source bind stmt setting DEBUG_EXPR_DECL
3827         instead of a normal gimple assignment stmt.
3829 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
3831         * config/bfin/bfin.md: Fix use of constraints in define_split.
3833 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3835         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
3836         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
3838 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3840         * hard-reg-set.h: Include hash-table.h.
3841         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
3842         field.
3843         * target-globals.c (target_globals::~target_globals): Call
3844         hard_regs->finalize.
3845         * rtl.h (subreg_shape): New structure.
3846         (shape_of_subreg): New function.
3847         (simplifiable_subregs): Declare.
3848         * reginfo.c (simplifiable_subreg): New structure.
3849         (simplifiable_subregs_hasher): Likewise.
3850         (simplifiable_subregs): New function.
3851         (invalid_mode_changes): Delete.
3852         (alid_mode_changes, valid_mode_changes_obstack): New variables.
3853         (record_subregs_of_mode): Remove subregs_of_mode parameter.
3854         Record valid mode changes in valid_mode_changes.
3855         (find_subregs_of_mode): Remove subregs_of_mode parameter.
3856         Update calls to record_subregs_of_mode.
3857         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
3858         handling.  Initialize new variables.  Update call to
3859         find_subregs_of_mode.
3860         (invalid_mode_change_p): Check new variables instead of
3861         invalid_mode_changes.
3862         (finish_subregs_of_mode): Finalize new variables instead of
3863         invalid_mode_changes.
3864         (target_hard_regs::finalize): New function.
3865         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
3866         even when CLASS_CANNOT_CHANGE_MODE is undefined.
3868 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3870         * combine.c (subst): Use simplify_subreg_regno rather than
3871         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
3873 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3875         * rtl.h (subreg_info): Expand commentary
3876         * rtlanal.c (subreg_get_info): Likewise.
3878 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3880         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3881         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3882         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
3884 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3886         * config/arm/arm.c: #include "tm-constrs.h"
3887         (thumb1_size_rtx_costs): Adjust rtx costs.
3889 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
3891         * configure.ac (target_header_dir): Move block defining
3892         this to before the block setting inhibit_libc.
3893         (inhibit_libc): When considering $with_headers, just
3894         check it it's explicitly "no".  If not, also check if
3895         $target_header_dir/stdio.h is present.  If not, set
3896         inhibit_libc=true.
3897         * configure: Regenerate.
3899 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
3901         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
3903 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3905         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
3906         insn for divides by integer powers of two.
3907         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
3908         (mod<mode>3): Fix formatting.
3909         (three anonymous define_insn and two define_split): Delete.
3911 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3913         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
3914         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
3915         (floatdisf2_internal2): Ditto.
3916         (ashrdi3_no_power): Ditto.  Fix formatting.
3918 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3920         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3921         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
3922         Tidy.
3924 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3926         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
3927         constant, use addsi3 directly.
3928         (three anonymous define_insn, two define_split): Delete.
3929         (sub<mode>3): Move.  Do not allow constant second operand.
3930         Generate different insn for constant first operand.
3931         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
3932         (subf<mode>3_imm): New.
3933         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
3934         (*plus_ltu<mode>): Only handle registers.
3935         (*plus_ltu<mode>_1): New.  Handle integer third operand.
3936         (*plus_gtu<mode>): Only handle registers.
3937         (*plus_gtu<mode>_1): New.  Handle integer third operand.
3939 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3941         * config/rs6000/rs6000.md (iorxor): New code_iterator.
3942         (iorxor): New code_attr.
3943         (IORXOR): New code_attr.
3944         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
3945         (ior<mode>3, xor<mode>3): Delete.
3946         (<iorxor><mode>3): New.
3947         (splitter for "big" integer ior, xor): New.
3948         (*bool<mode>3): Move.  Also handle AND.
3949         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
3950         (splitter for "big" integer ior, xor): Delete.
3952 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3954         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
3955         (two anonymous define_insn and two define_split): Delete.
3956         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
3958 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3960         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
3961         (two anonymous define_insn and two define_split): Delete.
3962         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
3964 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3966         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
3968 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3970         * config/rs6000/predicates.md (ca_operand): Allow subregs.
3971         (input_operand): Do not allow ca_operand.
3972         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
3973         carry bit, allow SImode and Pmode.
3974         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
3976 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
3978         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
3979         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
3980         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
3981         (*call_rex64_ms_sysv): Remove.
3982         (*call_value_rex64_ms_sysv): Ditto.
3983         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
3985 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
3987         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
3988         operand 3 to "CnL".
3990 2014-09-20  Andreas Schwab  <schwab@suse.de>
3992         * config/ia64/ia64.md: Remove constraints from define_split
3993         patterns.
3995 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
3997         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
3998         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
3999         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4000         (get_dynamic_type): Remove.
4001         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4002         (clear_speculation): Bring to ipa-deivrt.h
4003         (get_class_context): Rename to ...
4004         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4005         (contains_type_p): Update.
4006         (get_dynamic_type): Rename to ...
4007         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4008         (possible_polymorphic_call_targets): UPdate.
4009         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4010         * ipa-prop.c (ipa_analyze_call_uses): Update.
4012 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4014         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4015         privatize dynamic TLS variables.
4017 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4019         * diagnostic.c (warning_n): New function.
4020         * diagnostic-core.h (warning_n): Declare.
4021         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4022         output dynamic counts when available.
4024 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4026         PR tree-optimization/63255
4027         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4028         issue in setting body_removed flag.
4030 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4032         PR c++/61825
4033         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4034         that visibility change is possible
4035         (handle_weakref_attribute): Likewise.
4036         * cgraph.h (symtab_node): Add method get_create and
4037         field refuse_visibility_changes.
4038         (symtab_node::get_create): New method.
4039         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4040         * varasm.c (mark_weak): Verify that visibility change is
4041         possible.
4043 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
4045         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4046         for base_reg_operand to be common between LO_SUM and PLUS.
4047         (fusion_gpr_mem_combo): New predicate to match a fused address
4048         that combines the addis and memory offset address.
4050         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4051         calling signature.
4052         (emit_fusion_gpr_load): Likewise.
4054         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4055         signature to pass each argument separately, rather than
4056         using an operands array.  Rewrite the insns found by peephole2 to
4057         be a single insn, rather than hoping the insns will still be
4058         together when the peephole pass is done.  Drop being called via a
4059         normal peephole.
4060         (emit_fusion_gpr_load): Change calling signature to be called from
4061         the fusion_gpr_load_<mode> insns with a combined memory address
4062         instead of the peephole pass passing the addis and offset
4063         separately.
4065         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4066         fusion.
4067         (power8 fusion peephole): Drop support for doing power8 via a
4068         normal peephole that was created by the peephole2 pass.
4069         (power8 fusion peephole2): Create a new insn with the fused
4070         address, so that the fused operation is kept together after
4071         register allocation is done.
4072         (fusion_gpr_load_<mode>): Likewise.
4074 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4076         PR lto/63286
4077         * tree.c (need_assembler_name_p): Do not mangle variadic types.
4079 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
4081         * recog.c (scratch_operand): Do not simply allow all hard registers:
4082         only allow those that are allocatable.
4084 2014-09-19  Felix Yang  <felix.yang@huawei.com>
4086         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4087         comments and fix spacing to conform to coding style.
4089 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4091         * genrecog.c (validate_pattern): Allow empty constraints in
4092         a match_scratch.
4094 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
4096         * dwarf2out.c (decl_ultimate_origin): Update comment.
4097         * tree.c (block_ultimate_origin): Same.
4099 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4101         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4102         Update GCC version name to GCC 5.
4103         (rs6000_function_arg_boundary): Likewise.
4104         (rs6000_function_arg): Likewise.
4106 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4108         * config/sh/sh.md: Fix use of constraints in define_split.
4110 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
4112         PR ipa/61998
4113         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4115 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4117         * doc/md.texi (Modifiers): Consistently use "read/write"
4118         nomenclature rather than "input/output".
4119         * genrecog.c (constraints_supported_in_insn_p): New.
4120         (validate_pattern): If needed, also check constraints on
4121         MATCH_SCRATCH operands.
4122         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4123         operands with no '=' or '+' modifier.
4125 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4127         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4128         scratch register as written.
4130 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4132         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4133         assignment.
4135 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4137         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4138         expanders.
4140 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4142         PR target/62662
4143         * config/s390/s390.c (s390_emit_epilogue): When doing the return
4144         address load optimization force s390_optimize_prologue to leave it
4145         that way.  Only do the optimization if we already decided to push
4146         r14 into a stack slot.
4148 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
4150         * asan.c (build_check_stmt): Alignment arg was added.
4151         (asan_expand_check_ifn): Optimization for alignment >= 8.
4153 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4155         * config/i386/vxworksae.h: Remove obsolete definitions.
4156         (STACK_CHECK_PROTECT): Define.
4157         * config/i386/vx-common.h: Remove.  Merge contents within
4158         config/i386/vxworks.h.
4159         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
4160         i386/vx-common.h.
4162 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4164         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
4165         * config/rs6000/t-vxworksmils: New file.
4166         * config/rs6000/vxworksmils.h: New file.
4168 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4170         * varasm.c (default_section_type_flags): Flag .persistent.bss
4171         sections as SECTION_BSS.
4173 2014-09-19  Nick Clifton  <nickc@redhat.com>
4175         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
4176         pop'ed registers so that DCE does not eliminate them.
4178 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
4180         PR lto/63298
4181         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
4183 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
4185         * system.h (LIBGCC2_TF_CEXT): Poison.
4186         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
4187         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
4188         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
4189         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
4190         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
4191         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
4192         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
4193         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
4194         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
4196 2014-09-19  Kito Cheng  <kito@0xlab.org>
4198         * except.h: Fix header guard.
4199         * addresses.h: Add missing header guard.
4200         * cfghooks.h: Likewise.
4201         * collect-utils.h: Likewise.
4202         * collect2-aix.h: Likewise.
4203         * conditions.h: Likewise.
4204         * cselib.h: Likewise.
4205         * dwarf2asm.h: Likewise.
4206         * graphds.h: Likewise.
4207         * graphite-scop-detection.h: Likewise.
4208         * gsyms.h: Likewise.
4209         * hw-doloop.h: Likewise.
4210         * incpath.h: Likewise.
4211         * ipa-inline.h: Likewise.
4212         * ipa-ref.h: Likewise.
4213         * ira-int.h: Likewise.
4214         * ira.h: Likewise.
4215         * lra-int.h: Likewise.
4216         * lra.h: Likewise.
4217         * lto-section-names.h: Likewise.
4218         * read-md.h: Likewise.
4219         * reload.h: Likewise.
4220         * rtl-error.h: Likewise.
4221         * sdbout.h: Likewise.
4222         * targhooks.h: Likewise.
4223         * tree-affine.h: Likewise.
4224         * xcoff.h: Likewise.
4225         * xcoffout.h: Likewise.
4227 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
4229         PR debug/63285
4230         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4231         if advance != 0.
4233 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
4235         PR target/61360
4236         * lra.c (lra): Call recog_init.
4238 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
4240         PR c++/62017
4241         * asan.c (transform_statements): Don't instrument clobber statements.
4243 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4245         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4246         to neon_load1_1reg<q>.
4248 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
4250         PR debug/63284
4251         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4252         if there are only debug stmts after the noreturn call, instead
4253         remove the debug stmts.
4255 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
4257         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4258         (odr_types_equivalent_p): Use pair hash.
4259         (odr_subtypes_equivalent_p): Likewise, do structural compare
4260         on ODR types that may be mismatched.
4261         (warn_odr): Support warning when only one field is given.
4262         (odr_types_equivalent_p): Strenghten comparsions made;
4263         support VOIDtype.
4264         (add_type_duplicate): Update VISITED hash set.
4266 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4268         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4269         Enable selection of 'posix' or no thread model.
4271 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
4273         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4274         when architecture is older than ARMv7.
4276 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
4278         PR target/61853
4279         * config/pa/pa.c (pa_function_value): Directly handle aggregates
4280         that fit exactly in a word or double word.
4282 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
4284         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4285         zmm/k regs support.
4287 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4288             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4289             Anna Tikhonova  <anna.tikhonova@intel.com>
4290             Ilya Tocar  <ilya.tocar@intel.com>
4291             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4292             Ilya Verbin  <ilya.verbin@intel.com>
4293             Kirill Yukhin  <kirill.yukhin@intel.com>
4294             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4296         * config/i386/i386.c
4297         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
4298         * config/i386/sse.md
4299         (define_mode_iterator VI48F_256): New.
4300         (define_mode_attr extract_type): Ditto.
4301         (define_mode_attr extract_suf): Ditto.
4302         (define_mode_iterator AVX512_VEC): Ditto.
4303         (define_expand
4304         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
4305         AVX512_VEC.
4306         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
4307         (define_insn
4308         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
4309         Ditto.
4310         (define_mode_attr extract_type_2): Ditto.
4311         (define_mode_attr extract_suf_2): Ditto.
4312         (define_mode_iterator AVX512_VEC_2): Ditto.
4313         (define_expand
4314         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
4315         AVX512_VEC_2 mode iterator.
4316         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4317         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
4318         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4319         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4320         (define_split for V16FI mode): Ditto.
4321         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4322         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4323         (define_split for VI8F_256 mode): Ditto.
4324         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4325         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4326         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4327         (define_split for VI4F_256 mode): Ditto.
4328         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
4329         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4330         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4331         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
4332         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
4333         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
4334         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
4335         Update `type' attribute, remove explicit `memory' attribute calculation.
4337 2014-09-16  Kito Cheng  <kito@0xlab.org>
4339         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
4340         ira_spilled_reg_stack_slots_num if using lra.
4341         (do_reload): Remove release ira_spilled_reg_stack_slots part.
4342         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
4343         make sure not using lra.
4344         (ira_reuse_stack_slot): Likewise.
4345         (ira_mark_new_stack_slot): Likewise.
4347 2014-09-15  Andi Kleen  <ak@linux.intel.com>
4349         * function.c (allocate_struct_function): Force
4350         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
4351         profiling is disabled.
4353 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
4355         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
4356         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
4357         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
4358         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
4359         macro with statically checked member functions.
4360         * rtl.h (rtx_insn::deleted): New method.
4361         (rtx_insn::set_deleted): Likewise.
4362         (rtx_insn::set_undeleted): Likewise.
4363         (INSN_DELETED_P): Remove.
4365 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
4367         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
4368         result of emit_jump_insn_before to a new variable.
4369         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
4370         (mark_jump_label_1): Likewise.
4371         (mark_jump_label_asm): Likewise.
4372         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
4373         * rtl.h (mark_jump_label): Adjust.
4375 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
4377         * Makefile.in (dg_target_exps): Remove.
4378         (check_gcc_parallelize): Change to just an upper bound number.
4379         (check-%-subtargets): Always print the non-parallelized goals.
4380         (check_p_vars, check_p_comma, check_p_subwork): Remove.
4381         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
4382         check_p_numbers3, check_p_numbers4, check_p_numbers5,
4383         check_p_numbers6): New variables.
4384         (check_p_numbers): Set to sequence from 1 to 9999.
4385         (check_p_subdirs): Set to sequence from 1 to minimum of
4386         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
4387         or 128.
4388         (check-%, check-parallel-%): Rewritten so that for parallelized
4389         testing each job runs all the *.exp files, with
4390         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
4392 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4394         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4395         rtx to rtx_insn *.
4396         (arc_sets_cc_p): Likewise.
4397         * config/arc/arc.c (arc_print_operand): Use methods of
4398         "final_sequence" for clarity, and to enable strengthening of
4399         locals "jump" and "delay" from rtx to rtx_insn *.
4400         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
4401         rtx_insn *; use method of rtx_sequence for typesafety.
4402         (arc_get_insn_variants): Use insn method of rtx_sequence for
4403         typesafety.
4404         (arc_pad_return): Likewise.
4405         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
4406         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
4407         dyn_cast to rtx_sequence *, using insn method for typesafety.
4408         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
4409         rtx_sequence * and use insn method when invoking get_attr_length.
4410         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
4411         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
4412         rtx_sequence *, introducing a local "seq", using its insn method
4413         from typesafety and clarity.
4414         (add_sched_insns_for_speculation): Strengthen local "next" from
4415         rtx to rtx_insn *.
4416         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
4417         (predicate_insn): Likewise.
4418         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
4419         second param.
4420         * config/cris/cris.c (cris_notice_update_cc): Likewise.
4421         * config/epiphany/epiphany-protos.h
4422         (extern void epiphany_insert_mode_switch_use): Likewise for param
4423         "insn".
4424         (get_attr_sched_use_fpu): Likewise for param.
4425         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
4426         Likewise for param "insn".
4427         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
4428         param "insn" of "target_insert_mode_switch_use" callback.
4429         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
4430         (frv_issues_to_branch_unit_p): Likewise.
4431         (frv_pack_insn_p): Likewise.
4432         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
4433         const rtx * (i.e. mutable rtx_def * const *) to
4434         rtx_insn * const *.
4435         * config/i386/i386-protos.h (standard_sse_constant_opcode):
4436         Strengthen first param from rtx to rtx_insn *.
4437         (output_fix_trunc): Likewise.
4438         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
4439         (output_fix_trunc): Likewise.
4440         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
4441         local "insn".
4442         (min_insn_size): Likewise for param "insn".
4443         (get_mem_group): Likewise.
4444         (is_cmp): Likewise.
4445         (get_insn_path): Likewise.
4446         (get_insn_group): Likewise.
4447         (count_num_restricted): Likewise.
4448         (fits_dispatch_window): Likewise.
4449         (add_insn_window): Likewise.
4450         (add_to_dispatch_window): Likewise.
4451         (debug_insn_dispatch_info_file): Likewise.
4452         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
4453         first param.
4454         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
4455         "cmp" and local "prev".
4456         (m32c_output_compare): Likewise for param "insn".
4457         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
4458         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
4459         (define_predicate "large_insn_p"): Likewise.
4460         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
4461         param from rtx to rtx_insn *.
4462         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
4463         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
4464         (m68k_sched_attr_size): Likewise.
4465         (sched_get_opxy_mem_type): Likewise for param "insn".
4466         (m68k_sched_attr_op_mem): Likewise.
4467         (sched_mem_operand_p): Likewise.
4468         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
4469         * config/mep/mep.c (mep_multi_slot): Likewise.
4470         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
4471         first param.
4472         (mips_sync_loop_insns): Likewise.
4473         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
4474         method of "final_sequence" for typesafety.
4475         (mips_process_sync_loop): Strengthen param "insn" from rtx to
4476         rtx_insn *.
4477         (mips_output_sync_loop): Likewise.
4478         (mips_sync_loop_insns): Likewise.
4479         (mips_74k_agen_init): Likewise.
4480         (mips_sched_init): Use NULL rather than NULL_RTX when working with
4481         insns.
4482         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
4483         Strengthen param "insn" from rtx to rtx_insn *.
4484         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
4485         local "insn".
4486         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
4487         param.
4488         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
4489         "insn".  Use method of rtx_sequence for typesafety.
4490         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
4491         rtx_insn *.
4492         (branch_needs_nop_p): Likewise.
4493         (use_skip_p): Likewise.
4494         (pa_insn_refs_are_delayed): Likewise.
4495         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
4496         for locals "insn", "ninsn".
4497         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
4498         "insn".
4499         (is_cracked_insn): Likewise.
4500         (is_branch_slot_insn): Likewise.
4501         (is_nonpipeline_insn): Likewise.
4502         (insn_terminates_group_p): Likewise.
4503         (insn_must_be_first_in_group): Likewise.
4504         (insn_must_be_last_in_group): Likewise.
4505         (force_new_group): Likewise for param "next_insn".
4506         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
4507         "insn".
4508         (s390_sched_score): Likewise.
4509         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
4510         (rtx sfunc_uses_reg): Likewise for sole param.
4511         * config/sh/sh.c (sh_print_operand): Use insn method of
4512         final_sequence for typesafety.
4513         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
4514         Use insn method of final_sequence for typesafety.
4515         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
4516         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
4517         for param.
4518         (eligible_for_return_delay): Likewise.
4519         (eligible_for_sibcall_delay): Likewise.
4520         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
4521         (eligible_for_return_delay): Likewise.
4522         (eligible_for_sibcall_delay): Likewise.
4523         * config/stormy16/stormy16-protos.h
4524         (xstormy16_output_cbranch_hi): Likewise for final param.
4525         (xstormy16_output_cbranch_si): Likewise.
4526         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
4527         (xstormy16_output_cbranch_si): Likewise.
4528         * config/v850/v850-protos.h (notice_update_cc): Likewise.
4529         * config/v850/v850.c (notice_update_cc): Likewise.
4531         * final.c (get_attr_length_1): Strengthen param "insn" and param
4532         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
4533         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
4534         (get_attr_min_length): Likewise.
4535         (shorten_branches): Likewise for signature of locals "length_fun"
4536         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
4537         from a checked cast and use its methods for clarity and to enable
4538         strengthening local "inner_insn" from rtx to rtx_insn *.
4539         * genattr.c (gen_attr): When writing out the prototypes of the
4540         various generated "get_attr_" functions, strengthen the params of
4541         the non-const functions from rtx to rtx_insn *.
4542         Similarly, strengthen the params of insn_default_length,
4543         insn_min_length, insn_variable_length_p, insn_current_length.
4544         (main): Similarly, strengthen the param of num_delay_slots,
4545         internal_dfa_insn_code, insn_default_latency, bypass_p,
4546         insn_latency, min_issue_delay, print_reservation,
4547         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4548         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
4549         to hook_int_rtx_insn_unreachable.
4550         * genattrtab.c (write_attr_get): When writing out the generated
4551         "get_attr_" functions, strengthen the param "insn" from rtx to
4552         rtx_insn *, eliminating a checked cast.
4553         (make_automaton_attrs): When writing out prototypes of
4554         "internal_dfa_insn_code_", "insn_default_latency_" functions
4555         and the "internal_dfa_insn_code" and "insn_default_latency"
4556         callbacks, strengthen their params from rtx to rtx_insn *
4557         * genautomata.c (output_internal_insn_code_evaluation): When
4558         writing out code, add a checked cast from rtx to rtx_insn * when
4559         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4560         (output_dfa_insn_code_func): Strengthen param of generated
4561         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4562         (output_trans_func): Likewise for generated function
4563         "state_transition".
4564         (output_internal_insn_latency_func): When writing out generated
4565         function "internal_insn_latency", rename params from "insn" and
4566         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
4567         locals "insn" and "insn2" as rtx_insn * with checked casts once
4568         we've proven that we're not dealing with const0_rtx.
4569         (output_insn_latency_func):  Strengthen param of generated
4570         function "insn_latency" from rtx to rtx_insn *.
4571         (output_print_reservation_func): Likewise for generated function
4572         "print_reservation".
4573         (output_insn_has_dfa_reservation_p): Likewise for generated
4574         function "insn_has_dfa_reservation_p".
4575         * hooks.c (hook_int_rtx_unreachable): Rename to...
4576         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4577         from rtx to rtx_insn *.
4578         * hooks.h (hook_int_rtx_unreachable): Likewise.
4579         (extern int hook_int_rtx_insn_unreachable): Likewise.
4580         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4581         (get_attr_min_length): Likewise.
4582         * recog.c (get_enabled_alternatives): Likewise.
4583         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4584         * reorg.c (find_end_label): Introduce local rtx "pat" and
4585         strengthen local "insn" from rtx to rtx_insn *.
4586         (redundant_insn): Use insn method of "seq" rather than element for
4587         typesafety; strengthen local "control" from rtx to rtx_insn *.
4588         * resource.c (mark_referenced_resources): Add checked cast to
4589         rtx_insn * within INSN/JUMP_INSN case.
4590         (mark_set_resources): Likewise.
4591         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4592         rtx to rtx_insn *.
4594 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4596         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4597         param "label" from rtx to rtx_insn *.
4598         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4599         and local "op".
4600         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4601         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4602         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4603         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4604         * final.c (default_label_align_after_barrier_max_skip): Strengthen
4605         param from rtx to rtx_insn *.
4606         (default_loop_align_max_skip): Likewise.
4607         (default_label_align_max_skip): Likewise.
4608         (default_jump_align_max_skip): Likewise.
4609         * target.def (label_align_after_barrier_max_skip): Likewise.
4610         (loop_align_max_skip): Likewise.
4611         (label_align_max_skip): Likewise.
4612         (jump_align_max_skip): Likewise.
4613         * targhooks.h (default_label_align_after_barrier_max_skip):
4614         Likewise.
4615         (default_loop_align_max_skip): Likewise.
4616         (default_label_align_max_skip): Likewise.
4617         (default_jump_align_max_skip): Likewise.
4619 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4621         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4622         from const_rtx to const rtx_insn *.  Update union members from rtx
4623         to rtx_insn *.
4624         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4625         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4626         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4627         strengthen both params from const_rtx to const rtx_insn *.
4628         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4629         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4630         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4631         rtx_insn *.
4632         * target.def (can_follow_jump): Strengthen both params from
4633         const_rtx to const rtx_insn *, and update default implementation
4634         from hook_bool_const_rtx_const_rtx_true to
4635         hook_bool_const_rtx_insn_const_rtx_insn_true.
4637 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4639         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
4640         "insn" from rtx to rtx_insn *.
4641         * sched-int.h (deps_start_bb): Likewise for 2nd param.
4643 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4644             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4645             Anna Tikhonova  <anna.tikhonova@intel.com>
4646             Ilya Tocar  <ilya.tocar@intel.com>
4647             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4648             Ilya Verbin  <ilya.verbin@intel.com>
4649             Kirill Yukhin  <kirill.yukhin@intel.com>
4650             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4652         * config/i386/sse.md
4653         (define_insn "vcvtph2ps<mask_name>"): Add masking.
4654         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
4655         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
4656         (define_expand "vcvtps2ph_mask"): New.
4657         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
4658         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4659         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4661 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4662             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4663             Anna Tikhonova  <anna.tikhonova@intel.com>
4664             Ilya Tocar  <ilya.tocar@intel.com>
4665             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4666             Ilya Verbin  <ilya.verbin@intel.com>
4667             Kirill Yukhin  <kirill.yukhin@intel.com>
4668             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4670         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4671         New.
4672         (define_mode_iterator VI24_AVX512BW_1): Ditto.
4673         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4674         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4675         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4676         also for TARGET_AVX512VL.
4677         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4679 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
4681         * doc/install.texi (Options specification): add
4682         --disable-libsanitizer item.
4684 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
4685             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4687         PR target/61407
4688         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
4689         and above.
4690         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
4691         kernel version check to avoid incrementing it after every major OS X
4692         release.
4693         (darwin_default_min_version): Avoid static memory buffer.
4695 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
4697         * tree.c (need_assembler_name_p): Store C++ type mangling only
4698         for aggregates.
4700 2014-09-13  Marek Polacek  <polacek@redhat.com>
4702         * tree.c (protected_set_expr_location): Don't check whether T is
4703         non-null here.
4705 2014-09-12  DJ Delorie  <dj@redhat.com>
4707         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
4708         (extend_and_shift1_hipsi2): Likewise.
4709         (extend_and_shift2_hipsi2): Likewise.
4711 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
4713         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
4714         with NULL when dealing with an insn.
4715         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
4716         from rtx to rtx_insn *.
4717         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
4718         const_rtx to const rtx_insn *.
4719         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
4721 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
4723         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
4724         assert.
4726 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
4728         * target.def (libgcc_floating_mode_supported_p): New hook.
4729         * targhooks.c (default_libgcc_floating_mode_supported_p): New
4730         function.
4731         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
4732         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
4733         (LIBGCC2_HAS_TF_MODE): Remove.
4734         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
4735         * doc/tm.texi: Regenerate.
4736         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
4737         machine mode.
4738         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
4739         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
4740         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
4741         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
4742         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4743         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
4744         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
4745         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
4746         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
4747         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
4748         function.
4749         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
4750         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4751         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4752         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4753         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4754         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4755         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4756         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
4757         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
4758         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
4759         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4760         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
4761         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
4762         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
4763         Remove.
4764         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
4765         New macro.
4766         (ia64_libgcc_floating_mode_supported_p): New function.
4767         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
4768         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
4769         (IA64_NO_LIBGCC_TFMODE): Define.
4770         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
4771         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
4772         macro.
4773         (pdp11_scalar_mode_supported_p): New function.
4774         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
4775         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
4777 2014-09-12  Richard Biener  <rguenther@suse.de>
4779         PR middle-end/63237
4780         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
4782 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
4784         * tree.c (integer_each_onep): New function.
4785         * tree.h (integer_each_onep): Declare it.
4786         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
4787         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
4788         (X & 1) == 0 for vector and complex.
4790 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4792         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
4793         for A57.
4794         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
4795         cost to spilling from integer to FP registers.
4797 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4799         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
4800         move handling.
4801         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
4802         are now handled correctly.
4804 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4806         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
4807         handling of CALLER_SAVE_REGS and POINTER_REGS.
4809 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4811         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
4812         the number of hard registers.
4814 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4815             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4816             Anna Tikhonova  <anna.tikhonova@intel.com>
4817             Ilya Tocar  <ilya.tocar@intel.com>
4818             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4819             Ilya Verbin  <ilya.verbin@intel.com>
4820             Kirill Yukhin  <kirill.yukhin@intel.com>
4821             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4823         * config/i386/sse.md
4824         (define_mode_iterator VI48_AVX512VL): New.
4825         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
4826         "avx512f_vternlog<mode>_maskz" and update mode iterator.
4827         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
4828         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
4829         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
4830         "avx512f_vternlog<mode>_mask" and update mode iterator.
4831         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
4832         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
4833         iterator.
4834         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
4835         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
4836         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
4837         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
4838         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
4839         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
4841 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4842             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4843             Anna Tikhonova  <anna.tikhonova@intel.com>
4844             Ilya Tocar  <ilya.tocar@intel.com>
4845             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4846             Ilya Verbin  <ilya.verbin@intel.com>
4847             Kirill Yukhin  <kirill.yukhin@intel.com>
4848             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4850         * config/i386/sse.md (VI128_256): Delete.
4851         (define_mode_iterator VI124_256): New.
4852         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
4853         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
4854         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
4855         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
4856         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
4857         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
4858         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
4859         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
4860         iterator.
4861         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
4862         in presence of AVX-512.
4864 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4865             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4866             Anna Tikhonova  <anna.tikhonova@intel.com>
4867             Ilya Tocar  <ilya.tocar@intel.com>
4868             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4869             Ilya Verbin  <ilya.verbin@intel.com>
4870             Kirill Yukhin  <kirill.yukhin@intel.com>
4871             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4873         * config/i386/sse.md
4874         (define_expand "<avx512>_gathersi<mode>"): Rename from
4875         "avx512f_gathersi<mode>".
4876         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
4877         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
4878         (define_expand "<avx512>_gatherdi<mode>"): Rename from
4879         "avx512f_gatherdi<mode>".
4880         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
4881         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
4882         wide versions.
4883         (define_expand "<avx512>_scattersi<mode>"): Rename from
4884         "avx512f_scattersi<mode>".
4885         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
4886         (define_expand "<avx512>_scatterdi<mode>"): Rename from
4887         "avx512f_scatterdi<mode>".
4888         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
4890 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
4892         * ira.h (ira_finish_once): Delete.
4893         * ira-int.h (target_ira_int::~target_ira_int): Declare.
4894         (target_ira_int::free_ira_costs): Likewise.
4895         (target_ira_int::free_register_move_costs): Likewise.
4896         (ira_finish_costs_once): Delete.
4897         * ira.c (free_register_move_costs): Replace with...
4898         (target_ira_int::free_register_move_costs): ...this new function.
4899         (target_ira_int::~target_ira_int): Define.
4900         (ira_init): Call free_register_move_costs as a member function rather
4901         than a global function.
4902         (ira_finish_once): Delete.
4903         * ira-costs.c (free_ira_costs): Replace with...
4904         (target_ira_int::free_ira_costs): ...this new function.
4905         (ira_init_costs): Call free_ira_costs as a member function rather
4906         than a global function.
4907         (ira_finish_costs_once): Delete.
4908         * target-globals.c (target_globals::~target_globals): Call the
4909         target_ira_int destructor.
4910         * toplev.c: Include lra.h.
4911         (finalize): Call lra_finish_once rather than ira_finish_once.
4913 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
4915         * common.opt (flto-odr-type-merging): New flag.
4916         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
4917         (types_same_for_odr): Likewise.
4918         (odr_subtypes_equivalent_p): Likewise.
4919         (add_type_duplicate): Do not walk type variants.
4920         (register_odr_type): New function.
4921         * ipa-utils.h (register_odr_type): Declare.
4922         (odr_type_p): New function.
4923         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
4924         TYPE_DECLs
4925         * doc/invoke.texi (-flto-odr-type-merging): Document.
4926         * tree.c (need_assembler_name_p): Compute ODR names when asked
4927         for it.
4928         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
4930 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
4932         PR target/63228
4933         * config/i386/i386.c (ix86_option_override_internal): Also turn
4934         off OPTION_MASK_ABI_X32 for -m16.
4936 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
4938         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
4939         GPR instead of P.
4941 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
4943         PR target/58757
4944         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4945         Directly forward to __*_DENORM_MIN__.
4947 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
4949         * rtl.h (LABEL_REF_LABEL): New macro.
4951         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
4952         of XEXP (, 0), where we know that we have a LABEL_REF.
4953         * cfgbuild.c (make_edges): Likewise.
4954         (purge_dead_tablejump_edges): Likewise.
4955         * cfgexpand.c (convert_debug_memory_address): Likewise.
4956         * cfgrtl.c (patch_jump_insn): Likewise.
4957         * combine.c (distribute_notes): Likewise.
4958         * cse.c (hash_rtx_cb): Likewise.
4959         (exp_equiv_p): Likewise.
4960         (fold_rtx): Likewise.
4961         (check_for_label_ref): Likewise.
4962         * cselib.c (rtx_equal_for_cselib_1): Likewise.
4963         (cselib_hash_rtx): Likewise.
4964         * emit-rtl.c (mark_label_nuses): Likewise.
4965         * explow.c (convert_memory_address_addr_space): Likewise.
4966         * final.c (output_asm_label): Likewise.
4967         (output_addr_const): Likewise.
4968         * gcse.c (add_label_notes): Likewise.
4969         * genconfig.c (walk_insn_part): Likewise.
4970         * genrecog.c (validate_pattern): Likewise.
4971         * ifcvt.c (cond_exec_get_condition): Likewise.
4972         (noce_emit_store_flag): Likewise.
4973         (noce_get_alt_condition): Likewise.
4974         (noce_get_condition): Likewise.
4975         * jump.c (maybe_propagate_label_ref): Likewise.
4976         (mark_jump_label_1): Likewise.
4977         (redirect_exp_1): Likewise.
4978         (rtx_renumbered_equal_p): Likewise.
4979         * lra-constraints.c (operands_match_p): Likewise.
4980         * reload.c (operands_match_p): Likewise.
4981         (find_reloads): Likewise.
4982         * reload1.c (set_label_offsets): Likewise.
4983         * reorg.c (get_branch_condition): Likewise.
4984         * rtl.c (rtx_equal_p_cb): Likewise.
4985         (rtx_equal_p): Likewise.
4986         * rtlanal.c (reg_mentioned_p): Likewise.
4987         (rtx_referenced_p): Likewise.
4988         (get_condition): Likewise.
4989         * sched-vis.c (print_value): Likewise.
4990         * varasm.c (const_hash_1): Likewise.
4991         (compare_constant): Likewise.
4992         (const_rtx_hash_1): Likewise.
4993         (output_constant_pool_1): Likewise.
4995 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
4997         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
4998         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
4999         instead of minus.
5000         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5001         cr6_test_for_lt_reverse): Ditto.
5003 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
5005         PR c++/61489
5006         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5008 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5010         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5011         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5012         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5013         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5014         Delete.
5016         (aarch64_fold_builtin): Remove all reinterpret cases.
5018         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5020         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5022         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5023         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5024         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5025         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5026         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5027         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5028         aarch64_reinterpretv2df<mode>): Delete.
5030         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5032         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5033         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5034         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5035         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5036         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5037         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5038         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5039         vreinterpret_u32_f64): Use cast.
5041         * config/aarch64/iterators.md (VD_RE): Delete.
5043 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5045         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5046         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5047         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5048         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5049         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5050         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5051         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5052         Replace inline assembler with __aarch64_vset_lane_any.
5054 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
5056         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5057         types.
5058         (vmull_high_lane_s32): Likewise.
5059         (vmull_high_lane_u16): Likewise.
5060         (vmull_high_lane_u32): Likewise.
5062 2014-09-11  Jason Merrill  <jason@redhat.com>
5064         PR c++/58678
5065         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5067 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
5069         PR target/63223
5070         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5071         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
5072         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5074 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5075             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5076             Anna Tikhonova  <anna.tikhonova@intel.com>
5077             Ilya Tocar  <ilya.tocar@intel.com>
5078             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5079             Ilya Verbin  <ilya.verbin@intel.com>
5080             Kirill Yukhin  <kirill.yukhin@intel.com>
5081             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5083         * config/i386/sse.md
5084         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5085         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5086         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5087         New.
5088         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5089         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5090         iterator.
5091         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5092         New.
5093         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5094         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5095         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5096         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5097         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5098         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5099         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5100         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5101         iterator.
5102         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5103         New.
5104         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5105         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5106         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5108 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5110         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5111         to access removed nodes.
5113 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5115         PR tree-optimization/63186
5116         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5117         (mark_nonssa_use): Likewise.
5118         (verify_non_ssa_vars): Verify all header blocks for label
5119         definitions.
5121 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5122             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5123             Anna Tikhonova  <anna.tikhonova@intel.com>
5124             Ilya Tocar  <ilya.tocar@intel.com>
5125             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5126             Ilya Verbin  <ilya.verbin@intel.com>
5127             Kirill Yukhin  <kirill.yukhin@intel.com>
5128             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5130         * config/i386/sse.md
5131         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5132         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5133         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5134         "<avx2_avx512f>_permvar<mode><mask_name>".
5135         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5136         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5137         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5138         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5139         Ditto.
5140         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5141         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5142         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5143         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5145 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5147         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5148         V2DF, V4SF, DF, and DI modes.
5149         (vsx_fmav2df2): Likewise.
5150         (vsx_float_fix_<mode>2): Likewise.
5151         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5153 2014-09-10  Xinliang David Li  <davidxl@google.com>
5155         PR target/63209
5156         * config/arm/arm.md (movcond_addsi): Handle case where source
5157         and target operands are the same.
5159 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
5161         * final.c (this_is_asm_operands): Strengthen this variable from
5162         rtx to const rtx_insn *.
5163         * output.h (this_is_asm_operands): Likewise.
5164         * rtl-error.c (location_for_asm): Strengthen param "insn" from
5165         const_rtx to const rtx_insn *.
5166         (diagnostic_for_asm): Likewise.
5167         * rtl-error.h (error_for_asm): Likewise.
5168         (warning_for_asm): Likewise.
5170 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
5172         * genextract.c (print_header): When writing out insn_extract to
5173         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5174         * recog.h (insn_extract): Strengthen the param from rtx to
5175         rtx_insn *.
5177 2014-09-10  Mike Stump  <mikestump@comcast.net>
5179         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
5180         8.6.1.
5182 2014-09-10  Martin Jambor  <mjambor@suse.cz>
5184         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
5185         (analyze): Do not set analyze flag if expand_thunk returns false;.
5186         (create_wrapper): Likewise.
5187         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5189 2014-09-10  Martin Jambor  <mjambor@suse.cz>
5191         PR ipa/61654
5192         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
5193         new decl properly.  Analyze the new thunk if it is expanded.
5195 2014-09-10  Andreas Schwab  <schwab@suse.de>
5197         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5198         [USED_FOR_TARGET]: Define.
5200 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
5202         * config/mips/mips.c (mips_secondary_reload_class): Handle
5203         regno < 0 case.
5205 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
5207         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5208         assignment.
5210 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
5212         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5213         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5214         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5215         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5216         flag_delete_null_pointer_checks for them.
5217         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5218         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5219         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5220         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5221         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5222         stmt's iterator.
5223         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5224         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5225         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5226         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5227         * doc/invoke.texi (-fsanitize=nonnull-attribute,
5228         -fsanitize=returns-nonnull-attribute): Document.
5230         * ubsan.h (struct ubsan_mismatch_data): Removed.
5231         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5232         * ubsan.c (ubsan_source_location): For unknown locations,
5233         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5234         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5235         Allow more than one location and arbitrary extra arguments passed
5236         in ... instead of through MISMATCH pointer.
5237         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5238         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5239         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5240         callers.
5242 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5243             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5244             Anna Tikhonova  <anna.tikhonova@intel.com>
5245             Ilya Tocar  <ilya.tocar@intel.com>
5246             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5247             Ilya Verbin  <ilya.verbin@intel.com>
5248             Kirill Yukhin  <kirill.yukhin@intel.com>
5249             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5251         * config/i386/sse.md
5252         (define_mode_iterator VI48F): New.
5253         (define_insn "<avx512>_compress<mode>_mask"): Rename from
5254         "avx512f_compress<mode>_mask" and update mode iterator.
5255         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5256         "avx512f_compressstore<mode>_mask" and update mode iterator.
5257         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5258         "avx512f_expand<mode>_maskz" and update mode iterator.
5259         (define_insn "<avx512>_expand<mode>_mask"): Rename from
5260         "avx512f_expand<mode>_mask" and update mode iterator.
5262 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5263             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5264             Anna Tikhonova  <anna.tikhonova@intel.com>
5265             Ilya Tocar  <ilya.tocar@intel.com>
5266             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5267             Ilya Verbin  <ilya.verbin@intel.com>
5268             Kirill Yukhin  <kirill.yukhin@intel.com>
5269             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5271         * config/i386/i386.c
5272         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5273         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5274         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5275         avx512dq_rangepv4sf_mask.
5276         * config/i386/sse.md
5277         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5278         UNSPEC_RANGE.
5279         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5280         (define_insn "reduces<mode>"): Ditto.
5281         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5282         Ditto.
5283         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5284         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5285         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5287 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5288             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5289             Anna Tikhonova  <anna.tikhonova@intel.com>
5290             Ilya Tocar  <ilya.tocar@intel.com>
5291             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5292             Ilya Verbin  <ilya.verbin@intel.com>
5293             Kirill Yukhin  <kirill.yukhin@intel.com>
5294             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5296         * config/i386/i386.c
5297         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
5298         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
5299         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
5300         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
5301         avx512vl_getmantv2df_mask.
5302         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
5303         avx512f_vgetmantv4sf_round.
5304         * config/i386/sse.md
5305         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
5306         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
5307         mode iterator.
5308         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
5309         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
5310         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
5311         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
5312         iterator..
5313         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
5314         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
5315         update mode iterator.
5316         (define_expand
5317         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
5318         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
5319         mode iterator.
5320         (define_insn
5321         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
5322         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
5323         update mode iterator.
5324         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
5325         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
5326         iterator..
5327         (define_insn
5328         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
5329         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
5330         mode iterator..
5331         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
5332         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
5333         update mode iterator.
5334         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
5335         "avx512f_getmant<mode><round_saeonly_name>".
5337 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5339         PR ipa/63166
5340         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5342 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5343             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5344             Anna Tikhonova  <anna.tikhonova@intel.com>
5345             Ilya Tocar  <ilya.tocar@intel.com>
5346             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5347             Ilya Verbin  <ilya.verbin@intel.com>
5348             Kirill Yukhin  <kirill.yukhin@intel.com>
5349             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5351         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
5352         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
5353         (define_mode_iterator FMAMODE_AVX512): New.
5354         (define_mode_iterator FMAMODE): Remove conditions.
5355         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
5356         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
5357         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
5358         mode iterator.
5359         (define_mode_iterator FMAMODE_NOVF512): Remove.
5360         (define_insn "*fma_fmadd_<mode>"): Rename from
5361         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
5362         FMAMODE mode iterator.
5363         (define_mode_iterator VF_SF_AVX512VL): New.
5364         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
5365         Use VF_SF_AVX512VL mode iterator.
5366         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
5367         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5368         iterator.
5369         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
5370         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5371         iterator.
5372         (define_insn "*fma_fmsub_<mode>"): Rename from
5373         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
5374         FMAMODE mode iterator.
5375         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
5376         Use VF_SF_AVX512VL mode iterator.
5377         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
5378         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5379         iterator.
5380         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
5381         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5382         iterator.
5383         (define_insn "*fma_fnmadd_<mode>"): Rename from
5384         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
5385         use FMAMODE mode iterator.
5386         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
5387         Use VF_SF_AVX512VL mode iterator.
5388         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
5389         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5390         iterator.
5391         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
5392         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5393         iterator.
5394         (define_insn "*fma_fnmsub_<mode>"): Rename from
5395         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
5396         FMAMODE mode iterator.
5397         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
5398         Use VF_SF_AVX512VL mode iterator.
5399         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
5400         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5401         iterator.
5402         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
5403         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5404         iterator.
5405         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
5406         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
5407         use VF_AVX512VL mode iterator.
5408         (define_insn "*fma_fmaddsub_<mode>"): Rename from
5409         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
5410         remove subst usage.
5411         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
5412         Use VF_SF_AVX512VL mode iterator.
5413         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
5414         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5415         iterator.
5416         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
5417         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5418         iterator.
5419         (define_insn "*fma_fmsubadd_<mode>"): Rename from
5420         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
5421         remove usage of subst.
5422         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
5423         Use VF_SF_AVX512VL mode iterator.
5424         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
5425         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5426         iterator.
5427         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
5428         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5429         iterator.
5431 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
5433         Revert r213751:
5434         * calls.c (precompute_arguments): Check
5435          promoted_for_signed_and_unsigned_p and set the promoted mode.
5436         (promoted_for_signed_and_unsigned_p): New function.
5437         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5438         and set the promoted mode.
5439         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5440         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5441         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5443 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5445         * opth-gen.awk: Generate mapping from cpp message reasons to the
5446         options that enable them.
5447         * doc/options.texi (CppReason): Document.
5449 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5451         * doc/invoke.texi (Wnormalized=): Update.
5453 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
5455         PR target/63195
5456         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
5457         operands.  Split off the constant operand alternative to ...
5458         (*bool<mode>3_imm): New.
5460 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5462         * rtl.h (single_set_2): Strengthen first param from const_rtx to
5463         const rtx_insn *, and move prototype to above...
5464         (single_set): ...this.  Convert this from a macro to an inline
5465         function, enforcing the requirement that the param is a const
5466         rtx_insn *.
5467         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
5469         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
5470         Strengthen both params from rtx to rtx_insn *.
5471         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5472         Likewise; introduce locals "producer_set", "consumer_set", using
5473         them in place of "producer" and "consumer" when dealing with SET
5474         rather than insn.
5475         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
5476         when invoking single_set in region guarded by INSN_P.
5477         (avr_out_bitop): Likewise.
5478         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
5479         region guarded by GET_CODE check, using methods to strengthen
5480         local "this_insn" from rtx to rtx_insn *, and for clarity.
5481         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
5482         Strengthen local "insn" from rtx to rtx_insn *.
5483         (define_insn_and_split "xload<mode>_A"): Likewise.
5484         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
5485         "insn".
5486         (find_load): Likewise for return type.
5487         (workaround_speculation): Likewise for both locals named
5488         "load_insn".
5489         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
5490         local "cc0_user".
5491         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
5492         for local "prev".
5493         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
5494         param 2.
5495         * config/h8300/h8300.c (notice_update_cc): Likewise.
5496         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
5497         "insn" and "dep_insn".
5498         (exact_store_load_dependency): Likewise for both params.
5499         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
5500         since this now clashes with inline function.  Instead, delay
5501         calling single_set until the point where its needed, and then
5502         assign the result to "compare_set" and rework the conditional that
5503         follows.
5504         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
5505         local "last" from rtx to rtx_insn *.
5506         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
5507         second param.
5508         (mips_store_data_bypass_p): Likewise for both params.
5509         * config/mips/mips.c (mips_load_store_insns): Likewise for second
5510         param.
5511         (mips_store_data_bypass_p): Likewise for both params.
5512         (mips_orphaned_high_part_p): Likewise for param "insn".
5513         * config/mn10300/mn10300.c (extract_bundle): Likewise.
5514         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
5515         Introduce local rtx "insn2_pat".
5516         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
5517         "ninsn".
5518         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
5519         Introduce local rtx "set", using it in place of "insn" for the
5520         result of single_set.  This appears to fix a bug, since the call
5521         to find_regno_note on a SET does nothing.
5522         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
5523         params from rtx to rtx_insn *.
5524         (set_to_load_agen): Likewise.
5525         * config/s390/s390.c (s390_label_align): Likewise for local
5526         "prev_insn".  Introduce new rtx locals "set" and "src", using
5527         them in place of "prev_insn" for the results of single_set
5528         and SET_SRC respectively.
5529         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
5530         Introduce new rtx local "set" using in place of "jump" for the
5531         result of single_set.  Use SET_SRC (set) rather than plain
5532         XEXP (set, 1).
5533         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
5534         rtx to rtx_insn *.
5535         (noncall_uses_reg): Likewise.
5536         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
5537         guarded by GET_CODE check, using its methods for clarity, and to
5538         enable strengthening local "this_insn" from rtx to rtx_insn *.
5539         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
5540         "insn" from rtx to rtx_insn *.
5541         (define_expand "umulhisi3"): Likewise.
5542         (define_expand "smulsi3_highpart"): Likewise.
5543         (define_expand "umulsi3_highpart"): Likewise.
5544         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5545         local "after".  Replace GET_CODE check with a dyn_cast,
5546         introducing new local rtx_sequence * "seq", using insn method for
5547         typesafety.
5549         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5550         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
5551         place of "insn" once we're dealing with patterns rather than the
5552         input insn.
5553         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5554         (scan_trace): Likewise for local "elt", updating lookups within
5555         sequence to use insn method rather than element method.
5556         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5557         to rtx_insn *.
5558         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5559         * ifcvt.c (noce_try_abs): Likewise for local "insn".
5560         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5561         invoking single_set.
5562         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5563         "insn" from rtx to rtx_insn *.
5564         (skip_usage_debug_insns): Likewise for return type, adding a
5565         checked cast.
5566         (check_secondary_memory_needed_p): Likewise for local "insn".
5567         (inherit_reload_reg): Likewise.
5568         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5569         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5570         checked casts.
5571         (store_data_bypass_p): Likewise for both params.
5572         (if_test_bypass_p): Likewise.
5573         * recog.h (store_data_bypass_p): Likewise for both params.
5574         (if_test_bypass_p): Likewise.
5575         * reload.c (find_equiv_reg): Likewise for local "where".
5576         * reorg.c (delete_jump): Likewise for param "insn".
5577         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5578         to const rtx_insn *.
5579         * store-motion.c (replace_store_insn): Likewise for param "del".
5580         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5581         and use its methods for clarity, and to strengthen local "del"
5582         from rtx to rtx_insn *.
5583         (build_store_vectors): Use insn method of "st" when calling
5584         replace_store_insn for typesafety and clarity.
5586 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5588         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5589         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5590         on how to make it legal in future.
5592 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5594         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5595         to rtx_insn *.
5596         (restinsn): Likewise.
5597         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5598         Likewise for param.
5599         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5600         Likewise.
5601         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5602         first param.
5603         (arc_hazard): Likewise for both params.
5604         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5605         checked casts to rtx_sequence * and uses of the insn method for
5606         type-safety.
5607         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5608         (arc_adjust_insn_length): Likewise for param "insn".
5609         (struct insn_length_parameters_s): Likewise for first param of
5610         "get_variants" callback field.
5611         (arc_get_insn_variants): Likewise for first param and local
5612         "inner".  Replace a check of GET_CODE with a dyn_cast to
5613         rtx_sequence *, using methods for type-safety and clarity.
5614         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5615         rtx_sequence * and uses of the insn method for type-safety when
5616         invoking arc_adjust_insn_length.
5617         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5618         for param.
5619         (arm_address_offset_is_imm): Likewise.
5620         (struct tune_params): Likewise for params 1 and 3 of the
5621         "sched_adjust_cost" callback field.
5622         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5623         params 1 and 3 ("insn" and "dep").
5624         (xscale_sched_adjust_cost): Likewise.
5625         (fa726te_sched_adjust_cost): Likewise.
5626         (cortexa7_older_only): Likewise for param "insn".
5627         (cortexa7_younger): Likewise.
5628         (arm_attr_length_move_neon): Likewise.
5629         (arm_address_offset_is_imm): Likewise.
5630         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5631         * config/avr/avr.c (avr_notice_update_cc): Likewise.
5632         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5633         (workaround_speculation): Likewise for local "last_condjump".
5634         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5635         (shadow_or_blockage_p): Likewise.
5636         (get_unit_reqs): Likewise.
5637         (get_unit_operand_masks): Likewise.
5638         (c6x_registers_update): Likewise.
5639         (returning_call_p): Likewise.
5640         (can_use_callp): Likewise.
5641         (convert_to_callp): Likewise.
5642         (find_last_same_clock): Likwise for local "t".
5643         (reorg_split_calls): Likewise for local "shadow".
5644         (hwloop_pattern_reg): Likewise for param "insn".
5645         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
5646         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
5647         (frv_extract_membar): Likewise.
5648         (frv_optimize_membar_local): Strengthen param "last_membar" from
5649         rtx * to rtx_insn **.
5650         (frv_optimize_membar_global): Strengthen param "membar" from rtx
5651         to rtx_insn *.
5652         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
5653         to rtx_insn **.
5654         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
5655         both params from rtx to rtx_insn *.
5656         (ia64_ld_address_bypass_p): Likewise.
5657         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
5658         "insn".
5659         (ia64_safe_type): Likewise.
5660         (group_barrier_needed): Likewise.
5661         (safe_group_barrier_needed): Likewise.
5662         (ia64_single_set): Likewise.
5663         (is_load_p): Likewise.
5664         (record_memory_reference): Likewise.
5665         (get_mode_no_for_insn): Likewise.
5666         (important_for_bundling_p): Likewise.
5667         (unknown_for_bundling_p): Likewise.
5668         (ia64_st_address_bypass_p): Likewise for both params.
5669         (ia64_ld_address_bypass_p): Likewise.
5670         (expand_vselect): Introduce new local rtx_insn * "insn", using it
5671         in place of rtx "x" after the emit_insn call.
5672         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5673         Strengthen param from rtx to rtx_insn *.
5674         (ix86_agi_dependent): Likewise for both params.
5675         (ix86_attr_length_immediate_default): Likewise for param 1.
5676         (ix86_attr_length_address_default): Likewise for param.
5677         (ix86_attr_length_vex_default): Likewise for param 1.
5678         * config/i386/i386.c (ix86_attr_length_immediate_default):
5679         Likewise for param "insn".
5680         (ix86_attr_length_address_default): Likewise.
5681         (ix86_attr_length_vex_default): Likewise.
5682         (ix86_agi_dependent): Likewise for both params.
5683         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5684         (vselect_insn): Likewise for this variable.
5685         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5686         for param 1.
5687         (m68k_sched_attr_opy_type): Likewise.
5688         * config/m68k/m68k.c (sched_get_operand): Likewise.
5689         (sched_attr_op_type): Likewise.
5690         (m68k_sched_attr_opx_type): Likewise.
5691         (m68k_sched_attr_opy_type): Likewise.
5692         (sched_get_reg_operand): Likewise.
5693         (sched_get_mem_operand): Likewise.
5694         (m68k_sched_address_bypass_p): Likewise for both params.
5695         (sched_get_indexed_address_scale): Likewise.
5696         (m68k_sched_indexed_address_bypass_p): Likewise.
5697         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
5698         (m68k_sched_indexed_address_bypass_p): Likewise.
5699         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
5700         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
5701         removing another.
5702         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
5703         params from rtx to rtx_insn *.
5704         (mips_fmadd_bypass): Likewise.
5705         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
5706         (mips_linked_madd_p): Likewise.
5707         (mips_macc_chains_last_hilo): Likewise for this variable.
5708         (mips_macc_chains_record): Likewise for param.
5709         (vr4130_last_insn): Likewise for this variable.
5710         (vr4130_swap_insns_p): Likewise for both params.
5711         (mips_ls2_variable_issue): Likewise for param.
5712         (mips_need_noat_wrapper_p): Likewise for param "insn".
5713         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
5714         in place of "x" after the emit_insn.
5715         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
5716         params from rtx to rtx_insn *.
5717         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
5718         (pa_combine_instructions): Introduce local "par" for result of
5719         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
5720         to make_insn_raw.
5721         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
5722         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
5723         (rl78_alloc_physical_registers_op1): Likewise.
5724         (rl78_alloc_physical_registers_op2): Likewise.
5725         (rl78_alloc_physical_registers_ro1): Likewise.
5726         (rl78_alloc_physical_registers_cmp): Likewise.
5727         (rl78_alloc_physical_registers_umul): Likewise.
5728         (rl78_alloc_address_registers_macax): Likewise.
5729         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
5730         * config/s390/predicates.md (execute_operation): Likewise for
5731         local "insn".
5732         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
5733         params.
5734         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
5735         (addr_generation_dependency_p): Likewise for param "insn".
5736         (s390_agen_dep_p): Likewise for both params.
5737         (s390_fpload_toreg): Likewise for param "insn".
5738         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
5739         * config/sh/sh.c (sh_loop_align): Likewise for param and local
5740         "next".
5741         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
5742         * config/sh/sh_treg_combine.cc
5743         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
5744         and local "i".
5745         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
5746         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
5747         "and_insn", "load", "shift".
5748         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
5749         "insn".
5750         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
5751         for XEXP (note, 0) of the REG_CC_SETTER note.
5752         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
5753         rtx_insn *, eliminating a checked cast made redundant by this.
5754         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
5755         to rtx_insn *.
5756         * genattr.c (main): When writing out the prototype to
5757         const_num_delay_slots, strengthen the param from rtx to
5758         rtx_insn *.
5759         * genattrtab.c (write_const_num_delay_slots): Likewise when
5760         writing out the implementation of const_num_delay_slots.
5761         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
5762         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
5763         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
5764         favor of new rtx locals "src" and "set" and new local rtx_insn *
5765         "insn" and "seq".
5766         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
5767         to rtx_insn *.
5768         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
5769         locals "cond", "if_then_else", "set" and new rtx_insn * locals
5770         "insn" and "seq".
5771         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
5772         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
5773         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
5774         the top-level scope, replacing with new more tightly-scoped rtx
5775         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
5776         "new_insn", "copy_of_insn_b", and make local rtx "set" more
5777         tightly-scoped.
5778         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
5779         rtx_insn *.
5780         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
5781         "move_insn".
5782         (ira_setup_alts): Likewise for param "insn".
5783         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
5784         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
5785         and an rtx_insn *.
5786         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
5787         new more-tightly scoped rtx locals "add3_insn", "insn",
5788         "add2_insn" and rtx_insn * "move_insn".
5789         * postreload-gcse.c (eliminate_partially_redundant_load): Add
5790         checked cast on result of gen_move_insn when invoking
5791         extract_insn.
5792         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
5793         rtx_insn *.
5794         (verify_changes): Add a checked cast on "object" when invoking
5795         insn_invalid_p.
5796         (extract_insn_cached): Strengthen param "insn" from rtx to
5797         rtx_insn *.
5798         (extract_constrain_insn_cached): Likewise.
5799         (extract_insn): Likewise.
5800         * recog.h (insn_invalid_p): Likewise for param 1.
5801         (recog_memoized): Likewise for param.
5802         (extract_insn): Likewise.
5803         (extract_constrain_insn_cached): Likewise.
5804         (extract_insn_cached): Likewise.
5805         * reload.c (can_reload_into): Likewise for local "test_insn".
5806         * reload.h (cleanup_subreg_operands): Likewise for param.
5807         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
5808         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
5809         result of emit_insn.  Remove a checked cast made redundant by this
5810         change.
5811         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
5812         rtx to rtx_insn *.
5813         * sel-sched.c (get_reg_class): Likewise.
5815 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5816             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5818         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
5819         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
5820         Define.
5821         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
5823 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5825         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
5826         const rtx_insn *, and from rtx to rtx_insn * for the other
5827         overloaded variant.
5828         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
5829         INSN_LOCATION, since we know INSN_P holds.
5830         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
5831         (insn_file): Likewise.
5832         (insn_scope): Likewise.
5833         (insn_location): Likewise.
5835         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
5836         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
5837         for the result of gen_load_const_gp.
5838         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
5839         param from rtx to rtx_insn *.
5840         * config/rs6000/rs6000.c (output_call): Likewise.
5841         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
5842         introducing a checked cast to rtx_sequence * and use of the insn
5843         method.
5844         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
5845         from rtx to rtx_insn *.
5846         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
5847         (insn_line): Likewise.
5848         (insn_file): Likewise.
5849         (insn_location): Likewise.
5850         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
5851         from rtx to rtx_insn *.
5852         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
5853         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
5854         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
5855         via a checked cast.
5856         * reorg.c (relax_delay_slots): Strengthen locals named "after"
5857         from rtx to rtx_insn *; use methods of "pat" for type-safety.
5859 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5861         * combine.c (try_combine): Eliminate checked cast on result of
5862         gen_rtx_INSN.
5863         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
5864         autogenerated one by strengthening the return type and params 2 and 3
5865         from rtx to rtx_insn *, and by naming the params.
5866         * gengenrtl.c (special_rtx): Add INSN to those that are
5867         special-cased.
5868         * rtl.h (gen_rtx_INSN): New prototype.
5870 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5872         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
5873         than NULL_RTX.
5874         (no_equiv): Likewise.
5875         (update_equiv_regs): Likewise.
5876         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
5877         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
5878         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
5879         clarity.
5880         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
5881         from rtx to rtx_insn_list *.
5882         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
5883         rtx_insn_list * and use methods for clarity and typesafety.
5884         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
5885         "list".
5886         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
5887         redundant check on INSN_P (insns): this cannot hold, as "insns" is
5888         an INSN_LIST, not an insn.
5889         (reverse_equiv_p): Strengthen local "insns" from rtx to
5890         rtx_insn_list * and use methods for clarity and typesafety.
5891         (contains_reloaded_insn_p): Likewise for local "list".
5893 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
5895         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
5896         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
5897         (arm_builtin_vectorized_function): Likewise.
5898         * config/arm/arm_neon_builtins.def: New macro for copysignf.
5899         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
5901 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
5903         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
5904         * builtins.h (default_target_builtins): Likewise.
5905         * gcse.h (default_target_gcse): Likewise.
5906         * target-globals.h (target_globals): Add a destructor.  Convert
5907         void-pointer fields back to their real type and change from
5908         GTY((atomic)) to GTY((skip)).
5909         (restore_target_globals): Remove casts accordingly.
5910         * target-globals.c (save_target_globals): Use XCNEW rather than
5911         ggc_internal_cleared_alloc to allocate non-GC structures.
5912         Use ggc_cleared_alloc to allocate the target_globals structure
5913         itself.
5914         (target_globals::~target_globals): Define.
5916 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5918         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
5919         mnemonic instead of fldmfdd.
5920         * config/arm/arm.c (vfp_output_fstmd): Rename to...
5921         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
5922         Output vpush when address register is SP.
5923         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
5924         (vfp_output_vstmd): ... This.
5925         * config/arm/vfp.md (push_multi_vfp): Update call to
5926         vfp_output_vstmd.
5928 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5930         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
5932 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5934         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
5935         (*sqrtdf2_vfp): Likewise.
5936         (*cmpsf_vfp): Likewise.
5937         (*cmpsf_trap_vfp): Likewise.
5938         (*cmpdf_vfp): Likewise.
5939         (*cmpdf_trap_vfp): Likewise.
5941 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5943         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
5944         (*truncdfsf2_vfp): Likewise.
5945         (*truncsisf2_vfp): Likewise.
5946         (*truncsidf2_vfp): Likewise.
5947         (fixuns_truncsfsi2): Likewise.
5948         (fixuns_truncdfsi2): Likewise.
5949         (*floatsisf2_vfp): Likewise.
5950         (*floatsidf2_vfp): Likewise.
5951         (floatunssisf2): Likewise.
5952         (floatunssidf2): Likewise.
5954 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5956         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
5957         (*muldf3_vfp): Likewise.
5958         (*mulsf3negsf_vfp): Likewise.
5959         (*muldf3negdf_vfp): Likewise.
5960         (*mulsf3addsf_vfp): Likewise.
5961         (*muldf3adddf_vfp): Likewise.
5962         (*mulsf3subsf_vfp): Likewise.
5963         (*muldf3subdf_vfp): Likewise.
5964         (*mulsf3negsfaddsf_vfp): Likewise.
5965         (*fmuldf3negdfadddf_vfp): Likewise.
5966         (*mulsf3negsfsubsf_vfp): Likewise.
5967         (*muldf3negdfsubdf_vfp): Likewise.
5969 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5971         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
5972         (*absdf2_vfp): Likewise.
5973         (*negsf2_vfp): Likewise.
5974         (*negdf2_vfp): Likewise.
5975         (*addsf3_vfp): Likewise.
5976         (*adddf3_vfp): Likewise.
5977         (*subsf3_vfp): Likewise.
5978         (*subdf3_vfp): Likewise.
5979         (*divsf3_vfp): Likewise.
5980         (*divdf3_vfp): Likewise.
5982 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5984         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
5985         multiple.
5986         (arm_print_operand): Don't convert real values to decimal
5987         representation in default case.
5988         (fp_immediate_constant): Delete.
5989         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
5990         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
5991         syntax.
5992         (*thumb2_movsi_vfp): Likewise.
5993         (*movdi_vfp): Likewise.
5994         (*movdi_vfp_cortexa8): Likewise.
5995         (*movhf_vfp_neon): Likewise.
5996         (*movhf_vfp): Likewise.
5997         (*movsf_vfp): Likewise.
5998         (*thumb2_movsf_vfp): Likewise.
5999         (*movdf_vfp): Likewise.
6000         (*thumb2_movdf_vfp): Likewise.
6001         (*movsfcc_vfp): Likewise.
6002         (*thumb2_movsfcc_vfp): Likewise.
6003         (*movdfcc_vfp): Likewise.
6004         (*thumb2_movdfcc_vfp): Likewise.
6006 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
6008         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6009         (-mtune): Likewise.
6010         (-mcpu): Likewise.
6012 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6014         PR target/61749
6015         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6016         Use qualifier_immediate for last operand.  Rename to...
6017         (aarch64_types_ternop_lane_qualifiers): ... This.
6018         (TYPES_QUADOP): Rename to...
6019         (TYPES_TERNOP_LANE): ... This.
6020         (aarch64_simd_expand_args): Return const0_rtx when encountering user
6021         error.  Change return of 0 to return of NULL_RTX.
6022         (aarch64_crc32_expand_builtin): Likewise.
6023         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6024         ICE when expanding unknown builtin.
6025         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6026         TERNOP_LANE qualifiers.
6027         (sqdmlsl_lane): Likewise.
6028         (sqdmlal_laneq): Likewise.
6029         (sqdmlsl_laneq): Likewise.
6030         (sqdmlal2_lane): Likewise.
6031         (sqdmlsl2_lane): Likewise.
6032         (sqdmlal2_laneq): Likewise.
6033         (sqdmlsl2_laneq): Likewise.
6035 2014-09-09  Nick Clifton  <nickc@redhat.com>
6037         * doc/invoke.texi (Optimization Options): Add missing @gol to the
6038         end of a line.
6039         (S/390 and zSeries Options): Remove superfluous word from the
6040         description of the -mhotpatch option.
6042 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6044         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6045         * ira.c: #include "shrink-wrap.h"
6046         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6047         * ifcvt.c: #include "shrink-wrap.h"
6048         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6050 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
6052         * common/config/picochip/picochip-common.c: Remove.
6053         * config.gcc: Remove support for picochip.
6054         * config/picochip/constraints.md: Remove.
6055         * config/picochip/dfa_space.md: Remove.
6056         * config/picochip/dfa_speed.md: Remove.
6057         * config/picochip/picochip-protos.h: Remove.
6058         * config/picochip/picochip.c: Remove.
6059         * config/picochip/picochip.h: Remove.
6060         * config/picochip/picochip.md: Remove.
6061         * config/picochip/picochip.opt: Remove.
6062         * config/picochip/predicates.md: Remove.
6063         * config/picochip/t-picochip: Remove.
6064         * doc/md.texi: Don't document picochi.
6066 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
6068         * basic-block.h (control_flow_insn_p): Strengthen param from
6069         const_rtx to const rtx_insn *.
6070         * cfgbuild.c (control_flow_insn_p): Likewise.
6072 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
6074         * gcse.c (modify_mem_list): Strengthen this variable from
6075         vec<rtx> * to vec<rtx_insn *> *.
6076         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6077         vec<rtx_insn *>.
6078         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6079         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6080         (record_last_mem_set_info): Strengthen param "insn" from rtx to
6081         rtx_insn *.
6082         (record_last_set_info): Likewise for local "last_set_insn".
6084 2014-09-08  DJ Delorie  <dj@redhat.com>
6086         * doc/invoke.texi (MSP430 Options): Add -minrt.
6088 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6090         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
6091         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6092         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6093         handling SH_SPLAT.
6094         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6095         of extracted lane.
6096         (adjust_splat): New function.
6097         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6098         (dump_swap_insn_table): Add case for SH_SPLAT.
6100 2014-09-08  Richard Biener  <rguenther@suse.de>
6102         PR ipa/63196
6103         * tree-inline.c (copy_loops): The source loop header should
6104         always be non-NULL.
6105         (tree_function_versioning): If loops need fixup after removing
6106         unreachable blocks fix them.
6107         * omp-low.c (simd_clone_adjust): Do not add incr block to
6108         loop under construction.
6110 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6112         * config/aarch64/aarch64-builtins.c
6113         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6115 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6117         * config/i386/cygming.h (TF_SIZE): Remove.
6118         * config/i386/darwin.h (TF_SIZE): Remove.
6119         * config/i386/dragonfly.h (TF_SIZE): Remove.
6120         * config/i386/freebsd.h (TF_SIZE): Remove.
6121         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6122         * config/i386/openbsdelf.h (TF_SIZE): Remove.
6123         * config/i386/sol2.h (TF_SIZE): Remove.
6124         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6125         * config/ia64/linux.h (TF_SIZE): Remove.
6126         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6127         * doc/tm.texi: Regenerate.
6128         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6130 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6132         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6133         Remove.
6134         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6135         Remove.
6136         * doc/tm.texi: Regenerate.
6137         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6138         Poison.
6139         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6140         * config/cris/cris.h (__make_dp): Remove.
6142 2014-09-08  Richard Biener  <rguenther@suse.de>
6144         PR bootstrap/63204
6145         * cfgloop.c (mark_loop_for_removal): Track former header
6146         unconditionally.
6147         * cfgloop.h (struct loop): Add former_header member unconditionally.
6148         * loop-init.c (fix_loop_structure): Enable bogus loop removal
6149         diagnostic unconditionally.
6151 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6153         PR target/63190
6154         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6155         constraint for operand0 and remove write only modifier from operand3.
6157 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
6159         PR rtl-optimization/62208
6160         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
6161         rather than const0_rtx in eq/ne-xor simplifications.
6163 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
6165         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
6166         (arc_output_mi_thunk): Likewise.
6168         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
6169         arguments to silence bogus warning.
6171 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
6173         PR middle-end/63171
6174         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
6176 2014-09-06  Tom de Vries  <tom@codesourcery.com>
6178         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
6179         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
6180         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6182 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
6184         PR target/63188
6185         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
6186         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
6188 2014-09-05  Easwaran Raman  <eraman@google.com>
6190         PR rtl-optimization/62146
6191         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
6192         hoisted instruction unconditional.
6194 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
6196         PR target/63187
6197         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6198         Do not allow any_mask_operand for operands[2].
6199         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6201 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6203         * config/arc/arc.c (arc_print_operand): Use insn method of
6204         final_sequence for type-safety.
6205         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6206         "insn" from rtx to rtx_insn *.
6207         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6208         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6209         Likewise for locals "branch", "label".
6210         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6211         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
6212         (same_cmp_following_p): Likewise for locals "i2", "i3".
6213         * config/sh/sh_optimize_sett_clrt.cc
6214         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6215         param "cbranch_insn".
6216         * function.c (convert_jumps_to_returns): Likewis for local "jump".
6217         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6218         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6219         const rtx_insn *.
6220         (condjump_p): Likewise.
6221         (condjump_in_parallel_p): Likewise.
6222         (pc_set): Likewise.
6223         (any_uncondjump_p): Likewise.
6224         (any_condjump_p): Likewise.
6225         (condjump_label): Likewise.
6226         (returnjump_p): Strengthen param "insn" from rtx to
6227         const rtx_insn *.
6228         (onlyjump_p): Strengthen param "insn" from const_rtx to
6229         const rtx_insn *.
6230         (jump_to_label_p): Likewise.
6231         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6232         (invert_jump): Likewise.
6233         * reorg.c (simplejump_or_return_p): Add checked cast when calling
6234         simplejump_p.
6235         (get_jump_flags): Strengthen param "insn" from rtx to
6236         const rtx_insn *.
6237         (get_branch_condition): Likewise.
6238         (condition_dominates_p): Likewise.
6239         (make_return_insns): Move declaration of local "pat" earlier, to
6240         after we've handled NONJUMP_INSN_P and non-sequences, using its
6241         methods to simplify the code and for type-safety.
6242         * rtl.h (find_constant_src): Strengthen param from const_rtx to
6243         const rtx_insn *.
6244         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6245         (condjump_p): Strengthen param from const_rtx to
6246         const rtx_insn *.
6247         (any_condjump_p): Likewise.
6248         (any_uncondjump_p): Likewise.
6249         (pc_set): Likewise.
6250         (condjump_label): Likewise.
6251         (simplejump_p): Likewise.
6252         (returnjump_p): Likewise.
6253         (onlyjump_p): Likewise.
6254         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6255         (invert_jump): Likewise.
6256         (condjump_in_parallel_p): Strengthen param from const_rtx to
6257         const rtx_insn *.
6258         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6259         to const rtx_insn *.
6260         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6261         to const rtx_insn *.
6262         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6264 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6266         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6267         above the conditional, and convert the check on GET_CODE to a
6268         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6269         the conditional.  Simplify the conditional by using methods of
6270         "trial_seq".
6272 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6274         * haifa-sched.c (check_clobbered_conditions): Strengthen local
6275         "link" from rtx to rtx_insn_list *, and use its methods for
6276         clarity and type-safety.
6277         (toggle_cancelled_flags): Likewise.
6278         (restore_last_backtrack_point): Likewise.
6279         (queue_to_ready): Use insn method of "link" in one place.
6280         (schedule_block): Strengthen local "link" from rtx to
6281         rtx_insn_list *, and use its methods for clarity and type-safety.
6283 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6285         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6286         param "insn" from const_rtx to const rtx_insn *.
6287         (sched_get_reverse_condition_uncached): Likewise.
6288         (sched_get_condition_with_rev): Likewise.
6289         (sched_has_condition_p): Likewise.
6290         (sched_insns_conditions_mutex_p): Likewise for both params.
6291         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6292         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6293         (setup_insn_reg_uses): Move local "list" to be more tightly
6294         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
6295         its methods for clarity and type-safety.
6296         (sched_analyze_1): Strengthen local "pending" from rtx to
6297         rtx_insn_list *, and local "pending_mem" from rtx to
6298         rtx_expr_list *.  Use methods of each for clarity and type-safety.
6299         (sched_analyze_2): Likewise.
6300         (sched_analyze_insn): Likewise.
6302         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
6303         param from const_rtx to const rtx_insn *.
6304         (sched_insns_conditions_mutex_p): Likewise for both params.
6305         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
6306         param.
6308         * system.h (CONST_CAST_RTX_INSN): New macro.
6310 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6312         * recog.c (peep2_attempt): Strengthen return type from rtx to
6313         rtx_insn *.
6314         (peep2_update_life): Likewise for params "last", "prev", removing
6315         a checked cast made redundant by this.
6316         (peephole2_optimize): Likewise for local "last".
6318 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6320         * basic-block.h (set_block_for_insn): Eliminate this macro in
6321         favor of...
6322         * rtl.h (set_block_for_insn): New inline function, imposing the
6323         requirement that the "insn" param is an rtx_insn *.
6325 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6327         * caller-save.c (setup_save_areas): Strengthen local "insn" from
6328         rtx to rtx_insn *.
6329         * final.c (get_call_reg_set_usage): Likewise for first param,
6330         eliminating a checked cast.
6331         * regs.h (get_call_reg_set_usage): Likewise for first param.
6332         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
6333         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
6334         cast, replacing references to "x" with "call_insn" where
6335         appropriate.
6336         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
6337         rtx_insn *, adding a checked cast.
6339 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6341         * output.h (final_scan_insn): Strengthen first param from rtx to
6342         rtx_insn *.
6344         * final.c (final_scan_insn): Likewise, renaming it back from
6345         "uncast_insn" to "insn", eliminating the checked cast.
6347         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
6348         "vec" with an rtx_sequence * "seq", taking a copy of
6349         "final_sequence", and using methods of "seq" for clarity, and for
6350         type-safety in the calls to final_scan_insn.
6351         * config/mips/mips.c (mips_output_conditional_branch): Use methods
6352         of "final_sequence" for clarity, and for type-safety in the call to
6353         final_scan_insn.
6354         * config/sh/sh.c (print_slot): Strengthen param from rtx to
6355         rtx_sequence * and rename from "insn" to "seq".
6357 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6359         * jump.c (delete_related_insns): Introduce a new local "table" by
6360         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
6361         get_labels method of "table" to simplify access to the labels in
6362         the jump table.
6364 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6366         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
6367         f_minmaxs, f_minmaxd types.
6369 2014-09-05  Richard Biener  <rguenther@suse.de>
6371         * cfgloop.c (mark_loop_for_removal): Record former header
6372         when ENABLE_CHECKING.
6373         * cfgloop.h (strut loop): Add former_header member when
6374         ENABLE_CHECKING.
6375         * loop-init.c (fix_loop_structure): Sanity check loops
6376         marked for removal if they re-appeared.
6378 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6380         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
6381         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
6383         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
6384         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
6385         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
6386         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
6387         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
6388         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
6389         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
6390         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
6391         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
6392         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
6393         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
6394         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
6395         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
6396         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
6397         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
6398         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
6399         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
6400         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
6401         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
6402         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
6403         with int{32,16,8}_t.
6405 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6407         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
6408         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
6409         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
6410         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
6411         Remove temporary __asm__ and reimplement.
6413 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6415         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
6416         handling cmge, cmgt, cmeq, cmtst.
6418         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
6419         cmlt, cmgeu, cmgtu, cmtst): Remove.
6421         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
6422         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
6423         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
6424         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
6426 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6428         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
6429         TYPES_TST): Define.
6430         (aarch64_fold_builtin): Update pattern for cmtst.
6432         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
6433         Declare.
6435         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
6437         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
6438         Switch operands, separate out more cases, refactor.
6440         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
6442         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
6443         argument; rename old version to...
6444         (aarch64_const_vec_all_same_in_range_p): ...this.
6445         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
6447         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
6449 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6451         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6452         Remove qualifier_const_pointer, update comment.
6454 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6456         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
6458 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6460         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
6461         varargs with pointer parameter.
6462         (aarch64_simd_expand_builtin): pass pointer into previous.
6464 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6466         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
6467         alus_ext.
6469 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6471         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
6472         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
6473         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6474         Replace temporary asm with call to builtin.
6475         (vrbit_p8, vrbitq_p8): New functions.
6477 2014-09-05  Richard Biener  <rguenther@suse.de>
6479         * cfgloop.c (mark_loop_for_removal): New function.
6480         * cfgloop.h (mark_loop_for_removal): Declare.
6481         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
6482         (merge_blocks): Likewise.
6483         (duplicate_block): Likewise.
6484         * except.c (sjlj_emit_dispatch_table): Likewise.
6485         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
6486         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
6487         (thread_through_loop_header): Likewise.
6489 2014-09-05  Richard Biener  <rguenther@suse.de>
6491         PR middle-end/63148
6492         * fold-const.c (try_move_mult_to_index): Remove.
6493         (fold_binary_loc): Do not call it.
6494         * tree-data-ref.c (dr_analyze_indices): Strip conversions
6495         from the base object again.
6497 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
6499         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
6500         DImode.
6502 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
6504         PR target/55701
6505         * config/arm/arm.md (setmem): New pattern.
6506         * config/arm/arm-protos.h (struct tune_params): New fields.
6507         (arm_gen_setmem): New prototype.
6508         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6509         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6510         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6511         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6512         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6513         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6514         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6515         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6516         (arm_const_inline_cost): New function.
6517         (arm_block_set_max_insns): New function.
6518         (arm_block_set_non_vect_profit_p): New function.
6519         (arm_block_set_vect_profit_p): New function.
6520         (arm_block_set_unaligned_vect): New function.
6521         (arm_block_set_aligned_vect): New function.
6522         (arm_block_set_unaligned_non_vect): New function.
6523         (arm_block_set_aligned_non_vect): New function.
6524         (arm_block_set_vect, arm_gen_setmem): New functions.
6526 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
6528         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
6530 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
6532         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6534 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6536         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
6537         an rtx.
6538         * valtrack.h: Adjust.
6540 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6542         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6543         an rtx.
6544         (emit_jump_insn_before_noloc): Likewise.
6545         (emit_call_insn_before_noloc): Likewise.
6546         (emit_label_before): Likewise.
6547         (emit_label_after): Likewise.
6548         (emit_insn_before_setloc): Likewise.
6549         (emit_jump_insn_before_setloc): Likewise.
6550         (emit_call_insn_before_setloc): Likewise.
6551         (emit_call_insn_before): Likewise.
6552         * rtl.h: Adjust.
6554 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6556         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6557         rtx_insn *, eliminating a checked cast.
6559 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6561         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6562         const_rtx to const rtx_insn *.
6563         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6564         cast.
6566 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6568         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6569         fixup_args_size_notes.
6570         * expr.c (fixup_args_size_notes): Strengthen first two params from
6571         rtx to rtx_insn *, eliminating a checked cast.
6572         * rtl.h (fixup_args_size_notes): Strengthen first two params from
6573         rtx to rtx_insn *.
6575 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6577         * haifa-sched.c (get_ready_element): Strengthen return type from
6578         rtx to rtx_insn *.
6579         * sched-int.h (get_ready_element): Likewise.
6581 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
6583         PR target/63165
6584         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6585         indexed_or_indirect_operand instead of memory_operand.
6586         (floatsi<mode>2_lfiwzx_mem): Ditto.
6588 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6590         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6591         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6592         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6594 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6596         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6597         rtx.
6598         (get_last_nonnote_insn): Likewise.
6599         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6600         * resource.c (find_basic_block): Likewise.
6601         * rtl.h: Adjust.
6602         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6603         const_rtx.
6605 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
6607         * genattr.c (main): Within the prototype of insn_latency written
6608         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6609         * genautomata.c (output_internal_maximal_insn_latency_func):
6610         Within the implementation of insn_latency written out to
6611         insn-automata.c, strengthen both params from rtx to rtx_insn *,
6612         eliminating a pair of checked casts.
6614 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
6616         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6617         rtx_insn *.
6619         * rtl.h (eh_returnjump_p): Likewise.
6621 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
6623         * Makefile.in (TAGS): Handle constructs in timevar.def.
6625 2014-09-04  Guozhi Wei  <carrot@google.com>
6627         PR target/62040
6628         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6629         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6630         it into two patterns.
6631         (move_lo_quad_internal_be_<mode>): Likewise.
6633 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6635         * doc/options.texi: Document that Var and Init are required if CPP
6636         is given.
6637         * optc-gen.awk: Require Var and Init if CPP is given.
6638         * common.opt (Wpedantic): Use Init.
6640 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6642         * config/rs6000/rs6000.c (special_handling_values): Add
6643         SH_EXTRACT.
6644         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
6645         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
6646         as swappable with special handling SH_EXTRACT.  Remove
6647         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
6648         optimization.
6649         (adjust_extract): New function.
6650         (handle_special_swappables): Add default to case statement; add
6651         case for SH_EXTRACT that calls adjust_extract.
6652         (dump_swap_insn_table): Handle SH_EXTRACT.
6654 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6656         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
6657         selection of 0th memory doubleword, regardless of endianness.
6659 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6661         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6663 2014-09-04  Alan Modra  <amodra@gmail.com>
6665         PR debug/60655
6666         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6667         can't be output.
6669 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
6671         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6672         * targhooks.c (default_dwarf_frame_reg_mode): New function.
6673         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6674         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6675         * doc/tm.texi: Regenerate.
6676         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6677         selection logic to default_dwarf_frame_reg_mode.
6679 2014-09-03  Marek Polacek  <polacek@redhat.com>
6681         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6682         by -Wall.
6684 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
6686         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6687         the automodified register.
6689 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
6691         * output.h (get_some_local_dynamic_name): Declare.
6692         * final.c (some_local_dynamic_name): New variable.
6693         (get_some_local_dynamic_name): New function.
6694         (final_end_function): Clear some_local_dynamic_name.
6695         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
6696         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6697         (print_operand): Report an error if '%&' is used inappropriately.
6698         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
6699         (get_some_local_dynamic_name_1): Delete.
6700         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
6701         (rs6000_get_some_local_dynamic_name): Delete.
6702         (rs6000_get_some_local_dynamic_name_1): Delete.
6703         (print_operand): Report an error if '%&' is used inappropriately.
6704         * config/s390/s390.c (machine_function): Remove some_ld_name.
6705         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6706         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
6707         * config/sparc/sparc.c: Include rtl-iter.h.
6708         (machine_function): Remove some_ld_name.
6709         (sparc_print_operand): Report an error if '%&' is used inappropriately.
6710         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6712 2014-09-03  Richard Henderson  <rth@redhat.com>
6714         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
6715         (aarch64_popwb_pair_reg): Remove.
6716         (aarch64_set_frame_expr): Remove.
6717         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
6718         the restore ops performed by the insns generated.
6719         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
6720         insn.  Perform the calls_eh_return addition later; do not attempt to
6721         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
6722         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
6723         special markup at all.  Load cfun->machine->frame.hard_fp_offset
6724         into a local variable.
6725         (aarch64_frame_pointer_required): Don't check calls_alloca.
6727 2014-09-03  Richard Biener  <rguenther@suse.de>
6729         * opts.c (default_options_optimization): Adjust
6730         max-combine-insns to 2 for -Og.
6732 2014-09-03  Martin Jambor  <mjambor@suse.cz>
6734         PR ipa/62015
6735         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
6736         pass-trough jump functions correctly.
6738 2014-09-03  Martin Jambor  <mjambor@suse.cz>
6740         PR ipa/61986
6741         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
6742         created replacements in ascending order of offsets.
6743         (known_aggs_to_agg_replacement_list): Likewise.
6745 2014-09-03  Martin Liska  <mliska@suse.cz>
6747         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
6748         is set to set uninitialized value for vnresult.
6750 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6752         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
6753         for TARGET_MUST_PASS_IN_STACK.
6755 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6757         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
6758         for TARGET_ARG_PARTIAL_BYTES.
6760 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6762         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
6763         instructions for varargs implementation.
6764         (nds32_expand_epilogue): Emit stack adjustment instructions for
6765         varargs implementation.
6767 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6769         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
6770         optimization detection.
6772 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6774         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
6775         arguments.
6776         (nds32_function_arg_advance): Deal with nameless arguments.
6777         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
6778         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
6779         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
6781 2014-09-03  Richard Biener  <rguenther@suse.de>
6783         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
6784         (struct bb_bitmap_sets): Remove deferred member.
6785         (BB_DEFERRED): Remove.
6786         (defer_or_phi_translate_block): Remove.
6787         (compute_antic_aux): Remove deferring of blocks, assert
6788         proper iteration order.
6789         (compute_antic): Do not set BB_DEFERRED.
6790         (eliminate): Allocate el_avail of proper size initially.
6792 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6794         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
6795         according to the value of crtl->args.pretend_args_size.
6797 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6799         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
6800         varargs information.
6802 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6804         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
6805         implementation for TARGET_SETUP_INCOMING_VARARGS.
6806         (nds32_strict_argument_naming): Refine comment.
6807         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
6808         Define for future implementation.
6810 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
6812         * config/i386/adxintrin.h (_subborrow_u32): New.
6813         (_addcarry_u32): Ditto.
6814         (_subborrow_u64): Ditto.
6815         (_addcarry_u64): Ditto.
6816         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
6817         IX86_BUILTIN_SBB64.
6818         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
6819         __builtin_ia32_sbb_u64
6821 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6823         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
6824         GPR-specific stuff.
6825         (nds32_function_arg_advance): Likewise.
6826         (nds32_init_cumulative_args): Likewise.
6827         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
6828         (NDS32_FIRST_GPR_REGNUM): Define.
6829         (NDS32_LAST_GPR_REGNUM): Define.
6830         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
6831         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6832         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6833         (machine_function): Use GRP-specific stuff.
6835 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6837         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
6838         (nds32_expand_epilogue): Likewise.
6839         (nds32_expand_prologue_v3push): Likewise.
6840         (nds32_expand_epilogue_v3pop): Likewise.
6842 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6844         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
6845         v3push/v3pop for variadic function.
6846         * config/nds32/nds32.md (prologue, epilogue): Likewise.
6848 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6850         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
6851         Check rtx for varargs implementation.
6852         (nds32_output_stack_pop): Likewise.
6853         * config/nds32/nds32-protos.h: Have a rtx argument for
6854         nds32_output_stack_push and nds32_output_stack_pop.
6855         * config/nds32/nds32.md: Likewise.
6857 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6859         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
6860         to check if FUNC is an interrupt service routine.
6861         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
6863 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6865         * config/nds32/nds32.h (machine_function): Add some fields for variadic
6866         arguments implementation.
6868 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6870         * config/nds32/nds32-predicates.c
6871         (nds32_valid_stack_push_pop): Rename to ...
6872         (nds32_valid_stack_push_pop_p): ... this.
6873         * config/nds32/nds32-protos.h: Likewise.
6874         * config/nds32/predicates.md: Likewise.
6876 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6878         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
6879         (nds32_emit_stack_v3push): ... this.
6880         (nds32_gen_stack_v3pop): Rename to ...
6881         (nds32_emit_stack_v3pop): ... this and consider CFA restore
6882         information.
6884 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6886         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
6887         (nds32_emit_stack_push_multiple): ... this.
6888         (nds32_gen_stack_pop_multiple): Rename to ...
6889         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
6890         information.
6892 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6894         PR target/61078
6895         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
6896         and add a second splitter to handle the remaining cases.
6898 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6900         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
6902 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
6904         * cfgexpand.c (label_rtx_for_bb): Change type to
6905         hash_map<basic_block, rtx_code_label *> *.
6906         (expand_gimple_basic_block): Adjust.
6907         (pass_expand::execute): Likewise.
6909 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
6911         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
6912         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
6913         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
6914         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
6915         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
6916         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
6917         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
6918         of rtx.
6920 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
6922         * alloc-pool.c: Include coretypes.h.
6923         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
6924         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
6925         hash_set instead of htab.
6926         * ggc-page.c (in_gc): New variable.
6927         (ggc_free): Do nothing if a collection is taking place.
6928         (ggc_collect): Set in_gc appropriately.
6929         * ggc.h (gt_ggc_mx(const char *)): New function.
6930         (gt_pch_nx(const char *)): Likewise.
6931         (gt_ggc_mx(int)): Likewise.
6932         (gt_pch_nx(int)): Likewise.
6933         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
6934         (hash_map::hash_entry::pch_nx): Likewise.
6935         (hash_map::hash_entry::pch_nx_helper): Likewise.
6936 (hash_map::hash_map): Adjust.
6937 (hash_map::create_ggc): New function.
6938 (gt_ggc_mx): Likewise.
6939 (gt_pch_nx): Likewise.
6940         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
6941 (default_hashset_traits::pch_nx): Likewise.
6942 (hash_set::hash_entry::ggc_mx): Likewise.
6943 (hash_set::hash_entry::pch_nx): Likewise.
6944 (hash_set::hash_entry::pch_nx_helper): Likewise.
6945 (hash_set::hash_set): Adjust.
6946 (hash_set::create_ggc): New function.
6947 (hash_set::elements): Likewise.
6948 (gt_ggc_mx): Likewise.
6949 (gt_pch_nx): Likewise.
6950         * hash-table.h (hash_table::hash_table): Adjust.
6951 (hash_table::m_ggc): New member.
6952         (hash_table::~hash_table): Adjust.
6953         (hash_table::expand): Likewise.
6954         (hash_table::empty): Likewise.
6955 (gt_ggc_mx): New function.
6956         (hashtab_entry_note_pointers): Likewise.
6957 (gt_pch_nx): Likewise.
6959 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6961         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
6962         built-in definition.
6963         (XVCVUXDDP_SCALE): Likewise.
6964         (XVCVDPSXDS_SCALE): Likewise.
6965         (XVCVDPUXDS_SCALE): Likewise.
6966         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
6967         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
6968         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
6969         VSX_BUILTIN_XVCVDPUXDS_SCALE.
6970         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
6971         prototype.
6972         * config/rs6000/rs6000.c (real.h): New include.
6973         (rs6000_scale_v2df): New function.
6974         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
6975         (UNSPEC_VSX_XVCVUXDDP): Likewise.
6976         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
6977         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
6978         (vsx_xvcvsxddp_scale): New define_expand.
6979         (vsx_xvcvsxddp): New define_insn.
6980         (vsx_xvcvuxddp_scale): New define_expand.
6981         (vsx_xvcvuxddp): New define_insn.
6982         (vsx_xvcvdpsxds_scale): New define_expand.
6983         (vsx_xvcvdpsxds): New define_insn.
6984         (vsx_xvcvdpuxds_scale): New define_expand.
6985         (vsx_xvcvdpuxds): New define_insn.
6986         * doc/extend.texi (vec_ctf): Add new prototypes.
6987         (vec_cts): Likewise.
6988         (vec_ctu): Likewise.
6989         (vec_splat): Likewise.
6990         (vec_div): Likewise.
6991         (vec_mul): Likewise.
6993 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6995         PR target/62275
6996         * config/arm/neon.md
6997         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
6998         <v_cmp_result>): New pattern.
6999         * config/arm/iterators.md (NEON_VCVT): New int iterator.
7000         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7001         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7002         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7003         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7004         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7006 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7008         PR target/62275
7009         * config/arm/iterators.md (FIXUORS): New code iterator.
7010         (VCVT): New int iterator.
7011         (su_optab): New code attribute.
7012         (su): Likewise.
7013         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7015 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7017         * config/aarch64/predicates.md (aarch64_comparison_operation):
7018         New special predicate.
7019         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7020         aarch64_comparison_operation instead of matching an operator.
7021         Update operand numbers.
7022         (csinc3<mode>_insn): Likewise.
7023         (*csinv3<mode>_insn): Likewise.
7024         (*csneg3<mode>_insn): Likewise.
7025         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7026         * config/aarch64/aarch64.c (aarch64_get_condition_code):
7027         Return -1 instead of aborting on invalid condition codes.
7028         (aarch64_print_operand): Update aarch64_get_condition_code callsites
7029         to assert that the returned condition code is valid.
7030         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7032 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
7034         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7035         tree.def, and gimple.def
7037 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
7038             Balaji V. Iyer  <balaji.v.iyer@intel.com>
7039             Igor Zamyatin  <igor.zamyatin@intel.com>
7041         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7042         (__cilkrts_cilk_for_64): Likewise.
7043         * cilk-common.c (declare_cilk_for_builtin): New function.
7044         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7045         __cilkrts_cilk_for_64 bultins.
7046         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7047         CILK_TI_F_LOOP_64.
7048         (cilk_for_32_fndecl): New define.
7049         (cilk_for_64_fndecl): Likewise.
7050         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7051         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7052         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7053         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7054         GF_OMP_FOR_COMBINED_INTO.
7055         * gimplify.c (gimplify_scan_omp_clauses): Added
7056         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7057         (gimplify_adjust_omp_clauses): Ditto.
7058         (gimplify_omp_for): Added CILK_FOR case.
7059         (gimplify_expr): Ditto.
7060         * omp-low.c: Include cilk.h.
7061         (extract_omp_for_data): Set appropriate kind for
7062         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7063         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7064         (create_omp_child_function_name): Added second argument to handle
7065         cilk_for case.
7066         (cilk_for_check_loop_diff_type): New function.
7067         (expand_cilk_for_call): Likewise.
7068         (expand_cilk_for): Likewise.
7069         (create_omp_child_function): Set cilk_for_count; handle the cases when
7070         it is true; call create_omp_child_function_name with second argument.
7071         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7072         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7073         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7074         * tree-nested.c (convert_nonlocal_omp_clauses): Added
7075         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7076         (convert_local_omp_clauses): Ditto.
7077         * tree-pretty-print.c (dump_omp_clause): Added
7078         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7079         (dump_generic_node): Added CILK_FOR case.
7080         * tree.c (omp_clause_num_ops): New element
7081         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7082         (omp_clause_code_name): New element _Cilk_for_count_.
7083         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7084         * tree.def: Add tree code for CILK_FOR.
7086 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7088         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7089         (ppc403-compare): Add "exts with dot" case.
7090         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7091         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7092         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7093         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7094         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7095         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7096         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7097         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7098         cell-cmp-microcoded): Similarly.
7099         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7100         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7101         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7102         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7103         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7104         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7105         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7106         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7107         (power6-compare): Add "exts with dot" case.
7108         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7109         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7110         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7112         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7113         if avoiding Cell microcode.
7114         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7115         (is_cracked_insn): Ditto.
7116         (insn_must_be_first_in_group): Ditto.
7117         * config/rs6000/rs6000.md (dot): Adjust comment.
7118         (cell_micro): Handle exts+dot.
7119         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7120         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7121         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7122         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7123         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7124         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7125         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7127 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7129         * config/rs6000/rs6000.md (QHSI): Delete.
7130         (EXTQI, EXTHI, EXTSI): New mode iterators.
7131         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7132         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7133         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7134         9 anonymous instructions, and 8 splitters): Delete.
7135         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7136         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7137         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7138         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7139         *zero_extendsi<mode>2_dot2): New.
7141 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7143         * config/rs6000/rs6000.md (any_extend): New code iterator.
7144         (u, su): New code attributes.
7145         (dmode, DMODE): New mode attributes.
7146         (<su>mul<mode>3_highpart): New.
7147         (*<su>mul<mode>3_highpart): New.
7148         (<su>mulsi3_highpart_le): New.
7149         (<su>muldi3_highpart_le): New.
7150         (<su>mulsi3_highpart_64): New.
7151         (<u>mul<mode><dmode>3): New.
7152         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7153         splitters): Delete.
7154         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7155         splitters): Delete.
7157 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7159         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
7160         *mulsi3_internal2, and two splitters): Delete.
7161         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
7162         Delete.
7163         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
7165 2014-09-02  Richard Biener  <rguenther@suse.de>
7167         PR tree-optimization/62695
7168         * tree-ssa-structalias.c (find_func_clobbers): Add missing
7169         vector truncate.
7171 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
7173         PR target/62312
7174         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
7176 2014-09-01  Andi Kleen  <ak@linux.intel.com>
7178         * file-find.c (add_prefix_begin): Add.
7179         (do_add_prefix): Rename from add_prefix with first argument.
7180         (add_prefix): Add new wrapper.
7181         * file-find.h (add_prefix_begin): Add.
7182         * gcc-ar.c (main): Support -B option.
7184 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
7186         * genemit.c: Include dumpfile.h.
7187         (gen_split): Print name of splitter function to dump file.
7189 2014-09-01  Richard Biener  <rguenther@suse.de>
7191         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
7192         Use stack auto_vecs for constraint expressions.
7193         (find_func_aliases_for_call): Likewise.
7194         (find_func_aliases): Likewise.
7195         (find_func_clobbers): Likewise.
7197 2014-09-01  Richard Biener  <rguenther@suse.de>
7199         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7200         operands vector in most cases.  Remove redundant code.
7202 2014-09-01  Olivier Hainque  <hainque@adacore.com>
7204         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7205         $WIND_BASE instead of designating a harcoded arbitrary home dir.
7206         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7208 2014-09-01  Richard Biener  <rguenther@suse.de>
7210         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7211         copy_reference_ops_from_call, vn_nary_op_compute_hash,
7212         vn_reference_compute_hash, vn_reference_insert): Remove.
7213         (vn_reference_lookup_call): New function.
7214         * tree-ssa-sccvn.c (vn_reference_compute_hash,
7215         copy_reference_ops_from_ref, copy_reference_ops_from_call,
7216         vn_reference_insert, vn_nary_op_compute_hash): Make static.
7217         (create_reference_ops_from_call): Remove.
7218         (vn_reference_lookup_3): Properly update shared_lookup_references.
7219         (vn_reference_lookup_pieces): Assert that we updated
7220         shared_lookup_references properly.
7221         (vn_reference_lookup): Likewise.
7222         (vn_reference_lookup_call): New function.
7223         (visit_reference_op_call): Use it.  Avoid re-building the
7224         reference ops.
7225         (visit_reference_op_load): Remove redundant lookup.
7226         (visit_reference_op_store): Perform special tail-merging work
7227         only when possibly doing tail-merging.
7228         (visit_use): Likewise.
7229         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7231 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
7233         PR target/62025
7234         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7235         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7236         (find_inc): Revert 2014-08-13 change.
7238 2014-09-01  Marek Polacek  <polacek@redhat.com>
7240         PR middle-end/61903
7241         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7242         Change the type of V to unsigned HOST_WIDE_INT.
7244 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7246         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7247         the size of byte markers.
7248         (do_shift_rotate): Fix confusion between host, target and marker byte
7249         size.
7250         (verify_symbolic_number_p): Likewise.
7251         (find_bswap_or_nop_1): Likewise.
7252         (find_bswap_or_nop): Likewise.
7254 2014-09-01  Olivier Hainque  <hainque@adacore.com>
7256         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7257         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7259 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
7261         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7262         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7263         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7265 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
7267         PR sanitizer/61897
7268         PR sanitizer/62140
7269         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7270         (build_check_stmt): Likewise.
7271         (instrument_strlen_call): Likewise.
7272         (asan_expand_check_ifn): Likewise and fix types.
7273         (maybe_cast_to_ptrmode): New function.
7275 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7277         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7279 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
7281         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7283 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
7285         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7286         prefix to function labels when generating fast indirect calls.
7288 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
7290         PR bootstrap/62304
7292         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7293         param back from rtx_insn * to rtx.  Rename param from "label" to
7294         "label_or_return", reintroducing "label" as an rtx_insn * after
7295         we've ensured it's not a RETURN.
7296         (first_active_target_insn): Likewise for return type and param;
7297         add a checked cast to rtx_insn * once we've ensured "insn" is not
7298         a RETURN.
7299         (steal_delay_list_from_target): Convert param "pnew_thread" back
7300         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
7301         with JUMP_LABEL.
7302         (own_thread_p): Convert param "thread" back from an rtx_insn * to
7303         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
7304         cast once we've established we're not dealing with a RETURN,
7305         renaming subsequent uses of "thread" to "thread_insn".
7306         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
7307         to JUMP_LABEL.
7308         (follow_jumps): Convert return type and param "label" from
7309         rtx_insn * back to rtx.  Move initialization of "value" to after
7310         the handling for ANY_RETURN_P, adding a checked cast there to
7311         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
7312         rename to "this_label_or_return", reintroducing "this_label" as
7313         an rtx_insn * once we've handled the case where it could be an
7314         ANY_RETURN_P.
7315         (fill_slots_from_thread): Rename param "thread" to
7316         "thread_or_return", converting from an rtx_insn * back to an rtx.
7317         Reintroduce name "thread" as an rtx_insn * local with a checked
7318         cast once we've handled the case of it being an ANY_RETURN_P.
7319         Convert local "new_thread" from an rtx_insn * back to an rtx.
7320         Add a checked cast when assigning to "trial" from "new_thread".
7321         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
7322         checked cast to rtx_insn * from "new_thread" when invoking
7323         get_label_before.
7324         (fill_eager_delay_slots): Convert locals "target_label",
7325         "insn_at_target" from rtx_insn * back to rtx.
7326         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
7327         (relax_delay_slots): Convert locals "trial", "target_label" from
7328         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
7329         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
7330         invoking update_block.
7331         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
7332         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
7334         * resource.h (mark_target_live_regs): Undo erroneous conversion
7335         of second param of r214693, converting it back from rtx_insn * to
7336         rtx, since it could be a RETURN.
7338         * resource.c (find_dead_or_set_registers): Similarly, convert
7339         param "jump_target" back from an rtx_insn ** to an rtx *, as we
7340         could be writing back a RETURN.  Rename local rtx_insn * "next" to
7341         "next_insn", and introduce "lab_or_return" as a local rtx,
7342         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
7343         (mark_target_live_regs): Undo erroneous conversion
7344         of second param of r214693, converting it back from rtx_insn * to
7345         rtx, since it could be a RETURN.  Rename it from "target" to
7346         "target_maybe_return", reintroducing the name "target" as a local
7347         rtx_insn * with a checked cast, after we've handled the case of
7348         ANY_RETURN_P.
7350 2014-08-29  DJ Delorie  <dj@redhat.com>
7352         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
7353         pointer size up to a power of two.
7354         * defaults.h (DWARF2_ADDR_SIZE): Round up.
7355         (POINTER_SIZE_UNITS): New, rounded up value.
7356         * dwarf2asm.c (size_of_encoded_value): Use it.
7357         (dw2_output_indirect_constant_1): Likewise.
7358         * expmed.c (init_expmed_one_conv): We now know the sizes of
7359         partial int modes.
7360         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
7361         * optabs.c (expand_float): Use precision, not size.
7362         (expand_fix): Likewise.
7363         * simplify-rtx (simplify_unary_operation_1): Likewise.
7364         * tree-dfa.c (get_ref_base_and_extent): Likewise.
7365         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
7366         (default_assemble_integer) Likewise.
7367         (dump_tm_clone_pairs): Likewise.
7368         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
7369         * var-tracking.c (adjust_mems): Allow partial-int modes also.
7370         (prepare_call_arguments): Likewise.
7371         * stor-layout.c (finalize_type_size): Preserve precision.
7372         (layout_type): Use precision, not size.
7374         * expr.c (convert_move): If the target has an explicit converter,
7375         use it.
7377 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
7379         * gdbinit.in: Skip various inline functions in rtl.h when
7380         stepping.
7382 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
7384         PR bootstrap/62301
7385         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
7387 2014-08-29  Richard Biener  <rguenther@suse.de>
7389         PR tree-optimization/62291
7390         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
7391         exactly the vector size needed and use quick_push.
7392         (phi_translate_1): Adjust comment.
7393         (valid_in_sets): Remove block argument and remove pointless
7394         checking of NAMEs.
7395         (dependent_clean): Adjust for removal of block argument.
7396         (clean): Likewise.
7397         (compute_antic_aux): Likewise.
7398         (compute_partial_antic_aux): Likewise.
7400 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7401             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7402             Anna Tikhonova  <anna.tikhonova@intel.com>
7403             Ilya Tocar  <ilya.tocar@intel.com>
7404             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7405             Ilya Verbin  <ilya.verbin@intel.com>
7406             Kirill Yukhin  <kirill.yukhin@intel.com>
7407             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7409         * config/i386/sse.md
7410         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
7411         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
7412         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
7413         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
7415 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7416             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7417             Anna Tikhonova  <anna.tikhonova@intel.com>
7418             Ilya Tocar  <ilya.tocar@intel.com>
7419             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7420             Ilya Verbin  <ilya.verbin@intel.com>
7421             Kirill Yukhin  <kirill.yukhin@intel.com>
7422             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7424         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
7425         * config/i386/sse.md
7426         (define_mode_iterator VI4_128_8_256): New.
7427         (define_mode_iterator VI2_128_4_256): Ditto.
7428         (define_mode_iterator PMOV_DST_MODE): Rename into
7429         (define_mode_iterator PMOV_DST_MODE_1): this.
7430         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
7431         Use PMOV_DST_MODE_1 mode iterator.
7432         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7433         Ditto.
7434         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7435         Ditto.
7436         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
7437         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
7438         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
7439         (define_mode_iterator PMOV_DST_MODE_2): New.
7440         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
7441         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
7442         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
7443         Ditto.
7444         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
7445         (define_mode_attr pmov_dst_3): Ditto.
7446         (define_mode_attr pmov_dst_zeroed_3): Ditto.
7447         (define_mode_attr pmov_suff_3): Ditto.
7448         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
7449         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
7450         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
7451         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
7452         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
7453         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
7454         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
7455         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
7456         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
7457         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
7458         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
7459         (define_mode_attr pmov_dst_4): Ditto.
7460         (define_mode_attr pmov_dst_zeroed_4): Ditto.
7461         (define_mode_attr pmov_suff_4): Ditto.
7462         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
7463         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
7464         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
7465         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
7466         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
7467         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
7468         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
7469         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
7470         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
7471         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
7472         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
7474 2014-08-29  Richard Biener  <rguenther@suse.de>
7476         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
7477         NON_LVALUE_EXPR in gimple.
7479 2014-08-29  Richard Biener  <rguenther@suse.de>
7481         PR middle-end/62292
7482         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
7483         from previous refactoring.
7484         (gimple_fold_builtin_strncpy): Likewise.
7486 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
7488         PR bootstrap/62300
7489         * function.c (assign_parm_setup_reg): Remove erroneous checked
7490         cast to rtx_insn * on result of gen_extend_insn in favor of
7491         introducing a new local rtx "pat".
7493 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7495         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
7496         to silence warning.
7497         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
7499 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7501         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
7502         (next_insn): Likewise.
7503         * emit-rtl.c (next_insn): Likewise.
7504         (previous_insn): Likewise.
7505         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
7506         "insn" and "next" from rtx to rtx_insn *.
7507         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
7508         "insn", "insn1", "vliw_start",  "prologue_end_note",
7509         "last_insn_in_packet".
7511 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7513         * shrink-wrap.h (active_insn_between): Strengthen both params from
7514         rtx to rtx_insn *.
7515         * function.c (active_insn_between): Likewise.
7517 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7519         * genattr.c (main): When writing out insn-attr.h, strengthen param
7520         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
7521         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
7522         writing out the definition of dfa_clear_single_insn_cache to the
7523         generated insn-automata.c
7525 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7527         * resource.h (clear_hashed_info_for_insn): Strengthen param from
7528         rtx to rtx_insn *.
7529         (incr_ticks_for_insn): Likewise.
7530         (init_resource_info): Likewise.
7532         * resource.c (init_resource_info): Likewise.
7533         (clear_hashed_info_for_insn): Likewise.
7534         (incr_ticks_for_insn): Likewise.
7536         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
7537         rtx to rtx_insn *.
7538         (steal_delay_list_from_target): Use methods of "seq".
7539         (try_merge_delay_insns): Use methods of "merged_insns".
7540         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
7541         (reorg_redirect_jump): Likewise for param "jump".
7543 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7545         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7546         rtx to rtx_insn *.
7547         * config/s390/s390.c (s390_split_branches): Eliminate top-level
7548         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7549         "set_insn".
7550         (s390_mainpool_finish): In three places, split out a local rtx
7551         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7552         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
7553         and split another local rtx "insn" out into rtx "pat" and
7554         rtx_insn * "insn".
7555         * config/sh/sh.c (output_branchy_insn): Rather than working
7556         directly on operands[9], introduce local rtx_code_label *
7557         variables named "lab" in two places, working on them, and then
7558         assigning them to operands[9], so that the intervening operations
7559         are known by the type system to be on insns.
7561 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7563         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7564         const rtx_insn *.
7566         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7567         in invocation of INSN_HAS_LOCATION.
7569 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7571         * config/rs6000/altivec.h (vec_xl): New #define.
7572         (vec_xst): Likewise.
7573         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7574         (XXSPLTD_V2DI): Likewise.
7575         (DIV_V2DI): Likewise.
7576         (UDIV_V2DI): Likewise.
7577         (MUL_V2DI): Likewise.
7578         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7579         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7580         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7581         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7582         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7583         (UNSPEC_VSX_DIVSD): Likewise.
7584         (UNSPEC_VSX_DIVUD): Likewise.
7585         (UNSPEC_VSX_MULSD): Likewise.
7586         (vsx_mul_v2di): New insn-and-split.
7587         (vsx_div_v2di): Likewise.
7588         (vsx_udiv_v2di): Likewise.
7589         (vsx_xxspltd_<mode>): New insn.
7591 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7593         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7594         NEXT_INSN.
7595         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7596         (NEXT_INSN): Likewise.
7597         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7598         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7599         const rtx_insn *.
7600         (no_labels_between_p): Likewise for both params.
7602         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7603         cast when using NEXT_INSN on operands[2].
7604         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7605         "insn" from rtx to rtx_insn *, adding a checked cast.
7606         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7607         rtx_insn *.
7608         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7609         for third param.
7610         (arc_text_label): Likewise for param "insn".
7611         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7612         "insn".
7613         (arc_ccfsm_record_condition): Likewise for param "jump".
7614         (arc_text_label): Likewise for local "label".
7615         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7616         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7617         a method for typesafety.  Add a checked cast.
7618         * config/arc/constraints.md (Clb): Add a checked cast when getting
7619         the CODE_LABEL from a LABEL_REF.
7620         * config/arm/arm.c (require_pic_register): Strengthen locals
7621         "seq", "insn" from rtx to rtx_insn *.
7622         (create_fix_barrier): Likewise for locals "selected", "next".
7623         (thumb1_reorg): Likewise for locals "prev", "insn".
7624         (arm_expand_prologue): Likewise for local "last".
7625         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7626         operands[0].
7627         (thumb2_output_casesi): Likewise for operands[2].
7628         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7629         strengthen local "insn" from rtx to rtx_insn *.
7630         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7631         type and param "insn".
7632         (find_prev_insn_start): Likewise.
7633         (hwloop_optimize): Likewise for locals "insn", "last_insn",
7634         "prev".
7635         (gen_one_bundle): Likewise for loal "t".
7636         (find_load): Likewise for param "insn".
7637         (workaround_speculation): Likewise for locals "insn", "next",
7638         "target", "next_tgt".
7639         * config/c6x/c6x.c (assign_reservations): Likewise for both params
7640         and for locals "insn", "within", "last".
7641         (count_unit_reqs): Likewise for params "head", "tail" and local
7642         "insn".
7643         (try_rename_operands): Likewise for params "head", "tail".
7644         (reshuffle_units): Likewise for locals "head", "tail", "insn".
7645         (struct c6x_sched_context): Likewise for fields
7646         "last_scheduled_insn", "last_scheduled_iter0".
7647         (init_sched_state): Replace NULL_RTX with NULL.
7648         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
7649         to rtx_insn *.
7650         (undo_split_delayed_nonbranch): Likewise for param and for local
7651         "prev".
7652         (conditionalize_after_sched): Likewise for local "insn".
7653         (bb_earliest_end_cycle): Likewise.
7654         (filter_insns_above): Likewise for locals "insn", "next".
7655         (hwloop_optimize): Remove redundant checked cast.
7656         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
7657         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
7658         NULL_RTX with NULL.
7659         (cris_simple_epilogue): Likewise.
7660         (cris_expand_prologue): Likewise.
7661         (cris_expand_epilogue): Likewise.
7662         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7663         local "insn" from rtx to rtx_insn *.
7664         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7665         (struct frv_packet_group): Likewise for the elements within array
7666         fields "insns", "sorted", and for field "nop".
7667         (frv_packet): Likewise for the elements within array field
7668         "insns".
7669         (frv_add_insn_to_packet): Likewise for param "insn".
7670         (frv_insert_nop_in_packet): Likewise for param "insn" and local
7671         "last".
7672         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7673         (frv_sort_insn_group_1): Likewise for local "insn".
7674         (frv_optimize_membar_local): Likewise.
7675         (frv_align_label): Likewise for locals "x", "last", "barrier",
7676         "label".
7677         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7678         local.
7679         (ia64_sched_init): Likewise for local "insn".
7680         (scheduled_good_insn): Likewise for param "last".
7681         (struct _ia64_sched_context): Likewise for field
7682         "last_scheduled_insn".
7683         (ia64_init_sched_context): Replace NULL_RTX with NULL.
7684         (struct bundle_state): Likewise for field "insn".
7685         (issue_nops_and_insn): Likewise for param "insn".
7686         (get_next_important_insn): Likewise for return type and both
7687         params.
7688         (ia64_add_bundle_selector_before): Likewise for param "insn".
7689         (bundling): Likewise for params "prev_head_insn", "tail" and
7690         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
7691         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
7692         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
7693         Strengthen final param from rtx to rtx_insn *.
7694         (iq2000_move_1word): Likewise for second param.
7695         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
7696         param "cur_insn" and local "next_insn".
7697         (iq2000_move_1word): Likewise for param "insn".
7698         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
7699         casts when using NEXT_INSN on operands[1].
7700         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
7701         "insn" from rtx to rtx_insn *.
7702         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
7703         "x", introducing local rtx_insn * "insn" for when working with the
7704         CODE_LABEL of the LABEL_REF.
7705         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
7706         rtx_insn *.
7707         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
7708         param.
7709         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
7710         type.
7711         (conditionalize_block): Likewise for return type and param.
7712         (mcore_is_dead): Likewise for param "first" and local "insn".
7713         (emit_new_cond_insn): Likewise for return type.
7714         (conditionalize_block): Likewise for return type, param, and
7715         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
7716         "newinsn".
7717         (conditionalize_optimization): Likewise for local "insn".
7718         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
7719         using NEXT_INSN.
7720         * config/microblaze/microblaze.md: Add checked casts when using
7721         NEXT_INSN.
7722         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
7723         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
7724         and rtx_insn * "insn".
7725         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
7726         checked cast when using NEXT_INSN on operands[2].
7727         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
7728         local "insn" from rtx to rtx_insn *.
7729         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
7730         Likewise.
7731         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
7732         Add a checked cast when using NEXT_INSN on operands[1].
7733         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
7734         rtx to rtx_insn *.
7735         (pa_output_cbranch): Likewise for final param.
7736         (pa_output_lbranch): Likewise for second param.
7737         (pa_output_bb): Likewise for third param.
7738         (pa_output_bvb): Likewise.
7739         (pa_output_dbra): Likewise for second param.
7740         (pa_output_movb): Likewise.
7741         (pa_output_parallel_movb): Likewise.
7742         (pa_output_parallel_addb): Likewise.
7743         (pa_output_millicode_call): Likewise for first param.
7744         (pa_output_mul_insn): Likewise for second param.
7745         (pa_output_div_insn): Likewise for third param.
7746         (pa_output_mod_insn): Likewise for second param.
7747         (pa_jump_in_call_delay): Likewise for param.
7748         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
7749         (pa_output_div_insn): Likewise.
7750         (pa_output_mod_insn): Likewise.
7751         (pa_output_cbranch): Likewise.
7752         (pa_output_lbranch): Likewise.
7753         (pa_output_bb): Likewise.
7754         (pa_output_bvb): Likewise.
7755         (pa_output_dbra): Likewise.
7756         (pa_output_movb): Likewise.
7757         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
7758         to simplify and for typesafety.
7759         (pa_output_call): Use method of rtx_sequence *.
7760         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
7761         (pa_jump_in_call_delay): Likewise.
7762         (pa_output_parallel_movb): Likewise.
7763         (pa_output_parallel_addb): Likewise.
7764         (pa_following_call): Likewise.
7765         (pa_combine_instructions): Likewise for locals "anchor",
7766         "floater".
7767         (pa_can_combine_p): Likewise for params "anchor", "floater" and
7768         locals "start", "end".
7769         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
7770         param "insn" and local "local_insn".
7771         (picochip_final_prescan_insn): Likewise for local "local_insn".
7772         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
7773         local "insn".
7774         (uses_TOC): Likewise.
7775         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
7776         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
7777         splitting out to more tightly-scoped locals, 3 as rtx and one as
7778         rtx_insn *.
7779         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
7780         to rtx_insn *.
7781         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
7782         where needed.
7783         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
7784         to rtx_insn *.
7785         (fixup_addr_diff_vecs): Likewise.
7786         (reg_unused_after): Likewise for param 2.
7787         (sh_can_redirect_branch): Likewise for both params.
7788         (check_use_sfunc_addr): Likewise for param 1.
7789         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
7790         (find_barrier): Likewise for local "last_got".
7791         (gen_block_redirect): Likewise for return type, param "jump" and
7792         locals "prev", "scan", "next", "insn".
7793         (struct far_branch): Likewise for fields "near_label",
7794         "insert_place", "far_label".
7795         (gen_far_branch): Likewise for local "jump".
7796         (fixup_addr_diff_vecs): Likewise for param "first" and locals
7797         "insn", "prev".
7798         (barrier_align): Likewise for param and for locals "prev", "x".
7799         Introduce local rtx_sequence * "prev_seq" and use insn method for
7800         typesafety and clarity.
7801         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
7802         (get_dest_uid): Likewise for local "dest".
7803         (split_branches): Likewise for locals "next", "beyond", "label",
7804         "block", "far_label".  Add checked casts when assigning to
7805         bp->far_label and "far_label".
7806         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
7807         (sequence_insn_p): Likewise.
7808         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
7809         more loop-scoped rtx "insn" when walking LABEL_REFS.
7810         (sh_can_redirect_branch): Strengthen both params from rtx to
7811         rtx_insn *.
7812         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
7813         new local rtx_sequence * "seq" via a dyn_cast, and use a method
7814         for clarity and typesafety.
7815         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
7816         "insn" from rtx to rtx_insn *.
7817         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
7818         when using NEXT_INSN on the CODE_LABEL in operands[2].
7819         (define_insn "casesi_worker_2"): Likewise.
7820         (define_insn "casesi_shift_media"): Likewise.
7821         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
7822         operands[3].
7823         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
7824         Strengthen field "insn" from rtx to rtx_insn *.
7825         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
7826         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
7827         param "start_insn" and local "start_insn".
7828         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
7829         field "insn".
7830         (find_set_of_reg_bb): Likewise for param "insn".
7831         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
7832         (trace_reg_uses): Likewise for param "start_insn".
7833         (sh_treg_combine::cbranch_trace): Likewise for field
7834         "cbranch_insn".
7835         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
7836         param "insn".
7837         (sh_treg_combine::record_set_of_reg): Likewise for param
7838         "start_insn" and local "i".
7839         (sh_treg_combine::can_remove_cstore): Likewise for local
7840         "prev_insn".
7841         (sh_treg_combine::try_optimize_cbranch): Likewise for param
7842         "insn".
7843         (sh_treg_combine::execute): Likewise for local "i".
7844         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
7845         param.
7846         (sparc_check_64): Likewise for second param.
7847         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
7848         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
7849         dyn_cast, using its insn method for typesafety and clarity.
7850         (empty_delay_slot): Strengthen param "insn" from rtx to
7851         rtx_insn *.
7852         (set_extends): Likewise.
7853         (sparc_check_64): Likewise.
7854         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
7855         for locals "seq", "last_insn".
7856         (combine_bnp): Likewise for param "insn".
7857         (xstormy16_reorg): Likewise for local "insn".
7858         * config/v850/v850.c (substitute_ep_register): Likewise for params
7859         "first_insn", "last_insn" and local "insn".
7860         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
7861         elements of "regs" array, and local "insn".
7862         * except.c (emit_note_eh_region_end): Likewise for param "insn".
7863         * final.c (final_sequence): Strengthen this global from rtx to
7864         rtx_sequence *.
7865         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
7866         rtx_insn *.
7867         (final_scan_insn): Update assignment to "final_sequence" to be
7868         from "seq", the cast version of "body", for type-safety.
7869         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
7870         "insns" from rtx to rtx_insn *.
7871         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
7872         * genattr.c (main): When writing out generated insn-attr.h,
7873         strengthen params 1 and 3 of eligible_for_delay,
7874         eligible_for_annul_true, eligible_for_annul_false from rtx to
7875         rtx_insn *.
7876         * genattrtab.c (write_eligible_delay): Likewise when writing out
7877         generated insn-attrtab.c; also local "insn" the generated
7878         functions.
7879         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
7880         to rtx_insn *.
7881         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
7882         "start_label" from rtx to rtx_insn *.
7883         * ira.c (decrease_live_ranges_number): Likewise for local "p".
7884         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
7885         "insns" and local "insn".
7886         (validate_equiv_mem): Likewise for param "start" and local "insn".
7887         (memref_used_between_p): Likewise for params "start", "end" and
7888         local "insn".
7889         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
7890         final param.
7891         * loop-doloop.c (doloop_optimize): Within region guarded by
7892         INSN_P (doloop_pat), introduce a new local rtx_insn *
7893         "doloop_insn" via a checked cast, and use it for typesafety,
7894         eventually writing the value back into doloop_pat.
7895         * output.h (final_sequence): Strengthen this global from rtx to
7896         rtx_sequence *.
7897         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
7898         reintroducing "insn" as an rtx_insn * via a checked cast.
7899         Strengthen param "attempt" and local "new_insn"from rtx to
7900         rtx_insn *.
7901         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
7902         to rtx_insn *.
7903         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
7904         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
7905         "p" in favor of more tightly-scoped replacements, sometimes rtx
7906         and sometimes rtx_insn *, as appropriate.
7907         (delete_output_reload): Eliminate top-level rtx "i1", splitting
7908         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
7909         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
7910         local "trial" from rtx to rtx_insn *.
7911         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
7912         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
7913         rtx_sequence * and use methods for clarity and typesafety.
7914         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
7915         rtx to rtx_insn *.  Strenghten local "li" from rtx to
7916         rtx_insn_list * and use its methods for clarity and typesafety.
7917         (steal_delay_list_from_target): Strengthen param "insn" from rtx
7918         to rtx_insn *.
7919         (steal_delay_list_from_fallthrough): Likewise.
7920         (try_merge_delay_insns): Likewise for param "thread" and locals
7921         "trial", "next_trial", "delay_insn".
7922         (redundant_insn): Likewise for param "target" and local "trial".
7923         (own_thread_p): Likewise for param "thread" and locals
7924         "active_insn", "insn".
7925         (get_label_before): Likewise for param "insn".
7926         (fill_simple_delay_slots): Likewise for local "new_label"; use
7927         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
7928         (label_before_next_insn): Strengthen return type and local "insn"
7929         from rtx to rtx_insn *.
7930         (relax_delay_slots): Likewise for locals "other", "tmp".
7931         (make_return_insns): Likewise for param "first" and locals "insn",
7932         "jump_insn", "prev".  Move declaration of "pat" to its assignment
7933         and strengthen from rtx to rtx_sequence *.  Use its methods for
7934         clarity and typesafety.
7935         * rtlanal.c (no_labels_between_p): Strengthen params from
7936         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
7937         rtx_insn *.
7938         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
7939         from const_rtx to const rtx_insn *.
7940         (reg_set_between_p): Rename param "from_insn" to
7941         "uncast_from_insn", and reintroduce "from_insn" as a
7942         const rtx_insn * via a checked cast.
7943         (modified_between_p): Likewise for param "start" as "uncast_start".
7944         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
7945         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
7946         "tmp", head" from rtx to rtx_insn *.
7947         (recompute_rev_top_order): Likewise for local "insn".
7948         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
7949         * store-motion.c (build_store_vectors): Likewise for local "insn".
7950         Strengthen local "st" from rtx to rtx_insn_list * and use methods
7951         for clarity and typesafety.
7952         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
7953         rtx to rtx_insn *.
7954         (computation_cost): Likewise for local "seq".
7955         (get_address_cost): Likewise.
7957 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7959         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
7960         const rtx_insn *.
7961         (label_is_jump_target_p): Likewise for second param.
7963         * rtlanal.c (tablejump_p): Likewise for param "insn".
7964         (label_is_jump_target_p): Likewise for param "jump_insn".
7966 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7968         * rtl.h (find_first_parameter_load): Strengthen return type and
7969         both params from rtx to rtx_insn *.
7970         * rtlanal.c (find_first_parameter_load): Strengthen return type,
7971         both params and locals "before", "first_set" from rtx to
7972         rtx_insn *.  Remove now-redundant cast.
7973         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
7975 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7977         * rtl.h (find_last_value): Delete.
7978         * rtlanal.c (find_last_value): Delete.
7980 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7982         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
7983         from rtx to rtx_insn *.
7984         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
7985         rtx "note" with new local rtx_insn * "new_head" when calculating
7986         head insn of new basic block.
7987         * combine.c (combine_split_insns): Strengthen return type and local
7988         "ret" from rtx to rtx_insn *.
7989         (likely_spilled_retval_p): Likewise for locals "use" and "p".
7990         (try_combine): Eliminate local "m_split", splitting into new
7991         locals "m_split_insn" and "m_split_pat".
7992         (find_split_point): Strengthen local "seq" from rtx into
7993         rtx_insn *.
7994         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
7995         locals "label", "branch".
7996         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
7997         for local "insn".
7998         (define_expand "umulsi3_highpart"): Likewise for local "insn".
7999         * dse.c (note_add_store_info): Likewise for fields "first",
8000         "current".
8001         (note_add_store): Likewise for local "insn".
8002         (emit_inc_dec_insn_before): Likewise for locals "insn",
8003         "new_insn", "cur".
8004         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8005         (replace_read): Likewise for locals "insns", "this_insn".
8006         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8007         (notice_eh_throw): Likewise for param "insn".
8008         (before_next_cfi_note): Likewise for return type, param, and local
8009         "prev".
8010         (connect_traces): Likewise for local "note".
8011         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8012         (verify_rtl_sharing): Likewise.
8013         (unshare_all_rtl_in_chain): Likewise for param "insn".
8014         (get_first_nonnote_insn): Likewise for local "insn".
8015         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
8016         "seq" and use its methods to clarify things.
8017         (next_insn): Strengthen return type from rtx to rtx_insn *.
8018         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8019         local rtx_insn * using a checked cast, dropping a checked cast
8020         made redundant by this change.  Use a cast to and method of
8021         rtx_sequence to clarify the code.
8022         (previous_insn): Rename param "insn" to "uncast_insn" and
8023         reintroduce "insn" as a local rtx_insn * using a checked cast,
8024         dropping a checked cast made redundant by this change.  Use a cast
8025         to and method of rtx_sequence to clarify the code.
8026         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8027         reintroduce "insn" as a local rtx_insn * using a checked cast,
8028         dropping a checked cast made redundant by this change.
8029         (next_nonnote_insn_bb): Likewise.
8030         (prev_nonnote_insn): Likewise.
8031         (prev_nonnote_insn_bb): Likewise.
8032         (next_nondebug_insn): Likewise.
8033         (prev_nondebug_insn): Likewise.
8034         (next_nonnote_nondebug_insn): Likewise.
8035         (prev_nonnote_nondebug_insn): Likewise.
8036         (next_real_insn): Likewise.
8037         (prev_real_insn): Likewise.
8038         (next_active_insn): Likewise.
8039         (prev_active_insn): Likewise.
8040         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
8041         clarity.
8042         (prev_cc0_setter): Likewise.
8043         (try_split): Rename param "trial" to "uncast_trial" and
8044         reintroduce "insn" as a local rtx_insn * using a checked cast,
8045         dropping checked casts made redundant by this change.
8046         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8047         rtx to rtx_insn *.
8048         (remove_insn): Rename param "insn" to "uncast_insn" and
8049         reintroduce "insn" as a local rtx_insn * using a checked cast.
8050         (emit_pattern_after_setloc): Likewise for param "after", as
8051         "uncast_after".
8052         (emit_pattern_after): Likewise.  Strengthen local "prev" from
8053         rtx to rtx_insn *.
8054         (emit_pattern_before_setloc): Rename param "before" to
8055         "uncast_before" and reintroduce "before" as a local rtx_insn *
8056         using a checked cast.  Strengthen locals "first", "last" from
8057         rtx to rtx_insn *.
8058         (emit_pattern_before): Likewise rename/cast param "before" to
8059         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8060         * except.c (copy_reg_eh_region_note_forward): Strengthen param
8061         "first" and local "insn" from rtx to rtx_insn *.
8062         (copy_reg_eh_region_note_backward): Likewise for param "last"
8063         and local "insn".
8064         * expr.c (fixup_args_size_notes): Rename param "last" to
8065         "uncast_last" and reintroduce "last" as a local rtx_insn *
8066         using a checked cast.  Strengthen local "insn" from rtx to
8067         rtx_insn *.
8068         * function.c (set_insn_locations): Strengthen param "insn" from
8069         rtx to rtx_insn *.
8070         (record_insns): Likewise for param "insns" and local "tmp".
8071         (active_insn_between): Rename param "tail" to
8072         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8073         using a checked cast.
8074         (thread_prologue_and_epilogue_insns): Split out top-level local
8075         rtx "seq" into three different rtx_insn * locals.  Strengthen
8076         local "prologue_seq" from rtx to rtx_insn *.
8077         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8078         from rtx to rtx_insn *.
8079         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8080         (priority): Likewise for locals "prev_first", "twin".
8081         (setup_insn_max_reg_pressure): Likewise for param "after".
8082         (sched_setup_bb_reg_pressure_info): Likewise.
8083         (no_real_insns_p): Strengthen params from const_rtx to
8084         const rtx_insn *.
8085         (schedule_block): Strengthen local "next_tail" from rtx to
8086         rtx_insn *.
8087         * ifcvt.c (find_active_insn_before): Strengthen return type and
8088         param "insn" from rtx to rtx_insn *.
8089         (find_active_insn_after): Likewise.
8090         (cond_exec_process_insns): Likewise for param "start" and local "insn".
8091         (cond_exec_process_if_block): Likewise for locals "then_start",
8092         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8093         (noce_process_if_block): Likewise for local "jump".
8094         (merge_if_block): Likewise for two locals named "end".
8095         (cond_exec_find_if_block): Likewise for local "last_insn".
8096         * jump.c (delete_related_insns): Rename param "insn" to
8097         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8098         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
8099         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8100         NULL.
8101         (split_reg): Likewise.
8102         * lra.c (lra_process_new_insns): Likewise.
8103         * modulo-sched.c (permute_partial_schedule): Strengthen param
8104         "last" from rtx to rtx_insn *.
8105         * optabs.c (add_equal_note): Likewise for param "insns" and local
8106         "last_insn".
8107         (expand_binop_directly): Add checked casts to rtx_insn * within
8108         NEXT_INSN (pat) uses.
8109         (expand_unop_direct): Likewise.
8110         (maybe_emit_unop_insn): Likewise.
8111         * recog.c (peep2_attempt): Strengthen locals "last",
8112         "before_try", "x" from rtx to rtx_insn *.
8113         * reorg.c (optimize_skip): Strengthen return type and local
8114         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
8115         and locals "trial", "next_trial" from rtx to rtx_insn *.
8116         * resource.c (next_insn_no_annul): Strengthen return type and
8117         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
8118         rtx_sequence to clarify the code.
8119         (mark_referenced_resources): Add a checked cast to rtx_insn *
8120         within PREV_INSN (x).
8121         (find_dead_or_set_registers): Strengthen return type, param
8122         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8123         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
8124         to rtx_insn **.
8125         (mark_target_live_regs): Strengthen params "insns" and "target",
8126         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8127         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
8128         the code.
8129         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8130         from rtx to rtx_insn *.
8131         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8132         from rtx to rtx_insn *.
8133         (copy_reg_eh_region_note_backward): Likewise.
8134         (unshare_all_rtl_in_chain): Likewise for sole param.
8135         (dump_rtl_slim): Strengthen second and third params from const_rtx
8136         to const rtx_insn *.
8137         * sched-deps.c (sched_free_deps): Strengthen params "head" and
8138         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8139         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8140         "next_tail" from rtx to rtx_insn *.
8141         (begin_move_insn): Likewise for local "next".
8142         * sched-int.h (sched_free_deps): Likewise for first and second
8143         params.
8144         (no_real_insns_p): Strengthen both params from const_rtx to
8145         const rtx_insn *.
8146         (sched_setup_bb_reg_pressure_info): Strengthen second params from
8147         rtx to rtx_insn *.
8148         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8149         "next_tail".
8150         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8151         and locals "insn", "tail" from const_rtx to const rtx_insn *.
8152         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8153         rtx_insn *.
8154         (debug_rtl_slim): Strengthen params "first" and "last" from
8155         const_rtx to const rtx_insn *.
8156         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8157         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8158         (convert_to_simple_return): Likewise for param "returnjump".
8159         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
8160         "prologue_seq".
8161         (convert_to_simple_return): Likewise for param "returnjump".
8162         * valtrack.c (propagate_for_debug): Likewise for params
8163         "insn", "last".
8164         * valtrack.h (propagate_for_debug): Likewise for second param.
8166 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8168         * output.h (insn_current_reference_address): Strengthen param
8169         from rtx to rtx_insn *.
8170         * final.c (insn_current_reference_address): Likewise.
8172 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8174         * basic-block.h (inside_basic_block_p): Strengthen param from
8175         const_rtx to const rtx_insn *.
8176         * cfgbuild.c (inside_basic_block_p): Likewise.
8178 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8180         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
8181         rtx_insn *.
8182         (get_trace_info): Likewise for param "insn".
8183         (save_point_p): Likewise.
8184         (maybe_record_trace_start): Likewise for both params.
8185         (maybe_record_trace_start_abnormal): Likewise.
8186         (create_trace_edges): Likewise for sole param and for three of the
8187         locals named "lab".
8188         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
8189         to rtx_insn *, and update a call to pat->element to pat->insn.
8191 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8193         * function.h (struct expr_status): Convert field "x_forced_labels"
8194         from rtx_expr_list * to rtx_insn_list *.
8196         * cfgbuild.c (make_edges): Convert local "x" from an
8197         rtx_expr_list * to an rtx_insn_list *, replacing use of
8198         "element" method with "insn" method.
8199         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8200         * except.c (sjlj_emit_dispatch_table): Replace use of
8201         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8202         forced_labels.
8203         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8204         rtx_expr_list * to an rtx_insn_list *, replacing use of
8205         "element" method with "insn" method.
8206         * reload1.c (set_initial_label_offsets): Likewise for local "x".
8207         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8208         rtx_insn *, adding a checked cast.  Replace use of
8209         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8210         forced_labels.
8211         (expand_label): Likewise for local "label_r".
8213 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8215         * function.h (struct rtl_data): Convert field
8216         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8217         rtx_insn_list *.
8218         * rtl.h (remove_node_from_insn_list): New prototype.
8220         * builtins.c (expand_builtin): When prepending to
8221         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8222         gen_rtx_EXPR_LIST.
8223         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8224         to rtx_insn_list *, and use its "insn" method rather than
8225         "element" method.
8226         * cfgrtl.c (delete_insn): Use new function
8227         remove_node_from_insn_list rather than
8228         remove_node_from_expr_list.
8229         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8230         to rtx_insn_list *, and use its "insn" method rather than
8231         "element" method.
8232         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8233         * reload1.c (set_initial_label_offsets): Likewise for local "x".
8234         * rtlanal.c (remove_node_from_insn_list): New function, adapted
8235         from remove_node_from_expr_list.
8236         * stmt.c (expand_label): When prepending to
8237         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8238         gen_rtx_EXPR_LIST.
8240 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8242         * function.h (struct rtl_data): Strengthen fields "x_return_label"
8243         and "x_naked_return_label" from rtx to rtx_code_label *.
8245 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8247         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8248         (SET_NEXT_INSN): Likewise.
8249         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8251         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8252         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
8253         to split out the SEQUENCE from local "bundle", strengthening the
8254         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8255         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8256         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8257         and the type of the elements of the "slot" array from rtx to
8258         rtx_insn *.
8259         (reorg_split_calls): Likewise for locals "insn" and "next", and
8260         the type of the elements of the "slot" array.
8262         * config/frv/frv.c (frv_nops): Likewise for the elements of this
8263         array.
8264         (frv_function_prologue): Likewise for locals "insn", "next",
8265         "last_call".
8266         (frv_register_nop): Introduce a local "nop_insn" to be the
8267         rtx_insn * containing rtx "nop".
8269         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8270         used as an insn and sometimes as a pattern, so rename it to
8271         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8272         using it where dealing with the core insn.
8274         * config/picochip/picochip.c (reorder_var_tracking_notes):
8275         Strengthen locals "insn", "next", "last_insn", "queue",
8276         "next_queue", "prev" from rtx to rtx_insn *.
8278         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8279         the second param is an rtx_insn ** rather than an rtx **.
8280         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8281         from rtx to rtx_sequence *, and introduce local named "sequence",
8282         using methods of rtx_sequence to clarify the code.
8283         (remove_insn): Introduce local rtx_sequence * named "sequence" and
8284         use its methods.
8285         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8286         Rename param "after" to "uncast_after", reintroducing "after" as a
8287         local rtx_insn * with a checked cast.
8288         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8289         reintroducing "after" as a local rtx_insn * with a checked cast.
8290         Strengthen local "last" from rtx to rtx_insn * and remove the
8291         now-redundant checked casts.
8292         (copy_delay_slot_insn): Strengthen return type and param from rtx
8293         to rtx_insn *.
8295         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
8296         "last" from rtx to rtx_insn *.
8298 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8300         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
8301         param from rtx to rtx_insn *.
8303         * emit-rtl.c (copy_delay_slot_insn): Likewise.
8305         * reorg.c (skip_consecutive_labels): Strengthen return type, param
8306         and local "insn" from rtx to rtx_insn *.
8307         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
8308         (unfilled_slots_next): Likewise.
8309         (function_return_label): Strengthen from rtx to rtx_code_label *.
8310         (function_simple_return_label): Likewise.
8311         (first_active_target_insn): Strengthen return type and param from
8312         rtx to rtx_insn *.
8313         (find_end_label): Strengthen return type from rtx to
8314         rtx_code_label *; strengthen locals as appropriate.
8315         (emit_delay_sequence): Strengthen return type, param "insn" and
8316         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
8317         and local "li" from rtx to rtx_insn_list *, using methods of
8318         rtx_insn_list for clarity and typesafety.
8319         (add_to_delay_list): Strengthen return type and param "insn" from
8320         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
8321         rtx_insn_list * and use methods of rtx_insn_list.
8322         (delete_from_delay_slot): Strengthen return type, param "insn",
8323         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
8324         Strengthen local "seq" from rtx to rtx_sequence *, and local
8325         "delay_list" from rtx to rtx_insn_list *, using methods of
8326         rtx_sequence for clarity and type-safety.
8327         (delete_scheduled_jump): Add checked cast when invoking
8328         delete_from_delay_slot.  Strengthen local "trial" from rtx to
8329         rtx_insn *.
8330         (optimize_skip): Strengthen return type and local "delay_list"
8331         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
8332         rtx_insn *.
8333         (steal_delay_list_from_target): Strengthen return type, param
8334         "delay_list" and local "new_delay_list" from rtx to
8335         rtx_insn_list *.  Strengthen param "seq" from rtx to
8336         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
8337         rtx_insn **.
8338         Split out local "temp" into multiple more-tightly scoped locals:
8339         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
8340         of rtx_insn_list and rtx_sequence for clarity and typesafety.
8341         Strengthen locals named "trial" from rtx to rtx_insn *.
8342         (steal_delay_list_from_fallthrough): Strengthen return type and
8343         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
8344         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
8345         Strengthen local "trial" from rtx to rtx_insn *.
8346         (try_merge_delay_insns): Strength local "merged_insns" from rtx
8347         to rtx_insn_list * and use its methods.  Strengthen local "pat"
8348         from rtx to rtx_sequence * and use its methods.  Strengthen locals
8349         "dtrial" and "new_rtx" from rtx to rtx_insn *.
8350         (get_label_before): Strengthen return type and local "label" from
8351         rtx to rtx_insn *.
8352         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
8353         "next_trial", "next", prev".  Strengthen local "delay_list" from
8354         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
8355         rtx_insn **.
8356         (follow_jumps): Strengthen return type, param "label" and locals
8357         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
8358         (fill_slots_from_thread): Strengthen return type, param
8359         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
8360         "insn", "thread", "opposite_thread" and locals "new_thread",
8361         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
8362         "sequence" from a checked cast to rtx_sequence so that we can call
8363         steal_delay_list_from_target and steal_delay_list_from_fallthrough
8364         with an rtx_sequence *.
8365         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
8366         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
8367         Strengthen local "delay_list" from rtx to rtx_insn_list *.
8368         (relax_delay_slots): Strengthen param "first" and locals "insn",
8369         "next", "trial", "delay_insn", "target_label" from rtx to
8370         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
8371         Introduce a local "trial_seq" for PATTERN (trial) of type
8372         rtx_sequence *, in both cases using methods of rtx_sequence.
8373         (dbr_schedule): Strengthen param "first" and locals "insn",
8374         "next", "epilogue_insn" from rtx to rtx_insn *.
8376 2014-08-28  Richard Biener  <rguenther@suse.de>
8378         PR tree-optimization/62283
8379         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8380         Do not peel loops for alignment where the vector loop likely
8381         doesn't run at least VF times.
8383 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
8385         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
8386         important_candidates.  Consider all important candidates if
8387         IVS doesn't give any result.  Remove check on ivs->upto.
8388         (try_add_cand_for): Call iv_ca_add_use only once.
8390 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8391             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8392             Anna Tikhonova  <anna.tikhonova@intel.com>
8393             Ilya Tocar  <ilya.tocar@intel.com>
8394             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8395             Ilya Verbin  <ilya.verbin@intel.com>
8396             Kirill Yukhin  <kirill.yukhin@intel.com>
8397             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8399         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
8400         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
8401         masking.
8402         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
8403         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8404         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8405         (define_insn "*mul<mode>3"): Add EVEX version.
8407 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8408             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8409             Anna Tikhonova  <anna.tikhonova@intel.com>
8410             Ilya Tocar  <ilya.tocar@intel.com>
8411             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8412             Ilya Verbin  <ilya.verbin@intel.com>
8413             Kirill Yukhin  <kirill.yukhin@intel.com>
8414             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8416         * config/i386/sse.md
8417         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
8418         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
8419         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
8420         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
8421         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
8422         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
8423         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
8424         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
8425         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
8426         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
8427         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
8428         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
8429         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
8430         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
8431         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
8432         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
8434 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8435             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8436             Anna Tikhonova  <anna.tikhonova@intel.com>
8437             Ilya Tocar  <ilya.tocar@intel.com>
8438             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8439             Ilya Verbin  <ilya.verbin@intel.com>
8440             Kirill Yukhin  <kirill.yukhin@intel.com>
8441             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8443         * config/i386/sse.md
8444         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
8445         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
8446         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
8448 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8449             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8450             Anna Tikhonova  <anna.tikhonova@intel.com>
8451             Ilya Tocar  <ilya.tocar@intel.com>
8452             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8453             Ilya Verbin  <ilya.verbin@intel.com>
8454             Kirill Yukhin  <kirill.yukhin@intel.com>
8455             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8457         * config/i386/sse.md
8458         (define_mode_iterator VI128_256): New.
8459         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
8461 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8462             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8463             Anna Tikhonova  <anna.tikhonova@intel.com>
8464             Ilya Tocar  <ilya.tocar@intel.com>
8465             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8466             Ilya Verbin  <ilya.verbin@intel.com>
8467             Kirill Yukhin  <kirill.yukhin@intel.com>
8468             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8470         * config/i386/sse.md
8471         (define_mode_iterator VI8_256_512): New.
8472         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
8473         Ditto.
8474         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8475         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
8476         Ditto.
8477         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
8479 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8481         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
8482         pointer to the cumulative reloc value and return the value for
8483         this reloc instead.
8484         (compute_reloc_for_rtx): Take a const_rtx.  Call
8485         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
8486         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
8487         for_each_rtx for the CONST case.
8489 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8491         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
8492         (mark_constants_in_pattern): ...this new function to iterate over
8493         all the subrtxes.
8494         (mark_constants): Update accordingly.
8496 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8498         * varasm.c: Include rtl-iter.h.
8499         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
8500         Remove the pointer to the cumulative hashval_t and just return
8501         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
8502         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8503         Accumulate the hashval_ts here instead of const_rtx_hash_1.
8505 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8507         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
8508         Give real type of data parameter.  Remove return value.
8509         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
8510         to iterate over subrtxes.
8512 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8514         * var-tracking.c (use_narrower_mode_test): Turn from being a
8515         for_each_rtx callback to being a function that examines each
8516         subrtx itself.
8517         (adjust_mems): Update accordingly.
8519 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8521         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
8522         callback to being a function that examines each subrtx itself.
8523         Remove handling of null rtxes.
8524         (add_uses): Update accordingly.
8526 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8528         * var-tracking.c: Include rtl-iter.h.
8529         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
8530         to being a function that examines each subrtx itself.
8531         (use_type): Update accordingly.
8533 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8535         * store-motion.c: Include rtl-iter.h.
8536         (extract_mentioned_regs_1): Delete.
8537         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
8538         for_each_rtx to iterate over subrtxes.
8540 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8542         * sel-sched.c: Include rtl-iter.h
8543         (count_occurrences_1): Delete.
8544         (count_occurrences_equiv): Turn rtxes into const_rtxes.
8545         Use FOR_EACH_SUBRTX rather than for_each_rtx.
8547 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8549         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8550         * rtlanal.c (tls_referenced_p_1): Delete.
8551         (tls_referenced_p): Take a const_rtx rather than an rtx.
8552         Use FOR_EACH_SUBRTX rather than for_each_rtx.
8554 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8556         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8557         (for_each_inc_dec): Take an rtx rather than an rtx *.
8558         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8559         (cselib_record_sets): Likewise.
8560         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8561         (check_for_inc_dec): Likewise.
8562         * rtlanal.c (for_each_inc_dec_ops): Delete.
8563         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8564         rather than a pointer to the memory address.  Replace
8565         for_each_inc_dec_ops argument with separate function and data
8566         arguments.  Abort on non-autoinc addresses.
8567         (for_each_inc_dec_find_mem): Delete.
8568         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
8569         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8571 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8573         * rtl.h (find_all_hard_regs): Declare.
8574         * rtlanal.c (find_all_hard_regs): New function.
8575         (record_hard_reg_uses_1): Delete.
8576         (record_hard_reg_uses): Use find_all_hard_regs.
8578 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8580         * rtl.h (replace_label_data): Delete.
8581         (replace_label): Take the old label, new label and update-nuses flag
8582         as direct arguments.  Return void.
8583         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8584         * rtlanal.c (replace_label): Update interface as above.  Handle
8585         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
8586         iterator.  Use FOR_EACH_SUBRTX_PTR.
8588 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8590         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8591         with const_rtx parameters.
8592         * varasm.c (get_pool_constant): Likewise.
8593         * rtlanal.c (rtx_referenced_p_1): Delete.
8594         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8595         Assert that the rtx we're looking for is nonnull.  Allow searches
8596         for constant pool SYMBOL_REFs.
8598 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8600         * reload1.c: Include rtl-iter.h.
8601         (note_reg_elim_costly): Turn from being a for_each_rtx callback
8602         to being a function that examines each subrtx itself.
8603         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8605 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8607         * regcprop.c (cprop_find_used_regs_1): Delete.
8608         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8610 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8612         * regcprop.c: Include rtl-iter.h.
8613         (kill_value): Take a const_rtx.
8614         (kill_autoinc_value): Turn from being a for_each_rtx callback
8615         to being a function that examines each subrtx itself.
8616         (copyprop_hardreg_forward_1): Update accordingly.
8618 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8620         * reg-stack.c: Include rtl-iter.h.
8621         (subst_stack_regs_in_debug_insn): Delete.
8622         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8623         instead of for_each_rtx.
8625 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8627         * lower-subreg.c (find_decomposable_subregs): Turn from being
8628         a for_each_rtx callback to being a function that examines each
8629         subrtx itself.  Remove handling of null rtxes.
8630         (decompose_multiword_subregs): Update accordingly.
8632 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8634         * lower-subreg.c (adjust_decomposed_uses): Delete.
8635         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8636         Remove handling of null rtxes.
8638 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8640         * lower-subreg.c: Include rtl-iter.h.
8641         (resolve_subreg_use): Turn from being a for_each_rtx callback
8642         to being a function that examines each subrtx itself.  Remove
8643         handling of null rtxes.
8644         (resolve_reg_notes, resolve_simple_move): Update accordingly.
8645         (decompose_multiword_subregs): Likewise.
8647 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8649         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
8650         to being a function that examines each subrtx itself.
8651         (simplify_using_condition, simplify_using_initial_values): Update
8652         accordingly.
8654 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8656         * loop-iv.c: Include rtl-iter.h.
8657         (find_single_def_src): New function.
8658         (replace_single_def_regs): Turn from being a for_each_rtx callback
8659         to being a function that examines each subrtx itself.
8660         (replace_in_expr, simplify_using_initial_values): Update accordingly.
8662 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8664         * jump.c (eh_returnjump_p_1): Delete.
8665         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8666         Remove handling of null rtxes.
8668 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8670         * jump.c: Include rtl-iter.h.
8671         (returnjump_p_1): Delete.
8672         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8673         Remove handling of null rtxes.
8675 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8677         * ira.c: Include rtl-iter.h.
8678         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8679         to being a function that examines each subrtx itself.  Remove
8680         handling of null rtxes.
8681         (update_equiv_regs): Update call accordingly.
8683 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8685         * fwprop.c: Include rtl-iter.h.
8686         (varying_mem_p): Turn from being a for_each_rtx callback to being
8687         a function that examines each subrtx itself.
8688         (propagate_rtx): Update accordingly.
8690 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8692         * function.c: Include rtl-iter.h
8693         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
8694         callback to being a function that examines each subrtx itself.
8695         Return the changed flag.
8696         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
8697         (instantiate_virtual_regs): Update calls accordingly.
8699 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8701         * final.c: Include rtl-iter.h.
8702         (mark_symbol_ref_as_used): Delete.
8703         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
8704         for_each_rtx.
8706 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8708         * emit-rtl.c: Include rtl-iter.h.
8709         (find_auto_inc): Turn from being a for_each_rtx callback to being
8710         a function that examines each subrtx itself.  Assume the first operand
8711         to an RTX_AUTOINC is the automodified register.
8712         (try_split): Update call accordingly.
8714 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8716         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
8717         Return a bool, inverting the result so that 0/false means "not ok".
8718         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
8719         subrtxes of a CONST.
8720         (mem_loc_descriptor, add_const_value_attribute)
8721         (resolve_addr_in_expr): Update calls accordingly.
8723 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8725         * dwarf2out.c: Include rtl-iter.h.
8726         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
8727         Remove unused data parameter.  Return a bool, inverting the result
8728         so that 0/false means "not ok".
8729         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
8730         instead of for_each_rtx.
8732 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8734         * dse.c: Include rtl-iter.h.
8735         (check_mem_read_rtx): Change void * parameter to real type.
8736         Remove return value.
8737         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
8738         for_each_rtx.  Don't handle null rtxes.
8740 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8742         * df-problems.c: Include rtl-iter.h.
8743         (find_memory): Turn from being a for_each_rtx callback to being
8744         a function that examines each subrtx itself.  Continue to look for
8745         volatile references even after a nonvolatile one has been found.
8746         (can_move_insns_across): Update calls accordingly.
8748 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8750         * ddg.c (walk_mems_2, walk_mems_1): Delete.
8751         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
8752         to iterate over subrtxes.  Return a bool rather than an int.
8754 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8756         * ddg.c: Include rtl-iter.h.
8757         (mark_mem_use_1): Rename to...
8758         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
8759         instead of for_each_rtx.
8760         (mem_read_insn_p): Update accordingly.
8762 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8764         * cse.c (change_cc_mode_args): Delete.
8765         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
8766         a function that examines each subrtx itself.  Take the fields of
8767         change_cc_mode_args as argument and return void.
8768         (cse_change_cc_mode_insn): Update calls accordingly.
8770 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8772         * cse.c (is_dead_reg): Change argument to const_rtx.
8773         (dead_debug_insn_data): Delete.
8774         (is_dead_debug_insn): Expand commentary.  Turn from being a
8775         for_each_rtx callback to being a function that examines
8776         each subrtx itself.  Take the fields of dead_debug_insn_data
8777         as argument.
8778         (delete_trivially_dead_insns): Update call accordingly.
8780 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8782         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
8783         being a for_each_rtx callback to being a function that examines
8784         each subrtx itself.
8785         (cse_extended_basic_block): Update call accordingly.
8787 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8789         * cse.c (check_dependence_data): Delete.
8790         (check_dependence): Change from being a for_each_rtx callback to being
8791         a function that examines all subrtxes itself.  Don't handle null rtxes.
8792         (invalidate): Update call accordingly.
8794 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8796         * cse.c: Include rtl-iter.h.
8797         (approx_reg_cost_1): Delete.
8798         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8799         Don't handle null rtxes.
8801 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8803         * cfgcleanup.c: Include rtl-iter.h.
8804         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
8805         to being a function that examines each subrtx itself.
8806         (thread_jump): Update accordingly.
8808 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8810         * combine-stack-adj.c: Include rtl-iter.h.
8811         (record_stack_refs_data): Delete.
8812         (record_stack_refs): Turn from being a for_each_rtx callback
8813         to being a function that examines each subrtx itself.
8814         Take a pointer to the reflist.  Invert sense of return value
8815         so that true means success and false means failure.  Don't
8816         handle null rtxes.
8817         (combine_stack_adjustments_for_block): Update accordingly.
8819 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8821         * combine.c (record_truncated_value): Turn from being a for_each_rtx
8822         callback to a function that takes an rtx and returns a bool
8823         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
8824         for_each_rtx.
8826 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8828         * combine.c: Include rtl-iter.h.
8829         (unmentioned_reg_p_1): Delete.
8830         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8831         Don't handle null rtxes.
8833 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8835         * calls.c: Include rtl-iter.h.
8836         (internal_arg_pointer_based_exp_1): Delete.
8837         (internal_arg_pointer_based_exp): Take a const_rtx.
8838         Use FOR_EACH_SUBRTX to iterate over subrtxes.
8840 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8842         * caller-save.c: Include rtl-iter.h.
8843         (add_used_regs_1): Delete.
8844         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
8845         to iterate over subrtxes.  Assert that any remaining pseudos
8846         have been spilled.
8848 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8850         * bt-load.c: Include rtl-iter.h.
8851         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
8852         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
8853         to iterate over subrtxes.
8854         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
8855         find_btr_use rather than btr_referenced_p.
8857 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8859         * alias.c: Include rtl-iter.h.
8860         (refs_newer_value_cb): Delete.
8861         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8863 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8865         * rtl-iter.h: New file.
8866         * rtlanal.c: Include it.
8867         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
8868         (generic_subrtx_iterator <T>::add_single_to_queue)
8869         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
8870         (generic_subrtx_iterator <T>::free_array): New functions.
8871         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
8872         (generic_subrtx_iterator <const_rtx_accessor>)
8873         (generic_subrtx_iterator <rtx_var_accessor>
8874         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
8875         (setup_reg_subrtx_bounds): New function.
8876         (init_rtlanal): Call it.
8878 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8880         PR target/62261
8881         * config/sh/sh.md (ashlsi3): Handle negative shift count for
8882         TARGET_SHMEDIA.
8883         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
8885 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
8887         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
8889 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8891         * rtl.h (JUMP_LABEL_AS_INSN): New.
8893 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8895         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
8896         rtx_expr_list **.
8897         (alloc_EXPR_LIST): Strengthen return type from rtx to
8898         rtx_expr_list *.
8899         (remove_free_EXPR_LIST_node): Likewise for param.
8900         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
8901         from rtx to rtx_expr_list *.
8902         * sched-int.h (struct deps_desc): Strengthen fields
8903         "pending_read_mems" and "pending_write_mems" from rtx to
8904         rtx_expr_list *.
8906         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
8907         rtx to rtx_expr_list *.
8908         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
8909         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
8910         rtx_expr_list **.
8911         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
8912         from rtx to rtx_expr_list *.
8913         * loop-iv.c (simplify_using_initial_values): Strengthen local
8914         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
8915         "pnote_next" from rtx * to rtx_expr_list **.
8916         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
8917         param "exprp" from rtx * to rtx_expr_list **.
8918         (add_insn_mem_dependence): Strengthen local "mem_list" from
8919         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
8920         to rtx_expr_list *.
8921         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
8922         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
8923         param "old_mems_p" from rtx * to rtx_expr_list **.
8924         * var-tracking.c (struct adjust_mem_data): Strengthen field
8925         "side_effects" from rtx to rtx_expr_list *.
8926         (adjust_insn): Replace NULL_RTX with NULL when assigning to
8927         rtx_expr_list *.
8928         (prepare_call_arguments): Likewise.
8930 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8932         * function.h (struct rtl_data): Strengthen field
8933         "x_stack_slot_list" from rtx to rtx_expr_list *.
8935         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
8936         when assigning to stack_slot_list.
8938 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8940         * function.h (struct rtl_data): Strengthen field
8941         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
8942         * rtl.h (remove_node_from_expr_list): Strengthen second param from
8943         rtx * to rtx_expr_list **.
8945         * cfgbuild.c (make_edges): In loop over
8946         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
8947         rtx_expr_list *, and use methods of the latter class to clarify
8948         the code.
8949         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
8950         rtx_expr_list *, and use methods of the latter class to clarify
8951         the code.
8952         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8953         * reload1.c (set_initial_label_offsets): Likewise for local "x".
8954         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
8955         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
8956         to rtx_expr_list *.  Use methods of the latter class to clarify
8957         the code.
8959 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8961         * function.h (struct expr_status): Strengthen field
8962         "x_forced_labels" from rtx to rtx_expr_list *.
8964         * cfgbuild.c (make_edges): Split local "x" into two locals,
8965         strengthening one from rtx to rtx_expr_list *, and using methods
8966         of said class.
8967         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
8968         loop over forced_labels, introduce strengthen it from rtx to
8969         rtx_expr_list *, using methods to clarify the code.
8970         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
8971         to rtx_expr_list *, using methods of said class to clarify the
8972         code.
8973         * reload1.c (set_initial_label_offsets): Split local "x" into two
8974         per-loop variables, strengthening the first from rtx to
8975         rtx_expr_list * and using methods.
8977 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8979         * coretypes.h (class rtx_expr_list): Add forward declaration.
8980         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
8981         * gengenrtl.c (special_rtx): Add EXPR_LIST.
8982         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
8983         invariant: GET_CODE (X) == EXPR_LIST.
8984         (is_a_helper <rtx_expr_list *>::test): New.
8985         (rtx_expr_list::next): New.
8986         (rtx_expr_list::element): New.
8987         (gen_rtx_EXPR_LIST): New.
8989 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8991         * varasm.c (mark_constants): Convert a GET_CODE check into a
8992         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8993         Use methods of rtx_sequence to clarify the code.
8995 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8997         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
8998         local "seq" via a checked cast, and use methods of rtx_sequence
8999         to simplify the code.
9001 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9003         * resource.c (mark_referenced_resources): Strengthen local
9004         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9005         using methods of rtx_sequence to clarify the code.
9006         (find_dead_or_set_registers): Within the switch statement, convert
9007         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
9008         the JUMP_P handling, introduce another local "seq", adding a
9009         checked cast to rtx_sequence *.  In both cases, use methods of
9010         rtx_sequence to clarify the code.
9011         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9012         via a checked cast, and use methods of rtx_sequence to simplify
9013         the code.
9015 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9017         * reorg.c (redundant_insn): In two places in the function, replace
9018         a check of GET_CODE with a dyn_cast, introducing local "seq", and
9019         usings methods of rtx_sequence to clarify the code.
9021 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9023         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9024         local "seq" with a checked cast, and use methods of rtx_sequence
9025         to clarify the code.
9027 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9029         * function.c (contains): Introduce local "seq" for PATTERN (insn),
9030         with a checked cast, in the region for where we know it's a
9031         SEQUENCE.  Use methods of rtx_sequence.
9033 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9035         * final.c (get_attr_length_1): Replace GET_CODE check with a
9036         dyn_cast, introducing local "seq" and the use of methods of
9037         rtx_sequence.
9038         (shorten_branches): Likewise, introducing local "body_seq".
9039         Strengthen local "inner_insn" from rtx to rtx_insn *.
9040         (reemit_insn_block_notes): Replace GET_CODE check with a
9041         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9042         Use methods of rtx_sequence.
9043         (final_scan_insn): Likewise, introducing local "seq" for when
9044         "body" is known to be a SEQUENCE, using its methods.
9046 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9048         * except.c (can_throw_external): Strengthen local "seq" from rtx
9049         to rtx_sequence *.  Use methods of rtx_sequence.
9050         (insn_nothrow_p): Likewise.
9052 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9054         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9055         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9056         Use methods of rtx_sequence.
9057         (scan_trace): Likewise for local "pat".
9059 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9061         * coretypes.h (class rtx_sequence): Add forward declaration.
9062         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9063         invariant: GET_CODE (X) == SEQUENCE.
9064         (is_a_helper <rtx_sequence *>::test): New.
9065         (is_a_helper <const rtx_sequence *>::test): New.
9066         (rtx_sequence::len): New.
9067         (rtx_sequence::element): New.
9068         (rtx_sequence::insn): New.
9070 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9072         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9073         rtx_insn_list **.
9074         (alloc_INSN_LIST): Strengthen return type from rtx to
9075         rtx_insn_list *.
9076         (copy_INSN_LIST): Likewise for return type and param.
9077         (concat_INSN_LIST): Likewise for both params and return type.
9078         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9079         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
9080         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9081         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
9083         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9084         "implicit_sets", "control_uses", "clobbers" from rtx to
9085         rtx_insn_list *.
9086         (struct deps_desc): Likewise for fields "pending_read_insns",
9087         "pending_write_insns", "pending_jump_insns",
9088         "last_pending_memory_flush", "last_function_call",
9089         "last_function_call_may_noreturn", "sched_before_next_call",
9090         "sched_before_next_jump".
9091         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9092         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9094         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9095         from rtx to rtx_insn_list *.
9096         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9097         rtx_insn_list *.
9099         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9100         to rtx_insn_list **.
9101         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9102         rtx_insn_list *.
9103         (queue_insn): Likewise for local "link".
9104         (struct haifa_saved_data): Strengthen field "insn_queue" from
9105         rtx * to rtx_insn_list **.
9106         (save_backtrack_point): Update allocation of save->insn_queue to
9107         reflect the strengthening of elements from rtx to rtx_insn_list *.
9108         (queue_to_ready): Strengthen local "link" from rtx to
9109         rtx_insn_list *; use methods "next" and "insn" when traversing the
9110         list.
9111         (early_queue_to_ready): Likewise for locals "link", "next_link",
9112         "prev_link".
9113         (schedule_block): Update allocation of insn_queue to reflect the
9114         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
9115         local "link" from rtx to rtx_insn_list *, and use methods when
9116         working it.
9117         (add_to_speculative_block): Strengthen locals "twins" and
9118         "next_node" from rtx to rtx_insn_list *, and use methods when
9119         working with them.  Strengthen local "twin" from rtx to
9120         rtx_insn *, eliminating a checked cast.
9121         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9122         from rtx to rtx_insn_list *, and use methods when working with
9123         them.
9125         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9126         from rtx to rtx_insn_list *, adding a checked cast.
9127         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9128         rtx_insn_list **.
9129         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9130         "newlink" from rtx to rtx_insn_list *.  Strengthen local
9131         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
9132         from rtx to rtx_insn *.
9133         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9134         from rtx to rtx_insn_list *.  Use methods of the latter class.
9135         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9136         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9137         (remove_free_INSN_LIST_node): Strengthen return type and local
9138         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
9139         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
9140         rtx_insn_list *, using "insn" method.
9142         * sched-deps.c (add_dependence_list):  Strengthen param "list"
9143         from rtx to rtx_insn_list *, and use methods when working with it.
9144         (add_dependence_list_and_free):  Strengthen param "listp" from
9145         rtx * to rtx_insn_list **.
9146         (remove_from_dependence_list): Strenghten param "listp" from rtx *
9147         to rtx_insn_list **, and use methods when working with *listp.
9148         (remove_from_both_dependence_lists): Strengthen param "listp" from
9149         rtx * to rtx_insn_list **
9150         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9151         to rtx_insn_list **.  Eliminate local "link", in favor of two new
9152         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9153         respectively.
9154         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9155         by introducing local "cond_deps".
9156         (remove_from_deps): Strengthen param "insn" from rtx to
9157         rtx_insn *.
9159         * sched-rgn.c (concat_insn_mem_list): Strengthen param
9160         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
9161         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
9162         Use methods of rtx_insn_list.
9164         * store-motion.c (struct st_expr): Strengthen fields
9165         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
9166         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
9167         rtx_insn_list *.
9168         (find_moveable_store): Split out "tmp" into multiple more-tightly
9169         scoped locals.  Use methods of rtx_insn_list *.
9170         (compute_store_table): Strengthen local "tmp" from rtx to
9171         rtx_insn *.  Use methods of rtx_insn_list *.
9173 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9175         * coretypes.h (class rtx_insn_list): Add forward declaration.
9176         * rtl.h (class rtx_insn_list): New subclass of rtx_def
9177         (is_a_helper <rtx_insn_list *>::test): New.
9178         (rtx_insn_list::next): New.
9179         (rtx_insn_list::insn): New.
9180         (gen_rtx_INSN_LIST): Add prototype.
9181         * emit-rtl.c (gen_rtx_INSN_LIST): New.
9182         * gengenrtl.c (special_rtx): Add INSN_LIST.
9184 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9186         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
9187         "prev" from rtx to rtx_insn *.
9189 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9191         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
9192         functions.  Require merely an rtx for now, not an rtx_insn *.
9193         (BLOCK_FOR_INSN): Likewise.
9194         (INSN_LOCATION): Likewise.
9195         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9197 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9199         * rtl.h (PATTERN): Convert this macro into a pair of inline
9200         functions, for now, requiring const_rtx and rtx.
9202 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9204         * target.def (unwind_emit): Strengthen param "insn" from rtx to
9205         rtx_insn *.
9206         (final_postscan_insn): Likewise.
9207         (adjust_cost): Likewise.
9208         (adjust_priority): Likewise.
9209         (variable_issue): Likewise.
9210         (macro_fusion_pair_p): Likewise.
9211         (dfa_post_cycle_insn): Likewise.
9212         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9213         (first_cycle_multipass_issue): Likewise.
9214         (dfa_new_cycle): Likewise.
9215         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9216         (speculate_insn): Likewise for param "insn".
9217         (gen_spec_check): Likewise for params "insn" and "label".
9218         (get_insn_spec_ds): Likewise for param "insn".
9219         (get_insn_checked_ds): Likewise.
9220         (dispatch_do): Likewise.
9221         (dispatch): Likewise.
9222         (cannot_copy_insn_p): Likewise.
9223         (invalid_within_doloop): Likewise.
9224         (legitimate_combined_insn): Likewise.
9225         (needed): Likewise.
9226         (after): Likewise.
9228         * doc/tm.texi: Automatically updated to reflect changes to
9229         target.def.
9231         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9232         working with insn.
9233         (schedule_block): Likewise.
9234         (sched_init): Likewise.
9235         (sched_speculate_insn): Strengthen param "insn" from rtx to
9236         rtx_insn *.
9237         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9238         working with insn.
9239         * hooks.c (hook_bool_rtx_true): Rename to...
9240         hook_bool_rtx_insn_true): ...this, and strengthen first param from
9241         rtx to rtx_insn *.
9242         (hook_constcharptr_const_rtx_null): Rename to...
9243         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9244         first param from const_rtx to const rtx_insn *.
9245         (hook_bool_rtx_int_false): Rename to...
9246         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9247         param from rtx to rtx_insn *.
9248         (hook_void_rtx_int): Rename to...
9249         (hook_void_rtx_insn_int): ...this, and strengthen first param from
9250         rtx to rtx_insn *.
9252         * hooks.h (hook_bool_rtx_true): Rename to...
9253         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9254         rtx to rtx_insn *.
9255         (hook_bool_rtx_int_false): Rename to...
9256         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9257         param from rtx to rtx_insn *.
9258         (hook_void_rtx_int): Rename to...
9259         (hook_void_rtx_insn_int): ...this, and strengthen first param from
9260         rtx to rtx_insn *.
9261         (hook_constcharptr_const_rtx_null): Rename to...
9262         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9263         first param from const_rtx to const rtx_insn *.
9265         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9266         and local "prev" from rtx to rtx_insn *.
9268         * sched-int.h (sched_speculate_insn): Strengthen first param from
9269         rtx to rtx_insn *.
9271         * sel-sched.c (create_speculation_check): Likewise for local "label".
9272         * targhooks.c (default_invalid_within_doloop): Strengthen param
9273         "insn" from const_rtx to const rtx_insn *.
9274         * targhooks.h (default_invalid_within_doloop): Strengthen param
9275         from const_rtx to const rtx_insn *.
9277         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9278         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9280         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9281         "insn".
9282         (arc_invalid_within_doloop): Likewise, with const.
9284         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9285         (arm_cannot_copy_insn_p): Likewise for param "insn".
9286         (arm_unwind_emit): Likewise.
9288         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9289         "dep_insn".
9291         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9292         (c6x_variable_issue): Likewise.  Removed now-redundant checked
9293         cast.
9294         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
9296         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
9297         Likewise for param "insn".
9298         (epiphany_mode_after): Likewise.
9299         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
9300         params "insn", "dep_insn".
9301         (epiphany_mode_needed): Likewise for param "insn".
9302         (epiphany_mode_after): Likewise.
9304         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
9305         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9306         (ix86_avx_u128_mode_needed): Likewise.
9307         (ix86_i387_mode_needed): Likewise.
9308         (ix86_mode_needed): Likewise.
9309         (ix86_avx_u128_mode_after): Likewise.
9310         (ix86_mode_after): Likewise.
9311         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
9312         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
9313         (ix86_adjust_priority): Likewise for param "insn".
9314         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
9315         (do_dispatch): Likewise.
9316         (has_dispatch): Likewise.
9317         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
9319         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
9320         reflect renaming of default hook implementation from
9321         hook_constcharptr_const_rtx_null to
9322         hook_constcharptr_const_rtx_insn_null.
9323         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
9324         rtx to rtx_insn *.
9325         (ia64_variable_issue): Likewise for param "insn".
9326         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
9327         (ia64_dfa_new_cycle): Likewise.
9328         (ia64_get_insn_spec_ds): Likewise.
9329         (ia64_get_insn_checked_ds): Likewise.
9330         (ia64_speculate_insn): Likewise.
9331         (ia64_gen_spec_check): Likewise for params "insn", "label".
9332         (ia64_asm_unwind_emit): Likewise for param "insn".
9334         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
9336         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
9337         "insn", "def_insn".
9338         (m68k_sched_variable_issue): Likewise for param "insn".
9340         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
9341         "def_insn".
9343         * config/microblaze/microblaze.c (microblaze_adjust_cost):
9344         Likewise for params "insn", "dep".
9346         * config/mips/mips.c (mips_adjust_cost): Likewise.
9347         (mips_variable_issue): Likewise for param "insn".
9348         (mips_final_postscan_insn): Likewise.
9350         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
9351         for params "insn", "dep".
9353         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
9354         "dep_insn".
9355         (pa_adjust_priority): Likewise for param "insn".
9357         * config/picochip/picochip.c (picochip_sched_adjust_cost):
9358         Likewise for params "insn", "dep_insn".
9360         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
9361         param "insn".
9362         (rs6000_variable_issue): Likewise.
9363         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
9364         (rs6000_debug_adjust_cost): Likewise.
9365         (rs6000_adjust_priority): Likewise for param "insn".
9366         (rs6000_use_sched_lookahead_guard): Likewise.
9367         (get_next_active_insn): Likewise for return type and both params.
9368         (redefine_groups): Likewise for params "prev_head_insn", "tail"
9369         and locals "insn", "next_insn".
9370         (pad_groups): Likewise.
9372         * config/s390/s390.c (s390_adjust_priority): Likewise for param
9373         "insn".
9374         (s390_cannot_copy_insn_p): Likewise.
9375         (s390_sched_variable_issue): Likewise for third param, eliminating
9376         checked cast.
9377         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
9378         default hook implementation from hook_constcharptr_const_rtx_null
9379         to hook_constcharptr_const_rtx_insn_null.
9381         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
9382         from rtx to rtx_insn *.
9383         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
9384         (sh_variable_issue): Likewise for param "insn".
9385         (sh_dfa_new_cycle): Likewise.
9386         (sh_mode_needed): Likewise.
9387         (sh_mode_after): Likewise.
9389         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
9390         params "insn", "dep_insn".
9391         (hypersparc_adjust_cost): Likewise.
9392         (sparc_adjust_cost): Likewise.
9394         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
9395         param, eliminated checked cast.
9396         (spu_sched_adjust_cost): Likewise for first and third params.
9398         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
9399         params "insn" and "dep_insn" from rtx to rtx_insn *.
9401         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
9403 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9405         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
9406         (set_is_load_p): ...this, updating to work on a SET pattern rather
9407         than an insn.
9408         (is_store_insn): Rename to...
9409         (set_is_store_p): ...this, updating to work on a SET pattern
9410         rather than an insn.
9411         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
9412         top of function to where it is needed.  Rewrite the bogus
9413         condition that checks for "insn" and "dep" being PARALLEL to
9414         instead use single_set, introducing locals "insn_set" and
9415         "dep_set".  Given that we only ever returned "cost" for a non-pair
9416         of SETs, bail out early if we don't have a pair of SET.
9417         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
9418         use the new locals "insn_set" and "dep_set", and update calls to
9419         is_load_insn and is_store_insn to be calls to set_is_load_p and
9420         set_is_store_p.
9422 2014-08-27  Guozhi Wei  <carrot@google.com>
9424         PR target/62262
9425         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
9426         amount before using it.
9428 2014-08-27  Richard Biener  <rguenther@suse.de>
9430         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
9431         get_maxval_strlen inside a more useful API.
9432         (gimple_fold_builtin_with_strlen): Remove and fold into ...
9433         (gimple_fold_builtin): ... caller.
9434         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
9435         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
9436         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
9437         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
9438         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
9439         gimple_fold_builtin_sprintf): Adjust to compute maxval
9440         themselves.
9442 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
9444         PR other/62248
9445         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
9447 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9448             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9449             Anna Tikhonova  <anna.tikhonova@intel.com>
9450             Ilya Tocar  <ilya.tocar@intel.com>
9451             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9452             Ilya Verbin  <ilya.verbin@intel.com>
9453             Kirill Yukhin  <kirill.yukhin@intel.com>
9454             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9456         * config/i386/sse.md
9457         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
9458         Use `concat_tg_mode' attribute to determine asm register size.
9460 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9461             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9462             Anna Tikhonova  <anna.tikhonova@intel.com>
9463             Ilya Tocar  <ilya.tocar@intel.com>
9464             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9465             Ilya Verbin  <ilya.verbin@intel.com>
9466             Kirill Yukhin  <kirill.yukhin@intel.com>
9467             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9469         * config/i386/sse.md
9470         (define_mode_iterator VI48_AVX512VL): New.
9471         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
9472         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
9473         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
9474         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9475         with VI1): Change mode iterator.
9476         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9477         with VI_ULOADSTORE_BW_AVX512VL): New.
9478         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9479         with VI_ULOADSTORE_F_AVX512VL): Ditto.
9480         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9481         with VI1): Change mode iterator.
9482         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9483         with VI_ULOADSTORE_BW_AVX512VL): New.
9484         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9485         with VI_ULOADSTORE_F_AVX512VL): Ditto.
9486         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9487         with VI1): Change mode iterator.
9488         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9489         with VI_ULOADSTORE_BW_AVX512VL): New.
9490         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9491         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
9492         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
9493         (define_insn "<avx512>_storedqu<mode>_mask" with
9494         VI48_AVX512VL): New.
9495         (define_insn "<avx512>_storedqu<mode>_mask" with
9496         VI12_AVX512VL): Ditto.
9498 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9499             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9500             Anna Tikhonova  <anna.tikhonova@intel.com>
9501             Ilya Tocar  <ilya.tocar@intel.com>
9502             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9503             Ilya Verbin  <ilya.verbin@intel.com>
9504             Kirill Yukhin  <kirill.yukhin@intel.com>
9505             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9507         * config/i386/sse.md
9508         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
9509         (define_mode_iterator VI48_AVX512BW): New.
9510         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
9511         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9512         with VI48_AVX2_48_AVX512F): New.
9513         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9514         with VI2_AVX512VL): Ditto.
9516 2014-08-27  Richard Biener  <rguenther@suse.de>
9518         PR middle-end/62239
9519         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
9520         (fold_builtin_3): Do not fold strcat_chk here.
9521         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
9522         from builtins.c.
9523         (gimple_fold_builtin): Fold strcat_chk here.
9525 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
9527         * dwarf2out.h (dwarf2out_decl): Remove prototype.
9528         * dwarf2out.c (dwarf2out_decl): Make static.
9530 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
9532         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
9534 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9536         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
9537         from rtx to rtx_insn *.
9538         (cselib_lookup_from_insn): Likewise for final param.
9539         (cselib_subst_to_values_from_insn): Likewise.
9540         (cselib_add_permanent_equiv): Likewise.
9542         * cselib.c (cselib_current_insn): Likewise for this variable.
9543         (cselib_subst_to_values_from_insn): Likewise for param "insn".
9544         (cselib_lookup_from_insn): Likewise.
9545         (cselib_add_permanent_equiv): Likewise for param "insn" and local
9546         "save_cselib_current_insn".
9547         (cselib_process_insn): Replace use of NULL_RTX with NULL.
9549         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9550         from rtx to rtx_insn *.
9552 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9554         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9555         rtx_insn *.
9557 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9559         * df.h (df_dump_insn_problem_function): Strengthen first param of
9560         this callback from const_rtx to const rtx_insn *.
9561         (struct df_insn_info): Strengthen field "insn" from rtx to
9562         rtx_insn *.
9563         (DF_REF_INSN): Eliminate this function, reinstating the older
9564         macro definition.
9565         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9566         (df_reg_defined): Likewise.
9567         (df_find_use): Likewise.
9568         (df_reg_used): Likewise.
9569         (df_dump_insn_top): Strengthen param 1 from const_rtx to
9570         const rtx_insn *.
9571         (df_dump_insn_bottom): Likewise.
9572         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9573         (df_insn_debug_regno): Likewise.
9574         (debug_df_insn): Likewise.
9575         (df_rd_simulate_one_insn): Likewise for param 2.
9576         (df_word_lr_simulate_defs): Likewise for param 1.
9577         (df_word_lr_simulate_uses): Likewise.
9578         (df_md_simulate_one_insn): Likewise for param 2.
9579         (df_simulate_find_noclobber_defs): Likewise for param 1.
9580         (df_simulate_find_defs): Likewise.
9581         (df_simulate_defs): Likewise.
9582         (df_simulate_uses): Likewise.
9583         (df_simulate_one_insn_backwards): Likewise for param 2.
9584         (df_simulate_one_insn_forwards): Likewise.
9585         (df_uses_create): Likewise for param 2.
9586         (df_insn_create_insn_record): Likewise for param 1.
9587         (df_insn_delete): Likewise.
9588         (df_insn_rescan): Likewise.
9589         (df_insn_rescan_debug_internal): Likewise.
9590         (df_insn_change_bb): Likewise.
9591         (df_notes_rescan): Likewise.
9592         * rtl.h (remove_death): Likewise for param 2.
9593         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9594         const rtx_insn *.
9595         * sched-int.h (reemit_notes): Strengthen param from rtx to
9596         rtx_insn *.
9597         * valtrack.h (propagate_for_debug): Likewise for param 1.
9599         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9600         local "tmp_rtx" from const_rtx to const rtx_insn *.
9601         * combine.c (remove_death): Strengthen param "insn" from rtx to
9602         rtx_insn *.
9603         (move_deaths): Likewise for local "where_dead".
9604         * cse.c (delete_trivially_dead_insns): Introduce local
9605         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9606         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9607         rtx_insn *.
9608         (df_reg_defined): Likewise.
9609         (df_find_use): Likewise.
9610         (df_reg_used): Likewise.
9611         (df_dump_insn_problem_data): Strengthen param "insn" from
9612         const_rtx to const rtx_insn *.
9613         (df_dump_insn_top): Likewise.
9614         (df_dump_insn_bottom): Likewise.
9615         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9616         (df_insn_debug_regno): Likewise.
9617         (debug_df_insn): Likewise.
9618         (DF_REF_INSN): Delete.
9619         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9620         from rtx to rtx_insn *.
9621         (df_chain_insn_top_dump): Strengthen param "insn" from
9622         const_rtx to const rtx_insn *.
9623         (df_chain_insn_bottom_dump): Likewise.
9624         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9625         rtx_insn *.
9626         (df_word_lr_simulate_uses): Likewise.
9627         (df_print_note): Likewise.
9628         (df_remove_dead_and_unused_notes): Likewise.
9629         (df_set_unused_notes_for_mw): Likewise.
9630         (df_set_dead_notes_for_mw): Likewise.
9631         (df_create_unused_note): Likewise.
9632         (df_simulate_find_defs): Likewise.
9633         (df_simulate_find_uses): Likewise.
9634         (df_simulate_find_noclobber_defs): Likewise.
9635         (df_simulate_defs): Likewise.
9636         (df_simulate_uses): Likewise.
9637         (df_simulate_one_insn_backwards): Likewise.
9638         (df_simulate_one_insn_forwards): Likewise.
9639         (df_md_simulate_one_insn): Likewise.
9640         * df-scan.c (df_uses_create): Likewise.
9641         (df_insn_create_insn_record): Likewise.
9642         (df_insn_delete): Likewise.
9643         (df_insn_rescan): Likewise.
9644         (df_insn_rescan_debug_internal): Likewise.
9645         (df_insn_change_bb): Likewise.
9646         (df_notes_rescan): Likewise.
9647         (df_refs_add_to_chains): Likewise.
9648         (df_insn_refs_verify): Likewise.
9649         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
9650         when invoking df_insn_delete.
9651         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
9652         (set_unique_reg_note): Add checked cast.
9653         * final.c (cleanup_subreg_operands): Likewise.
9654         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
9655         "insn" from rtx to rtx_insn *.
9656         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
9657         "last" from rtx to rtx_insn *.
9658         * ira-emit.c (change_regs_in_insn): New function.
9659         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9660         Invoke change_regs_in_insn rather than change_regs.
9661         * ira.c (update_equiv_regs): Strengthen locals "insn",
9662         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
9663         for_each_rtx_in_insn rather than for_each_rtx.
9664         * recog.c (confirm_change_group): Add checked casts.
9665         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9666         Add checked cast.
9667         (peep2_fill_buffer): Add checked cast.
9668         * rtlanal.c (remove_note): Likewise.
9669         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9670         locals "next" "end" from rtx to rtx_insn *.
9672 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9674         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9675         to rtx_insn *.
9676         (struct reg_use_data): Likewise for field "insn".
9677         (insn_cost): Likewise for param.
9678         (real_insn_for_shadow): Likewise for return type and param.
9679         (increase_insn_priority): Likewise for param 1.
9680         (debug_dependencies): Likewise for both params.
9682         * haifa-sched.c (insn_delay): Likewise for param "insn".
9683         (real_insn_for_shadow): Likewise for return type and param "insn".
9684         (update_insn_after_change): Likewise for param "insn".
9685         (recompute_todo_spec): Likewise for param "next" and locals "pro",
9686         "other".
9687         (insn_cost): Likewise for param "insn".
9688         (increase_insn_priority): Likewise.
9689         (calculate_reg_deaths): Likewise.
9690         (setup_insn_reg_pressure_info): Likewise.
9691         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
9692         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
9693         (model_recompute): Likewise.
9694         (must_restore_pattern_p): Likewise for param "next".
9695         (model_excess_cost): Likewise for param "insn".
9696         (queue_remove): Likewise.
9697         (adjust_priority): Likewise for param "prev".
9698         (update_register_pressure): Likewise for param "insn".
9699         (setup_insn_max_reg_pressure): Likewise for local "insn".
9700         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
9701         (model_add_to_schedule): Likewise.
9702         (model_reset_queue_indices): Likewise for local "insn".
9703         (unschedule_insns_until): Strengthen local "recompute_vec" from
9704         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
9705         "con" from rtx to rtx_insn *.
9706         (restore_last_backtrack_point): Likewise for both locals "x". Add
9707         checked casts.
9708         (estimate_insn_tick): Likewise for param "insn".
9709         (commit_schedule): Likewise for params "prev_head", "tail" and
9710         local "x".
9711         (verify_shadows): Likewise for locals "i1", "i2".
9712         (dump_insn_stream): Likewise for params "head", "tail" and locals
9713         "next_tail", "insn".
9714         (schedule_block): Likewise for locals "insn", "x".  Add a checked
9715         cast.
9716         (fix_inter_tick): Likewise for params "head", "tail".
9717         (create_check_block_twin): Likewise for local "jump".
9718         (haifa_change_pattern): Likewise for param "insn".
9719         (haifa_speculate_insn): Likewise.
9720         (dump_new_block_header): Likewise for params "head", "tail".
9721         (fix_jump_move): Likewise for param "jump".
9722         (move_block_after_check): Likewise.
9723         (sched_init_insn_luid): Likewise for param "insn".
9724         (sched_init_luids): Likewise for local "insn".
9725         (insn_luid): Likewise for param "insn".
9726         (init_h_i_d): Likewise.
9727         (haifa_init_h_i_d): Likewise for local "insn".
9728         (haifa_init_insn): Likewise for param "insn".
9729         * sched-deps.c (add_dependence): Likewise for local "real_pro",
9730         "other".
9731         (create_insn_reg_use): Likewise for param "insn".
9732         (setup_insn_reg_uses): Likewise.  Add a checked cast.
9733         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
9734         "tail" from rtx to rtx_insn *.
9735         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
9736         "insn", "next_tail".
9738 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9740         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
9741         from rtx to rtx_insn *.
9742         (model_add_to_schedule): Likewise for locals "start", "end",
9743         "iter".
9745 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9747         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
9748         rtx_insn *.
9749         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
9750         "to" and locals "insn", "next", "copy".  Remove now-redundant
9751         checked cast.
9753 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9755         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
9756         rtx_insn * and param 4 from rtx * to rtx_insn **.
9757         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
9758         param 2 from rtx * to rtx_insn **.
9760         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
9761         rtx_insn * and final param from rtx * to rtx_insn **.
9763         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
9764         from rtx to rtx_insn *.
9765         (try_head_merge_bb): Likewise for both locals named "move_upto".
9766         * df-problems.c (can_move_insns_across): Likewise for params
9767         "from", "to", "across_from", "across_to" and locals "insn",
9768         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
9769         rtx_insn **.
9770         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
9771         from rtx to rtx_insn *.
9772         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
9773         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
9774         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
9775         rtx_insn *.
9776         (noce_try_abs): Likewise.
9777         (noce_get_condition): Likewise for param "jump".  Strengthen param
9778         "earliest" from rtx * to rtx_insn **.
9779         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
9780         rtx_insn *.
9781         (find_cond_trap): Likewise.
9782         (dead_or_predicable): Likewise for local "earliest".
9783         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
9784         checked cast.
9785         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
9786         and local "prev".  Strengthen param "earliest" from rtx * to
9787         rtx_insn **.
9788         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
9789         Strengthen param "earliest" from rtx * to rtx_insn **.
9791 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9793         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
9794         "to" and local "insn" from rtx to rtx_insn *.
9796 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9798         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
9799         from rtx to rtx_insn *.
9800         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
9801         (code_motion_path_driver): Likewise for local "last_insn".
9802         (simplify_changed_insns): Likewise for local "insn".
9804 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9806         * rtl.h (push_to_sequence): Strengthen param from rtx to
9807         rtx_insn *.
9808         (push_to_sequence2): Likewise for both params.
9809         (delete_insns_since): Likewise for param.
9810         (reorder_insns_nobb): Likewise for all three params.
9811         (set_new_first_and_last_insn): Likewise for both params.
9813         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
9814         rtx_insn *.  Remove now-redundant cast.
9815         (set_last_insn): Likewise.
9817         * builtins.c (expand_builtin_return): Strengthen local
9818         "call_fusage" from rtx to rtx_insn *.
9819         * cfgrtl.c (create_basic_block_structure): Likewise for local
9820         "after".
9821         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
9822         "first", "last" and local "insn".
9823         (delete_insns_since): Likewise for param "from".
9824         (reorder_insns_nobb): Likewise for params "from", "to", "after"
9825         and local "x".
9826         (push_to_sequence): Likewise for param "first" and local "last".
9827         (push_to_sequence2): Likewise for params "first" and "last".
9828         * lra.c (emit_add3_insn): Likewise for local "last".
9829         (lra_emit_add): Likewise.
9830         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
9831         "last_insn".
9832         (process_address_1): Likewise for locals "insn", last".
9833         * modulo-sched.c (ps_first_note): Likewise for return type.
9834         * optabs.c (expand_binop_directly): Likewise for param "last".
9836 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9838         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
9839         to rtx_insn*.
9840         * emit-rtl.c (get_last_insn_anywhere): Likewise.
9842 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9844         * function.h (struct sequence_stack): Strengthen fields "first"
9845         and "last" from rtx to rtx_insn *.
9846         (struct emit_status): Likewise for fields "x_first_insn" and
9847         "x_last_insn".
9849         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
9850         (set_first_insn): Add checked cast.
9851         (get_last_insn): Remove now-redundant checked cast.
9852         (set_last_insn): Add checked cast.
9854         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
9855         "saved_first" and "saved_last" from rtx to rtx_insn *.
9857 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9859         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
9860         (unlink_insn_chain): Strengthen both params from rtx to
9861         rtx_insn *.
9863         * cfgrtl.c (cfg_layout_function_header): Likewise for this
9864         variable.
9865         (unlink_insn_chain): Likewise for params "first" and "last".
9866         Remove now-redundant checked cast.
9867         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
9868         (fixup_reorder_chain): Strengthen local "insn" from rtx to
9869         rtx_insn *.
9870         * emit-rtl.c (link_insn_into_chain): Likewise for all three
9871         params.
9872         (add_insn): Likewise for param "insn" and local "prev".
9873         (add_insn_after_nobb): Likewise for both params and local "next".
9874         (add_insn_before_nobb): Likewise for both params and local "prev".
9875         (add_insn_after): Rename param "after" to "uncast_after",
9876         introducing local "after" with another checked cast.
9877         (add_insn_before): Rename params "insn" and "before", giving them
9878         "uncast_" prefixes, adding the old names back using checked casts.
9879         (emit_note_after): Likewise for param "after".
9880         (emit_note_before): Likewise for param "before".
9881         (emit_label): Add a checked cast.
9883 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9885         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
9886         "insn" from rtx to rtx_insn *.
9888         * cselib.c (cselib_record_sets_hook): Likewise.
9890         * var-tracking.c (add_with_sets): Likewise, renaming back from
9891         "uncast_insn" to "insn" and eliminating the checked cast from rtx
9892         to rtx_insn *.
9894 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9896         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
9897         and "header_" from rtx to rtx_insn *.
9898         (struct basic_block_d): Likewise for field "head_" within "x"
9899         field of union basic_block_il_dependent.
9900         (BB_HEAD): Drop function...
9901         (SET_BB_HEAD): ...and this function in favor of...
9902         (BB_HEAD): ...reinstate macro.
9903         (BB_END): Drop function...
9904         (SET_BB_END): ...and this function in favor of...
9905         (BB_END): ...reinstate macro.
9906         (BB_HEADER): Drop function...
9907         (SET_BB_HEADER): ...and this function in favor of...
9908         (BB_HEADER): ...reinstate macro.
9910         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
9911         (fix_crossing_unconditional_branches): Likewise.
9912         * caller-save.c (save_call_clobbered_regs): Likewise.
9913         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
9914         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
9915         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9916         (merge_blocks_move_successor_nojumps): Likewise.
9917         (outgoing_edges_match): Update use of for_each_rtx to
9918         for_each_rtx_in_insn.
9919         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
9920         (expand_gimple_cond): Likewise.
9921         (expand_gimple_tailcall): Likewise.
9922         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
9923         SET_BB_END.
9924         (construct_exit_block): Drop use of SET_BB_END.
9925         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
9926         rtx_insn *.
9927         (delete_insn): Rename param "insn" to "uncast_insn", introducing
9928         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
9929         SET_BB_HEAD and SET_BB_END.
9930         (create_basic_block_structure): Drop use of SET_BB_HEAD and
9931         SET_BB_END.
9932         (rtl_delete_block): Drop use of SET_BB_HEAD.
9933         (rtl_split_block): Drop use of SET_BB_END.
9934         (emit_nop_for_unique_locus_between): Likewise.
9935         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
9936         (block_label): Drop use of SET_BB_HEAD.
9937         (fixup_abnormal_edges): Drop use of SET_BB_END.
9938         (record_effective_endpoints): Drop use of SET_BB_HEADER.
9939         (relink_block_chain): Likewise.
9940         (fixup_reorder_chain): Drop use of SET_BB_END.
9941         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
9942         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
9943         rtx_insn **.  Drop use of SET_BB_HEADER.
9944         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
9945         SET_BB_HEAD.
9946         (BB_HEAD): Delete this function.
9947         (SET_BB_HEAD): Likewise.
9948         (BB_END): Likewise.
9949         (SET_BB_END): Likewise.
9950         (BB_HEADER): Likewise.
9951         (SET_BB_HEADER): Likewise.
9952         * emit-rtl.c (add_insn_after):  Rename param "insn" to
9953         "uncast_insn", adding a new local "insn" and a checked cast to
9954         rtx_insn *.  Drop use of SET_BB_END.
9955         (remove_insn): Strengthen locals "next" and "prev" from rtx to
9956         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
9957         (reorder_insns): Drop use of SET_BB_END.
9958         (emit_insn_after_1): Strengthen param "first" and locals "last",
9959         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
9960         (emit_pattern_after_noloc): Add checked cast.
9961         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
9962         (restore_other_notes): Likewise.
9963         (move_insn): Likewise.
9964         (sched_extend_bb): Likewise.
9965         (fix_jump_move): Likewise.
9966         * ifcvt.c (noce_process_if_block): Likewise.
9967         (dead_or_predicable): Likewise.
9968         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
9969         * reg-stack.c (change_stack): Drop use of SET_BB_END.
9970         * sel-sched-ir.c (sel_move_insn): Likewise.
9971         * sel-sched.c (move_nop_to_previous_block): Likewise.
9973         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
9974         SET_BB_END.
9975         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9977 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9979         * basic-block.h (create_basic_block_structure): Strengthen params
9980         1 "head" and 2 "end" from rtx to rtx_insn *.
9981         * cfgrtl.c (create_basic_block_structure): Likewise.
9982         (rtl_create_basic_block): Update casts from void * to rtx to
9983         rtx_insn *, so that we can pass them as rtx_insn * to
9984         create_basic_block_structure.
9985         * sel-sched-ir.c (sel_create_basic_block): Likewise.
9987 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9989         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
9990         rtx_insn **.
9991         (check_for_inc_dec): Strengthen param "insn" from rtx to
9992         rtx_insn *.
9994         * cselib.h (cselib_process_insn): Likewise.
9996         * cselib.c (cselib_record_sets): Likewise.
9997         (cselib_process_insn): Likewise.
9999         * dse.c (struct insn_info): Likewise for field "insn".
10000         (check_for_inc_dec_1): Likewise for local "insn".
10001         (check_for_inc_dec): Likewise for param "insn".
10002         (scan_insn): Likewise.
10003         (dse_step1): Likewise for local "insn".
10005         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10006         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
10008 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10010         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10011         from rtx to rtx_insn *.
10012         (DEP_PRO): Delete this function and...
10013         (SET_DEP_PRO): ...this function in favor of...
10014         (DEP_PRO): ...reinstate this macro.
10015         (DEP_CON): Delete this function and...
10016         (SET_DEP_CON): ...this function in favor of...
10017         (DEP_CON): ...reinstate this old macro.
10018         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10019         (init_dep): Likewise.
10020         (set_priorities): Likewise for both params.
10021         (sd_copy_back_deps): Likewise for params 1 and 2.
10023         * haifa-sched.c (priority): Likewise for param "insn" and local
10024         "next".
10025         (set_priorities): Likewise for params "head" and "tail" and local
10026         "insn".
10027         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10028         local "consumer".
10029         (add_to_speculative_block): Add a checked cast.
10030         (create_check_block_twin): Drop use of SET_DEP_CON.
10031         (add_jump_dependencies): Strengthen params "insn" and "jump" from
10032         rtx to rtx_insn *.
10034         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10035         Drop use of SET_DEP_PRO
10036         (init_dep): Strengthen params "pro" and "con" from rtx to
10037         rtx_insn *.
10038         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
10039         use of SET_DEP_CON.
10040         (DEP_PRO): Delete.
10041         (DEP_CON): Delete.
10042         (SET_DEP_PRO): Delete.
10043         (SET_DEP_CON): Delete.
10045 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10047         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10048         from rtx to rtx_insn *.
10049         (VINSN_INSN_RTX): Eliminate rvalue function and...
10050         (SET_VINSN_INSN): ...lvalue function in favor of...
10051         (VINSN_INSN_RTX): reinstate this old macro.
10053         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10054         in favor of VINSN_INSN_RTX.
10055         (VINSN_INSN_RTX): Delete this function.
10056         (SET_VINSN_INSN_RTX): Likewise.
10058 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10060         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10061         (BND_TO): Delete this function and...
10062         (SET_BND_TO): ...this functions in favor of...
10063         (BND_TO): ...reinstating this macro.
10064         (struct _fence): Strengthen field "executing_insns" from
10065         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
10066         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10067         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10068         and param "insn" from rtx to insn_t.
10069         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10070         rtx_insn *.
10072         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10073         vec<rtx_insn *> .
10074         (rtx_vec_t): Likewise.
10075         (struct sched_deps_info_def): Strengthen param of "start_insn"
10076         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
10077         "note_mem_dep" callback and first param of "note_dep" callback.
10079         * haifa-sched.c (add_to_speculative_block): Strengthen param
10080         "insn" from rtx to rtx_insn *.
10081         (clear_priorities): Likewise.
10082         (calc_priorities): Likewise for local "insn".
10084         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10085         Remove redundant checked cast.
10086         (haifa_note_mem_dep): Likewise for param "pending_insn".
10087         (haifa_note_dep): Likewise for param "elem".
10088         (note_mem_dep): Likewise for param "e".
10089         (sched_analyze_1): Add checked casts.
10090         (sched_analyze_2): Likewise.
10092         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10093         from rtx to rtx_insn *.
10094         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10095         from vec<rtx> * to vec<rtx_insn *> *.
10097         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10098         scaffolding.
10099         (flist_add): Strengthen param "executing_insns" from
10100         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10101         (advance_deps_context): Remove now-redundant checked cast.
10102         (init_fences): Replace uses of NULL_RTX with NULL.
10103         (merge_fences): Strengthen params "last_scheduled_insn" and
10104         "sched_next" from rtx to rtx_insn * and "executing_insns" from
10105         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10106         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10107         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10108         an instruction, rather than doing double-duty as a pattern.
10109         (return_nop_to_pool): Update for change of insn_t.
10110         (deps_init_id): Remove now-redundant checked cast.
10111         (struct sched_scan_info_def): Strengthen param of "init_insn"
10112         callback from rtx to insn_t.
10113         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10114         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10115         NULL.
10116         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10117         "end" from rtx to rtx_insn *.
10118         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10119         (rtx insn_rtx, bool force_unique_p)
10120         (BND_TO): Delete function.
10121         (SET_BND_TO): Delete function.
10123         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10124         rtx to rtx_insn *.
10125         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10126         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10127         rtx to rtx_insn *.
10128         (undo_transformations): Likewise for param "insn".
10129         (update_liveness_on_insn): Likewise.
10130         (compute_live_below_insn): Likewise for param "insn" and local
10131         "succ".
10132         (update_data_sets): Likewise for param "insn".
10133         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10134         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10135         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10136         rtx_insn *.
10137         (move_cond_jump): Likewise for param "insn".
10138         (move_cond_jump): Drop use of SET_BND_TO.
10139         (compute_av_set_on_boundaries): Likewise.
10140         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10141         (update_and_record_unavailable_insns): Strengthen local "bb_end"
10142         from rtx to rtx_insn *.
10143         (maybe_emit_renaming_copy): Likewise for param "insn".
10144         (maybe_emit_speculative_check): Likewise.
10145         (handle_emitting_transformations): Likewise.
10146         (remove_insn_from_stream): Likewise.
10147         (code_motion_process_successors): Strengthen local "succ" from rtx
10148         to insn_t.
10150 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10152         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10153         ilist_t, not _xlist_t;
10154         (ILIST_INSN): Define in terms of new union field "insn".
10155         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10156         _XLIST_NEXT.
10157         (struct _list_node): Add new field "insn" to the union, of type
10158         insn_t.
10159         (ilist_add): Replace macro with an inline function, requiring an
10160         insn_t.
10161         (ilist_remove): Define this macro directly in terms of
10162         _list_remove, rather than indirectly via _xlist_remove.
10163         (ilist_clear): Likewise, in terms of _list_clear rather than
10164         _xlist_clear.
10165         (ilist_is_in_p): Replace macro with an inline function, requiring
10166         an insn_t.
10167         (_list_iter_cond_insn): New function.
10168         (ilist_iter_remove): Define this macro directly in terms of
10169         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
10170         (ilist_iterator): Define directly in terms of _list_iterator
10171         rather than indirectly through _xlist_iterator.
10172         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
10173         than in terms of _FOR_EACH_X.
10174         (FOR_EACH_INSN_1): Likewise.
10176 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
10178         PR target/60606
10179         PR target/61330
10180         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
10181         DECL_HARD_REGISTER and return for invalid register specifications.
10182         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
10183         DECL_HARD_REGISTER, call expand_one_error_var.
10184         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
10185         CC_REGNUM with non-MODE_CC modes.
10186         (arm_regno_class): Return NO_REGS for PC_REGNUM.
10188 2014-08-26  Marek Polacek  <polacek@redhat.com>
10190         PR c/61271
10191         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
10193 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
10195         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10196         qi cost; add di cost.
10197         (cortexa57_addrcost_table): Likewise.
10199 2014-08-26  Marek Polacek  <polacek@redhat.com>
10201         PR c/61271
10202         * expr.c (is_aligning_offset): Remove logical not.
10204 2014-08-26  Marek Polacek  <polacek@redhat.com>
10206         PR c/61271
10207         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10208         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10210 2014-08-26  Richard Biener  <rguenther@suse.de>
10212         PR tree-optimization/62175
10213         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10214         expand possibly trapping operations.
10216 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10218         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10219         "insn" from rtx to rtx_insn *.
10220         (permute_load): Likewise for param "insn".
10221         (permute_store): Likewise.
10222         (handle_special_swappables): Likewise for local "insn".
10223         (replace_swap_with_copy): Likewise for locals "insn" and
10224         "new_insn".
10225         (rs6000_analyze_swaps): Likewise for local "insn".
10227 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10229         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10230         to rtx_insn *.
10232 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10234         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10235         "note_list" from rtx to rtx_insn *.
10236         (BB_NOTE_LIST): Replace this function and...
10237         (SET_BB_NOTE_LIST): ...this function with...
10238         (BB_NOTE_LIST): ...the former macro implementation.
10240         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10241         local "from_start" from rtx to rtx_insn *.  Strengthen param
10242         "to_endp" from rtx * to rtx_insn **.
10244         * haifa-sched.c (concat_note_lists): Likewise.
10245         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10246         BB_NOTE_LIST.
10247         (sel_restore_notes): Likewise.
10248         (move_bb_info): Likewise.
10249         (BB_NOTE_LIST): Delete this function.
10250         (SET_BB_NOTE_LIST): Delete this function.
10251         * sel-sched.c (create_block_for_bookkeeping): Eliminate
10252         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10254 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10256         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10257         from rtx * to rtx_insn **.
10258         (reorder2): Likewise.
10259         (dependencies_evaluation_hook): Strengthen params "head", "tail"
10260         from rtx to rtx_insn *.
10262         * doc/tm.texi: Update mechanically for above change to target.def.
10264         * sched-int.h (note_list): Strengthen this variable from rtx to
10265         rtx_insn *.
10266         (remove_notes): Likewise for both params.
10267         (restore_other_notes): Likewise for return type and first param.
10268         (struct ready_list): Strengthen field "vec" from rtx * to
10269         rtx_insn **.
10270         (struct dep_replacement): Strenghten field "insn" from rtx to
10271         rtx_insn *.
10272         (struct deps_desc): Likewise for fields "last_debug_insn",
10273         "last_args_size".
10274         (struct haifa_sched_info): Likewise for callback field
10275         "can_schedule_ready_p"'s param, for first param of "new_ready"
10276         callback field, for both params of "rank" callback field, for
10277         first field of "print_insn" callback field (with a const), for
10278         both params of "contributes_to_priority" callback, for param
10279         of "insn_finishes_block_p" callback, for fields "prev_head",
10280         "next_tail", "head", "tail", for first param of "add_remove_insn"
10281         callback, for first param of "begin_schedule_ready" callback, for
10282         both params of "begin_move_insn" callback, and for second param
10283         of "advance_target_bb" callback.
10284         (add_dependence): Likewise for params 1 and 2.
10285         (sched_analyze): Likewise for params 2 and 3.
10286         (deps_analyze_insn): Likewise for param 2.
10287         (ready_element): Likewise for return type.
10288         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10289         (try_ready): Strenghten param from rtx to rtx_insn *.
10290         (sched_emit_insn): Likewise for return type.
10291         (record_delay_slot_pair): Likewise for params 1 and 2.
10292         (add_delay_dependencies): Likewise for param.
10293         (contributes_to_priority): Likewise for both params.
10294         (find_modifiable_mems): Likewise.
10296         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
10297         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
10298         "first_older_only_insn" from rtx to rtx_insn *.
10299         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
10300         rtx_insn **.
10302         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
10303         "last_scheduled_iter0" from rtx to rtx_insn *.
10304         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
10305         (c6x_sched_reorder_1): Strengthen param "ready" and locals
10306         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
10307         "insn" from rtx to rtx_insn *.
10308         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
10309         rtx_insn **.
10310         (c6x_sched_reorder2): Strengthen param "ready" and locals
10311         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10312         "insn" from rtx to rtx_insn *.
10313         (c6x_variable_issue):  Add a checked cast when assigning from insn
10314         to ss.last_scheduled_iter0.
10315         (split_delayed_branch): Strengthen param "insn" and local "i1"
10316         from rtx to rtx_insn *.
10317         (split_delayed_nonbranch): Likewise.
10318         (undo_split_delayed_nonbranch): Likewise for local "insn".
10319         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
10320         "entry_after", "end_packet", "head_insn", "tail_insn",
10321         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
10322         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
10323         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
10324         but add a checked cast on loop->start_label.  Consolidate calls to
10325         avoid assigning result of gen_spkernel to "insn", now an
10326         rtx_insn *.
10328         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
10329         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
10330         rtx to rtx_insn *.
10331         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
10332         rtx_insn **.  Strengthen locals "top", "next" from rtx to
10333         rtx_insn *.
10334         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
10335         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
10336         (add_parameter_dependencies): Strengthen params "call", "head" and
10337         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
10338         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
10339         (add_dependee_for_func_arg): Likewise for param "arg" and local
10340         "insn".
10341         (ix86_dependencies_evaluation_hook): Likewise for params "head",
10342         "tail" and locals "insn", "first_arg".
10344         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
10345         for params "head", "tail" and locals "insn", "next", "next_tail".
10346         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
10347         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
10348         "insn", "lowest", "highest" from rtx to rtx_insn *.
10349         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
10350         rtx_insn **.
10351         (ia64_sched_reorder2): Likewise.
10353         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
10354         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
10355         from rtx * to rtx_insn **.
10356         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
10357         rtx_insn **.
10358         (mep_print_sched_insn): Strengthen param "insn" from rtx to
10359         rtx_insn *.
10360         (mep_sched_reorder): Strengthen param "ready" from rtx * to
10361         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
10362         to rtx_insn *.
10364         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
10365         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
10366         to rtx_insn *.
10367         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
10368         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
10369         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
10370         rtx_insn **.
10371         (vr4130_reorder): Likewise.
10372         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
10373         rtx to rtx_insn *.
10374         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
10375         rtx_insn **.
10376         (mips_sched_reorder): Likewise.
10377         (mips_sched_reorder2): Likewise.
10379         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
10381         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
10382         Strengthen local "tmp" from rtx to rtx_insn *.
10383         (rs6000_sched_reorder2): Likewise.
10385         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
10386         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
10387         (s390_sched_reorder): Strengthen param "ready" from rtx * to
10388         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
10390         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
10391         "tmp2" from rtx to rtx_insn *.
10392         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
10393         Strengthen local "insn" from rtx to rtx_insn *.
10394         (ready_reorder): Strengthen param "ready" from rtx * to
10395         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
10396         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
10397         (sh_reorder2): Likewise.
10399         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
10400         local "insn" from rtx to rtx_insn *.
10402         * haifa-sched.c (note_list): Strengthen this variable from rtx to
10403         rtx_insn *.
10404         (scheduled_insns): Strengthen this variable from vec<rtx> to
10405         vec<rtx_insn *>.
10406         (set_modulo_params): Likewise for locals "i1", "i2".
10407         (record_delay_slot_pair): Likewise for params "i1", "i2".
10408         (add_delay_dependencies): Likewise for param "insn".
10409         (cond_clobbered_p): Likewise.
10410         (recompute_todo_spec): Likewise for local "prev".
10411         (last_scheduled_insn): Likewise for this variable.
10412         (nonscheduled_insns_begin): Likewise.
10413         (model_set_excess_costs): Strengthen param "insns" from rtx * to
10414         rtx_insn **.
10415         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
10416         rtx_insn *.
10417         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
10418         Strengthen local "insn" from rtx to rtx_insn *.
10419         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
10420         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10421         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
10422         (ready_remove_first): Likewise for return type and local "t".
10423         (ready_element): Likewise for return type.
10424         (ready_remove): Likewise for return type and local "t".
10425         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
10426         (check_clobbered_conditions): Strengthen local "x" from rtx to
10427         rtx_insn *, adding a checked cast.
10428         (schedule_insn): Likewise for param "insn".
10429         (remove_notes): Likewise for params "head", "tail" and locals
10430         "next_tail", "insn", "next".
10431         (struct haifa_saved_data): Likewise for fields
10432         "last_scheduled_insn", "nonscheduled_insns_begin".
10433         (save_backtrack_point): Update for change to field "vec" of
10434         struct ready_list.
10435         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
10436         rtx_insn **.
10437         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
10438         from rtx to rtx_insn *
10439         (resolve_dependencies): Strengthen param "insn" from rtx to
10440         rtx_insn *
10441         (restore_other_notes): Likewise for return type, for param "head"
10442         and local "note_head".
10443         (undo_all_replacements): Likewise for local "insn".
10444         (first_nonscheduled_insn): Likewise for return type and local "insn".
10445         (queue_to_ready): Likewise for local "insn", adding checked casts.
10446         (early_queue_to_ready): Likewise for local "insn".
10447         (debug_ready_list_1): Strengthen local "p" from rtx * to
10448         rtx_insn **.
10449         (move_insn): Strengthen param "insn" and local "note" from rtx to
10450         rtx_insn *
10451         (insn_finishes_cycle_p): Likewise for param "insn".
10452         (max_issue): Likewise for local "insn".
10453         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
10454         to rtx_insn **.
10455         (commit_schedule): Strengthen param "prev_head" and local "insn"
10456         from rtx to rtx_insn *
10457         (prune_ready_list): Likewise for local "insn".
10458         (schedule_block): Likewise for locals "prev_head", "head", "tail",
10459         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
10460         (set_priorities): Likewise for local "prev_head".
10461         (try_ready): Likewise for param "next".
10462         (fix_tick_ready): Likewise.
10463         (change_queue_index): Likewise.
10464         (sched_extend_ready_list): Update for change to field "vec" of
10465         struct ready_list.
10466         (generate_recovery_code): Strengthen param "insn" from rtx to
10467         rtx_insn *.
10468         (begin_speculative_block): Likewise.
10469         (create_check_block_twin): Likewise for param "insn" and locals
10470         "label", "check", "twin".  Introduce local "check_pat" to avoid
10471         "check" being used as a plain rtx before being used as an insn.
10472         (fix_recovery_deps): Add a checked cast to rtx_insn * when
10473         extracting elements from ready_list.
10474         (sched_remove_insn): Strengthen param "insn" from rtx to
10475         rtx_insn *.
10476         (sched_emit_insn): Likewise for return type.
10477         (ready_remove_first_dispatch): Likewise for return type and local
10478         "insn".
10480         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
10482         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
10483         const rtx_insn *.
10485         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
10486         from rtx to rtx_insn *.
10487         (add_dependence_list): Likewise for param "insn".  Add a checked
10488         cast.
10489         (add_dependence_list_and_free): Strengthen param "insn" from rtx
10490         to rtx_insn *.  Strengthen param "list_p" from rtx * to
10491         rtx_insn **.
10492         (chain_to_prev_insn): Strengthen param "insn" and locals
10493         "prec_nonnote", "i" from rtx to rtx_insn *.
10494         (flush_pending_lists): Likewise for param "insn".
10495         (cur_insn): Likewise for this variable.
10496         (haifa_start_insn): Add a checked cast.
10497         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
10498         (sched_analyze_reg): Likewise for param "insn".
10499         (sched_analyze_1): Likewise.
10500         (sched_analyze_2): Likewise.  Add checked casts.
10501         (sched_analyze_insn): Likewise.  Also for local "prev".
10502         (deps_analyze_insn): Likewise for param "insn".
10503         (sched_analyze): Likewise for params "head", "tail" and local "insn".
10504         (add_dependence_1): Likewise for params "insn", "elem".
10505         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
10506         (parse_add_or_inc): Likewise for param "insn".
10507         (find_inc): Likewise for local "inc_cand".
10508         (find_modifiable_mems): Likewise for params "head", "tail" and
10509         locals "insn", "next_tail".
10511         * sched-ebb.c (init_ready_list): Likewise for local "insn".
10512         (begin_schedule_ready): Likewise for param "insn".
10513         (begin_move_insn): Likewise for params "insn" and "last".
10514         (ebb_print_insn): Strengthen param "insn" from const_rtx to
10515         const rtx_insn *.
10516         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
10517         (ebb_contributes_to_priority): Likewise for params "next", "insn".
10518         (ebb_add_remove_insn): Likewise for param "insn".
10519         (advance_target_bb): Likewise.
10521         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
10522         "insn".
10523         (check_live): Likewise for param "insn".
10524         (init_ready_list): Likewise for local "insn".
10525         (can_schedule_ready_p): Likewise for param "insn".
10526         (begin_schedule_ready): Likewise.
10527         (new_ready): Likewise for param "next".
10528         (rgn_print_insn): Likewise for param "insn".
10529         (rgn_rank): Likewise for params "insn1", "insn2".
10530         (contributes_to_priority): Likewise for params "next", "insn".
10531         (rgn_insn_finishes_block_p): Likewise for param "insn".
10532         (add_branch_dependences): Likewise for params "head", "tail" and
10533         locals "insn", "last".
10534         (rgn_add_remove_insn): Likewise for param "insn".
10535         (advance_target_bb): Likewise.
10537         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
10538         const_rtx to const rtx_insn *.
10540         * sel-sched-dump.h (sel_print_insn): Likewise.
10542         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
10543         (deps_init_id): Likewise.
10545         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10546         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10547         rtx_insn **.
10549 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10551         * output.h (final_start_function): Strengthen param 1 from rtx to
10552         rtx_insn *.
10554         * final.c (final_start_function): Likewise, renaming back from
10555         "uncast_first" to "first", and dropping the checked cast from rtx
10556         to rtx_insn *.
10558 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10560         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10561         * final.c (final): Likewise.  Rename param back from
10562         "uncast_first" to "first" and eliminate the checked cast from rtx
10563         to rtx_insn *.
10565 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10567         * output.h (shorten_branches): Strengthen param from rtx to
10568         rtx_insn *.
10570         * final.c (shorten_branches): Likewise, renaming param back from
10571         "uncast_first" to "first", and dropping the checked cast from rtx
10572         to rtx_insn *.
10574         * genattr.c (gen_attr): Likewise when writing out the prototype of
10575         shorten_branches.
10577 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10579         * sched-int.h (struct haifa_sched_info): Strengthen fields
10580         "prev_head" and "next_tail" from rtx to rtx_insn *.
10582 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10584         * rtl.h (rtx_jump_table_data::get_labels): New method.
10585         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10586         with use of the new rtx_jump_table_data::get_labels method.
10587         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10588         to rtx_jump_table_data *.  Simplify by using get_labels method.
10589         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10590         a dyn_cast, introducing local "table", using it to replace
10591         label-lookup logic with a get_labels method call.
10592         (patch_jump_insn): Simplify using get_labels method.
10593         * dwarf2cfi.c (create_trace_edges): Likewise.
10594         * rtlanal.c (label_is_jump_target_p): Likewise.
10596 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10598         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10599         to rtx_insn *.
10601         * emit-rtl.c (unshare_all_rtl_1): Likewise.
10602         (unshare_all_rtl_again): Likewise, also for local "p".
10604 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10606         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10607         to rtx_insn *.
10608         * cfgrtl.c (delete_insn_and_edges): Likewise.
10610 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10612         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10613         from rtx to rtx_insn *.
10615         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10617 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10619         * function.c (thread_prologue_and_epilogue_insns): Likewise for
10620         locals "returnjump", "epilogue_end", "insn", "next".
10622         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10623         "returnjump" from rtx * to rtx_insn **.
10624         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10626 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10628         * basic-block.h (struct edge_def). Strengthen "r" within
10629         union edge_def_insns from rtx to rtx_insn *.
10631         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10632         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
10633         rtx_insn *.
10634         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10635         from rtx to rtx_insn *.
10636         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10637         rtx_insn *.
10638         * postreload-gcse.c (reg_killed_on_edge): Likewise.
10639         (reg_used_on_edge): Likewise.
10640         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
10641         (gt_pch_nx): New overload for rtx_insn *&.
10642         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
10643         from rtx to rtx_insn *.
10645 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10647         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
10648         from rtx to rtx_insn *.
10649         (BB_FOOTER): Replace function with access macro.
10650         (SET_BB_FOOTER): Delete.
10652         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
10653         with BB_FOOTER.
10654         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10655         (emit_barrier_after_bb): Likewise.
10656         (record_effective_endpoints): Likewise.
10657         (relink_block_chain): Likewise.
10658         (fixup_fallthru_exit_predecessor): Likewise.
10659         (cfg_layout_duplicate_bb): Likewise.
10660         (cfg_layout_split_block): Likewise.
10661         (cfg_layout_delete_block): Likewise.
10662         (cfg_layout_merge_blocks): Likewise.
10663         (BB_FOOTER): Delete function.
10664         (SET_BB_FOOTER): Delete function.
10665         * combine.c (update_cfg_for_uncondjump): Replace uses of
10666         SET_BB_FOOTER with BB_FOOTER.
10668 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10670         * except.h (struct eh_landing_pad_d): Strengthen field
10671         "landing_pad" from rtx to rtx_code_label *.
10673         * except.c (sjlj_emit_dispatch_table): Likewise for param
10674         "dispatch_label"
10675         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10677 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10679         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10680         first param from rtx to rtx_insn *.
10681         * config/xtensa/xtensa.c (struct machine_function): Likewise for
10682         field "set_frame_ptr_insn".
10683         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10684         "csend" from rtx to rtx_code_label *.
10685         (xtensa_expand_atomic): Likewise for local "csloop".
10686         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
10687         rtx_insn *.
10688         (xtensa_call_tls_desc): Likewise for return type and locals
10689         "call_insn", "insns".
10690         (xtensa_legitimize_tls_address): Likewise for local "insns".
10691         (xtensa_expand_prologue): Likewise for locals "insn", "first".
10693 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10695         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
10696         first param from rtx to rtx_insn *.
10697         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
10698         "insn".
10700 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10702         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
10703         Strengthen param 1 from rtx to rtx_insn *.
10704         (tilepro_output_cbranch): Likewise.
10705         (tilepro_adjust_insn_length): Likewise.
10706         (tilepro_final_prescan_insn): Likewise for sole param.
10708         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
10709         Likewise for local "last".
10710         (cbranch_predicted_p): Likewise for param "insn".
10711         (tilepro_output_simple_cbranch_with_opcode): Likewise.
10712         (tilepro_output_cbranch_with_opcode): Likewise.
10713         (tilepro_output_cbranch): Likewise.
10714         (frame_emit_load): Likewise for return type and locals "seq",
10715         "insn".
10716         (emit_sp_adjust): Likewise for return type and local "insn".
10717         (tilepro_expand_epilogue): Likewise for locals "last_insn",
10718         "insn".
10719         (tilepro_adjust_insn_length): Likewise for param "insn".
10720         (next_insn_to_bundle): Likewise for return type and params
10721         "r", "end".
10722         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
10723         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
10724         local "new_insns".
10725         (match_addli_pcrel): Likewise for param "insn".
10726         (replace_addli_pcrel): Likewise.
10727         (match_auli_pcrel): Likewise.
10728         (replace_auli_pcrel): Likewise.
10729         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
10730         "next_insn".
10731         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10732         "queue", "next_queue", "prev".
10733         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
10734         (tilepro_final_prescan_insn): Likewise for param "insn".
10736 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10738         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
10739         Strengthen param 1 from rtx to rtx_insn *.
10740         (tilegx_output_cbranch): Likewise.
10741         (tilegx_adjust_insn_length): Likewise.
10742         (tilegx_final_prescan_insn): Likewise for sole param.
10744         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
10745         or local "last".
10746         (cbranch_predicted_p): Likewise for param "insn".
10747         (tilegx_output_simple_cbranch_with_opcode): Likewise.
10748         (tilegx_output_cbranch_with_opcode): Likewise.
10749         (tilegx_output_cbranch): Likewise.
10750         (frame_emit_load): Likewise for return type.
10751         (set_frame_related_p): Likewise for locals "seq", "insn".
10752         (emit_sp_adjust): Likewise for return type, and for local "insn".
10753         Introduce local "pat" for use in place of "insn" where the latter
10754         isn't an instruction.
10755         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
10756         from rtx to rtx_insn *.
10757         (tilegx_adjust_insn_length): Likewise for param "insn".
10758         (next_insn_to_bundle): Likewise for return type and params "r" and
10759         "end".
10760         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
10761         "end".
10762         (replace_insns): Likewise for params "old_insn", "new_insns".
10763         (replace_mov_pcrel_step1): Likewise for param "insn" and local
10764         "new_insns".
10765         (replace_mov_pcrel_step2): Likewise.
10766         (replace_mov_pcrel_step3): Likewise.
10767         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
10768         "next_insn".
10769         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10770         "queue", "next_queue", "prev".
10771         (tilegx_output_mi_thunk): Likewise for local "insn".
10772         (tilegx_final_prescan_insn): Likewise for param "insn".
10774 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10776         * config/spu/spu.c (frame_emit_store): Strengthen return type from
10777         rtx to rtx_insn *.
10778         (frame_emit_load): Likewise.
10779         (frame_emit_add_imm): Likewise, also for local "insn".
10780         (spu_expand_prologue): Likewise for local "insn".
10781         (struct spu_bb_info): Likewise for field "prop_jump".
10782         (emit_nop_for_insn): Likewise for param "insn" and local
10783         "new_insn".
10784         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
10785         "hbr_insn".
10786         (spu_emit_branch_hint): Likewise for params "before", "branch" and
10787         locals "hint", "insn".
10788         (get_branch_target): Likewise for param "branch".
10789         (insn_clobbers_hbr): Likewise for param "insn".
10790         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
10791         locals "insn", "before_4", "before_16".
10792         (insert_hbrp): Likewise for local "insn".
10793         (spu_machine_dependent_reorg): Likewise for locals "branch",
10794         "insn", "next", "bbend".
10795         (uses_ls_unit): Likewise for param "insn".
10796         (get_pipe): Likewise.
10797         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
10798         introducing a checked cast.
10799         (spu_sched_adjust_cost): Likewise for params "insn" and
10800         "dep_insn".
10801         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
10802         (spu_sms_res_mii): Likewise.
10804 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10806         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
10807         from rtx to rtx_insn *.
10808         (output_cbranch): Likewise for param 6.
10809         (output_return): Likewise for param 1.
10810         (output_sibcall): Likewise.
10811         (output_v8plus_shift): Likewise.
10812         (output_v8plus_mult): Likewise.
10813         (output_v9branch): Likewise for param 7.
10814         (output_cbcond):  Likewise for param 3.
10816         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
10817         for local "insn".
10818         (sparc_legitimize_pic_address): Likewise.
10819         (sparc_emit_call_insn): Likewise.
10820         (emit_save_or_restore_regs): Likewise.
10821         (emit_window_save): Likewise for return type and local "insn".
10822         (sparc_expand_prologue): Likewise for local "insn".
10823         (sparc_flat_expand_prologue): Likewise.
10824         (output_return): Likewise for param "insn".
10825         (output_sibcall): Likewise for param "insn" and local "delay".
10826         (output_ubranch): Likewise for param "insn".
10827         (output_cbranch): Likewise.
10828         (output_cbcond): Likewise.
10829         (output_v9branch): Likewise.
10830         (output_v8plus_shift): Likewise.
10831         (sparc_output_mi_thunk): Likewise for local "insn".
10832         (get_some_local_dynamic_name): Likewise.
10833         (output_v8plus_mult): Likewise for param "insn".
10835 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10837         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
10838         from rtx to rtx_insn *.
10839         (output_branchy_insn): Likewise for param 3.
10840         (output_far_jump): Likewise for param 1.
10841         (final_prescan_insn): Likewise.
10842         (sh_insn_length_adjustment): Likewise for sole param.
10844         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
10845         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
10846         rtx_code_label *.
10847         (sh_emit_compare_and_set): Likewise for local "lab".
10848         (output_far_jump): Strengthen param "insn" and local "prev" from
10849         rtx to rtx_insn *.
10850         (output_branchy_insn): Likewise for param "insn" and local
10851         "next_insn".
10852         (output_ieee_ccmpeq): Likewise for param "insn".
10853         (struct label_ref_list_d): Strengthen field "label" from rtx to
10854         rtx_code_label *.
10855         (pool_node): Likewise.
10856         (pool_window_label): Likewise for this global.
10857         (add_constant): Likewise for return type and locals "lab", "new_rtx".
10858         (dump_table): Strengthen params "start", "barrier" and local
10859         "scan" from rtx to rtx_insn *.
10860         (broken_move): Likewise for param "insn".
10861         (untangle_mova): Likewise for params "first_mova" and "new_mova".
10862         Strengthen param "first_mova" from rtx * to rtx_insn **.
10863         (mova_p): Likewise for param "insn".
10864         (fixup_mova): Likewise for param "mova".
10865         (find_barrier): Likewise for return type, params "mova" and
10866         "from", and locals "barrier_before_mova", "found_barrier",
10867         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
10868         "label" from rtx to rtx_code_label *.
10869         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
10870         rtx to rtx_insn *.
10871         (sh_reorg): Likewise for locals "link", "scan", "barrier".
10872         (split_branches): Likewise for param "first" and local "insn".
10873         (final_prescan_insn): Likewise for param "insn".
10874         (sequence_insn_p): Likewise for locals "prev", "next".
10875         (sh_insn_length_adjustment): Likewise for param "insn".
10876         (sh_can_redirect_branch): Likewise for local "insn".
10877         (find_r0_life_regions): Likewise for locals "end", "insn".
10878         (sh_output_mi_thunk): Likewise for local "insns".
10880 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10882         * config/score/score.c (score_output_mi_thunk): Strengthen local
10883         "insn" from rtx to rtx_insn *.
10884         (score_prologue): Likewise.
10886 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10888         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
10889         1 from rtx to rtx_insn *.
10890         (s390_emit_jump): Likewise for return type.
10891         (s390_emit_call): Likewise.
10892         (s390_load_got): Likewise.
10894         * config/s390/s390.c (last_scheduled_insn): Likewise for this
10895         variable.
10896         (s390_match_ccmode): Likewise for param "insn".
10897         (s390_emit_jump): Likewise for return type.
10898         (s390_split_branches): Likewise for local "label".
10899         (struct constant): Strengthen field "label" from rtx to
10900         rtx_code_label *.
10901         (struct constant_pool): Likewise for field "label".  Strengthen
10902         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
10903         rtx_insn *.
10904         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
10905         insns.
10906         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
10907         (s390_end_pool): Likewise.
10908         (s390_dump_pool): Likewise for local "insn".
10909         (s390_mainpool_start): Likewise.
10910         (s390_chunkify_start): Likewise.
10911         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
10912         with insns.  Strengthen locals "label", "jump", "barrier", "next",
10913         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
10914         (s390_chunkify_finish): Strengthen local "insn" from rtx to
10915         rtx_insn *.
10916         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
10917         "jump", "label", "next_insn".
10918         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
10919         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
10920         "tbegin_insn".
10921         (s390_load_got): Likewise for return type and local "insns".
10922         (s390_save_gprs_to_fprs): Likewise for local "insn".
10923         (s390_restore_gprs_from_fprs): Likewise.
10924         (pass_s390_early_mach::execute): Likewise.
10925         (s390_emit_prologue): Likewise for local "insns".
10926         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
10927         rtx_code_label *.
10928         (s390_emit_call): Strengthen return type and local "insn" from
10929         rtx to rtx_insn *.
10930         (s390_emit_tpf_eh_return): Likewise for local "insn".
10931         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
10932         "next_insn", introducing locals "s_pat", "rpat" to allow this.
10933         (s390_fix_long_loop_prediction): Likewise for param "insn" and
10934         local "cur_insn".
10935         (s390_non_addr_reg_read_p): Likewise for param "insn".
10936         (find_cond_jump): Likewise for return type and param "insn".
10937         (s390_swap_cmp): Likewise for param "insn".
10938         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
10939         "prev_insn", "next_insn".
10940         (s390_reorg): Likewise for locals "insn", "target".
10941         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
10942         (s390_sched_variable_issue): For now, rename param "insn" to
10943         "uncast_insn", introducing a checked cast.
10944         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
10945         insn.
10946         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
10947         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
10949 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10951         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
10952         param from rtx to rtx_insn *.
10953         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
10955 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10957         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
10958         4 from rtx to rtx_insn *.
10959         (rs6000_final_prescan_insn): Likewise for first param.
10960         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
10961         local "insn".
10962         (rs6000_get_some_local_dynamic_name): Likewise.
10963         (output_cbranch): Likewise for param "insn".
10964         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
10965         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
10966         (rs6000_emit_allocate_stack): Likewise for local "insn".
10967         (load_cr_save): Likewise.
10968         (restore_saved_cr): Likewise.
10969         (restore_saved_lr): Likewise.
10970         (emit_cfa_restores): Likewise.
10971         (rs6000_output_function_epilogue): Likewise for locals "insn" and
10972         "deleted_debug_label".
10973         (rs6000_output_mi_thunk): Likewise for local "insn".
10974         (rs6000_final_prescan_insn): Likewise for param "insn".
10976 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10978         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
10979         Strengthen param "insn" from rtx to rtx_insn *.
10980         * config/picochip/picochip.c (picochip_current_prescan_insn):
10981         Likewise for this variable.
10982         (picochip_final_prescan_insn): Likewise for param "insn".
10984 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10986         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
10987         from rtx to rtx_insn *.
10988         (pa_output_indirect_call): Likewise.
10989         (pa_adjust_insn_length): Likewise.
10990         (pa_attr_length_millicode_call): Likewise.
10991         (pa_attr_length_call): Likewise.
10992         (pa_attr_length_indirect_call): Likewise.
10994         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
10995         "insn".
10996         (pa_attr_length_millicode_call): Likewise.
10997         (pa_attr_length_call): Likewise.
10998         (pa_output_call): Likewise.
10999         (pa_attr_length_indirect_call): Likewise.
11000         (pa_output_indirect_call): Likewise.
11002 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11004         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11005         Strengthen first param from rtx to rtx_insn *.
11006         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11007         param "insn".
11009 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11011         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11012         type from rtx to rtx_insn *.
11013         (mips_expand_call): Likewise.
11014         (mips_adjust_insn_length): Likewise for first param.
11015         (mips_output_conditional_branch): Likewise.
11016         (mips_output_order_conditional_branch): Likewise.
11017         (mips_final_prescan_insn): Likewise.
11019         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11020         rtx_insn * for the SEQUENCE case.
11021         (SEQ_END): Likewise.
11022         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11023         (mips_emit_call_insn): Likewise, also for local "insn".
11024         (mips16_gp_pseudo_reg): Likewise for local "scan".
11025         (mips16_build_call_stub): Likewise for return type and for local
11026         "insn".  Introduce a new local "pattern" so that "insn" can indeed
11027         be an insn.
11028         (mips_expand_call): Strengthen return type and local "insn" from
11029         rtx to rtx_insn *.
11030         (mips_block_move_loop): Strengthen local "label" from rtx to
11031         rtx_code_label *.
11032         (mips_expand_synci_loop): Likewise for locals "label",
11033         "end_label".
11034         (mips_set_frame_expr): Strengthen local "insn" from rtx to
11035         rtx_insn *.
11036         (mips16e_collect_argument_saves): Likewise for locals "insn",
11037         "next".
11038         (mips_find_gp_ref): Likewise for param of callback for "pred"
11039         param, and for local "insn".
11040         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11041         (mips_insn_has_flexible_gp_ref_p): Likewise.
11042         (mips_epilogue_emit_cfa_restores): Likewise for return type and
11043         local "insn".
11044         (mips_epilogue_set_cfa): Likewise for local "insn".
11045         (mips_expand_epilogue): Likewise.
11046         (mips_adjust_insn_length): Likewise for param "insn".
11047         (mips_output_conditional_branch): Likewise.
11048         (mips_output_order_conditional_branch): Likewise.
11049         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11050         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11051         "falu2_turn_enabled_insn".
11052         (mips_builtin_branch_and_move): Strengthen locals "true_label",
11053         "done_label" from rtx to rtx_code_label *.
11054         (struct mips16_constant): Likewise for field "label".
11055         (mips16_add_constant): Likewise for return type.
11056         (mips16_emit_constants_1): Strengthen return type and param "insn"
11057         from rtx to rtx_insn *.
11058         (mips16_emit_constants): Likewise for param "insn".
11059         (mips16_insn_length): Likewise.
11060         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11061         to rtx_code_label *.
11062         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11063         from rtx to rtx_insn *.
11064         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11065         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
11066         (r10k_simplify_address): Strengthen param "insn" and local
11067         "def_insn" from rtx to rtx_insn *.
11068         (r10k_safe_address_p): Strengthen param "insn" from rtx to
11069         rtx_insn *.
11070         (r10k_needs_protection_p_1): Update target type of cast of data
11071         from to rtx to rtx_insn *.
11072         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11073         rtx * to rtx_insn **.
11074         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11075         rtx_insn *.
11076         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11077         (mips_call_expr_from_insn): Likewise for param "insn".
11078         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11079         (mips_find_pic_call_symbol): Likewise for param "insn".
11080         (mips_annotate_pic_calls): Likewise for local "insn".
11081         (mips_sim_insn): Likewise for this variable.
11082         (struct mips_sim): Likewise for field "insn" within elements of
11083         last_set array.
11084         (mips_sim_wait_reg): Likewise for param "insn".
11085         (mips_sim_wait_regs): Likewise.
11086         (mips_sim_wait_units): Likewise.
11087         (mips_sim_wait_insn): Likewise.
11088         (mips_sim_issue_insn): Likewise.
11089         (mips_sim_finish_insn): Likewise.
11090         (mips_seq_time): Likewise for param "seq" and local "insn".
11091         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11092         locals "first", "second".
11093         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11094         "last", "last2", "next".
11095         (mips_avoid_hazard): Likewise for params "after", "insn".
11096         (mips_reorg_process_insns): Likewise for locals "insn",
11097         "last_insn", "subinsn", "next_insn".
11098         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11099         (mips16_split_long_branches): Likewise for locals "insn" "jump",
11100         "jump_sequence".
11101         (mips_output_mi_thunk): Likewise for local "insn".
11102         (mips_final_prescan_insn): Likewise for param "insn".
11104 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11106         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11107         Strengthen return type and local "insns" from rtx to rtx_insn *.
11108         (microblaze_legitimize_tls_address): Likewise for local "insns".
11109         (microblaze_block_move_loop): Strengthen local "label" from rtx
11110         to rtx_code_label *.
11111         (microblaze_expand_prologue): Strengthen two locals named "insn"
11112         from rtx to rtx_insn *.
11113         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11114         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11115         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
11116         to rtx_code_label *.
11118 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11120         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11121         param from rtx to rtx_insn *.
11122         (mep_reuse_lo): Likewise for third param.
11123         (mep_use_post_modify_p): Likewise for first param.
11124         (mep_core_address_length): Likewise.
11125         (mep_cop_address_length): Likewise.
11126         (mep_final_prescan_insn): Likewise.
11127         (mep_store_data_bypass_p): Likewise for both params.
11128         (mep_mul_hilo_bypass_p): Likewise.
11129         (mep_ipipe_ldc_p): Likewise for param.
11131         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11132         (mep_rewrite_mult): Likewise.
11133         (mep_rewrite_mulsi3): Likewise.
11134         (mep_rewrite_maddsi3): Likewise.
11135         (mep_reuse_lo_p_1): Likewise.
11136         (mep_reuse_lo_p): Likewise.
11137         (mep_frame_expr): Likewise.
11138         (mep_make_parallel): Likewise for both params.
11139         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11140         local "insn".
11141         (mep_use_post_modify_p): Likewise for param "insn".
11142         (mep_core_address_length): Likewise.
11143         (mep_cop_address_length): Likewise.
11144         (mep_reg_set_in_function): Likewise for local "insn".
11145         (mep_asm_without_operands_p): Likewise.
11146         (F): Likewise for return type and param "x".
11147         (add_constant): Likewise for local "insn".
11148         (maybe_dead_move): Likewise for return type and local "insn".
11149         (mep_expand_prologue): Likewise for local "insn".
11150         (mep_final_prescan_insn): Likewise for param "insn".
11151         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11152         "next", "follow", "x".
11153         (mep_insert_repeat_label_last): Likewise for return type, param
11154         "last_insn", and locals "next", "prev".  Strengthen param "label"
11155         from rtx to rtx_code_label *.
11156         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11157         rtx_insn *.
11158         (struct mep_doloop_end): Likewise for fields "insn" and
11159         "fallthrough".
11160         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
11161         Strengthen local "repeat_label" from rtx to rtx_code_label *.
11162         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
11163         rtx_insn *.
11164         (mep_invert_branch): Likewise for params "insn" and "after".
11165         (mep_reorg_erepeat): Likewise for param "insns" and locals
11166         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
11167         "l" from rtx to rtx_code_label *.
11168         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
11169         from rtx to rtx_insn *.
11170         (mep_reorg_addcombine): Likewise for param "insns" and locals
11171         "i", "n".
11172         (add_sp_insn_p): Likewise for param "insn".
11173         (mep_reorg_noframe): Likewise for param "insns" and locals
11174         "start_frame_insn", "end_frame_insn", "next".
11175         (mep_reorg): Likewise for local "insns".
11176         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
11177         cast.
11178         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
11179         (mep_mul_hilo_bypass_p): Likewise.
11180         (mep_ipipe_ldc_p): Likewise for param "insn".
11181         (mep_make_bundle): Likewise for return type, param "cop" and local
11182         "insn", splitting out the latter into a new local "seq" for when it
11183         is a SEQUENCE rather than an insn.
11184         (core_insn_p): Likewise for param "insn".
11185         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
11186         "last", "first", "note", "prev", "core_insn".
11188 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11190         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
11191         rtx to rtx_insn *.
11192         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
11193         (m68k_final_prescan_insn): Likewise for first param.
11195         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11196         (m68k_set_frame_related): Likewise for param "insn".
11197         (output_btst): Likewise for param "insn".
11198         (m68k_final_prescan_insn): Likewise.
11199         (m68k_move_to_reg): Likewise for local "insn".
11200         (m68k_call_tls_get_addr): Likewise for local "insns".
11201         (m68k_call_m68k_read_tp): Likewise.
11202         (strict_low_part_peephole_ok): Likewise for param "first_insn".
11203         (m68k_output_mi_thunk): Likewise for local "insn".
11205 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11207         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11208         first param from rtx to rtx_insn *.
11209         (iq2000_adjust_insn_length): Likewise.
11210         (iq2000_output_conditional_branch): Likewise.
11211         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11212         "insn" and local "nop_insn".
11213         (iq2000_annotate_frame_insn): Likewise for param "insn".
11214         (iq2000_expand_prologue): Likewise for both locals "insn".
11215         (iq2000_adjust_insn_length): Likewise for param "insn".
11216         (iq2000_output_conditional_branch): Likewise.
11218 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11220         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11221         "insns" from rtx to rtx_insn *.
11222         (ia64_emit_cond_move): Likewise for locals "insn", "first".
11223         (struct spill_fill_data): Likewise for field "init_after" and for
11224         elements of array field "prev_insn".
11225         (spill_restore_mem): Likewise for locals "insn", "first".
11226         (do_spill): Likewise for local "insn".
11227         (do_restore): Likewise.
11228         (ia64_expand_prologue): Likewise.
11229         (ia64_expand_epilogue): Likewise.
11230         (emit_insn_group_barriers): Likewise for locals "insn",
11231         "last_label".
11232         (emit_all_insn_group_barriers): Likewise for locals "insn",
11233         "last".
11234         (dfa_stop_insn): Likewise for this global.
11235         (dfa_pre_cycle_insn): Likewise.
11236         (ia64_nop): Likewise.
11237         (final_emit_insn_group_barriers): Likewise for locals "insn",
11238         "last".
11239         (emit_predicate_relation_info): Likewise for locals "head", "n",
11240         "insn", "b", "a".
11241         (ia64_reorg): Likewise for local "insn".
11242         (ia64_output_mi_thunk): Likewise.
11243         (expand_vec_perm_interleave_2): Likewise for local "seq".
11245 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11247         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11248         param 1 "insn" from rtx to rtx_insn *.
11249         (ix86_use_lea_for_mov): Likewise.
11250         (ix86_avoid_lea_for_addr): Likewise.
11251         (ix86_split_lea_for_addr): Likewise.
11252         (ix86_lea_for_add_ok): Likewise.
11253         (ix86_output_call_insn): Likewise.
11255         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11256         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11257         (ix86_output_function_epilogue): Likewise for locals "insn",
11258         "deleted_debug_label".
11259         (legitimize_tls_address): Likewise for local "insn".
11260         (get_some_local_dynamic_name): Likewise.
11261         (increase_distance): Likewise for params "prev", "next".
11262         (distance_non_agu_define_in_bb): Likewise for params "insn",
11263         "start" and locals "prev", "next".
11264         (distance_non_agu_define): Likewise for param "insn".
11265         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11266         locals "next", "prev".
11267         (distance_agu_use): Likewise for param "insn".
11268         (ix86_lea_outperforms): Likewise.
11269         (ix86_ok_to_clobber_flags): Likewise.
11270         (ix86_avoid_lea_for_add): Likewise.
11271         (ix86_use_lea_for_mov): Likewise.
11272         (ix86_avoid_lea_for_addr): Likewise.
11273         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11274         (ix86_split_lea_for_addr): Likewise for param "insn".
11275         (ix86_lea_for_add_ok): Likewise for param "insn".
11276         (ix86_expand_carry_flag_compare): Likewise for local
11277         "compare_seq".
11278         (ix86_expand_int_movcc): Likewise.
11279         (ix86_output_call_insn): Likewise for param "insn".
11280         (ix86_output_call_insn): Likewise for local "i".
11281         (x86_output_mi_thunk): Introduce local "insn", using it in place
11282         of "tmp" when dealing with insns.
11283         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11284         "start".
11285         (ix86_pad_returns): Likewise for locals "ret", "prev".
11286         (ix86_count_insn_bb): Likewise for local "insn".
11287         (ix86_pad_short_function): Likewise for locals "ret", "insn".
11288         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11289         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11290         (expand_vec_perm_interleave2): Likewise for local "seq".
11291         (expand_vec_perm_vperm2f128_vblend): Likewise.
11292         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
11293         call to for_each_rtx with for_each_rtx_in_insn.
11295 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11297         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
11298         "label" from rtx to rtx_code_label *.
11299         (ix86_expand_prologue): Likewise.
11300         (ix86_expand_split_stack_prologue): Likewise for locals "label",
11301         "varargs_label".
11302         (ix86_split_idivmod): Likewise for locals "end_label" and
11303         "qimode_label".
11304         (ix86_expand_branch): Likewise for local "label2".
11305         (ix86_expand_aligntest): Likewise for return type and local "label".
11306         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
11307         "top_label".
11308         (expand_movmem_epilogue): Likewise for the various locals named
11309         "label".
11310         (expand_setmem_epilogue): Likewise.
11311         (expand_small_movmem_or_setmem): Likewise for local "label".
11312         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11313         Strengthen param "done_label" from rtx * to rtx_code_label **.
11314         Strengthen locals "loop_label" and "label" from rtx to
11315         rtx_code_label *.
11316         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11317         Likewise for locals "loop_label", "label".
11318         (ix86_expand_set_or_movmem): Likewise for locals "label",
11319         "jump_around_label", "hot_label".
11320         (ix86_expand_strlensi_unroll_1): Likewise for locals
11321         "align_2_label", align_3_label", "align_4_label", "end_0_label",
11322         "end_2_label".
11323         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
11324         (void ix86_emit_i387_log1p): Likewise for locals "label1",
11325         "label2", "jump_label".
11326         (ix86_expand_sse_compare_and_jump): Likewise for return type and
11327         local "label".
11328         (ix86_expand_lfloorceil): Likewise for local "label".
11329         (ix86_expand_rint): Likewise.
11330         (ix86_expand_floorceildf_32): Likewise.
11331         (ix86_expand_floorceil): Likewise.
11332         (ix86_expand_rounddf_32): Likewise.
11333         (ix86_expand_trunc): Likewise.
11334         (ix86_expand_truncdf_32): Likewise.
11335         (ix86_expand_round): Likewise.
11337 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11339         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
11340         first param from rtx to rtx_insn *.
11341         (h8300_insn_length_from_table): Likewise.
11342         * config/h8300/h8300.c (F): Likewise for return type and param
11343         "x".
11344         (Fpa): Add a checked cast to rtx_insn *.
11345         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
11346         rtx_insn *.
11347         (final_prescan_insn): Likewise for param "insn".
11348         (h8300_binary_length): Likewise.
11349         (h8300_insn_length_from_table): Likewise.
11351 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11353         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
11354         Strengthen first param "insn" from rtx to rtx_insn *.
11356         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
11357         Likewise.
11358         (frame_insn): Likewise for return type.  Introduce local "insn"
11359         for use in place of local "x" for use as an rtx_insn *.
11360         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
11361         (epiphany_expand_prologue): Likewise for local "insn".
11362         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
11363         * config/epiphany/resolve-sw-modes.c
11364         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
11365         "seq".
11367 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11369         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
11370         param from rtx to rtx_insn *.
11371         (c6x_final_prescan_insn): Likewise for first param.
11373         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
11374         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
11375         (c6x_expand_compare): Strengthen local "insns" from rtx to
11376         rtx_insn *.
11377         (c6x_get_unit_specifier): Likewise for param "insn".
11378         (c6x_print_unit_specifier_field): Likewise.
11379         (c6x_final_prescan_insn): Likewise.
11380         (emit_add_sp_const): Likewise for local "insn".
11381         (c6x_expand_prologue): Likewise.
11383 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11385         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
11386         param 1 from rtx to rtx_insn *.
11387         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
11388         the various locals named "insn".
11389         (expand_epilogue_reg_restore): Likewise.
11390         (frame_related_constant_load): Likewise.
11391         (add_to_reg): Likewise.
11392         (emit_link_insn): Likewise.
11393         (do_link): Likewise.
11394         (expand_interrupt_handler_prologue): Likewise.
11395         (branch_dest): Likewise for param "branch".
11396         (asm_conditional_branch): Likewise for param "insn".
11397         (gen_one_bundle): Likewise for elements of param "slot" and local
11398         "t".
11399         (bfin_gen_bundles): Likewise for locals "insn", "next" and
11400         elements of local "slot".
11401         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11402         "queue", "next_queue", "prev".
11403         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
11404         (add_sched_insns_for_speculation): Likewise for local "insn".
11406 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11408         * config/avr/avr-protos.h (output_movqi): Strengthen first param
11409         from rtx to rtx_insn *.
11410         (output_movhi): Likewise.
11411         (output_movsisf): Likewise.
11412         (avr_out_tstsi): Likewise.
11413         (avr_out_tsthi): Likewise.
11414         (avr_out_tstpsi): Likewise.
11415         (avr_out_compare): Likewise.
11416         (avr_out_compare64): Likewise.
11417         (avr_out_movpsi): Likewise.
11418         (ashlqi3_out): Likewise.
11419         (ashlhi3_out): Likewise.
11420         (ashlsi3_out): Likewise.
11421         (ashrqi3_out): Likewise.
11422         (ashrhi3_out): Likewise.
11423         (ashrsi3_out): Likewise.
11424         (lshrqi3_out): Likewise.
11425         (lshrhi3_out): Likewise.
11426         (lshrsi3_out): Likewise.
11427         (avr_out_ashlpsi3): Likewise.
11428         (avr_out_ashrpsi3): Likewise.
11429         (avr_out_lshrpsi3): Likewise.
11430         (avr_out_fract): Likewise.
11431         (avr_out_sbxx_branch): Likewise.
11432         (avr_out_round): Likewise.
11433         (avr_out_xload): Likewise.
11434         (avr_out_movmem): Likewise.
11435         (adjust_insn_length): Likewise.
11436         (avr_out_lpm): Likewise.
11437         (reg_unused_after): Likewise.
11438         (_reg_unused_after): Likewise.
11439         (avr_jump_mode): Likewise for second param.
11440         (jump_over_one_insn): Likewise for first param.
11441         (avr_final_prescan_insn): Likewise.
11442         (out_shift_with_cnt): Likewise for second param.
11444         * config/avr/avr.c (get_sequence_length): Likewise for param
11445         "insns" and local "insn".
11446         (emit_push_byte): Likewise for local "insn".
11447         (emit_push_sfr): Likewise.
11448         (avr_prologue_setup_frame): Likewise for locals "insn",
11449         "fp_plus_insns", "sp_plus_insns".
11450         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
11451         "sp_plus_insns".
11452         (avr_jump_mode): Likewise for param "insn".
11453         (avr_final_prescan_insn): Likewise.
11454         (avr_find_unused_d_reg): Likewise.
11455         (avr_out_lpm_no_lpmx): Likewise.
11456         (avr_out_lpm): Likewise.
11457         (avr_out_xload): Likewise.
11458         (output_movqi): Likewise.
11459         (output_movhi): Likewise.
11460         (out_movqi_r_mr): Likewise.
11461         (out_movhi_r_mr): Likewise.
11462         (out_movsi_r_mr): Likewise.
11463         (out_movsi_mr_r): Likewise.
11464         (output_movsisf): Likewise.
11465         (avr_out_load_psi): Likewise.
11466         (avr_out_store_psi): Likewise.
11467         (avr_out_movpsi): Likewise.
11468         (out_movqi_mr_r): Likewise.
11469         (avr_out_movhi_mr_r_xmega): Likewise.
11470         (out_movhi_mr_r): Likewise.
11471         (compare_condition): Likewise for param "insn" and local "next".
11472         (compare_sign_p): Likewise for param "insn".
11473         (compare_diff_p): Likewise.
11474         (compare_eq_p): Likewise.
11475         (avr_out_compare): Likewise.
11476         (avr_out_compare64): Likewise.
11477         (avr_out_tsthi): Likewise.
11478         (avr_out_tstpsi): Likewise.
11479         (avr_out_tstsi): Likewise.
11480         (out_shift_with_cnt): Likewise.
11481         (ashlqi3_out): Likewise.
11482         (ashlhi3_out): Likewise.
11483         (avr_out_ashlpsi3): Likewise.
11484         (ashlsi3_out): Likewise.
11485         (ashrqi3_out): Likewise.
11486         (ashrhi3_out): Likewise.
11487         (avr_out_ashrpsi3): Likewise.
11488         (ashrsi3_out): Likewise.
11489         (lshrqi3_out): Likewise.
11490         (lshrhi3_out): Likewise.
11491         (avr_out_lshrpsi3): Likewise.
11492         (lshrsi3_out): Likewise.
11493         (avr_out_fract): Likewise.
11494         (avr_out_round): Likewise.
11495         (avr_adjust_insn_length): Likewise.
11496         (reg_unused_after): Likewise.
11497         (_reg_unused_after): Likewise.
11498         (avr_compare_pattern): Likewise.
11499         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
11500         and locals "branch1", "branch2", "insn2", "jump".
11501         (avr_reorg): Likewise for local "insn".
11502         (avr_2word_insn_p): Likewise for param "insn".
11503         (jump_over_one_insn_p): Likewise.
11504         (avr_out_sbxx_branch): Likewise.
11505         (avr_out_movmem): Likewise.
11507 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11509         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
11510         param from rtx to rtx_insn *.
11511         (thumb1_final_prescan_insn): Likewise.
11512         (thumb2_final_prescan_insn): Likewise.
11514         * config/arm/arm.c (emit_set_insn): Strengthen return type from
11515         rtx to rtx_insn *.
11516         (struct minipool_node): Likewise for field "insn".
11517         (dump_minipool): Likewise for param "scan".
11518         (create_fix_barrier): Likewise for local "from".  Strengthen local
11519         "label" from rtx to rtx_code_label *.
11520         (push_minipool_barrier): Strengthen param "insn" from rtx to
11521         rtx_insn *.
11522         (push_minipool_fix): Likewise.
11523         (note_invalid_constants): Likewise.
11524         (thumb2_reorg): Likewise for local "insn".
11525         (arm_reorg): Likewise.
11526         (thumb2_final_prescan_insn): Likewise for param
11527         "insn" and local "first_insn".
11528         (arm_final_prescan_insn): Likewise for param "insn" and locals
11529         "start_insn", "this_insn".
11530         (arm_debugger_arg_offset): Likewise for param "insn".
11531         (thumb1_emit_multi_reg_push): Likewise for return type and local
11532         "insn".
11533         (thumb1_final_prescan_insn): Likewise for param "insn".
11534         (thumb_far_jump_used_p): Likewise for local "insn".
11535         (thumb1_expand_prologue): Likewise.
11536         (arm_expand_epilogue_apcs_frame): Likewise.
11537         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
11538         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
11539         from rtx to rtx_code_label *.
11540         (arm_split_atomic_op): Likewise for local "label".
11541         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
11543 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11545         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11546         first param from rtx to rtx_insn *.
11547         (arc_verify_short): Likewise.
11548         (arc_short_long): Likewise.
11549         (arc_need_delay): Likewise.
11551         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11552         "target_insn".
11553         (arc_ccfsm_advance): Likewise for param "insn" and locals
11554         "start_insn", "this_insn".
11555         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11556         (arc_ccfsm_post_advance): Likewise for param "insn".
11557         (arc_next_active_insn): Likewise for return type and param "insn".
11558         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
11559         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11560         (output_short_suffix): Likewise for local "insn".
11561         (arc_final_prescan_insn): Likewise for param "insn".  Remove
11562         now-redundant checked cast.
11563         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11564         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11565         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
11566         for use where lc_set became an insn.
11567         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11568         rtx to rtx_insn *.
11569         (arc_get_insn_variants): Likewise for local "prev".
11570         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11571         "next".
11572         (arc_predicate_delay_insns): Likewise for local "insn".
11573         (arc_pad_return): Likewise for local "prev".  For now, add a
11574         checked cast when extracting the insn from "final_sequence".
11575         (arc_short_long): Likewise for param "insn".
11576         (arc_need_delay): Likewise for param "insn" and local "next".
11577         (arc_label_align): Likewise for locals "prev", "next".
11579 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11581         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11582         "insn" from rtx to rtx_insn *.
11583         (alpha_gp_save_rtx): Likewise for local "seq".
11584         (alpha_instantiate_decls): Likewise for local "top".
11585         (get_some_local_dynamic_name): Likewise for local "insn".
11586         (alpha_does_function_need_gp): Likewise.
11587         (set_frame_related_p): Likewise for return type and for locals
11588         "seq" and "insn".
11589         (emit_frame_store_1): Likewise for local "insn".
11590         (alpha_expand_prologue): Likewise for locals "insn", "seq".
11591         (alpha_end_function): Likewise for local "insn".
11592         (alpha_output_mi_thunk_osf): Likewise.
11593         (alphaev4_insn_pipe): Likewise for param "insn".
11594         (alphaev5_insn_pipe): Likewise.
11595         (alphaev4_next_group): Likewise for return type and param 1
11596         "insn".
11597         (alphaev5_next_group): Likewise.
11598         (alpha_align_insns_1): Likewise for return type and param 1 of
11599         callback param "next_group", and for locals "i", "next", "prev",
11600         "where", "where2", "insn".
11602 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
11604         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11605         rather than modifying the stmt.
11607 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11609         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11610         cgraph_state conversion.
11612 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11614         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11615         Strengthen local "insns" from rtx to rtx_insn *.
11616         (aarch64_set_frame_expr): Likewise for local "insn".
11617         (aarch64_save_or_restore_fprs): Likewise.
11618         (aarch64_save_or_restore_callee_save_registers): Likewise.
11619         (aarch64_expand_prologue): Likewise.
11620         (aarch64_expand_epilogue): Likewise.
11621         (aarch64_output_mi_thunk): Likewise.
11622         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11623         "label2" from rtx to rtx_code_label *.
11624         (aarch64_split_atomic_op): Likewise for local "label".
11626 2014-08-25  Martin Liska  <mliska@suse.cz>
11628         * cgraph.h (symtab_node):
11629         (bool needed_p (void)): created from decide_is_symbol_needed
11630         (bool referred_to_p (void)): created from referred_to_p
11631         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11632         * cgraph.h (cgraph_node):
11633         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11634         (void expand (void)): created from expand_function
11635         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11636         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11637         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11638         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11639         * cgraph.h (varpool_node):
11640         (static void add (tree decl): created from varpool_add_new_variable
11641         * cgraph.h (cgraph_edge):
11642         void remove (void);
11643         (void remove_caller (void)): created from cgraph_edge_remove_caller
11644         (void remove_callee (void)): created from cgraph_edge_remove_callee
11645         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
11646           created from cgraph_set_call_stmt
11647         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
11648         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
11649         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
11650           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
11651         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
11652           created from cgraph_speculative_call_info
11653         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
11654           int freq_scale, bool update_original)): created from cgraph_clone_edge
11655         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
11656         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
11657         (bool recursive_p (void)): created from cgraph_edge_recursive_p
11658         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11659         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11660         (static void rebuild_references (void)): created from cgraph_rebuild_references
11661         * cgraph.h (symbol_table):
11662         (create_reference): renamed from add_reference
11663         (maybe_create_reference): renamed from maybe_add_reference
11664         (void register_symbol (symtab_node *node)): new function
11665         (void clear_asm_symbols (void)): new function
11666         (void unregister (symtab_node *node)): new function
11667         (void release_symbol (cgraph_node *node, int uid)): new function
11668         (cgraph_node * allocate_cgraph_symbol (void)): new function
11669         (void initialize (void)): created from cgraph_init
11670         (symtab_node *first_symbol (void)):new function
11671         (asm_node *first_asm_symbol (void)):new function
11672         (symtab_node *first_defined_symbol (void)):new function
11673         (varpool_node *first_variable (void)):new function
11674         (varpool_node *next_variable (varpool_node *node)):new function
11675         (varpool_node *first_static_initializer (void)):new function
11676         (varpool_node *next_static_initializer (varpool_node *node)):new function
11677         (varpool_node *first_defined_variable (void)):new function
11678         (varpool_node *next_defined_variable (varpool_node *node)):new function
11679         (cgraph_node *first_defined_function (void)):new function
11680         (cgraph_node *next_defined_function (cgraph_node *node)):new function
11681         (cgraph_node *first_function (void)):new function
11682         (cgraph_node *next_function (cgraph_node *node)):new function
11683         (cgraph_node *first_function_with_gimple_body (void)):new function
11684         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11685         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11686           created from symtab_remove_unreachable_nodes
11687         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
11688         (void process_new_functions (void)): created from cgraph_process_new_functions
11689         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
11690         (bool output_variables (void)): created from varpool_node::output_variables
11691         (void output_asm_statements (void)): created from output_asm_statements
11692         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
11693         (void compile (void)): created from compile
11694         (void output_weakrefs (void)): created from output_weakrefs
11695         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
11696         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
11697           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
11698         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
11699         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
11700           created from cgraph_next_function_with_gimple_body
11701         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
11702           created from cgraph_remove_edge_removal_hook
11703         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
11704           created from cgraph_add_node_removal_hook
11705         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
11706           created from cgraph_remove_node_removal_hook
11707         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
11708           created from varpool_add_node_removal_hook
11709         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
11710           created from varpool_remove_node_removal_hook
11711         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
11712           created from cgraph_add_function_insertion_hook
11713         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
11714           created from cgraph_remove_function_insertion_hook
11715         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
11716           created from varpool_add_variable_insertion_hook
11717         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
11718           created from varpool_remove_variable_insertion_hook
11719         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
11720           created from cgraph_add_edge_duplication_hook
11721         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
11722           created from cgraph_remove_edge_duplication_hook
11723         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
11724           created from cgraph_add_node_duplication_hook
11725         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
11726           created from cgraph_remove_node_duplication_hook
11727         (void call_edge_removal_hooks (cgraph_edge *e)):
11728           created from cgraph_call_edge_removal_hooks
11729         (void call_cgraph_insertion_hooks (cgraph_node *node)):
11730           created from call_function_insertion_hooks
11731         (void call_cgraph_removal_hooks (cgraph_node *node)):
11732           created from cgraph_call_node_removal_hooks
11733         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
11734           created from cgraph_node::call_duplication_hooks
11735         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
11736           created from cgraph_call_edge_duplication_hooks
11737         (void call_varpool_removal_hooks (varpool_node *node)):
11738           created from varpool_call_node_removal_hooks
11739         (void call_varpool_insertion_hooks (varpool_node *node)):
11740           created from varpool_call_variable_insertion_hooks
11741         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
11742           created from insert_to_assembler_name_hash
11743         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
11744           created from unlink_from_assembler_name_hash
11745         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
11746           created from symtab_prevail_in_asm_name_hash
11747         (void symtab_initialize_asm_name_hash (void)):
11748           created from symtab_initialize_asm_name_hash
11749         (void change_decl_assembler_name (tree decl, tree name)):
11750           created from change_decl_assembler_name
11751         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
11752         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
11753           created from decl_assembler_name_hash
11754         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
11755           created from decl_assembler_name_equal
11756         (static hashval_t hash_node_by_assembler_name (const void *p)):
11757           created from hash_node_by_assembler_name
11758         (static int eq_assembler_name (const void *p1, const void *p2)):
11759           created from eq_assembler_name
11761 2014-08-25  Marek Polacek  <polacek@redhat.com>
11763         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
11765 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
11767         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
11768         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
11769         SWI1248_AVX512BW mode iterator.
11771 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
11773         PR target/62111
11774         * config/sh/predicates.md (general_extend_operand): Disable
11775         TRUNCATE before reload completes.
11777 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
11779         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
11781 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
11783         PR target/61996
11784         * config/sh/sh.opt (musermode): Allow negative form.
11785         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
11786         targets that don't support it.
11787         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
11788         Document -mno-usermode option.
11790 2014-08-24  Kito Cheng  <kito@0xlab.org>
11792         * system.h (CALLER_SAVE_PROFITABLE): Poison.
11793         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
11794         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
11795         * doc/tm.texi: Regenerate.
11797 2014-08-24  Kito Cheng  <kito@0xlab.org>
11799         * ira.c: Fix typo in comment.
11801 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
11803         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
11804         Deprecate c++1y. Change language to reflect greater confidence in C++14.
11806 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
11808         PR target/62038
11809         * config/pa/pa.c (pa_output_function_epilogue): Don't set
11810         last_address when the current function is a thunk.
11811         (pa_asm_output_mi_thunk): When we don't have named sections or they
11812         are not being used, check that thunk can reach the stub table with a
11813         short branch.
11815 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11817         * web.c (union_match_dups): Strengthen param "insn" from rtx to
11818         rtx_insn *.
11819         (pass_web::execute): Likewise for local "insn".
11821 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11823         * var-tracking.c (struct micro_operation_def): Strengthen field
11824         "insn" from rtx to rtx_insn *.
11825         (struct emit_note_data_def): Likewise.
11826         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
11827         (vt_stack_adjustments): Likewise for local "insn".
11828         (adjust_insn): Likewise for param "insn".
11829         (val_store): Likewise.
11830         (val_resolve): Likewise.
11831         (struct count_use_info): Likewise for field "insn".
11832         (log_op_type): Likewise for param "insn".
11833         (reverse_op): Likewise.
11834         (prepare_call_arguments): Likewise.
11835         (add_with_sets):  The initial param takes an insn, but we can't
11836         yet strengthen it from rtx to rtx_insn * since it's used as a
11837         cselib_record_sets_hook callback.  For now rename initial param
11838         from "insn" to "uncast_insn", and introduce a local "insn" of
11839         the stronger rtx_insn * type, with a checked cast.
11840         (compute_bb_dataflow): Strengthen local "insn" from rtx to
11841         rtx_insn *.
11842         (emit_note_insn_var_location): Likewise.
11843         (emit_notes_for_changes): Likewise.
11844         (emit_notes_for_differences): Likewise.
11845         (next_non_note_insn_var_location): Likewise for return type and
11846         for param "insn".
11847         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
11848         (vt_initialize): Likewise for local "insn".
11849         (delete_debug_insns): Likewise for locals "insn" and "next".
11851 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11853         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
11854         rtx_insn *.
11855         (mark_constant_pool): Likewise for local "insn".
11857 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11859         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
11860         rtx to rtx_insn *.
11861         (dead_debug_promote_uses): Likewise.
11862         (dead_debug_insert_temp): Likewise.
11864 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11866         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
11867         from const_rtx to const rtx_insn *.
11868         (store_killed_after): Likewise.  Strengthen locals "last", "act"
11869         from rtx to rtx_insn *.
11870         (store_killed_before): Strengthen param "insn" from const_rtx to
11871         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
11872         (find_moveable_store): Strengthen param "insn" from rtx to
11873         rtx_insn *.
11874         (compute_store_table): Likewise for local "insn".
11875         (insert_insn_start_basic_block): Likewise for param "insn" and
11876         locals "prev", "before", "insn".
11877         (insert_store): For now, add a checked cast to rtx_insn * on the
11878         result of gen_move_insn.
11879         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
11880         to rtx_insn *.
11881         (replace_store_insn): Likewise.  For now, add a checked cast to
11882         rtx_insn * on the result of gen_move_insn.
11884 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11886         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
11887         rtx_insn *.
11888         (expand_sjlj_dispatch_table): Likewise.
11890 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11892         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
11893         "insn" from rtx to rtx_insn *.
11895 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11897         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
11898         "insn" from rtx to rtx_insn *.
11899         (dup_block_and_redirect): Likewise for param 3 "before".
11901         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
11902         from rtx to rtx_insn *.
11903         (move_insn_for_shrink_wrap): Likewise.
11904         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
11905         (dup_block_and_redirect): Likewise for param "before" and local
11906         "insn".
11907         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
11908         "end".
11909         (convert_to_simple_return): Likewise for local "start".
11911         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
11912         Strengthen local "insn" from rtx to rtx_insn *, for use when
11913         invoking requires_stack_frame_p.
11915 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11917         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
11918         rtx_insn *.
11919         (speculate_expr): Likewise for locals "orig_insn_rtx",
11920         "spec_insn_rtx".
11921         (eq_transformed_insns): Likewise for locals "i1", "i2".
11922         (check_for_new_jump): Likewise for return type and local "end".
11923         (find_new_jump): Likewise for return type and local "jump".
11924         (sel_split_edge): Likewise for local "jump".
11925         (sel_create_recovery_block): Likewise.
11926         (sel_redirect_edge_and_branch_force): Likewise.
11927         (sel_redirect_edge_and_branch): Likewise.
11929 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11931         * sel-sched.c (substitute_reg_in_expr): Strengthen local
11932         "new_insn" from rtx to rtx_insn *.
11933         (create_insn_rtx_with_rhs): Likewise for return type and for local
11934         "insn_rtx".
11935         (create_insn_rtx_with_lhs): Likewise.
11936         (create_speculation_check): Likewise for local "insn_rtx".
11937         (implicit_clobber_conflict_p): Likewise for local "insn".
11938         (get_expr_cost): Likewise.
11939         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
11940         (move_cond_jump): Likewise for locals "next", "prev", "link",
11941         "head", "from", "to".
11943 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11945         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
11946         "next" from rtx to rtx_insn *.
11947         (find_conditional_protection): Likewise for local "next".
11948         (is_conditionally_protected): Likewise for local "insn1".
11949         (is_pfree): Likewise for locals "insn1", "insn2".
11951 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11953         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
11954         from rtx to rtx_insn *.
11956         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
11957         locals "insn1", "insn2" from rtx to rtx_insn *.
11958         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
11959         locals "insn", "prev", "last_jump", "next_tail".
11960         (schedule_ebb): Likewise for params "head", "tail".
11961         (schedule_ebbs): Likewise for locals "tail", "head".
11963         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
11964         to rtx_insn on "last_insn" in one of the invocations of
11965         schedule_ebb.
11967 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11969         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
11970         "elem", "insn" from rtx to rtx_insn *.
11971         (change_spec_dep_to_hard): Likewise.
11972         (get_back_and_forw_lists): Likewise for local "con".
11973         (sd_add_dep): Likewise for locals "elem", "insn".
11974         (sd_resolve_dep): Likewise for locals "pro", "con".
11975         (sd_unresolve_dep): Likewise.
11976         (sd_delete_dep): Likewise.
11977         (chain_to_prev_insn): Likewise for local "pro".
11978         (find_inc): Likewise for locals "pro", "con".
11980 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11982         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
11983         to rtx_insn *.
11984         (reg_set_between_p): Strengthen local "insn" from const_rtx to
11985         const rtx_insn *.
11986         (modified_between_p): Strengthen local "insn" from rtx to
11987         rtx_insn *.
11988         (remove_reg_equal_equiv_notes_for_regno): Likewise.
11989         (keep_with_call_p): Strengthen local "i2" from const_rtx to
11990         const rtx_insn *.
11992 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11994         * resource.c (next_insn_no_annul): Strengthen local "next" from
11995         rtx to rtx_insn *.
11996         (mark_referenced_resources): Likewise for local "insn".
11998 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12000         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12001         to rtx_insn *.
12002         (find_reloads): Likewise for param 1.
12003         (subst_reloads): Likewise for sole param.
12004         (find_equiv_reg): Likwise for param 2.
12005         (regno_clobbered_p): Likwise for param 2.
12006         (reload): Likewise for param 1.
12008         * caller-save.c (save_call_clobbered_regs): Strengthen local
12009         "insn" from rtx to rtx_insn *.
12010         (insert_one_insn): Likewise for local "insn".
12012         * reload.c (this_insn): Likewise for this global.
12013         (find_reloads): Likewise for param "insn".
12014         (find_reloads_toplev): Likewise.
12015         (find_reloads_address): Likewise.
12016         (subst_reg_equivs): Likewise.
12017         (update_auto_inc_notes): Likewise.
12018         (find_reloads_address_1): Likewise.
12019         (find_reloads_subreg_address): Likewise.
12020         (subst_reloads): Likewise.
12021         (find_equiv_reg): Likewise, also for local "p".
12022         (regno_clobbered_p): Likewise for param "insn".
12024         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12025         array.
12026         (spill_reg_store): Likewise for the elements of this array.
12027         (remove_init_insns): Likewise for local "equiv_insn".
12028         (will_delete_init_insn_p): Likewise for param "insn".
12029         (reload): Likewise for param ""first" and local "insn".
12030         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12031         rtx_insn *.
12032         (calculate_elim_costs_all_insns): Likewise.
12033         (delete_caller_save_insns): Likewise.
12034         (spill_failure): Likewise for param "insn".
12035         (delete_dead_insn): Likewise.
12036         (set_label_offsets): Likewise.
12037         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12038         "prev_insn".
12039         (elimination_costs_in_insn): Likewise for param "insn".
12040         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12041         when referring to an insn.
12042         (set_initial_label_offsets): Likewise.
12043         (set_offsets_for_label): Strengthen param "insn" from rtx to
12044         rtx_insn *.
12045         (init_eliminable_invariants): Likewise for param "first" and local
12046         "insn".
12047         (fixup_eh_region_note): Likewise for param "insn".
12048         (reload_as_needed): Likewise for locals "prev", "insn",
12049         "old_next", "old_prev", "next".
12050         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12051         "last".
12052         (reload_inheritance_insn): Strengthen elements of this array from
12053         rtx to rtx_insn *.
12054         (failed_reload): Likewise for param "insn".
12055         (choose_reload_regs): Likewise for local "insn".  Replace use of
12056         NULL_RTX with NULL when referring to an insn.
12057         (input_reload_insns): Strengthen elements of this array from rtx
12058         to rtx_insn *.
12059         (other_input_address_reload_insns): Likewise for this global.
12060         (other_input_reload_insns): Likewise for this global.
12061         (input_address_reload_insns): Likwise for the elements of this
12062         array.
12063         (inpaddr_address_reload_insns): Likwise for the elements of this
12064         array.
12065         (output_reload_insns): Likewise for the elements of this array.
12066         (output_address_reload_insns): Likewise for the elements of this
12067         array.
12068         (outaddr_address_reload_insns): Likewise for the elements of this
12069         array.
12070         (operand_reload_insns): Likewise for this global.
12071         (other_operand_reload_insns): Likewise for this global.
12072         (other_output_reload_insns): Likewise for the elements of this
12073         array.
12074         (new_spill_reg_store): Likewise for the elements of this
12075         array.
12076         (emit_input_reload_insns): Likewise for locals "insn", "temp".
12077         Strengthen local "where" from rtx * to rtx_insn **.
12078         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12079         from rtx to rtx_insn *.
12080         (do_input_reload): Likewise for local "insn".
12081         (do_output_reload): Likewise for local "insn".
12082         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12083         (emit_insn_if_valid_for_reload): Likewise for return type and local
12084         "last".  Add checked cast to rtx_insn when returning "insn" since
12085         this has been through emit_insn.
12086         (gen_reload): Strengthen return type and locals "last", "insn", "set"
12087         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
12088         returning "insn" since it's been through
12089         emit_insn_if_valid_for_reload at this point.
12090         (delete_output_reload): Strengthen param "insn" and locals
12091         "output_reload_insn", "i2" from rtx to rtx_insn *.
12092         (delete_address_reloads): Likewise for params "dead_insn",
12093         "current_insn" and locals "prev", "next".
12094         (delete_address_reloads_1): Likewise for params "dead_insn",
12095         "current_insn" and locals "prev", "i2".
12096         (inc_for_reload): Likewise for locals "last", "add_insn".
12097         (add_auto_inc_notes): Strengthen param "insn" from rtx to
12098         rtx_insn *.
12100         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12101         param of this duplicate of the prototype from reload.h
12103 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12105         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12106         rtx to rtx_insn *.
12107         (regstat_bb_compute_calls_crossed): Likewise.
12109 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12111         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12112         to rtx_insn *.
12113         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12114         with an insn.
12115         (regrename_analyze): Strengthen local "insn" from rtx to
12116         rtx_insn *.
12117         (scan_rtx_reg): Likewise for param "insn".
12118         (scan_rtx_address): Likewise.
12119         (scan_rtx): Likewise.
12120         (restore_operands): Likewise.
12121         (record_out_operands): Likewise.
12122         (build_def_use): Likewise for local "insn".  Replace use of
12123         NULL_RTX with NULL when dealing with an insn.
12125 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12127         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12128         * reginfo.c (reg_scan): Likewise, also for local "insn".
12129         (reg_scan_mark_refs): Likewise for param "insn".
12130         (init_subregs_of_mode): Likewise for local "insn".
12132 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12134         * regcprop.c (struct queued_debug_insn_change): Strengthen field
12135         "insn" from rtx to rtx_insn *.
12136         (replace_oldest_value_reg): Likewise for param "insn".
12137         (replace_oldest_value_addr): Likewise.
12138         (replace_oldest_value_mem): Likewise.
12139         (apply_debug_insn_changes): Likewise for local "last_insn".
12140         (copyprop_hardreg_forward_1): Likewise for local "insn".
12142 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12144         * reg-stack.c (next_flags_user): Strengthen return type and param
12145         "insn" from rtx to rtx_insn *.
12146         (straighten_stack): Likewise for param "insn".
12147         (check_asm_stack_operands): Likewise.
12148         (remove_regno_note): Likewise.
12149         (emit_pop_insn): Likewise for return type, param "insn", local
12150         "pop_insn".
12151         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
12152         "limit" from rtx to rtx_insn *.
12153         (swap_to_top): Likewise for param "insn".
12154         (move_for_stack_reg): Likewise.
12155         (move_nan_for_stack_reg): Likewise.
12156         (swap_rtx_condition): Likewise.
12157         (compare_for_stack_reg): Likewise.
12158         (subst_all_stack_regs_in_debug_insn): Likewise.
12159         (subst_stack_regs_pat): Likewise, and local "insn2".
12160         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
12161         rtx_insn *.
12162         (subst_stack_regs): Likewise.
12163         (change_stack): Likewise.
12164         (convert_regs_1): Likewise for locals "insn", "next".
12166 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12168         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
12169         rtx_insn *.
12170         (combine_set_extension): Likewise for param "curr_insn".
12171         (transform_ifelse): Likewise for param "def_insn".
12172         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
12173         from vec<rtx> * to vec<rtx_insn *> *.
12174         (is_cond_copy_insn): Likewise for param "insn".
12175         (struct ext_state): Strengthen the four vec fields from vec<rtx>
12176         to vec<rtx_insn *>.
12177         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
12178         local "def_insn" from rtx to rtx_insn *.
12179         (get_sub_rtx): Likewise for param "def_insn".
12180         (merge_def_and_ext): Likewise.
12181         (combine_reaching_defs): Likewise.
12182         (add_removable_extension): Likewise for param "insn".
12183         (find_removable_extensions): Likewise for local "insn".
12184         (find_and_remove_re): Likewise for locals "curr_insn" and
12185         "def_insn".  Strengthen locals "reinsn_del_list" and
12186         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
12188 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12190         * recog.c (split_insn): Strengthen param "insn" and locals
12191         "first", "last" from rtx to rtx_insn *.
12192         (split_all_insns): Likewise for locals "insn", "next".
12193         (split_all_insns_noflow): Likewise.
12195 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12197         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12198         const rtx_insn *.
12199         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12200         (debug_rtx_find): Likewise for param 1 "x".
12202         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12203         const_rtx to const rtx_insn *.  Likewise for local "insn".
12204         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12205         (debug_rtx_find): Likewise for param 1 "x".
12206         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12207         from const_rtx to const rtx_insn * within the appropriate cases of
12208         the switch statement.
12210         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12211         Strengthen local "insns" from rtx to rtx_insn * since this is
12212         passed to a call to debug_rtx_list.
12214 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12216         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12217         to rtx_insn *.
12219         * function.c (stack_protect_epilogue): Add checked cast to
12220         rtx_insn for now when invoking predict_insn_def.
12222         * predict.c (predict_insn): Strengthen param "insn" from rtx to
12223         rtx_insn *.
12224         (predict_insn_def): Likewise.
12225         (rtl_predict_edge): Likewise for local "last_insn".
12226         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12227         const rtx_insn *.
12228         (combine_predictions_for_insn): Strengthen param "insn" from rtx
12229         to rtx_insn *.
12230         (bb_estimate_probability_locally): Likewise for local "last_insn".
12231         (expensive_function_p): Likewise for local "insn".
12233         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12234         local "jmp", since this is used when invoking predict_insn_def.
12236 2014-08-22  Marek Polacek  <polacek@redhat.com>
12238         PR c++/62199
12239         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12241 2014-08-22  Marek Polacek  <polacek@redhat.com>
12243         PR c/61271
12244         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12245         a comparison in parens.
12246         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12247         in parens.
12249 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12251         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12252         rtx_insn *.
12254         * cprop.c (fis_get_condition): Likewise.
12256         * postreload.c (reload_cse_regs): Likewise for param "first".
12257         (reload_cse_simplify): Likewise for param "insn".
12258         (reload_cse_regs_1): Likewise for local "insn".
12259         (reload_cse_simplify_set): Likewise for param "insn".
12260         (reload_cse_simplify_operands): Likewise.
12261         (struct reg_use): Likewise for field "insn".
12262         (reload_combine_purge_insn_uses): Likewise for param "insn".
12263         (fixup_debug_insns): Likewise for params "from", "to" and local
12264         "insn".
12265         (try_replace_in_use): Likewise for local "use_insn".
12266         (reload_combine_recognize_const_pattern): Likewise for param
12267         "insn" and locals "add_moved_after_insn", "use_insn".
12268         (reload_combine_recognize_pattern): Likewise for param "insn" and
12269         local "prev".
12270         (reload_combine): Likewise for locals "insn", "prev".
12271         (reload_combine_note_use): Likewise for param "insn".
12272         (move2add_use_add2_insn): Likewise.
12273         (move2add_use_add3_insn): Likewise.
12274         (reload_cse_move2add): Likewise, also for local "next".
12275         (move2add_note_store): Likewise for local "insn".
12277 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12279         * postreload-gcse.c (struct occr): Strengthen field "insn" from
12280         rtx to rtx_insn *.
12281         (struct unoccr): Likewise.
12282         (struct modifies_mem): Likewise.
12283         (alloc_mem): Likewise for local "insn".
12284         (insert_expr_in_table): Likewise for param "insn".
12285         (dump_expr_hash_table_entry): Likewise for local "insn".
12286         (oprs_unchanged_p): Likewise for param "insn".
12287         (load_killed_in_block_p): Likewise for local "setter".
12288         (record_last_reg_set_info): Likewise for param "insn".
12289         (record_last_reg_set_info_regno): Likewise.
12290         (record_last_mem_set_info): Likewise.
12291         (record_last_set_info): Likewise for local "last_set_insn".
12292         (record_opr_changes): Likewise for param "insn".
12293         (hash_scan_set): Likewise.
12294         (compute_hash_table): Likewise for local "insn".
12295         (get_avail_load_store_reg): Likewise for param "insn".
12296         (eliminate_partially_redundant_load): Likewise, also for locals
12297         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
12298         RTX for insns.
12299         (eliminate_partially_redundant_loads): Likewise for local "insn".
12301 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12303         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
12304         rtx to rtx_insn *.
12305         (expand_binop): Likewise for locals "entry_last", "last", "insns"
12306         (expand_twoval_unop): Likewise for locals entry_last", "last".
12307         (expand_twoval_binop): Likewise.
12308         (expand_twoval_binop_libfunc): Likewise for local "insns".
12309         (widen_leading): Likewise for local "last".
12310         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
12311         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
12312         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
12313         (expand_parity): Likewise for locals "last" and "seq".
12314         (expand_ffs): Likewise for local "seq".  Strengthen local
12315         "nonzero_label" from rtx to rtx_code_label *.
12316         (expand_absneg_bit): Strengthen local "insns" from rtx to
12317         rtx_insn *.
12318         (expand_unop_direct): Likewise for local "last".
12319         (expand_unop): Likewise for locals "last", "insns".
12320         (expand_abs_nojump): Likewise for local "last".
12321         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
12322         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
12323         rtx_insn *.
12324         (expand_copysign_absneg): Strengthen local "label" from rtx to
12325         rtx_code_label *.
12326         (expand_copysign_bit): Strengthen local "insns" from rtx to
12327         rtx_insn *.
12328         (struct no_conflict_data): Likewise for fields "first", "insn".
12329         (emit_libcall_block_1): Likewise for param "insns" and locals
12330         "next", "last", "insn".
12331         (emit_libcall_block): For now, add a checked cast to rtx_insn *
12332         on "insns" when invoking emit_libcall_block_1.  Ultimately we
12333         want to strengthen insns itself.
12334         (prepare_cmp_insn): Strengthen local "last" from rtx to
12335         rtx_insn *.
12336         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
12337         (prepare_float_lib_cmp): Likewise for local "insns".
12338         (emit_conditional_move): Likewise for local "last".
12339         (emit_conditional_add): Likewise.
12340         (have_sub2_insn): Likewise for local "seq".
12341         (expand_float): Likewise for local "insns".  Strengthen locals
12342         "label", "neglabel" from rtx to rtx_code_label *.
12343         (expand_fix): Likewise for locals "last", "insn", "insns" (to
12344         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
12345         (expand_fixed_convert): Likewise for local "insns" (to
12346         rtx_insn *).
12347         (expand_sfix_optab): Likewise for local "last".
12348         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
12349         to rtx_code_label *.
12350         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
12351         from rtx to rtx_insn *.
12352         (expand_atomic_fetch_op): Likewise for local "insn".
12353         (maybe_legitimize_operand_same_code): Likewise for local "last".
12354         (maybe_legitimize_operands): Likewise.
12356 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12358         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
12359         "insn" from rtx to rtx_insn *.
12360         (ps_rtl_insn): Likewise for return type.
12361         (doloop_register_get): Likewise for params "head", "tail" and
12362         locals "insn", "first_insn_not_to_check".
12363         (schedule_reg_move): Likewise for local "this_insn".
12364         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
12365         of gen_move_insn for now.
12366         (reset_sched_times): Strengthen local "insn" from rtx to
12367         rtx_insn *.
12368         (permute_partial_schedule): Likewise.
12369         (duplicate_insns_of_cycles): Likewise for local "u_insn".
12370         (dump_insn_location): Likewise for param "insn".
12371         (loop_canon_p): Likewise for local "insn".
12372         (sms_schedule): Likewise.
12373         (print_partial_schedule): Likewise.
12374         (ps_has_conflicts): Likewise.
12376 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12378         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
12379         "tailp" from rtx * to rtx_insn **.
12381         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
12382         from rtx to rtx_insn *.
12383         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
12384         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
12385         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
12386         rtx to rtx_insn *.
12387         * modulo-sched.c (const_iteration_count): Strengthen return type
12388         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
12389         use of NULL_RTX with NULL when working with insns.
12390         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
12391         to rtx_insn *.
12392         (sms_schedule): Likewise.
12393         * sched-rgn.c (init_ready_list): Likewise, also for locals
12394         "src_head" and "src_next_tail".
12395         (compute_block_dependences): Likewise.
12396         (free_block_dependencies): Likewise.
12397         (debug_rgn_dependencies): Likewise.
12398         (free_rgn_deps): Likewise.
12399         (compute_priorities): Likewise.
12400         (schedule_region): Likewise.
12401         * sel-sched.c (find_ebb_boundaries): Likewise.
12403         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
12404         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
12406 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12408         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
12409         from rtx to rtx_insn *.
12410         (new_seginfo): Likewise for param "insn".
12411         (create_pre_exit): Likewise for locals "last_insn",
12412         "before_return_copy", "return_copy".
12413         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
12414         "mode_set".
12416 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12418         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
12419         from rtx to rtx_insn *.
12420         (lra_push_insn): Likewise for 1st param.
12421         (lra_push_insn_and_update_insn_regno_info): Likewise.
12422         (lra_pop_insn): Likewise for return type.
12423         (lra_invalidate_insn_data): Likewise for 1st param.
12424         (lra_set_insn_deleted): Likewise.
12425         (lra_delete_dead_insn): Likewise.
12426         (lra_process_new_insns): Likewise for first 3 params.
12427         (lra_set_insn_recog_data): Likewise for 1st param.
12428         (lra_update_insn_recog_data): Likewise.
12429         (lra_set_used_insn_alternative): Likewise.
12430         (lra_invalidate_insn_regno_info): Likewise.
12431         (lra_update_insn_regno_info): Likewise.
12432         (lra_former_scratch_operand_p): Likewise.
12433         (lra_eliminate_regs_1): Likewise.
12434         (lra_get_insn_recog_data): Likewise.
12436         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
12437         rtx to rtx_insn *.
12439         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
12440         "mv1" and "mv2".
12441         (substitute_within_insn): New.
12442         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
12443         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
12444         Replace call to "substitute" with call to substitute_within_insn.
12446         * lra-constraints.c (curr_insn): Strengthen from rtx to
12447         rtx_insn *.
12448         (get_equiv_with_elimination): Likewise for param "insn".
12449         (match_reload): Strengthen params "before" and "after" from rtx *
12450         to rtx_insn **.
12451         (emit_spill_move): Likewise for return type.  Add a checked cast
12452         to rtx_insn * on result of gen_move_insn for now.
12453         (check_and_process_move): Likewise for local "before".  Replace
12454         NULL_RTX with NULL when referring to insns.
12455         (process_addr_reg): Strengthen params "before" and "after" from
12456         rtx * to rtx_insn **.
12457         (insert_move_for_subreg): Likewise.
12458         (simplify_operand_subreg): Strengthen locals "before" and "after"
12459         from rtx to rtx_insn *.
12460         (process_address_1): Strengthen params "before" and "after" from
12461         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
12462         rtx to rtx_insn *.
12463         (process_address): Strengthen params "before" and "after" from
12464         rtx * to rtx_insn **.
12465         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
12466         (curr_insn_transform): Strengthen locals "before" and "after"
12467         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
12468         to insns.
12469         (loc_equivalence_callback): Update cast of "data", changing
12470         resulting type from rtx to rtx_insn *.
12471         (substitute_pseudo_within_insn): New.
12472         (inherit_reload_reg): Strengthen param "insn" from rtx to
12473         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
12474         NULL when referring to insns.  Add a checked cast to rtx_insn *
12475         when using usage_insn to invoke lra_update_insn_regno_info.
12476         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
12477         likewise for locals "restore", "save".  Add checked casts to
12478         rtx_insn * when using usage_insn to invoke
12479         lra_update_insn_regno_info and lra_process_new_insns.  Replace
12480         NULL_RTX with NULL when referring to insns.
12481         (split_if_necessary): Strengthen param "insn" from rtx to
12482         rtx_insn *.
12483         (update_ebb_live_info): Likewise for params "head", "tail" and local
12484         "prev_insn".
12485         (get_last_insertion_point): Likewise for return type and local "insn".
12486         (get_live_on_other_edges): Likewise for local "last".
12487         (inherit_in_ebb): Likewise for params "head", "tail" and locals
12488         "prev_insn", "next_insn", "restore".
12489         (remove_inheritance_pseudos): Likewise for local "prev_insn".
12490         (undo_optional_reloads): Likewise for local "insn".
12492         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
12493         "insn".
12494         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
12495         insns.
12496         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
12497         rtx_insn *.
12498         (spill_pseudos): Likewise for local "insn".
12499         (init_elimination): Likewise.
12500         (process_insn_for_elimination): Likewise for param "insn".
12502         * lra-lives.c (curr_insn): Likewise.;
12504         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
12505         (remove_pseudos): Likewise for param "insn".
12506         (spill_pseudos): Likewise for local "insn".
12507         (lra_final_code_change): Likewise for locals "insn", "curr".
12509         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
12510         (lra_set_insn_deleted): Likewise.
12511         (lra_delete_dead_insn): Likewise, and for local "prev".
12512         (new_insn_reg): Likewise for param "insn".
12513         (lra_set_insn_recog_data): Likewise.
12514         (lra_update_insn_recog_data): Likewise.
12515         (lra_set_used_insn_alternative): Likewise.
12516         (get_insn_freq): Likewise.
12517         (invalidate_insn_data_regno_info): Likewise.
12518         (lra_invalidate_insn_regno_info): Likewise.
12519         (lra_update_insn_regno_info): Likewise.
12520         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
12521         vec<rtx_insn *>.
12522         (lra_push_insn_1): Strengthen param "insn" from rtx to
12523         rtx_insn *.
12524         (lra_push_insn): Likewise.
12525         (lra_push_insn_and_update_insn_regno_info): Likewise.
12526         (lra_pop_insn): Likewise for return type and local "insn".
12527         (push_insns): Likewise for params "from", "to", and local "insn".
12528         (setup_sp_offset): Likewise for params "from", "last" and locals
12529         "before", "insn".
12530         (lra_process_new_insns): Likewise for params "insn", "before",
12531         "after" and local "last".
12532         (struct sloc): Likewise for field "insn".
12533         (lra_former_scratch_operand_p): Likewise for param "insn".
12534         (remove_scratches): Likewise for locals "insn", "last".
12535         (check_rtl): Likewise for local "insn".
12536         (add_auto_inc_notes): Likewise for param "insn".
12537         (update_inc_notes): Likewise for local "insn".
12538         (lra): Replace NULL_RTX with NULL when referring to insn.
12540 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12542         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12543         to rtx_insn *.
12544         (resolve_reg_notes): Likewise.
12545         (resolve_simple_move): Likewise for return type, param "insn", and
12546         locals "insns", "minsn".
12547         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12548         (resolve_use): Likewise.
12549         (resolve_debug): Likewise.
12550         (find_decomposable_shift_zext): Likewise.
12551         (resolve_shift_zext): Likewise for return type, param "insn", and
12552         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
12553         (decompose_multiword_subregs): Likewise for local "insn",
12554         "orig_insn", "decomposed_shift", "end".
12556 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12558         * basic-block.h (basic_block split_edge_and_insert): Strengthen
12559         param "insns" from rtx to rtx_insn *.
12561         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12562         rtx to rtx_insn *.
12563         (struct iv_to_split): Likewise.
12564         (loop_exit_at_end_p): Likewise for local "insn".
12565         (split_edge_and_insert): Likewise for param "insns".
12566         (compare_and_jump_seq): Likewise for return type, param "cinsn",
12567         and locals "seq", "jump".
12568         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12569         "branch_code"; update invocations of compare_and_jump_seq to
12570         eliminate NULL_RTX in favor of NULL.
12571         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12572         rtx to rtx_insn *.
12573         (reset_debug_uses_in_loop): Likewise.
12574         (analyze_insn_to_expand_var): Likewise for param "insn".
12575         (analyze_iv_to_split_insn): Likewise.
12576         (analyze_insns_in_loop): Likewise for local "insn".
12577         (insert_base_initialization): Likewise for param
12578         "insn" and local "seq".
12579         (split_iv): Likewise for param "insn" and local "seq".
12580         (expand_var_during_unrolling): Likewise for param "insn".
12581         (insert_var_expansion_initialization): Likewise for local "seq".
12582         (combine_var_copies_in_loop_exit): Likewise.
12583         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12584         "insn".
12585         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12586         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12587         "next".
12589 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12591         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12592         rtx_insn *.
12593         (iv_analyze_result): Likewise.
12594         (iv_analyze_expr): Likewise.
12595         (biv_p): Likewise.
12597         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12598         local "def_insn" from rtx to rtx_insn *.
12599         (get_biv_step_1): Likewise for local "insn".
12600         (iv_analyze_expr): Likewise for param "insn".
12601         (iv_analyze_def): Likewise for local "insn".
12602         (iv_analyze_op): Likewise for param "insn".
12603         (iv_analyze): Likewise.
12604         (iv_analyze_result): Likewise.
12605         (biv_p): Likewise.
12606         (suitable_set_for_replacement): Likewise.
12607         (simplify_using_initial_values): Likewise for local "insn".
12608         (iv_number_of_iterations): Likewise for param "insn".
12609         (check_simple_exit): Add checked cast to rtx_insn when invoking
12610         iv_number_of_iterations for now (until get_condition is
12611         strengthened).
12613         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12614         "insn" from rtx to rtx_insn *.
12615         (analyze_insns_in_loop): Likewise for local "insn".
12617 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12619         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12620         to rtx_insn *.
12621         (struct invariant): Likewise.
12622         (hash_invariant_expr_1): Likewise for param "insn".
12623         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12624         (find_exits): Likewise for local "insn".
12625         (create_new_invariant): Likewise for param "insn".
12626         (check_dependencies): Likewise.
12627         (find_invariant_insn): Likewise.
12628         (record_uses): Likewise.
12629         (find_invariants_insn): Likewise.
12630         (find_invariants_bb): Likewise for local "insn".
12631         (get_pressure_class_and_nregs): Likewise for param "insn".
12632         (calculate_loop_reg_pressure): Likewise for local "insn".
12634 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12636         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12637         to rtx_insn *.
12638         (add_test): Likewise for locals "seq", "jump".
12639         (doloop_modify): Likewise for locals "sequence", "jump_insn".
12641 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12643         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
12644         rtx_insn *.
12645         (rebuild_jump_labels_chain): Likewise for param "chain".
12647         * cfgexpand.c (pass_expand::execute): Add checked cast to
12648         rtx_insn * when calling rebuild_jump_labels_chain in region where
12649         we know e->insns.r is non-NULL.
12651         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
12652         rtx_insn *.
12653         (rebuild_jump_labels): Likewise.
12654         (rebuild_jump_labels_chain): Likewise for param "chain".
12655         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
12656         (init_label_info): Likewise for param "f".
12657         (maybe_propagate_label_ref): Likewise for params "jump_insn",
12658         "prev_nonjump_insn".
12659         (mark_all_labels): Likewise for param "f" and locals "insn",
12660         "prev_nonjump_insn".
12662 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12664         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12665         from rtx to rtx_insn *insn.
12666         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12667         (ira_add_allocno_copy): Likewise.
12668         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12669         rtx to rtx_insn *.
12670         (ira_create_copy): Likewise.
12671         (ira_add_allocno_copy): Likewise.
12672         (create_bb_allocnos): Likewise for local "insn".
12673         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12674         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12675         process_regs_for_copy for rtx_insn * param.
12676         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12677         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
12678         process_regs_for_copy for rtx_insn * param.
12679         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12680         * ira-costs.c (record_reg_classes): Likewise for param "insn".
12681         (record_operand_costs): Likewise.
12682         (scan_one_insn): Likewise for return type, and for param "insn".
12683         (process_bb_for_costs): Likewise for local "insn".
12684         (process_bb_node_for_hard_reg_moves): Likewise.
12685         * ira-emit.c (struct move): Likewise for field "insn".
12686         (create_move): Eliminate use of NULL_RTX when dealing with an
12687         rtx_insn *.
12688         (emit_move_list): Strengthen return type and locals "result",
12689         "insn" from rtx to rtx_insn *insn.
12690         (emit_moves): Likewise for locals "insns", "tmp".
12691         (ira_emit): Likewise for local "insn".
12692         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
12693         "insn".
12694         (find_call_crossed_cheap_reg): Likewise.
12695         (process_bb_node_lives): Likewise for local "insn".
12696         * ira.c (decrease_live_ranges_number): Likewise.
12697         (compute_regs_asm_clobbered): Likewise.
12698         (build_insn_chain): Likewise.
12699         (find_moveable_pseudos): Likewise, also locals "def_insn",
12700         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
12701         to rtx_insn **.  Add a checked cast when assigning from
12702         "closest_use" into closest_uses array in a region where we know
12703         it's a non-NULL insn.
12704         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
12705         to rtx_insn *.
12706         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
12707         "last_interesting_insn", "uin".
12708         (move_unallocated_pseudos): Likewise for locals "def_insn",
12709         "move_insn", "newinsn".
12711 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12713         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
12714         Strengthen locals "done_label", "do_error" from rtx to
12715         rtx_code_label *.
12716         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
12717         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
12718         rtx_code_label *.
12719         (ubsan_expand_si_overflow_neg_check): Likewise for locals
12720         "done_label", "do_error" to rtx_code_label * and local  "last" to
12721         rtx_insn *.
12722         (ubsan_expand_si_overflow_mul_check): Likewise for locals
12723         "done_label", "do_error", "large_op0", "small_op0_large_op1",
12724         "one_small_one_large", "both_ops_large", "after_hipart_neg",
12725         "after_lopart_neg", "do_overflow", "hipart_different"  to
12726         rtx_code_label * and local  "last" to rtx_insn *.
12728 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12730         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
12731         "insn" and "move_insn" from rtx to rtx_insn *.
12733 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12735         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
12736         rtx_insn *.
12737         (cheap_bb_rtx_cost_p): Likewise.
12738         (first_active_insn): Likewise for return type and local "insn".
12739         (last_active_insn):  Likewise for return type and locals "insn",
12740         "head".
12741         (struct noce_if_info): Likewise for fields "jump", "insn_a",
12742         "insn_b".
12743         (end_ifcvt_sequence): Likewise for return type and locals "insn",
12744         "seq".
12745         (noce_try_move): Likewise for local "seq".
12746         (noce_try_store_flag): Likewise.
12747         (noce_try_store_flag_constants): Likewise.
12748         (noce_try_addcc): Likewise.
12749         (noce_try_store_flag_mask): Likewise.
12750         (noce_try_cmove): Likewise.
12751         (noce_try_minmax): Likewise.
12752         (noce_try_abs): Likewise.
12753         (noce_try_sign_mask): Likewise.
12754         (noce_try_bitop): Likewise.
12755         (noce_can_store_speculate_p): Likewise for local "insn".
12756         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
12757         seq".
12758         (check_cond_move_block): Likewise for local "insn".
12759         (cond_move_convert_if_block): Likewise.
12760         (cond_move_process_if_block): Likewise for locals "seq",
12761         "loc_insn".
12762         (noce_find_if_block): Likewise for local "jump".
12763         (merge_if_block): Likewise for local "last".
12764         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
12765         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
12766         (block_has_only_trap): Likewise for return type and local "trap".
12767         (find_if_case_1): Likewise for local "jump".
12768         (dead_or_predicable): Likewise for locals "head", "end", "jump",
12769         "insn".
12771 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12773         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
12774         "last_insn", "loop_end" from rtx to rtx_insn *.
12776         * hw-doloop.c (scan_loop): Likewise for local "insn".
12777         (discover_loop): Likewise for param "tail_insn".
12778         (discover_loops): Likewise for local "tail".
12780         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
12781         cast to rtx_insn * when assigning from an rtx local to a
12782         hwloop_info's "last_insn" field.
12784 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12786         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
12787         (add_delay_dependencies): Strengthen local "pro" from rtx to
12788         rtx_insn *.
12789         (recompute_todo_spec): Likewise.
12790         (dep_cost_1): Likewise for locals "insn", "used".
12791         (schedule_insn): Likewise for local "dbg".
12792         (schedule_insn): Likewise for locals "pro", "next".
12793         (unschedule_insns_until): Likewise for local "con".
12794         (restore_pattern): Likewise for local "next".
12795         (estimate_insn_tick): Likewise for local "pro".
12796         (resolve_dependencies): Likewise for local "next".
12797         (fix_inter_tick): Likewise.
12798         (fix_tick_ready): Likewise for local "pro".
12799         (add_to_speculative_block): Likewise for locals "check", "twin",
12800         "pro".
12801         (sched_extend_bb): Likewise for locals "end", "insn".
12802         (init_before_recovery): Likewise for local "x".
12803         (sched_create_recovery_block): Likewise for local "barrier".
12804         (create_check_block_twin): Likewise for local "pro".
12805         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
12806         "consumer".
12807         (unlink_bb_notes): Update for change to type of bb_header.
12808         Strengthen locals "prev", "label", "note", "next" from rtx to
12809         rtx_insn *.
12810         (clear_priorities): Likewise for local "pro".
12812 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12814         * gcse.c (struct occr): Strengthen field "insn" from rtx to
12815         rtx_insn *.
12816         (test_insn): Likewise for this global.
12817         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
12818         const rtx_insn *.
12819         (oprs_anticipatable_p): Likewise.
12820         (oprs_available_p): Likewise.
12821         (insert_expr_in_table): Strengthen param "insn" from  rtx to
12822         rtx_insn *.
12823         (hash_scan_set): Likewise.
12824         (hash_scan_clobber): Likewise.
12825         (hash_scan_call): Likewise.
12826         (hash_scan_insn): Likewise.
12827         (compute_hash_table_work): Likewise for local "insn".
12828         (process_insert_insn): Likewise for return type and local "pat".
12829         (insert_insn_end_basic_block): Likewise for locals "new_insn",
12830         "pat", "pat_end", "maybe_cc0_setter".
12831         (pre_edge_insert): Likewise for local "insn".
12832         (pre_insert_copy_insn): Likewise for param "insn".
12833         (pre_insert_copies): Likewise for local "insn".
12834         (struct set_data): Likewise for field "insn".
12835         (single_set_gcse): Likewise for param "insn".
12836         (gcse_emit_move_after): Likewise.
12837         (pre_delete): Likewise for local "insn".
12838         (update_bb_reg_pressure): Likewise for param "from" and local
12839         "insn".
12840         (should_hoist_expr_to_dom): Likewise for param "from".
12841         (hoist_code): Likewise for local "insn".
12842         (get_pressure_class_and_nregs): Likewise for param "insn".
12843         (calculate_bb_reg_pressure): Likewise for local "insn".
12844         (compute_ld_motion_mems): Likewise.
12846 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12848         * genpeep.c (main): Rename param back from "uncast_ins1" to
12849         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
12850         checked cast.
12852         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
12854 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
12856         PR target/62195
12857         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
12858         documentation to state it is only for VSX operations.
12860         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
12861         constraint only active if VSX.
12863         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
12864         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
12865         (lfiwzx): Likewise.
12867 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12869         * fwprop.c (single_def_use_dom_walker::before_dom_children):
12870         Strengthen local "insn" from rtx to rtx_insn *.
12871         (use_killed_between): Likewise for param "target_insn".
12872         (all_uses_available_at): Likewise for param "target_insn" and
12873         local "next".
12874         (update_df_init): Likewise for params "def_insn", "insn".
12875         (update_df): Likewise for param "insn".
12876         (try_fwprop_subst): Likewise for param "def_insn" and local
12877         "insn".
12878         (free_load_extend): Likewise for param "insn".
12879         (forward_propagate_subreg): Likewise for param "def_insn" and
12880         local "use_insn".
12881         (forward_propagate_asm): Likewise for param "def_insn" and local
12882         "use_insn".
12883         (forward_propagate_and_simplify): Likewise for param "def_insn"
12884         and local "use_insn".
12885         (forward_propagate_into): Likewise for locals "def_insn" and
12886         "use_insn".
12888 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12890         * function.c (emit_initial_value_sets): Strengthen local "seq"
12891         from rtx to rtx_insn *.
12892         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
12893         local "seq".
12894         (instantiate_virtual_regs): Likewise for local "insn".
12895         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
12896         (reorder_blocks_1): Likewise for param "insns" and local "insn".
12897         (expand_function_end): Likewise for locals "insn" and "seq".
12898         (epilogue_done): Likewise for local "insn".
12899         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
12900         "last", "trial".
12901         (reposition_prologue_and_epilogue_notes): Likewise for locals
12902         "insn", "last", "note", "first".
12903         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
12904         (pass_match_asm_constraints::execute): Likewise for local "insn".
12906 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12908         * output.h (final_scan_insn): Strengthen return type from rtx to
12909         rtx_insn *.
12910         (final_forward_branch_p): Likewise for param.
12911         (current_output_insn): Likewise for this global.
12913         * final.c (rtx debug_insn): Likewise for this variable.
12914         (current_output_insn): Likewise.
12915         (get_attr_length_1): Rename param "insn" to "uncast_insn",
12916         adding "insn" back in as an rtx_insn * with a checked cast, so
12917         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
12918         first param.
12919         (compute_alignments): Strengthen local "label" from rtx to
12920         rtx_insn *.
12921         (shorten_branches): Rename param from "first" to "uncast_first",
12922         introducing a new local rtx_insn * "first" using a checked cast to
12923         effectively strengthen "first" from rtx to rtx_insn * without
12924         affecting the type signature.  Strengthen locals "insn", "seq",
12925         "next", "label" from rtx to rtx_insn *.
12926         (change_scope): Strengthen param "orig_insn" and local "insn" from
12927         rtx to rtx_insn *.
12928         (final_start_function): Rename param from "first" to "uncast_first",
12929         introducing a new local rtx_insn * "first" using a checked cast to
12930         effectively strengthen "first" from rtx to rtx_insn * without
12931         affecting the type signature.  Strengthen local "insn" from rtx to
12932         rtx_insn *.
12933         (dump_basic_block_info): Strengthen param "insn" from rtx to
12934         rtx_insn *.
12935         (final): Rename param from "first" to "uncast_first",
12936         introducing a new local rtx_insn * "first" using a checked cast to
12937         effectively strengthen "first" from rtx to rtx_insn * without
12938         affecting the type signature.  Strengthen locals "insn", "next"
12939         from rtx to rtx_insn *.
12940         (output_alternate_entry_point): Strengthen param "insn" from rtx to
12941         rtx_insn *.
12942         (call_from_call_insn): Strengthen param "insn" from rtx to
12943         rtx_call_insn *.
12944         (final_scan_insn): Rename param from "insn" to "uncast_insn",
12945         introducing a new local rtx_insn * "insn" using a checked cast to
12946         effectively strengthen "insn" from rtx to rtx_insn * without
12947         affecting the type signature.  Strengthen return type and locals
12948         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
12949         now-redundant checked cast to rtx_insn * from both invocations of
12950         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
12951         introducing a local "call_insn" for use when invoking
12952         call_from_call_insn.
12953         (notice_source_line): Strengthen param "insn" from rtx to
12954         rtx_insn *.
12955         (leaf_function_p): Likewise for local "insn".
12956         (final_forward_branch_p): Likewise.
12957         (leaf_renumber_regs): Likewise for param "first".
12958         (rest_of_clean_state): Likewise for locals "insn" and "next".
12959         (self_recursive_call_p): Likewise for param "insn".
12960         (collect_fn_hard_reg_usage): Likewise for local "insn".
12961         (get_call_fndecl): Likewise for param "insn".
12962         (get_call_cgraph_rtl_info): Likewise.
12963         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
12964         introducing a new local rtx_insn * "insn" using a checked cast to
12965         effectively strengthen "insn" from rtx to rtx_insn * without
12966         affecting the type signature.
12968         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
12969         cast when assigning from param "insn" to current_output_insn.
12970         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
12971         so that we can assign it back to current_output_insn.
12973 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12975         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
12976         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
12977         atmxt540s and atmxt540sreva devices.
12978         * config/avr/avr-tables.opt: Regenerate.
12979         * config/avr/t-multilib: Regenerate.
12980         * doc/avr-mmcu.texi: Regenerate.
12982 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12984         * expr.c (convert_move): Strengthen local "insns" from rtx to
12985         rtx_insn *.
12986         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
12987         "top_label" from rtx to rtx_code_label *.
12988         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
12989         rtx_insn *.
12990         (emit_single_push_insn): Likewise for locals "prev", "last".
12991         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
12992         to rtx_code_label *.
12993         (store_constructor): Likewise for locals "loop_start", "loop_end".
12994         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
12995         rtx_insn *.
12996         (expand_expr_real_2): Likewise.
12997         (expand_expr_real_1): Strengthen local "label" from rtx to
12998         rtx_code_label *.
13000 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13002         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13003         from rtx to rtx_insn *.
13004         (store_bit_field_1): Likewise.
13005         (extract_bit_field_1): Likewise.
13006         (expand_mult_const): Likewise for local "insns".
13007         (expmed_mult_highpart): Strengthen local "label" from rtx to
13008         rtx_code_label *.
13009         (expand_smod_pow2): Likewise.
13010         (expand_sdiv_pow2): Likewise.
13011         (expand_divmod): Strengthen locals "last", "insn" from rtx to
13012         rtx_insn *.  Strengthen locals "label", "label1", "label2",
13013         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13014         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13015         (emit_store_flag): Likewise.
13016         (emit_store_flag_force): Strengthen local "label" from rtx to
13017         rtx_code_label *.
13018         (do_cmp_and_jump): Likewise for param "label".
13020 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13022         * explow.c (force_reg): Strengthen local "insn" from rtx to
13023         rtx_insn *.
13024         (adjust_stack_1): Likewise.
13025         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
13026         "final_label", "available_label", "space_available" from rtx to
13027         rtx_code_label *.
13028         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13029         (anti_adjust_stack_and_probe): Likewise.
13031 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13033         * except.h (sjlj_emit_function_exit_after): Strengthen param
13034         "after" from rtx to rtx_insn *.  This is only called with
13035         result of get_last_insn (in function.c) so type-change should be
13036         self-contained.
13038         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13039         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13040         to rtx_insn *.  These fields are only used from except.c so this
13041         type-change should be self-contained to this patch.
13043         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13044         local "last" from rtx to rtx_insn *.
13045         (dw2_build_landing_pads): Likewise for local "seq".
13046         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13047         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13048         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
13049         rtx to rtx_insn *.
13050         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13051         to rtx_insn *.
13052         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13053         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13054         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13055         referring to an insn.  Strengthen local "dispatch_label" from
13056         rtx to rtx_code_label *.
13057         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13058         rtx_insn *.
13059         (expand_eh_return): Strengthen local "around_label" from
13060         rtx to rtx_code_label *.
13061         (convert_to_eh_region_ranges): Strengthen locals "iter",
13062         "last_action_insn", "first_no_action_insn",
13063         "first_no_action_insn_before_switch",
13064         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13066 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13068         * dwarf2out.c (last_var_location_insn): Strengthen this variable
13069         from rtx to rtx_insn *.
13070         (cached_next_real_insn): Likewise.
13071         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13072         working with insns.
13073         (dwarf2out_var_location): Strengthen locals "next_real",
13074         "next_note", "expected_next_loc_note", "last_start", "insn" from
13075         rtx to rtx_insn *.
13077 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13079         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13080         from rtx to rtx_insn *.
13081         (create_pseudo_cfg): Likewise for local "insn".
13083 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13085         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13086         from rtx to rtx_insn *.
13087         (df_bb_regno_last_def_find): Likewise.
13089         * df-problems.c (df_rd_bb_local_compute): Likewise.
13090         (df_lr_bb_local_compute): Likewise.
13091         (df_live_bb_local_compute): Likewise.
13092         (df_chain_remove_problem): Likewise.
13093         (df_chain_create_bb): Likewise.
13094         (df_word_lr_bb_local_compute): Likewise.
13095         (df_remove_dead_eq_notes): Likewise for param "insn".
13096         (df_note_bb_compute): Likewise for local "insn".
13097         (simulate_backwards_to_point): Likewise.
13098         (df_md_bb_local_compute): Likewise.
13100         * df-scan.c (df_scan_free_bb_info): Likewise.
13101         (df_scan_start_dump): Likewise.
13102         (df_scan_start_block): Likewise.
13103         (df_install_ref_incremental): Likewise for local "insn".
13104         (df_insn_rescan_all): Likewise.
13105         (df_reorganize_refs_by_reg_by_insn): Likewise.
13106         (df_reorganize_refs_by_insn_bb): Likewise.
13107         (df_recompute_luids): Likewise.
13108         (df_bb_refs_record): Likewise.
13109         (df_update_entry_exit_and_calls): Likewise.
13110         (df_bb_verify): Likewise.
13112 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13114         * ddg.h (struct ddg_node): Strengthen fields "insn" and
13115         "first_note" from rtx to rtx_insn *.
13116         (get_node_of_insn): Likewise for param 2 "insn".
13117         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13119         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13120         rtx_insn *.
13121         (mem_write_insn_p): Likewise.
13122         (mem_access_insn_p): Likewise.
13123         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13124         (def_has_ccmode_p): Likewise for param "insn".
13125         (add_cross_iteration_register_deps): Likewise for locals
13126         "def_insn" and "use_insn".
13127         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13128         (build_intra_loop_deps): Likewise for local "src_insn".
13129         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13130         to rtx_insn *.
13131         (get_node_of_insn): Likewise for param "insn".
13133 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13135         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13136         (deletable_insn_p): Strengthen param "insn" from rtx to
13137         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
13138         find_call_stack_args, since this is guarded by CALL_P (insn).
13139         (marked_insn_p): Strengthen param "insn" from rtx to
13140         rtx_insn *.
13141         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
13142         invoking find_call_stack_args, since this is guarded by
13143         CALL_P (insn).
13144         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13145         rtx_insn *; we know this is an insn since this was called by
13146         mark_nonreg_stores.
13147         (mark_nonreg_stores_2): Likewise.
13148         (mark_nonreg_stores): Strengthen param "insn" from rtx to
13149         rtx_insn *.
13150         (find_call_stack_args): Strengthen param "call_insn" from rtx to
13151         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13152         to rtx_insn *.
13153         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13154         from rtx to rtx_insn *.
13155         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13156         "next", "ref_insn".
13157         (delete_unmarked_insns): Likewise for locals "insn", "next".
13158         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13159         (mark_reg_dependencies): Likewise for param "insn".
13160         (rest_of_handle_ud_dce): Likewise for local "insn".
13161         (word_dce_process_block): Likewise.
13162         (dce_process_block): Likewise.
13164 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13166         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
13167         from rtx to rtx_insn *.
13168         (struct change_cc_mode_args): Likewise for field "insn".
13169         (this_insn): Strengthen from rtx to rtx_insn *.
13170         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
13171         with insn.
13172         (validate_canon_reg): Strengthen param "insn" from rtx to
13173         rtx_insn *.
13174         (canon_reg): Likewise.
13175         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
13176         dealing with insn.
13177         (record_jump_equiv): Strengthen param "insn" from rtx to
13178         rtx_insn *.
13179         (try_back_substitute_reg): Likewise, also for locals "prev",
13180         "bb_head".
13181         (find_sets_in_insn): Likewise for param "insn".
13182         (canonicalize_insn): Likewise.
13183         (cse_insn): Likewise.  Add a checked cast.
13184         (invalidate_from_clobbers): Likewise for param "insn".
13185         (invalidate_from_sets_and_clobbers): Likewise.
13186         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
13187         dealing with insn.
13188         (cse_prescan_path): Strengthen local "insn" from rtx to
13189         rtx_insn *.
13190         (cse_extended_basic_block): Likewise for locals "insn" and
13191         "prev_insn".
13192         (cse_main): Likewise for param "f".
13193         (check_for_label_ref): Likewise for local "insn".
13194         (set_live_p): Likewise for second param ("insn").
13195         (insn_live_p): Likewise for first param ("insn") and for local
13196         "next".
13197         (cse_change_cc_mode_insn): Likewise for first param "insn".
13198         (cse_change_cc_mode_insns): Likewise for first and second params
13199         "start" and "end".
13200         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13201         and "end".
13202         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13203         "cc_src_insn".
13205 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13206             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13207             Anna Tikhonova  <anna.tikhonova@intel.com>
13208             Ilya Tocar  <ilya.tocar@intel.com>
13209             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13210             Ilya Verbin  <ilya.verbin@intel.com>
13211             Kirill Yukhin  <kirill.yukhin@intel.com>
13212             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13214         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13215         New.
13216         * config/i386/sse.md
13217         (define_mode_iterator VI248_AVX2): Delete.
13218         (define_mode_iterator VI2_AVX2_AVX512BW): New.
13219         (define_mode_iterator VI48_AVX2): Ditto.
13220         (define_insn <shift_insn><mode>3): Delete.
13221         (define_insn "<shift_insn><mode>3<mask_name>" with
13222         VI2_AVX2_AVX512BW): New.
13223         (define_insn "<shift_insn><mode>3<mask_name>" with
13224         VI48_AVX2): Ditto.
13226 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13227             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13228             Anna Tikhonova  <anna.tikhonova@intel.com>
13229             Ilya Tocar  <ilya.tocar@intel.com>
13230             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13231             Ilya Verbin  <ilya.verbin@intel.com>
13232             Kirill Yukhin  <kirill.yukhin@intel.com>
13233             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13235         * config/i386/sse.md
13236         (define_mode_iterator VI4F_BRCST32x2): New.
13237         (define_mode_attr 64x2_mode): Ditto.
13238         (define_mode_attr 32x2mode): Ditto.
13239         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13240         with VI4F_BRCST32x2): Ditto.
13241         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13242         with V16FI mode iterator): Ditto.
13243         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13244         with V16FI): Ditto.
13245         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13246         with VI8F_BRCST64x2): Ditto.
13248 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13249             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13250             Anna Tikhonova  <anna.tikhonova@intel.com>
13251             Ilya Tocar  <ilya.tocar@intel.com>
13252             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13253             Ilya Verbin  <ilya.verbin@intel.com>
13254             Kirill Yukhin  <kirill.yukhin@intel.com>
13255             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13257         * config/i386/sse.md
13258         (define_mode_iterator VI8_AVX512VL): New.
13259         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13261 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13263         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13264         (define_mode_iterator V48_AVX512VL): New.
13265         (define_mode_iterator V12_AVX512VL): Ditto.
13266         (define_insn <avx512>_load<mode>_mask): Split into two similar
13267         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13268         Refactor output template.
13269         (define_insn "<avx512>_store<mode>_mask"): Ditto.
13271 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13273         * cprop.c (struct occr): Strengthen field "insn" from rtx to
13274         rtx_insn *.
13275         (reg_available_p): Likewise for param "insn".
13276         (insert_set_in_table): Likewise.
13277         (hash_scan_set): Likewise.
13278         (hash_scan_insn): Likewise.
13279         (make_set_regs_unavailable): Likewise.
13280         (compute_hash_table_work): Likewise for local "insn".
13281         (reg_not_set_p): Strengthen param "insn" from const_rtx to
13282         const rtx_insn *.
13283         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13284         (try_replace_reg): Likewise.
13285         (find_avail_set): Likewise.
13286         (cprop_jump): Likewise for params "setcc", "jump".
13287         (constprop_register): Likewise for param "insn".
13288         (cprop_insn): Likewise.
13289         (do_local_cprop): Likewise.
13290         (local_cprop_pass): Likewise for local "insn".
13291         (bypass_block): Likewise for params "setcc" and "jump".
13292         (bypass_conditional_jumps): Likewise for locals "setcc" and
13293         "insn".
13294         (one_cprop_pass): Likewise for local "insn".
13296 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13298         * compare-elim.c (struct comparison_use): Strengthen field "insn"
13299         from rtx to rtx_insn *.
13300         (struct comparison): Likewise, also for field "prev_clobber".
13301         (conforming_compare): Likewise for param "insn".
13302         (arithmetic_flags_clobber_p): Likewise.
13303         (find_flags_uses_in_insn): Likewise.
13304         (find_comparison_dom_walker::before_dom_children): Likewise for
13305         locals "insn", "next", "last_clobber".
13306         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
13308 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13310         * combine-stack-adj.c (struct csa_reflist): Strengthen field
13311         "insn" from rtx to rtx_insn *.
13312         (single_set_for_csa): Likewise for param "insn".
13313         (record_one_stack_ref): Likewise.
13314         (try_apply_stack_adjustment): Likewise.
13315         (struct record_stack_refs_data): Likewise for field "insn".
13316         (maybe_move_args_size_note): Likewise for params "last" and "insn".
13317         (prev_active_insn_bb): Likewise for return type and param "insn".
13318         (next_active_insn_bb): Likewise.
13319         (force_move_args_size_note): Likewise for params "prev" and "last"
13320         and locals "test", "next_candidate", "prev_candidate".
13321         (combine_stack_adjustments_for_block): Strengthen locals
13322         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
13323         rtx_insn *.
13325 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13327         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
13328         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
13329         (subst_insn): Likewise for this variable.
13330         (added_links_insn): Likewise.
13331         (struct insn_link): Likewise for field "insn".
13332         (alloc_insn_link): Likewise for param "insn".
13333         (struct undobuf): Likewise for field "other_insn".
13334         (find_single_use): Likewise for param "insn" and local "next".
13335         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
13336         (delete_noop_moves): Likewise for locals "insn", "next".
13337         (create_log_links): Likewise for locals "insn", "use_insn".
13338         Strengthen local "next_use" from rtx * to rtx_insn **.
13339         (insn_a_feeds_b): Likewise for params "a", "b".
13340         (combine_instructions): Likewise for param "f" and locals "insn",
13341         "next", "prev", "first", "last_combined_insn", "link", "link1",
13342         "temp".  Replace use of NULL_RTX with NULL when referring to
13343         insns.
13344         (setup_incoming_promotions): Likewise for param "first"
13345         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
13346         (can_combine_p): Likewise for params "insn", "i3", "pred",
13347         "pred2", "succ", "succ2" and for local "p".
13348         (combinable_i3pat): Likewise for param "i3".
13349         (cant_combine_insn_p): Likewise for param "insn".
13350         (likely_spilled_retval_p): Likewise.
13351         (adjust_for_new_dest): Likewise.
13352         (update_cfg_for_uncondjump): Likewise, also for local "insn".
13353         (try_combine): Likewise for return type and for params "i3", "i2",
13354         "i1", "i0", "last_combined_insn", and for locals "insn",
13355         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
13356         "i0_insn".  Eliminate local "tem" in favor of new locals
13357         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
13358         checked cast for now to rtx_insn * on the return type of
13359         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
13360         insns.
13361         (find_split_point): Strengthen param "insn" from rtx to
13362         rtx_insn *.
13363         (simplify_set): Likewise for local "other_insn".
13364         (recog_for_combine): Likewise for param "insn".
13365         (record_value_for_reg): Likewise.
13366         (record_dead_and_set_regs_1): Likewise for local
13367         "record_dead_insn".
13368         (record_dead_and_set_regs): Likewise for param "insn".
13369         (record_promoted_value): Likewise.
13370         (check_promoted_subreg): Likewise.
13371         (get_last_value_validate): Likewise.
13372         (reg_dead_at_p): Likewise.
13373         (move_deaths): Likewise for param "to_insn".
13374         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
13375         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
13376         in favor of new locals "tem_note" and "tem_insn", the latter being
13377         an rtx_insn *.
13378         (distribute_links): Strengthen locals "place", "insn" from rtx to
13379         rtx_insn *.
13381 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13383         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
13384         than a const_rtx.
13385         (can_delete_label_p): Require a const rtx_code_label * rather than
13386         a const_rtx.
13387         (delete_insn): Add checked cast to rtx_code_label * when we know
13388         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
13389         rtx to rtx_insn *.
13390         (delete_insn_chain): Strengthen locals "prev" and "current" from
13391         rtx to rtx_insn *.  Add a checked cast when assigning from
13392         "finish" (strengthening the params will come later).  Add a
13393         checked cast to rtx_note * in region where we know
13394         NOTE_P (current).
13395         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
13396         rtx_insn *.
13397         (compute_bb_for_insn): Likewise.
13398         (free_bb_for_insn): Likewise for local "insn".
13399         (compute_bb_for_insn): Likewise.
13400         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
13401         local "insn" from rtx to rtx_insn *
13402         (flow_active_insn_p): Require a const rtx_insn * rather than a
13403         const_rtx.
13404         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
13405         rtx_insn *.
13406         (can_fallthru): Likewise for locals "insn" and "insn2".
13407         (bb_note): Likewise for local "note".
13408         (first_insn_after_basic_block_note): Likewise for local "note" and
13409         for return type.
13410         (rtl_split_block): Likewise for locals "insn" and "next".
13411         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
13412         "end".
13413         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
13414         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
13415         "prev", "tmp".
13416         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
13417         them), "kill_from", "barrier", "new_insn".
13418         (patch_jump_insn): Likewise for params "insn", "old_label".
13419         (redirect_branch_edge): Likewise for locals "old_label", "insn".
13420         (force_nonfallthru_and_redirect): Likewise for locals "insn",
13421         "old_label", "new_label".
13422         (rtl_tidy_fallthru_edge): Likewise for local "q".
13423         (rtl_split_edge): Likewise for locals "before", "last".
13424         (commit_one_edge_insertion): Likewise for locals "before",
13425         "after", "insns", "tmp", "last", adding a checked cast where
13426         currently necessary.
13427         (commit_edge_insertions): Likewise.
13428         (rtl_dump_bb): Likewise for locals "insn", "last".
13429         (print_rtl_with_bb): Likewise for local "x".
13430         (rtl_verify_bb_insns): Likewise for local "x".
13431         (rtl_verify_bb_pointers): Likewise for local "insn".
13432         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
13433         "head", "end".
13434         (rtl_verify_fallthru): Likewise for local "insn".
13435         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
13436         (purge_dead_edges): Likewise for local "insn".
13437         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
13438         (skip_insns_after_block): Likewise for return type and for locals
13439         "insn", "last_insn", "next_head", "prev".
13440         (record_effective_endpoints): Likewise for locals "next_insn",
13441         "insn", "end".
13442         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
13443         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
13444         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
13445         (duplicate_insn_chain): For now, add checked cast from rtx to
13446         rtx_insn * when returning insn.
13447         (cfg_layout_duplicate_bb): Likewise for local "insn".
13448         (cfg_layout_delete_block): Likewise for locals "insn", "next",
13449         "prev", "remaints".
13450         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
13451         (rtl_block_empty_p): Likewise.
13452         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
13453         "split_point", "last".
13454         (rtl_block_ends_with_call_p): Likewise for local "insn".
13455         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
13456         const rtx_insn *.
13457         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
13458         "split_at_insn" from rtx to rtx_insn *.
13459         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
13460         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
13461         to const rtx_insn *.
13462         (rtl_account_profile_record): Likewise.
13464 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13466         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
13467         rtx to rtx_insn *.
13468         (average_num_loop_insns): Likewise.
13469         (init_set_costs): Likewise for local "seq".
13470         (seq_cost): Likewise for param "seq", from const_rtx to const
13471         rtx_insn *.
13473 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13475         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
13476         rtx to rtx_insn *.
13478 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13480         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
13481         "f1" and "f2" from rtx * to rtx_insn **.
13482         (flow_find_head_matching_sequence): Likewise.
13484         * cfgcleanup.c (try_simplify_condjump): Strengthen local
13485         "cbranch_insn" from rtx to rtx_insn *.
13486         (thread_jump): Likewise for local "insn".
13487         (try_forward_edges): Likewise for local "last".
13488         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
13489         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
13490         "real_b_end".
13491         (can_replace_by): Likewise for params "i1", "i2".
13492         (old_insns_match_p): Likewise.
13493         (merge_notes): Likewise.
13494         (walk_to_nondebug_insn): Likewise for param "i1".
13495         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
13496         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
13497         "afterlast1", "afterlast2" from rtx to rtx_insn *.
13498         (flow_find_head_matching_sequence): Strengthen params "f1" and
13499         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
13500         "last1", "last2", "beforelast1", "beforelast2" from rtx to
13501         rtx_insn *.
13502         (outgoing_edges_match): Likewise for locals "last1", "last2".
13503         (try_crossjump_to_edge): Likewise for local "insn".
13504         Replace call to for_each_rtx with for_each_rtx_in_insn.
13506         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
13507         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
13508         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
13509         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
13510         (try_optimize_cfg): Strengthen local "last" from rtx to
13511         rtx_insn *.
13512         (delete_dead_jumptables): Likewise for locals "insn", "next",
13513         "label".
13515         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
13516         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
13517         "rtx else_first_tail", to reflect the basic-block.h changes above.
13519 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13521         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
13522         rtx_insn *.
13523         (purge_dead_tablejump_edges): Likewise.
13524         (find_bb_boundaries): Likewise for locals "insn", "end",
13525         "flow_transfer_insn".
13527 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13529         * caller-save.c (save_call_clobbered_regs): Strengthen locals
13530         "ins" and "prev" from rtx to rtx_insn *.
13532 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13534         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
13535         rtx_insn *.
13536         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
13537         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
13538         "scan_start".
13539         (load_register_parameters): Likewise for local "before_arg".
13540         (check_sibcall_argument_overlap): Likewise for param "insn".
13541         (expand_call): Likewise for locals "normal_call_insns",
13542         "tail_call_insns", "insns", "before_call", "after_args",
13543         "before_arg", "last", "prev".  Strengthen one of the "last" from
13544         rtx to rtx_call_insn *.
13545         (fixup_tail_calls): Strengthen local "insn" from rtx to
13546         rtx_insn *.
13547         (emit_library_call_value_1): Likewise for locals "before_call" and
13548         "last".
13550 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13552         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13553         and "last" from rtx to rtx_insn *.
13554         (expand_builtin_nonlocal_goto): Likewise for local "insn".
13555         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13556         rtx_call_insn *.
13557         (expand_errno_check): Strengthen local "lab" from rtx to
13558         rtx_code_label *.
13559         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13560         rtx_insn *.
13561         (expand_builtin_mathfn_2): Likewise.
13562         (expand_builtin_mathfn_ternary): Likewise.
13563         (expand_builtin_mathfn_3): Likewise.
13564         (expand_builtin_interclass_mathfn): Likewise for local "last".
13565         (expand_builtin_int_roundingfn): Likewise for local "insns".
13566         (expand_builtin_int_roundingfn_2): Likewise.
13567         (expand_builtin_strlen): Likewise for local "before_strlen".
13568         (expand_builtin_strncmp): Likewise for local "seq".
13569         (expand_builtin_signbit): Likewise for local "last".
13570         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13571         from rtx to rtx_code_label *.
13572         (expand_stack_restore):  Strengthen local "prev" from rtx to
13573         rtx_insn *.
13575 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13577         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13578         to rtx_insn *.
13579         (struct btr_def_s): Likewise.
13580         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13581         const rtx_insn *.
13582         (add_btr_def): Likewise.
13583         (new_btr_user): Likewise.
13584         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13585         rtx to rtx_insn *.
13586         (link_btr_uses): Likewise.
13587         (move_btr_def): Likewise for locals "insp", "old_insn",
13588         "new_insn".  Add checked cast to rtx_insn * for now on result of
13589         gen_move_insn.
13590         (can_move_up): Strengthen param "insn" from const_rtx to
13591         const rtx_insn *.
13593 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13595         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13596         rtx_insn *.
13597         (get_uncond_jump_length): Likewise for locals "label", "jump".
13598         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13599         "jump", "insn".
13600         (add_labels_and_missing_jumps): Likewise for local "new_jump".
13601         (fix_up_fall_thru_edges): Likewise for local "old_jump".
13602         (find_jump_block): Likewise for local "insn".
13603         (fix_crossing_conditional_branches): Likewise for locals
13604         "old_jump", "new_jump".
13605         (fix_crossing_unconditional_branches): Likewise for locals
13606         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13607         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13609 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13611         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13612         rtx to rtx_insn *.
13613         (struct mem_insn): Likewise for field "insn".
13614         (reg_next_use): Strengthen from rtx * to rtx_insn **.
13615         (reg_next_inc_use): Likewise.
13616         (reg_next_def): Likewise.
13617         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13618         from rtx to rtx_insn *.
13619         (move_insn_before): Likewise for param "next_insn" and local "insns".
13620         (attempt_change): Likewise for local "mov_insn".
13621         (try_merge): Likewise for param "last_insn".
13622         (get_next_ref): Likewise for return type and local "insn".
13623         Strengthen param "next_array" from rtx * to rtx_insn **.
13624         (parse_add_or_inc): Strengthen param "insn" from rtx to
13625         rtx_insn *.
13626         (find_inc): Likewise for locals "insn" and "other_insn" (three of
13627         the latter).
13628         (merge_in_block): Likewise for locals "insn", "curr",
13629         "other_insn".
13630         (pass_inc_dec::execute): Update allocations of the arrays to
13631         reflect the stronger types.
13633 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13635         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13636         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
13637         from rtx to rtx_code_label *.
13639 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13641         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
13642         to rtx_insn *.
13644 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
13646         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
13647         generated a warning and prevented bootstrapping the compiler.
13649 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13651         * rtl.h (delete_related_insns): Strengthen return type from rtx to
13652         rtx_insn *.
13654         * jump.c (delete_related_insns): Likewise, also for locals "next"
13655         and "prev".
13657 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13659         * genautomata.c (output_internal_insn_latency_func): When writing
13660         the function "internal_insn_latency" to insn-automata.c,
13661         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13662         allowing the optional guard function of (define_bypass) clauses to
13663         expect a pair of rtx_insn *, rather than a pair of rtx.
13664         (output_insn_latency_func): When writing the function
13665         "insn_latency", add an "uncast_" prefix to params "insn" and
13666         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13667         using checked casts from the params, thus enabling the above
13668         change to the generated "internal_insn_latency" function.
13670 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
13672         PR tree-optimization/62091
13673         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13674         handle correctly arrays.
13675         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13676         inheritance binfos.
13677         (record_known_type): Walk into inner type.
13678         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13679         condition on no type changes.
13681 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13683         * genattrtab.c (write_attr_get): Within the generated get_attr_
13684         functions, rename param "insn" to "uncast_insn" and reintroduce
13685         "insn" as an local rtx_insn * using a checked cast, so that "insn"
13686         is an rtx_insn * within insn-attrtab.c
13688 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13690         * output.h (peephole): Strengthen return type from rtx to
13691         rtx_insn *.
13692         * rtl.h (delete_for_peephole): Likewise for both params.
13693         * genpeep.c (main): In generated "peephole" function, strengthen
13694         return type and local "insn" from rtx to rtx_insn *.  For now,
13695         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
13696         rtx_insn *, with a checked cast.
13697         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
13698         locals "insn", "next", "prev" from rtx to rtx_insn *.
13700 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
13702         PR tree-optimization/62112
13703         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
13704         * gimple-iterator.h (gsi_replace): Return bool.
13705         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
13706         moved from ref_may_alias_global_p.
13707         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
13708         New overloads.
13709         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
13710         (stmt_kills_ref_p_1): Rename...
13711         (stmt_kills_ref_p): ... to this.
13712         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
13713         stmt_kills_ref_p): Declare.
13714         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
13715         Move the self-assignment case...
13716         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
13718 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13720         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
13722         * emit-rtl.c (try_split): Likewise, also for locals "before" and
13723         "after".  For now, don't strengthen param "trial", which requires
13724         adding checked casts when returning it.
13726 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13728         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
13729         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
13730         "var_location" hook from rtx to rtx_insn *.
13731         (debug_nothing_rtx): Delete in favor of...
13732         (debug_nothing_rtx_code_label): New prototype.
13733         (debug_nothing_rtx_rtx): Delete unused prototype.
13734         (debug_nothing_rtx_insn): New prototype.
13736         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
13737         invoking debug_hooks->var_location (in two places, one in a NOTE
13738         case of a switch statement, the other guarded by a CALL_P
13739         conditional.  Add checked cast to rtx_code_label * when invoking
13740         debug_hooks->label (within CODE_LABEL case of switch statement).
13742         * dbxout.c (dbx_debug_hooks): Update "label" hook from
13743         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
13744         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
13745         (xcoff_debug_hooks): Likewise.
13746         * debug.c (do_nothing_debug_hooks): Likewise.
13747         (debug_nothing_rtx): Delete in favor of...
13748         (debug_nothing_rtx_insn): New function.
13749         (debug_nothing_rtx_rtx): Delete unused function.
13750         (debug_nothing_rtx_code_label): New function.
13751         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
13752         debug_nothing_rtx to debug_nothing_rtx_code_label.
13753         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
13754         to rtx_insn *.
13755         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
13756         debug_nothing_rtx to debug_nothing_rtx_insn.
13757         (sdbout_label): Strengthen param "insn" from rtx to
13758         rtx_code_label *.
13759         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
13760         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
13761         "var_location" hook from debug_nothing_rtx to
13762         debug_nothing_rtx_insn.
13764 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13766         * recog.h (insn_output_fn): Update this function typedef to match
13767         the changes below to the generated output functions, strengthening
13768         the 2nd param from rtx to rtx_insn *.
13770         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
13771         insn when invoking an output function, to match the new signature
13772         of insn_output_fn with a stronger second param.
13774         * genconditions.c (write_header): In the generated code for
13775         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
13776         to match the other changes in this patch.
13778         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
13779         the generated "gen_" functions from rtx to rtx_insn * within their
13780         implementations.
13782         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
13783         the subfunctions within the generated "recog_", "split", "peephole2"
13784         function trees from rtx to rtx_insn *.  For now, the top-level
13785         generated functions ("recog", "split", "peephole2") continue to
13786         take a plain rtx for "insn", to avoid introducing dependencies on
13787         other patches.  Rename this 2nd param from "insn" to
13788         "uncast_insn", and reintroduce "insn" as a local variable of type
13789         rtx_insn *, initialized at the top of the generated function with
13790         a checked cast on "uncast_insn".
13791         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
13792         the generated "gen_" functions from rtx to rtx_insn * within their
13793         prototypes.
13795         * genoutput.c (process_template): Strengthen the 2nd param within
13796         the generated "output_" functions "insn" from rtx to rtx_insn *.
13798 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
13800         * tree-profile.c (tree_profiling): Skip external functions
13801         when doing coverage instrumentation.
13802         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
13804 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13806         * config/rs6000/altivec.h (vec_cpsgn): New #define.
13807         (vec_mergee): Likewise.
13808         (vec_mergeo): Likewise.
13809         (vec_cntlz): Likewise.
13810         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
13811         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
13812         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
13813         VMRGEW, and VMRGOW.
13814         * doc/extend.texi: Document various forms of vec_cpsgn,
13815         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
13816         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
13817         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
13818         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
13819         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
13821 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13823         * config/rs6000/rs6000.c (context.h): New include.
13824         (tree-pass.h): Likewise.
13825         (make_pass_analyze_swaps): New decl.
13826         (rs6000_option_override): Register pass_analyze_swaps.
13827         (swap_web_entry): New subsclass of web_entry_base (df.h).
13828         (special_handling_values): New enum.
13829         (union_defs): New function.
13830         (union_uses): Likewise.
13831         (insn_is_load_p): Likewise.
13832         (insn_is_store_p): Likewise.
13833         (insn_is_swap_p): Likewise.
13834         (rtx_is_swappable_p): Likewise.
13835         (insn_is_swappable_p): Likewise.
13836         (chain_purpose): New enum.
13837         (chain_contains_only_swaps): New function.
13838         (mark_swaps_for_removal): Likewise.
13839         (swap_const_vector_halves): Likewise.
13840         (adjust_subreg_index): Likewise.
13841         (permute_load): Likewise.
13842         (permute_store): Likewise.
13843         (handle_special_swappables): Likewise.
13844         (replace_swap_with_copy): Likewise.
13845         (dump_swap_insn_table): Likewise.
13846         (rs6000_analyze_swaps): Likewise.
13847         (pass_data_analyze_swaps): New pass_data.
13848         (pass_analyze_swaps): New rtl_opt_pass.
13849         (make_pass_analyze_swaps): New function.
13850         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
13852 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13854         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
13855         type from rtx to rtx_insn *.
13856         (create_copy_of_insn_rtx): Likewise.
13857         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
13858         (create_copy_of_insn_rtx): Likewise, also for local "res".
13860 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13862         * rtl.h (find_first_parameter_load): Strengthen return type from
13863         rtx to rtx_insn *.
13864         * rtlanal.c (find_first_parameter_load): Strengthen return type
13865         from rtx to rtx_insn *.  Add checked cast for now, to postpone
13866         strengthening the params.
13868 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13870         PR fortran/44054
13871         * diagnostic.c: Set default caret.
13872         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
13873         line is needed.
13874         * diagnostic.h (struct diagnostic_context):
13876 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13878         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
13879         (sel_bb_head): Strengthen return type insn_t (currently just an
13880         rtx) to rtx_insn *.
13881         (sel_bb_end): Likewise.
13883         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
13884         (sel_bb_head): Strengthen return type and local "head" from
13885         insn_t (currently just an rtx) to rtx_insn *.
13886         (sel_bb_end): Likewise for return type.
13887         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
13888         working with insn.
13890 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13892         * basic-block.h (get_last_bb_insn): Strengthen return type from
13893         rtx to rtx_insn *.
13894         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
13895         end".
13897 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13899         PR fortran/44054
13900         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
13901         to here ...
13902         (diagnostic_report_diagnostic): ... from here.
13903         * toplev.c (general_init): Move code to c-family.
13905 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13907         * df.h (web_entry_base): Replace existing struct web_entry with a
13908         new class web_entry_base with only the predecessor member.
13909         (unionfind_root): Remove declaration and move to class member.
13910         (unionfind_union): Remove declaration and move to friend
13911         function.
13912         (union_defs): Remove declaration.
13913         * web.c (web_entry_base::unionfind_root): Modify to be member
13914         function and adjust accessors.
13915         (unionfind_union): Modify to be friend function and adjust
13916         accessors.
13917         (web_entry): New subclass of web_entry_base containing the reg
13918         member.
13919         (union_match_dups): Modify for struct -> class changes.
13920         (union_defs): Likewise.
13921         (entry_register): Likewise.
13922         (pass_web::execute): Likewise.
13924 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
13926         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
13927         builtin define __VEC_ELEMENT_REG_ORDER__.
13929 2014-08-20  Martin Jambor  <mjambor@suse.cz>
13930             Wei Mi  <wmi@google.com>
13932         PR ipa/60449
13933         PR middle-end/61776
13934         * tree-ssa-operands.c (update_stmt_operands): Remove
13935         MODIFIED_NORETURN_CALLS.
13936         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
13937         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
13938         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
13939         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
13940         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
13941         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
13942         (gimple_call_set_ctrl_altering): New func.
13943         (gimple_call_ctrl_altering_p): Ditto.
13944         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
13945         (make_blocks): Use gimple_call_initialize_ctrl_altering.
13946         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
13947         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
13948         remove MODIFIED_NORETURN_CALLS.
13950 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
13952         * coverage.c (coverage_compute_profile_id): Return non-0;
13953         also handle symbols with unique name.
13954         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
13956 2014-08-20  Steve Ellcey  <sellcey@mips.com>
13958         PR middle-end/49191
13959         * doc/sourcebuild.texi (non_strict_align): New.
13961 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
13963         * cgraphunit.c (ipa_passes, compile): Reshedule
13964         symtab_remove_unreachable_nodes passes; update comments.
13965         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
13966         TODO_remove_functions before the pass; the functions ought to be
13967         already removed.
13968         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
13969         TODO_remove_functions.
13970         * passes.c (pass_data_early_local_passes): Do not schedule function
13971         removal.
13972         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
13974 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13976         PR c/59304
13977         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
13978         before setting the option.
13979         * diagnostic.c (diagnostic_classify_diagnostic): Record
13980         command-line status.
13982 2014-08-20  Richard Biener  <rguenther@suse.de>
13984         PR lto/62190
13985         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
13986         to build uint{16,32,64}_type_node.
13988 2014-08-20  Terry Guo  <terry.guo@arm.com>
13990         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
13991         with immediate_operand.
13993 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
13995         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
13996         "insn" from an as_a to a safe_as_a, for the case when "insn" is
13997         NULL.
13999 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14001         PR preprocessor/51303
14002         * incpath.c (remove_duplicates): Use cpp_warning.
14004 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14006         PR c/60975
14007         PR c/53063
14008         * doc/options.texi (CPP): Document it.
14009         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14010         * optc-gen.awk: Handle CPP.
14011         * opth-gen.awk: Likewise.
14013 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14015         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14016         rtx_insn *.
14017         (duplicate_insn_chain): Likewise.
14018         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14019         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
14020         checked cast for now (until we can strengthen the params in the
14021         same way).
14022         (duplicate_insn_chain): Likewise.
14024 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14026         * rtl.h (next_cc0_user): Strengthen return type from rtx to
14027         rtx_insn *.
14028         (prev_cc0_setter): Likewise.
14030         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14031         rtx_insn *, adding checked casts for now as necessary.
14032         (prev_cc0_setter): Likewise.
14034 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14036         * expr.h (emit_move_insn): Strengthen return type from rtx to
14037         rtx_insn *.
14038         (emit_move_insn_1): Likewise.
14039         (emit_move_complex_push): Likewise.
14040         (emit_move_complex_parts): Likewise.
14042         * expr.c (emit_move_via_integer): Strengthen return type from rtx
14043         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
14044         with insns.
14045         (emit_move_complex_push): Strengthen return type from rtx to
14046         rtx_insn *.
14047         (emit_move_complex): Likewise, also for local "ret".
14048         (emit_move_ccmode): Likewise.
14049         (emit_move_multi_word): Likewise for return type and locals
14050         "last_insn", "seq".
14051         (emit_move_insn_1): Likewise for return type and locals "result",
14052         "ret".
14053         (emit_move_insn): Likewise for return type and local "last_insn".
14054         (compress_float_constant): Likewise.
14056 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14058         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14059         from rtx to rtx_insn *.
14061         * rtl.h (emit_insn_before): Likewise.
14062         (emit_insn_before_noloc): Likewise.
14063         (emit_insn_before_setloc): Likewise.
14064         (emit_jump_insn_before): Likewise.
14065         (emit_jump_insn_before_noloc): Likewise.
14066         (emit_jump_insn_before_setloc): Likewise.
14067         (emit_call_insn_before): Likewise.
14068         (emit_call_insn_before_noloc): Likewise.
14069         (emit_call_insn_before_setloc): Likewise.
14070         (emit_debug_insn_before): Likewise.
14071         (emit_debug_insn_before_noloc): Likewise.
14072         (emit_debug_insn_before_setloc): Likewise.
14073         (emit_label_before): Likewise.
14074         (emit_insn_after): Likewise.
14075         (emit_insn_after_noloc): Likewise.
14076         (emit_insn_after_setloc): Likewise.
14077         (emit_jump_insn_after): Likewise.
14078         (emit_jump_insn_after_noloc): Likewise.
14079         (emit_jump_insn_after_setloc): Likewise.
14080         (emit_call_insn_after): Likewise.
14081         (emit_call_insn_after_noloc): Likewise.
14082         (emit_call_insn_after_setloc): Likewise.
14083         (emit_debug_insn_after): Likewise.
14084         (emit_debug_insn_after_noloc): Likewise.
14085         (emit_debug_insn_after_setloc): Likewise.
14086         (emit_label_after): Likewise.
14087         (emit_insn): Likewise.
14088         (emit_debug_insn): Likewise.
14089         (emit_jump_insn): Likewise.
14090         (emit_call_insn): Likewise.
14091         (emit_label): Likewise.
14092         (gen_clobber): Likewise.
14093         (emit_clobber): Likewise.
14094         (gen_use): Likewise.
14095         (emit_use): Likewise.
14096         (emit): Likewise.
14098         (emit_barrier_before): Strengthen return type from rtx to
14099         rtx_barrier *.
14100         (emit_barrier_after): Likewise.
14101         (emit_barrier): Likewise.
14103         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
14104         from rtx to rtx_insn *.  Add checked casts for now when converting
14105         "last" from rtx to rtx_insn *.
14106         (emit_insn_before_noloc): Likewise for return type.
14107         (emit_jump_insn_before_noloc): Likewise.
14108         (emit_call_insn_before_noloc): Likewise.
14109         (emit_debug_insn_before_noloc): Likewise.
14110         (emit_barrier_before): Strengthen return type and local "insn"
14111         from rtx to rtx_barrier *.
14112         (emit_label_before): Strengthen return type from rtx to
14113         rtx_insn *.  Add checked cast for now when returning param
14114         (emit_pattern_after_noloc): Strengthen return type from rtx to
14115         rtx_insn *.  Add checked casts for now when converting "last" from
14116         rtx to rtx_insn *.
14117         (emit_insn_after_noloc): Strengthen return type from rtx to
14118         rtx_insn *.
14119         (emit_jump_insn_after_noloc): Likewise.
14120         (emit_call_insn_after_noloc): Likewise.
14121         (emit_debug_insn_after_noloc): Likewise.
14122         (emit_barrier_after): Strengthen return type from rtx to
14123         rtx_barrier *.
14124         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14125         Add checked cast for now when converting "label" from rtx to
14126         rtx_insn *.
14127         (emit_pattern_after_setloc): Strengthen return type from rtx to
14128         rtx_insn *.  Add checked casts for now when converting "last" from
14129         rtx to rtx_insn *.
14130         (emit_pattern_after): Strengthen return type from rtx to
14131         rtx_insn *.
14132         (emit_insn_after_setloc): Likewise.
14133         (emit_insn_after): Likewise.
14134         (emit_jump_insn_after_setloc): Likewise.
14135         (emit_jump_insn_after): Likewise.
14136         (emit_call_insn_after_setloc): Likewise.
14137         (emit_call_insn_after): Likewise.
14138         (emit_debug_insn_after_setloc): Likewise.
14139         (emit_debug_insn_after): Likewise.
14140         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
14141         when converting "last" from rtx to rtx_insn *.
14142         (emit_pattern_before): Strengthen return type from rtx to
14143         rtx_insn *.
14144         (emit_insn_before_setloc): Likewise.
14145         (emit_insn_before): Likewise.
14146         (emit_jump_insn_before_setloc): Likewise.
14147         (emit_jump_insn_before): Likewise.
14148         (emit_call_insn_before_setloc): Likewise.
14149         (emit_call_insn_before): Likewise.
14150         (emit_debug_insn_before_setloc): Likewise.
14151         (emit_debug_insn_before): Likewise.
14152         (emit_insn): Strengthen return type and locals "last", "insn",
14153         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
14154         within cases where we know we have an insn.
14155         (emit_debug_insn): Likewise.
14156         (emit_jump_insn): Likewise.
14157         (emit_call_insn): Strengthen return type and local "insn" from rtx
14158         to rtx_insn *.
14159         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
14160         a checked cast to rtx_insn * for now on "label".
14161         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
14162         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
14163         (emit_use): Likewise.
14164         (gen_use): Likewise, also for local "seq".
14165         (emit): Likewise for return type and local "insn".
14166         (rtx_insn): Likewise for return type and local "new_rtx".
14168         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
14169         from rtx to rtx_barrier *.
14171         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
14172         changed return type from rtx to rtx_insn *, we must update
14173         "emit_fn" type, and this in turn means updating...
14174         (frame_insn): ...this.  Strengthen return type from rtx to
14175         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
14177 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14179         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
14180         rtx to rtx_jump_table_data *.  Also for local.
14181         * rtl.h (emit_jump_table_data): Likewise.
14183 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14185         * basic-block.h (create_basic_block_structure): Strengthen third
14186         param "bb_note" from rtx to rtx_note *.
14187         * rtl.h (emit_note_before): Strengthen return type from rtx to
14188         rtx_note *.
14189         (emit_note_after): Likewise.
14190         (emit_note): Likewise.
14191         (emit_note_copy): Likewise.  Also, strengthen param similarly.
14192         * function.h (struct rtl_data): Strengthen field
14193         "x_stack_check_probe_note" from rtx to rtx_note *.
14195         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14196         from rtx to rtx_note *.
14197         * cfgrtl.c (create_basic_block_structure): Strengthen third param
14198         "bb_note" from rtx to rtx_note *.
14199         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
14200         when calling emit_note_copy.
14201         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14202         rtx_note *.
14203         (emit_note_after): Likewise.
14204         (emit_note_before): Likewise.
14205         (emit_note_copy): Likewise.  Also, strengthen param similarly.
14206         (emit_note): Likewise.
14207         * except.c (emit_note_eh_region_end): Likewise for return type.
14208         Strengthen local "next" from rtx to rtx_insn *.
14209         (convert_to_eh_region_ranges): Strengthen local "note"
14210         from rtx to rtx_note *.
14211         * final.c (change_scope): Likewise.
14212         (reemit_insn_block_notes): Likewise, for both locals named "note".
14213         Also, strengthen local "insn" from rtx to rtx_insn *.
14214         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14215         rtx to rtx_note *.
14216         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14217         strengthen local "seq" from rtx to rtx_insn *.
14218         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14219         to rtx_note *.
14220         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14221         vec<rtx_note *>.
14222         (get_bb_note_from_pool): Strengthen return type from rtx to
14223         rtx_note *.
14224         (sel_create_basic_block): Strengthen local "new_bb_note" from
14225         insn_t to rtx_note *.
14226         * var-tracking.c (emit_note_insn_var_location): Strengthen local
14227         "note" from rtx to rtx_note *.
14228         (emit_notes_in_bb): Likewise.
14230 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14232         * function.h (struct rtl_data): Strengthen field
14233         "x_parm_birth_insn" from rtx to rtx_insn *.
14234         * function.c (struct assign_parm_data_all): Strengthen fields
14235         "first_conversion_insn" and "last_conversion_insn" from rtx to
14236         rtx_insn *.
14238 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14240         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14241         to rtx_insn *; also for local "var_end_seq".
14242         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14243         (maybe_cleanup_end_of_block): Likewise for param "last" and local
14244         "insn".
14245         (expand_gimple_cond): Likewise for locals "last2" and "last".
14246         (mark_transaction_restart_calls): Likewise for local "insn".
14247         (expand_gimple_stmt): Likewise for return type and locals "last"
14248         and "insn".
14249         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14250         (avoid_complex_debug_insns): Likewise for param "insn".
14251         (expand_debug_locations): Likewise for locals "insn", "last",
14252         "prev_insn" and "insn2".
14253         (expand_gimple_basic_block): Likewise for local "last".
14254         (construct_exit_block): Likewise for locals "head", "end",
14255         "orig_end".
14256         (pass_expand::execute): Likewise for locals "var_seq",
14257         "var_ret_seq", "next".
14259 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14261         * asan.h (asan_emit_stack_protection): Strengthen return type from
14262         rtx to rtx_insn *.
14263         * asan.c (asan_emit_stack_protection): Likewise.  Add local
14264         "insns" to hold the return value.
14266 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14268         * basic-block.h (bb_note): Strengthen return type from rtx to
14269         rtx_note *.
14270         * sched-int.h (bb_note): Likewise.
14271         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
14273 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14275         * rtl.h (make_insn_raw): Strengthen return type from rtx to
14276         rtx_insn *.
14278         * emit-rtl.c (make_insn_raw): Strengthen return type and local
14279         "insn" from rtx to rtx_insn *.
14280         (make_debug_insn_raw): Strengthen return type from rtx to
14281         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14282         (make_jump_insn_raw):  Strengthen return type from rtx to
14283         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14284         (make_call_insn_raw):  Strengthen return type from rtx to
14285         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14286         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14287         callback from rtx to rtx_insn *; likewise for local "insn" and
14288         "next", adding a checked cast to rtx_insn in the relevant cases of
14289         the switch statement.
14290         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14291         callback from rtx to rtx_insn *.
14292         (emit_pattern_after_setloc): Likewise.
14293         (emit_pattern_after): Likewise.
14294         (emit_pattern_before_setloc): Likewise.
14295         (emit_pattern_before): Likewise.
14297 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14299         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
14300         rtx_call_insn *.
14301         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
14302         accepting an rtx_insn *.
14303         (last_call_insn): Strengthen return type from rtx to
14304         rtx_call_insn *.
14306 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14308         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
14309         "insns" from rtx to rtx_insn *.
14310         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
14311         locals "insn" and "prev".
14313 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14315         * rtl.h (tablejump_p): Strengthen third param from rtx * to
14316         rtx_jump_table_data **.
14318         * cfgbuild.c (make_edges): Introduce local "table", using it in
14319         place of "tmp" for jump table data.
14320         (find_bb_boundaries): Strengthen local "table" from rtx to
14321         rtx_jump_table_data *.
14322         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14323         (outgoing_edges_match): Likewise for locals "table1" and "table2".
14324         (try_crossjump_to_edge): Likewise.
14325         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
14326         "table".
14327         (patch_jump_insn): Introduce local "table", using it in place of
14328         "tmp" for jump table data.
14329         (force_nonfallthru_and_redirect): Introduce local "table", so that
14330         call to tablejump_p can receive an rtx_jump_table_data **.  Update
14331         logic around the call to overwrite "note" appropriately if
14332         tablejump_p returns non-zero.
14333         (get_last_bb_insn): Introduce local "table", using it in place of
14334         "tmp" for jump table data.
14335         * dwarf2cfi.c (create_trace_edges): Likewise.
14337         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
14338         from rtx to rtx_jump_table_data *.
14339         (create_fix_barrier): Strengthen local "tmp" from rtx to
14340         rtx_jump_table_data *.
14341         (arm_reorg): Likewise for local "table".
14343         * config/s390/s390.c (s390_chunkify_start): Likewise.
14345         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
14347         * jump.c (delete_related_insns): Strengthen local "lab_next" from
14348         rtx to rtx_jump_table_data *.
14350         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
14351         rtx_jump_table_data **.  Add a checked cast when writing through
14352         the pointer: we know there that local "table" is non-NULL and that
14353         JUMP_TABLE_DATA_P (table) holds.
14354         (label_is_jump_target_p): Introduce local "table", using it in
14355         place of "tmp" for jump table data.
14357 2014-08-19  Marek Polacek  <polacek@redhat.com>
14359         PR c++/62153
14360         * doc/invoke.texi: Document -Wbool-compare.
14362 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14364         * rtl.h (entry_of_function): Strengthen return type from rtx to
14365         rtx_insn *.
14366         * cfgrtl.c (entry_of_function): Likewise.
14368 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14370         * emit-rtl.h (get_insns): Strengthen return type from rtx to
14371         rtx_insn *, adding a checked cast for now.
14372         (get_last_insn): Likewise.
14374 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14376         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
14377         rtx_code_label *.
14379         * emit-rtl.c (gen_label_rtx): Likewise.
14381 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14383         * rtl.h (previous_insn): Strengthen return type from rtx to
14384         rtx_insn *.
14385         (next_insn): Likewise.
14386         (prev_nonnote_insn): Likewise.
14387         (prev_nonnote_insn_bb): Likewise.
14388         (next_nonnote_insn): Likewise.
14389         (next_nonnote_insn_bb): Likewise.
14390         (prev_nondebug_insn): Likewise.
14391         (next_nondebug_insn): Likewise.
14392         (prev_nonnote_nondebug_insn): Likewise.
14393         (next_nonnote_nondebug_insn): Likewise.
14394         (prev_real_insn): Likewise.
14395         (next_real_insn): Likewise.
14396         (prev_active_insn): Likewise.
14397         (next_active_insn): Likewise.
14399         * emit-rtl.c (next_insn): Strengthen return type from rtx to
14400         rtx_insn *, adding a checked cast.
14401         (previous_insn): Likewise.
14402         (next_nonnote_insn): Likewise.
14403         (next_nonnote_insn_bb): Likewise.
14404         (prev_nonnote_insn): Likewise.
14405         (prev_nonnote_insn_bb): Likewise.
14406         (next_nondebug_insn): Likewise.
14407         (prev_nondebug_insn): Likewise.
14408         (next_nonnote_nondebug_insn): Likewise.
14409         (prev_nonnote_nondebug_insn): Likewise.
14410         (next_real_insn): Likewise.
14411         (prev_real_insn): Likewise.
14412         (next_active_insn): Likewise.
14413         (prev_active_insn): Likewise.
14415         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
14416         param "stepfunc" so that it returns an rtx_insn * rather than an
14417         rtx, to track the change to prev_nonnote_insn_bb, which is the
14418         only function this is called with.
14419         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
14421 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
14423         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
14424         assert.
14426 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14428         * coretypes.h (class rtx_debug_insn): Add forward declaration.
14429         (class rtx_nonjump_insn): Likewise.
14430         (class rtx_jump_insn): Likewise.
14431         (class rtx_call_insn): Likewise.
14432         (class rtx_jump_table_data): Likewise.
14433         (class rtx_barrier): Likewise.
14434         (class rtx_code_label): Likewise.
14435         (class rtx_note): Likewise.
14437         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
14438         adding the invariant DEBUG_INSN_P (X).
14439         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
14440         the invariant NONJUMP_INSN_P (X).
14441         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
14442         the invariant JUMP_P (X).
14443         (class rtx_call_insn): New, a subclass of rtx_insn, adding
14444         the invariant CALL_P (X).
14445         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
14446         invariant JUMP_TABLE_DATA_P (X).
14447         (class rtx_barrier): New, a subclass of rtx_insn, adding the
14448         invariant BARRIER_P (X).
14449         (class rtx_code_label): New, a subclass of rtx_insn, adding
14450         the invariant LABEL_P (X).
14451         (class rtx_note): New, a subclass of rtx_insn, adding
14452         the invariant NOTE_P(X).
14453         (is_a_helper <rtx_debug_insn *>::test): New.
14454         (is_a_helper <rtx_nonjump_insn *>::test): New.
14455         (is_a_helper <rtx_jump_insn *>::test): New.
14456         (is_a_helper <rtx_call_insn *>::test): New.
14457         (is_a_helper <rtx_jump_table_data *>::test): New functions,
14458         overloaded for both rtx and rtx_insn *.
14459         (is_a_helper <rtx_barrier *>::test): New.
14460         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
14461         for both rtx and rtx_insn *.
14462         (is_a_helper <rtx_note *>::test): New.
14464 2014-08-19  Marek Polacek  <polacek@redhat.com>
14466         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
14467         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14468         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
14469         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14471 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14473         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
14474         rtx_insn *.  To help with transition, for now, convert from an
14475         access macro into a pair of functions: BND_TO, returning an
14476         rtx_insn *, and...
14477         (SET_BND_TO): New function, for use where BND_TO is used as an
14478         lvalue.
14480         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
14481         SET_BND_TO.
14482         (BND_TO): New function, adding a checked cast.
14483         (SET_BND_TO): New function.
14485         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
14486         SET_BND_TO.
14487         (compute_av_set_on_boundaries): Likewise.
14489 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
14491         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
14492         destination if it is used in source.
14493         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
14494         (*popcount<mode>2_falsedep_1): Likewise.
14496 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
14498         PR other/62168
14499         * configure.ac: Set install_gold_as_default to no first.
14500         * configure: Regenerated.
14502 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14504         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
14505         "note_list" field will eventually be an rtx_insn *.  To help with
14506         transition, for now, convert from an access macro into a pair of
14507         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
14508         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
14509         used as an lvalue.
14511         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
14512         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
14514         * sel-sched-ir.c (init_bb): Likewise.
14515         (sel_restore_notes): Likewise.
14516         (move_bb_info): Likewise.
14517         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
14518         (SET_BB_NOTE_LIST): New function.
14520 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14522         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
14523         field will eventually be an rtx_insn *.  To help with transition,
14524         for now, convert from an access macro into a pair of functions:
14525         VINSN_INSN_RTX, returning an rtx_insn *, and...
14526         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
14527         is used as an lvalue.
14529         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
14530         SET_VINSN_INSN_RTX where it's used as an lvalue.
14531         (VINSN_INSN_RTX): New function.
14532         (SET_VINSN_INSN_RTX): New function.
14534 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14536         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
14537         eventually be rtx_insn *, but to help with transition, for now,
14538         convert from an access macro into a pair of functions: DEP_PRO
14539         returning an rtx_insn * and...
14540         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
14541         lvalue, returning an rtx&.
14542         (DEP_CON): Analogous changes to DEP_PRO above.
14543         (SET_DEP_CON): Likewise.
14545         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14546         an lvalue to SET_DEP_CON.
14547         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14548         (sd_copy_back_deps): Likewise for DEP_CON.
14549         (DEP_PRO): New function, adding a checked cast for now.
14550         (DEP_CON): Likewise.
14551         (SET_DEP_PRO): New function.
14552         (SET_DEP_CON): Likewise.
14554 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
14556         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14557         (extra_options): Add i386/cygwin.opt.
14558         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14559         (CPP_SPEC): Accept -pthread.
14560         (LINK_SPEC): Ditto.
14561         (GOMP_SELF_SPECS): Update comment.
14562         * config/i386/cygwin.opt: New file for -pthread flag.
14564 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14566         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14567         * df.h (DF_REF_INSN): Convert from a macro to a function, so
14568         that we can return an rtx_insn *.
14570 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
14572         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14573         when building executables, not DLLs.  Add --large-address-aware
14574         under the same conditions.
14575         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14576         when building executables, not DLLs.  Add --large-address-aware
14577         under the same conditions when using -m32.
14579         * config/i386/cygwin-stdint.h: Throughout, make type
14580         definitions dependent on target architecture, not host.
14582 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14584         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
14585         the return type from rtx to rtx_insn *,  which will enable various
14586         conversions in followup patches.  For now this is is done by a
14587         checked cast.
14588         (NEXT_INSN): Likewise.
14589         (SET_PREV_INSN): Convert to an inline function.  This is intended
14590         for use as an lvalue, and so returns an rtx& to allow in-place
14591         modification.
14592         (SET_NEXT_INSN): Likewise.
14594 2014-07-08  Mark Wielaard  <mjw@redhat.com>
14596         PR debug/59051
14597         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14599 2014-08-19  Marek Polacek  <polacek@redhat.com>
14601         PR c/61271
14602         * cgraphunit.c (handle_alias_pairs): Fix condition.
14604 2014-08-19  Richard Biener  <rguenther@suse.de>
14606         * gimple-fold.c (fold_gimple_assign): Properly build a
14607         null-pointer constant when devirtualizing addresses.
14609 2014-07-07  Mark Wielaard  <mjw@redhat.com>
14611         * dwarf2out.c (decl_quals): New function.
14612         (modified_type_die): Take one cv_quals argument instead of two,
14613         one for const and one for volatile.
14614         (add_type_attribute): Likewise.
14615         (generic_parameter_die): Call add_type_attribute with one modifier
14616         argument.
14617         (base_type_for_mode): Likewise.
14618         (add_bounds_info): Likewise.
14619         (add_subscript_info): Likewise.
14620         (gen_array_type_die): Likewise.
14621         (gen_descr_array_type_die): Likewise.
14622         (gen_entry_point_die): Likewise.
14623         (gen_enumeration_type_die): Likewise.
14624         (gen_formal_parameter_die): Likewise.
14625         (gen_subprogram_die): Likewise.
14626         (gen_variable_die): Likewise.
14627         (gen_const_die): Likewise.
14628         (gen_field_die): Likewise.
14629         (gen_pointer_type_die): Likewise.
14630         (gen_reference_type_die): Likewise.
14631         (gen_ptr_to_mbr_type_die): Likewise.
14632         (gen_inheritance_die): Likewise.
14633         (gen_subroutine_type_die): Likewise.
14634         (gen_typedef_die): Likewise.
14635         (force_type_die): Likewise.
14637 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14639         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
14640         if unset.
14641         * configure: Regenerate.
14643 2014-08-19  Richard Biener  <rguenther@suse.de>
14645         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
14646         DECL_EXTERNALs in BLOCKs as non-references.
14647         * tree-streamer-out.c (streamer_write_chain): Likewise.
14649 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14650             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14651             Anna Tikhonova  <anna.tikhonova@intel.com>
14652             Ilya Tocar  <ilya.tocar@intel.com>
14653             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14654             Ilya Verbin  <ilya.verbin@intel.com>
14655             Kirill Yukhin  <kirill.yukhin@intel.com>
14656             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14658         * config/i386/sse.md
14659         (define_mode_iterator VI48_AVX512F): Delete.
14660         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14661         (define_mode_iterator VI2_AVX512VL): Ditto.
14662         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14663         Delete.
14664         (define_insn
14665         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14666         New.
14667         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14668         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14669         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14670         with VI48_AVX512F_AVX512VL): New.
14671         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14672         with VI2_AVX512VL): Ditto.
14674 2014-08-19  Marek Polacek  <polacek@redhat.com>
14676         * doc/invoke.texi: Document -Wc99-c11-compat.
14678 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14680         * rtl.h (PREV_INSN): Split macro in two: the existing one,
14681         for rvalues, and...
14682         (SET_PREV_INSN): New macro, for use as an lvalue.
14683         (NEXT_INSN, SET_NEXT_INSN): Likewise.
14685         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14686         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14687         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14688         (fixup_abnormal_edges): Likewise.
14689         (unlink_insn_chain): Likewise.
14690         (fixup_reorder_chain): Likewise.
14691         (cfg_layout_delete_block): Likewise.
14692         (cfg_layout_merge_blocks): Likewise.
14693         * combine.c (update_cfg_for_uncondjump): Likewise.
14694         * emit-rtl.c (link_insn_into_chain): Likewise.
14695         (remove_insn): Likewise.
14696         (delete_insns_since): Likewise.
14697         (reorder_insns_nobb): Likewise.
14698         (emit_insn_after_1): Likewise.
14699         * final.c (rest_of_clean_state): Likewise.
14700         (final_scan_insn): Likewise.
14701         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
14702         * haifa-sched.c (concat_note_lists): Likewise.
14703         (remove_notes): Likewise.
14704         (restore_other_notes): Likewise.
14705         (move_insn): Likewise.
14706         (unlink_bb_notes): Likewise.
14707         (restore_bb_notes): Likewise.
14708         * jump.c (delete_for_peephole): Likewise.
14709         * optabs.c (emit_libcall_block_1): Likewise.
14710         * reorg.c (emit_delay_sequence): Likewise.
14711         (fill_simple_delay_slots): Likewise.
14712         * sel-sched-ir.c (sel_move_insn): Likewise.
14713         (sel_remove_insn): Likewise.
14714         (get_bb_note_from_pool): Likewise.
14715         * sel-sched.c (move_nop_to_previous_block): Likewise.
14717         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
14718         * config/c6x/c6x.c (gen_one_bundle): Likewise.
14719         (c6x_gen_bundles): Likewise.
14720         (hwloop_optimize): Likewise.
14721         * config/frv/frv.c (frv_function_prologue): Likewise.
14722         (frv_register_nop): Likewise.
14723         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
14724         (ia64_reorg): Likewise.
14725         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
14726         (mep_make_bundle): Likewise.
14727         (mep_bundle_insns): Likewise.
14728         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
14729         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
14730         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
14732 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14734         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
14735         return type from rtx to rtx_insn *.
14736         (BB_END): Likewise.
14737         (BB_HEADER): Likewise.
14738         (BB_FOOTER): Likewise.
14739         (SET_BB_HEAD): Convert to a function.
14740         (SET_BB_END): Likewise.
14741         (SET_BB_HEADER): Likewise.
14742         (SET_BB_FOOTER): Likewise.
14744         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
14745         Strengthen the return type from rtx to rtx_insn *.  For now, this
14746         is done by adding a checked cast, but this will eventually
14747         become a field lookup.
14748         (BB_END): Likewise.
14749         (BB_HEADER): Likewise.
14750         (BB_FOOTER): Likewise.
14751         (SET_BB_HEAD): New function, from macro of same name.  This is
14752         intended for use as an lvalue, and so returns an rtx& to allow
14753         in-place modification.
14754         (SET_BB_END): Likewise.
14755         (SET_BB_HEADER): Likewise.
14756         (SET_BB_FOOTER): Likewise.
14758 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14760         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
14761         for rvalues, and...
14762         (SET_BB_HEAD): New macro, for use as a lvalue.
14763         (BB_END, SET_BB_END): Likewise.
14764         (BB_HEADER, SET_BB_HEADER): Likewise.
14765         (BB_FOOTER, SET_BB_FOOTER): Likewise.
14767         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
14768         of BB_* macros into SET_BB_* macros.
14769         (fix_crossing_unconditional_branches): Likewise.
14770         * caller-save.c (save_call_clobbered_regs): Likewise.
14771         (insert_one_insn): Likewise.
14772         * cfgbuild.c (find_bb_boundaries): Likewise.
14773         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14774         (outgoing_edges_match): Likewise.
14775         (try_optimize_cfg): Likewise.
14776         * cfgexpand.c (expand_gimple_cond): Likewise.
14777         (expand_gimple_tailcall): Likewise.
14778         (expand_gimple_basic_block): Likewise.
14779         (construct_exit_block): Likewise.
14780         * cfgrtl.c (delete_insn): Likewise.
14781         (create_basic_block_structure): Likewise.
14782         (rtl_delete_block): Likewise.
14783         (rtl_split_block): Likewise.
14784         (emit_nop_for_unique_locus_between): Likewise.
14785         (rtl_merge_blocks): Likewise.
14786         (block_label): Likewise.
14787         (try_redirect_by_replacing_jump): Likewise.
14788         (emit_barrier_after_bb): Likewise.
14789         (fixup_abnormal_edges): Likewise.
14790         (record_effective_endpoints): Likewise.
14791         (relink_block_chain): Likewise.
14792         (fixup_reorder_chain): Likewise.
14793         (fixup_fallthru_exit_predecessor): Likewise.
14794         (cfg_layout_duplicate_bb): Likewise.
14795         (cfg_layout_split_block): Likewise.
14796         (cfg_layout_delete_block): Likewise.
14797         (cfg_layout_merge_blocks): Likewise.
14798         * combine.c (update_cfg_for_uncondjump): Likewise.
14799         * emit-rtl.c (add_insn_after): Likewise.
14800         (remove_insn): Likewise.
14801         (reorder_insns): Likewise.
14802         (emit_insn_after_1): Likewise.
14803         * haifa-sched.c (get_ebb_head_tail): Likewise.
14804         (restore_other_notes): Likewise.
14805         (move_insn): Likewise.
14806         (sched_extend_bb): Likewise.
14807         (fix_jump_move): Likewise.
14808         * ifcvt.c (noce_process_if_block): Likewise.
14809         (dead_or_predicable): Likewise.
14810         * ira.c (update_equiv_regs): Likewise.
14811         * reg-stack.c (change_stack): Likewise.
14812         * sel-sched-ir.c (sel_move_insn): Likewise.
14813         * sel-sched.c (move_nop_to_previous_block): Likewise.
14815         * config/c6x/c6x.c (hwloop_optimize): Likewise.
14816         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
14818 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14820         * rtl.h (for_each_rtx_in_insn): New function.
14821         * rtlanal.c (for_each_rtx_in_insn): Likewise.
14823 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14825         * coretypes.h (class rtx_insn): Add forward declaration.
14827         * rtl.h: Include is-a.h.
14828         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
14829         workaround to ensure gengtype knows inheritance is occurring,
14830         whilst continuing to use the pre-existing special-casing for
14831         rtx_def.
14832         (class rtx_insn): New subclass of rtx_def, adding the
14833         invariant that we're dealing with something we can sanely use
14834         INSN_UID, NEXT_INSN, PREV_INSN on.
14835         (is_a_helper <rtx_insn *>::test): New.
14836         (is_a_helper <const rtx_insn *>::test): New.
14838 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14840         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
14842 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
14844         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
14845         comdats as extern.
14847 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
14849         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
14850         to BUILT_IN_UNREACHABLE.
14852 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
14854         PR target/62011
14855         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
14856         New tune flag.
14857         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
14858         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
14859         (ffs<mode>2): Do not expand with tzcnt for
14860         TARGET_AVOID_FALSE_DEP_FOR_BMI.
14861         (ffssi2_no_cmove): Ditto.
14862         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
14863         (ctz<mode>2): New expander.
14864         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
14865         (*ctz<mode>2_falsedep): New insn.
14866         (*ctz<mode>2): Rename from ctz<mode>2.
14867         (clz<mode>2_lzcnt): New expander.
14868         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
14869         (*clz<mode>2_lzcnt_falsedep): New insn.
14870         (*clz<mode>2): Rename from ctz<mode>2.
14871         (popcount<mode>2): New expander.
14872         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
14873         (*popcount<mode>2_falsedep): New insn.
14874         (*popcount<mode>2): Rename from ctz<mode>2.
14875         (*popcount<mode>2_cmp): Remove.
14876         (*popcountsi2_cmp_zext): Ditto.
14878 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
14880         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
14881         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
14882         * config/microblaze/microblaze.h
14883         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
14885 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
14887         PR other/62168
14888         * configure.ac: Set install_gold_as_default to no for
14889         --enable-gold=no.
14890         * configure: Regenerated.
14892 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
14894         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
14895         * config.in: Add undef of HAVE_isl.
14896         * configure: Regenerate.
14897         * configure.ac: Add definition of HAVE_isl.
14898         * graphite-blocking.c: Add checking of HAVE_isl.
14899         * graphite-dependences.c: Likewise.
14900         * graphite-interchange.c: Likewise.
14901         * graphite-isl-ast-to-gimple.c: Likewise.
14902         * graphite-optimize-isl.c: Likewise.
14903         * graphite-poly.c: Likewise.
14904         * graphite-scop-detection.c: Likewise.
14905         * graphite-sese-to-poly.c: Likewise.
14906         * graphite.c: Likewise.
14907         * toplev.c: Replace the checking of HAVE_cloog with the checking
14908         of HAVE_isl.
14910 2014-08-18  Richard Biener  <rguenther@suse.de>
14912         PR tree-optimization/62090
14913         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
14914         (fold_builtin_3): Do not fold snprintf.
14915         (fold_builtin_4): Likewise.
14916         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
14917         moved from builtins.c.
14918         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
14919         (gimple_fold_builtin): Do not fold sprintf here.
14921 2014-08-18  Richard Biener  <rguenther@suse.de>
14923         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
14924         code to ...
14925         (maybe_canonicalize_mem_ref_addr): ... this function.
14926         (fold_stmt_1): Apply it here before all simplification.
14928 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
14930         PR ipa/61800
14931         * cgraph.h (cgraph_node::create_indirect_edge): Add
14932         compute_indirect_info param.
14933         * cgraph.c (cgraph_node::create_indirect_edge): Compute
14934         indirect_info only when it is required.
14935         * cgraphclones.c (cgraph_clone_edge): Do not recompute
14936         indirect_info fore cloned indirect edge.
14938 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14939             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14940             Anna Tikhonova  <anna.tikhonova@intel.com>
14941             Ilya Tocar  <ilya.tocar@intel.com>
14942             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14943             Ilya Verbin  <ilya.verbin@intel.com>
14944             Kirill Yukhin  <kirill.yukhin@intel.com>
14945             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14947         * config/i386/sse.md
14948         (define_mode_iterator VI8_AVX2_AVX512BW): New.
14949         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
14951 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14952             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14953             Anna Tikhonova  <anna.tikhonova@intel.com>
14954             Ilya Tocar  <ilya.tocar@intel.com>
14955             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14956             Ilya Verbin  <ilya.verbin@intel.com>
14957             Kirill Yukhin  <kirill.yukhin@intel.com>
14958             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14960         * config/i386/sse.md
14961         (define_mode_iterator VF1_AVX512VL): New.
14962         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
14963         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
14964         New.
14966 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14967             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14968             Anna Tikhonova  <anna.tikhonova@intel.com>
14969             Ilya Tocar  <ilya.tocar@intel.com>
14970             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14971             Ilya Verbin  <ilya.verbin@intel.com>
14972             Kirill Yukhin  <kirill.yukhin@intel.com>
14973             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14975         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
14976         * config/i386/i386.md
14977         (define_code_iterator any_float): New.
14978         (define_code_attr floatsuffix): New.
14979         * config/i386/sse.md
14980         (define_mode_iterator VF1_128_256VL): New.
14981         (define_mode_iterator VF2_512_256VL): New.
14982         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
14983         TARGET check.
14984         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
14985         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
14986         New.
14987         (define_mode_attr qq2pssuff): New.
14988         (define_mode_attr sselongvecmode): New.
14989         (define_mode_attr sselongvecmodelower): New.
14990         (define_mode_attr sseintvecmode3): New.
14991         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
14992         New.
14993         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
14994         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
14995         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
14996         (define_insn "ufloatv2siv2df2<mask_name>"): New.
14998 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14999             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15000             Anna Tikhonova  <anna.tikhonova@intel.com>
15001             Ilya Tocar  <ilya.tocar@intel.com>
15002             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15003             Ilya Verbin  <ilya.verbin@intel.com>
15004             Kirill Yukhin  <kirill.yukhin@intel.com>
15005             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15007         * config/i386/sse.md
15008         (define_mode_iterator VF2_AVX512VL): New.
15009         (define_mode_attr sseintvecmode2): New.
15010         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15011         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15012         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15013         (define_insn
15014         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15015         Ditto.
15016         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15017         Ditto.
15018         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15019         Ditto.
15021 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15022             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15023             Anna Tikhonova  <anna.tikhonova@intel.com>
15024             Ilya Tocar  <ilya.tocar@intel.com>
15025             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15026             Ilya Verbin  <ilya.verbin@intel.com>
15027             Kirill Yukhin  <kirill.yukhin@intel.com>
15028             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15030         * config/i386/i386.md
15031         (define_insn "*movoi_internal_avx"): Add evex version.
15032         (define_insn "*movti_internal"): Ditto.
15034 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15035             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15036             Anna Tikhonova  <anna.tikhonova@intel.com>
15037             Ilya Tocar  <ilya.tocar@intel.com>
15038             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15039             Ilya Verbin  <ilya.verbin@intel.com>
15040             Kirill Yukhin  <kirill.yukhin@intel.com>
15041             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15043         * config/i386/i386.md
15044         (define_attr "isa"): Add avx512dq, noavx512dq.
15045         (define_attr "enabled"): Ditto.
15046         * config/i386/sse.md
15047         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15049 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15050             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15051             Anna Tikhonova  <anna.tikhonova@intel.com>
15052             Ilya Tocar  <ilya.tocar@intel.com>
15053             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15054             Ilya Verbin  <ilya.verbin@intel.com>
15055             Kirill Yukhin  <kirill.yukhin@intel.com>
15056             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15058         * config/i386/i386.c
15059         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15060         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15061         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15062         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15063         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15064         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15065         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15066         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15067         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15068         * config/i386/sse.md
15069         (define_mode_iterator VMOVE): Allow V4TI mode.
15070         (define_mode_iterator V_AVX512VL): New.
15071         (define_mode_iterator V): New handling for AVX512VL.
15072         (define_insn "avx512f_load<mode>_mask"): Delete.
15073         (define_insn "<avx512>_load<mode>_mask"): New.
15074         (define_insn "avx512f_store<mode>_mask"): Delete.
15075         (define_insn "<avx512>_store<mode>_mask"): New.
15078 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
15080         PR sanitizer/62089
15081         * asan.c (instrument_derefs): Fix bitfield check.
15083 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15085         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15086         * config/rs6000/htm.md (ttest): Remove clobber.
15087         * config/rs6000/predicates.md (any_mask_operand): New predicate.
15088         (and_operand): Reformat.
15089         (and_2rld_operand): New predicate.
15090         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15091         parameter.
15092         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15093         parameter.  Handle AND directly.
15094         (rs6000_split_logical_di): Remove last parameter.
15095         (rs6000_split_logical): Remove last parameter.  Remove obsolete
15096         comment.
15097         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15098         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15099         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
15100         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15101         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15102         and 5 anonymous splitters):  Delete.
15103         (and<mode>3): New expander.
15104         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15105         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15106         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15107         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15108         (floatdisf2_internal1): Remove clobbers.
15109         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15110         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15111         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15112         (and<mode>3 for BOOL_128): Remove clobber.
15113         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
15114         rs6000_split_logical.
15115         (*bool<mode>3_internal for BOOL_128): Adjust call of
15116         rs6000_split_logical.
15117         (*boolc<mode>3_internal1 for BOOL_128,
15118         *boolc<mode>3_internal2 for BOOL_128,
15119         *boolcc<mode>3_internal1 for BOOL_128,
15120         *boolcc<mode>3_internal2 for BOOL_128,
15121         *eqv<mode>3_internal1 for BOOL_128,
15122         *eqv<mode>3_internal2 for BOOL_128,
15123         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15124         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15125         clobber.
15126         (*vec_reload_and_reg_<mptrsize>): Delete.
15128 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15130         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15131         and split, *boolccsi3_internal3 and split): Delete.
15132         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15133         *boolccdi3_internal3 and split): Delete.
15134         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15135         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
15137 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15139         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15140         and split, *boolcsi3_internal3 and split): Delete.
15141         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15142         *boolcdi3_internal3 and split): Delete.
15143         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15145 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15147         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15148         <'u'>: Also support printing the low-order 16 bits.
15149         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15150         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15151         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15152         *booldi3_internal3 and split): Delete.
15153         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15154         *bool<mode>3_dot2): New.
15155         (two anonymous define_splits for non_logical_cint_operand): Merge.
15157 2014-08-17  Marek Polacek  <polacek@redhat.com>
15158             Manuel López-Ibáñez  <manu@gcc.gnu.org>
15160         PR c/62059
15161         * diagnostic.c (adjust_line): Add gcc_checking_assert.
15162         (diagnostic_show_locus): Don't print caret diagnostic
15163         if a column is larger than the line_width.
15165 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
15167         * common.opt: Make the ISL AST generator to be the main code generator
15168         of Graphite.
15170 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
15172         * wide-int.h (generic_wide_int): Declare as class instead of struct.
15174 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
15176         PR target/61641
15177         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
15178         Declare.
15179         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
15180         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
15181         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
15182         Define.
15183         * config/pa/pa.md (begin_brtab): Delete insn.
15184         (end_brtab): Likewise.
15186 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15188         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
15190 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
15192         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15193         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15194         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15195         (get_dynamic_type): Remove.
15196         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15197         (clear_speculation): Bring to ipa-deivrt.h
15198         (get_class_context): Rename to ...
15199         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15200         (contains_type_p): Update.
15201         (get_dynamic_type): Rename to ...
15202         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15203         (possible_polymorphic_call_targets): UPdate.
15204         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15205         * ipa-prop.c (ipa_analyze_call_uses): Update.
15207 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
15209         * doc/invoke.texi (SH options): Document missing processor variant
15210         options.  Remove references to Hitachi.  Undocument deprecated mspace
15211         option.
15213 2014-08-15  Jason Merrill  <jason@redhat.com>
15215         * tree.c (type_hash_canon): Uncomment assert.
15217 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15219         * input.h (in_system_header_at): Add comment.
15221 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15223         PR fortran/44054
15224         * diagnostic.c (build_message_string): Make it extern.
15225         * diagnostic.h (build_message_string): Make it extern.
15227 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
15229         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15230         load/store from/to non-floating class pseudo.
15232 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15234         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15236 2014-08-15  Richard Biener  <rguenther@suse.de>
15238         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15239         (get_constraint_for_ssa_var): Remove dead code.
15240         (get_constraint_for_1): Adjust.
15241         (find_what_var_points_to): Likewise.
15242         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
15244 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
15246         PR target/61878
15247         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15248         (_mm512_mask_cmpge_epu32_mask): Ditto.
15249         (_mm512_cmpge_epu32_mask): Ditto.
15250         (_mm512_mask_cmpge_epi64_mask): Ditto.
15251         (_mm512_cmpge_epi64_mask): Ditto.
15252         (_mm512_mask_cmpge_epu64_mask): Ditto.
15253         (_mm512_cmpge_epu64_mask): Ditto.
15254         (_mm512_mask_cmple_epi32_mask): Ditto.
15255         (_mm512_cmple_epi32_mask): Ditto.
15256         (_mm512_mask_cmple_epu32_mask): Ditto.
15257         (_mm512_cmple_epu32_mask): Ditto.
15258         (_mm512_mask_cmple_epi64_mask): Ditto.
15259         (_mm512_cmple_epi64_mask): Ditto.
15260         (_mm512_mask_cmple_epu64_mask): Ditto.
15261         (_mm512_cmple_epu64_mask): Ditto.
15262         (_mm512_mask_cmplt_epi32_mask): Ditto.
15263         (_mm512_cmplt_epi32_mask): Ditto.
15264         (_mm512_mask_cmplt_epu32_mask): Ditto.
15265         (_mm512_cmplt_epu32_mask): Ditto.
15266         (_mm512_mask_cmplt_epi64_mask): Ditto.
15267         (_mm512_cmplt_epi64_mask): Ditto.
15268         (_mm512_mask_cmplt_epu64_mask): Ditto.
15269         (_mm512_cmplt_epu64_mask): Ditto.
15270         (_mm512_mask_cmpneq_epi32_mask): Ditto.
15271         (_mm512_mask_cmpneq_epu32_mask): Ditto.
15272         (_mm512_cmpneq_epu32_mask): Ditto.
15273         (_mm512_mask_cmpneq_epi64_mask): Ditto.
15274         (_mm512_cmpneq_epi64_mask): Ditto.
15275         (_mm512_mask_cmpneq_epu64_mask): Ditto.
15276         (_mm512_cmpneq_epu64_mask): Ditto.
15277         (_mm512_castpd_ps): Ditto.
15278         (_mm512_castpd_si512): Ditto.
15279         (_mm512_castps_pd): Ditto.
15280         (_mm512_castps_si512): Ditto.
15281         (_mm512_castsi512_ps): Ditto.
15282         (_mm512_castsi512_pd): Ditto.
15283         (_mm512_castpd512_pd128): Ditto.
15284         (_mm512_castps512_ps128): Ditto.
15285         (_mm512_castsi512_si128): Ditto.
15286         (_mm512_castpd512_pd256): Ditto.
15287         (_mm512_castps512_ps256): Ditto.
15288         (_mm512_castsi512_si256): Ditto.
15289         (_mm512_castpd128_pd512): Ditto.
15290         (_mm512_castps128_ps512): Ditto.
15291         (_mm512_castsi128_si512): Ditto.
15292         (_mm512_castpd256_pd512): Ditto.
15293         (_mm512_castps256_ps512): Ditto.
15294         (_mm512_castsi256_si512): Ditto.
15295         (_mm512_cmpeq_epu32_mask): Ditto.
15296         (_mm512_mask_cmpeq_epu32_mask): Ditto.
15297         (_mm512_mask_cmpeq_epu64_mask): Ditto.
15298         (_mm512_cmpeq_epu64_mask): Ditto.
15299         (_mm512_cmpgt_epu32_mask): Ditto.
15300         (_mm512_mask_cmpgt_epu32_mask): Ditto.
15301         (_mm512_mask_cmpgt_epu64_mask): Ditto.
15302         (_mm512_cmpgt_epu64_mask): Ditto.
15303         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
15304         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
15305         * config/i386/i386.c (enum ix86_builtins): Add
15306         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
15307         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
15308         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
15309         (bdesc_args): Add __builtin_ia32_si512_256si,
15310         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
15311         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
15312         __builtin_ia32_pd512_pd.
15313         (ix86_expand_args_builtin): Handle new FTYPEs.
15314         * config/i386/sse.md (castmode): Add 512-bit modes.
15315         (AVX512MODE2P): New.
15316         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
15317         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
15319 2014-08-15  Richard Biener  <rguenther@suse.de>
15321         * fold-const.c (tree_swap_operands_p): Put all constants
15322         last, also strip sign-changing NOPs when considering further
15323         canonicalization.  Canonicalize also when optimizing for size.
15325 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15327         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
15328         one_match > zero_match case to just before simple_sequence.
15330 2014-08-15  Richard Biener  <rguenther@suse.de>
15332         * data-streamer.h (streamer_string_index, string_for_index):
15333         Remove.
15334         * data-streamer-out.c (streamer_string_index): Make static.
15335         * data-streamer-in.c (string_for_index): Likewise.
15336         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
15337         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
15339 2014-08-15  Richard Biener  <rguenther@suse.de>
15341         PR tree-optimization/62031
15342         * tree-data-ref.c (dr_analyze_indices): Do not set
15343         DR_UNCONSTRAINED_BASE.
15344         (dr_may_alias_p): All indirect accesses have to go the
15345         formerly DR_UNCONSTRAINED_BASE path.
15346         * tree-data-ref.h (struct indices): Remove
15347         unconstrained_base member.
15348         (DR_UNCONSTRAINED_BASE): Remove.
15350 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
15352         PR middle-end/62092
15353         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
15354         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
15355         in OMP_CLAUSE_MAP in some outer target region.
15357 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
15359         * tree-ssa-loop-ivopts.c (ivopts_data): New field
15360         name_expansion_cache.
15361         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
15362         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
15363         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
15364         (difference_cannot_overflow_p): New parameter.  Use affine
15365         expansion for equality check.
15366         (iv_elimination_compare_lt): Pass new argument.
15368 2014-08-14  DJ Delorie  <dj@redhat.com>
15370         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
15371         variables to the accumulator.
15373         * config/rl78/predicates.md (rl78_near_mem_operand): New.
15374         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
15375         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
15376         with far-far moves.
15378         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
15379         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
15380         (umulqihi3_virt): Likewise.
15381         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
15382         (umulqihi3_real): Likewise.
15384         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
15386 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
15388         PR tree-optimization/62091
15389         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
15390         function_entry_reached.
15391         (walk_aliased_vdefs): Clear it here.
15392         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
15394 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
15396         * ipa-utils.h (compare_virtual_tables): Declare.
15397         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
15399 2014-08-14  Marek Polacek  <polacek@redhat.com>
15401         DR 458
15402         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
15403         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
15405 2014-08-14  Tom de Vries  <tom@codesourcery.com>
15407         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
15409 2014-08-14  Tom de Vries  <tom@codesourcery.com>
15411         PR rtl-optimization/62004
15412         PR rtl-optimization/62030
15413         * ifcvt.c (rtx_interchangeable_p): New function.
15414         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
15415         * emit-rtl.h (mem_attrs_eq_p): Declare.
15417 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
15419         * graphite-scop-detection.c:
15420         Add inclusion of cp-tree.h.
15421         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
15422         in case they are pointers to object types
15424 2014-08-14  Richard Biener  <rguenther@suse.de>
15426         * BASE-VER: Change to 5.0.0
15428 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15429             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15430             Anna Tikhonova  <anna.tikhonova@intel.com>
15431             Ilya Tocar  <ilya.tocar@intel.com>
15432             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15433             Ilya Verbin  <ilya.verbin@intel.com>
15434             Kirill Yukhin  <kirill.yukhin@intel.com>
15435             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15437         * config/i386/sse.md (define_mode_attr avx512): New.
15438         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
15439         V4DI modes.
15440         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
15441         (define_mode_attr ssse3_avx2): Ditto.
15442         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
15443         (define_mode_attr avx2_avx512bw): New.
15444         (define_mode_attr ssedoublemodelower): New.
15445         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
15446         V32HI, V64QI modes.
15447         (define_mode_attr ssebytemode): Allow V8DI modes.
15448         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
15449         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
15450         (define_mode_attr ssePSmode2): New.
15451         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
15452         V16HI, V32HI modes.
15453         (define_mode_attr dbpsadbwmode): New.
15454         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
15455         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
15456         (vi8_sse4_1_avx2_avx512): New.
15457         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
15458         mode attribute.
15459         (define_mode_attr blendbits): Move before its immediate use.
15461 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15462             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15463             Anna Tikhonova  <anna.tikhonova@intel.com>
15464             Ilya Tocar  <ilya.tocar@intel.com>
15465             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15466             Ilya Verbin  <ilya.verbin@intel.com>
15467             Kirill Yukhin  <kirill.yukhin@intel.com>
15468             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15470         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
15471         * config/i386/subst.md
15472         (define_mode_iterator SUBST_V): Update.
15473         (define_mode_iterator SUBST_A): Ditto.
15474         (define_subst_attr "mask_operand7"): New.
15475         (define_subst_attr "mask_operand10"): New.
15476         (define_subst_attr "mask_operand_arg34") : New.
15477         (define_subst_attr "mask_expand_op3"): New.
15478         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
15479         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
15480         (define_subst_attr "mask_avx512vl_condition"): New.
15481         (define_subst_attr "round_mask_operand4"): Ditto.
15482         (define_subst_attr "round_mask_scalar_op3"): Delete.
15483         (define_subst_attr "round_mask_op4"): New.
15484         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
15485         V16SImode.
15486         (define_subst_attr "round_modev8sf_condition"): New.
15487         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
15488         <MODE>mode.
15489         (define_subst_attr "round_saeonly_mask_operand4"): New.
15490         (define_subst_attr "round_saeonly_mask_op4"): New.
15491         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
15492         V8DImode, V16SImode.
15493         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
15494         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
15495         (define_subst_attr "mask_expand4_args"): New.
15496         (define_subst "mask_expand4"): New.
15498 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15499             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15500             Anna Tikhonova  <anna.tikhonova@intel.com>
15501             Ilya Tocar  <ilya.tocar@intel.com>
15502             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15503             Ilya Verbin  <ilya.verbin@intel.com>
15504             Kirill Yukhin  <kirill.yukhin@intel.com>
15505             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15507         * config/i386/i386.md
15508         (define_attr "isa"): Add avx512bw,noavx512bw.
15509         (define_attr "enabled"): Ditto.
15510         (define_split): Add 32/64-bit mask logic.
15511         (define_insn "*k<logic>qi"): New.
15512         (define_insn "*k<logic>hi"): New.
15513         (define_insn "*anddi_1"): Add mask version.
15514         (define_insn "*andsi_1"): Ditto.
15515         (define_insn "*<code><mode>_1"): Ditto.
15516         (define_insn "*<code>hi_1"): Ditto.
15517         (define_insn "kxnor<mode>"): New.
15518         (define_insn "kunpcksi"): New.
15519         (define_insn "kunpckdi"): New.
15520         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
15521         (define_insn "*one_cmplhi2_1"): Ditto.
15523 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15524             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15525             Anna Tikhonova  <anna.tikhonova@intel.com>
15526             Ilya Tocar  <ilya.tocar@intel.com>
15527             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15528             Ilya Verbin  <ilya.verbin@intel.com>
15529             Kirill Yukhin  <kirill.yukhin@intel.com>
15530             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15532         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
15533         V32HImode.
15535 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15536             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15537             Anna Tikhonova  <anna.tikhonova@intel.com>
15538             Ilya Tocar  <ilya.tocar@intel.com>
15539             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15540             Ilya Verbin  <ilya.verbin@intel.com>
15541             Kirill Yukhin  <kirill.yukhin@intel.com>
15542             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15544         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
15545         registers.
15546         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15547         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15548         xmm/ymm16+ when availble.
15549         * config/i386/i386.h
15550         (HARD_REGNO_NREGS): Add mask regs.
15551         (VALID_AVX512F_REG_MODE): Ditto.
15552         (VALID_AVX512F_REG_MODE) : Define.
15553         (VALID_MASK_AVX512BW_MODE): Ditto.
15554         (reg_class) (MASK_REG_P(X)): Define.
15555         * config/i386/i386.md: Do not split long moves with mask register,
15556         use kmovb if avx512bw is availible.
15557         (movdi_internal): Handle mask registers.
15559 2014-08-14  Richard Biener  <rguenther@suse.de>
15561         PR tree-optimization/62081
15562         * tree-ssa-loop.c (pass_fix_loops): New pass.
15563         (pass_tree_loop::gate):  Do not fixup loops here.
15564         * tree-pass.h (make_pass_fix_loops): Declare.
15565         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15567 2014-08-14  Richard Biener  <rguenther@suse.de>
15569         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15570         (type_hash_canon): ... this and avoid 2nd lookup for the add.
15572 2014-08-14  Richard Biener  <rguenther@suse.de>
15574         PR tree-optimization/62090
15575         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15576         (fold_builtin_2): Do not fold sprintf.
15577         (fold_builtin_3): Likewise.
15578         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15579         moved from builtins.c.
15580         (gimple_fold_builtin): Fold sprintf.
15582 2014-08-14  Richard Biener  <rguenther@suse.de>
15584         PR rtl-optimization/62079
15585         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15586         run cleanup_cfg.
15588 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
15590         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15591         current_function_decl.
15593 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
15595         * cgraph.c (cgraph_node::function_symbol): Fix wrong
15596         cgraph_function_node to cgraph_node::function_symbol
15597         refactoring.
15599 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
15601         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15602         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15604 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
15606         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15607         warning.
15609 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
15611         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15612         generator.
15614 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
15616         PR target/62025
15617         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15618         any registers that are used in mem_insn.
15620 2014-08-12  Steve Ellcey  <sellcey@mips.com>
15622         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15624 2014-08-12  Steve Ellcey  <sellcey@mips.com>
15626         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15627         (MULTILIB_DIRNAMES): Ditto.
15628         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15629         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15630         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15631         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15632         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15633         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15635 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15637         PR target/61413
15638         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15639         of __ARM_SIZEOF_WCHAR_T.
15641 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15643         PR target/62098
15644         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
15645         Remove unnecessary attributes.
15647 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
15649         * internal-fn.c (init_internal_fns): Fix off-by-one.
15651 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15652             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15653             Anna Tikhonova  <anna.tikhonova@intel.com>
15654             Ilya Tocar  <ilya.tocar@intel.com>
15655             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15656             Ilya Verbin  <ilya.verbin@intel.com>
15657             Kirill Yukhin  <kirill.yukhin@intel.com>
15658             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15660         * config/i386/i386.c (standard_sse_constant_opcode): Use
15661         vpxord/vpternlog if avx512 is availible.
15663 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15665         PR middle-end/62103
15666         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15667         bitfields, that is when size doesn't match the size of type or the
15668         size of the constructor.
15670 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
15672         * config/rs6000/constraints.md (wh constraint): New constraint,
15673         for FP registers if direct move is available.
15674         (wi constraint): New constraint, for VSX/FP registers that can
15675         handle 64-bit integers.
15676         (wj constraint): New constraint for VSX/FP registers that can
15677         handle 64-bit integers for direct moves.
15678         (wk constraint): New constraint for VSX/FP registers that can
15679         handle 64-bit doubles for direct moves.
15680         (wy constraint): Make documentation match implementation.
15682         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15683         scalar_in_vmx_p field to simplify tests of whether SFmode or
15684         DFmode can go in the Altivec registers.
15685         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15686         (rs6000_setup_reg_addr_masks): Likewise.
15687         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
15688         field, and wh/wi/wj/wk constraints.
15689         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
15690         the wh/wi/wj/wk constraints.
15691         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
15692         upper registers, prefer VSX registers unless the operation is a
15693         memory operation with REG+OFFSET addressing.
15695         * config/rs6000/vsx.md (VSr mode attribute): Add support for
15696         DImode.  Change SFmode to use ww constraint instead of d to allow
15697         SF registers in the upper registers.
15698         (VSr2): Likewise.
15699         (VSr3): Likewise.
15700         (VSr5): Fix thinko in comment.
15701         (VSa): New mode attribute that is an alternative to wa, that
15702         returns the VSX register class that a mode can go in, but may not
15703         be the preferred register class.
15704         (VS_64dm): New mode attribute for appropriate register classes for
15705         referencing 64-bit elements of vectors for direct moves and normal
15706         moves.
15707         (VS_64reg): Likewise.
15708         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
15709         register allocator to only registers the data type can handle.
15710         (vsx_le_perm_load_<mode>): Likewise.
15711         (vsx_le_perm_store_<mode>): Likewise.
15712         (vsx_xxpermdi2_le_<mode>): Likewise.
15713         (vsx_xxpermdi4_le_<mode>): Likewise.
15714         (vsx_lxvd2x2_le_<mode>): Likewise.
15715         (vsx_lxvd2x4_le_<mode>): Likewise.
15716         (vsx_stxvd2x2_le_<mode>): Likewise.
15717         (vsx_add<mode>3): Likewise.
15718         (vsx_sub<mode>3): Likewise.
15719         (vsx_mul<mode>3): Likewise.
15720         (vsx_div<mode>3): Likewise.
15721         (vsx_tdiv<mode>3_internal): Likewise.
15722         (vsx_fre<mode>2): Likewise.
15723         (vsx_neg<mode>2): Likewise.
15724         (vsx_abs<mode>2): Likewise.
15725         (vsx_nabs<mode>2): Likewise.
15726         (vsx_smax<mode>3): Likewise.
15727         (vsx_smin<mode>3): Likewise.
15728         (vsx_sqrt<mode>2): Likewise.
15729         (vsx_rsqrte<mode>2): Likewise.
15730         (vsx_tsqrt<mode>2_internal): Likewise.
15731         (vsx_fms<mode>4): Likewise.
15732         (vsx_nfma<mode>4): Likewise.
15733         (vsx_eq<mode>): Likewise.
15734         (vsx_gt<mode>): Likewise.
15735         (vsx_ge<mode>): Likewise.
15736         (vsx_eq<mode>_p): Likewise.
15737         (vsx_gt<mode>_p): Likewise.
15738         (vsx_ge<mode>_p): Likewise.
15739         (vsx_xxsel<mode>): Likewise.
15740         (vsx_xxsel<mode>_uns): Likewise.
15741         (vsx_copysign<mode>3): Likewise.
15742         (vsx_float<VSi><mode>2): Likewise.
15743         (vsx_floatuns<VSi><mode>2): Likewise.
15744         (vsx_fix_trunc<mode><VSi>2): Likewise.
15745         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
15746         (vsx_x<VSv>r<VSs>i): Likewise.
15747         (vsx_x<VSv>r<VSs>ic): Likewise.
15748         (vsx_btrunc<mode>2): Likewise.
15749         (vsx_b2trunc<mode>2): Likewise.
15750         (vsx_floor<mode>2): Likewise.
15751         (vsx_ceil<mode>2): Likewise.
15752         (vsx_<VS_spdp_insn>): Likewise.
15753         (vsx_xscvspdp): Likewise.
15754         (vsx_xvcvspuxds): Likewise.
15755         (vsx_float_fix_<mode>2): Likewise.
15756         (vsx_set_<mode>): Likewise.
15757         (vsx_extract_<mode>_internal1): Likewise.
15758         (vsx_extract_<mode>_internal2): Likewise.
15759         (vsx_extract_<mode>_load): Likewise.
15760         (vsx_extract_<mode>_store): Likewise.
15761         (vsx_splat_<mode>): Likewise.
15762         (vsx_xxspltw_<mode>): Likewise.
15763         (vsx_xxspltw_<mode>_direct): Likewise.
15764         (vsx_xxmrghw_<mode>): Likewise.
15765         (vsx_xxmrglw_<mode>): Likewise.
15766         (vsx_xxsldwi_<mode>): Likewise.
15767         (vsx_xscvdpspn): Tighten constraints to only use register classes
15768         the types use.
15769         (vsx_xscvspdpn): Likewise.
15770         (vsx_xscvdpspn_scalar): Likewise.
15772         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
15773         wj, and wk constraints.
15774         (GPR_REG_CLASS_P): New helper macro for register classes targeting
15775         general purpose registers.
15777         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
15778         direct moves.
15779         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
15780         DImode instead of wm.  Use wk constraint for direct move of DFmode
15781         instead of wm.
15782         (extendsidi2_lfiwax): Likewise.
15783         (lfiwax): Likewise.
15784         (lfiwzx): Likewise.
15785         (movdi_internal64): Likewise.
15787         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
15788         wk constraints. Make the wy constraint documentation match them
15789         implementation.
15791 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
15793         Replacement of isl_int by isl_val
15794         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
15795         (compute_bounds_for_param): use isl_val instead of isl_int
15796         (compute_bounds_for_loop): likewise
15797         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
15798         (build_linearized_memory_access): use isl_val instead of isl_int
15799         (pdr_stride_in_loop): likewise
15800         * graphite-optimize-isl.c:
15801         (getPrevectorMap): use isl_val instead of isl_int
15802         * graphite-poly.c:
15803         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
15804         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
15805         (extern the_isl_ctx): declare
15806         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
15807         (extract_affine_gmp): likewise
15808         (wrap): likewise
15809         (build_loop_iteration_domains): likewise
15810         (add_param_constraints): likewise
15812 2014-08-11  Richard Biener  <rguenther@suse.de>
15814         PR tree-optimization/62075
15815         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
15816         handle uses in patterns.
15818 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15819             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15820             Anna Tikhonova  <anna.tikhonova@intel.com>
15821             Ilya Tocar  <ilya.tocar@intel.com>
15822             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15823             Ilya Verbin  <ilya.verbin@intel.com>
15824             Kirill Yukhin  <kirill.yukhin@intel.com>
15825             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15827         * common/config/i386/i386-common.c
15828         (OPTION_MASK_ISA_AVX512VL_SET): Define.
15829         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
15830         (ix86_handle_option): Handle OPT_mavx512vl.
15831         * config/i386/cpuid.h (bit_AVX512VL): Define.
15832         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
15833         set -mavx512vl accordingly.
15834         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15835         OPTION_MASK_ISA_AVX512VL.
15836         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
15837         (ix86_option_override_internal): Define PTA_AVX512VL, handle
15838         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
15839         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
15840         * config/i386/i386.h (TARGET_AVX512VL): Define.
15841         (TARGET_AVX512VL_P(x)): Ditto.
15842         * config/i386/i386.opt: Add mavx512vl.
15844 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
15846         PR tree-optimization/62073
15847         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
15848         a basic block.
15850 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15851             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15852             Anna Tikhonova  <anna.tikhonova@intel.com>
15853             Ilya Tocar  <ilya.tocar@intel.com>
15854             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15855             Ilya Verbin  <ilya.verbin@intel.com>
15856             Kirill Yukhin  <kirill.yukhin@intel.com>
15857             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15859         * common/config/i386/i386-common.c
15860         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
15861         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
15862         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
15863         (ix86_handle_option): Handle OPT_mavx512bw.
15864         * config/i386/cpuid.h (bit_AVX512BW): Define.
15865         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
15866         set -mavx512bw accordingly.
15867         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15868         OPTION_MASK_ISA_AVX512BW.
15869         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
15870         (ix86_option_override_internal): Define PTA_AVX512BW, handle
15871         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
15872         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
15873         * config/i386/i386.h (TARGET_AVX512BW): Define.
15874         (TARGET_AVX512BW_P(x)): Ditto.
15875         * config/i386/i386.opt: Add mavx512bw.
15877 2014-08-11  Richard Biener  <rguenther@suse.de>
15879         PR tree-optimization/62070
15880         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
15881         Remove SSA checking.
15883 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
15885         * asan.c (asan_check_flags): New enum.
15886         (build_check_stmt_with_calls): Removed function.
15887         (build_check_stmt): Split inlining logic to
15888         asan_expand_check_ifn.
15889         (instrument_derefs): Rename parameter.
15890         (instrument_mem_region_access): Rename parameter.
15891         (instrument_strlen_call): Likewise.
15892         (asan_expand_check_ifn): New function.
15893         (asan_instrument): Remove old code.
15894         (pass_sanopt::execute): Change handling of
15895         asan-instrumentation-with-call-threshold.
15896         (asan_clear_shadow): Fix formatting.
15897         (asan_function_start): Likewise.
15898         (asan_emit_stack_protection): Likewise.
15899         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
15900         Update description.
15901         * internal-fn.c (expand_ASAN_CHECK): New function.
15902         * internal-fn.def (ASAN_CHECK): New internal function.
15903         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
15904         Update description.
15905         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
15906         * tree.c: Small comment fix.
15908 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
15910         * gimple.c (gimple_call_fnspec): Support internal functions.
15911         (gimple_call_return_flags): Use const.
15912         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
15913         * internal-fn.def: Add fnspec information.
15914         * internal-fn.h (internal_fn_fnspec): New function.
15915         (init_internal_fns): Declare new function.
15916         * internal-fn.c (internal_fn_fnspec_array): New global variable.
15917         (init_internal_fns): New function.
15918         * tree-core.h: Update macro call.
15919         * tree.c (build_common_builtin_nodes): Initialize internal fns.
15921 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
15923         * lto-streamer.h (struct output_block::symbol): Change from
15924         struct symtab_node to plain symtab_node.
15925         (referenced_from_this_partition_p): Change first parameter
15926         from struct symtab_node to plain symtab_node.
15928 2014-08-10  Marek Polacek  <polacek@redhat.com>
15930         PR c/51849
15931         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
15933 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
15935         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
15936         DECL correctly; do not give up on types in static storage.
15938 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
15940         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
15942 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
15944         * graphite-isl-ast-to-gimple.c:
15945         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
15947         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
15949 2014-08-08  Guozhi Wei  <carrot@google.com>
15951         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
15953 2014-08-08  Cary Coutant  <ccoutant@google.com>
15955         * dwarf2out.c (get_skeleton_type_unit): Remove.
15956         (output_skeleton_debug_sections): Remove skeleton type units.
15957         (output_comdat_type_unit): Likewise.
15958         (dwarf2out_finish): Likewise.
15960 2014-08-07  Yi Yang  <ahyangyi@google.com>
15962         * predict.c (expr_expected_value_1): Remove the redundant assignment.
15964 2014-08-08  Richard Biener  <rguenther@suse.de>
15966         * lto-streamer.h (struct lto_input_block): Make it a class
15967         with a constructor.
15968         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
15969         (struct lto_function_header, struct lto_simple_header,
15970         struct lto_simple_header_with_strings,
15971         struct lto_decl_header, struct lto_function_header): Make
15972         a simple inheritance hieararchy.  Remove unused fields.
15973         (struct lto_asm_header): Remove.
15974         * lto-streamer-out.c (produce_asm): Adjust.
15975         (lto_output_toplevel_asms): Likewise.
15976         (produce_asm_for_decls): Likewise.
15977         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
15978         * data-streamer-in.c (string_for_index): Likewise.
15979         * ipa-inline-analysis.c (inline_read_section): Likewise.
15980         * ipa-prop.c (ipa_prop_read_section): Likewise.
15981         (read_replacements_section): Likewise.
15982         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
15983         * lto-section-in.c (lto_create_simple_input_block): Likewise.
15984         (lto_destroy_simple_input_block): Likewise.
15985         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
15986         (lto_input_toplevel_asms): Likewise.
15988 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15989             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15990             Anna Tikhonova  <anna.tikhonova@intel.com>
15991             Ilya Tocar  <ilya.tocar@intel.com>
15992             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15993             Ilya Verbin  <ilya.verbin@intel.com>
15994             Kirill Yukhin  <kirill.yukhin@intel.com>
15995             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15997         * common/config/i386/i386-common.c
15998         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
15999         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16000         (ix86_handle_option): Handle OPT_mavx512dq.
16001         * config/i386/cpuid.h (bit_AVX512DQ): Define.
16002         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16003         set -mavx512dq accordingly.
16004         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16005         OPTION_MASK_ISA_AVX512DQ.
16006         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16007         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16008         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16009         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16010         * config/i386/i386.h (TARGET_AVX512DQ): Define.
16011         (TARGET_AVX512DQ_P(x)): Ditto.
16012         * config/i386/i386.opt: Add mavx512dq.
16014 2014-08-08  Richard Biener  <rguenther@suse.de>
16016         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16017         target_percent, target_percent_s): Export.
16018         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16019         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16020         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16021         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16022         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16023         Move to gimple-fold.c.
16024         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16025         strcat and strcpy.
16026         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16027         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16028         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16029         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16030         (rewrite_call_expr_array): Remove.
16031         (fold_builtin_sprintf_chk): Likewise.
16032         (fold_builtin_snprintf_chk): Likewise.
16033         (fold_builtin_varargs): Remove handling of sprintf_chk,
16034         vsprintf_chk, snprintf_chk and vsnprintf_chk.
16035         (gimple_fold_builtin_sprintf_chk): Remove.
16036         (gimple_fold_builtin_snprintf_chk): Likewise.
16037         (gimple_fold_builtin_varargs): Likewise.
16038         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16039         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16040         * gimple.c (gimple_seq_add_seq_without_update): New function.
16041         * gimple.h (gimple_seq_add_seq_without_update): Declare.
16042         * gimple-fold.c: Include output.h.
16043         (gsi_replace_with_seq_vops): New function, split out from ...
16044         (gimplify_and_update_call_from_tree): ... here.
16045         (replace_call_with_value): New function.
16046         (replace_call_with_call_and_fold): Likewise.
16047         (var_decl_component_p): Moved from builtins.c.
16048         (gimple_fold_builtin_memory_op): Moved from builtins.c
16049         fold_builtin_memory_op and rewritten to GIMPLE.
16050         (gimple_fold_builtin_memset): Likewise.
16051         (gimple_fold_builtin_strcpy): Likewise.
16052         (gimple_fold_builtin_strncpy): Likewise.
16053         (gimple_fold_builtin_strcat): Likewise.
16054         (gimple_fold_builtin_fputs): Likewise.
16055         (gimple_fold_builtin_memory_chk): Likewise.
16056         (gimple_fold_builtin_stxcpy_chk): Likewise.
16057         (gimple_fold_builtin_stxncpy_chk): Likewise.
16058         (gimple_fold_builtin_snprintf_chk): Likewise.
16059         (gimple_fold_builtin_sprintf_chk): Likewise.
16060         (gimple_fold_builtin_strlen): New function.
16061         (gimple_fold_builtin_with_strlen): New function split out from
16062         gimple_fold_builtin.
16063         (gimple_fold_builtin): Change signature and handle
16064         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16065         here.  Call gimple_fold_builtin_with_strlen.
16066         (gimple_fold_call): Adjust.
16068 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
16070         * calls.c (precompute_arguments): Check
16071         promoted_for_signed_and_unsigned_p and set the promoted mode.
16072         (promoted_for_signed_and_unsigned_p): New function.
16073         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16074         and set the promoted mode.
16075         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16076         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16077         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16080 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
16082         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16083         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16084         (expand_call): Likewise.
16085         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16086         to get promoted mode.
16087         * combine.c (record_promoted_value): Skip > 0 comparison with
16088         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16089         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16090         of SUBREG_PROMOTED_UNSIGNED_P.
16091         (convert_modes): Likewise.
16092         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16093         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16094         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16095         SUBREG_PROMOTED_UNSIGNED_SET.
16096         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16097         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16098         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16099         SUBREG_PROMOTED_SET.
16100         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16101         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16102         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16103         of SUBREG_PROMOTED_UNSIGNED_P.
16104         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16105         (SUBREG_PROMOTED_SET): New define.
16106         (SUBREG_PROMOTED_GET): Likewise.
16107         (SUBREG_PROMOTED_SIGN): Likewise.
16108         (SUBREG_PROMOTED_SIGNED_P): Likewise.
16109         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16110         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16111         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16112         instead of SUBREG_PROMOTED_UNSIGNED_GET.
16113         (nonzero_bits1): Skip > 0 comparison with the results as
16114         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16115         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16116         of !SUBREG_PROMOTED_UNSIGNED_P.
16117         * simplify-rtx.c (simplify_unary_operation_1): Use new
16118         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16119         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16120         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16121         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16123 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
16125         * ipa-devirt.c: Include gimple-pretty-print.h
16126         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16127         further tests.
16128         (decl_maybe_in_construction_p): Fix conditional on cdtor check
16129         (get_polymorphic_call_info): Fix return value
16130         (type_change_info): New sturcture based on ipa-prop
16131         variant.
16132         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16133         based on ipa-prop variant.
16134         (extr_type_from_vtbl_ptr_store): New function
16135         based on ipa-prop variant.
16136         (record_known_type): New function.
16137         (check_stmt_for_type_change): New function.
16138         (get_dynamic_type): New function.
16139         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16140         * tree-ssa-pre.c: ipa-utils.h
16141         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16142         machinery; sanity check with ipa-prop devirtualization.
16143         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16144         polymorphic flag.
16146 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
16148         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16149         * alias.c, cfgexpand.c, cgraphbuild.c,
16150         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16151         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16152         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16153         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16154         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16155         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16156         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16157         dse.c, except.c, gengtype.c, gimple-expr.c,
16158         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16159         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
16160         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
16161         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
16162         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
16163         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
16164         pointer-set.h.
16165         * pointer-set.c: Remove file.
16166         * pointer-set.h: Remove file.
16168 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16170         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
16171         * config/arm/types.md (f_sels, f_seld): Delete.
16173 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16175         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
16176         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
16177         (aarch64_movdi_<mode>high): Likewise.
16178         (aarch64_mov<mode>high_di): Likewise.
16179         (aarch64_movdi_<mode>low): Likewise.
16180         (aarch64_mov<mode>low_di): Likewise.
16181         (aarch64_movtilow_tilow): Likewise.
16182         Add comment explaining usage of fp,simd attributes and of
16183         TARGET_FLOAT and TARGET_SIMD.
16185 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
16186             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16188         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
16189         Use MOVN when one of the half-words is 0xffff.
16191 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
16193         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
16195 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16197         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
16198         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16199         (rfs_str): String corresponding to RFS_* constants.
16200         (rank_for_schedule_stats_t): New typedef.
16201         (rank_for_schedule_stats): New static variable.
16202         (rfs_result): New static function.
16203         (rank_for_schedule): Track statistics for deciding heuristics.
16204         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16205         static functions.
16206         (ready_sort): Use them for debug printouts.
16207         (schedule_block): Init statistics state.  Print statistics on
16208         rank_for_schedule decisions.
16210 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16212         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16214 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
16216         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16217         constraint.
16219 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
16221         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16222         function to not conflict.
16223         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16224         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16225         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16226         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16227         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16228         of pointer_map.
16230 2014-08-07  Marek Polacek  <polacek@redhat.com>
16232         * fold-const.c (fold_binary_loc): Add folding of
16233         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16235 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
16237         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16238         instead of type size.
16239         (ASM_FINISH_DECLARE_OBJECT): Likewise.
16241 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
16243         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16244         (*thumb1_movqi_insn): Likewise.
16245         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16247 2014-08-07  Tom de Vries  <tom@codesourcery.com>
16249         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16250         (glibc_2_11_or_earlier): Remove effective-target keywords.
16252 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
16254         * config/arm/arm.c (bdesc_2arg): Fix typo.
16255         (arm_atomic_assign_expand_fenv): Remove The default implementation.
16257 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16259         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16261 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
16263         PR debug/61923
16264         * haifa-sched.c (advance_one_cycle): Fix dump.
16265         (schedule_block): Don't advance cycle if we are already at the
16266         beginning of the cycle.
16268 2014-08-06  Martin Jambor  <mjambor@suse.cz>
16270         PR ipa/61393
16271         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16273 2014-08-06  Richard Biener  <rguenther@suse.de>
16275         PR lto/62034
16276         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16277         SCCs here.
16278         (lto_input_tree): Pop SCCs here.
16280 2014-08-06  Richard Biener  <rguenther@suse.de>
16282         PR tree-optimization/61320
16283         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16284         handle misaligned loads.
16286 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
16288         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16289         (aarch64_expand_vec_perm_const): Check for dup before zip.
16291 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16293         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16294         CONST_INT_P instead of GET_CODE and compare.
16295         (aarch64_select_cc_mode): Likewise.
16296         (aarch64_print_operand): Likewise.
16297         (aarch64_rtx_costs): Likewise.
16298         (aarch64_simd_valid_immediate): Likewise.
16299         (aarch64_simd_check_vect_par_cnst_half): Likewise.
16300         (aarch64_simd_emit_pair_result_insn): Likewise.
16302 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
16304         * gdbhooks.py (find_gcc_source_dir): New helper function.
16305         (class PassNames): New class, locating and parsing passes.def.
16306         (class BreakOnPass): New command "break-on-pass".
16308 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
16310         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
16311         getting olde.
16313 2014-08-05  Richard Biener  <rguenther@suse.de>
16315         PR rtl-optimization/61672
16316         * emit-rtl.h (mem_attrs_eq_p): Declare.
16317         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
16318         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
16319         * cfgcleanup.c (merge_memattrs): Likewise.
16320         Include emit-rtl.h.
16322 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16324         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
16325         rather than singleton vectors.
16326         (vqdmlsls_lane_s32): Likewise.
16328 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16330         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
16331         Use VSDQ_HSI mode iterator.
16332         (aarch64_sqrdmulh_laneq<mode>): Likewise.
16333         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
16334         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
16335         Use BUILTIN_VDQHS macro.
16336         (sqrdmulh_laneq): Likewise.
16337         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
16338         (vqdmlals_laneq_s32): Likewise.
16339         (vqdmlslh_laneq_s16): Likewise.
16340         (vqdmlsls_laneq_s32): Likewise.
16341         (vqdmulhh_laneq_s16): Likewise.
16342         (vqdmulhs_laneq_s32): Likewise.
16343         (vqrdmulhh_laneq_s16): Likewise.
16344         (vqrdmulhs_laneq_s32): Likewise.
16346 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16348         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
16349         (vmuld_laneq_f64): Likewise.
16350         (vmuls_laneq_f32): Likewise.
16351         (vmul_n_f64): Likewise.
16352         (vmuld_lane_f64): Reimplement in C.
16353         (vmuls_lane_f32): Likewise.
16355 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16357         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
16358         to reservation.
16359         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
16361 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16363         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
16364         (rbitsi2): Likewise.
16365         (*arm_rev): Set predicable and predicable_short_it attributes.
16367 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16369         * convert.c (convert_to_integer): Guard transformation to lrint by
16370         -fno-math-errno.
16372 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
16374         * config/aarch64/aarch64-builtins.c
16375         (aarch64_simd_builtin_type_mode): Delete.
16376         (v8qi_UP): Remap to V8QImode.
16377         (v4hi_UP): Remap to V4HImode.
16378         (v2si_UP): Remap to V2SImode.
16379         (v2sf_UP): Remap to V2SFmode.
16380         (v1df_UP): Remap to V1DFmode.
16381         (di_UP): Remap to DImode.
16382         (df_UP): Remap to DFmode.
16383         (v16qi_UP):V16QImode.
16384         (v8hi_UP): Remap to V8HImode.
16385         (v4si_UP): Remap to V4SImode.
16386         (v4sf_UP): Remap to V4SFmode.
16387         (v2di_UP): Remap to V2DImode.
16388         (v2df_UP): Remap to V2DFmode.
16389         (ti_UP): Remap to TImode.
16390         (ei_UP): Remap to EImode.
16391         (oi_UP): Remap to OImode.
16392         (ci_UP): Map to CImode.
16393         (xi_UP): Remap to XImode.
16394         (si_UP): Remap to SImode.
16395         (sf_UP): Remap to SFmode.
16396         (hi_UP): Remap to HImode.
16397         (qi_UP): Remap to QImode.
16398         (aarch64_simd_builtin_datum): Make mode a machine_mode.
16399         (VAR1): Build builtin name.
16400         (aarch64_init_simd_builtins): Remove dead code.
16402 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
16404         * graphite-isl-ast-to-gimple.c:
16405         (set_options): New function.
16406         (scop_to_isl_ast): Add calling of set_options.
16408 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
16410         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
16411         (analyze_iv_to_split_insn): Don't initialize them.
16412         (get_ivts_expr): Removed.
16413         (allocate_basic_variable, insert_base_initialization): Use
16414         SET_SRC instead of *get_ivts_expr.
16415         (split_iv): Use &SET_SRC instead of get_ivts_expr.
16417 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
16419         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
16420         (translate_isl_ast_for_loop): Add checking of the
16421         flag_loop_parallelize_all.
16422         (ast_build_before_for): New function.
16423         (scop_to_isl_ast): Add checking of the
16424         flag_loop_parallelize_all.
16425         * graphite-dependences.c: Move the defenition of the
16426         scop_get_dependences from graphite-optimize-isl.c to this file.
16427         (apply_schedule_on_deps): Add checking of the ux's emptiness.
16428         (carries_deps): Add checking of the x's value.
16429         * graphite-optimize-isl.c: Move the defenition of the
16430         scop_get_dependences to graphite-dependences.c.
16431         * graphite-poly.h: Add declarations of scop_get_dependences
16432         and carries_deps.
16434 2014-08-04  Rohit  <rohitarulraj@freescale.com>
16436         PR target/60102
16437         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
16438         names.
16439         (alt_reg_names): Likewise.
16440         (rs6000_dwarf_register_span): For SPE high registers, replace
16441         dwarf register numbers with GCC hard register numbers.
16442         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
16443         (rs6000_dbx_register_number): For SPE high registers, return dwarf
16444         register number for the corresponding GCC hard register number.
16445         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
16446         newly added GCC hard register numbers for SPE high registers.
16447         (DWARF_FRAME_REGISTERS):  Likewise.
16448         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
16449         (DWARF_FRAME_REGNUM): Likewise.
16450         (FIXED_REGISTERS): Likewise.
16451         (CALL_USED_REGISTERS): Likewise.
16452         (CALL_REALLY_USED_REGISTERS): Likewise.
16453         (REG_ALLOC_ORDER): Likewise.
16454         (enum reg_class): Likewise.
16455         (REG_CLASS_NAMES): Likewise.
16456         (REG_CLASS_CONTENTS): Likewise.
16457         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
16459 2014-08-04  Richard Biener  <rguenther@suse.de>
16461         * gimple-fold.h (gimple_fold_builtin): Remove.
16462         * gimple-fold.c (gimple_fold_builtin): Make static.
16463         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
16464         fold_stmt, not gimple_fold_builtin.
16466 2014-08-04  Martin Liska <mliska@suse.cz>
16468         * cgraph.h (csi_end_p): Removed.
16469         (csi_next): Likewise.
16470         (csi_node): Likewise.
16471         (csi_start): Likewise.
16472         (cgraph_node_in_set_p): Likewise.
16473         (cgraph_node_set_size): Likewise.
16474         (vsi_end_p): Likewise.
16475         (vsi_next): Likewise.
16476         (vsi_node): Likewise.
16477         (vsi_start): Likewise.
16478         (varpool_node_set_size): Likewise.
16479         (cgraph_node_set_nonempty_p): Likewise.
16480         (varpool_node_set_nonempty_p): Likewise.
16481         * cgraphunit.c (cgraph_process_new_functions): vec replaces
16482         cgraph_node_set.
16483         * ipa-inline-transform.c: Likewise.
16484         * ipa-utils.c (cgraph_node_set_new): Removed.
16485         (cgraph_node_set_add): Likewise.
16486         (cgraph_node_set_remove): Likewise.
16487         (cgraph_node_set_find): Likewise.
16488         (dump_cgraph_node_set): Likewise.
16489         (debug_cgraph_node_set): Likewise.
16490         (free_cgraph_node_set): Likewise.
16491         (varpool_node_set_new): Likewise.
16492         (varpool_node_set_add): Likewise.
16493         (varpool_node_set_remove): Likewise.
16494         (varpool_node_set_find): Likewise.
16495         (dump_varpool_node_set): Likewise.
16496         (free_varpool_node_set): Likewise.
16497         (debug_varpool_node_set): Likewise.
16498         * tree-emutls.c (struct tls_var_data):
16499         (emutls_index): Removed.
16500         (emutls_decl): Likewise.
16501         (gen_emutls_addr): Function implementation uses newly added
16502         hash_map<varpool_node *, tls_var_data>.
16503         (clear_access_vars): Likewise.
16504         (create_emultls_var): Likewise.
16505         (ipa_lower_emutls): Likewise.
16506         (reset_access): New function.
16508 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
16510         * config/i386/i386.c (ix86_option_override_internal): Add
16511         PTA_RDRND and PTA_MOVBE for bdver4.
16513 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16514             James Greenhalgh  <james.greenhalgh@arm.com>
16516         * doc/md.texi (clrsb): Document.
16517         (clz): Change reference to x into operand 1.
16518         (ctz): Likewise.
16519         (popcount): Likewise.
16521 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16523         PR target/61713
16524         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
16525         move to subtarget in serial version if result is ignored.
16527 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16528             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16530         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
16531         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
16532         (sched_analyze_insn): Update use of try_group_insn to
16533         sched_macro_fuse_insns.
16534         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
16535         arguments that are not conditional jumps.
16537 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
16539         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
16540         family information. Handle BTVER2 cpu with cpuid family value.
16542 2014-08-04  Tom de Vries  <tom@codesourcery.com>
16544         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16545         (glibc_2_11_or_earlier): Document effective-target keywords.
16547 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
16549         * ipa-devirt.c (odr_type_warn_count): Add type.
16550         (possible_polymorphic_call_targets): Set it.
16551         (ipa_devirt): Use it.
16553 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
16555         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16556         Document.
16557         * ipa-devirt.c: Include hash-map.h
16558         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16559         (clear_speculation): Break out of ...
16560         (get_class_context): ... here; speed up handling obviously useless
16561         speculations.
16562         (odr_type_warn_count, decl_warn_count): New structures.
16563         (final_warning_record): New structure.
16564         (final_warning_records): New static variable.
16565         (possible_polymorphic_call_targets): Cleanup handling of
16566         speculative info; do not build speculation when user do not care;
16567         record info about warnings when asked for.
16568         (add_decl_warning): New function.
16569         (type_warning_cmp): New function.
16570         (decl_warning_cmp): New function.
16571         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16572         (gate): Enable pass when warnings are requested.
16573         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16574         options.
16576 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
16578         * hash-map.h (default_hashmap_traits::mark_key_deleted):
16579         Fix cast.
16580         (hash_map::remove): New method.
16581         (hash_map::traverse): New method.
16582         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16583         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16584         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16585         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16586         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16587         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16588         pointer_map.
16590 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
16592         * hash-set.h: new File.
16593         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16594         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16595         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16596         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16597         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16598         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16599         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16600         varpool.c: Use hash_set instead of pointer_set.
16602 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
16604         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16606 2014-08-01  Jiong Wang <jiong.wang@arm.com>
16608         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16609         for frame access when strict_p is false.
16611 2014-08-01  Renlin Li <renlin.li@arm.com>
16612 2014-08-01  Jiong Wang <jiong.wang@arm.com>
16614         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16615         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16616         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16617         Declaration.
16618         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16619         predicate.
16620         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16621         aarch64_mem_pair_offset.
16623 2014-08-01  Jiong Wang <jiong.wang@arm.com>
16625         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16626         offset.
16627         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16628         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16630 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
16632         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16634 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
16636         PR regression/61510
16637         * cgraphunit.c (analyze_functions): Use get_create rather than get
16638         for decls which are clones of abstract functions.
16640 2014-08-01  Martin Liska  <mliska@suse.cz>
16642         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
16643         * ipa-prop.h (count_formal_params): Global function created from static.
16644         * ipa-prop.c (count_formal_params): Likewise.
16645         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
16646         profiles for semantically equivalent functions.
16647         * passes.c (do_per_function): If we load body of a function
16648         during WPA, this condition should behave same.
16649         * varpool.c (ctor_for_folding): More tolerant assert for variable
16650         aliases created during WPA.
16652 2014-08-01  Martin Liska  <mliska@suse.cz>
16654         * doc/invoke.texi (Options That Control Optimization): Documentation
16655         for -foptimize-strlen introduced. Optimization levels default options
16656         fixed.
16658 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
16660         * opts.c (common_handle_option): Handle -fsanitize=alignment.
16661         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16662         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16663         type to bool.
16664         * stor-layout.h (min_align_of_type): New prototype.
16665         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16666         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
16667         check.
16668         * ubsan.c: Include builtins.h.
16669         (ubsan_expand_bounds_ifn): Change return type to bool,
16670         always return true.
16671         (ubsan_expand_null_ifn): Change return type to bool, change
16672         argument to gimple_stmt_iterator *.  Handle both null and alignment
16673         sanitization, take type from ckind argument's type rather than
16674         first argument.
16675         (instrument_member_call): Removed.
16676         (instrument_mem_ref): Remove t argument, add mem and base arguments.
16677         Handle both null and alignment sanitization, don't say whole
16678         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
16679         call instead of 2 argument.
16680         (instrument_null): Adjust instrument_mem_ref caller.  Don't
16681         instrument calls here.
16682         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16683         like SANITIZE_NULL.
16684         * stor-layout.c (min_align_of_type): New function.
16685         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16686         Or it into SANITIZE_UNDEFINED.
16687         * doc/invoke.texi (-fsanitize=alignment): Document.
16689 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16691         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
16693 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16695         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
16696         inchash.
16697         (vn_reference_compute_hash): Dito.
16698         (vn_nary_op_compute_hash): Dito.
16699         (vn_phi_compute_hash): Dito.
16700         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
16702 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16704         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
16705         Rename to inchash:add_expr_commutative. Convert to inchash.
16706         (iterative_hash_hashable_expr): Rename to
16707         inchash:add_hashable_expr. Convert to inchash.
16708         (avail_expr_hash): Dito.
16710 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16712         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
16713         Convert to inchash.
16715 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16717         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
16719 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16721         * Makefile.in (OBJS): Add rtlhash.o
16722         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
16723         (loc_checksum): Dito.
16724         (loc_checksum_ordered): Dito.
16725         (hash_loc_operands): Dito.
16726         (hash_locs): Dito.
16727         (hash_loc_list): Dito.
16728         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
16729         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
16730         * rtlhash.c: New file.
16731         * rtlhash.h: New file.
16733 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16735         * inchash.h (inchash): Change inchash class to namespace.
16736         (class hash): ... Rename from inchash.
16737         (add_object): Move from macro to class template.
16738         * lto-streamer-out.c (hash_tree): Change inchash
16739         to inchash::hash.
16740         * tree.c (build_type_attribute_qual_variant): Dito.
16741         (type_hash_list): Dito.
16742         (attribute_hash_list): Dito.
16743         (iterative_hstate_expr): Rename to inchash::add_expr
16744         (build_range_type_1): Change inchash to inchash::hash
16745         and use hash::add_expr.
16746         (build_array_type_1): Dito.
16747         (build_function_type): Dito
16748         (build_method_type_directly): Dito.
16749         (build_offset_type): Dito.
16750         (build_complex_type): Dito.
16751         (make_vector_type): Dito.
16752         * tree.h (iterative_hash_expr): Dito.
16754 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
16756         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
16758 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
16760         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
16761         correct alphabetical position.
16762         (vpaddd_f64): Rewrite using builtins.
16763         (vpaddd_s64): Move to correct alphabetical position.
16764         (vpaddd_u64): New.
16766 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
16768         PR target/61844
16769         * config/sh/sh.c (sh_legitimate_address_p,
16770         sh_legitimize_reload_address): Handle reg+reg address modes when
16771         ALLOW_INDEXED_ADDRESS is false.
16772         * config/sh/predicates.md (general_movsrc_operand,
16773         general_movdst_operand): Likewise.
16775 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
16777         * config/aarch64/aarch64-builtins.c
16778         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
16779         BYTES_BIG_ENDIAN.
16781 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
16783         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
16784         the generated mask based on BYTES_BIG_ENDIAN.
16785         (aarch64_simd_check_vect_par_cnst_half): New.
16786         * config/aarch64/aarch64-protos.h
16787         (aarch64_simd_check_vect_par_cnst_half): New.
16788         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
16789         the check out to aarch64_simd_check_vect_par_cnst_half.
16790         (vect_par_cnst_lo_half): Likewise.
16791         * config/aarch64/aarch64-simd.md
16792         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
16793         (move_hi_quad_<mode>): Always generate a low mask.
16795 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16797         * doc/invoke.texi (AVR Options): Add documentation about
16798         __AVR_DEVICE_NAME__ built-in macro.
16800 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
16802         PR target/61948
16803         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
16804         constraints are satisfied.
16805         (<shift>di3_neon): Likewise.
16807 2014-07-31  Richard Biener  <rguenther@suse.de>
16809         PR tree-optimization/61964
16810         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
16811         by structural equality.
16813 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
16815         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
16816         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
16817         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
16818         New enums.
16819         * gcc.c (sanitize_spec_function): Support new option.
16820         (SANITIZER_SPEC): Remove now redundant check.
16821         * opts.c (common_handle_option): Support new option.
16822         (finish_options): Check for incompatibilities.
16823         * toplev.c (process_options): Split userspace-specific checks.
16825 2014-07-31  Richard Biener  <rguenther@suse.de>
16827         * lto-streamer.h (struct output_block): Remove global.
16828         (struct data_in): Remove labels, num_named_labels and
16829         num_unnamed_labels.
16830         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
16831         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
16833 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
16835         PR c++/60517
16836         * common.opt (-Wreturn-local-addr): Moved from c.opt.
16837         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
16838         (isolate_path): New argument to avoid inserting a trap.
16839         (find_implicit_erroneous_behaviour): Handle returning the address
16840         of a local variable.
16841         (find_explicit_erroneous_behaviour): Likewise.
16843 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
16845         PR lto/61868
16846         * toplev.c (init_random_seed): Move piece of code never called to
16847         set_random_seed.
16848         (set_random_seed): see above.
16850 2014-07-31  Tom de Vries  <tom@codesourcery.com>
16852         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
16854 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
16856         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
16857         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
16859 2014-07-31  Richard Biener  <rguenther@suse.de>
16861         * data-streamer.h (streamer_write_data_stream): Declare here,
16862         renamed from ...
16863         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
16864         * lto-cgraph.c (lto_output_node): Adjust.
16865         (lto_output_varpool_node): Likewise.
16866         * data-streamer-out.c (streamer_string_index): Likewise.
16867         (streamer_write_data_stream, lto_append_block): Move from ...
16868         * lto-section-out.c (lto_output_data_stream,
16869         lto_append_block): ... here.
16871 2014-07-30  Mike Stump  <mikestump@comcast.net>
16873         * configure.ac: Also check for popen.
16874         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
16875         * configure: Regenerate.
16876         * config.in:  Regenerate.
16878 2014-07-30  Martin Jambor  <mjambor@suse.cz>
16880         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
16881         parameter to gimple.
16883 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16885         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
16886         address as second parameter to __tpf_eh_return routine.
16888 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
16890         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
16891         Thumb2.
16893 2014-07-30  Tom Tromey  <tromey@redhat.com>
16895         PR c/59855
16896         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
16897         * doc/extend.texi (Type Attributes): Document designated_init
16898         attribute.
16900 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
16902         * graphite-isl-ast-to-gimple.c:
16903         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
16904         (gcc_expression_from_isl_expression): Pass type to
16905         gcc_expression_from_isl_ast_expr_id.
16907 2014-07-30  Richard Biener  <rguenther@suse.de>
16909         * lto-streamer.h (lto_write_data): New function.
16910         * langhooks.c (lhd_append_data): Do not free block.
16911         * lto-section-out.c (lto_write_data): New function writing
16912         raw data to the current section.
16913         (lto_write_stream): Adjust for langhook semantic change.
16914         (lto_destroy_simple_output_block): Write header directly.
16915         * lto-opts.c (lto_write_options): Write options directly.
16916         * lto-streamer-out.c (produce_asm): Write heaeder directly.
16917         (lto_output_toplevel_asms): Likewise.
16918         (copy_function_or_variable): Copy data directly.
16919         (write_global_references): Output index table directly.
16920         (lto_output_decl_state_refs): Likewise.
16921         (write_symbol): Write data directly.
16922         (produce_symtab): Adjust.
16923         (produce_asm_for_decls): Output header and refs directly.
16925 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
16927         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
16928         to speculative_targets
16929         (get_class_context): Fix handling of contextes without outer type;
16930         avoid matching non-polymorphic types in LTO.
16931         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
16932         parameter to speculative_targetsp; handle speculation.
16933         (dump_possible_polymorphic_call_targets): Update dumping.
16935 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
16937         * common.opt (Wodr): Enable by default.
16939 2014-07-29  Olivier Hainque  <hainque@adacore.com>
16941         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
16943 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
16945         PR bootstrap/61914
16946         * gengtype.c (strtoken): New function.
16947         (create_user_defined_type): Replace strtok with strtoken.
16949 2014-07-29  Nathan Sidwell  <nathan@acm.org>
16951         * gcov-io.c (gcov_var): Make hidden.
16952         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
16953         (gcov_do_dump): Declare.
16954         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
16956 2014-07-29  Martin Jambor  <mjambor@suse.cz>
16958         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
16959         parameter to gimple.
16960         (sra_modify_assign): Likewise.
16962 2014-07-29  Richard Biener  <rguenther@suse.de>
16964         PR middle-end/52478
16965         * expr.c (expand_expr_real_2): Revert last change.
16967 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
16969         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
16970         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
16971         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
16972         call.
16973         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
16974         (contains_type_p): Forward declare.
16975         (polymorphic_call_target_hasher::hash): Hash speculative info.
16976         (polymorphic_call_target_hasher::equal): Compare speculative info.
16977         (get_class_context): Handle speuclation.
16978         (contains_type_p): Update.
16979         (get_polymorphic_call_info_for_decl): Update.
16980         (walk_ssa_copies): Break out from ...
16981         (get_polymorphic_call_info): ... here; set speculative context
16982         before giving up.
16983         * ipa-prop.c (ipa_write_indirect_edge_info,
16984         ipa_read_indirect_edge_info): Stream speculative context.
16985         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
16986         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
16987         SPECULATIVE_MAYBE_DERIVED_TYPE).
16988         (possible_polymorphic_call_targets overriders): Update.
16989         (dump_possible_polymorphic_call_targets overriders): Update.
16990         (dump_possible_polymorphic_call_target_p overriders): Update.
16992 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
16994         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
16995         ipa-devirt path; fix thinko there.
16997 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
16999         * config/i386/i386.c (ix86_return_in_memory): Replace one
17000         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17002 2014-07-28  Marek Polacek  <polacek@redhat.com>
17004         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
17006 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
17008         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17009         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17010         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17011         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17012         (USE_LD_AS_NEEDED): Likewise.
17013         (ASM_APP_ON): Likewise.
17014         (ASM_APP_OFF): Likewise.
17015         (TARGET_POSIX_IO): Likewise.
17016         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17017         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17018         (USE_LD_AS_NEEDED): Likewise.
17019         (ASM_APP_ON): Likewise.
17020         (ASM_APP_OFF): Likewise.
17021         (TARGET_POSIX_IO): Likewise.
17023 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17025         PR middle-end/61734
17026         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17027         operators other than the equality operators.
17029 2014-07-28  Richard Biener  <rguenther@suse.de>
17031         PR middle-end/52478
17032         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17033         sure to register SImode ones, not only >= word_mode ones.
17034         * expr.c (expand_expr_real_2): When expanding -ftrapv
17035         binops do not use OPTAB_LIB_WIDEN.
17037 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
17039         PR middle-end/61919
17040         * tree-outof-ssa.c (insert_partition_copy_on_edge)
17041         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17042         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17043         inserting them in the insn stream.
17045 2014-07-28  Marek Polacek  <polacek@redhat.com>
17047         PR middle-end/61913
17048         * common.opt (Wodr): Add Var.
17050 2014-07-28  Richard Biener  <rguenther@suse.de>
17052         PR tree-optimization/61921
17053         * tree-ssa-structalias.c (create_variable_info_for_1): Check
17054         if there is a varpool node before dereferencing it.
17056 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
17058         * graphite-sese-to-poly.c:
17059         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17060         id of the pbb), which contains pointer to the pbb1.
17062         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17064 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
17066         * graphite-isl-ast-to-gimple.c:
17067         (graphite_create_new_guard): New function.
17068         (translate_isl_ast_node_if): New function.
17069         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17071         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17073 2014-07-27  Anthony Green  <green@moxielogic.com>
17075         * config.gcc: Add moxie-*-moxiebox* configuration.
17076         * config/moxie/moxiebox.h: New file.
17078 2014-07-26  Andrew Pinski  <apinski@cavium.com>
17080         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17081         from the read only register.
17083 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17085         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17086         as the allocation class if it isn't likely to be spilled.
17088 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17090         * rtl.h (tls_referenced_p): Declare.
17091         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17092         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17093         (mips_cannot_force_const_mem): Use tls_referenced_p.
17094         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17095         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17096         instead of pa_tls_referenced_p.
17097         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17098         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17099         (pa_legitimate_constant_p): Likewise.
17100         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17101         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17102         (rs6000_cannot_force_const_mem, rs6000_emit_move)
17103         (rs6000_address_for_altivec): Use tls_referenced_p instead of
17104         rs6000_tls_referenced_p.
17105         (rs6000_tls_symbol_ref_1): Delete.
17107 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
17109         PR target/44551
17110         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17111         Optimize inverse of a VEC_CONCAT.
17113 2014-07-25  Xinliang David Li  <davidxl@google.com>
17115         * params.def: New parameter.
17116         * coverage.c (get_coverage_counts): Check new flag.
17117         (coverage_compute_profile_id): Check new flag.
17118         (coverage_begin_function): Check new flag.
17119         (coverage_end_function): Check new flag.
17120         * value-prof.c (coverage_node_map_initialized_p): New function.
17121         (init_node_map): Populate map with all functions.
17122         * doc/invoke.texi: Document new parameter.
17124 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
17125             Richard Biener <rguenther@suse.de>
17127         * lto-streamer-out.c (struct sccs): Turn to ...
17128         (class DFS): ... this one; refactor the DFS walk so it can
17129         be re-done on per-SCC basis.
17130         (DFS::DFS): New constructor.
17131         (DFS::~DFS): New destructor.
17132         (hash_tree): Add new MAP argument holding in-SCC hash values;
17133         remove POINTER_TYPE hashing hack.
17134         (scc_entry_compare): Rename to ...
17135         (DFS::scc_entry_compare): ... this one.
17136         (hash_scc): Rename to ...
17137         (DFS::hash_scc): ... this one; pass output_block instead
17138         of streamer_cache; work harder to get unique and stable SCC
17139         hashes.
17140         (DFS_write_tree): Rename to ...
17141         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17142         (lto_output_tree): Update.
17144 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17146         * lto-streamer-out.c (hash_tree): Convert to inchash.
17148 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17150         * tree.c (build_type_attribute_qual_variant): Use inchash.
17151         (type_hash_list): Dito.
17152         (attribute_hash_list): Dito
17153         (iterative_hstate_expr): Dito.
17154         (iterative_hash_expr): Dito.
17155         (build_range_type_1): Dito.
17156         (build_array_type_1): Dito.
17157         (build_function_type): Dito.
17158         (build_method_type_directly): Dito.
17159         (build_offset_type): Dito.
17160         (build_complex_type): Dito.
17161         (make_vector_type): Dito.
17162         * tree.h (iterative_hash_expr): Add compat wrapper.
17163         (iterative_hstate_expr): Add.
17165 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17167         * Makefile.in (OBJS): Add inchash.o.
17168         (PLUGIN_HEADERS): Add inchash.h.
17169         * ipa-devirt.c: Include inchash.h.
17170         * lto-streamer-out.c: Dito.
17171         * tree-ssa-dom.c: Dito.
17172         * tree-ssa-pre.c: Dito.
17173         * tree-ssa-sccvn.c: Dito.
17174         * tree-ssa-tail-merge.c: Dito.
17175         * asan.c: Dito.
17176         * tree.c (iterative_hash_hashval_t): Move to ...
17177         (iterative_hash_host_wide_int): Move to ...
17178         * inchash.c: Here. New file.
17179         * tree.h (iterative_hash_hashval_t): Move to ...
17180         (iterative_hash_host_wide_int): Move to ...
17181         * inchash.h: Here. New file.
17183 2014-07-25  Richard Biener  <rguenther@suse.de>
17185         PR middle-end/61762
17186         PR middle-end/61894
17187         * fold-const.c (native_encode_int): Add and handle offset
17188         parameter to do partial encodings of expr.
17189         (native_encode_fixed): Likewise.
17190         (native_encode_real): Likewise.
17191         (native_encode_complex): Likewise.
17192         (native_encode_vector): Likewise.
17193         (native_encode_string): Likewise.
17194         (native_encode_expr): Likewise.
17195         * fold-const.c (native_encode_expr): Add offset parameter
17196         defaulting to -1.
17197         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17198         (fold_ctor_reference): Handle all reads from tcc_constant
17199         ctors.
17201 2014-07-25  Richard Biener  <rguenther@suse.de>
17203         * tree-inline.c (estimate_move_cost): Mark speed_p argument
17204         as possibly unused.
17206 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17208         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17210 2014-07-24  Kyle McMartin  <kyle@redhat.com>
17212         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17214 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17216         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17217         Add prototype.
17218         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17219         function.
17220         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17221         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17222         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17224 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17226         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17227         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17228         aggregate types.  Instead, *all* aggregate types, except for single-
17229         element or homogeneous float/vector aggregates, are quadword-aligned
17230         if required by their type alignment.  Issue -Wpsabi note when a type
17231         is now treated differently than before.
17233 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17235         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17236         does not fit fully into floating-point registers, and there is still
17237         space in the register parameter area, use GPRs to pass those parts
17238         of the argument.  Issue -Wpsabi note if any parameter is now treated
17239         differently than before.
17240         (rs6000_arg_partial_bytes): Update.
17242 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
17244         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17246 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17248         * rtl.h (target_rtl): Remove lang_dependent_initialized.
17249         * toplev.c (initialize_rtl): Don't use it.  Move previously
17250         "language-dependent" calls to...
17251         (backend_init): ...here.
17252         (lang_dependent_init_target): Don't set lang_dependent_initialized.
17253         Assert that RTL initialization hasn't happend yet.
17255 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17257         PR rtl-optimization/61629
17258         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17259         they have already been initialized.
17261 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17263         PR middle-end/61268
17264         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17265         DECL_INCOMING_RTL and entry_parm.
17266         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17267         * calls.c (load_register_parameters): Likewise argument values.
17268         (emit_library_call_value_1, store_one_arg): Likewise argument
17269         save areas.
17270         * config/i386/i386.c (assign_386_stack_local): Likewise the local
17271         stack slot.
17272         * explow.c (validize_mem): Modify the argument in-place.
17274 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17276         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17277         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17279 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17281         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17282         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17284 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17286         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17287         (aarch64_save_callee_saves): New parameter "skip_wb".
17288         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17290 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17292         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17293         "wb_candidate2".
17294         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
17296 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
17298         * graphite-isl-ast-to-gimple.c:
17299         (graphite_create_new_loop): Add calling of isl_id_free to properly
17300         decrement reference counts.
17302         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
17304 2014-07-24  Martin Liska  <mliska@suse.cz>
17305         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
17306         function used.
17307         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
17308         (rs6000_code_end): Likewise.
17310 2014-07-24  Martin Liska  <mliska@suse.cz>
17312         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
17313         symtab_node funtion used.
17314         (rs6000_xcoff_declare_object_name): Likewise.
17316 2014-07-24  Martin Liska  <mliska@suse.cz>
17318         * cgraphunit.c (compile): Correct function used.
17320 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
17322         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
17323         as non-indexable.
17325 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
17327         PR lto/61802
17328         * varasm.c (bss_initializer_p): Handle offlined ctors.
17329         (align_variable, get_variable_align): Likewise.
17330         (make_decl_one_only): Likewise.
17331         (default_binds_local_p_1): Likewise.
17332         (decl_binds_to_current_def_p): Likewise.
17333         (get_variable_section): Get constructor if it is offlined.
17334         (assemble_variable_contents): Sanity check that the caller
17335         streamed in the ctor in LTO.
17337 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
17339         * graphite-isl-ast-to-gimple.c:
17340         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
17341         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
17342         isl_ast_op_pdiv_r to the different case.
17344         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
17346 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17348         PR middle-end/61876
17349         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
17350         when flag_errno_math is on.
17352 2014-07-24  Martin Liska  <mliska@suse.cz>
17354         * cgraph.h (varpool_node):
17355         (availability get_availability (void)):
17356         created from cgraph_variable_initializer_availability
17357         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
17358         created from: cgraph_variable_initializer_availability
17359         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
17360         (void finalize_named_section_flags (void)):
17361         created from varpool_finalize_named_section_flags
17362         (bool assemble_decl (void)): created from varpool_assemble_decl
17363         (void analyze (void)): created from varpool_analyze_node
17364         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
17365         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
17366         (void remove_initializer (void)): created from varpool_remove_initializer
17367         (tree get_constructor (void)): created from varpool_get_constructor
17368         (bool externally_visible_p (void)): created from varpool_externally_visible_p
17369         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
17370         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
17371         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
17372         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
17373         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
17374         (static bool output_variables (void)): created from varpool_output_variables
17375         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
17376         created from varpool_extra_name_alias
17377         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
17378         (static void dump_varpool (FILE *f)): created from dump_varpool
17379         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
17380         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
17381         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
17382         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
17383         (void assemble_aliases (void)): created from assemble_aliases
17385 2014-07-24  Martin Liska  <mliska@suse.cz>
17387         * cgraph.h (symtab_node):
17388         (void register_symbol (void)): created from symtab_register_node
17389         (void remove (void)): created from symtab_remove_node
17390         (void dump (FILE *f)): created from dump_symtab_node
17391         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
17392         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
17393         (struct ipa_ref *add_reference (symtab_node *referred_node,
17394         enum ipa_ref_use use_type)): created from add_reference
17395         (struct ipa_ref *add_reference (symtab_node *referred_node,
17396         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
17397         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
17398         gimple stmt)): created from maybe_add_reference
17399         (bool semantically_equivalent_p (symtab_node *target)): created from
17400         symtab_semantically_equivalent_p
17401         (void remove_from_same_comdat_group (void)): created from
17402         remove_from_same_comdat_group
17403         (void add_to_same_comdat_group (symtab_node *old_node)): created from
17404         symtab_add_to_same_comdat_group
17405         (void dissolve_same_comdat_group_list (void)): created from
17406         symtab_dissolve_same_comdat_group_list
17407         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
17408         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
17409         created from symtab_alias_ultimate_target
17410         (inline symtab_node *next_defined_symbol (void)): created from
17411         symtab_next_defined_symbol
17412         (bool resolve_alias (symtab_node *target)): created from
17413         symtab_resolve_alias
17414         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
17415         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
17416         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
17417         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
17418         (void set_section (const char *section)): created from set_section_1
17419         (enum availability get_availability (void)): created from symtab_node_availability
17420         (void make_decl_local (void)): created from symtab_make_decl_local
17421         (bool real_symbol_p (void)): created from symtab_read_node
17422         (can_be_discarded_p (void)): created from symtab_can_be_discarded
17423         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
17424         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
17425         symtab_in_same_comdat_p;
17426         (bool address_taken_from_non_vtable_p (void)): created from
17427         address_taken_from_non_vtable_p
17428         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
17429         (static void dump_table (FILE *)): created from dump_symtab
17430         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
17431         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
17432         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
17433         symtab_used_from_object_file_p
17434         (void dump_base (FILE *)): created from dump_symtab_base
17435         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
17436         (void unregister (void)): created from symtab_unregister_node
17437         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
17438         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
17439         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
17440         symtab_nonoverwritable_alias_1
17441         * cgraph.h (cgraph_node):
17442         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
17443         created from cgraph_remove_node_and_inline_clones
17444         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
17445         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
17446         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
17447         (cgraph_node *function_symbol (enum availability *avail = NULL)):
17448         created from cgraph_function_node
17449         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
17450         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
17451         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
17452         created from cgraph_create_clone
17453         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
17454         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
17455         created from cgraph_create_virtual_clone
17456         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
17457         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
17458         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
17459         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
17460         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
17461         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
17462         created from cgraph_function_version_info
17463         (struct cgraph_function_version_info *insert_new_function_version (void)):
17464         created from insert_new_cgraph_node_version
17465         (struct cgraph_function_version_info *function_version (void)): created from
17466         get_cgraph_node_version
17467         (void analyze (void)): created from analyze_function
17468         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
17469         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
17470         tree real_alias) cgraph_add_thunk
17471         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
17472         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
17473         created from cgraph_function_or_thunk_node
17474         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
17475         created from expand_thunk
17476         (void reset (void)): created from cgraph_reset_node
17477         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
17478         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
17479         (void remove (void)): created from cgraph_remove_node
17480         (void dump (FILE *f)): created from dump_cgraph_node
17481         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
17482         (bool get_body (void)): created from cgraph_get_body
17483         (void release_body (void)): created from cgraph_release_function_body
17484         (void unnest (void)): created from cgraph_unnest_node
17485         (void make_local (void)): created from cgraph_make_node_local
17486         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
17487         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
17488         gcov_type count, int freq)): created from cgraph_create_edge
17489         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
17490         gcov_type count, int freq)): created from cgraph_create_indirect_edge
17491         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
17492         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
17493         created from cgraph_create_edge_including_clones
17494         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
17495         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
17496         (void remove_callers (void)): created from cgraph_node_remove_callers
17497         (void remove_callees (void)): created from cgraph_node_remove_callees
17498         (enum availability get_availability (void)): created from cgraph_function_body_availability
17499         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
17500         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
17501         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
17502         (void call_duplication_hooks (cgraph_node *node2)): created from
17503         cgraph_call_node_duplication_hooks
17504         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
17505         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
17506         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
17507         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
17508         (void call_function_insertion_hooks (void)):
17509         created from cgraph_call_function_insertion_hooks
17510         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
17511         (bool local_p (void)): created from cgraph_local_node
17512         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
17513         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
17514         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
17515         (inline bool only_called_directly_or_aliased_p (void)):
17516         created from cgraph_only_called_directly_or_aliased_p
17517         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
17518         created from cgraph_will_be_removed_from_program_if_no_direct_calls
17519         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
17520         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
17521         (bool can_remove_if_no_direct_calls_p (void)):
17522         created from cgraph_can_remove_if_no_direct_calls_p
17523         (inline bool has_gimple_body_p (void)):
17524         created from cgraph_function_with_gimple_body_p
17525         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
17526         (static void dump_cgraph (FILE *f)): created from dump_cgraph
17527         (static inline void debug_cgraph (void)): created from debug_cgraph
17528         (static void record_function_versions (tree decl1, tree decl2)):
17529         created from record_function_versions
17530         (static void delete_function_version (tree decl)):
17531         created from delete_function_version
17532         (static void add_new_function (tree fndecl, bool lowered)):
17533         created from cgraph_add_new_function
17534         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
17535         (static cgraph_node * create (tree decl)): created from cgraph_create_node
17536         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
17537         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
17538         (static cgraph_node *get_for_asmname (tree asmname)):
17539         created from cgraph_node_for_asm
17540         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
17541         created from cgraph_same_body_alias
17542         (static bool used_from_object_file_p_worker (cgraph_node *node,
17543         void *): new function
17544         (static bool non_local_p (cgraph_node *node, void *)):
17545         created from cgraph_non_local_node_p_1
17546         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17547         created from verify_cgraph
17548         (static bool make_local (cgraph_node *node, void *)):
17549         created from cgraph_make_node_local
17550         (static cgraph_node *create_alias (tree alias, tree target)):
17551         created from cgraph_create_function_alias
17552         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17553         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17554         created from cgraph_create_edge_1
17555         * cgraph.h (varpool_node):
17556         (void remove (void)): created from varpool_remove_node
17557         (void dump (FILE *f)): created from dump_varpool_node
17559 2014-07-24  Richard Biener  <rguenther@suse.de>
17561         PR ipa/61823
17562         * tree-ssa-structalias.c (create_variable_info_for_1):
17563         Use varpool_get_constructor.
17564         (create_variable_info_for): Likewise.
17566 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17568         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17569         subtract outgoing area size when restoring stack_pointer_rtx.
17571 2014-07-24  Nick Clifton  <nickc@redhat.com>
17573         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17574         that operations are taking place in parallel.
17575         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17577 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
17579         * omp-low.c (extract_omp_for_data): Add missing break statement.
17581 2014-07-24  Richard Biener  <rguenther@suse.de>
17583         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17584         * tree-inline.c (estimate_move_cost): Add speed_p parameter
17585         and adjust MOVE_RATIO query accordingly.
17586         (estimate_num_insns): Adjust callers.
17587         * ipa-prop.c (ipa_populate_param_decls): Likewise.
17588         * ipa-cp.c (gather_context_independent_values,
17589         estimate_local_effects): Likewise.
17590         * ipa-split.c (consider_split): Likewise.
17592 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
17594         * config/i386/driver-i386.c: Remove names of unused arguments and
17595         unnecessary unused attributes.
17596         * config/i386/host-mingw32.c: Likewise.
17597         * config/i386/i386.c: Likewise.
17598         * config/i386/winnt-stubs.c: Likewise.
17599         * config/i386/winnt.c: Likewise.
17601 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17603         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17604         (aarch64_gen_loadwb_pair): New helper function.
17605         (aarch64_expand_epilogue): Simplify code using new helper functions.
17606         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17608 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17610         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17611         (aarch64_gen_storewb_pair): New helper function.
17612         (aarch64_expand_prologue): Simplify code using new helper functions.
17613         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17615 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17617         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17618         Rename to aarch64_save_callee_saves, remove restore code.
17619         (aarch64_restore_callee_saves): New function.
17621 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17623         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17624         (aarch64_save_callee_saves): New function to handle reg save
17625         for both core and vectore regs.
17627 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17629         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17630         (aarch64_gen_store_pair): New helper function.
17631         (aarch64_save_or_restore_callee_save_registers)
17632         (aarch64_save_or_restore_fprs): Use new helper functions.
17634 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17636         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17637         (aarch64_save_or_restore_callee_save_registers)
17638         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
17640 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17642         * config/aarch64/aarch64.c
17643         (aarch64_save_or_restore_callee_save_registers)
17644         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
17646 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17648         * config/aarch64/aarch64.c
17649         (aarch64_save_or_restore_callee_save_registers)
17650         (aarch64_save_or_restore_fprs): Remove 'increment'.
17652 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17654         * config/aarch64/aarch64.c
17655         (aarch64_save_or_restore_callee_save_registers)
17656         (aarch64_save_or_restore_fprs): Use register offset in
17657         cfun->machine->frame.reg_offset.
17659 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17661         * config/aarch64/aarch64.c
17662         (aarch64_save_or_restore_callee_save_registers)
17663         (aarch64_save_or_restore_fprs): Remove base_rtx.
17665 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17667         * config/aarch64/aarch64.c
17668         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17669         to 'start_offset'.  Remove local variable 'start_offset'.
17671 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17673         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17674         type to HOST_WIDE_INT.
17676 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17678         * config/aarch64/aarch64.c (aarch64_expand_prologue)
17679         (aarch64_save_or_restore_fprs)
17680         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17682 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17684         * config/arm/t-rtems-eabi: Add
17685         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17686         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17687         mbig-endian/mthumb/march=armv7-r, and
17688         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
17689         multilibs.
17691 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17692             Chris Johns <chrisj@rtems.org>
17693             Joel Sherrill <joel.sherrill@oarcorp.com>
17695         * config.gcc: Add nios2-*-rtems*.
17696         * config/nios2/rtems.h: New file.
17697         * gcc/config/nios2/t-rtems: New file.
17699 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
17701         PR target/61396
17702         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
17703         constant numbers, not general constants.
17704         (rs6000_expand_vector_init): Ditto.
17706 2014-07-23  Nathan Sidwell  <nathan@acm.org>
17708         * gcov-tool.c (gcov_list): Declare here.
17709         (set_gcov_list): Remove.
17710         (gcov_output_files): Set gcov_list directly.
17712 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
17714         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
17716 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17718         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
17719         callee-saved registers are available for padding purpose
17720         and r3 is not mandatory, then prefer use those callee-saved
17721         instead of r3.
17723 2014-07-23  Richard Biener  <rguenther@suse.de>
17725         * params.def (PARAM_MAX_COMBINE_INSNS): New.
17726         * combine.c: Include statistics.h and params.h.
17727         (combine_instructions): Guard three and four insn combines
17728         with max-combine-insns value.  Record statistics for combines
17729         performed.
17730         * doc/invoke.texi (max-combine-insns): Document new param.
17732 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
17734         * graphite-isl-ast-to-gimple.c:
17735         (translate_isl_ast_node_block): New function.
17736         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
17738         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
17739         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
17741 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
17743         * graphite-isl-ast-to-gimple.c:
17744         (get_max_schedule_dimensions): New function.
17745         (extend_schedule): Likewise.
17746         (generate_isl_schedule): Add calling of extend_schedule and
17747         get_max_schedule_dimensions.
17749 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17751         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
17752         (case UNSPEC): Handle UNSPEC_RBIT.
17754 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17756         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
17757         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
17759 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17761         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
17763 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
17765         * graphite-isl-ast-to-gimple.c:
17766         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
17767         (ivs_params_clear):
17768         (build_iv_mapping): New function.
17769         (translate_isl_ast_node_user): Likewise.
17770         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
17772         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
17773         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
17774         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
17776 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
17778         PR target/55701
17779         * config/arm/arm.md (setmem): New pattern.
17780         * config/arm/arm-protos.h (struct tune_params): New fields.
17781         (arm_gen_setmem): New prototype.
17782         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17783         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17784         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17785         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17786         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17787         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17788         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17789         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17790         (arm_const_inline_cost): New function.
17791         (arm_block_set_max_insns): New function.
17792         (arm_block_set_non_vect_profit_p): New function.
17793         (arm_block_set_vect_profit_p): New function.
17794         (arm_block_set_unaligned_vect): New function.
17795         (arm_block_set_aligned_vect): New function.
17796         (arm_block_set_unaligned_non_vect): New function.
17797         (arm_block_set_aligned_non_vect): New function.
17798         (arm_block_set_vect, arm_gen_setmem): New functions.
17800 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
17802         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
17804 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
17806         PR target/61855
17807         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
17808         out of #ifdef __OPTIMIZE__.
17810 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
17812         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
17813         different trapping status if -fnon-call-exceptions is enabled.
17815 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
17817         * expr.c (store_field): Handle VOIDmode for calls that return values
17818         in multiple locations.
17820 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17822         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
17823         (altivec_vsldoi_<mode>): Likewise.
17825 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
17827         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
17828         to the number of characters in the line.
17830 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
17832         * graphite-isl-ast-to-gimple.c: Add using of
17833         build_nonstandard_integer_type instead of int128_integer_type_node.
17835 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
17837         * toplev.c (output_stack_usage): Adjust the location of the warning.
17839 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
17841         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
17842         (*membar_storeload): Disable for LEON3.
17844 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17846         PR rtl-optimization/61461
17847         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
17849 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
17851         PR target/61794
17852         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
17853         Fix instruction constraint.
17854         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
17856 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
17858         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
17860 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
17862         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
17863         GNU coding standards.
17864         (nds32_register_move_cost): Likewise.
17865         (nds32_memory_move_cost): Likewise.
17866         (nds32_address_cost): Likewise.
17868 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17870         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
17872 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
17874         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
17875         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
17876         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17877         (HAVE_sync_compare_and_swapqi): Define.
17878         (HAVE_sync_compare_and_swaphi): Likewise.
17879         (HAVE_sync_compare_and_swapsi): Likewise.
17881 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
17883         * config/mips/p5600.md: Add missing cpu tests.
17885 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17887         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
17888         (vmla_f64): Likewise.
17889         (vfms_f64): Likewise.
17890         (vmls_f64): Likewise.
17892 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17894         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
17895         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
17897 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17899         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
17900         (vmlal_high_lane_s32): Likewise.
17901         (vmlal_high_lane_u16): Likewise.
17902         (vmlal_high_lane_u32): Likewise.
17903         (vmlsl_high_lane_s16): Likewise.
17904         (vmlsl_high_lane_s32): Likewise.
17905         (vmlsl_high_lane_u16): Likewise.
17906         (vmlsl_high_lane_u32): Likewise.
17908 2014-07-17  Terry Guo  <terry.guo@arm.com>
17910         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
17911         (alus_reg): Renamed to alus_sreg.
17912         * config/arm/arm-fixed.md: Change type of non-dsp instructions
17913         from alu_reg to alu_sreg.  Change type of dsp instructions from
17914         alu_reg to alu_dsp_reg.
17915         * config/arm/thumb1.md: Likewise.
17916         * config/arm/thumb2.md: Likewise.
17917         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
17918         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
17919         with alu_sreg and alus_sreg.
17920         * config/arm/arm1026ejs.md (alu_op): Likewise.
17921         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
17922         * config/arm/arm926ejs.md (9_alu_op): Likewise.
17923         * config/arm/fa526.md (526_alu_op): Likewise.
17924         * config/arm/fa606te.md (606te_alu_op): Likewise.
17925         * config/arm/fa626te.md (626te_alu_op): Likewise.
17926         * config/arm/fa726te.md (726te_alu_op): Likewise.
17927         * config/arm/fmp626.md (mp626_alu_op): Likewise.
17928         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
17929         alu_sreg, alu_dsp_reg and alus_sreg.
17930         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
17931         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17932         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17933         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
17934         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
17935         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17936         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17937         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17938         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
17939         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
17940         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
17941         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
17942         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
17943         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
17944         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
17945         alus_reg to alus_sreg.
17947 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
17949         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
17950         infinity format.
17952 2014-07-17  Richard Biener  <rguenther@suse.de>
17954         PR rtl-optimization/61801
17955         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
17956         don't set reg_pending_barrier if it appears in a debug-insn.
17958 2014-07-16  DJ Delorie  <dj@redhat.com>
17960         * config/rx/rx.c (rx_option_override): Fix alignment values.
17961         (rx_align_for_label): Likewise.
17963 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
17965         PR target/61737.
17966         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
17967         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
17968         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
17969         functions.
17970         (cris_print_index, cris_print_operand, cris_constant_index_p)
17971         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
17972         (cris_address_cost): Ditto last CONSTANT_P.
17973         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
17974         callers changed.  Yield cris_offsettable_symbol for non-PIC
17975         constant symbolic expressions including labels.  Yield cris_unspec
17976         for all unspecs.
17977         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
17978         target to pic_offset_table_rtx for calls that will likely go
17979         through PLT, const0_rtx when they can't.  All callers changed.
17980         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
17981         symbolic expressions to be PICified.  Remove second, redundant,
17982         assert on can_create_pseudo_p returning non-zero.  Use
17983         replace_equiv_address_nv, not replace_equiv_address, for final
17984         operand update.
17985         * config/cris/cris.md ("movsi"): Move variable t to pattern
17986         toplevel. Adjust assert for new cris_symbol_type member.  Use
17987         CONSTANT_P instead of CONSTANT_ADDRESS_P.
17988         ("*movsi_internal") <case 9>: Make check for valid unspec operands
17989         for lapc stricter.
17990         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
17991         ("call", "call_value"): Use second incoming operand as a marker
17992         for pic-offset-table-register being used.
17993         ("*expanded_call_non_v32", "*expanded_call_v32")
17994         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
17995         second incoming operand to CALL, match cris_call_type_marker.
17996         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
17997         ("*expanded_call_side"): Ditto.  Fix typo in comment.
17998         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
17999         CONSTANT_P.
18000         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18001         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18002         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
18003         users changed.  Add members cris_offsettable_symbol and cris_unspec.
18004         (cris_symbol_type): Rename from cris_pic_symbol_type.
18005         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18006         just CONSTANT_P.
18007         * config/cris/cris-protos.h (cris_symbol_type_of,
18008         cris_expand_pic_call_address): Adjust prototypes.
18009         (cris_legitimate_constant_p): New prototype.
18011         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18012         an existing tmake_file.  Don't add t-slibgcc and t-linux.
18014 2014-07-17  Jason Merrill  <jason@redhat.com>
18016         PR c++/61623
18017         * symtab.c (symtab_remove_from_same_comdat_group): Also
18018         set_comdat_group to NULL_TREE.
18019         (verify_symtab): Fix diagnostic.
18021 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
18023         PR target/61662
18024         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18026 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
18028         Support location tracking for built-in macro tokens
18029         * input.h (is_location_from_builtin_token): New function declaration.
18030         * input.c (is_location_from_builtin_token): New function definition.
18031         * toplev.c (general_init): Tell libcpp what the pre-defined
18032         spelling location for built-in tokens is.
18034 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
18036         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18037         on the FUNCTION_DECL.
18039 2014-07-16  Richard Biener  <rguenther@suse.de>
18041         PR other/61782
18042         * doc/extend.texi (always_inline): Clarify.
18044 2014-07-15  Eric Christopher  <echristo@gmail.com>
18046         * doc/invoke.texi (Link Options): Document -z option.
18048 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
18050         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18051         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18053 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
18055         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18057 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
18059         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18060         varpool_assemble_decl.
18061         * varpool.c (varpool_assemble_decl): Assert that node->definition is
18062         true.
18064 2014-07-15  Michael Matz  <matz@suse.de>
18066         PR rtl-optimization/61772
18067         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18069 2014-07-15  Richard Biener  <rguenther@suse.de>
18071         * opts.c (default_options_table): Disable bit-ccp at -Og.
18073 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18075         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18077 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18079         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18080         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18081         call langhook for unknown declaration.
18082         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18083         * tree.h (DECL_ARGUMENTS): Update.
18084         * print-tree.c (print_node): Update.
18085         * tree-core.h (tree_decl_non_common): Remove arguments.
18086         (tree_function_decl): Add arguments.
18088 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
18090         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18092 2014-07-14  Richard Biener  <rguenther@suse.de>
18094         PR tree-optimization/61779
18095         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18096         simplifying a condition.
18098 2014-07-14  Richard Biener  <rguenther@suse.de>
18100         * builtins.c (c_strlen): Make only_value == 2 really only
18101         affect warning generation.
18103 2014-07-14  Richard Biener  <rguenther@suse.de>
18105         PR tree-optimization/61757
18106         PR tree-optimization/61783
18107         PR tree-optimization/61787
18108         * tree-ssa-dom.c (record_equality): Revert canonicalization
18109         change and add comment.
18110         (propagate_rhs_into_lhs): Revert previous fix, removing
18111         loop depth restriction again.
18113 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18115         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18116         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18117         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18118         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18119         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18120         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18121         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18123 2014-07-14  Richard Biener  <rguenther@suse.de>
18125         * cgraph.h (decl_in_symtab_p): Make inline.
18127 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
18129         PR middle-end/61294
18130         * doc/invoke.texi (-Wmemset-transposed-args): Document.
18132         PR target/61656
18133         * config/i386/i386.c (classify_argument): Don't merge classes above
18134         number of words.
18136 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
18138         * cgraph.h (symtab_node): Add nonzero_address.
18139         (decl_in_symtab_p): Break out from ...
18140         (symtab_get_node): ... here.
18141         * fold-const.c: Include cgraph.h
18142         (tree_single_nonzero_warnv_p): Use symtab to determine
18143         if symbol is non-zero.
18144         * symtab.c (symtab_node::nonzero_address): New method.
18146 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18148         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18149         forgotten in previous commit.
18151 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18153         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18154         on builtin types.
18155         * ipa-devirt.c: Include stor-layout.h and intl.h
18156         (odr_subtypes_equivalent_p): New function.
18157         (warn_odr): New function.
18158         (warn_type_mismatch): New function.
18159         (odr_types_equivalent_p): New function.
18160         (add_type_duplicate): Use it.
18161         * common.opt (Wodr): New flag.
18162         * doc/invoke.texi (Wodr): Document new warning.
18164 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18166         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
18167         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18168         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
18169         (varpool_get_constructor): Push CTORS_IN timevar.
18170         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
18172 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
18174         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
18175         Remove VOID_FTYPE_PUSHORT.
18176         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
18177         Change code to USHORT_FTYPE_VOID.
18178         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
18179         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
18180         (ix86_atomic_assign_expand_fenv): Update for
18181         __builtin_ia32_fnstsw changes.
18182         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
18183         (fnstsw): Change operand 0 to nonimmediate operand.
18185 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18187         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
18188         (varpool_get_constructor): New function.
18189         (varpool_ctor_useable_for_folding_p): Break out from ...
18190         (ctor_for_folding): ... here; use varpool_get_constructor.
18191         (varpool_assemble_decl): Likewise.
18192         * lto-streamer.h (struct output_block): Turn cgraph_node
18193         to symbol filed.
18194         (lto_input_variable_constructor): Declare.
18195         * ipa-visibility.c (function_and_variable_visibility): Use
18196         varpool_get_constructor.
18197         * cgraph.h (varpool_get_constructor): Declare.
18198         (varpool_ctor_useable_for_folding_p): New function.
18199         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18200         parameter; return error_mark_node for non-trivial constructors.
18201         (lto_write_tree_1, DFS_write_tree): Update use of
18202         get_symbol_initial_value.
18203         (output_function): Update initialization of symbol.
18204         (output_constructor): New function.
18205         (copy_function): Rename to ..
18206         (copy_function_or_variable): ... this one; handle vars too.
18207         (lto_output): Output variable sections.
18208         * lto-streamer-in.c (input_constructor): New function.
18209         (lto_read_body): Rename from ...
18210         (lto_read_body_or_constructor): ... this one; handle vars too.
18211         (lto_input_variable_constructor): New function.
18212         * ipa-prop.c (ipa_prop_write_jump_functions,
18213         ipa_prop_write_all_agg_replacement): Update.
18214         * lto-cgraph.c (compute_ltrans_boundary): Use it.
18215         (output_cgraph_opt_summary): Set symbol to NULL.
18217 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18219         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18220         non-polymorphic types.
18221         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18222         * ipa-devirt.c (types_same_for_odr): Do not explode when one
18223         of types is not polymorphic.
18225 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
18227         * lra-constraints.c (remove_inheritance_pseudos): Process
18228         destination pseudo too.
18230 2014-07-11  Rong Xu  <xur@google.com>
18232         * gcov-tool.c (gcov_output_files): Fix build error introduced in
18233         commit r212448.
18235 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
18237         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18238         * config/avr/avr-devices.c (AVR_MCU): Same.
18239         (avr_mcu_types): add text start value to end of device list.
18240         * config/avr/avr-mcus.def: Add text section start for all devices.
18241         (ata5782): Add new avr5 device.
18242         (ata5831): Same.
18243         * config/avr/avr-tables.opt: Regenerate.
18244         * config/avr/avr.h: Add declaration for text section start handler.
18245         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18246         SPEC functions.
18247         (LINK_SPEC): Include text section start handler to linker spec.
18248         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18249         pass -Ttext option to linker if the text section start for the device
18250         is not zero.
18251         * config/avr/t-multilib: Regenerate.
18252         * doc/avr-mmcu.texi: Regenerate.
18254 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
18256         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18257         * config/rs6000/aix52.h (LINK_SPEC): Same.
18258         * config/rs6000/aix53.h (LINK_SPEC): Same.
18259         * config/rs6000/aix61.h (LINK_SPEC): Same.
18260         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18262 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
18264         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18265         (graphite_verify): New function.
18266         (ivs_params_clear): New function.
18267         (gcc_expression_from_isl_ast_expr_id): New function.
18268         (gcc_expression_from_isl_expr_int): New function.
18269         (binary_op_to_tree): New function.
18270         (ternary_op_to_tree): New function.
18271         (unary_op_to_tree): New function.
18272         (nary_op_to_tree): New function.
18273         (gcc_expression_from_isl_expr_op): New function.
18274         (gcc_expression_from_isl_expression): New function.
18275         (graphite_create_new_loop): New function.
18276         (translate_isl_ast_for_loop): New function.
18277         (get_upper_bound): New function.
18278         (graphite_create_new_loop_guard): New function.
18279         (translate_isl_ast_node_for): New function.
18280         (translate_isl_ast): New function.
18281         (add_parameters_to_ivs_params): New function.
18282         (scop_to_isl_ast): New parameter ip.
18283         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18285 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18287         * config/xtensa/predicates.md (call expander): Update for
18288         DECL_SECTION_NAME being string.
18290 2014-07-11  Richard Biener  <rguenther@suse.de>
18292         PR middle-end/61473
18293         * builtins.c (fold_builtin_memory_op): Inline memory moves that
18294         can be implemented with a single load followed by a single store.
18295         (c_strlen): Only warn when only_value is not 2.
18297 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
18299         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
18301 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
18303         PR target/61561
18304         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
18305         (*movhi_bytes): Likewise.
18306         (*arm_movqi_insn): Likewise.
18308 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
18310         PR target/56858
18311         * config/alpha/alpha.c: Include tree-pass.h, context.h
18312         and pass_manager.h.
18313         (pass_data_handle_trap_shadows): New pass.
18314         (pass_handle_trap_shadows::gate): New pass gate function.
18315         (make_pass_handle_trap_shadows): New function.
18316         (rest_of_handle_trap_shadows): Ditto.
18318         (alpha_align_insns_1): Rename from alpha_align_insns.
18319         (pass_data_align_insns): New pass.
18320         (pass_align_insns::gate): New pass gate function.
18321         (make_pass_aling_insns): New function.
18322         (rest_of_align_insns): Ditto.
18323         (alpha_align_insns): Ditto.
18325         (alpha_option_override): Declare handle_trap_shadows info
18326         and align_insns_info.  Register handle_trap_shadows and align_insns
18327         passes here.
18328         (alpha_reorg): Do not call alpha_trap_shadows and
18329         alpha_align_insn from here.
18331         (alpha_pad_function_end): Do not skip BARRIERs.
18333 2014-07-10  Rong Xu  <xur@google.com>
18335         Add gcov-tool: an offline gcda profile processing tool support.
18336         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
18337         (gcov_is_error): Ditto.
18338         (gcov_read_string): Ditto.
18339         (gcov_read_sync): Ditto.
18340         * gcov-io.h: Move counter defines to gcov-counter.def.
18341         * gcov-dump.c (tag_counters): Use gcov-counter.def.
18342         * coverage.c: Ditto.
18343         * gcov-tool.c: Offline gcda profile processing tool.
18344         (unlink_gcda_file): Remove one gcda file.
18345         (unlink_profile_dir): Remove gcda files from the profile path.
18346         (gcov_output_files): Output gcda files to an output dir.
18347         (profile_merge): Merge two profiles in directory.
18348         (print_merge_usage_message): Print merge usage.
18349         (merge_usage): Print merge usage and exit.
18350         (do_merge): Driver for profile merge sub-command.
18351         (profile_rewrite): Rewrite profile.
18352         (print_rewrite_usage_message): Print rewrite usage.
18353         (rewrite_usage): Print rewrite usage and exit.
18354         (do_rewrite): Driver for profile rewrite sub-command.
18355         (print_usage): Print gcov-info usage and exit.
18356         (print_version): Print gcov-info version.
18357         (process_args): Process arguments.
18358         (main): Main routine for gcov-tool.
18359         * Makefile.in: Build and install gcov-tool.
18360         * gcov-counter.def: New file split from gcov-io.h.
18361         * doc/gcc.texi: Include gcov-tool.texi.
18362         * doc/gcov-tool.texi: Document for gcov-tool.
18364 2014-07-10  Richard Biener  <rguenther@suse.de>
18366         PR tree-optimization/61757
18367         * tree-ssa-dom.c (loop_depth_of_name): Restore.
18368         (propagate_rhs_into_lhs): Revert part of last change.
18370 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
18372         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
18373         FUNCTION_DECLs.
18375 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
18377         PR middle-end/53590
18378         * function.c (allocate_struct_function): Revert r188667 change.
18380         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
18382 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
18384         * doc/install.texi: Remove links to defunct package providers for
18385         Solaris.
18387 2014-07-09  Tom de Vries  <tom@codesourcery.com>
18389         * final.c (get_call_fndecl): Declare.
18390         (self_recursive_call_p): New function.
18391         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
18393 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18395         * ipa-devirt.c (record_node): Walk through aliases.
18397 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18399         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
18401 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18403         Revert:
18404         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18406 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18408         * ipa-visibility.c (function_and_variable_visibility): Remove
18409         temporary hack disabling local aliases on AIX.
18411 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18413         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
18414         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
18416 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18418         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
18419         * rs6000/rs6000.c: Inline output of .set instruction.
18420         (declare_alias_data): New struct.
18421         (rs6000_declare_alias): New function.
18422         (rs6000_xcoff_declare_function_name): Use it.
18423         (rs6000_xcoff_declare_object_name): New function.
18424         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
18425         (ASM_OUTPUT_DEF): Turn to empty definition.
18427 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
18429         PR bootstrap/61679
18430         * hash-table.h: use hash_table::value_type instead of
18431         Descriptor::value_type in the return types of several methods.
18433 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
18435         * tree-pass.h (pass_data): Remove has_execute member.
18436         * passes.c (execute_one_pass): Don't check pass->has_execute.
18437         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18438         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18439         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18440         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18441         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18442         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18443         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18444         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18445         gimple-low.c, gimple-ssa-isolate-paths.c,
18446         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18447         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
18448         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
18449         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
18450         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
18451         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18452         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
18453         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
18454         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
18455         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
18456         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
18457         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18458         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18459         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18460         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18461         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18462         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18463         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18464         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18465         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18466         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18467         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18468         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
18469         web.c: Remove initializer for pass_data::has_execute.
18471 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
18473         * graphite-htab.h: Use hash_map instead of hash_table.
18474         * graphite-clast-to-gimple.c: Adjust.
18475         * passes.c: Use hash_map instead of hash_table.
18476         * sese.c: Likewise.
18477         * sese.h: Remove now unused code.
18479 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
18481         PR target/61599
18482         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
18483         than zero.
18485 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
18487         PR rtl-optimization/61673
18488         * combine.c (simplify_comparison): Test just mode's sign bit
18489         in tmode rather than the sign bit and any bits above it.
18491 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
18493         * graphite-isl-ast-to-gimple.c (generate_isl_context):
18494         Add __isl_give to the declaration.
18495         (generate_isl_schedule): Likewise.
18496         (scop_to_isl_ast): Likewise.
18498 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18500         * config/arm/arm.c (cortexa5_extra_costs): New table.
18501         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
18503 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
18505         PR tree-optimization/61725
18506         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
18507         range, use range_includes_zerop_p instead of integer_zerop on
18508         vr0->min, only use log2 of max if min is not negative.
18510 2014-07-08  Richard Biener  <rguenther@suse.de>
18512         * tree-ssa-dom.h (loop_depth_of_name): Remove.
18513         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
18514         restriction on loop depth difference.
18515         (record_equality): Likewise.
18516         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
18517         (loop_depth_of_name): Remove.
18518         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
18519         restriction on loop depth difference.
18520         (init_copy_prop): Likewise.
18522 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18524         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
18525         parameter.
18526         (walk_aliased_vdefs): Likewise.
18527         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
18528         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
18529         (detect_type_change_from_memory_writes): Check if entry was reached.
18531 2014-07-08  Richard Biener  <rguenther@suse.de>
18533         PR tree-optimization/61681
18534         * tree-ssa-structalias.c (find_what_var_points_to): Expand
18535         NONLOCAL inside ESCAPED.
18537 2014-07-08  Richard Biener  <rguenther@suse.de>
18539         PR tree-optimization/61680
18540         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18541         Handle properly all read-write dependences with group accesses.
18543 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
18545         PR tree-optimization/61576
18546         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18547         block containing reduction statement is predecessor of phi basi block.
18549 2014-07-08  Marek Polacek  <polacek@redhat.com>
18551         PR c/60226
18552         * fold-const.c (round_up_loc): Change the parameter type.
18553         Remove assert.
18554         * fold-const.h (round_up_loc): Adjust declaration.
18555         * stor-layout.c (finalize_record_size): Check for too large types.
18557 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
18559         * symtab.c: Include calls.h.
18560         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18562 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
18564         * config/rs6000/rs6000.c (output_vec_const_move): Handle
18565         little-endian code generation.
18566         * config/rs6000/spe.md (spe_evmergehi): Rename to...
18567         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
18568         (spe_evmergehilo): Rename to...
18569         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
18570         (spe_evmergelo): Rename to...
18571         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
18572         (spe_evmergelohi): Rename to...
18573         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
18574         (spe_evmergehi, spe_evmergehilo): New expanders.
18575         (spe_evmergelo, spe_evmergelohi): Likewise.
18576         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18577         (*frob_tf_ti): Likewise.
18578         (*frob_<mode>_di_2): Likewise.
18579         (*frob_tf_di_8_2): Likewise.
18580         (*frob_di_<mode>): Likewise.
18581         (*frob_ti_tf): Likewise.
18582         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18583         (*frob_ti_<mode>_8_2): Likewise.
18584         (*frob_ti_tf_2): Likewise.
18585         (mov_si<mode>_e500_subreg0): Rename to...
18586         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
18587         endianness only.
18588         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18589         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18590         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
18591         the big endianness only.
18592         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18593         (*mov_si<mode>_e500_subreg0_2): Rename to...
18594         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
18595         big big endianness only.
18596         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18597         (*mov_si<mode>_e500_subreg4): Rename to...
18598         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
18599         endianness only.
18600         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18601         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18602         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
18603         the big endianness only.
18604         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18605         pattern.
18606         (*mov_si<mode>_e500_subreg4_2): Rename to...
18607         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
18608         endianness only.
18609         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18610         (*mov_sitf_e500_subreg8): Rename to...
18611         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
18612         endianness only.
18613         (*mov_sitf_e500_subreg8_le): New instruction pattern.
18614         (*mov_sitf_e500_subreg8_2): Rename to...
18615         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
18616         endianness only.
18617         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18618         (*mov_sitf_e500_subreg12): Rename to...
18619         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
18620         endianness only.
18621         (*mov_sitf_e500_subreg12_le): New instruction pattern.
18622         (*mov_sitf_e500_subreg12_2): Rename to...
18623         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
18624         endianness only.
18625         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18627 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
18629         * asan.c (instrument_strlen_call): Do not instrument first byte
18630         in strlen if already instrumented.
18632 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18634         * config/arm/arm.opt (mwords-little-endian): Delete.
18635         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18636         of TARGET_LITTLE_WORDS.
18637         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18638         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
18639         warning.
18640         * doc/invoke.texi: Remove references to -mwords-little-endian.
18642 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
18644         * expmed.c (struct init_expmed_rtl): Change all fields but
18645         pow2 and cint from struct rtx_def to rtx.
18646         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
18647         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
18648         at the end again.
18650 2014-07-06  Marek Polacek  <polacek@redhat.com>
18652         PR c/6940
18653         * doc/invoke.texi: Document -Wsizeof-array-argument.
18655 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
18657         * wide-int.h (wide_int_storage): Change declaration from struct
18658         to class.
18660 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
18662         * cgraph.c (cgraph_create_indirect_edge): Update call of
18663         get_polymorphic_call_info.
18664         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18665         (possible_polymorphic_call_targets): Add parameter call.
18666         (decl_maybe_in_construction_p): New predicate.
18667         (get_polymorphic_call_info): Add parameter call;
18668         use decl_maybe_in_construction_p.
18669         * gimple-fold.c (fold_gimple_assign): Update use of
18670         possible_polymorphic_call_targets.
18671         (gimple_fold_call): Likewise.
18672         * ipa-prop.c: Inlcude calls.h
18673         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18674         (param_type_may_change_p): New predicate.
18675         (detect_type_change_from_memory_writes): Break out from ...
18676         (detect_type_change): ... this one; use param_type_may_change_p.
18677         (detect_type_change_ssa): Use param_type_may_change_p.
18678         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18680 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
18682         PR target/49423
18683         * config/arm/arm-protos.h (arm_legitimate_address_p,
18684         arm_is_constant_pool_ref): Add prototypes.
18685         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18686         (arm_is_constant_pool_ref) New function.
18687         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
18688         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
18689         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
18690         operand. Remove pool_range and neg_pool_range attributes.
18691         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
18692         pool_range and neg_pool_range attributes.
18693         * config/arm/constraints.md (Uh): New constraint.
18694         (Uq): Don't allow constant pool references.
18696 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
18698         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
18699         (move_lo_quad_internal_be_<mode>): Likewise.
18700         (move_lo_quad_<mode>): Convert to define_expand.
18701         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
18702         (aarch64_simd_move_hi_quad_be_<mode>): New.
18703         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
18704         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
18705         (aarch64_combinez_be<mode>): New.
18706         (aarch64_combine<mode>): Convert to define_expand.
18707         (aarch64_combine_internal<mode>): New.
18708         (aarch64_simd_combine<mode>): Remove bogus RTL description.
18710 2014-07-04  Tom de Vries  <tom@codesourcery.com>
18712         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
18713         combination of earlyclobber and read/write modifiers.
18715 2014-07-04  Tom de Vries  <tom@codesourcery.com>
18717         * config/aarch64/aarch64-simd.md
18718         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
18720 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
18722         PR target/61714
18723         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
18725 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
18727         PR middle-end/61654
18728         * cgraphunit.c (expand_thunk): Call free_dominance_info.
18730         PR tree-optimization/61684
18731         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
18732         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
18734 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18735             Kito Cheng  <kito@0xlab.org>
18736             Monk Chiang  <sh.chiang04@gmail.com>
18738         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
18739         (nds32_symbol_load_store_p): Move to ...
18740         (nds32_fp_as_gp_check_available): Move to ...
18741         * config/nds32/nds32-fp-as-gp.c: ... here.
18742         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
18743         extern declaration.
18745 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18746             Kito Cheng  <kito@0xlab.org>
18747             Monk Chiang  <sh.chiang04@gmail.com>
18749         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
18750         (nds32_expand_store_multiple): Move to ...
18751         (nds32_expand_movmemqi): Move to ...
18752         * config/nds32/nds32-memory-manipulation.c: ... here.
18754 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18755             Kito Cheng  <kito@0xlab.org>
18756             Monk Chiang  <sh.chiang04@gmail.com>
18758         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
18759         (nds32_output_casesi_pc_relative): Move to ...
18760         (nds32_output_casesi): Move to ...
18761         (nds32_mem_format): Move to ...
18762         (nds32_output_16bit_store): Move to ...
18763         (nds32_output_16bit_load): Move to ...
18764         (nds32_output_32bit_store): Move to ...
18765         (nds32_output_32bit_load): Move to ...
18766         (nds32_output_32bit_load_s): Move to ...
18767         (nds32_output_stack_push): Move to ...
18768         (nds32_output_stack_pop): Move to ...
18769         * config/nds32/nds32-md-auxiliary.c: ... here.
18771 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18772             Ling-Hua Tseng  <uranus@tinlans.org>
18774         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
18775         the purpose of this file.
18777 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18778             Kito Cheng  <kito@0xlab.org>
18779             Monk Chiang  <sh.chiang04@gmail.com>
18781         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
18782         (nds32_address_cost): Move implementation to ...
18783         * config/nds32/nds32-cost.c: ... here.
18784         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
18785         (nds32_address_cost_impl): Declare.
18787 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18788             Kito Cheng  <kito@0xlab.org>
18789             Monk Chiang  <sh.chiang04@gmail.com>
18791         * config/nds32/nds32.c
18792         (nds32_consecutive_registers_load_store_p): Move to ...
18793         (nds32_valid_multiple_load_store): Move to ...
18794         (nds32_valid_stack_push_pop): Move to ...
18795         (nds32_can_use_bclr_p): Move to ...
18796         (nds32_can_use_bset_p): Move to ...
18797         (nds32_can_use_btgl_p): Move to ...
18798         (nds32_can_use_bitci_p): Move to ...
18799         * config/nds32/nds32-predicates.c: ... here.
18801 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18802             Kito Cheng  <kito@0xlab.org>
18803             Monk Chiang  <sh.chiang04@gmail.com>
18805         * config/nds32/nds32.c
18806         (nds32_expand_builtin_null_ftype_reg): Move to ...
18807         (nds32_expand_builtin_reg_ftype_imm): Move to ...
18808         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
18809         (nds32_init_builtins): Move implementation to ...
18810         (nds32_expand_builtin): Move implementation to ...
18811         * config/nds32/nds32-intrinsic.c: ... here.
18812         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
18813         (nds32_expand_builtin_impl): Declare.
18815 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18816             Kito Cheng  <kito@0xlab.org>
18817             Monk Chiang  <sh.chiang04@gmail.com>
18819         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
18820         (nds32_emit_section_tail_template): Move to ...
18821         (nds32_emit_isr_jmptbl_section): Move to ...
18822         (nds32_emit_isr_vector_section): Move to ...
18823         (nds32_emit_isr_reset_conten): Move to ...
18824         (nds32_check_isr_attrs_conflict): Move to ...
18825         (nds32_construct_isr_vectors_information): Move to ...
18826         (nds32_asm_file_start): Move implementation to ...
18827         (nds32_asm_file_end): Move implementation to ...
18828         * config/nds32/nds32-isr.c: ... here.
18829         * config/nds32/nds32-protos.h
18830         (nds32_check_isr_attrs_conflict): Declare.
18831         (nds32_construct_isr_vectors_information): Declare.
18832         (nds32_asm_file_start_for_isr): Declare.
18833         (nds32_asm_file_end_for_isr): Declare.
18835 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18836             Kito Cheng  <kito@0xlab.org>
18837             Monk Chiang  <sh.chiang04@gmail.com>
18839         * config.gcc (nds32*): Add new modules to extra_objs.
18840         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
18841         (nds32be-*-*): Likewise.
18842         * config/nds32/nds32-cost.c: New file.
18843         * config/nds32/nds32-fp-as-gp.c: New file.
18844         * config/nds32/nds32-intrinsic.c: New file.
18845         * config/nds32/nds32-isr.c: New file.
18846         * config/nds32/nds32-md-auxiliary.c: New file.
18847         * config/nds32/nds32-memory-manipulation.c: New file.
18848         * config/nds32/nds32-pipelines-auxiliary.c: New file.
18849         * config/nds32/nds32-predicates.c: New file.
18850         * config/nds32/t-nds32: New file.
18852 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
18854         PR tree-optimization/61682
18855         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
18856         using cases and when one of the operands is equal to 1.
18858 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
18860         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
18861         ashr<mode>3): Correct mode of operands[2].
18862         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
18863         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
18864         Correct mode of operands[2].  Fix split condition.
18866 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
18868         * arm.md (arch): Add armv6_or_vfpv3.
18869         (arch_enabled): Add test for the above.
18870         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
18871         on VFP9.
18872         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
18874 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
18876         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
18877         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
18878         HWI 1 and negate the unsigned value.
18879         * expmed.c (expand_sdiv_pow2): For modes wider than word always
18880         use AND instead of shift.
18881         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
18883 2014-07-03  Marek Polacek  <polacek@redhat.com>
18885         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
18886         (-fsanitize=float-divide-by-zero): Move to the table with
18887         -fsanitize=undefined suboptions.
18888         (-fsanitize=float-cast-overflow): Likewise.
18890 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
18892         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
18893         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
18894         endianness.
18896 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18898         * loop-invariant.c (struct invariant): Add a new member: eqno;
18899         (find_identical_invariants): Update eqno;
18900         (create_new_invariant): Init eqno;
18901         (get_inv_cost): Compute comp_cost with eqno;
18903 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
18905         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
18906         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
18907         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
18908         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
18909         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
18911 2014-07-02  Christian Bruel  <christian.bruel@st.com>
18913         PR target/29349
18914         PR target/53513
18915         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
18916         (make_preds_opaque): Delete.
18917         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
18918         (commit_mode_sets): New function.
18919         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
18920         Process all modes at once.
18921         * basic-block.h (pre_edge_lcm_avs): Declare.
18922         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
18923         Call clear_aux_for_edges. Fix comments.
18924         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
18925         (pre_edge_rev_lcm): Idem.
18926         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
18927         parameter.
18928         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
18929         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
18930         Idem.
18931         * config/i386/i386.c (x96_emit_mode_set): Idem.
18932         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
18933         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
18934         (fpscr_toggle) Disallow from delay slot.
18935         * target.def (emit_mode_set): Add prev_mode parameter.
18936         * doc/tm.texi: Regenerate.
18938 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18940         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
18941         variable i.
18943 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
18945         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
18946         vtable_pointer_value_to_vtable): Constify.
18947         (contains_polymorphic_type_p): Declare.
18948         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
18949         vtable_pointer_value_to_vtable): Constify.
18950         (contains_polymorphic_type_p): New predicate.
18951         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
18952         polymorphic types.
18953         (ipa_set_ancestor_jf): Likewise.
18954         (detect_type_change): Return false in easy cases.
18955         (compute_complex_assign_jump_func): Require type to contain
18956         polymorphic type.
18957         (compute_known_type_jump_func): Likewise.
18959 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
18961         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
18962         Remove.
18963         (type_in_anonymous_namespace_p): Constify argument.
18964         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
18965         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
18966         (main_odr_variant): New function.
18967         (hash_type_name): Make static; update assert; do not ICE on
18968         non-records.
18969         (types_same_for_odr): Bring here from tree.c; simplify and remove
18970         old structural comparing code that doesn't work for templates.
18971         (odr_hasher::equal): Update assert.
18972         (add_type_duplicate): Return true when bases should be computed;
18973         replace incomplete loader by complete; do not output duplicated
18974         warnings; do not ICE on non-records; set odr_violated flag.
18975         (get_odr_type): Be ready to replace incomplete type by complete
18976         one; work on ODR variants instead of main variants; reorder item
18977         in array so bases have still smaller indexes.
18978         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
18979         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
18981 2014-07-01  Cary Coutant  <ccoutant@google.com>
18983         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
18984         lookup.
18985         (resolve_addr_in_expr): When replacing the rtx in a location list
18986         entry, get a new address table entry.
18987         (dwarf2out_finish): Call index_location_lists even if there are no
18988         addr_index_table entries yet.
18990 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
18992         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
18993         change for not being obvious.
18995 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
18997         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
18998         unused argument.
19000 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19002         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19003         (vcagt_f64): Likewise.
19004         (vcale_f64): Likewise.
19005         (vcaled_f64): Likewise.
19006         (vcales_f32): Likewise.
19007         (vcalt_f64): Likewise.
19008         (vcaltd_f64): Likewise.
19009         (vcalts_f32): Likewise.
19011 2014-07-01  Marek Polacek  <polacek@redhat.com>
19013         * doc/invoke.texi: Document -Wint-conversion.
19015 2014-07-01  Marek Polacek  <polacek@redhat.com>
19017         PR c/58286
19018         * doc/invoke.texi: Document -Wincompatible-pointer-types.
19020 2014-07-01  Martin Liska  <mliska@suse.cz>
19022         IPA REF alias refactoring
19023         * cgraph.h (iterate_direct_aliases): New function.
19024         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19025         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19026         FOR_EACH_ALIAS added.
19027         (cgraph_for_node_and_aliases): Likewise.
19028         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19029         * ipa-inline.c (reset_edge_caches): Likewise.
19030         (update_caller_keys): Likewise.
19031         * trans-mem.c (ipa_tm_execute): Likewise.
19032         *varpool.c (varpool_analyze_node): Likewise.
19033         (varpool_for_node_and_aliases): Likewise.
19034         * ipa-ref.h (first_alias): New function.
19035         (last_alias): Likewise.
19036         (has_aliases_p): Likewise.
19037         * ipa-ref.c (ipa_ref::remove_reference): Removal function
19038         is sensitive to IPA_REF_ALIASes.
19039         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19040         are put at the beginning of the list.
19041         (symtab_node::iterate_direct_aliases): New function.
19043 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19045         Revert:
19046         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19047         type is complete.
19048         (write_ts_type_common_tree_pointers): Do not stream fields not set
19049         for incomplete types; do not stream duplicated fields for variants;
19050         sanity check that variant and type match.
19051         (write_ts_type_non_common_tree_pointers): Likewise.
19052         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19053         TYPE_SIZE whether type is complete.
19054         (lto_input_ts_type_common_tree_pointers): Do same changes as in
19055         write_ts_type_common_tree_pointers
19056         (lto_input_ts_type_non_common_tree_pointers): Likewise.
19058 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
19060         * var-tracking.c (add_stores): Return instead of asserting if old
19061         and new values for conditional store are the same.
19063 2014-06-30  Richard Henderson  <rth@redhat.com>
19065         PR rtl-opt/61608
19066         PR target/39284
19067         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19068         the cfg if there were any changes.
19069         * passes.def: Revert move of peephole2 after reorder_blocks;
19070         move duplicate_computed_gotos before peephole2.
19072 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
19074         * except.c (emit_note_eh_region_end): New helper function.
19075         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19076         emit EH_REGION_END note.
19077         * jump.c (cleanup_barriers): Do not split a call and its
19078         corresponding CALL_ARG_LOCATION note.
19080 2014-06-30  Jeff Law  <law@redhat.com>
19082         PR tree-optimization/61607
19083         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19084         deeper into the SSA_NAME_VALUE chain.
19086 2014-06-30  Marek Polacek  <polacek@redhat.com>
19088         * convert.c (convert_to_integer): Don't instrument conversions if the
19089         function has no_sanitize_undefined attribute.
19090         * ubsan.c: Don't run the ubsan pass if the function has
19091         no_sanitize_undefined attribute.
19093 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19095         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19096         -fsanitize=undefined suboptions.
19098 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
19100         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19101         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19102         against bigendian and adjust indices.
19104 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19106         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
19108 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19110         PR target/61633
19111         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19112         Add alternative; make early clobber.  Adjust both split patterns
19113         to use operand 0 as the working register.
19115 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19117         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19118         as ira_object_id_map might be NULL, or 1.
19120 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19122         * loop-invariant.c (get_inv_cost): Handle register class.
19123         (gain_for_invariant): Check the register pressure of the inv
19124         and its overlapped register class, other than all.
19126 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19128         * doc/invoke.texi (Optimize Options): Fix descriptions of
19129         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19131 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
19133         * doc/extend.texi (Function Attributes): Update 'naked' attribute
19134         documentation.
19136 2014-06-29  Tobias Grosser <tobias@grosser.es>
19138         PR bootstrap/61650
19139         * graphite-isl-ast-to-gimple.c: Add missing guards.
19141 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19143         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19144         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19145         * flag-types.h: Add new enum fgraphite_generator.
19146         * graphite-isl-ast-to-gimple.c: New.
19147         * graphite-isl-ast-to-gimple.h: New.
19148         * graphite.c (graphite_transform_loops): Add choice of Graphite
19149         code generator, which depends on flag_graphite_code_gen.
19151 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19153         * graphite-dependences.c (subtract_commutative_associative_deps):
19154         Add NULL checking of the following variables: must_raw_no_source,
19155         may_raw_no_source, must_war_no_source, may_war_no_source,
19156         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19157         must_war, may_war, must_waw, may_waw.
19159 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19161         * graphite-clast-to-gimple.c: gloog is renamed to
19162         graphite_regenerate_ast_cloog.  gloog_error is renamed to
19163         graphite_regenerate_error.
19164         * graphite-clast-to-gimple.h: The definition of the struct
19165         bb_pbb_def is moved to graphite-htab.h.
19166         Add inclusion of the hash-table.h.
19167         * graphite-htab.h: The declaration of the function gloog is moved
19168         to graphite-clast-to-gimple.h and renamed to
19169         graphite_regenerate_ast_cloog.
19170         * graphite.c (graphite_transform_loops): gloog is renamed
19171         to graphite_regenerate_ast_cloog.
19173 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19175         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19176         type is complete.
19177         (write_ts_type_common_tree_pointers): Do not stream fields not set
19178         for incomplete types; do not stream duplicated fields for variants;
19179         sanity check that variant and type match.
19180         (write_ts_type_non_common_tree_pointers): Likewise.
19181         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19182         TYPE_SIZE whether type is complete.
19183         (lto_input_ts_type_common_tree_pointers): Do same changes as in
19184         write_ts_type_common_tree_pointers
19185         (lto_input_ts_type_non_common_tree_pointers): Likewise.
19187 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19189         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
19191 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19193         * tree-inline.c (remap_type_1): Do not duplicate fields
19194         that are shared in between type and its main variant.
19196 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19198         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19199         of the type.
19200         (ipa_set_ancestor_jf) Likewise.
19201         (check_stmt_for_type_change): Check that we work on main variant.
19202         (detect_type_change): Look into main variant.
19203         (compute_known_type_jump_func): Check that main variant has BINFO.
19205 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19207         * ipa-devirt.c (set_type_binfo): New function.
19208         (add_type_duplicate): Use it.
19209         (get_odr_type): Sanity check that binfos points to main variants.
19210         (get_class_context): Be sure the context's outer_type is main variant.
19211         (contains_type_p): Walk main variant.
19212         (get_polymorphic_call_info_for_decl): Set outer_type to be
19213         main variant.
19214         (get_polymorphic_call_info): Likewise.
19215         (possible_polymorphic_call_targets): Sanity check that we operate
19216         on main variant.
19218 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19220         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19222 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19224         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19225         accidental change due to wide-int branch merge.
19227 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19229         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19230         compressed debug support.
19231         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19232         * configure: Regenerate.
19233         * config.in: Regenerate.
19234         * common.opt (compressed_debug_sections): New enum.
19235         (gz, gz=): New options.
19236         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19237         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19238         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19239         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19240         LINK_COMPRESS_DEBUG_SPEC.
19241         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19242         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19243         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19244         (Debugging Options): Document -gz[=type].
19246 2014-06-27  Martin Jambor  <mjambor@suse.cz>
19248         PR ipa/61160
19249         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19250         args_to_skip, use those from node instead.  Copy args_to_skip and
19251         combined_args_to_skip from node to the new thunk.
19252         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19253         (cgraph_create_virtual_clone): Moved computation of
19254         combined_args_to_skip...
19255         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19257 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
19259         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19260         redundant diagnostic machinary.
19262 2014-06-27  Richard Biener  <rguenther@suse.de>
19264         * tree-ssa-math-opts.c (bswap_replace): Fix
19265         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19267 2014-06-27  Martin Liska  <mliska@suse.cz>
19269         * gimple.h (gimple_location_safe): New function introduced.
19270         * cgraphunit.c (walk_polymorphic_call_targets): Usage
19271         of gimple_location_safe replaces gimple_location.
19272         (gimple_fold_call): Likewise.
19273         * ipa-devirt.c (ipa_devirt): Likewise.
19274         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19275         * ipa.c (walk_polymorphic_call_targets): Likewise.
19276         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19278 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
19280         PR tree-optimization/57233
19281         PR tree-optimization/61299
19282         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19283         functions.
19284         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
19285         would be lowered to scalar shifts, check if corresponding
19286         shifts and vector BIT_IOR_EXPR are supported and don't lower
19287         or lower just to narrower vector type in that case.
19288         * expmed.c (expand_shift_1): Fix up handling of vector
19289         shifts and rotates.
19291 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
19293         PR target/61586
19294         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
19296 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
19298         * doc/invoke.texi (-fsemantic-interposition): Document.
19299         * common.opt (fsemantic-interposition): New flag.
19300         * varasm.c (decl_replaceable_p): Use it.
19302 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19304         PR target/61542
19305         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
19306         extraction other than index 3.
19308 2014-06-26  Teresa Johnson  <tejohnson@google.com>
19310         * doc/invoke.texi: Fix typo.
19311         * dumpfile.c: Add support for documented -fdump-* options
19312         optimized/missed/note/optall.
19314 2014-06-26  Martin Jambor  <mjambor@suse.cz>
19316         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
19317         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
19318         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
19319         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
19320         * opts.c (default_options_optimization): Set
19321         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
19322         * doc/invoke.texi (allow-load-data-races)
19323         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
19324         (allow-store-data-races): Document the new default.
19326 2014-06-26  Martin Jambor  <mjambor@suse.cz>
19328         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
19329         renamed to ipa_impossible_devirt_target.  Fix typo.
19330         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
19331         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
19332         ipa_impossible_devirt_target.
19334 2014-06-26  Richard Biener  <rguenther@suse.de>
19336         PR tree-optimization/61607
19337         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
19338         explaining why we restrict copies on loop depth.
19339         * tree-ssa-dom.c (cprop_operand): Remove restriction on
19340         on loop depth.
19341         (record_equivalences_from_phis): Instead add it here.
19343 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
19345         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
19346         (LTO_WRAPPER_OBJS): New variable.
19347         (lto-wrapper$(exeext)): Use it.
19348         * collect2.c: Include "collect-utils.h".
19349         (verbose, debug): Remove variables.
19350         (at_file_supplied): No longer static.
19351         (tool_name): New variable.
19352         (do_wait, fork_execute, maybe_unlink): Don't declare.
19353         (tool_cleanup): No longer static.
19354         (notice): Remove function.
19355         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
19356         fork_execute calls.
19357         (collect_wait, do_wait, collect_execute): Remove functions.
19358         (maybe_unlink): No longer static.
19359         * collect2.h (verbose, debug): Don't declare.
19360         (at_file_supplied): Declare.
19361         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
19362         changed.
19363         (collect_execute): Replace with implementation from collect2, plus a
19364         new arg use_atfile.  All callers changed.
19365         (collect_wait): Replace with implementation from collect2.
19366         (maybe_unlink_file): Remove function.
19367         (fork_execute): Replace with implementation from collect2, plus a
19368         new arg use_atfile.  All callers changed.
19369         (do_wait): Add call to utils_cleanup to the error path.
19370         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
19371         (tool_cleanup): Adjust declarations.
19372         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
19373         * tlink.c: Include "collect-utils.h".
19374         (tlink_execute): New arg use_atfile.  All callers changed.
19375         (tlink_init, tlink_execute): Remove declarations.
19377         * collect-utils.c (save_temps): New variable.
19378         (do_wait): Use it instead of debug.  Use fatal_error.
19379         * collect-utils.h (save_temps): Declare.
19380         * collect2.c (verbose): Rename from vflag.  All uses changed.
19381         (tool_cleanup): New function, copied from collect_atexit.
19382         (collect_atexit, handler): Just call it.
19383         * collect2.h (verbose): Declaration renamed from vflag.
19384         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
19385         debug.
19387         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
19388         (lto-wrapper$(exeext)): Link with collect-utils.o.
19389         * collect-utils.c: New file.
19390         * collect-utils.h: New file.
19391         * lto-wrapper.c: Include "collect-utils.h".
19392         (args_name): Delete variable.
19393         (tool_name): New variable.
19394         (tool_cleanup): New function.
19395         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
19396         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
19397         (fork_execute): Remove functions.
19399 2014-06-26  Nick Clifton  <nickc@redhat.com>
19401         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
19403         * doc/extend.texi (Function Attributes): Fix typo in description
19404         of RX vector attribute.
19406 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19408         * config.gcc (supported_defaults): Error when passing either
19409         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
19411 2014-06-26  Richard Biener  <rguenther@suse.de>
19413         * tree-ssa-dom.c (cprop_operand): Remove restriction on
19414         propagating volatile pointers.
19416 2014-06-26  Richard Biener  <rguenther@suse.de>
19418         PR tree-optimization/61607
19419         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
19420         loop if we redirected its latch edge.
19421         (thread_block_1): Do not cancel loops prematurely.
19423 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
19425         * toplev.c (backend_init_target): Move init_emit_regs and
19426         init_regs to...
19427         (backend_init) ... here; skip ira_init_once and backend_init_target.
19428         (target_reinit) ... and here; clear
19429         this_target_rtl->lang_dependent_initialized.
19430         (lang_dependent_init_target): Clear
19431         this_target_rtl->lang_dependent_initialized;
19432         break out rtl initialization to ...
19433         (initialize_rtl): ... here; call also backend_init_target
19434         and ira_init_once.
19435         * toplev.h (initialize_rtl): New function.
19436         * function.c: Include toplev.h
19437         (init_function_start): Call initialize_rtl.
19438         * rtl.h (target_rtl): Add target_specific_initialized,
19439         lang_dependent_initialized.
19441 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
19442             Jakub Jelinek  <jakub@redhat.com>
19444         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
19446 2014-06-25  Tom de Vries  <tom@codesourcery.com>
19448         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
19450 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19452         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
19453         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
19454         Issue a strict overflow warning if appropriate.
19456 2014-06-25  Martin Liska  <mliska@suse.cz>
19458         IPA REF refactoring
19459         * Makefile.in: Removed header file (ipa-ref-inline.h).
19460         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
19461         called.
19462         (cgraph_speculative_call_info): Likewise.
19463         (cgraph_for_node_thunks_and_aliases): Likewise.
19464         (cgraph_for_node_and_aliases): Likewise.
19465         (verify_cgraph_node): Likewise.
19466         * cgraph.h: Batch of IPA REF functions become member functions of
19467         symtab_node: add_reference, maybe_add_reference, clone_references,
19468         clone_referring, clone_reference, find_reference,
19469         remove_stmt_references, remove_all_references,
19470         remove_all_referring, dump_references, dump_referring,
19471         has_alias_p, iterate_reference, iterate_referring.
19472         * cgraphbuild.c (record_reference): New IPA REF function used.
19473         (record_type_list): Likewise.
19474         (record_eh_tables): Likewise.
19475         (mark_address): Likewise.
19476         (mark_load): Likewise.
19477         (mark_store): Likewise.
19478         (pass_build_cgraph_edges): Likewise.
19479         (rebuild_cgraph_edge): Likewise.
19480         (cgraph_rebuild_references): Likewise.
19481         (pass_remove_cgraph_callee_edges): Likewise.
19482         * cgraphclones.c (cgraph_clone_node): Likewise.
19483         (cgraph_create_virtual_clone): Likewise.
19484         (cgraph_materialize_clone): Likewise.
19485         (cgraph_materialize_all_clones): Likewise.
19486         * cgraphunit.c (cgraph_reset_node): Likewise.
19487         (cgraph_reset_node): Likewise.
19488         (analyze_function): Likewise.
19489         (assemble_thunks_and_aliases): Likewise.
19490         (expand_function): Likewise.
19491         * ipa-comdats.c (propagate_comdat_group): Likewise.
19492         (enqueue_references): Likewise.
19493         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
19494         (create_specialized_node): Likewise.
19495         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
19496         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
19497         * ipa-inline.c (reset_edge_caches): Likewise.
19498         (update_caller_keys): Likewise.
19499         (execute): Likewise.
19500         * ipa-prop.c (remove_described_reference): Likewise.
19501         (propagate_controlled_uses): Likewise.
19502         (ipa_edge_duplication_hook): Likewise.
19503         (ipa_modify_call_arguments): Likewise.
19504         * ipa-pure-const.c (propagate_pure_const): Likewise.
19505         * ipa-ref-inline.h: Header file removed, functions moved
19506         to symtab_node class.
19507         * ipa-ref.c (remove_reference): New class member function.
19508         (cannot_lead_to_return): New class member function.
19509         (referring_ref_list): Likewise.
19510         (referred_ref_list): Likewise.
19511         Rest of functions moved to symtab_node class.
19512         * ipa-ref.h: New member functions remove_reference,
19513         cannot_lead_to_return, referring_ref_list, referred_ref_list added
19514         to ipa_ref class.
19515         ipa_ref_list class has new member functions: first_reference,
19516         first_referring, clear, nreferences.
19517         * ipa-reference.c (analyze_function): New IPA REF function used.
19518         (write_node_summary_p): Likewise.
19519         (ipa_reference_write_optimization_summary): Likewise.
19520         * ipa-split.c (split_function): Likewise.
19521         * ipa-utils.c (ipa_reverse_postorder): Likewise.
19522         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
19523         (function_and_variable_visibility): Likewise.
19524         * ipa.c (has_addr_references_p): Likewise.
19525         (process_references): Argument type changed.
19526         (symtab_remove_unreachable_nodes): New IPA REF function used.
19527         (process_references): Likewise.
19528         (set_writeonly_bit): Likewise.
19529         * lto-cgraph.c: Implementation of new symtab_node member functions
19530         that uses new IPA REF functions.
19531         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
19532         function used.
19533         * lto-streamer-out.c (output_symbol_p): Likewise.
19534         * lto-streamer.h (referenced_from_this_partition_p): Argument type
19535         changed.
19536         * symtab.c: Implementation of new IPA REF API.
19537         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
19538         (ipa_tm_create_version): Likewise.
19539         (ipa_tm_execute): Likewise.
19540         * tree-emutls.c (gen_emutls_addr): Likewise.
19541         * tree-inline.c (copy_bb): Likewise.
19542         (delete_unreachable_blocks_update_callgraph): Likewise.
19543         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19544         (varpool_for_node_and_aliases): Likewise.
19546 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
19548         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19550 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
19552         PR bootstrap/61598
19553         * fold-const.c (fold_checksum_tree): Use a hash_table of const
19554         tree_node * instead of tree_node *.
19555         (fold): Adjust.
19556         (print_fold_checksum): Likewise.
19557         (fold_check_failed): Likewise.
19558         (debug_fold_checksum): Likewise.
19559         (fold_build1_stat_loc): Likewise.
19560         (fold_build2_stat_loc): Likewise.
19561         (fold_build3_stat_loc): Likewise.
19562         (fold_build_call_array_loc): Likewise.
19564 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
19566         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19567         implementation with call to...
19568         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19569         function.
19570         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19571         Declare.
19573 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
19575         PR tree-optimization/57742
19576         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19577         after replacing the statement.
19579 2014-06-25  Nick Clifton  <nickc@redhat.com>
19581         * config/v850/v850.c (GHS_default_section_names): Change to const
19582         char * type.
19583         (GHS_current_section_names): Likewise.
19584         (v850_insert_attributes): Do not build strings, just assign the
19585         names directly.  Change the type of 'chosen_section' to const
19586         char*.
19587         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19588         directly to the array entry.
19589         * config/v850/v850.h (GHS_default_section_names): Change to const
19590         char * type.
19591         (GHS_current_section_names): Likewise.
19593 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
19595         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19596         (LANG_HOOKS_DECLS): Add it.
19597         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19598         has correct type.
19599         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19600         * langhooks.h (struct lang_hooks_for_decls): Add
19601         omp_clause_linear_ctor hook.
19602         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19603         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
19604         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
19605         combined simd loop use omp_clause_linear_ctor hook.
19607 2014-06-24  Cong Hou  <congh@google.com>
19609         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19610         pattern recognition.
19611         (type_conversion_p): PROMOTION is true if it's a type promotion
19612         conversion, and false otherwise.  Return true if the given expression
19613         is a type conversion one.
19614         * tree-vectorizer.h: Adjust the number of patterns.
19615         * tree.def: Add SAD_EXPR.
19616         * optabs.def: Add sad_optab.
19617         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19618         * expr.c (expand_expr_real_2): Likewise.
19619         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19620         * gimple.c (get_gimple_rhs_num_ops): Likewise.
19621         * optabs.c (optab_for_tree_code): Likewise.
19622         * tree-cfg.c (estimate_operator_cost): Likewise.
19623         * tree-ssa-operands.c (get_expr_operands): Likewise.
19624         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19625         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19626         * doc/generic.texi: Add document for SAD_EXPR.
19627         * doc/md.texi: Add document for ssad and usad.
19629 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19631         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19632         qualification in cast.
19634 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
19636         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19637         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19638         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19639         (tree_function_decl): ... here.
19640         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
19641         streaming of vindex to ...
19642         (write_ts_function_decl_tree_pointers): ... here.
19643         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19644         Do not stream DECL_VINDEX.
19645         (lto_input_ts_function_decl_tree_pointers): Stream it here.
19647 2014-06-24  Catherine Moore  <clm@codesourcery.com>
19648             Sandra Loosemore  <sandra@codesourcery.com>
19650         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
19651         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
19652         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
19654 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
19656         * doc/invoke.texi (Warning Options): Remove duplicated
19657         -Wmaybe-uninitialized.
19659 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
19661         PR tree-optimization/57742
19662         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19663         (handle_builtin_malloc, handle_builtin_memset): New functions.
19664         (strlen_optimize_stmt): Call them.
19665         * passes.def: Move strlen after loop+dom but before vrp.
19667 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
19669         PR target/61570
19670         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19671         model family 6 CPU with has_longmode never use a CPU without
19672         64-bit support.
19674 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19676         PR target/61570
19677         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19678         the last change.
19680 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19682         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19683         * dominance.c (iterate_fix_dominators): Use hash_map instead of
19684         pointer_map.
19685         * hash-map.h: New file.
19686         * ipa-comdats.c: Use hash_map instead of pointer_map.
19687         * ipa.c: Likewise.
19688         * lto-section-out.c: Adjust.
19689         * lto-streamer.h: Replace pointer_map with hash_map.
19690         * symtab.c (verify_symtab): Likewise.
19691         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
19692         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
19693         * tree-streamer.h: Likewise.
19694         * tree-streamer.c: Adjust.
19695         * pointer-set.h: Remove pointer_map.
19697 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19699         * hash-table.h: Add a template arg to choose between storing values
19700         and storing pointers to values, and then provide partial
19701         specializations for both.
19702         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
19703         should store, not the type values should point to.
19704         * tree-into-ssa.c (var_info_hasher): Likewise.
19705         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19706         * tree-complex.c: Adjust.
19707         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
19708         table instead of int_tree_map *.
19709         * tree-parloops.c: Adjust.
19710         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
19711         type is being stored.
19712         * tree-vectorizer.c: Adjust.
19714 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19716         * hash-table.h: Remove a layer of indirection from hash_table so that
19717         it contains the hash table's data instead of a pointer to the data.
19718         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
19719         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
19720         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
19721         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
19722         fold-const.c, gcse.c, ggc-common.c,
19723         gimple-ssa-strength-reduction.c, gimplify.c,
19724         graphite-clast-to-gimple.c, graphite-dependences.c,
19725         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
19726         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19727         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
19728         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
19729         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
19730         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
19731         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
19732         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
19733         tree-ssa-live.c, tree-ssa-loop-im.c,
19734         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
19735         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
19736         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19737         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
19738         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
19739         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
19740         vtable-verify.c, vtable-verify.h: Adjust.
19742 2014-06-24  Richard Biener  <rguenther@suse.de>
19744         PR tree-optimization/61572
19745         * tree-ssa-sink.c (statement_sink_location): Do not sink
19746         loads from hard registers.
19748 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
19750         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
19751         not mentioned in clauses use private clause if the iterator is
19752         declared in #pragma omp for simd, and when adding lastprivate
19753         instead, add it to the outer #pragma omp for too.  Diagnose
19754         if the variable is private in outer context.  For simd collapse > 1
19755         loops, replace all iterators with temporaries.
19756         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
19757         same even in collapse > 1 loops.
19759         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
19760         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
19761         non-NULL.
19762         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
19763         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
19764         non-NULL.
19765         (gimplify_adjust_omp_clauses): Likewise.
19766         * omp-low.c (lower_rec_simd_input_clauses,
19767         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
19768         safelen the same as safelen(1).
19769         * tree-nested.c (convert_nonlocal_omp_clauses,
19770         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
19771         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
19772         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
19773         Fixup handling of GIMPLE_OMP_TARGET.
19774         (convert_tramp_reference_stmt, convert_gimple_call): Handle
19775         GIMPLE_OMP_TARGET.
19777 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
19779         PR tree-optimization/61554
19780         * tree-ssa-propagate.c: Include "bitmap.h".
19781         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
19782         properly update constructor/destructor.
19783         (substitute_and_fold_dom_walker::before_dom_children):
19784         Remove call to gimple_purge_dead_eh_edges, add bb->index to
19785         need_eh_cleaup instead.
19786         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
19787         need_eh_cleanup.
19789 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
19791         * varpool.c (dump_varpool_node): Dump used_by_single_function.
19792         * tree-pass.h (make_pass_ipa_single_use): New pass.
19793         * cgraph.h (used_by_single_function): New flag.
19794         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
19795         Stream it.
19796         * passes.def (pass_ipa_single_use): Scedule.
19797         * ipa.c (BOTTOM): New macro.
19798         (meet): New function
19799         (propagate_single_user): New function.
19800         (ipa_single_use): New function.
19801         (pass_data_ipa_single_use): New pass.
19802         (pass_ipa_single_use): New pass.
19803         (pass_ipa_single_use::gate): New gate.
19804         (make_pass_ipa_single_use): New function.
19806 2014-06-23  Kai Tietz  <ktietz@redhat.com>
19808         PR target/39284
19809         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
19810         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
19812 2014-06-23  Richard Biener  <rguenther@suse.de>
19814         * tree-ssa-loop.c (gate_loop): New function.
19815         (pass_tree_loop::gate): Call it.
19816         (pass_data_tree_no_loop, pass_tree_no_loop,
19817         make_pass_tree_no_loop): New.
19818         * tree-vectorizer.c: Include tree-scalar-evolution.c
19819         (pass_slp_vectorize::execute): Initialize loops and SCEV if
19820         required.
19821         (pass_slp_vectorize::clone): New method.
19822         * timevar.def (TV_TREE_NOLOOP): New.
19823         * tree-pass.h (make_pass_tree_no_loop): Declare.
19824         * passes.def (pass_tree_no_loop): New pass group with
19825         SLP vectorizer.
19827 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19829         PR target/61570
19830         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
19831         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
19833 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
19835         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
19836         "yes" where needed.
19838 2014-06-23  Alan Modra  <amodra@gmail.com>
19840         PR bootstrap/61583
19841         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
19842         to zero on debug statements.
19844 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
19846         PR target/60825
19847         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
19848         Ignore third operand if present by marking qualifier_internal.
19850         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
19852         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
19853         vector extension.
19854         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
19855         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
19856         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
19857         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
19858         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
19859         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
19860         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
19861         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
19862         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
19863         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
19864         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
19865         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
19866         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
19867         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
19868         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
19869         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
19870         logic in GCC vector extensions
19872         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
19873         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
19874         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
19875         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
19876         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
19877         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
19878         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
19879         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
19880         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
19881         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
19883         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
19885         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
19886         extensions.
19888         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
19889         (vget_low_s64): Use __GET_LOW macro.
19890         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
19891         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
19892         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
19893         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
19894         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
19896         (vcombine_s64): Use GCC vector extensions; remove cast.
19897         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
19898         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
19899         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
19900         Fix type signature; remove cast.
19902 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
19904         PR target/60825
19905         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
19906         V1DFmode.
19907         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
19908         add V1DFmode
19909         (BUILTIN_VD1): New.
19910         (BUILTIN_VD_RE): Remove.
19911         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
19912         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
19913         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
19914         variant but not df.
19915         (vreinterpretv1df*, vreinterpret*v1df): New.
19916         (vreinterpretdf*, vreinterpret*df): Remove.
19917         * config/aarch64/aarch64-simd.md (aarch64_create,
19918         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
19919         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
19920         (VD1): New.
19921         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
19922         (vcreate_f64): Remove cast, use v1df builtin.
19923         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
19924         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
19925         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
19926         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
19927         vmov_n_f64, vst1_f64): Use gcc vector extensions.
19928         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
19929         add range check using __builtin_aarch64_im_lane_boundsi.
19930         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
19931         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
19932         type signature, use gcc vector extensions.
19933         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
19934         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
19935         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
19936         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
19937         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
19938         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
19939         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
19940         vreinterpret_u64_f64): Use v1df builtin not df.
19942 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
19944         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
19945         vector registers.
19947 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
19949         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
19950         priority directly.
19952 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19954         * loop-invariant.c (pre_check_invariant_p): New function.
19955         (find_invariant_insn): Call pre_check_invariant_p.
19957 2014-06-22  Richard Henderson  <rth@redhat.com>
19959         PR target/61565
19960         * compare-elim.c (struct comparison): Add eh_note.
19961         (find_comparison_dom_walker::before_dom_children): Don't eliminate
19962         a redundant comparison in a different EH region.  Purge EH edges if
19963         necessary.
19965 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19967         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
19968         (var_shift): Use it.
19969         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
19970         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19971         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19972         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19973         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19974         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
19975         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
19976         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
19977         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
19978         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
19979         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
19980         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
19981         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
19982         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
19983         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
19984         *rotldi3_internal15be): Use the new attribute.  Merge register and
19985         integer alternatives.
19987 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19989         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
19990         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
19991         split, *ashrdi3_internal3 and split): Delete, merge into...
19992         (ashr<mode>3): New expander.
19993         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
19994         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
19996 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
19998         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
19999         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20000         *rotldi3_internal3 and split): Delete, merge into...
20001         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20002         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
20003         Use "rotlw" extended mnemonic.
20005 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20007         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20008         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20009         and split, *ashldi3_internal3 and split): Delete, merge into...
20010         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20011         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
20013 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20015         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20016         (lshrsi3, two anonymous define_insns and define_splits,
20017         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20018         *lshrdi3_internal3 and split): Delete, merge into...
20019         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20020         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
20022 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20024         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20025         Remove "O" alternative.
20027 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
20029         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20030         (mips_move_from_gpr_cost): Likewise.
20031         (mips_register_move_cost): Update accordingly.
20032         (mips_secondary_reload_class): Remove name of in_p.
20034 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
20036         PR target/61503
20037         * config/i386/i386.md (x86_64_shrd, x86_shrd,
20038         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20040 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20042         * config/nios2/nios2.c: Include "builtins.h".
20044 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20046         * cgraph.h (tls_model_names): New variable.
20047         * print-tree.c (print_node): Simplify.
20048         * varpool.c (tls_model_names): New variable.
20049         (dump_varpool_node): Output tls model.
20051 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20053         * ipa-visibility.c (function_and_variable_visibility): Disable
20054         temporarily local aliases for some targets.
20056 2014-06-20  Marek Polacek  <polacek@redhat.com>
20058         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20059         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20060         into SANITIZE_UNDEFINED.
20061         * doc/invoke.texi: Describe -fsanitize=bounds.
20062         * gimplify.c (gimplify_call_expr): Add gimplification of internal
20063         functions created in the FEs.
20064         * internal-fn.c: Move "internal-fn.h" after "tree.h".
20065         (expand_UBSAN_BOUNDS): New function.
20066         * internal-fn.def (UBSAN_BOUNDS): New internal function.
20067         * internal-fn.h: Don't define internal functions here.
20068         * opts.c (common_handle_option): Add -fsanitize=bounds.
20069         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20070         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20071         * tree-core.h: Define internal functions here.
20072         (struct tree_base): Add ifn field.
20073         * tree-pretty-print.c: Include "internal-fn.h".
20074         (dump_generic_node): Handle functions without CALL_EXPR_FN.
20075         * tree.c (get_callee_fndecl): Likewise.
20076         (build_call_expr_internal_loc): New function.
20077         * tree.def (CALL_EXPR): Update description.
20078         * tree.h (CALL_EXPR_IFN): Define.
20079         (build_call_expr_internal_loc): Declare.
20080         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20081         types.
20082         (ubsan_type_descriptor): Change bool parameter to enum
20083         ubsan_print_style.  Adjust the code.  Add handling of
20084         UBSAN_PRINT_ARRAY.
20085         (ubsan_expand_bounds_ifn): New function.
20086         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20087         (ubsan_build_overflow_builtin): Likewise.
20088         (instrument_bool_enum_load): Likewise.
20089         (ubsan_instrument_float_cast): Likewise.
20090         * ubsan.h (enum ubsan_print_style): New enum.
20091         (ubsan_expand_bounds_ifn): Declare.
20092         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
20094 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
20096         * config/rs6000/rs6000.md: Append `DONE' to preparation
20097         statements of `bswap' pattern splitters.
20099 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20101         * target.def (call_fusage_contains_non_callee_clobbers): Update
20102         definition.
20103         * doc/tm.texi: Regenerate.
20105 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20106             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20108         PR sanitizer/61547
20109         * asan.c (instrument_strlen_call): Fixed instrumentation of
20110         trailing byte.
20112 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20114         PR ipa/61540
20115         * ipa-prop.c (impossible_devirt_target): New function.
20116         (try_make_edge_direct_virtual_call): Use it, also instead of
20117         asserting.
20119 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20120             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20122         PR sanitizer/61530
20123         * asan.c (build_check_stmt): Add condition.
20125 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20127         PR ipa/61211
20128         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20129         expanded clones.
20131 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20133         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20134         Update comments.
20135         (VCONQ): Make comment more helpful.
20136         (VCON): Delete.
20137         * config/aarch64/aarch64-simd.md
20138         (aarch64_sqdmulh_lane<mode>):
20139         Use VCOND for operands 2.  Update lane checking and flipping logic.
20140         (aarch64_sqrdmulh_lane<mode>): Likewise.
20141         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20142         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20143         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20144         attribute of operand 3 to VCOND.
20145         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20146         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20147         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20148         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20149         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20150         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20151         define_insn.
20152         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20153         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20154         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20155         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20156         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20157         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20158         operand to VCOND.  Update lane flipping and bounds checking logic.
20159         (aarch64_sqdmlal2_lane<mode>): Likewise.
20160         (aarch64_sqdmlsl_lane<mode>): Likewise.
20161         (aarch64_sqdmull_lane<mode>): Likewise.
20162         (aarch64_sqdmull2_lane<mode>): Likewise.
20163         (aarch64_sqdmlal_laneq<mode>):
20164         Replace VCON usage with VCONQ.
20165         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
20166         (aarch64_sqdmlal2_laneq<mode>): Emit
20167         aarch64_sqdmlal2_laneq<mode>_internal insn.
20168         Replace VCON with VCONQ.
20169         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
20170         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20171         (aarch64_sqdmull_laneq<mode>): Emit
20172         aarch64_sqdmull_laneq<mode>_internal insn.
20173         Replace VCON with VCONQ.
20174         (aarch64_sqdmull2_laneq<mode>): Emit
20175         aarch64_sqdmull2_laneq<mode>_internal insn.
20176         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
20177         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
20178         of 3rd argument to int16x4_t.
20179         (vqdmlalh_lane_s16): Likewise.
20180         (vqdmlslh_lane_s16): Likewise.
20181         (vqdmull_high_lane_s16): Likewise.
20182         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
20183         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
20184         (vqdmlsl_lane_s16): Likewise.
20185         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
20186         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
20187         (vqdmlals_lane_s32): Likewise.
20188         (vqdmlsls_lane_s32): Likewise.
20189         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
20190         (vqdmulls_lane_s32): Likewise.
20191         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
20192         (vqdmlsl_lane_s32): Likewise.
20193         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
20194         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
20195         (vqrdmulhh_lane_s16): Likewise.
20196         (vqdmlsl_high_lane_s16): Likewise.
20197         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20198         (vqdmlsl_high_lane_s32): Likewise.
20199         (vqrdmulhs_lane_s32): Likewise.
20201 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20203         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20204         get_call_reg_set_usage.
20206 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20208         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20209         it contains all call_used_regs.
20211 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20213         * final.c (collect_fn_hard_reg_usage): Add and use variable
20214         function_used_regs.
20216 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20218         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20219         (set_init_priority, get_init_priority, set_fini_priority,
20220         get_fini_priority): New methods.
20221         * tree.c (init_priority_for_decl): Remove.
20222         (init_ttree): Do not initialize init priority.
20223         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20224         (decl_priority_info): Remove.
20225         (decl_init_priority_insert): Rewrite.
20226         (decl_fini_priority_insert): Rewrite.
20227         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20228         tree_priority_map_marked_p): Remove.
20229         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20230         * lto-streamer-out.c (hash_tree): Do not hash priorities.
20231         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20232         not output priorities.
20233         (pack_ts_function_decl_value_fields): Likewise.
20234         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20235         not input priorities.
20236         (unpack_ts_function_decl_value_fields): Likewise.
20237         * symtab.c (symbol_priority_map): Declare.
20238         (init_priority_hash): Declare.
20239         (symtab_unregister_node): Unregister from priority hash, too.
20240         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20241         New methods.
20242         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20243         (symbol_priority_info): New function.
20244         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20245         New methods.
20246         * tree-core.h (tree_priority_map): Remove.
20248 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
20250         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20251         0xff to uint64_t before shifting it up.
20253 2014-06-20  Julian Brown  <julian@codesourcery.com>
20254             Chung-Lin Tang  <cltang@codesourcery.com>
20256         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20257         TARGET_THUMB1_ONLY. Add comments.
20259 2014-06-19  Tom de Vries  <tom@codesourcery.com>
20261         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20262         return type to void.
20263         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20265 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20267         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20268         as "move", from depends_on.
20270 2014-06-19  Terry Guo  <terry.guo@arm.com>
20272         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20273         stage.
20275 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
20277         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20278         Remove cr5.
20279         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
20281 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
20283         PR target/61550
20284         * config/sh/sh.c (prepare_move_operands): Don't process TLS
20285         addresses here if reload in progress or completed.
20287 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
20289         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20290         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20291         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20292         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20293         (mips_register_priority): New function that implements the target
20294         hook TARGET_REGISTER_PRIORITY.
20295         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
20296         (mips_lra_p): Likewise for TARGET_LRA_P.
20297         (TARGET_REGISTER_PRIORITY): Define macro.
20298         (TARGET_SPILL_CLASS): Likewise.
20299         (TARGET_LRA_P): Likewise.
20300         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
20301         classes.
20302         (REG_CLASS_NAMES): Likewise.
20303         (REG_CLASS_CONTENTS): Likewise.
20304         (BASE_REG_CLASS): Use M16_SP_REGS.
20305         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
20306         New set attribute to enable alternatives depending on the register
20307         allocator used.
20308         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
20309         (*lea64): Disable pattern for MIPS16.
20310         * config/mips/mips.opt (mlra): New option.
20312 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
20314         * lra-constraints.c (base_to_reg): New function.
20315         (process_address): Use new function.
20317 2014-06-18  Tom de Vries  <tom@codesourcery.com>
20319         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
20320         * config/aarch64/aarch64.c
20321         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
20322         (aarch64_emit_call_insn): New function.
20323         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
20324         of emit_call_insn.
20325         * config/aarch64/aarch64.md (define_expand "call_internal")
20326         (define_expand "call_value_internal", define_expand "sibcall_internal")
20327         (define_expand "sibcall_value_internal"): New.
20328         (define_expand "call", define_expand "call_value")
20329         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
20330         expand variant and aarch64_emit_call_insn.
20332 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
20333             Tom de Vries  <tom@codesourcery.com>
20335         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
20336         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20337         Redefine to true.
20338         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
20339         clobbers to CALL_INSN_FUNCTION_USAGE.
20340         (define_expand "sibcall_internal")
20341         (define_expand "sibcall_value_internal"): New.
20342         (define_expand "call", define_expand "call_value"): Add argument to
20343         arm_emit_call_insn.
20344         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
20345         (define_expand "sibcall_value"): Use sibcall_value_internal and
20346         arm_emit_call_insn.
20348 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20350         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
20352 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20354         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
20355         __udivmoddi4.
20357 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20359         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
20360         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
20361         annotations. Fix DWARF information.
20363 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20365         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
20366         __udivmoddi4, and fixups for negative operands.
20368 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20370         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
20372 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20374         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
20375         to __udivmoddi4.
20377 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20379         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
20380         manipulation.
20382 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20384         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
20385         describing register usage on function entry and exit.
20387 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20389         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
20390         (__aeabi_ldivmod): Fix whitespace.
20392 2014-06-18  Andreas Schwab  <schwab@suse.de>
20394         * doc/md.texi (Standard Names): Use @itemx for grouped items.
20395         Remove blank line after @item.
20397 2014-06-18  Richard Henderson  <rth@redhat.com>
20399         PR target/61545
20400         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
20402 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20404         * config/arm/arm.c (neon_vector_mem_operand): Allow register
20405         POST_MODIFY for neon loads and stores.
20406         (arm_print_operand): Output post-index register for neon loads and
20407         stores.
20409 2014-06-18  Richard Biener  <rguenther@suse.de>
20411         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
20413 2014-06-18  Richard Biener  <rguenther@suse.de>
20415         * tree-pass.h (make_pass_dce_loop): Remove.
20416         * passes.def: Replace pass_dce_loop with pass_dce.
20417         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
20418         changed free niter estimates and reset the scev cache.
20419         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
20420         make_pass_dce_loop): Remove.
20421         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
20422         (fini_copy_prop): Return whether something changed.  Always
20423         let substitute_and_fold perform DCE and free niter estimates
20424         and reset the scev cache if so.
20425         (execute_copy_prop): If sth changed schedule cleanup-cfg.
20426         (pass_data_copy_prop): Do not unconditionally schedule
20427         cleanup-cfg or update-ssa.
20429 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
20431         PR tree-optimization/61518
20432         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20433         reduction var is used in reduction stmt or phi-function only.
20435 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20437         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
20439 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20441         PR tree-optimization/61517
20442         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
20443         whose rhs's first tree is the source expression instead of the
20444         expression itself.
20445         (find_bswap_or_nop): Likewise.
20446         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
20447         gimple stmt whose rhs's first tree is the source. In the memory source
20448         case, move the stmt to be replaced close to one of the original load to
20449         avoid the problem of a store between the load and the stmt's original
20450         location.
20451         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
20452         signature.
20454 2014-06-18  Andreas Schwab  <schwab@suse.de>
20456         PR rtl-optimization/54555
20457         * postreload.c (move2add_use_add2_insn): Substitute
20458         STRICT_LOW_PART only if it is cheaper.
20460 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
20462         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
20463         Do not use unspec as call operand.  Use memory_operand instead of
20464         memory_nox32_operand and add "m" operand constraint.  Disable
20465         pattern for TARGET_X32.
20466         (*sibcall_pop_memory): Ditto.
20467         (*sibcall_value_memory): Ditto.
20468         (*sibcall_value_pop_memory): Ditto.
20469         (sibcall peepholes): Merge SImode and DImode patterns using
20470         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
20471         Disable pattern for TARGET_X32.  Check if eliminated register is
20472         really dead after call insn.  Generate call RTX without unspec operand.
20473         (sibcall_value peepholes): Ditto.
20474         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
20475         instead of memory_nox32_operand.  Check if eliminated register is
20476         really dead after call insn. Generate call RTX without unspec operand.
20477         (sibcall_value_pop peepholes): Ditto.
20478         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
20480 2014-06-18  Terry Guo  <terry.guo@arm.com>
20482         PR target/61544
20483         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
20484         reach the head.
20486 2014-06-18  Olivier Hainque  <hainque@adacore.com>
20488         * tree-core.h (tree_block): Add an "end_locus" field, allowing
20489         memorization of the end of block source location.
20490         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
20491         * gimplify.c (gimplify_bind_expr): Propagate the block start and
20492         end source location info we have on the block entry/exit code we
20493         generate.
20495 2014-06-18  Richard Biener  <rguenther@suse.de>
20497         * common.opt (fssa-phiopt): New option.
20498         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
20499         but not with -Og.
20500         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
20501         * doc/invoke.texi (-fssa-phiopt): Document.
20503 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20505         * genattrtab.c (n_bypassed): New variable.
20506         (process_bypasses): Initialise n_bypassed.
20507         Count number of bypassed reservations.
20508         (make_automaton_attrs): Allocate space for bypassed reservations
20509         rather than number of bypasses.
20511 2014-06-18  Richard Biener  <rguenther@suse.de>
20513         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
20514         we propagated anything.
20515         (substitute_and_fold_dom_walker::before_dom_children): Something
20516         changed if we propagated into PHI arguments.
20517         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
20518         we removed a stmt.
20520 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
20522         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
20523         vector case.
20524         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
20525         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
20526         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
20527         Introduces alternative way of loads group permutaions.
20528         (vect_transform_grouped_load): Try alternative way of permutations.
20530 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
20532         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
20533         changed in ORT_TARGET region, don't jump to do_outer.
20534         (struct gimplify_adjust_omp_clauses_data): New type.
20535         (gimplify_adjust_omp_clauses_1): Adjust for data being
20536         a struct gimplify_adjust_omp_clauses_data pointer instead
20537         of tree *.  Pass pre_p as a new argument to
20538         lang_hooks.decls.omp_finish_clause hook.
20539         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
20540         splay_tree_foreach to pass both list_p and pre_p.
20541         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
20542         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
20543         gimplify_adjust_omp_clauses callers.
20544         * langhooks.c (lhd_omp_finish_clause): New function.
20545         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20546         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20547         * langhooks.h (struct lang_hooks_for_decls): Add a new
20548         gimple_seq * argument to omp_finish_clause hook.
20549         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20550         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20551         (scan_omp_parallel, lower_omp_for): When adding
20552         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20553         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20554         * tree-nested.c (convert_nonlocal_omp_clauses,
20555         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20556         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20558 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
20560         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20561         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20563 2014-06-17  Xinliang David Li  <davidxl@google.com>
20565         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20566         * passes.c (pass_init_dump_file): Do not set initialize
20567         flag to false unconditionally.
20569 2014-06-17  Richard Biener  <rguenther@suse.de>
20571         * genopinit.c (main): Use vec<>::qsort method.
20572         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20573         Likewise.
20574         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20576 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
20578         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20579         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20580         (mips_move_to_gpr_cost): Remove ST_REGS case.
20581         (mips_move_from_gpr_cost): Likewise.
20582         (mips_register_move_cost): Likewise.
20583         (mips_secondary_reload_class): Likewise.
20585 2014-06-17  Richard Biener  <rguenther@suse.de>
20587         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20588         (pass_all_optimizations): Move 3rd copy-prop pass from after
20589         fre to before ifcombine/phiopt.
20591 2014-06-17  Richard Biener  <rguenther@suse.de>
20593         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20594         and allow all blocks to be forwarders.
20596 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
20598         PR target/61483
20599         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20600         variable 'size'; calculate 'size' right in the front; use
20601         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20602         pcum->aapcs_stack_words.
20604 2014-06-17  Nick Clifton  <nickc@redhat.com>
20606         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20607         (umulhi3, mulsidi3, umulsidi3): Likewise.
20609 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
20611         PR middle-end/61508
20612         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20613         check for section name.
20615 2014-06-17  Richard Biener  <rguenther@suse.de>
20617         * tree-ssa-propagate.c: Include domwalk.h.
20618         (substitute_and_fold): Outline main worker into a domwalker ...
20619         (substitute_and_fold_dom_walker::before_dom_children): ... here.
20620         Schedule stmts we can fully propagate for removal.  Remove
20621         poor-mans DCE.
20622         (substitute_and_fold): Apply a dominator walk to perform
20623         substitution.  Process stmts scheduled for removal here.
20625 2014-06-17  Richard Biener  <rguenther@suse.de>
20627         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20628         of PHI node moving.
20630 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
20632         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20633         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20634         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20635         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20636         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20637         TARGET_HARD_FLOAT.
20638         (get_fpscr) : Likewise.
20640 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
20642         PR rtl-optimization/61325
20643         * lra-constraints.c (valid_address_p): Add forward declaration.
20644         (simplify_operand_subreg): Check address validity before and after
20645         alter_reg of memory subreg.
20647 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
20649         * config/i386/i386.c (decide_alg): Correctly handle
20650         maximum size of stringop algorithm.
20652 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
20654         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
20656 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
20658         PR rtl-optimization/61522
20659         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20661 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
20663         Revert:
20664         * symtab.c (symtab_node::reset_section): New method.
20665         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20666         for localization.
20667         * cgraph.h (reset_section): Declare.
20668         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20669         do not consider comdat locals.
20670         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20671         for new symbol.
20672         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20673         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20674         reset sections of symbols dragged out of the comdats.
20675         (function_and_variable_visibility): Reset sections of
20676         localized symbols.
20678 2014-06-16  Richard Biener  <rguenther@suse.de>
20680         PR tree-optimization/61482
20681         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20682         [-INF(OVF), +INF(OVF)] range.
20684 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20686         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20687         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
20688         handling 32-bit multiplication.
20690 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
20692         PR middle-end/61430
20693         * lra-lives.c (process_bb_lives): Skip creating copy during
20694         insn scan when src/dest has constrained to same regno.
20696 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
20698         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
20699         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
20701 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
20703         * asan.c (check_func): New function.
20704         (maybe_create_ssa_name): Likewise.
20705         (build_check_stmt_with_calls): Likewise.
20706         (use_calls_p): Likewise.
20707         (report_error_func): Change interface.
20708         (build_check_stmt): Allow non-integer lengths; add support
20709         for new parameter.
20710         (asan_instrument): Likewise.
20711         (instrument_mem_region_access): Moved code to build_check_stmt.
20712         (instrument_derefs): Likewise.
20713         (instrument_strlen_call): Likewise.
20714         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
20715         * doc/invoke.texi: Describe new parameter.
20716         * params.def: Define new parameter.
20717         * params.h: Likewise.
20718         * sanitizer.def: Describe new builtins.
20720 2014-06-16  Richard Biener  <rguenther@suse.de>
20722         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20723         Make all defs available at the end.
20724         (eliminate): If we remove a PHI node schedule cfg-cleanup.
20726 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
20728         PR plugins/45078
20729         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
20731 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
20733         PR bootstrap/61516
20734         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
20735         initialization.  Replace remaining use of uid.
20737 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
20739         * c-family/c-common.c (handle_tls_model_attribute): Use
20740         set_decl_tls_model.
20741         * c-family/c-common.c (handle_tls_model_attribute): Use
20742         set_decl_tls_model.
20743         * cgraph.h (struct varpool_node): Add tls_model.
20744         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
20745         * tree.h (DECL_TLS_MODEL): Update.
20746         (DECL_THREAD_LOCAL_P): Check that variable is static.
20747         (decl_tls_model): Declare.
20748         (set_decl_tls_model): Declare.
20749         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
20750         set symbol prorperties.
20751         (get_emutls_init_templ_addr): Cleanup.
20752         (new_emutls_decl): Update.
20753         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
20754         (lto_input_varpool_node): Likewise.
20755         * lto-streamer-out.c (hash_tree): Likewise.
20756         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20757         not stream DECL_TLS_MODEL.
20758         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
20759         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
20761 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20763         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
20765 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20767         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
20768         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
20769         lists.
20770         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
20771         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
20772         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
20773         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
20774         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
20775         (df_get_artificial_defs, df_get_artificial_uses)
20776         (df_single_def, df_single_use): Update accordingly.
20777         (df_refs_chain_dump): Take the first element in a linked list as
20778         parameter, rather than a pointer to an array of pointers.
20779         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
20780         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
20781         (df_chain_create_bb_process_use): Likewise.
20782         (df_md_bb_local_compute_process_def): Likewise.
20783         * fwprop.c (process_defs, process_uses): Likewise.
20784         (register_active_defs, update_uses): Likewise.
20785         (forward_propagate_asm): Update for new df_ref linking.
20786         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
20787         (df_null_ref_rec, df_null_mw_rec): Likewise.
20788         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
20789         explicitly.
20790         (df_scan_free_bb_info): Remove check for null artificial_defs.
20791         (df_install_ref_incremental): Adjust for new df_ref linking.
20792         Use a single-element insertion rather than a full sort.
20793         (df_ref_chain_delete_du_chain): Take the first element
20794         in a linked list as parameter, rather than a pointer to an array of
20795         pointers.
20796         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
20797         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
20798         (df_insn_info_delete): Remove check for null defs and call to
20799         df_scan_free_mws_vec.
20800         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
20801         null rather than df_null_*_rec.
20802         (df_insn_rescan_debug_internal): Likewise, and update null
20803         checks in the same way.  Remove check for null defs.
20804         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
20805         Move a single element rather doing a full sort.
20806         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
20807         linking.
20808         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
20809         Initialize df_ref and df_mw_hardreg lists to null rather than
20810         df_null_*_rec.
20811         (df_ref_compare): Take df_refs as parameter, transferring the
20812         old interface to...
20813         (df_ref_ptr_compare): ...this new function.
20814         (df_sort_and_compress_refs): Update accordingly.
20815         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
20816         old interface to...
20817         (df_mw_ptr_compare): ...this new function.
20818         (df_sort_and_compress_mws): Update accordingly.
20819         (df_install_refs, df_install_mws): Return a linked list rather than
20820         an array of pointers.
20821         (df_refs_add_to_chains): Assert that old lists are empty rather
20822         than freeing them.
20823         (df_insn_refs_verify): Don't handle null defs speciailly.
20824         * web.c (union_match_dups): Update for new df_ref linking.
20826 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20828         * df.h (df_ref_create, df_ref_remove): Delete.
20829         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
20830         (df_ref_remove): Likewise.
20832 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20834         * df.h (df_single_def, df_single_use): New functions.
20835         * ira.c (find_moveable_pseudos): Use them.
20837 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20839         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
20840         * df-problems.c (df_note_bb_compute): Use it.
20841         * regstat.c (regstat_bb_compute_ri): Likewise.
20843 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20845         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
20846         * cse.c (cse_extended_basic_block): Use them.
20847         * dce.c (mark_artificial_use): Likewise.
20848         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
20849         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20850         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
20851         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
20852         (df_simulate_initialize_backwards): Likewise.
20853         (df_simulate_finalize_backwards): Likewise.
20854         (df_simulate_initialize_forwards): Likewise.
20855         (df_md_simulate_artificial_defs_at_top): Likewise.
20856         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20857         * regrename.c (init_rename_info): Likewise.
20858         * regstat.c (regstat_bb_compute_ri): Likewise.
20859         (regstat_bb_compute_calls_crossed): Likewise.
20861 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20863         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
20864         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
20865         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
20866         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
20867         * combine.c (create_log_links): Likewise.
20868         * compare-elim.c (find_flags_uses_in_insn): Likewise.
20869         (try_eliminate_compare): Likewise.
20870         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
20871         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
20872         (remove_reg_equal_equiv_notes_for_defs): Likewise.
20873         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
20874         (word_dce_process_block, dce_process_block): Likewise.
20875         * ddg.c (def_has_ccmode_p): Likewise.
20876         * df-core.c (df_bb_regno_first_def_find): Likewise.
20877         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
20878         * df-problems.c (df_rd_simulate_one_insn): Likewise.
20879         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20880         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
20881         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
20882         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
20883         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
20884         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
20885         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
20886         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
20887         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20888         * fwprop.c (local_ref_killed_between_p): Likewise.
20889         (all_uses_available_at, free_load_extend): Likewise.
20890         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
20891         * hw-doloop.c (scan_loop): Likewise.
20892         * ifcvt.c (dead_or_predicable): Likewise.
20893         * init-regs.c (initialize_uninitialized_regs): Likewise.
20894         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
20895         (process_bb_node_lives): Likewise.
20896         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
20897         (find_moveable_pseudos): Likewise.
20898         * loop-invariant.c (check_dependencies, record_uses): Likewise.
20899         * recog.c (peep2_find_free_register): Likewise.
20900         * ree.c (get_defs): Likewise.
20901         * regstat.c (regstat_bb_compute_ri): Likewise.
20902         (regstat_bb_compute_calls_crossed): Likewise.
20903         * sched-deps.c (find_inc, find_mem): Likewise.
20904         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
20905         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
20906         * shrink-wrap.c (requires_stack_frame_p): Likewise.
20907         (prepare_shrink_wrap): Likewise.
20908         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
20909         * web.c (union_defs, pass_web::execute): Likewise.
20910         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
20911         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
20913 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
20915         * lra-assign.c (assign_by_spills): Add code to assign vector regs
20916         to inheritance pseudos.
20917         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
20919 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
20921         PR target/61415
20922         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
20923         (BU_MISC_2): Rename to ...
20924         (BU_LDBL128_2): ... this.
20925         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
20926         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
20927         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20928         RS6000_BTM_LDBL128.
20929         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
20930         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
20931         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
20932         (unpacktf_1): Likewise.
20933         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
20934         (__builtin_longdouble_dw1): Likewise.
20935         * doc/sourcebuild.texi (longdouble128): Document.
20937 2014-06-13  Jeff Law  <law@redhat.com>
20939         PR rtl-optimization/61094
20940         PR rtl-optimization/61446
20941         * ree.c (combine_reaching_defs): Get the mode for the copy from
20942         the extension insn rather than the defining insn.
20944 2014-06-13  Dehao Chen  <dehao@google.com>
20946         * dwarf2out.c (add_linkage_name): Emit more linkage name.
20948 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
20950         * doc/install.texi (--enable-linker-plugin-configure-flags)
20951         (--enable-linker-plugin-flags): Document new flags.
20953 2014-06-13  Martin Jambor  <mjambor@suse.cz>
20955         PR ipa/61186
20956         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
20957         cache_token if returning early.
20959 2014-06-13  Nick Clifton  <nickc@redhat.com>
20961         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
20962         requested alignment is active.
20963         (LABEL_ALIGN): Likewise.
20964         (LOOP_ALIGN): Likewise.
20966 2014-06-13  Richard Biener  <rguenther@suse.de>
20968         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20969         Rewrite to propagate the VN result into all uses where
20970         possible and to remove stmts becoming dead because of that.
20971         (eliminate): Generalize stmt removal handling, remove in
20972         reverse dominator order to support proper debug stmt
20973         generation.  Update stmts before removing stmts.
20974         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
20976 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20978         PR tree-optimization/61375
20979         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
20980         symbolic number cannot be represented in an uint64_t.
20981         (find_bswap_or_nop_1): Likewise.
20983 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
20985         * symtab.c (symtab_node::reset_section): New method.
20986         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20987         for localization.
20988         * cgraph.h (reset_section): Declare.
20989         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20990         do not consider comdat locals.
20991         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20992         for new symbol.
20993         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20994         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20995         reset sections of symbols dragged out of the comdats.
20996         (function_and_variable_visibility): Reset sections of
20997         localized symbols.
20999 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21001         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21002         to use symtab and decl_binds_to_current_def_p
21003         * tree-vectorizer.c (increase_alignment): Increase alignment
21004         of alias target, too.
21006 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
21008         PR middle-end/61486
21009         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21010         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21011         if outer combined construct is distribute.
21012         (gimplify_omp_for): For OMP_DISTRIBUTE set
21013         gimplify_omp_ctxp->distribute.
21014         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21015         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21016         mapping into decl map.
21018 2014-06-12  Jason Merrill  <jason@redhat.com>
21020         * common.opt (fabi-version): Change default to 0.
21022 2014-06-12  Jason Merrill  <jason@redhat.com>
21024         * toplev.c (process_options): Reject -fabi-version=1.
21026 2014-06-12  Jeff Law  <law@redhat.com>
21028         PR tree-optimization/61009
21029         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21030         value when we stop processing a block due to problematic PHIs.
21032 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
21034         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21035         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21036         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21037         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21038         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21039         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21040         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21041         are not in the spec.
21043 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
21045         PR target/59843
21046         * config/aarch64/aarch64-modes.def: Add V1DFmode.
21047         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21048         Support V1DFmode.
21050 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
21052         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21054 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
21056         PR target/61443
21057         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21058         loading from address spaces.
21060 2014-06-12  Martin Liska  <mliska@suse.cz>
21062         PR ipa/61462
21063         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21064         statement is reachable.
21066 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
21068         * symtab.c (section_hash): New hash.
21069         (symtab_unregister_node): Clear section before freeing.
21070         (hash_section_hash_entry): New haser.
21071         (eq_sections): New function.
21072         (symtab_node::set_section_for_node): New method.
21073         (set_section_1): Update.
21074         (symtab_node::set_section): Take string instead of tree as parameter.
21075         (symtab_resolve_alias): Update.
21076         * cgraph.h (section_hash_entry_d): New structure.
21077         (section_hash_entry): New typedef.
21078         (cgraph_node): Change comdat_group_ to x_comdat_group,
21079         change section_ to x_section and turn into section_hash_entry;
21080         update accestors; put set_section_for_node offline.
21081         * tree.c (decl_section_name): Turn into string.
21082         (set_decl_section_name): Change parameter to be string.
21083         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21084         * sdbout.c (sdbout_one_type): Update.
21085         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21086         * varasm.c (IN_NAMED_SECTION, get_named_section,
21087         resolve_unique_section, hot_function_section, get_named_text_section,
21088         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21089         make_decl_rtl, default_unique_section): Update.
21090         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21091         (c6x_elf_unique_section): Update.
21092         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21093         * config/pa/pa.c (pa_function_section): Update.
21094         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21095         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21096         * config/arc/arc.c (arc_in_small_data_p): Update.
21097         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21098         * config/mcore/mcore.c (mcore_unique_section): Update.
21099         * config/mips/mips.c (mips16_build_function_stub): Update.
21100         (mips16_build_call_stub): Update.
21101         (mips_function_rodata_section): Update.
21102         (mips_in_small_data_p): Update.
21103         * config/score/score.c (score_in_small_data_p): Update.
21104         * config/rx/rx.c (rx_in_small_data): Update.
21105         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21106         (rs6000_xcoff_asm_named_section): Update.
21107         (rs6000_xcoff_unique_section): Update.
21108         * config/frv/frv.c (frv_string_begins_with): Update.
21109         (frv_in_small_data_p): Update.
21110         * config/v850/v850.c (v850_encode_data_area): Update.
21111         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21112         (bfin_handle_l1_data_attribute): Update.
21113         (bfin_handle_l2_attribute): Update.
21114         * config/mep/mep.c (mep_unique_section): Update.
21115         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21116         Update.
21117         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21118         (h8300_handle_tiny_data_attribute): Update.
21119         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21120         (m32r_in_small_data_p): Update.
21121         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21122         * config/i386/i386.c (ix86_in_large_data_p): Update.
21123         * config/i386/winnt.c (i386_pe_unique_section): Update.
21124         * config/darwin.c (darwin_function_section): Update.
21125         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21126         * tree-emutls.c (get_emutls_init_templ_addr): Update.
21127         (new_emutls_decl): Update.
21128         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21129         input_varpool_node): Update.
21130         (ead_string_cst): Turn to ...
21131         (read_string): ... this one.
21132         * dwarf2out.c (secname_for_decl): Update.
21133         * asan.c (asan_protect_global): Update.
21135 2014-06-11  DJ Delorie  <dj@redhat.com>
21137         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21138         cache lines.
21139         * config/rx/rx.c (rx_option_override): Likewise.
21140         (rx_align_for_label): Likewise.
21142         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21144 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
21146         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21147         prototype.
21149 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21151         * common.md: New file.
21152         * doc/md.texi: Update description of generic, machine-independent
21153         constraints.
21154         * config/s390/constraints.md (e): Delete.
21155         * Makefile.in (md_file): Include common.md.
21156         * config/m32c/t-m32c (md_file): Likewise.
21157         * genpreds.c (general_mem): New array.
21158         (generic_constraint_letters): Remove constraints now defined by
21159         common.md.
21160         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21161         Allow the first character to be '<' or '>' as well.
21162         * genoutput.c (general_mem): New array.
21163         (indep_constraints): Remove constraints now defined by common.md.
21164         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21165         Remove special handling of 'm'.
21166         * ira-costs.c (record_reg_classes): Remove special handling of
21167         constraints now defined by common.md.
21168         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21169         * ira-lives.c (single_reg_class): Likewise.
21170         (ira_implicitly_set_insn_hard_regs): Likewise.
21171         * lra-constraints.c (reg_class_from_constraints): Likewise.
21172         (process_alt_operands, process_address, curr_insn_transform): Likewise.
21173         * postreload.c (reload_cse_simplify_operands): Likewise.
21174         * reload.c (push_secondary_reload, scratch_reload_class)
21175         (find_reloads, alternative_allows_const_pool_ref): Likewise.
21176         * reload1.c (maybe_fix_stack_asms): Likewise.
21177         * targhooks.c (default_secondary_reload): Likewise.
21178         * stmt.c (parse_output_constraint): Likewise.
21179         * recog.c (preprocess_constraints): Likewise.
21180         (constrain_operands, peep2_find_free_register): Likewise.
21181         (asm_operand_ok): Likewise, but add a comment saying why 'o'
21182         must be handled specially.
21184 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21186         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
21187         * genpreds.c (have_const_dbl_constraints): Delete.
21188         (add_constraint): Don't set it.
21189         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
21190         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
21191         constraints using the lookup_constraint logic.
21192         * ira-lives.c (single_reg_class): Likewise.
21193         * ira.c (ira_setup_alts): Likewise.
21194         * lra-constraints.c (process_alt_operands): Likewise.
21195         * recog.c (asm_operand_ok, constrain_operands): Likewise.
21196         * reload.c (find_reloads): Likewise.
21198 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21200         * genpreds.c (const_int_start, const_int_end): New variables.
21201         (choose_enum_order): Output CONST_INT constraints before memory
21202         constraints.
21203         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21204         Add CT_CONST_INT.
21205         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21206         * ira.c (ira_setup_alts): Likewise.
21207         * lra-constraints.c (process_alt_operands): Likewise.
21208         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21209         * reload.c (find_reloads): Likewise.
21211 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21213         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21214         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
21215         * recog.c (preprocess_constraints): Update accordingly.
21217 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21219         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21220         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21221         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21222         * genpreds.c (print_type_tree): New function.
21223         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21224         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21225         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21226         Write out enum constraint_type and get_constraint_type.
21227         * lra-constraints.c (satisfies_memory_constraint_p): Take a
21228         constraint_num rather than a constraint string.
21229         (satisfies_address_constraint_p): Likewise.
21230         (reg_class_from_constraints): Avoid old constraint macros.
21231         (process_alt_operands, process_address_1): Likewise.
21232         (curr_insn_transform): Likewise.
21233         * ira-costs.c (record_reg_classes): Likewise.
21234         (record_operand_costs): Likewise.
21235         * ira-lives.c (single_reg_class): Likewise.
21236         (ira_implicitly_set_insn_hard_regs): Likewise.
21237         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21238         * postreload.c (reload_cse_simplify_operands): Likewise.
21239         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21240         (constrain_operands, peep2_find_free_register): Likewise.
21241         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21242         (find_reloads, alternative_allows_const_pool_ref): Likewise.
21243         * reload1.c (maybe_fix_stack_asms): Likewise.
21244         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21245         * targhooks.c (default_secondary_reload): Likewise.
21246         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21247         to EXTRA_CONSTRAINT_STR.
21248         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21250 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21252         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21253         (write_constraint_satisfied_p_array): ...this new function.
21254         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21255         an array.
21256         (write_insn_preds_c): Update accordingly.
21258 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21260         * genpreds.c (write_lookup_constraint): Rename to...
21261         (write_lookup_constraint_1): ...this.
21262         (write_lookup_constraint_array): New function.
21263         (write_tm_preds_h): Define lookup_constraint as an inline function
21264         that uses write_lookup_constraint_array where possible.
21265         (write_insn_preds_c): Update for the changes above.
21267 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21269         * doc/md.texi (regclass_for_constraint): Rename to...
21270         (reg_class_for_constraint): ...this.
21271         * genpreds.c (num_constraints, enum_order, register_start)
21272         (register_end, satisfied_start, memory_start, memory_end)
21273         (address_start, address_end): New variables.
21274         (add_constraint): Count the number of constraints.
21275         (choose_enum_order): New function.
21276         (write_enum_constraint_num): Iterate over enum_order.
21277         (write_regclass_for_constraint): Rename to...
21278         (write_reg_class_for_constraint_1): ...this and update output
21279         accordingly.
21280         (write_constraint_satisfied_p): Rename to...
21281         (write_constraint_satisfied_p_1): ...this and update output
21282         accordingly.  Do nothing if all extra constraints are register
21283         constraints.
21284         (write_insn_extra_memory_constraint): Delete.
21285         (write_insn_extra_address_constraint): Delete.
21286         (write_range_function): New function.
21287         (write_tm_preds_h): Define constraint_satisfied_p and
21288         reg_class_for_constraint as inline functions that do a range check
21289         before calling the out-of-line function.  Use write_range_function
21290         to implement insn_extra_{register,memory,address}_constraint,
21291         the first of which is new.
21292         (write_insn_preds_c): Update after above changes to write_* functions.
21293         (main): Call choose_enum_order.
21295 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21297         PR tree-optimization/61306
21298         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
21299         expression instead of its size.
21300         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
21301         false to prevent optimization when the result is unpredictable due to
21302         arithmetic right shift of signed type with highest byte is set.
21303         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
21304         (init_symbolic_number): Likewise.
21305         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
21306         when the result is unpredictable due to sign extension.
21308 2014-06-11  Terry Guo  <terry.guo@arm.com>
21310         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
21311         (*thumb1_addsi3): Ditto.
21312         (*thumb_subdi3): Ditto.
21313         (thumb1_subsi3_insn): Ditto.
21314         (*thumb_mulsi3): Ditto.
21315         (*thumb_mulsi3_v6): Ditto.
21316         (*thumb1_andsi3_insn): Ditto.
21317         (thumb1_bicsi3): Ditto.
21318         (*thumb1_iorsi3_insn): Ditto.
21319         (*thumb1_xorsi3_insn): Ditto.
21320         (*thumb1_ashlsi3): Ditto.
21321         (*thumb1_ashrsi3): Ditto.
21322         (*thumb1_lshrsi3): Ditto.
21323         (*thumb1_rotrsi3): Ditto.
21324         (*thumb1_negdi2): Ditto.
21325         (*thumb1_negsi2): Ditto.
21326         (*thumb1_abssi2): Ditto.
21327         (*thumb1_neg_abssi2): Ditto.
21328         (*thumb1_one_cmplsi2): Ditto.
21329         (*thumb1_zero_extendhisi2): Ditto.
21330         (*thumb1_zero_extendqisi2): Ditto.
21331         (*thumb1_zero_extendqisi2_v6): Ditto.
21332         (thumb1_extendhisi2): Ditto.
21333         (thumb1_extendqisi2): Ditto.
21334         (*thumb1_movdi_insn): Ditto.
21335         (*thumb1_movsi_insn): Ditto.
21336         (*thumb1_movhi_insn): Ditto.
21337         (thumb_movhi_clobber): Ditto.
21338         (*thumb1_movqi_insn): Ditto.
21339         (*thumb1_movhf): Ditto.
21340         (*thumb1_movsf_insn): Ditto.
21341         (*thumb_movdf_insn): Ditto.
21342         (movmem12b): Ditto.
21343         (movmem8b): Ditto.
21344         (cbranchqi4): Ditto.
21345         (cbranchsi4_insn): Ditto.
21346         (cbranchsi4_scratch): Ditto.
21347         (*negated_cbranchsi4): Ditto.
21348         (*tbit_cbranch): Ditto.
21349         (*tlobits_cbranch): Ditto.
21350         (*tstsi3_cbranch): Ditto.
21351         (*cbranchne_decr1): Ditto.
21352         (*addsi3_cbranch): Ditto.
21353         (*addsi3_cbranch_scratch): Ditto.
21354         (*thumb_cmpdi_zero): Ditto.
21355         (cstoresi_eq0_thumb1): Ditto.
21356         (cstoresi_ne0_thumb1): Ditto.
21357         (*cstoresi_eq0_thumb1_insn): Ditto.
21358         (*cstoresi_ne0_thumb1_insn): Ditto.
21359         (cstoresi_nltu_thumb1): Ditto.
21360         (cstoresi_ltu_thumb1): Ditto.
21361         (thumb1_addsi3_addgeu): Ditto.
21362         (*thumb_jump): Ditto.
21363         (*call_reg_thumb1_v5): Ditto.
21364         (*call_reg_thumb1): Ditto.
21365         (*call_value_reg_thumb1_v5): Ditto.
21366         (*call_value_reg_thumb1): Ditto.
21367         (*call_insn): Ditto.
21368         (*call_value_insn): Ditto.
21369         (thumb1_casesi_internal_pic): Ditto.
21370         (thumb1_casesi_dispatch): Ditto.
21371         (*thumb1_indirect_jump): Ditto.
21372         (prologue_thumb1_interwork): Ditto.
21373         (*epilogue_insns): Ditto.
21374         (consttable_1): Ditto.
21375         (consttable_2): Ditto.
21376         (tablejump): Ditto.
21377         (*thumb1_tablejump): Ditto.
21378         (thumb_eh_return): Ditto.
21379         (define_peephole2): Two of them are thumb1 only and got moved into
21380         new file thumb1.md.
21381         (define_split): Six of them are thumb1 only and got moved into new
21382         file thumb1.md.
21383         * config/arm/thumb1.md: New file comprised of above thumb1 only
21384         patterns.
21386 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21388         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
21389         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
21390         dependencies.
21391         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
21392         (aarch64_crc_builtin_datum): New struct.
21393         (aarch64_crc_builtin_data): New.
21394         (aarch64_init_crc32_builtins): New function.
21395         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
21396         (aarch64_crc32_expand_builtin): New.
21397         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
21398         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21399         __ARM_FEATURE_CRC32 when appropriate.
21400         (TARGET_CRC32): Define.
21401         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
21402         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
21403         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
21404         (aarch64_<crc_variant>): New pattern.
21405         * config/aarch64/arm_acle.h: New file.
21406         * config/aarch64/iterators.md (CRC): New int iterator.
21407         (crc_variant, crc_mode): New int attributes.
21408         * doc/aarch64-acle-intrinsics.texi: New file.
21409         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
21410         Include aarch64-acle-intrinsics.texi.
21412 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
21414         * tree-vect-data-refs.c (vect_grouped_store_supported): New
21415         check for stores group of length 3.
21416         (vect_permute_store_chain): New permutations for stores group of
21417         length 3.
21418         * tree-vect-stmts.c (vect_model_store_cost): Change cost
21419         of vec_perm_shuffle for the new permutations.
21421 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
21423         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
21424         table rewriting temporarily on targets not supporting ONE_ONLY.
21426 2014-06-11  Richard Biener  <rguenther@suse.de>
21428         PR middle-end/61437
21429         Revert
21430         2014-06-04  Richard Biener  <rguenther@suse.de>
21432         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21433         TREE_PUBLIC and DECL_EXTERNAL decls.
21435 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
21437         * varasm.c (set_implicit_section): New function.
21438         (resolve_unique_section): Use it to set implicit section
21439         for aliases, too.
21440         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
21441         (default_function_section): Likewise.
21442         (decl_binds_to_current_def_p): Constify argument.
21443         * varasm.h (decl_binds_to_current_def_p): Update prototype.
21444         * asan.c (asan_protect_global): Use
21445         symtab_get_node (decl)->implicit_section.
21446         * symtab.c (dump_symtab_base): Dump implicit sections.
21447         (verify_symtab_base): Verify sanity of sectoins and comdats.
21448         (symtab_resolve_alias): Alias share the section of its target.
21449         (set_section_1): New function.
21450         (symtab_node::set_section): Move here, recurse to aliases.
21451         (verify_symtab): Check for duplicated symtab lists.
21452         * tree-core.h (implicit_section_name_p): Remove.
21453         * tree-vect-data-refs.c: Include varasm.h.
21454         (vect_can_force_dr_alignment_p): Fix conditional on when
21455         decl bints to current definition; use
21456         symtab_get_node (decl)->implicit_section.
21457         * cgraph.c (cgraph_make_node_local_1): Fix section set.
21458         * cgraph.h (struct symtab_node): Add implicit_section.
21459         (set_section): Rename to ...
21460         (set_section_for_node): ... this one.
21461         (set_section): Declare.
21462         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
21463         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21464         input_overwrite_node, input_varpool_node): Stream implicit_section.
21465         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
21466         removal; it will fail in LTO.
21468 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21470         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
21471         Change second alternative type to f_mcr.
21472         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
21473         and 12th alternatives' types to f_mcr and f_mrc.
21474         (*movdi_aarch64): Same for 12th and 13th alternatives.
21475         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
21476         (aarch64_movtilow_tilow): Change type to fmov.
21478 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
21480         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
21481         (aarch64_save_or_restore_callee_save_registers): Fix layout.
21483 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21485         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
21486         New expander.
21487         (aarch64_sqrdmulh_lane<mode>): Likewise.
21488         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21489         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21490         (aarch64_sqdmulh_laneq<mode>): New expander.
21491         (aarch64_sqrdmulh_laneq<mode>): Likewise.
21492         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
21493         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
21494         (aarch64_sqdmulh_lane<mode>): New expander.
21495         (aarch64_sqrdmulh_lane<mode>): Likewise.
21496         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21497         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21498         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
21499         (aarch64_sqdmlal_laneq<mode>): Likewise.
21500         (aarch64_sqdmlsl_lane<mode>): Likewise.
21501         (aarch64_sqdmlsl_laneq<mode>): Likewise.
21502         (aarch64_sqdmlal2_lane<mode>): Likewise.
21503         (aarch64_sqdmlal2_laneq<mode>): Likewise.
21504         (aarch64_sqdmlsl2_lane<mode>): Likewise.
21505         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21506         (aarch64_sqdmull_lane<mode>): Likewise.
21507         (aarch64_sqdmull_laneq<mode>): Likewise.
21508         (aarch64_sqdmull2_lane<mode>): Likewise.
21509         (aarch64_sqdmull2_laneq<mode>): Likewise.
21511 2014-06-10  Richard Biener  <rguenther@suse.de>
21513         PR tree-optimization/61438
21514         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
21515         (eliminate_dom_walker::before_dom_children): Only try to inhibit
21516         insertion of IVs if running PRE.
21517         (eliminate): Adjust.
21518         (pass_pre::execute): Likewise.
21519         (pass_fre::execute): Likewise.
21521 2014-06-10  Richard Biener  <rguenther@suse.de>
21523         PR middle-end/61456
21524         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21525         Do not use the main variant for the type comparison.
21526         (ncr_compar): Likewise.
21527         (nonoverlapping_component_refs_p): Likewise.
21529 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21531         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
21532         REG_CFA_RESTORE mode.
21534 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
21536         * config/i386/i386.c (expand_vec_perm_pblendv): New.
21537         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
21538         expand_vec_perm_pblendv.
21540 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21542         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21543         available.
21544         Simplify description of __crc32d and __crc32cd intrinsics.
21545         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21546         availability.
21548 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
21550         PR lto/61334
21551         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21552         * config.in: Regenerate.
21553         * configure: Likewise.
21555 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
21557         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21558         and public vars.
21559         (intersect_static_var_sets): Remove.
21560         (propagate): Do not prune local statics.
21562 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
21564         PR fortran/60928
21565         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21566         Set lastprivate_firstprivate even if omp_private_outer_ref
21567         langhook returns true.
21568         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21569         langhook, call unshare_expr on new_var and call
21570         build_outer_var_ref to get the last argument.
21572 2014-06-10  Marek Polacek  <polacek@redhat.com>
21574         PR c/60988
21575         * doc/extend.texi: Add cindex for transparent_union.
21577 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21579         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21580         init_symbolic_number ().
21582 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
21584         PR middle-end/61141
21585         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21586         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21587         (verify_rtl_sharing): Likewise.
21589 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
21591         PR c++/54442
21592         * tree.c (build_qualified_type): Use a canonical type for
21593         TYPE_CANONICAL.
21595 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21597         * config/arm/arm-modes.def: Remove XFmode.
21599 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
21601         PR target/61062
21602         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21603         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21604         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21605         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21606         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21607         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21608         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21609         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21610         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21612 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
21614         * tree-core.h (tree_decl_with_vis): Remove section_name.
21616 2014-06-09  Kito Cheng  <kito@0xlab.org>
21618         * ira.c (ira): Don't call init_caller_save if LRA enabled
21619         since LRA use its own infrastructure to handle that.
21621 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21623         * symtab.c (dump_symtab_base): Update dumping.
21624         (symtab_make_decl_local): Clear only DECL_COMDAT.
21625         * tree-vect-data-refs.c (Check that variable is static before
21626         tampering with sections.
21627         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21628         (cgraph_create_virtual_clone): Likewise.
21629         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21630         (decl_section_name, set_decl_section_name): New accessors.
21631         (find_decls_types_r): Do not walk section name
21632         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21633         (decl_comdat_group, decl_comdat_group_id): Constify.
21634         (decl_section_name, set_decl_section_name): Update.
21635         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21636         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21637         (cgraph_make_node_local_1): Clear section and comdat group.
21638         * cgraph.h (set_comdat_group): Sanity check.
21639         (get_section, set_section): New.
21640         * ipa-comdats.c (ipa_comdats): Use get_section.
21641         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
21642         * lto-streamer-out.c: Do not follow section names.
21643         * c-family/c-common.c (handle_section_attribute): Update.
21644         * lto-cgraph.c (lto_output_node): Output section.
21645         (lto_output_varpool_node): Likewise.
21646         (read_comdat_group): Rename to ...
21647         (read_identifier): ... this one.
21648         (read_string_cst): New function.
21649         (input_node, input_varpool_node): Input section names.
21650         * tree-emutls.c (get_emutls_init_templ_addr): Update.
21651         (new_emutls_decl): Update.
21652         (secname_for_decl): Check section names only of static vars.
21653         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
21654         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
21655         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21656         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21657         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
21658         * config/mcore/mcore.c (mcore_unique_section): Likewise.
21659         * config/mips/mips.c (mips16_build_function_stub): Likewise.
21660         * config/v850/v850.c (v850_insert_attributes): Likewise.
21661         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21662         Likewise.
21663         (h8300_handle_tiny_data_attribute): Likewise.
21664         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21665         (bfin_handle_l2_attribute): Likewise.
21667 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21669         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21670         remove static initializer.
21672 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21674         * varasm.c (use_blocks_for_decl_p): Check symbol table
21675         instead of alias attribute.
21676         (place_block_symbol): Recurse on aliases.
21678 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21680         * ipa-visibility.c: Include varasm.h
21681         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21683 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21685         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21686         outputting aliases.
21688 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
21690         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
21691         from test_insn into GGC space escape via SET_SRC.
21693 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
21695         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
21696         call statement, if any.
21697         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
21698         statements, if any.  Tidy up.
21700 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
21702         PR target/61431
21703         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
21704         iterators, VSX_D that handles 64-bit types, and VSX_LE that
21705         handles swapping the two 64-bit double words on little endian
21706         systems.  Include V1TImode and optionally TImode in VSX_LE so that
21707         these types are properly swapped.  Change all of the insns and
21708         splits that do the 64-bit swaps to use VSX_LE.
21709         (vsx_le_perm_load_<mode>): Likewise.
21710         (vsx_le_perm_store_<mode>): Likewise.
21711         (splitters for little endian memory operations): Likewise.
21712         (vsx_xxpermdi2_le_<mode>): Likewise.
21713         (vsx_lxvd2x2_le_<mode>): Likewise.
21714         (vsx_stxvd2x2_le_<mode>): Likewise.
21716 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
21718         PR target/61423
21719         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
21720         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
21721         and corresponding splitters.  Zero extend general register
21722         or memory input operand to XMM temporary.  Enable for
21723         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
21724         (floatunssi<mode>2): Update expander predicate.
21726 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
21728         PR rtl-optimization/61325
21729         * lra-constraints.c (process_address_1): Check scale equal to one
21730         to prevent transformation: base + scale * index => base + new_reg.
21732 2014-06-06  Richard Biener  <rguenther@suse.de>
21734         PR tree-optimization/59299
21735         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
21736         a def operand.
21737         (nearest_common_dominator_of_uses): Likewise.
21738         (statement_sink_location): Adjust.  Support sinking loads.
21740 2014-06-06  Martin Jambor  <mjambor@suse.cz>
21742         * ipa-prop.c (get_place_in_agg_contents_list): New function.
21743         (build_agg_jump_func_from_list): Likewise.
21744         (determine_known_aggregate_parts): Renamed to
21745         determine_locally_known_aggregate_parts.  Moved some functionality
21746         to the two functions above, removed bound checks.
21748 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
21750         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
21751         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
21752         (aarch64_progress_pointer): Likewise.
21753         (aarch64_copy_one_part_and_move_pointers): Likewise.
21754         (aarch64_expand_movmen): Likewise.
21755         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
21756         * config/aarch64/aarch64.md (movmem<mode>): New.
21758 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
21760         * targhooks.c (default_add_stmt_cost): Call target specific
21761         hook instead of default one.
21763 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21765         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
21766         endianness instead of host endianness.
21767         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
21768         comments.
21770 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21772         PR debug/53927
21773         * function.c (instantiate_decls): Process the saved static chain.
21774         (expand_function_start): If not optimizing, save the static chain
21775         onto the stack.
21776         * tree-nested.c (convert_all_function_calls): Always create the static
21777         chain for nested functions if not optimizing.
21779 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21781         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
21783 2014-06-06  Richard Biener  <rguenther@suse.de>
21785         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
21786         (construct_init_block): Likewise.
21787         (construct_exit_block): Likewise.
21788         (pass_expand::execute): Likewise.
21789         * graphite.c (graphite_transforms): Replace check for current_loops
21790         with a check for > 1 loops.
21791         (pass_graphite_transforms::execute): Adjust.
21792         * ipa-split.c (split_function): Remove check for current_loops.
21793         * omp-low.c (expand_parallel_call): Likewise.
21794         (expand_omp_for_init_counts): Likewise.
21795         (extract_omp_for_update_vars): Likewise.
21796         (expand_omp_for_generic): Likewise.
21797         (expand_omp_sections): Likewise.
21798         (expand_omp_target): Likewise.
21799         * tracer.c (tail_duplicate): Likewise.
21800         (pass_tracer::execute): Likewise.
21801         * trans-mem.c (expand_transaction): Likewise.
21802         * tree-complex.c (expand_complex_div_wide): Likewise.
21803         * tree-eh.c (lower_resx): Likewise.
21804         (cleanup_empty_eh_merge_phis): Likewise.
21805         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
21806         current_loops with a check for > 1 loops.
21807         (pass_predcom::execute): Adjust.
21808         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
21809         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
21810         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
21811         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
21812         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
21813         * tree-switch-conversion.c (process_switch): Likewise.
21814         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
21815         * tree-vrp.c (vrp_visit_phi_node): Likewise.
21816         (execute_vrp): Likewise.
21817         * ubsan.c (ubsan_expand_null_ifn): Likewise.
21819 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21821         * rtl.h (insn_location): Declare.
21822         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
21823         with UNKNOWN_LOCATION.
21824         * emit-rtl.c (insn_location): New function.
21825         * final.c (notice_source_line): Check that the instruction has a
21826         location before retrieving it and use insn_location.
21827         * modulo-sched.c (loop_single_full_bb_p): Likewise.
21828         * print-rtl.c (print_rtx): Likewise.
21830 2014-06-06  Richard Biener  <rguenther@suse.de>
21832         * passes.def: Move 2nd VRP pass before phi-only-cprop.
21834 2014-06-06  Christian Bruel  <christian.bruel@st.com>
21836         PR tree-optimization/43934
21837         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
21838         cost.
21840 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
21842         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
21843         return NO_REGS for extra address and memory constraints.  Handle
21844         operands that match (or are equivalent to something that matches)
21845         extra constant constraints.  Ignore other non-register operands.
21847 2014-06-06  Alan Modra  <amodra@gmail.com>
21849         PR target/61300
21850         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
21851         * doc/tm.texi: Regenerate.
21852         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
21853         Use throughout in place of REG_PARM_STACK_SPACE.
21854         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
21855         "incoming" param.  Pass to rs6000_function_parms_need_stack.
21856         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
21857         prototype_p when incoming.  Use function decl when incoming
21858         to handle K&R style functions.
21859         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
21860         (INCOMING_REG_PARM_STACK_SPACE): Define.
21862 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21864         PR target/52472
21865         * cfgexpand.c (expand_debug_expr): Use address space of nested
21866         TREE_TYPE for ADDR_EXPR and MEM_REF.
21868 2014-06-05  Jeff Law  <law@redhat.com>
21870         PR tree-optimization/61289
21871         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
21872         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
21873         looking for those which match LHS.  All callers changed.
21874         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
21875         parameters and code which manipulated them.  All callers changed.
21876         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
21877         and DST_MAP parameters.  Simplify invalidation code by just calling
21878         invalidate_equivalences.  All callers changed.
21879         (thread_across_edge): Simplify now that we don't need to maintain
21880         the map of equivalences to invalidate.
21882 2014-06-05  Kai Tietz  <ktietz@redhat.com>
21883             Richard Henderson  <rth@redhat.com>
21885         PR target/46219
21886         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
21887         checking for !TARGET_X32.
21888         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
21889         (sibcall_intern): New define_insn, plus required peepholes.
21890         (sibcall_pop_intern): Likewise.
21891         (sibcall_value_intern): Likewise.
21892         (sibcall_value_pop_intern): Likewise.
21894 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
21896         * tree-inline.c (tree_function_versioning): Check DF info existence
21897         before accessing it.
21899 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21901         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
21902         frame_size.
21903         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
21904         aarch64_frame hard_fp_offset and frame_size.
21905         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
21906         frame_size; remove original_frame_size.
21907         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
21908         (aarch64_initial_elimination_offset): Remove frame_size and
21909         offset.  Use aarch64_frame frame_size.
21911 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21912             Jiong Wang  <jiong.wang@arm.com>
21913             Renlin  <renlin.li@arm.com>
21915         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
21916         initialization of R30 offset.  Update offset.  Iterate core
21917         regisers upto X30.  Remove X29, X30 specific code.
21919 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21920             Jiong Wang  <jiong.wang@arm.com>
21922         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
21923         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
21924         (aarch64_register_saved_on_entry): Adjust test.
21926 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21928         * config/aarch64/aarch64.h (machine_function): Move
21929         saved_varargs_size from here...
21930         (aarch64_frame): ... to here.
21932         * config/aarch64/aarch64.c (aarch64_expand_prologue)
21933         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
21934         (aarch64_initial_elimination_offset)
21935         (aarch64_setup_incoming_varargs): Adjust location of
21936         saved_varargs_size.
21938 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21940         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
21941         layout comment.
21943 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
21944             Prachi Godbole  <Prachi.Godbole@imgtec.com>
21946         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
21947         mips32r5 entry to use PROCESSOR_P5600.
21948         * config/mips/mips-tables.opt: Regenerate.
21949         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
21950         * config/mips/mips.c (mips_fmadd_bypass): New function.
21951         (mips_rtx_cost_data): Add costs for p5600.
21952         (mips_issue_rate): Add support for p5600.
21953         (mips_multipass_dfa_lookahead): Likewise.
21954         * config/mips/mips.h (TUNE_P5600): New define.
21955         (TUNE_MACC_CHAINS): Add TUNE_P5600.
21956         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
21957         * config/mips/mips.md: Include p5600.md.
21958         (processor): Add p5600.
21959         * config/mips/p5600.md: New file.
21961 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
21963         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
21964         * config/i386/predicates.md (palignr_operand): New.
21965         Indicates if permutation is suitable for palignr instruction.
21967 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
21969         PR tree-optimization/61319
21970         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21971         stmt belongs to loop.
21973 2014-06-05  Richard Biener  <rguenther@suse.de>
21975         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
21976         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
21977         (lookup_tmp_var): Adjust.
21978         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
21980 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21982         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
21984 2014-06-05  Marek Polacek  <polacek@redhat.com>
21986         PR c/49706
21987         * doc/invoke.texi: Document -Wlogical-not-parentheses.
21989 2014-06-04  Tom de Vries  <tom@codesourcery.com>
21991         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
21992         CONST_INT.
21994 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
21996         PR tree-optimization/61385
21997         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
21999 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
22001         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
22002         changed to use fatal_error.
22003         (main): Ensure lto_wrapper_cleanup is run atexit.
22005 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22007         * lra-constraints.c (valid_address_p): Move earlier in file.
22008         (address_eliminator): New structure.
22009         (satisfies_memory_constraint_p): New function.
22010         (satisfies_address_constraint_p): Likewise.
22011         (process_alt_operands, process_address, curr_insn_transform): Use them.
22013 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22015         * lra-int.h (lra_static_insn_data): Make operand_alternative a
22016         const pointer.
22017         (target_lra_int, default_target_lra_int, this_target_lra_int)
22018         (op_alt_data): Delete.
22019         * lra.h (lra_init): Delete.
22020         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22021         (init_insn_code_data_once): Remove op_alt_data handling.
22022         (finish_insn_code_data_once): Likewise.
22023         (init_op_alt_data): Delete.
22024         (get_static_insn_data): Initialize operand_alternative to null.
22025         (free_insn_recog_data): Cast operand_alternative before freeing it.
22026         (setup_operand_alternative): Take the operand_alternative as
22027         parameter and assume it isn't already cached in the static
22028         insn data.
22029         (lra_set_insn_recog_data): Update accordingly.
22030         (lra_init): Delete.
22031         * ira.c (ira_init): Don't call lra_init.
22032         * target-globals.h (this_target_lra_int): Declare.
22033         (target_globals): Remove lra_int.
22034         (restore_target_globals): Update accordingly.
22035         * target-globals.c: Don't include lra-int.h.
22036         (default_target_globals, save_target_globals): Remove lra_int.
22038 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22040         * recog.h (operand_alternative): Convert reg_class, reject,
22041         matched and matches into bitfields.
22042         (preprocess_constraints): New overload.
22043         (preprocess_insn_constraints): New function.
22044         (preprocess_constraints): Take the insn as parameter.
22045         (recog_op_alt): Change into a pointer.
22046         (target_recog): Add x_op_alt.
22047         * recog.c (asm_op_alt): New variable.
22048         (recog_op_alt): Change into a pointer.
22049         (preprocess_constraints): New overload, replacing the old function
22050         definition with one that doesn't use global state.
22051         (preprocess_insn_constraints): New function.
22052         (preprocess_constraints): Use them.  Take the insn as parameter.
22053         Use asm_op_alt for asms.
22054         (recog_init): Free existing x_op_alt entries.
22055         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22056         pointer const.
22057         (make_early_clobber_and_input_conflicts): Likewise.
22058         (process_bb_node_lives): Pass the insn to process_constraints.
22059         * reg-stack.c (check_asm_stack_operands): Likewise.
22060         (subst_asm_stack_regs): Likewise.
22061         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22062         * regrename.c (build_def_use): Likewise.
22063         * sched-deps.c (sched_analyze_insn): Likewise.
22064         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22065         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22066         (note_invalid_constants): Likewise.
22067         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22068         (ix86_legitimate_combined_insn): Make operand_alternative pointer
22069         const.
22071 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22073         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22074         * ira-lives.c (check_and_make_def_conflict): Check for disabled
22075         alternatives.
22076         (make_early_clobber_and_input_conflicts): Likewise.
22077         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22079 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22081         * recog.h (alternative_class): New function.
22082         (which_op_alt): Return a const recog_op_alt.
22083         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22084         (subst_asm_stack_regs): Likewise.
22085         * config/arm/arm.c (note_invalid_constants): Likewise.
22086         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
22087         the operand_alternative; use alternative class instead.
22088         * sel-sched.c (get_reg_class): Likewise.
22089         * regrename.c (build_def_use): Likewise.
22090         (hide_operands, restore_operands, record_out_operands): Update type
22091         accordingly.
22093 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22095         * recog.h (recog_op_alt): Convert to a flat array.
22096         (which_op_alt): New function.
22097         * recog.c (recog_op_alt): Convert to a flat array.
22098         (preprocess_constraints): Update accordingly, grouping all
22099         operands of the same alternative together, rather than the
22100         other way around.
22101         * ira-lives.c (check_and_make_def_conflict): Likewise.
22102         (make_early_clobber_and_input_conflicts): Likewise.
22103         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22104         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22105         (subst_asm_stack_regs): Likewise.
22106         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22107         * regrename.c (hide_operands, record_out_operands): Likewise.
22108         (build_def_use): Likewise.
22109         * sel-sched.c (get_reg_class): Likewise.
22110         * config/arm/arm.c (note_invalid_constants): Likewise.
22112 2014-06-04  Jason Merrill  <jason@redhat.com>
22114         PR c++/51253
22115         PR c++/61382
22116         * gimplify.c (gimplify_arg): Non-static.
22117         * gimplify.h: Declare it.
22119 2014-06-04  Richard Biener  <rguenther@suse.de>
22121         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22122         TREE_PUBLIC and DECL_EXTERNAL decls.
22124 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
22126         * regcprop.c (copyprop_hardreg_forward_1): Account for
22127         HARD_REGNO_CALL_PART_CLOBBERED.
22129 2014-06-04  Richard Biener  <rguenther@suse.de>
22131         * configure.ac: Check whether the underlying type of int64_t
22132         is long or long long.
22133         * configure: Regenerate.
22134         * config.in: Likewise.
22135         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22136         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22138 2014-06-04  Richard Biener  <rguenther@suse.de>
22140         PR tree-optimization/60098
22141         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22142         we hit a kill.
22143         (dse_optimize_stmt): Simplify, now that we found a kill
22144         earlier.
22146 2014-06-04  Richard Biener  <rguenther@suse.de>
22148         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22149         of accesses with non-invariant address.
22151 2014-06-04  Martin Liska  <mliska@suse.cz>
22153         * cgraph.h (cgraph_make_wrapper): New function introduced.
22154         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22155         * ipa-inline.h (inline_analyze_function): The function is global.
22156         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22158 2014-06-04  Martin Liska  <mliska@suse.cz>
22160         * tree.h (private_lookup_attribute_starting): New function.
22161         (lookup_attribute_starting): Likewise.
22162         * tree.c (private_lookup_attribute_starting): Likewise.
22164 2014-06-04  Martin Liska  <mliska@suse.cz>
22166         * cgraph.h (expand_thunk): New argument added.
22167         (address_taken_from_non_vtable_p): New global function.
22168         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
22169         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
22170         * cgraphunit.c (analyze_function): Likewise.
22171         (assemble_thunks_and_aliases): Argument added to call.
22172         (expand_thunk): New argument forces to produce GIMPLE thunk.
22174 2014-06-04  Martin Liska  <mliska@suse.cz>
22176         * coverage.h (coverage_compute_cfg_checksum): Argument added.
22177         * coverage.c (coverage_compute_cfg_checksum): Likewise.
22178         * profile.c (branch_prob): Likewise.
22180 2014-06-04  Martin Jambor  <mjambor@suse.cz>
22182         PR ipa/61340
22183         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
22184         handler for switch on an ipa_ref_use enum.
22185         * ipa-reference.c (analyze_function): Likewise.
22187 2014-06-04  Kai Tietz  <ktietz@redhat.com>
22189         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
22190         from old call-instruction.
22192 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
22194         * config/aarch64/aarch64.c (aarch64_classify_address)
22195         (aarch64_legitimize_reload_address): Support full addressing modes
22196         for vector modes.
22197         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22198         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22200 2014-06-03  Andrew Pinski  <apinski@cavium.com>
22202         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22203         for OP0.
22205 2014-06-03  Andrew Pinski  <apinski@cavium.com>
22207         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22208         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22210 2014-06-03  Kai Tietz  <ktietz@redhat.com>
22212         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22213         for 64-bit ms-abi.
22215 2014-06-03  Dehao Chen  <dehao@google.com>
22217         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22218         the same loop.
22220 2014-06-03  Marek Polacek  <polacek@redhat.com>
22222         PR c/60439
22223         * doc/invoke.texi: Document -Wswitch-bool.
22224         * function.c (stack_protect_epilogue): Cast controlling expression of
22225         the switch to int.
22226         * gengtype.c (walk_type): Generate switch expression with its
22227         controlling expression cast to int.
22229 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
22231         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22232         and attiny841.
22233         * config/avr/avr-tables.opt: Regenerate.
22234         * config/avr/t-multilib: Regenerate.
22235         * doc/avr-mmcu.texi: Regenerate.
22237 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
22238             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22240         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22241         (ata6617c, ata664251): Add new avr35 devices.
22242         (ata6612c): Add new avr4 device.
22243         (ata6613c, ata6614q): Add new avr5 devices.
22244         * config/avr/avr-tables.opt: Regenerate.
22245         * config/avr/t-multilib: Regenerate.
22246         * doc/avr-mmcu.texi: Regenerate.
22248 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22250         * gcc/config/aarch64/aarch64-builtins.c
22251         (aarch64_types_binop_ssu_qualifiers): New static data.
22252         (TYPES_BINOP_SSU): Define.
22253         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22254         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22255         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22256         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22257         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22258         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22259         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22260         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22261         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22262         suffix to builtin function name, remove cast.
22263         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22264         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22265         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22267 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22269         * gcc/config/aarch64/aarch64-builtins.c
22270         (aarch64_types_binop_uus_qualifiers,
22271         aarch64_types_shift_to_unsigned_qualifiers,
22272         aarch64_types_unsigned_shiftacc_qualifiers): Define.
22273         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22274         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22275         sqshlu_n, uqshl_n): Update qualifiers.
22276         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22277         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22278         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22279         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22280         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22281         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22282         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22283         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22284         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22285         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22286         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22287         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22288         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22289         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22290         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22291         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22292         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22293         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22294         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
22295         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
22296         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
22297         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
22298         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
22299         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
22300         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
22301         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
22302         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
22304 2014-06-03  Teresa Johnson  <tejohnson@google.com>
22306         * tree-sra.c (modify_function): Record caller nodes after rebuild.
22308 2014-06-02  Jason Merrill  <jason@redhat.com>
22310         PR c++/61020
22311         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
22313 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22315         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
22316         location == 0.
22318 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22320         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
22321         New pattern.
22322         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
22323         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
22324         * config/aarch64/iterators.md (REVERSE): New iterator.
22325         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
22326         (rev_op): New int_attribute.
22327         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
22328         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
22329         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
22330         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
22331         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
22332         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
22333         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
22334         Replace temporary __asm__ with __builtin_shuffle.
22336 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
22338         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
22339         mips64r5.
22340         * config/mips/mips-tables.opt: Regenerate.
22341         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
22342         to use mips_isa_rev rather than ISA_MIPS32R2.
22343         * config/mips/mips.h (ISA_MIPS32R3): New define.
22344         (ISA_MIPS32R5): New define.
22345         (ISA_MIPS64R3): New define.
22346         (ISA_MIPS64R5): New define.
22347         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
22348         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
22349         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
22350         and mips64r5.
22351         (MIPS_ISA_SYNCI_SPEC): Likewise.
22352         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
22353         (LINK_SPEC): Added mips32r3 and mips32r5.
22354         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
22355         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
22356         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
22357         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
22358         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
22359         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
22360         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
22362 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
22364         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
22365         options.
22366         * config/mips/mips.opt (mxpa): New option.
22367         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
22368         assembler.
22370 2014-06-03  Martin Jambor  <mjambor@suse.cz>
22372         PR ipa/61160
22373         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
22374         thunks.
22376 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22378         PR tree-optimization/61328
22379         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
22380         initialization from find_bswap_or_nop_1.
22381         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
22382         in source_expr2 before using the size value the function sets. Also
22383         make use of init_symbolic_number () in both the old place and
22384         find_bswap_or_nop_load () to avoid reading uninitialized memory when
22385         doing recursion in the GIMPLE_BINARY_RHS case.
22387 2014-06-03  Richard Biener  <rguenther@suse.de>
22389         PR tree-optimization/61383
22390         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
22391         stmts can't trap.
22393 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
22395         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
22396         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
22397         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
22398         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
22399         in this file.
22400         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
22401         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
22402         * system.h: ...here and make it unconditional.
22403         * target.def (conditional_register_usage): Mention
22404         define_register_constraint instead of old-style constraint macros.
22405         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
22406         * doc/tm.texi: Regenerate.
22407         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
22408         protected by !USE_MD_CONSTRAINTS.
22409         * config/frv/frv.md: Remove quote from old version of documentation.
22410         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
22411         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
22412         CONST_DOUBLE_OK_FOR_LETTER.
22413         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
22415 2014-06-02  Andrew Pinski  <apinski@cavium.com>
22417         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
22418         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
22419         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
22420         file whose name depends on -mabi= and -mbig-endian.
22421         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
22422         Handle LP64 better and handle ilp32 too.
22423         (MULTILIB_OPTIONS): Delete.
22424         (MULTILIB_DIRNAMES): Delete.
22426 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
22428         * expr.h: Remove prototypes of functions defined in builtins.c.
22429         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
22430         Remove prototypes of functions defined in builtins.c.
22431         * builtins.h: Update prototype list to include all exported functions.
22432         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
22433         no_c99_libc_has_function): Move to targhooks.c
22434         (build_string_literal, build_call_expr_loc_array,
22435         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
22436         to tree.c.
22437         (expand_builtin_object_size, fold_builtin_object_size): Make static.
22438         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
22439         no_c99_libc_has_function): Relocate from builtins.c.
22440         * tree.c: Include builtins.h.
22441         (build_call_expr_loc_array, build_call_expr_loc_vec,
22442         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
22443         from builtins.c.
22444         * fold-const.h (fold_fma): Move prototype to builtins.h.
22445         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
22446         * asan.c: Include builtins.h.
22447         * cfgexpand.c: Likewise.
22448         * convert.c: Likewise.
22449         * emit-rtl.c: Likewise.
22450         * except.c: Likewise.
22451         * expr.c: Likewise.
22452         * fold-const.c: Likewise.
22453         * gimple-fold.c: Likewise.
22454         * gimple-ssa-strength-reduction.c: Likewise.
22455         * gimplify.c: Likewise.
22456         * ipa-inline.c: Likewise.
22457         * ipa-prop.c: Likewise.
22458         * lto-streamer-out.c: Likewise.
22459         * stmt.c: Likewise.
22460         * tree-inline.c: Likewise.
22461         * tree-object-size.c: Likewise.
22462         * tree-sra.c: Likewise.
22463         * tree-ssa-ccp.c: Likewise.
22464         * tree-ssa-forwprop.c: Likewise.
22465         * tree-ssa-loop-ivcanon.c: Likewise.
22466         * tree-ssa-loop-ivopts.c: Likewise.
22467         * tree-ssa-math-opts.c: Likewise.
22468         * tree-ssa-reassoc.c: Likewise.
22469         * tree-ssa-threadedge.c: Likewise.
22470         * tree-streamer-in.c: Likewise.
22471         * tree-vect-data-refs.c: Likewise.
22472         * tree-vect-patterns.c: Likewise.
22473         * tree-vect-stmts.c: Likewise.
22474         * config/aarch64/aarch64.c: Likewise.
22475         * config/alpha/alpha.c: Likewise.
22476         * config/arc/arc.c: Likewise.
22477         * config/arm/arm.c: Likewise.
22478         * config/avr/avr.c: Likewise.
22479         * config/bfin/bfin.c: Likewise.
22480         * config/c6x/c6x.c: Likewise.
22481         * config/cr16/cr16.c: Likewise.
22482         * config/cris/cris.c: Likewise.
22483         * config/epiphany/epiphany.c: Likewise.
22484         * config/fr30/fr30.c: Likewise.
22485         * config/frv/frv.c: Likewise.
22486         * config/h8300/h8300.c: Likewise.
22487         * config/i386/i386.c: Likewise.
22488         * config/i386/winnt.c: Likewise.
22489         * config/ia64/ia64.c: Likewise.
22490         * config/iq2000/iq2000.c: Likewise.
22491         * config/lm32/lm32.c: Likewise.
22492         * config/m32c/m32c.c: Likewise.
22493         * config/m32r/m32r.c: Likewise.
22494         * config/m68k/m68k.c: Likewise.
22495         * config/mcore/mcore.c: Likewise.
22496         * config/mep/mep.c: Likewise.
22497         * config/microblaze/microblaze.c: Likewise.
22498         * config/mips/mips.c: Likewise.
22499         * config/mmix/mmix.c: Likewise.
22500         * config/mn10300/mn10300.c: Likewise.
22501         * config/moxie/moxie.c: Likewise.
22502         * config/msp430/msp430.c: Likewise.
22503         * config/nds32/nds32.c: Likewise.
22504         * config/pa/pa.c: Likewise.
22505         * config/pdp11/pdp11.c: Likewise.
22506         * config/picochip/picochip.c: Likewise.
22507         * config/rl78/rl78.c: Likewise.
22508         * config/rs6000/rs6000.c: Likewise.
22509         * config/rx/rx.c: Likewise.
22510         * config/s390/s390.c: Likewise.
22511         * config/score/score.c: Likewise.
22512         * config/sh/sh.c: Likewise.
22513         * config/sparc/sparc.c: Likewise.
22514         * config/spu/spu.c: Likewise.
22515         * config/stormy16/stormy16.c: Likewise.
22516         * config/tilegx/tilegx.c: Likewise.
22517         * config/tilepro/tilepro.c: Likewise.
22518         * config/v850/v850.c: Likewise.
22519         * config/vax/vax.c: Likewise.
22520         * config/xtensa/xtensa.c: Likewise.
22522 2014-06-02  Jeff Law  <law@redhat.com>
22524         PR rtl-optimization/61094
22525         * ree.c (combine_reaching_defs): Do not reextend an insn if it
22526         was marked as do_no_reextend.  If a copy is needed to eliminate
22527         an extension, then mark it as do_not_reextend.
22529 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22531         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
22533 2014-06-02  Richard Henderson  <rth@redhat.com>
22535         PR target/61336
22536         * config/alpha/alpha.c (print_operand_address): Allow symbolic
22537         addresses inside asms.  Use output_operand_lossage instead of
22538         gcc_unreachable.
22540 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
22542         PR target/61239
22543         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22544         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22546 2014-06-02  Tom de Vries  <tom@codesourcery.com>
22548         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22549         case that x has VOIDmode.
22551 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
22553         * varasm.c (copy_constant): Delete function.
22554         (build_constant_desc): Don't call it.
22556 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22558         PR target/61154
22559         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22560         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22561         with immediate_operand.
22563 2014-06-02  Andreas Schwab  <schwab@suse.de>
22565         * config/ia64/ia64.c
22566         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22567         pending_data_specs first.
22569 2014-06-02  Richard Biener  <rguenther@suse.de>
22571         PR tree-optimization/61378
22572         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22573         valueized_anything.
22575 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
22577         * config/i386/constraints.md (Bw): Rename from 'w'.
22578         (Bz): Rename from 'z'.
22579         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22581 2014-06-01  Kai Tietz  <ktietz@redhat.com>
22583         PR target/61377
22584         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22585         * config/i386/i386.md (sibcall_insn_operand): Use Bs
22586         instead of m constraint.
22588 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
22590         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22591         a separate alternative where the scratch operand 2 is marked as
22592         early clobber.
22594 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
22596         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22597         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22598         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22599         and __builtins_arm_get_fpscr.
22600         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22601         __builtins_arm_get_fpscr.
22602         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22603         __builtins_arm_ldfpscr.
22604         (arm_atomic_assign_expand_fenv): New function.
22605         * config/arm/vfp.md (set_fpscr): New pattern.
22606         (get_fpscr) : Likewise.
22607         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22608         VUNSPEC_SET_FPSCR.
22609         * doc/extend.texi (AARCH64 Built-in Functions) : Document
22610         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22612 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
22614         * asan.c (report_error_func): Add SLOW_P argument, use
22615         BUILT_IN_ASAN_*_N if set.
22616         (build_check_stmt): Likewise.
22617         (instrument_derefs): If T has insufficient alignment,
22618         force same handling as for odd sizes.
22620         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22621         BUILT_IN_ASAN_REPORT_STORE_N): New.
22622         * asan.c (struct asan_mem_ref): Change access_size type to
22623         HOST_WIDE_INT.
22624         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22625         update_mem_ref_hash_table): Likewise.
22626         (asan_mem_ref_hasher::hash): Hash in a HWI.
22627         (report_error_func): Change size_in_bytes argument to HWI.
22628         Use *_N builtins if size_in_bytes is larger than 16 or not power of
22629         two.
22630         (build_shadow_mem_access): New function.
22631         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
22632         Handle size_in_bytes not power of two or larger than 16.
22633         (instrument_derefs): Don't give up if size_in_bytes is not
22634         power of two or is larger than 16.
22636 2014-05-30  Kai Tietz  <ktietz@redhat.com>
22638         PR target/60104
22639         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
22640         for sibling-tail-calls.
22641         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
22642         to its use.
22643         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
22644         (sibcall_insn_operand): Add check for sibcall_memory_operand.
22646 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22648         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
22649         * config/avr/avr-tables.opt: Regenerate.
22650         * config/avr/t-multilib: Regenerate.
22651         * doc/avr-mmcu.texi: Regenerate.
22653 2014-05-30  Ian Lance Taylor  <iant@google.com>
22655         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
22656         target("sse").
22658 2014-05-30  Tom de Vries  <tom@codesourcery.com>
22660         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22661         Redefine as true.
22663 2014-05-30  Tom de Vries  <tom@codesourcery.com>
22665         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22666         * lra.c (initialize_lra_reg_info_element): Add init of
22667         actual_call_used_reg_set field.
22668         (lra): Call lra_create_live_ranges before lra_inheritance for
22669         -fuse-caller-save.
22670         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22671         -fuse-caller-save.
22672         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22673         instead of call_used_reg_set for -fuse-caller-save.
22674         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22676 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22678         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22679         to mov_imm.
22680         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22682 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
22684         * ira.c (ira_get_dup_out_num): Check for output operands at
22685         the start of the loop.  Handle cases where an included alternative
22686         follows an excluded one.
22688 2014-05-29  Mike Stump  <mikestump@comcast.net>
22690         PR debug/61352
22691         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
22692         post ld passes when lto is used.
22694 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
22696         PR rtl-optimization/61325
22697         * lra-constraints.c (process_address): Rename to process_address_1.
22698         (process_address): New function.
22700 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
22702         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
22703         TYPES_BINOPV): New static data.
22704         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
22705         New builtin.
22706         * config/aarch64/aarch64-simd.md (aarch64_ext,
22707         aarch64_im_lane_boundsi): New patterns.
22708         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
22709         patterns for EXT.
22710         (aarch64_evpc_ext): New function.
22712         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
22714         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
22715         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
22716         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
22717         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
22718         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
22720 2014-05-29  Tom de Vries  <tom@codesourcery.com>
22722         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
22724 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
22725             Richard Sandiford  <rdsandiford@googlemail.com>
22727         * arm/iterators.md (shiftable_ops): New code iterator.
22728         (t2_binop0, arith_shift_insn): New code attributes.
22729         * arm/predicates.md (shift_nomul_operator): New predicate.
22730         * arm/arm.md (insn_enabled): Delete.
22731         (enabled): Remove insn_enabled test.
22732         (*arith_shiftsi): Delete.  Replace with ...
22733         (*<arith_shift_insn>_multsi): ... new pattern.
22734         (*<arith_shift_insn>_shiftsi): ... new pattern.
22735         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
22737 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
22738             Tom de Vries  <tom@codesourcery.com>
22740         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
22741         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
22742         clobber.
22743         (mips_split_call): Use POST_CALL_TMP_REG.
22744         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
22746 2014-05-29  Tom de Vries  <tom@codesourcery.com>
22748         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
22749         with #ifdef STACK_REGS.
22751 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
22753         * varasm.c (get_variable_section): Walk aliases.
22754         (place_block_symbol): Walk aliases.
22756 2014-05-28  Tom de Vries  <tom@codesourcery.com>
22758         Revert:
22759         2014-05-28  Tom de Vries  <tom@codesourcery.com>
22761         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22762         * lra.c (initialize_lra_reg_info_element): Add init of
22763         actual_call_used_reg_set field.
22764         (lra): Call lra_create_live_ranges before lra_inheritance for
22765         -fuse-caller-save.
22766         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22767         -fuse-caller-save.
22768         * lra-constraints.c (need_for_call_save_p): Use
22769         actual_call_used_reg_set instead of call_used_reg_set for
22770         -fuse-caller-save.
22771         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22773 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
22775         * doc/md.texi: Document that the % constraint character must
22776         be at the beginning of the string.
22777         * genoutput.c (validate_insn_alternatives): Check that '=',
22778         '+' and '%' only appear at the beginning of a constraint.
22779         * ira.c (commutative_constraint_p): Delete.
22780         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
22781         at the start of the string.
22782         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
22783         duplicate '='s.
22784         * config/arm/neon.md (bicdi3_neon): Likewise.
22785         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
22786         (slt_si, sltu_si): Likewise.
22787         * config/vax/vax.md (sbcdi3): Likewise.
22788         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
22789         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
22790         (mul64): Move '%' to beginning of constraint.
22791         * config/arm/arm.md (*xordi3_insn): Likewise.
22792         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
22793         (xorsi3): Likewise.
22795 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
22797         * doc/md.texi: Document the restrictions on the "enabled" attribute.
22799 2014-05-28  Jason Merrill  <jason@redhat.com>
22801         PR c++/47202
22802         * cgraph.h (symtab_node::get_comdat_group_id): New.
22803         * cgraphunit.c (analyze_functions): Call it.
22804         * symtab.c (dump_symtab_node): Likewise.
22805         * tree.c (decl_comdat_group_id): New.
22806         * tree.h: Declare it.
22807         * lto-streamer-out.c (write_symbol): Use it.
22808         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
22810 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
22812         PR bootstrap/PR61146
22813         * wide-int.cc: Do not include longlong.h when compiling with clang.
22815 2014-05-28  Richard Biener  <rguenther@suse.de>
22817         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
22818         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
22819         (vrp_visit_assignment_or_call): Print less vertical space.
22820         (vrp_visit_stmt): Likewise.
22821         (vrp_visit_phi_node): Likewise.  For a PHI argument with
22822         VR_VARYING range consider recording it as copy.
22824 2014-05-28  Richard Biener  <rguenther@suse.de>
22826         Revert
22827         2014-05-28  Richard Biener  <rguenther@suse.de>
22829         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22831 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22833         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
22834         sufficiently aligned and an offset is used at the same time.
22835         (expand_expr_real_1): Likewise.
22837 2014-05-28  Richard Biener  <rguenther@suse.de>
22839         PR middle-end/61045
22840         * fold-const.c (fold_comparison): When folding
22841         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
22842         the sign of the remaining constant operand stays the same.
22844 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
22846         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
22847         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
22848         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
22849         to the assembler.
22850         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
22851         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
22852         (m32bit-doubles) Likewise.
22853         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
22854         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
22855         option for RL78.
22857 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22859         * configure.ac ($gcc_cv_ld_clearcap): New test.
22860         * configure: Regenerate.
22861         * config.in: Regenerate.
22862         * config/sol2.opt (mclear-hwcap): New option.
22863         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
22864         * config/sol2-clearcap.map: Moved here from
22865         testsuite/gcc.target/i386/clearcap.map.
22866         * config/sol2-clearcapv2.map: Move here from
22867         gcc.target/i386/clearcapv2.map.
22868         * config/t-sol2 (install): Depend on install-clearcap-map.
22869         (install-clearcap-map): New target.
22870         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
22871         -mclear-hwcap.
22873 2014-05-28  Richard Biener  <rguenther@suse.de>
22875         * hwint.h (*_HALF_WIDE_INT*): Move to ...
22876         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
22877         ... here and remove the rest.
22878         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22880 2014-05-28  Richard Biener  <rguenther@suse.de>
22882         PR tree-optimization/61335
22883         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
22884         new range fails, drop to varying.
22886 2014-05-28  Olivier Hainque  <hainque@adacore.com>
22888         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
22889         (CPP_SPEC): Add entry for -mcpu=8548.
22890         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
22891         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
22893 2014-05-28  Tom de Vries  <tom@codesourcery.com>
22895         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22896         * lra.c (initialize_lra_reg_info_element): Add init of
22897         actual_call_used_reg_set field.
22898         (lra): Call lra_create_live_ranges before lra_inheritance for
22899         -fuse-caller-save.
22900         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22901         -fuse-caller-save.
22902         * lra-constraints.c (need_for_call_save_p): Use
22903         actual_call_used_reg_set instead of call_used_reg_set for
22904         -fuse-caller-save.
22905         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22907 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22908             Tom de Vries  <tom@codesourcery.com>
22910         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
22911         to gccoptlist.
22912         (@item -fuse-caller-save): New item.
22914 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22915             Tom de Vries  <tom@codesourcery.com>
22917         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
22918         OPT_fuse_caller_save.
22920 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22921             Tom de Vries  <tom@codesourcery.com>
22923         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
22924         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
22925         get_call_reg_set_usage.
22926         * resource.c (mark_set_resources, mark_target_live_regs): Use
22927         get_call_reg_set_usage.
22928         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
22929         field.
22930         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
22931         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
22932         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22933         * ira-build.c (ira_create_allocno): Init
22934         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22935         (create_cap_allocno, propagate_allocno_info)
22936         (propagate_some_info_from_allocno)
22937         (copy_info_to_removed_store_destinations): Handle
22938         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22939         * ira-costs.c (ira_tune_allocno_costs): Use
22940         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
22942 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22943             Tom de Vries  <tom@codesourcery.com>
22945         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
22946         and function_used_regs_valid fields.
22947         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
22948         find_all_hard_reg_sets.
22949         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
22950         (get_call_reg_set_usage): New function.
22951         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
22952         * regs.h (get_call_reg_set_usage): Declare.
22954 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
22956         PR libgcc/61152
22957         * config/dbx.h (License): Add Runtime Library Exception.
22958         * config/newlib-stdint.h (License): Same.
22959         * config/rtems.h (License): Same
22960         * config/initfini-array.h (License): Same
22961         * config/v850/v850.h (License): Same.
22962         * config/v850/v850-opts.h (License): Same
22963         * config/v850/rtems.h (License): Same.
22965 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
22967         PR target/61044
22968         * doc/extend.texi (Local Labels): Note that label differences are
22969         not supported for AVR.
22971 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
22972             Olivier Hainque  <hainque@adacore.com>
22974         * rtl.h (set_for_reg_notes): Declare.
22975         * emit-rtl.c (set_for_reg_notes): New function.
22976         (set_unique_reg_note): Use it.
22977         * optabs.c (add_equal_note): Likewise
22979 2014-05-27  Andrew Pinski  <apinski@cavium.com>
22981         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
22982         Use <w> for the register in assembly template.
22983         (stack_protect_test): Use the mode of operands[0] for the result.
22984         (stack_protect_test_<mode>): Use <w> for the register
22985         in assembly template.
22987 2014-05-27  DJ Delorie  <dj@redhat.com>
22989         * config/rx/rx.c (add_vector_labels): New.
22990         (rx_output_function_prologue): Call it.
22991         (rx_handle_func_attribute): Don't require empty arguments.
22992         (rx_handle_vector_attribute): New.
22993         (rx_attribute_table): Add "vector" attribute.
22994         * doc/extend.texi (interrupt, vector): Document new/changed
22995         RX-specific attributes.
22997         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
22999 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23001         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23002         predicate to detect a negative quotient.
23004 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23006         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23007         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23008         Add X - Y CMP 0 to X CMP Y transformation.
23009         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23011 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
23013         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23014         before printing.
23016 2014-05-27  Steve Ellcey  <sellcey@mips.com>
23018         * config/mips/mips.c: Add include of cgraph.h.
23020 2014-05-27  Richard Biener  <rguenther@suse.de>
23022         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23024 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23026         PR libgcc/61152
23027         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23028         * config/arm/arm-cores.def (License): Same.
23029         * config/arm/arm-opts.h (License): Same.
23030         * config/arm/aout.h (License): Same.
23031         * config/arm/bpabi.h (License): Same.
23032         * config/arm/elf.h (License): Same.
23033         * config/arm/linux-elf.h (License): Same.
23034         * config/arm/linux-gas.h (License): Same.
23035         * config/arm/netbsd-elf.h (License): Same.
23036         * config/arm/uclinux-eabi.h (License): Same.
23037         * config/arm/uclinux-elf.h (License): Same.
23038         * config/arm/vxworks.h (License): Same.
23040 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23042         * config/arm/neon.md (neon_bswap<mode>): New pattern.
23043         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23044         (arm_init_neon_builtins): Handle NEON_BSWAP.
23045         Define required type nodes.
23046         (arm_expand_neon_builtin): Handle NEON_BSWAP.
23047         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23048         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23049         * config/arm/iterators.md (VDQHSD): New mode iterator.
23051 2014-05-27  Richard Biener  <rguenther@suse.de>
23053         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23054         Try using literal operands when comparing value-ranges failed.
23056 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23058         * ira.c (commutative_operand): Adjust for change to recog_data.
23059         [Missing from previous commit.]
23061 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23063         * system.h (TEST_BIT): New macro.
23064         * recog.h (alternative_mask): New type.
23065         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23066         (recog_data_d): Replace alternative_enabled_p array with
23067         enabled_alternatives.
23068         (target_recog): New structure.
23069         (default_target_recog, this_target_recog): Declare.
23070         (get_enabled_alternatives, recog_init): Likewise.
23071         * recog.c (default_target_recog, this_target_recog): New variables.
23072         (get_enabled_alternatives): New function.
23073         (extract_insn): Use it.
23074         (recog_init): New function.
23075         (preprocess_constraints, constrain_operands): Adjust for change to
23076         recog_data.
23077         * postreload.c (reload_cse_simplify_operands): Likewise.
23078         * reload.c (find_reloads): Likewise.
23079         * ira-costs.c (record_reg_classes): Likewise.
23080         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
23081         all alternatives after a disabled one would be skipped.
23082         (ira_implicitly_set_insn_hard_regs): Likewise.
23083         * ira.c (ira_setup_alts): Adjust for change to recog_data.
23084         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23085         with enabled_alternatives.
23086         * lra.c (free_insn_recog_data): Update accordingly.
23087         (lra_update_insn_recog_data): Likewise.
23088         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
23089         * lra-constraints.c (process_alt_operands): Likewise.  Handle
23090         only_alternative as part of the enabled mask.
23091         * target-globals.h (this_target_recog): Declare.
23092         (target_globals): Add a recog field.
23093         (restore_target_globals): Restore this_target_recog.
23094         * target-globals.c: Include recog.h.
23095         (default_target_globals): Initialize recog field.
23096         (save_target_globals): Likewise.
23097         * reginfo.c (reinit_regs): Call recog_init.
23098         * toplev.c (backend_init_target): Likewise.
23100 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23102         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23103         rather than any named insn's code.
23105 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23107         PR libgcc/61152
23108         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23109         * config/arm/arm-cores.def (License): Same.
23111 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
23113         * tree.h (decl_comdat_group): Declare.
23114         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23115         * tree.c (decl_comdat_group): Here.
23117 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
23119         PR rtl-optimization/61222
23120         * combine.c (simplify_shift_const_1): When moving a PLUS outside
23121         the shift, truncate the PLUS operand to the result mode.
23123 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
23125         PR target/61271
23126         * config/i386/i386.c (ix86_rtx_costs)
23127         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23128         Fix condition.
23130 2014-05-26  Martin Jambor  <mjambor@suse.cz>
23132         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23133         subreg uses.
23135 2014-05-26  Richard Biener  <rguenther@suse.de>
23137         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23138         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23139         Provide specializations.
23140         (wi::int_traits <HOST_WIDE_INT>,
23141         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23143 2014-05-26  Alan Modra  <amodra@gmail.com>
23145         PR target/61098
23146         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23147         params and return a bool.  Remove dead code.  Update comment.
23148         Assert we have a const_int source.  Remove bogus code from
23149         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
23150         handling of constants > 2G and reg_equal note, from..
23151         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
23152         return value.  Update comment.  If we can, use a new pseudo
23153         for intermediate calculations.
23154         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23155         prototype.
23156         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23157         call to rs6000_emit_set_const in splitter.
23158         (movdi_internal64+2, +3): Likewise.
23160 2014-05-26  Richard Biener  <rguenther@suse.de>
23162         * system.h: Define __STDC_FORMAT_MACROS before
23163         including inttypes.h.
23164         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
23165         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
23166         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
23167         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
23168         HOST_WIDEST_INT_C): Remove.
23169         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
23170         if C99 inttypes.h is not available.
23171         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
23172         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
23173         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
23174         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
23175         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
23176         (struct output_info): Likewise.
23177         (print_statistics): Adjust.
23178         (dump_bitmap_statistics): Likewise.
23179         * bt-load.c (migrate_btr_defs): Print with PRId64.
23180         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
23181         (MAX_SAFE_MULTIPLIER): Adjust.
23182         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
23183         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
23184         dump_cgraph_node): Likewise.
23185         * final.c (dump_basic_block_info): Likewise.
23186         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
23187         * gcov.c (format_gcov): Likewise.
23188         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
23189         for calculation.
23190         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
23191         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
23192         (inline_small_functions, dump_overall_stats, dump_inline_stats):
23193         Use PRId64 for dumping.
23194         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
23195         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23196         (add_allocno_hard_regs): Adjust.
23197         * loop-doloop.c (doloop_modify): Print using PRId64.
23198         * loop-iv.c (inverse): Compute in uint64_t.
23199         (determine_max_iter, iv_number_of_iterations): Likewise.
23200         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23201         Print using PRId64.
23202         * lto-streamer-out.c (write_symbol): Use uint64_t.
23203         * mcf.c (CAP_INFINITY): Use int64_t maximum.
23204         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23205         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23206         * modulo-sched.c (const_iteration_count): Use int64_t.
23207         (sms_schedule): Dump using PRId64.
23208         * predict.c (dump_prediction): Likewise.
23209         * pretty-print.h (pp_widest_integer): Remove.
23210         * profile.c (get_working_sets, is_edge_inconsistent,
23211         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23212         * tree-pretty-print.c (pp_double_int): Remove case handling
23213         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23214         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23215         and adjust users.
23216         (pass_optimize_bswap::execute): Remove restriction on hosts.
23217         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23218         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23219         * tree.c (widest_int_cst_value): Remove.
23220         * tree.h (widest_int_cst_value): Likewise.
23221         * value-prof.c (dump_histogram_value): Print using PRId64.
23222         * gengtype.c (main): Also inject int64_t.
23223         * ggc-page.c (struct max_alignment): Use int64_t.
23224         * alloc-pool.c (struct allocation_object_def): Likewise.
23225         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23226         for computation.
23227         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23228         * doc/tm.texi: Regenerated.
23229         * gengtype-lex.l (IWORD): Handle [u]int64_t.
23230         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23231         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23232         mmix_output_register_setting): Use [u]int64_t in prototypes.
23233         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23234         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23235         mmix_output_octa, mmix_output_shifted_value): Adjust.
23236         (mmix_intval): Adjust.  Remove unreachable case.
23237         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23239 2014-05-26  Richard Biener  <rguenther@suse.de>
23241         * configure.ac: Drop __int64 type check.  Insist that we
23242         found uint64_t and int64_t.
23243         * hwint.h (HOST_BITS_PER___INT64): Remove.
23244         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23245         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23246         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23247         (HOST_WIDEST_FAST_INT): Remove __int64 case.
23248         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23249         for dst_q_src_df_rms_cdt.
23250         * configure: Regenerate.
23251         * config.in: Likewise.
23253 2014-05-26  Michael Tautschnig  <mt@debian.org>
23255         PR target/61249
23256         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23257         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23259 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23261         PR rtl-optimization/61278
23262         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23264 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23266         PR rtl-optimization/61220
23267         Part of PR rtl-optimization/61225
23268         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23269         insn; skip split_edge for a block with only one successor.
23271 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23273         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23274         for variables.
23276 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23278         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23279         (update_vtable_references): New function.
23280         (function_and_variable_visibility): Rewrite also vtable initializers.
23281         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23283 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23285         * ggc.h (ggc_grow): New function.
23286         * ggc-none.c (ggc_grow): New function.
23287         * ggc-page.c (ggc_grow): Likewise.
23289 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23291         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23292         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23293         comdat_can_be_unshared_p, cgraph_externally_visible_p,
23294         varpool_externally_visible_p, can_replace_by_local_alias,
23295         update_visibility_by_resolution_info, function_and_variable_visibility,
23296         pass_data_ipa_function_and_variable_visibility,
23297         make_pass_ipa_function_and_variable_visibility,
23298         whole_program_function_and_variable_visibility,
23299         pass_data_ipa_whole_program_visibility,
23300         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
23301         * cgraph.h (cgraph_local_node_p): Declare.
23302         * ipa-visibility.c: New file.
23303         * Makefile.in (OBJS): Add ipa-visiblity.o
23305 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23307         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
23308         that var decl is available.
23310 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23312         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
23313         symtab_node pointer.
23314         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
23315         (find_decls_types_r): Do not walk COMDAT_GROUP.
23316         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
23317         * varasm.c (make_decl_one_only): Use set_comdat_group;
23318         create node if needed.
23319         * ipa-inline-transform.c (save_inline_function_body): Update
23320         way we decl->symtab mapping.
23321         * symtab.c (symtab_hash, hash_node, eq_node
23322         symtab_insert_node_to_hashtable): Remove.
23323         (symtab_register_node): Update.
23324         (symtab_unregister_node): Update.
23325         (symtab_get_node): Reimplement as inline function.
23326         (symtab_add_to_same_comdat_group): Update.
23327         (symtab_dissolve_same_comdat_group_list): Update.
23328         (dump_symtab_base): Update.
23329         (verify_symtab_base): Update.
23330         (symtab_make_decl_local): Update.
23331         (fixup_same_cpp_alias_visibility): Update.
23332         (symtab_nonoverwritable_alias): Update.
23333         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
23334         * ipa.c (update_visibility_by_resolution_info): UPdate.
23335         * bb-reorder.c: Include cgraph.h
23336         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
23337         with comdat groups.
23338         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
23339         * cgraph.c (cgraph_get_create_node): Update.
23340         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
23341         and comdat_group_.
23342         (symtab_get_node): Make inline.
23343         (symtab_insert_node_to_hashtable): Remove.
23344         (symtab_can_be_discarded): Update.
23345         (decl_comdat_group): New function.
23346         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
23347         Update.
23348         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
23349         comdat group name.
23350         (read_comdat_group): New function.
23351         (input_node, input_varpool_node): Use it.
23352         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
23353         comdat groups.
23354         * mips.c (mips_start_unique_function): Likewise.
23355         (ix86_code_end): Likewise.
23356         (rs6000_code_end): Likweise.
23357         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
23359 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23361         * gengtype-state.c (fatal_reading_state): Bring offline.
23362         * optabs.c (widening_optab_handler): Bring offline.
23363         * optabs.h (widening_optab_handler): Likewise.
23364         * final.c (get_attr_length_1): Likewise.
23366 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23368         * sched-int.h (sd_iterator_cond): Manually tail recurse.
23370 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23372         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
23373         (ppc440-compare): Include shift with dot.
23374         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
23375         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
23376         without dot.
23377         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
23378         without dot.
23379         (e6500_sfx2): Include it.
23380         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
23381         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
23382         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
23383         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
23384         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
23385         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
23386         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
23387         *lshiftrt_internal1le, *lshiftrt_internal1be,
23388         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
23389         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
23390         *rotldi3_internal10le, *rotldi3_internal10be,
23391         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
23392         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
23393         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
23394         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
23395         define_insns): Use type "shift" in the appropriate alternatives.
23397 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23399         * config/rs6000/rs6000.md (type): Add "logical".  Delete
23400         "fast_compare".
23401         (dot): Adjust comment.
23402         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
23403         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
23404         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
23405         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
23406         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
23407         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
23408         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
23409         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23411         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23412         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23413         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23414         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23415         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23416         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23417         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23418         * config/rs6000/8540.md (ppc8540_su): Adjust.
23419         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23420         cell-cmp-microcoded): Adjust.
23421         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23422         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23423         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23424         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23425         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23426         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23427         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23428         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23429         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23430         Adjust.
23431         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23432         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
23433         Adjust.  Adjust comment.
23434         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23435         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23437 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23439         * config/rs6000/rs6000.md (type): Add "add".
23440         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
23441         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
23442         define_insns): Use it.
23443         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23445         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23446         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23447         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23448         * config/rs6000/601.md (ppc601-integer): Adjust.
23449         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23450         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23451         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23452         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23453         * config/rs6000/8540.md (ppc8540_su): Adjust.
23454         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23455         cell-cmp-microcoded): Adjust.
23456         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23457         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23458         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23459         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23460         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23461         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23462         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23463         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23464         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23465         Adjust.
23466         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23467         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
23468         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23469         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23471 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23473         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
23474         "delayed_compare", "var_delayed_compare".
23475         (var_shift): New attribute.
23476         (cell_micro): Adjust.
23477         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
23478         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
23479         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
23480         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23481         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23482         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23483         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23484         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
23485         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
23486         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23487         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
23488         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
23489         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
23490         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
23491         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
23492         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
23493         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
23494         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
23495         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
23496         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
23497         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
23498         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
23499         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
23500         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23501         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23503         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23504         * config/rs6000/440.md (ppc440-integer): Adjust.
23505         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23506         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
23507         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23508         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23509         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23510         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23511         * config/rs6000/8540.md (ppc8540_su): Adjust.
23512         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23513         cell-cmp-microcoded): Adjust.
23514         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
23515         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23516         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
23517         e500mc64_delayed): Adjust.
23518         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
23519         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
23520         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23521         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
23522         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
23523         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
23524         power6-delayed-compare, power6-var-delayed-compare): Adjust.
23525         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
23526         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
23527         Adjust comment.
23528         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23529         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23531 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23533         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
23534         (bits): New mode_attr.
23535         (idiv_ldiv): Delete mode_attr.
23536         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
23537         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23538         rs6000_adjust_priority, is_nonpipeline_insn,
23539         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23541         * config/rs6000/40x.md (ppc403-idiv): Adjust.
23542         * config/rs6000/440.md (ppc440-idiv): Adjust.
23543         * config/rs6000/476.md (ppc476-idiv): Adjust.
23544         * config/rs6000/601.md (ppc601-idiv): Adjust.
23545         * config/rs6000/603.md (ppc603-idiv): Adjust.
23546         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23547         ppc620-ldiv): Adjust.
23548         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23549         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23550         * config/rs6000/8540.md (ppc8540_divide): Adjust.
23551         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23552         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23553         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23554         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23555         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23556         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23557         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23558         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23559         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23560         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23561         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23562         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23563         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23564         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23565         * config/rs6000/titan.md (titan_fxu_div): Adjust.
23567 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23569         * config/rs6000/rs6000.md (type): Delete "insert_word",
23570         "insert_dword".  Add "insert".
23571         (size): Update comment.
23572         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23573         insn_must_be_first_in_group): Adjust.
23574         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23575         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23576         *insvsi_internal6, insvdi_internal): Adjust.
23578         * config/rs6000/40x.md (ppc403-integer): Adjust.
23579         * config/rs6000/440.md (ppc440-integer): Adjust.
23580         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23581         * config/rs6000/601.md (ppc601-integer): Adjust.
23582         * config/rs6000/603.md (ppc603-integer): Adjust.
23583         * config/rs6000/6xx.md (ppc604-integer): Adjust.
23584         * config/rs6000/7450.md (ppc7450-integer): Adjust.
23585         * config/rs6000/7xx.md (ppc750-integer): Adjust.
23586         * config/rs6000/8540.md (ppc8540_su): Adjust.
23587         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23588         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23589         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23590         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23591         * config/rs6000/e5500.md (e5500_sfx): Adjust.
23592         * config/rs6000/e6500.md (e6500_sfx): Adjust.
23593         * config/rs6000/mpc.md (mpccore-integer): Adjust.
23594         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23595         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23596         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23597         * config/rs6000/power7.md (power7-integer): Adjust.
23598         * config/rs6000/power8.md (power8-1cyc): Adjust.
23599         * config/rs6000/rs64.md (rs64a-integer): Adjust.
23600         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23602 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23604         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
23605         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23606         (size): New attribute.
23607         (dot): New attribute.
23608         (cell_micro): Adjust.
23609         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23610         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23611         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23612         umuldi3_highpart): Adjust.
23613         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23614         rs6000_adjust_priority, is_nonpipeline_insn,
23615         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23617         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23618         ppc405-imul3): Adjust.
23619         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23620         * config/rs6000/476.md (ppc476-imul): Adjust.
23621         * config/rs6000/601.md (ppc601-imul): Adjust.
23622         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23623         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23624         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23625         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23626         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23627         Adjust.
23628         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23629         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23630         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23631         cell-imul): Adjust.
23632         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23633         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23634         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23635         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23636         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23637         * config/rs6000/mpc.md (mpccore-imul): Adjust.
23638         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23639         power4-lmul, power4-imul, power4-imul3): Adjust.
23640         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
23641         power5-lmul, power5-imul, power5-imul3): Adjust.
23642         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
23643         power6-lmul, power6-imul, power6-imul3): Adjust.
23644         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
23645         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
23647         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
23648         rs64a-lmul): Adjust.
23649         * config/rs6000/titan.md (titan_imul): Adjust.
23651 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23653         * config/rs6000/rs6000.md (type): Add new value "halfmul".
23654         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
23655         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
23656         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
23657         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
23658         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23659         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23660         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23661         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23662         * config/rs6000/titan.md: Delete nonsensical comment.
23663         (titan_imul): Add type imul3.
23664         (titan_mulhw): Remove type imul3; add type halfmul.
23666 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23668         * config/rs6000/rs6000.md (type): Reorder, reformat.
23670 2014-05-23  Martin Jambor  <mjambor@suse.cz>
23672         PR tree-optimization/53787
23673         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23674         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23675         analysis_done, update all uses.
23676         * ipa-prop.c: Include domwalk.h
23677         (param_analysis_info): Removed.
23678         (param_aa_status): New type.
23679         (ipa_bb_info): Likewise.
23680         (func_body_info): Likewise.
23681         (ipa_get_bb_info): New function.
23682         (aa_overwalked): Likewise.
23683         (find_dominating_aa_status): Likewise.
23684         (parm_bb_aa_status_for_bb): Likewise.
23685         (parm_preserved_before_stmt_p): Changed to use new param AA info.
23686         (load_from_unmodified_param): Accept func_body_info as a parameter
23687         instead of parms_ainfo.
23688         (parm_ref_data_preserved_p): Changed to use new param AA info.
23689         (parm_ref_data_pass_through_p): Likewise.
23690         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
23691         (compute_complex_assign_jump_func): Changed to use new param AA info.
23692         (compute_complex_ancestor_jump_func): Likewise.
23693         (ipa_compute_jump_functions_for_edge): Likewise.
23694         (ipa_compute_jump_functions): Removed.
23695         (ipa_compute_jump_functions_for_bb): New function.
23696         (ipa_analyze_indirect_call_uses): Likewise, moved variable
23697         declarations down.
23698         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
23699         and info, moved variable declarations down.
23700         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
23701         node and info.
23702         (ipa_analyze_stmt_uses): Likewise.
23703         (ipa_analyze_params_uses): Removed.
23704         (ipa_analyze_params_uses_in_bb): New function.
23705         (ipa_analyze_controlled_uses): Likewise.
23706         (free_ipa_bb_info): Likewise.
23707         (analysis_dom_walker): New class.
23708         (ipa_analyze_node): Handle node-specific forbidden analysis,
23709         initialize and free func_body_info, use dominator walker.
23710         (ipcp_modif_dom_walker): New class.
23711         (ipcp_transform_function): Create and free func_body_info, use
23712         ipcp_modif_dom_walker, moved a lot of functionality there.
23714 2014-05-23  Marek Polacek  <polacek@redhat.com>
23715             Jakub Jelinek  <jakub@redhat.com>
23717         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
23718         * gcc.c (sanitize_spec_function): Likewise.
23719         * convert.c (convert_to_integer): Include "ubsan.h".  Add
23720         floating-point to integer instrumentation.
23721         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
23722         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
23723         SANITIZE_NONDEFAULT.
23724         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
23725         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
23726         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
23727         * ubsan.c: Include "realmpfr.h" and "dfp.h".
23728         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
23729         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
23730         float/double/long double.
23731         (ubsan_instrument_float_cast): New function.
23732         * ubsan.h (ubsan_instrument_float_cast): Declare.
23734 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
23736         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
23737         predicate.
23738         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
23739         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
23740         Adjust for tailcalling through registers.
23741         * config/aarch64/aarch64.h (enum reg_class): New caller save
23742         register class.
23743         (REG_CLASS_NAMES): Likewise.
23744         (REG_CLASS_CONTENTS): Likewise.
23745         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
23746         Allow tailcalling without decls.
23748 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
23750         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23751         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
23753         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
23754         gsi, and variables v_* to v*.
23756 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
23758         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
23760 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
23762         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
23763         * omp-low.c: Update accordingly.
23765         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
23766         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
23767         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
23768         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
23769         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
23770         GF_OMP_TARGET_KIND_UPDATE.
23772         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23773         Explicitly enumerate the expected region types.
23775 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23777         PR other/56955
23778         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
23779         documentation; the old documentation didn't clearly state the
23780         constraints on the contents of the pointed-to storage.
23782 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23784         Fix bootstrap error on ia64
23785         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
23786         Return default value.
23788 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23790         PR tree-optimization/54733
23791         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
23792         (CMPNOP): Define.
23793         (find_bswap_or_nop_load): New.
23794         (find_bswap_1): Renamed to ...
23795         (find_bswap_or_nop_1): This. Also add support for memory source.
23796         (find_bswap): Renamed to ...
23797         (find_bswap_or_nop): This. Also add support for memory source and
23798         detection of bitwise operations equivalent to load in target
23799         endianness.
23800         (execute_optimize_bswap): Likewise. Also move its leading comment back
23801         in place and split statement transformation into ...
23802         (bswap_replace): This.
23804 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
23806         PR rtl-optimization/61215
23807         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
23808         simplify_gen_subreg until final substitution.
23810 2014-05-23  Alan Modra  <amodra@gmail.com>
23812         PR target/61231
23813         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
23814         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
23815         Use "Y" constraint rather than "m".
23817 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
23819         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
23820         define.
23821         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
23822         New function declaration.
23823         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
23824         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
23825         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
23826         (aarch64_init_builtins) : Initialize builtins
23827         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23828         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23829         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
23830         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
23831         and __builtins_aarch64_set_fpsr.
23832         (aarch64_atomic_assign_expand_fenv): New function.
23833         * config/aarch64/aarch64.md (set_fpcr): New pattern.
23834         (get_fpcr) : Likewise.
23835         (set_fpsr) : Likewise.
23836         (get_fpsr) : Likewise.
23837         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
23838         and UNSPECV_SET_FPSR.
23839         * doc/extend.texi (AARCH64 Built-in Functions) : Document
23840         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23841         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23843 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
23845         PR rtl-optimization/60969
23846         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
23847         constraints.  Set up mem cost for NO_REGS case.
23849 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
23851         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
23853 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
23855         * config/darwin.c: Include "lto-section-names.h".
23856         (LTO_SEGMENT_NAME): Don't define.
23857         * config/i386/winnt.c: Include "lto-section-names.h".
23858         * lto-streamer.c: Include "lto-section-names.h".
23859         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
23860         * lto-wrapper.c: Include "lto-section-names.h".
23861         (LTO_SECTION_NAME_PREFIX): Don't define.
23862         * lto-section-names.h: New file.
23863         * cgraphunit.c: Include "lto-section-names.h".
23865 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
23867         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
23869 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
23871         PR target/61208
23872         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
23874 2014-05-22  Nick Clifton  <nickc@redhat.com>
23876         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
23878 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
23880         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
23881         -> (T)A transformation to integer types.
23883 2014-05-22  Teresa Johnson  <tejohnson@google.com>
23885         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
23886         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
23887         (gcov_rewrite): Use gcov_nonruntime_assert.
23888         (gcov_open): Ditto.
23889         (gcov_write_words): Ditto.
23890         (gcov_write_length): Ditto.
23891         (gcov_read_words): Use gcov_nonruntime_assert, and remove
23892         gcc_assert from IN_LIBGCOV code.
23893         (gcov_read_summary): Use gcov_error to flag profile corruption.
23894         (gcov_sync): Use gcov_nonruntime_assert.
23895         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
23896         (gcov_histo_index): Use gcov_nonruntime_assert.
23897         (static void gcov_histogram_merge): Ditto.
23898         (compute_working_sets): Ditto.
23899         * gcov-io.h (gcov_nonruntime_assert): Define.
23900         (gcov_error): Define for !IN_LIBGCOV
23902 2014-05-22  Richard Biener  <rguenther@suse.de>
23904         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23905         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
23906         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
23907         and deallocation site.
23908         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23909         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
23910         passing through the incoming points-to set.
23911         (handle_lhs_call): Use flags argument instead of recomputing it.
23912         (find_func_aliases_for_call): Call handle_lhs_call with proper
23913         call return flags.
23915 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
23917         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
23918         all padding bits in REAL_VALUE_TYPE are cleared.
23920 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23922         Cleanup and improve multipass_dfa_lookahead_guard
23923         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
23924         (core2i7_first_cycle_multipass_begin,)
23925         (core2i7_first_cycle_multipass_issue,)
23926         (core2i7_first_cycle_multipass_backtrack): Update signature.
23927         * config/ia64/ia64.c
23928         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
23929         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
23930         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
23931         hook definition.
23932         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
23933         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
23934         values.
23935         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
23936         return values.
23937         * doc/tm.texi: Regenerate.
23938         * doc/tm.texi.in
23939         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
23940         * haifa-sched.c (ready_try): Make signed to allow negative values.
23941         (rebug_ready_list_1): Update.
23942         (choose_ready): Simplify.
23943         (sched_extend_ready_list): Update.
23945 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23947         Remove IA64 speculation tweaking flags
23948         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
23949         speculation tuning flags.
23950         (msched-prefer-non-data-spec-insns,)
23951         (msched-prefer-non-control-spec-insns): Obsolete options.
23952         * haifa-sched.c (choose_ready): Remove handling of
23953         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23954         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
23955         and PREFER_NON_DATA_SPEC.
23956         * sel-sched.c (process_spec_exprs): Remove handling of
23957         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23959 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23961         Improve scheduling debug output
23962         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
23963         (advance_one_cycle): Update.
23964         (schedule_insn, queue_to_ready): Add debug printouts.
23965         (debug_ready_list_1): New static function.
23966         (debug_ready_list): Update.
23967         (max_issue): Add debug printouts.
23968         (dump_insn_stream): New static function.
23969         (schedule_block): Use it.  Also better indent printouts.
23971 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23973         Fix sched_insn debug counter
23974         * haifa-sched.c (schedule_insn): Update.
23975         (struct haifa_saved_data): Add nonscheduled_insns_begin.
23976         (save_backtrack_point, restore_backtrack_point): Update.
23977         (first_nonscheduled_insn): New static function.
23978         (queue_to_ready, choose_ready): Use it.
23979         (schedule_block): Init nonscheduled_insns_begin.
23980         (sched_emit_insn): Update.
23983 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
23985         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
23986         to GENERAL_REGS.
23987         (aarch64_secondary_reload) : LikeWise.
23988         (aarch64_class_max_nregs) : Remove CORE_REGS.
23989         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
23990         (REG_CLASS_NAMES) : Likewise.
23991         (REG_CLASS_CONTENTS) : LikeWise.
23992         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
23994 2014-05-21  Guozhi Wei  <carrot@google.com>
23996         PR target/61202
23997         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
23998         constraint.
23999         (vqdmulhq_n_s16): Likewise.
24001 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
24003         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24005 2014-05-21  Marek Polacek  <polacek@redhat.com>
24007         PR sanitizer/61272
24008         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24010 2014-05-21  Martin Jambor  <mjambor@suse.cz>
24012         * doc/invoke.texi (Optimize Options): Document parameters
24013         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24014         ipa-cp-array-index-hint-bonus.
24016 2014-05-21  Mark Wielaard  <mjw@redhat.com>
24018         PR debug/16063
24019         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24020         version >= 3 or not strict DWARF.
24021         * langhooks.h (struct lang_hooks_for_types): Add
24022         enum_underlying_base_type.
24023         * langhooks.c (lhd_enum_underlying_base_type): New function.
24024         * gcc/langhooks.h (struct lang_hooks_for_types): Add
24025         enum_underlying_base_type.
24026         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24027         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24028         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24030 2014-05-21  Richard Biener  <rguenther@suse.de>
24032         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24034 2014-05-21  John Marino  <gnugcc@marino.st>
24036         * config.gcc (*-*-dragonfly*): New target.
24037         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24038         * configure: Regenerate.
24039         * config/dragonfly-stdint.h: New.
24040         * config/dragonfly.h: New.
24041         * config/dragonfly.opt: New.
24042         * config/i386/dragonfly.h: New.
24043         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24045 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24047         * tree.def (VOID_CST): New.
24048         * tree-core.h (TI_VOID): New.
24049         * tree.h (void_node): New.
24050         * tree.c (tree_node_structure_for_code, tree_code_size)
24051         (iterative_hash_expr): Handle VOID_CST.
24052         (build_common_tree_nodes): Initialize void_node.
24054 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
24056         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24057         functions.
24058         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24060         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24061         more places.
24063         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24064         flag_reorder_blocks_and_partition.
24065         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24067 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
24069         PR target/54236
24070         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
24071         constraints.
24072         (*addc_r_t): Add new insn_and_split.
24074 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
24076         PR middle-end/61252
24077         * omp-low.c (handle_simd_reference): New function.
24078         (lower_rec_input_clauses): Use it.  Defer adding reference
24079         initialization even for reduction without placeholder if in simd,
24080         handle it properly later on.
24082 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24084         PR tree-optimization/60899
24085         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24086         assume all static symbols will have definition wile parsing and
24087         check the do have definition later in compilation; check that
24088         variable referring symbol will be output before concluding that
24089         reference is safe; be conservative for referring local statics;
24090         be more precise about when comdat is output in other partition.
24092 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24094         PR bootstrap/60984
24095         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24096         parameter.
24097         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24098         (ipa_inline): Loop inline_to_all_callers until no more aliases
24099         are removed.
24101 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24103         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24104         set writeonly flag only for vars actually written to.
24106 2014-05-20  Dehao Chen  <dehao@google.com>
24108         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24109         and callee count to get clone count.
24110         * tree-inline.c (expand_call_inline): Use callee count instead of bb
24111         count in copy_body.
24113 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
24115         PR rtl-optimization/61243
24116         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24118 2014-05-20  Xinliang David Li  <davidxl@google.com>
24120         * cgraphunit.c (walk_polymorphic_call_targets): Add
24121         dbgcnt and fopt-info support.
24122         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24123         * ipa-devirt.c (ipa_devirt): Ditto.
24124         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24125         * ipa.c (walk_polymorphic_call_targets): Ditto.
24126         * gimple-fold.c (fold_gimple_assign): Ditto.
24127         (gimple_fold_call): Ditto.
24128         * dbgcnt.def: New counter.
24130 2014-05-20  DJ Delorie  <dj@redhat.com>
24132         * config/msp430/msp430.md (split): Don't allow subregs when
24133         splitting SImode adds.
24134         (andneghi): Fix subtraction logic.
24135         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24137 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24139         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24140         symbols.
24141         * except.c (switch_to_exception_section, resolve_unique_section,
24142         get_named_text_section, default_function_rodata_section,
24143         align_variable, get_block_for_decl, default_section_type_flags):
24144         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24145         * symtab.c (symtab_add_to_same_comdat_group,
24146         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24147         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24148         Likewise.
24149         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24150         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24151         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24152         (c6x_function_in_section_p): Likewise.
24153         * config/darwin.c (machopic_select_section): Likewise.
24154         * config/arm/arm.c (arm_function_in_section_p): Likewise.
24155         * config/mips/mips.c (mips_function_rodata_section): Likewise.
24156         * config/mep/mep.c (mep_select_section): LIkewise.
24157         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24159 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
24161         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
24162         EH region of calls to pure functions that can throw an exception.
24163         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
24164         (copy_reference_ops_from_call): Also copy the EH region of the call if
24165         it can throw an exception.
24167 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24169         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
24170         nested VEC_SELECTs that are inverses of each other.
24172 2014-05-20  Richard Biener  <rguenther@suse.de>
24174         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
24175         (extract_and_process_scc_for_name): not here.
24176         (cond_dom_walker::before_dom_children): Only process
24177         stmts that end the BB in interesting ways.
24178         (run_scc_vn): Mark param uses as visited.
24180 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24182         * config/arm/arm.md (arith_shiftsi): Do not predicate for
24183         arm_restrict_it.
24185 2014-05-20  Nick Clifton  <nickc@redhat.com>
24187         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
24188         (msp430_gimplify_va_arg_expr): New function.
24189         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
24191         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
24192         operand 0 in order to prevent confusion about the number of
24193         registers involved.
24195 2014-05-20  Richard Biener  <rguenther@suse.de>
24197         PR tree-optimization/61221
24198         * tree-ssa-pre.c (el_to_update): Remove.
24199         (eliminate_dom_walker::before_dom_children): Handle released
24200         VDEFs by value-numbering them to the associated VUSE.  Update
24201         stmt immediately for substituted call address.
24202         (eliminate): Remove delayed stmt updating code.
24203         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24204         possibly late re-numbered vuses.
24205         (vn_reference_lookup_2): Adjust.
24206         (vn_reference_lookup_pieces): Likewise.
24207         (vn_reference_lookup): Likewise.
24209 2014-05-20  Richard Biener  <rguenther@suse.de>
24211         * config.gcc: Remove need_64bit_hwint.
24212         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24213         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24214         it to be true.
24215         * config.in: Regenerate.
24216         * configure: Likewise.
24218 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
24220         * doc/extend.texi: Create Label Attributes section,
24221         move all label attributes into it and reference it.
24223 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
24225         * arm.c (thumb1_reorg): When scanning backwards skip anything
24226         that's not a proper insn.
24228 2014-05-19  Richard Biener  <rguenther@suse.de>
24230         PR tree-optimization/61221
24231         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24232         Do nothing for unreachable blocks.
24233         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24234         Improve unreachability detection.
24236 2014-05-19  Richard Biener  <rguenther@suse.de>
24238         PR tree-optimization/61209
24239         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24241 2014-05-19  Nick Clifton  <nickc@redhat.com>
24243         * except.c (init_eh): Fix computation of builtin setjmp buffer
24244         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24246 2014-05-19  Richard Biener  <rguenther@suse.de>
24248         PR tree-optimization/61184
24249         * tree-vrp.c (is_negative_overflow_infinity): Use
24250         TREE_OVERFLOW_P and do that check first.
24251         (is_positive_overflow_infinity): Likewise.
24252         (is_overflow_infinity): Likewise.
24253         (vrp_operand_equal_p): Properly treat operands with
24254         differing overflow as not equal.
24256 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
24258         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24259         shift simplification where it was intended.
24261 2014-05-19  Christian Bruel  <christian.bruel@st.com>
24263         PR target/61195
24264         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24266 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
24268         PR target/61084
24269         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24270         than wide_int.
24272 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24274         * reg-notes.def (CROSSING_JUMP): Likewise.
24275         * rtl.h (rtx_def): Update comment for jump flag.
24276         (CROSSING_JUMP_P): Define.
24277         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24278         of a REG_CROSSING_JUMP note.
24279         * cfghooks.c (tidy_fallthru_edges): Likewise.
24280         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24281         * emit-rtl.c (try_split): Likewise.
24282         * haifa-sched.c (sched_create_recovery_edges): Likewise.
24283         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24284         * jump.c (redirect_jump_2): Likewise.
24285         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24286         (relax_delay_slots): Likewise.
24287         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24288         (bbit_di): Likewise.
24289         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24290         * config/sh/sh.md (jump_compact): Likewise.
24291         * bb-reorder.c (rotate_loop): Likewise.
24292         (pass_duplicate_computed_gotos::execute): Likewise.
24293         (add_reg_crossing_jump_notes): Rename to...
24294         (update_crossing_jump_flags): ...this.
24295         (pass_partition_blocks::execute): Update accordingly.
24297 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24299         * tree.h: Remove extraneous template <>.
24301 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24303         * ipa.c (symtab_remove_unreachable_nodes): Remove
24304         symbol from comdat group if its body was eliminated.
24305         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
24306         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
24307         (symtab_unregister_node): ... this one.
24308         (verify_symtab_base): More strict checking of comdats.
24309         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
24311 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24313         * tree-pass.h (make_pass_ipa_comdats): New pass.
24314         * timevar.def (TV_IPA_COMDATS): New timevar.
24315         * passes.def (pass_ipa_comdats): Add.
24316         * Makefile.in (OBJS): Add ipa-comdats.o
24317         * ipa-comdats.c: New file.
24319 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24321         * ipa.c (update_visibility_by_resolution_info): New function.
24322         (function_and_variable_visibility): Use it.
24324 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24326         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
24327         New functions.
24328         (FOR_EACH_DEFINED_SYMBOL): New macro.
24329         (varpool_first_static_initializer, varpool_next_static_initializer,
24330         varpool_first_defined_variable, varpool_next_defined_variable):
24331         Fix comments.
24332         (symtab_in_same_comdat_p): Correctly deal with inline functions.
24334 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24336         * ggc-page.c (ggc_handle_finalizers): Add comment.
24338 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24340         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
24341         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
24342         (ggc_internal_cleared_alloc): Likewise.
24343         * ggc-page.c (finalizer): New class.
24344         (vec_finalizer): Likewise.
24345         (globals::finalizers): New member.
24346         (globals::vec_finalizers): Likewise.
24347         (ggc_internal_alloc): Record the finalizer if any for the block being
24348         allocated.
24349         (ggc_handle_finalizers): New function.
24350         (ggc_collect): Call ggc_handle_finalizers.
24351         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
24352         finalizer.
24353         (ggc_internal_cleared_alloc): Likewise.
24354         (finalize): New function.
24355         (need_finalization_p): Likewise.
24356         (ggc_alloc): Install the type's destructor as the finalizer if it
24357         might do something.
24358         (ggc_cleared_alloc): Likewise.
24359         (ggc_vec_alloc): Likewise.
24360         (ggc_cleared_vec_alloc): Likewise.
24362 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24364         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
24366 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24368         * alias.c (record_alias_subset): Adjust.
24369         * bitmap.c (bitmap_element_allocate): Likewise.
24370         (bitmap_gc_alloc_stat): Likewise.
24371         * cfg.c (init_flow): Likewise.
24372         (alloc_block): Likewise.
24373         (unchecked_make_edge): Likewise.
24374         * cfgloop.c (alloc_loop): Likewise.
24375         (flow_loops_find): Likewise.
24376         (rescan_loop_exit): Likewise.
24377         * cfgrtl.c (init_rtl_bb_info): Likewise.
24378         * cgraph.c (insert_new_cgraph_node_version): Likewise.
24379         (cgraph_allocate_node): Likewise.
24380         (cgraph_create_edge_1): Likewise.
24381         (cgraph_allocate_init_indirect_info): Likewise.
24382         * cgraphclones.c (cgraph_clone_edge): Likewise.
24383         * cgraphunit.c (add_asm_node): Likewise.
24384         (init_lowered_empty_function): Likewise.
24385         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
24386         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24387         (alpha_use_linkage): Likewise.
24388         * config/arc/arc.c (arc_init_machine_status): Likewise.
24389         * config/arm/arm.c (arm_init_machine_status): Likewise.
24390         * config/avr/avr.c (avr_init_machine_status): Likewise.
24391         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24392         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
24393         * config/cris/cris.c (cris_init_machine_status): Likewise.
24394         * config/darwin.c (machopic_indirection_name): Likewise.
24395         (darwin_build_constant_cfstring): Likewise.
24396         (darwin_enter_string_into_cfstring_table): Likewise.
24397         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
24398         * config/frv/frv.c (frv_init_machine_status): Likewise.
24399         * config/i386/i386.c (get_dllimport_decl): Likewise.
24400         (ix86_init_machine_status): Likewise.
24401         (assign_386_stack_local): Likewise.
24402         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24403         (i386_pe_maybe_record_exported_symbol): Likewise.
24404         (i386_pe_record_stub): Likewise.
24405         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24406         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24407         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24408         (m32c_note_pragma_address): Likewise.
24409         * config/mep/mep.c (mep_init_machine_status): Likewise.
24410         (mep_note_pragma_flag): Likewise.
24411         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24412         (mips16_local_alias): Likewise.
24413         (mips_init_machine_status): Likewise.
24414         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24415         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24416         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
24417         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
24418         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
24419         * config/pa/pa.c (pa_init_machine_status): Likewise.
24420         (pa_get_deferred_plabel): Likewise.
24421         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
24422         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24423         (rs6000_init_machine_status): Likewise.
24424         (output_toc): Likewise.
24425         * config/s390/s390.c (s390_init_machine_status): Likewise.
24426         * config/score/score.c (score_output_external): Likewise.
24427         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24428         * config/spu/spu.c (spu_init_machine_status): Likewise.
24429         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
24430         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
24431         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24432         * coverage.c (coverage_end_function): Likewise.
24433         * dbxout.c (dbxout_init): Likewise.
24434         * doc/gty.texi: Don't mention variable_size attribute.
24435         * dwarf2cfi.c (new_cfi): Adjust.
24436         (new_cfi_row): Likewise.
24437         (copy_cfi_row): Likewise.
24438         (create_cie_data): Likewise.
24439         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
24440         (new_loc_descr): Likewise.
24441         (find_AT_string_in_table): Likewise.
24442         (add_addr_table_entry): Likewise.
24443         (new_die): Likewise.
24444         (add_var_loc_to_decl): Likewise.
24445         (clone_die): Likewise.
24446         (clone_as_declaration): Likewise.
24447         (break_out_comdat_types): Likewise.
24448         (new_loc_list): Likewise.
24449         (add_loc_descr_to_each): Likewise.
24450         (add_location_or_const_value_attribute): Likewise.
24451         (add_linkage_name): Likewise.
24452         (lookup_filename): Likewise.
24453         (dwarf2out_var_location): Likewise.
24454         (new_line_info_table): Likewise.
24455         (dwarf2out_init): Likewise.
24456         (mem_loc_descriptor): Likewise.
24457         (loc_descriptor): Likewise.
24458         (add_const_value_attribute): Likewise.
24459         (tree_add_const_value_attribute): Likewise.
24460         (comp_dir_string): Likewise.
24461         (dwarf2out_vms_debug_main_pointer): Likewise.
24462         (string_cst_pool_decl): Likewise.
24463         * emit-rtl.c (set_mem_attrs): Likewise.
24464         (get_reg_attrs): Likewise.
24465         (start_sequence): Likewise.
24466         (init_emit): Likewise.
24467         (init_emit_regs): Likewise.
24468         * except.c (init_eh_for_function): Likewise.
24469         (gen_eh_region): Likewise.
24470         (gen_eh_region_catch): Likewise.
24471         (gen_eh_landing_pad): Likewise.
24472         (add_call_site): Likewise.
24473         * function.c (add_frame_space): Likewise.
24474         (insert_temp_slot_address): Likewise.
24475         (assign_stack_temp_for_type): Likewise.
24476         (get_hard_reg_initial_val): Likewise.
24477         (allocate_struct_function): Likewise.
24478         (prepare_function_start): Likewise.
24479         (types_used_by_var_decl_insert): Likewise.
24480         * gengtype.c (variable_size_p): Remove function.
24481         (enum alloc_quantity): Remove enum.
24482         (write_typed_alloc_def): Remove function.
24483         (write_typed_struct_alloc_def): Likewise.
24484         (write_typed_typedef_alloc_def): Likewise.
24485         (write_typed_alloc_defns): Likewise.
24486         (main): Adjust.
24487         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
24488         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
24489         * ggc.h (ggc_alloc): new function.
24490         (ggc_cleared_alloc): Likewise.
24491         (ggc_vec_alloc): Template on type of vector element, and remove
24492         element size argument.
24493         (ggc_cleared_vec_alloc): Likewise.
24494         * gimple.c (gimple_build_omp_for): Adjust.
24495         (gimple_copy): Likewise.
24496         * ipa-cp.c (get_replacement_map): Likewise.
24497         (find_aggregate_values_for_callers_subset): Likewise.
24498         (known_aggs_to_agg_replacement_list): Likewise.
24499         * ipa-devirt.c (get_odr_type): Likewise.
24500         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
24501         (read_agg_replacement_chain): Likewise.
24502         * loop-iv.c (get_simple_loop_desc): Likewise.
24503         * lto-cgraph.c (input_node_opt_summary): Likewise.
24504         * lto-section-in.c (lto_new_in_decl_state): Likewise.
24505         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24506         (input_eh_region): Likewise.
24507         (input_eh_lp): Likewise.
24508         (input_cfg): Likewise.
24509         * optabs.c (set_optab_libfunc): Likewise.
24510         (init_tree_optimization_optabs): Likewise.
24511         (set_conv_libfunc): Likewise.
24512         * passes.c (do_per_function_toporder): Likewise.
24513         * rtl.h: Don't use variable_size gty attribute.
24514         * sese.c (if_region_set_false_region): Adjust.
24515         * stringpool.c (gt_pch_save_stringpool): Likewise.
24516         * target-globals.c (save_target_globals): Likewise.
24517         * toplev.c (general_init): Likewise.
24518         * trans-mem.c (record_tm_replacement): Likewise.
24519         (split_bb_make_tm_edge): Likewise.
24520         * tree-cfg.c (move_sese_region_to_fn): Likewise.
24521         * tree-data-ref.h (lambda_vector_new): Likewise.
24522         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24523         * tree-iterator.c (tsi_link_before): Likewise.
24524         (tsi_link_after): Likewise.
24525         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24526         * tree-ssa-loop-niter.c (record_estimate): Likewise.
24527         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24528         * tree-ssa-operands.h: Don't use variable_size gty attribute.
24529         * tree-ssa.c (init_tree_ssa): Adjust.
24530         * tree-ssanames.c (set_range_info): Likewise.
24531         (get_ptr_info): Likewise.
24532         (duplicate_ssa_name_ptr_info): Likewise.
24533         (duplicate_ssa_name_range_info): Likewise.
24534         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
24535         (unpack_ts_fixed_cst_value_fields): Likewise.
24536         * tree.c (build_fixed): Likewise.
24537         (build_real): Likewise.
24538         (build_string): Likewise.
24539         (decl_priority_info): Likewise.
24540         (decl_debug_expr_insert): Likewise.
24541         (decl_value_expr_insert): Likewise.
24542         (decl_debug_args_insert): Likewise.
24543         (type_hash_add): Likewise.
24544         (build_omp_clause): Likewise.
24545         * ubsan.c (decl_for_type_insert): Likewise.
24546         * varasm.c (get_unnamed_section): Likewise.
24547         (get_noswitch_section): Likewise.
24548         (get_section): Likewise.
24549         (get_block_for_section): Likewise.
24550         (create_block_symbol): Likewise.
24551         (build_constant_desc): Likewise.
24552         (create_constant_pool): Likewise.
24553         (force_const_mem): Likewise.
24554         (record_tm_clone_pair): Likewise.
24555         * varpool.c (varpool_create_empty_node): Likewise.
24557 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24559         * dwarf2out.c (tree_add_const_value_attribute): Call
24560         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24561         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24562         instead of ggc_internal_<x>alloc_stat.
24563         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24564         (ggc_realloc): Likewise.
24565         * ggc-none.c (ggc_internal_alloc): Likewise.
24566         (ggc_internal_cleared_alloc): Likewise.
24567         * ggc-page.c: Likewise.
24568         * ggc.h (ggc_internal_alloc_stat): Likewise.
24569         (ggc_internal_alloc): Remove macro.
24570         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24571         (ggc_internal_cleared_alloc): Remove macro.
24572         (GGC_RESIZEVEC): Adjust.
24573         (ggc_resizevar): Remove macro.
24574         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24575         (ggc_internal_cleared_vec_alloc_stat): Likewise.
24576         (ggc_internal_vec_cleared_alloc): Remove macro.
24577         (ggc_alloc_atomic_stat): Drop _stat suffix.
24578         (ggc_alloc_atomic): Remove macro.
24579         (ggc_alloc_cleared_atomic): Remove macro.
24580         (ggc_alloc_string_stat): Drop _stat suffix.
24581         (ggc_alloc_string): Remove macro.
24582         (ggc_alloc_rtx_def_stat): Adjust.
24583         (ggc_alloc_tree_node_stat): Likewise.
24584         (ggc_alloc_cleared_tree_node_stat): Likewise.
24585         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24586         (ggc_alloc_cleared_simd_clone_stat): Likewise.
24587         * gimple.c (gimple_build_omp_for): Likewise.
24588         (gimple_copy): Likewise.
24589         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24590         * toplev.c (realloc_for_line_map): Adjust.
24591         * tree-data-ref.h (lambda_vector_new): Likewise.
24592         * tree-phinodes.c (allocate_phi_node): Likewise.
24593         * tree.c (grow_tree_vec_stat): Likewise.
24594         * vec.h (va_gc::reserve): Adjust.
24596 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
24598         * config/microblaze/microblaze.c (break_handler): New Declaration.
24599         (microblaze_break_function_p,microblaze_is_break_handler): New.
24600         (compute_frame_size): Use microblaze_break_function_p.
24601         Add the test of break_handler.
24602         (microblaze_function_prologue) : Add the test of variable
24603         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
24604         (microblaze_function_epilogue) : Add the test of break_handler.
24605         (microblaze_globalize_label) : Add the test of break_handler.
24606         Check the name by BREAK_HANDLER_NAME.
24608         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24610         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24611         microblaze_is_break_handler test.
24612         (call_internal1,call_value_intern): Use microblaze_break_function_p.
24613         Use SYMBOL_REF_DECL.
24615         * config/microblaze/microblaze-protos.h
24616         (microblaze_break_function_p,microblaze_is_break_handler):
24617         New Declaration.
24619         * doc/extend.texi (MicroBlaze break_handler Functions): Document
24620         new MicroBlaze break_handler functions.
24622 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
24624         * doc/extend.texi (Size of an asm): Move node text according
24625         to its @menu entry position.
24627 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
24629         PR tree-optimization/61140
24630         PR tree-optimization/61150
24631         PR tree-optimization/61197
24632         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24634 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
24636         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
24638 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
24640         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
24641         __SIZEOF_INT128__ is defined.
24643 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
24645         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
24646         (rs6000_delegitimize_address): Use it.
24648 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
24650         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
24651         inplace argument.  Store the new address in the original MEM when true.
24652         * emit-rtl.c (change_address_1): Likewise.
24653         (adjust_address_1, adjust_automodify_address_1, offset_address):
24654         Update accordingly.
24655         * rtl.h (plus_constant): Add an inplace argument.
24656         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
24657         when true.  Avoid generating (plus X (const_int 0)).
24658         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24659         in-place.  Pass true to plus_constant.
24660         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24662 2014-05-16  Dehao Chen  <dehao@google.com>
24664         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24666 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24668         PR target/54089
24669         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24670         patterns.
24671         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24673 2014-05-16  Dehao Chen  <dehao@google.com>
24675         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24676         optimize_function_for_size_p.
24677         * regs.h (REG_FREQ_FROM_BB): Likewise.
24679 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24681         PR target/51244
24682         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24683         negt_reg_operand cases.
24684         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24685         predicate.
24686         * config/sh/predicates.md (cbranch_treg_value): Simplify.
24688 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24690         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
24691         target variants.
24693 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
24695         Revert:
24696         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
24698         * tree-cfg.c (dump_function_to_file): Dump the return type of
24699         functions, in a line to itself before the function body, mimicking
24700         the layout of a C function.
24702 2014-05-16  Dehao Chen  <dehao@google.com>
24704         * cfghooks.c (make_forwarder_block): Use direct computation to
24705         get fall-through edge's count and frequency.
24707 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
24709         * config/arc/arc.c (arc_init): Fix typo in error message.
24710         * config/i386/i386.c (ix86_expand_builtin): Likewise.
24711         (split_stack_prologue_scratch_regno): Likewise.
24712         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
24713         word from error message.
24715 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24717         * ira-costs.c: Fix typo in comment.
24719 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
24721         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
24723 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
24725         * varpool.c (dump_varpool_node): Dump write-only flag.
24726         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
24727         write-only flag.
24728         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
24729         write-only variables.
24730         * ipa.c (process_references): New function.
24731         (set_readonly_bit): New function.
24732         (set_writeonly_bit): New function.
24733         (clear_addressable_bit): New function.
24734         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
24735         fix handling of aliases.
24736         * cgraph.h (struct varpool_node): Add writeonly flag.
24738 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
24740         PR rtl-optimization/60969
24741         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
24742         Calculate costs for this case.
24744 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
24746         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
24747         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
24749 2014-05-16  Richard Biener  <rguenther@suse.de>
24751         PR tree-optimization/61194
24752         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
24753         bool patterns ending in a COND_EXPR.
24755 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24757         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
24759 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24761         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
24762         where we were unable to cost an RTX.
24764 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24766         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
24767         HIGH, LO_SUM.
24769 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24770             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24772         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
24774 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24775             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24777         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
24778         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
24780 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24781             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24783         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
24784         operators.
24786 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24787             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24789         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24790         DIV/MOD.
24792 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24793             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24795         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
24796         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
24798 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24799             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24801         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24802         rotates and shifts.
24804 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24805             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24807         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
24808         ZERO_EXTEND and SIGN_EXTEND better.
24810 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24811             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24813         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
24814         logical operations.
24816 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24817             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24819         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
24820         costs when costing loads and stores to memory.
24822 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24823             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
24825         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
24826         for SET RTX.
24828 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24830         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
24832 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24833             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24835         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
24836         to...
24837         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
24838         well formed.
24839         (aarch64_rtx_mult_cost): New.
24840         (aarch64_rtx_costs): Use it, refactor as appropriate.
24842 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24843             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24845         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
24846         emit instructions, return number of instructions which would
24847         be emitted.
24848         (aarch64_add_constant): Update call to aarch64_build_constant.
24849         (aarch64_output_mi_thunk): Likewise.
24850         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
24851         a CONST_DOUBLE.
24853 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24855         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
24856         (TARGET_RTX_COSTS): Call it.
24858 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24860         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
24861         (cortexa57_vector_cost): Likewise.
24862         (cortexa57_tunings): Use them.
24864 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24866         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
24867         (cpu_addrcost_table): Use it.
24868         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
24869         (aarch64_address_cost): Rewrite using aarch64_classify_address,
24870         move it.
24872 2014-05-16  Richard Biener  <rguenther@suse.de>
24874         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
24875         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
24876         (visit_phi): Ignore edges marked as not executable.
24877         (class cond_dom_walker): New.
24878         (cond_dom_walker::before_dom_children): Value-number
24879         control statements and mark successor edges as not
24880         executable if possible.
24881         (run_scc_vn): First walk all control statements in
24882         dominator order, marking edges as not executable.
24883         * tree-inline.c (copy_edges_for_bb): Be not confused
24884         about random edge flags.
24886 2014-05-16  Richard Biener  <rguenther@suse.de>
24888         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
24890 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
24892         PR target/61193
24893         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
24894         (__TM_simple_begin): Use it.
24895         (__TM_begin): Likewise.
24897 2014-05-15  Martin Jambor  <mjambor@suse.cz>
24899         PR ipa/61085
24900         * ipa-prop.c (update_indirect_edges_after_inlining): Check
24901         type_preserved flag when the indirect edge is polymorphic.
24903 2014-05-15  Martin Jambor  <mjambor@suse.cz>
24905         PR tree-optimization/61090
24906         * tree-sra.c (sra_modify_expr): Pass the current gsi to
24907         build_ref_for_model.
24909 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24911         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
24912         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
24914 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
24916         PR tree-optimization/61158
24917         * fold-const.c (fold_binary_loc): If X is zero-extended and
24918         shiftc >= prec, make sure zerobits is all ones instead of
24919         invoking undefined behavior.
24921 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24923         * regcprop.h: New file.
24924         * regcprop.c (skip_debug_insn_p): New decl.
24925         (replace_oldest_value_reg): Check skip_debug_insn_p.
24926         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
24927         * shrink-wrap.c: Include regcprop.h.
24928         (prepare_shrink_wrap): Call
24929         copyprop_hardreg_forward_bb_without_debug_insn.
24931 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24933         * shrink-wrap.h: Update comment.
24934         * shrink-wrap.c: Update comment.
24935         (next_block_for_reg): Rename to live_edge_for_reg.
24936         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
24937         (move_insn_for_shrink_wrap): Split live_edge.
24938         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
24940 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
24942         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
24943         Delete.
24944         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
24945         * config/sparc/sparc.md (fptype_ut699): New attribute.
24946         (in_branch_delay): Return false if -mfix-ut699 is specified and
24947         fptype_ut699 is set to single.
24948         (truncdfsf2): Add fptype_ut699 attribute.
24949         (fix_truncdfsi2): Likewise.
24950         (floatsisf2): Change fptype attribute.
24951         (fix_truncsfsi2): Likewise.
24952         (negtf2_notv9): Delete.
24953         (negtf2_v9): Likewise.
24954         (negtf2_hq): New instruction.
24955         (negtf2): New instruction and splitter.
24956         (negdf2_notv9): Rewrite.
24957         (abstf2_notv9): Delete.
24958         (abstf2_hq_v9): Likewise.
24959         (abstf2_v9): Likewise.
24960         (abstf2_hq): New instruction.
24961         (abstf2): New instruction and splitter.
24962         (absdf2_notv9): Rewrite.
24964 2014-05-14  Cary Coutant  <ccoutant@google.com>
24966         PR debug/61013
24967         * opts.c (common_handle_option): Don't special-case "-g".
24968         (set_debug_level): Default to at least level 2 with "-g".
24970 2014-05-14  DJ Delorie  <dj@redhat.com>
24972         * config/msp430/msp430.c (msp430_builtin): Add
24973         MSP430_BUILTIN_DELAY_CYCLES.
24974         (msp430_init_builtins): Register void __delay_cycles(long long).
24975         (msp430_builtin_decl): Add it.
24976         (cg_magic_constant): New.
24977         (msp430_expand_delay_cycles): New.
24978         (msp430_expand_builtin): Call it.
24979         (msp430_print_operand_raw): Change integer printing from "int" to
24980         HOST_WIDE_INT.
24981         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
24982         (delay_cycles_start): New.
24983         (delay_cycles_end): New.
24984         (delay_cycles_32): New.
24985         (delay_cycles_32x): New.
24986         (delay_cycles_16): New.
24987         (delay_cycles_16x): New.
24988         (delay_cycles_2): New.
24989         (delay_cycles_1): New.
24990         * doc/extend.texi: Document __delay_cycles().
24992 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
24994         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
24995         length attribute computation.
24997 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
24999         PR debug/61188
25000         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25002 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
25004         PR target/61084
25005         * config/sparc/sparc.md: Fix types of low and high in DI constant
25006         splitter.  Use gen_int_mode in some other splitters.
25008 2014-05-14  Martin Jambor  <mjambor@suse.cz>
25010         PR ipa/60897
25011         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25013 2014-05-14  James Norris  <jnorris@codesourcery.com>
25015         * omp-low.c (expand_parallel_call): Remove shadow variable.
25016         (expand_omp_taskreg): Likewise.
25018 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
25020         * common/config/i386/i386-common.c
25021         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25022         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25023         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25024         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25025         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25026         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25027         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25028         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25029         xsavecintrin.h, xsavesintrin.h.
25030         (x86_64-*-*): Ditto.
25031         * config/i386/clflushoptintrin.h: New.
25032         * config/i386/xsavecintrin.h: Ditto.
25033         * config/i386/xsavesintrin.h: Ditto.
25034         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25035         (bit_XSAVES): Ditto.
25036         (bit_XSAVES): Ditto.
25037         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25038         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25039         -mno-clflushopt.
25040         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25041         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25042         OPTION_MASK_ISA_XSAVES.
25043         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25044         -mxsavec, -mxsaves.
25045         (PTA_CLFLUSHOPT) Define.
25046         (PTA_XSAVEC): Ditto.
25047         (PTA_XSAVES): Ditto.
25048         (ix86_option_override_internal): Handle new options.
25049         (ix86_valid_target_attribute_inner_p): Ditto.
25050         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25051         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25052         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25053         (bdesc_special_args): Add __builtin_ia32_xsaves,
25054         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25055         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25056         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25057         (ix86_expand_builtin): Handle new builtins.
25058         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25059         (TARGET_CLFLUSHOPT_P): Ditto.
25060         (TARGET_XSAVEC): Ditto.
25061         (TARGET_XSAVEC_P): Ditto.
25062         (TARGET_XSAVES): Ditto.
25063         (TARGET_XSAVES_P): Ditto.
25064         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25065         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25066         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25067         (ANY_XRSTOR): New.
25068         (ANY_XRSTOR64): Ditto.
25069         (xrstor): Ditto.
25070         (xrstor): Change into <xrstor>.
25071         (xrstor_rex64): Change into <xrstor>_rex64.
25072         (xrstor64): Change into <xrstor>64
25073         (clflushopt): New.
25074         * config/i386/i386.opt (mclflushopt): New.
25075         (mxsavec): Ditto.
25076         (mxsaves): Ditto.
25077         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25078         xsavecintrin.h.
25079         * doc/invoke.texi: Document new options.
25081 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25083         PR rtl-optimization/60866
25084         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25085         Default it to -1.  Pass it down to init_simplejump_data.
25086         (init_simplejump_data): New parameter old_seqno.  Pass it down
25087         to get_seqno_for_a_jump.
25088         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
25089         initializing new jump seqno as a last resort.  Add comment.
25090         (sel_redirect_edge_and_branch): Save old seqno of the conditional
25091         jump and pass it down to sel_init_new_insn.
25092         (sel_redirect_edge_and_branch_force): Likewise.
25094 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
25096         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25097         shifted values to avoid build warning.
25099 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25101         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25102         * cfgrtl.c (rtl_merge_blocks): Fix comment.
25103         (cfg_layout_merge_blocks): Likewise.
25104         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25106 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25108         PR rtl-optimization/60901
25109         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25110         bb predecessor belongs to the same scheduling region.  Adjust comment.
25112 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
25114         * doc/sourcebuild.texi: (dfp_hw): Document.
25115         (p8vector_hw): Likewise.
25116         (powerpc_eabi_ok): Likewise.
25117         (powerpc_elfv2): Likewise.
25118         (powerpc_htm_ok): Likewise.
25119         (ppc_recip_hw): Likewise.
25120         (vsx_hw): Likewise.
25122 2014-05-13  Cary Coutant  <ccoutant@google.com>
25124         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25126 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
25128         * gengtype-parse.c (require3): Eliminate in favor of...
25129         (require4): New.
25130         (require_template_declaration): Update to support optional single *
25131         on a type.
25133         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25134         (create_user_defined_type): Handle a single level of explicit
25135         pointerness within template arguments.
25136         (struct write_types_data): Add field "kind".
25137         (filter_type_name): Handle "*" character.
25138         (write_user_func_for_structure_ptr): Require a write_types_data
25139         rather than just a prefix string, so that we can look up the kind
25140         of the wtd and use it as an index into wrote_user_func_for_ptr,
25141         ensuring that such functions are written at most once.  Support
25142         subclasses by invoking the marking function of the ultimate base class.
25143         (write_user_func_for_structure_body): Require a write_types_data
25144         rather than just a prefix string, so that we can pass this to
25145         write_user_func_for_structure_ptr.
25146         (write_func_for_structure): Likewise.
25147         (ggc_wtd): Add initializer of new "kind" field.
25148         (pch_wtd): Likewise.
25150         * gengtype.h (enum write_types_kinds): New.
25151         (struct type): Add field wrote_user_func_for_ptr to the "s"
25152         union member.
25154 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
25156         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25157         instead of const_binop.
25158         (fold_binary_loc): Likewise.
25160 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
25162         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
25163         calculation to match get_ref_base_and_extent.
25165 2014-05-13  Catherine Moore  <clm@codesourcery.com>
25166             Sandra Loosemore  <sandra@codesourcery.com>
25168         * configure.ac: Fix assembly for explicit JALR relocation check.
25169         * configure: Regenerate.
25171 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25173         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
25174         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
25175         Remove associated type declarations and initialisations.
25176         (arm_expand_neon_builtin): Likewise.
25177         (neon_emit_pair_result_insn): Delete.
25178         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
25179         * config/arm/neon.md (neon_vtrn<mode>): Delete.
25180         (neon_vzip<mode>): Likewise.
25181         (neon_vuzp<mode>): Likewise.
25183 2014-05-13  Richard Biener  <rguenther@suse.de>
25185         PR ipa/60973
25186         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
25187         it needs revisiting whether the call still may be tail-called.
25189 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25191         * rtl.def (SYMBOL_REF): Remove middle "0" field.
25192         * rtl.h (block_symbol): Reduce number of fields to 2.
25193         (rtx_def): Add u2.symbol_ref_flags.
25194         (SYMBOL_REF_FLAGS): Use it.
25195         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25196         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25197         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25198         Lower index of SYMBOL_REF_DATA.
25199         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25200         Print SYMBOL_REF_FLAGS at the same time.
25201         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25203 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25205         * rtl.def (VAR_LOCATION): Remove "i" field.
25206         * rtl.h (rtx_def): Add u2.var_location_status.
25207         (PAT_VAR_LOCATION_STATUS): Use it.
25208         (gen_rtx_VAR_LOCATION): Declare.
25209         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25210         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25211         * var-tracking.c (emit_note_insn_var_location): Remove casts.
25213 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25215         * rtl.def (scratch): Fix outdated comment and remove "0" field.
25216         * gengtype.c (adjust_field_rtx_def): Update accordingly.
25218 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25220         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25221         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25222         * rtl.h (rtx_def): Add insn_uid to u2 field.
25223         (RTX_FLAG_CHECK8): Delete in favor of...
25224         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25225         (INSN_DELETED_P): Update accordingly.
25226         (INSN_UID): Use u2.insn_uid.
25227         (INSN_CHAIN_CODE_P): Define.
25228         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25229         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25230         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25231         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25232         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25233         indices accordingly.
25234         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25235         Update indices for insn-chain rtxes.
25236         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25237         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25238         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25239         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25240         * combine.c (try_combine): Likewise.
25241         * ira.c (setup_prohibited_mode_move_regs): Likewise.
25243 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25245         * rtl.def (REG): Remove middle field.
25246         * rtl.h (rtx_def): Add orignal_regno to u2.
25247         (ORIGINAL_REGNO): Use it instead of field 1.
25248         (REG_ATTRS): Lower field index accordingly.
25249         * gengtype.c (adjust_field_rtx_def): Remove handling of
25250         ORIGINAL_REGNO.  Move REG_ATTRS index down.
25251         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25252         code that prints the REGNO.
25254 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25256         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25257         GENERATOR_FILE.
25259 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25261         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25263 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
25265         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25266         (alloc_iv): Lower base expressions containing ADDR_EXPR.
25268 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
25270         * config/aarch64/aarch64-protos.h
25271         (aarch64_hard_regno_caller_save_mode): New prototype.
25272         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25273         New function.
25274         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25276 2014-05-13  Christian Bruel  <christian.bruel@st.com>
25278         * target.def (mode_switching): New hook vector.
25279         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25280         (mode_exit, modepriority_to_mode): Likewise.
25281         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25282         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25283         * target.h: Include tm.h and hard-reg-set.h.
25284         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25285         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25286         * doc/tm.texi Regenerate.
25287         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25288         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25289         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25290         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25291         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25292         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25293         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25294         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
25295         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
25296         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
25297         (ix86_emit_mode_set): Hookify.
25298         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
25299         Delete.
25300         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25301         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
25302         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
25303         (epiphany_mode_priority_to_mode): Remove declaration.
25304         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
25305         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
25306         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
25307         Likewise.
25308         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
25309         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
25310         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
25312 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
25314         PR target/61060
25315         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
25316         is const0_rtx, return immediately.  Don't test count == 0 when
25317         it is always true.
25319 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25321         * Makefile.in: add shrink-wrap.o.
25322         * config/i386/i386.c: include "shrink-wrap.h"
25323         * function.c: Likewise.
25324         (requires_stack_frame_p, next_block_for_reg,
25325         move_insn_for_shrink_wrap, prepare_shrink_wrap,
25326         dup_block_and_redirect): Move to shrink-wrap.c
25327         (thread_prologue_and_epilogue_insns): Extract three code segments
25328         as functions in shrink-wrap.c
25329         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
25330         shrink-wrap.h
25331         * shrink-wrap.c: New file.
25332         * shrink-wrap.h: New file.
25334 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
25336         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
25337         reference to Solaris.
25339 2014-05-12  Mike Stump  <mikestump@comcast.net>
25341         PR other/31778
25342         * genattrtab.c (filename): Add.
25343         (convert_set_attr_alternative): Improve error message.
25344         (check_defs): Restore read_md_filename for error messages.
25345         (gen_insn): Save filename.
25347 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
25349         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
25350         -fno-local-ivars and -fivar-visibility.
25351         * c-family/c.opt: Make -Wshadow also implicitly enable
25352         -Wshadow-ivar.
25354 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
25356         * doc/tm.texi: Remove reference to deleted macro.
25357         * doc/tm.texi.in: Likewise.
25359 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
25361         PR target/60991
25362         * config/avr/avr.c (avr_out_store_psi): Use correct constant
25363         to restore Y.
25365 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
25367         PR libgcc/61152
25368         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
25369         * config/arm/aout.h (License): Same.
25370         * config/arm/bpabi.h (License): Same.
25371         * config/arm/elf.h (License): Same.
25372         * config/arm/linux-elf.h (License): Same.
25373         * config/arm/linux-gas.h (License): Same.
25374         * config/arm/netbsd-elf.h (License): Same.
25375         * config/arm/uclinux-eabi.h (License): Same.
25376         * config/arm/uclinux-elf.h (License): Same.
25377         * config/arm/vxworks.h (License): Same.
25379 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
25381         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
25382         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
25383         number of operands to 3.
25384         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
25385         * tree-nested.c (convert_nonlocal_omp_clauses,
25386         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
25387         * gimplify.c (gimplify_scan_omp_clauses): Handle
25388         OMP_CLAUSE_LINEAR_STMT.
25389         * omp-low.c (lower_rec_input_clauses): Fix typo.
25390         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
25391         cast between Fortran boolean_type_node and C _Bool if
25392         needed.
25394 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
25396         PR tree-optimization/61136
25397         * wide-int.h (multiple_of_p): Define a version that doesn't return
25398         the quotient.
25399         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
25400         integer_zerop/const_binop pair.
25401         (multiple_of_p): Likewise, converting both operands to widest_int
25402         precision.
25404 2014-05-09  Teresa Johnson  <tejohnson@google.com>
25406         * cgraphunit.c (analyze_functions): Use correct dump file.
25408 2014-05-09  Florian Weimer  <fweimer@redhat.com>
25410         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
25411         expand_used_vars.
25412         (stack_protect_return_slot_p): New function.
25413         (expand_used_vars): Call stack_protect_decl_p and
25414         stack_protect_return_slot_p for -fstack-protector-strong.
25416 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
25417         Andrew Haley <aph@redhat.com>
25418         Richard Sandiford <rdsandiford@googlemail.com>
25420         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
25421         pages.
25423 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
25425         PR middle-end/61111
25426         * fold-const.c (fold_binary_loc): Changed width of mask.
25428 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
25430         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
25431         unsigned int initializers for regno_in, regno_out.
25433 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
25435         PR target/61055
25436         * config/avr/avr.md (cc): Add new attribute set_vzn.
25437         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
25438         Set cc insn attribute to set_vzn instead of set_zn for alternatives
25439         with INC, DEC or NEG.
25440         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
25441         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
25442         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
25444 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25446         Revert:
25447         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25449         * wide-int.cc (UTItype): Define.
25450         (UDWtype): Define for appropriate W_TYPE_SIZE.
25452 2014-05-09  Richard Biener  <rguenther@suse.de>
25454         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
25455         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
25456         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
25457         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
25458         ssa_propagate): Adjust.
25460 2014-05-08  Jeff Law  <law@redhat.com>
25462         PR tree-optimization/61009
25463         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
25464         tri-state rather than a boolean.  When a block is too big to
25465         thread through, inform caller via negative return value.
25466         (thread_across_edge): If a block was too big for normal threading,
25467         then it's too big for a joiner too, so remove temporary equivalences
25468         and return immediately.
25470 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25471             Matthias Klose  <doko@ubuntu.com>
25473         PR driver/61106
25474         * optc-gen.awk: Fix option handling for -Wunused-parameter.
25476 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
25478         PR target/59952
25479         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
25481 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
25483         PR target/61092
25484         * config/alpha/alpha.c: Include gimple-iterator.h.
25485         (alpha_gimple_fold_builtin): New function.  Move
25486         ALPHA_BUILTIN_UMULH folding from ...
25487         (alpha_fold_builtin): ... here.
25488         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
25490 2014-05-08  Wei Mi  <wmi@google.com>
25492         PR target/58066
25493         * config/i386/i386.c (ix86_compute_frame_layout): Update
25494         preferred_stack_boundary for call, expanded from tls descriptor.
25495         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
25496         to depend on SP register.
25497         (*tls_local_dynamic_base_32_gnu): Ditto.
25498         (*tls_local_dynamic_32_once): Ditto.
25499         (tls_global_dynamic_64_<mode>): Set
25500         ix86_tls_descriptor_calls_expanded_in_cfun.
25501         (tls_local_dynamic_base_64_<mode>): Ditto.
25502         (tls_global_dynamic_32): Set
25503         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
25504         to depend on SP register.
25505         (tls_local_dynamic_base_32): Ditto.
25507 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25509         * config/arm/arm_neon.h: Update comment.
25510         * config/arm/neon-docgen.ml: Delete.
25511         * config/arm/neon-gen.ml: Delete.
25512         * doc/arm-neon-intrinsics.texi: Update comment.
25514 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25516         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
25517         and v4sf versions.
25518         (vand, vorr, veor, vorn, vbic): Remove.
25519         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
25520         iterator.
25521         (neon_vsub_unspec): Likewise.
25522         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
25524 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25526         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
25527         (vadd_s16): Likewise.
25528         (vadd_s32): Likewise.
25529         (vadd_f32): Likewise.
25530         (vadd_u8): Likewise.
25531         (vadd_u16): Likewise.
25532         (vadd_u32): Likewise.
25533         (vadd_s64): Likewise.
25534         (vadd_u64): Likewise.
25535         (vaddq_s8): Likewise.
25536         (vaddq_s16): Likewise.
25537         (vaddq_s32): Likewise.
25538         (vaddq_s64): Likewise.
25539         (vaddq_f32): Likewise.
25540         (vaddq_u8): Likewise.
25541         (vaddq_u16): Likewise.
25542         (vaddq_u32): Likewise.
25543         (vaddq_u64): Likewise.
25544         (vmul_s8): Likewise.
25545         (vmul_s16): Likewise.
25546         (vmul_s32): Likewise.
25547         (vmul_f32): Likewise.
25548         (vmul_u8): Likewise.
25549         (vmul_u16): Likewise.
25550         (vmul_u32): Likewise.
25551         (vmul_p8): Likewise.
25552         (vmulq_s8): Likewise.
25553         (vmulq_s16): Likewise.
25554         (vmulq_s32): Likewise.
25555         (vmulq_f32): Likewise.
25556         (vmulq_u8): Likewise.
25557         (vmulq_u16): Likewise.
25558         (vmulq_u32): Likewise.
25559         (vsub_s8): Likewise.
25560         (vsub_s16): Likewise.
25561         (vsub_s32): Likewise.
25562         (vsub_f32): Likewise.
25563         (vsub_u8): Likewise.
25564         (vsub_u16): Likewise.
25565         (vsub_u32): Likewise.
25566         (vsub_s64): Likewise.
25567         (vsub_u64): Likewise.
25568         (vsubq_s8): Likewise.
25569         (vsubq_s16): Likewise.
25570         (vsubq_s32): Likewise.
25571         (vsubq_s64): Likewise.
25572         (vsubq_f32): Likewise.
25573         (vsubq_u8): Likewise.
25574         (vsubq_u16): Likewise.
25575         (vsubq_u32): Likewise.
25576         (vsubq_u64): Likewise.
25577         (vand_s8): Likewise.
25578         (vand_s16): Likewise.
25579         (vand_s32): Likewise.
25580         (vand_u8): Likewise.
25581         (vand_u16): Likewise.
25582         (vand_u32): Likewise.
25583         (vand_s64): Likewise.
25584         (vand_u64): Likewise.
25585         (vandq_s8): Likewise.
25586         (vandq_s16): Likewise.
25587         (vandq_s32): Likewise.
25588         (vandq_s64): Likewise.
25589         (vandq_u8): Likewise.
25590         (vandq_u16): Likewise.
25591         (vandq_u32): Likewise.
25592         (vandq_u64): Likewise.
25593         (vorr_s8): Likewise.
25594         (vorr_s16): Likewise.
25595         (vorr_s32): Likewise.
25596         (vorr_u8): Likewise.
25597         (vorr_u16): Likewise.
25598         (vorr_u32): Likewise.
25599         (vorr_s64): Likewise.
25600         (vorr_u64): Likewise.
25601         (vorrq_s8): Likewise.
25602         (vorrq_s16): Likewise.
25603         (vorrq_s32): Likewise.
25604         (vorrq_s64): Likewise.
25605         (vorrq_u8): Likewise.
25606         (vorrq_u16): Likewise.
25607         (vorrq_u32): Likewise.
25608         (vorrq_u64): Likewise.
25609         (veor_s8): Likewise.
25610         (veor_s16): Likewise.
25611         (veor_s32): Likewise.
25612         (veor_u8): Likewise.
25613         (veor_u16): Likewise.
25614         (veor_u32): Likewise.
25615         (veor_s64): Likewise.
25616         (veor_u64): Likewise.
25617         (veorq_s8): Likewise.
25618         (veorq_s16): Likewise.
25619         (veorq_s32): Likewise.
25620         (veorq_s64): Likewise.
25621         (veorq_u8): Likewise.
25622         (veorq_u16): Likewise.
25623         (veorq_u32): Likewise.
25624         (veorq_u64): Likewise.
25625         (vbic_s8): Likewise.
25626         (vbic_s16): Likewise.
25627         (vbic_s32): Likewise.
25628         (vbic_u8): Likewise.
25629         (vbic_u16): Likewise.
25630         (vbic_u32): Likewise.
25631         (vbic_s64): Likewise.
25632         (vbic_u64): Likewise.
25633         (vbicq_s8): Likewise.
25634         (vbicq_s16): Likewise.
25635         (vbicq_s32): Likewise.
25636         (vbicq_s64): Likewise.
25637         (vbicq_u8): Likewise.
25638         (vbicq_u16): Likewise.
25639         (vbicq_u32): Likewise.
25640         (vbicq_u64): Likewise.
25641         (vorn_s8): Likewise.
25642         (vorn_s16): Likewise.
25643         (vorn_s32): Likewise.
25644         (vorn_u8): Likewise.
25645         (vorn_u16): Likewise.
25646         (vorn_u32): Likewise.
25647         (vorn_s64): Likewise.
25648         (vorn_u64): Likewise.
25649         (vornq_s8): Likewise.
25650         (vornq_s16): Likewise.
25651         (vornq_s32): Likewise.
25652         (vornq_s64): Likewise.
25653         (vornq_u8): Likewise.
25654         (vornq_u16): Likewise.
25655         (vornq_u32): Likewise.
25656         (vornq_u64): Likewise.
25658 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25660         * wide-int.cc (UTItype): Define.
25661         (UDWtype): Define for appropriate W_TYPE_SIZE.
25663 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
25665         PR tree-optimization/59100
25666         * tree-ssa-phiopt.c: Include tree-inline.h.
25667         (neutral_element_p, absorbing_element_p): New functions.
25668         (value_replacement): Handle conditional binary operations with a
25669         neutral or absorbing element.
25671 2014-05-08  Richard Biener  <rguenther@suse.de>
25673         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25674         folding the expression.
25675         (valueize_expr): Remove.
25676         (visit_reference_op_load): Do not valueize the result of
25677         vn_get_expr_for.
25678         (simplify_binary_expression): Likewise.
25679         (simplify_unary_expression): Likewise.
25681 2014-05-08  Richard Biener  <rguenther@suse.de>
25683         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25684         looking at TYPE_ARG_TYPES.
25686 2014-05-08  Richard Biener  <rguenther@suse.de>
25688         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
25689         pointer propagation special-case.
25691 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
25693         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
25694         core part of address expressions.
25696 2014-05-08  Alan Modra  <amodra@gmail.com>
25698         PR target/60737
25699         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
25700         loads and stores when -mno-strict-align at any alignment.
25701         (expand_block_clear): Similarly.  Also correct calculation of
25702         instruction count.
25704 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25706         PR middle-end/39246
25707         * tree-complex.c (expand_complex_move): Keep line info when expanding
25708         complex move.
25709         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
25710         of complex expression. Use new argument to display correct location
25711         for values coming from phi statement.
25712         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
25713         (warn_uninitialized_phi): Pass location of phi argument to
25714         warn_uninit.
25715         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
25716         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
25718 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
25720         * config/rs6000/predicates.md (indexed_address_mem): New.
25721         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
25722         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
25723         fpstore_ux, fpstore_u.
25724         (sign_extend, indexed, update): New.
25725         (cell_micro): Adjust.
25726         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
25727         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
25728         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
25729         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
25730         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
25731         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
25732         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
25733         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
25734         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
25735         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
25736         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
25737         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
25738         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
25739         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
25740         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
25742         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
25743         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
25744         *vsx_extract_<mode>_store): Adjust.
25745         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
25746         is_cracked_insn, insn_must_be_first_in_group,
25747         insn_must_be_last_in_group): Adjust.
25749         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
25750         Adjust.
25751         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
25752         ppc440-fpstore): Adjust.
25753         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
25754         ppc476-fpstore): Adjust.
25755         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
25756         ppc601-fpstore): Adjust.
25757         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
25758         Adjust.
25759         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
25760         Adjust.
25761         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
25762         ppc7450-fpstore): Adjust.
25763         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
25764         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
25765         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
25766         Adjust.
25767         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
25768         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
25769         cell-fpstore, cell-fpstore-update): Adjust.
25770         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
25771         ppce300c3_store, ppce300c3_fpstore): Adjust.
25772         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
25773         e500mc_fpstore): Adjust.
25774         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
25775         e500mc64_store, e500mc64_fpstore): Adjust.
25776         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
25777         e5500_fpstore): Adjust.
25778         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
25779         e6500_fpstore): Adjust.
25780         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
25781         Adjust.
25782         * config/rs6000/power4.md (power4-load, power4-load-ext,
25783         power4-load-ext-update, power4-load-ext-update-indexed,
25784         power4-load-update-indexed, power4-load-update, power4-fpload,
25785         power4-fpload-update, power4-store, power4-store-update,
25786         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
25787         Adjust.
25788         * config/rs6000/power5.md (power5-load, power5-load-ext,
25789         power5-load-ext-update, power5-load-ext-update-indexed,
25790         power5-load-update-indexed, power5-load-update, power5-fpload,
25791         power5-fpload-update, power5-store, power5-store-update,
25792         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
25793         Adjust.
25794         * config/rs6000/power6.md (power6-load, power6-load-ext,
25795         power6-load-update, power6-load-update-indexed,
25796         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
25797         power6-fpload-update, power6-store, power6-store-update,
25798         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
25799         Adjust.
25800         * config/rs6000/power7.md (power7-load, power7-load-ext,
25801         power7-load-update, power7-load-update-indexed,
25802         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
25803         power7-fpload-update, power7-store, power7-store-update,
25804         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
25805         Adjust.
25806         * config/rs6000/power8.md (power8-load, power8-load-update,
25807         power8-load-ext, power8-load-ext-update, power8-fpload,
25808         power8-fpload-update, power8-store, power8-store-update-indexed,
25809         power8-fpstore, power8-fpstore-update): Adjust.
25810         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
25811         Adjust.
25812         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
25813         titan_lsu_store, titan_lsu_fpstore): Adjust.
25814         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
25816 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
25818         PR target/60884
25819         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
25820         unrolled byte insns.  Emit address increments after move insns.
25822 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
25824         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
25825         const_gimple, rather than a gimple.
25826         (gimple_call_builtin_p): Likewise, for the three variants.
25828         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
25829         (gimple_call_builtin_p): Likewise, for the three variants.
25831 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25833         PR tree-optimization/61095
25834         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
25836 2014-05-07  Richard Biener  <rguenther@suse.de>
25838         PR tree-optimization/61034
25839         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
25840         (maybe_skip_until): Use translate to take into account
25841         lattices when trying to do disambiguations.
25842         (get_continuation_for_phi_1): Likewise.
25843         (get_continuation_for_phi): Adjust for added translate arguments.
25844         (walk_non_aliased_vuses): Likewise.
25845         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
25846         (walk_non_aliased_vuses): Likewise.
25847         (call_may_clobber_ref_p_1): Declare.
25848         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
25849         calls.  Stop early if we are only supposed to disambiguate.
25850         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
25852 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
25854         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
25855         Emit an error when the function has arguments.
25857 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
25859         * cfgloop.h (unswitch_loops): Remove.
25860         * doc/passes.texi: Remove references to loop-unswitch.c
25861         * timevar.def (TV_LOOP_UNSWITCH): Remove.
25863 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
25865         * tree-vect-data-refs.c (vect_grouped_load_supported): New
25866         check for loads group of length 3.
25867         (vect_permute_load_chain): New permutations for loads group of
25868         length 3.
25869         * tree-vect-stmts.c (vect_model_load_cost): Change cost
25870         of vec_perm_shuffle for the new permutations.
25872 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
25874         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
25875         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
25876         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
25877         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
25878         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
25879         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
25880         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
25881         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
25883 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
25885         * loop-unswitch.c: Delete.
25887 2014-05-07  Richard Biener  <rguenther@suse.de>
25889         * config.gcc: Always set need_64bit_hwint to yes.
25891 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
25893         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
25894         of using optimize_size.
25896 2014-05-06  Mike Stump  <mikestump@comcast.net>
25898         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
25900 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
25902         * config/i386/sse.md (*mov<mode>_internal)
25903         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
25904         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
25905         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
25906         (*<code><mode>3, *andnot<mode>3<mask_name>)
25907         (<mask_codefor><code><mode>3<mask_name>): Only consider
25908         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
25910 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
25912         Revert:
25913         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
25915         * lra-constraints.c (valid_address_p): Move earlier in file.
25916         Add a constraint argument to the address_info version.
25917         (satisfies_memory_constraint_p): New function.
25918         (satisfies_address_constraint_p): Likewise.
25919         (process_alt_operands, curr_insn_transform): Use them.
25920         (process_address): Pass the constraint to valid_address_p when
25921         checking address operands.
25923 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
25925         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
25926         to their respective blocks.  Fix inadvertent use of "node".
25928 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
25930         * emit-rtl.c (init_derived_machine_modes): New functionm, split
25931         out from...
25932         (init_emit_once): ...here.
25933         * rtl.h (init_derived_machine_modes): Declare.
25934         * toplev.c (do_compile): Call it even if no_backend.
25936 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
25937             Mike Stump  <mikestump@comcast.net>
25938             Richard Sandiford  <rdsandiford@googlemail.com>
25939             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25941         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
25942         (rtx_equal_for_memref_p): Update comment.
25943         (adjust_offset_for_component_ref): Use wide-int interfaces.
25944         * builtins.c (get_object_alignment_2): Likewise.
25945         (c_readstr): Likewise.
25946         (target_char_cast): Add comment.
25947         (determine_block_size): Use wide-int interfaces.
25948         (expand_builtin_signbit): Likewise.
25949         (fold_builtin_int_roundingfn): Likewise.
25950         (fold_builtin_bitop): Likewise.
25951         (fold_builtin_bswap): Likewise.
25952         (fold_builtin_logarithm): Use signop.
25953         (fold_builtin_pow): Likewise.
25954         (fold_builtin_memory_op): Use wide-int interfaces.
25955         (fold_builtin_object_size): Likewise.
25956         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
25957         nb_iterations_estimate.
25958         (record_niter_bound): Use wide-int interfaces.
25959         (get_estimated_loop_iterations_int): Likewise.
25960         (get_estimated_loop_iterations): Likewise.
25961         (get_max_loop_iterations): Likewise.
25962         * cfgloop.h: Include wide-int.h.
25963         (struct nb_iter_bound): Change bound to widest_int.
25964         (struct loop): Change nb_iterations_upper_bound and
25965         nb_iterations_estimate to widest_int.
25966         (record_niter_bound): Switch to use widest_int.
25967         (get_estimated_loop_iterations): Likewise.
25968         (get_max_loop_iterations): Likewise.
25969         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
25970         update for wide-int.
25971         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
25972         * combine.c (try_combine): Likewise.
25973         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
25974         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
25975         interfaces.
25976         (aarch64_float_const_representable_p): Likewise.
25977         * config/arc/arc.c: Include wide-int.h.
25978         (arc_can_use_doloop_p): Use wide-int interfaces.
25979         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
25980         (vfp3_const_double_index): Likewise.
25981         * config/avr/avr.c (avr_out_round): Likewise.
25982         (avr_fold_builtin): Likewise.
25983         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
25984         (bfin_can_use_doloop_p): Likewise.
25985         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
25986         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
25987         * config/i386/i386.c: Include wide-int.h.
25988         (ix86_data_alignment): Use wide-int interfaces.
25989         (ix86_local_alignment): Likewise.
25990         (ix86_emit_swsqrtsf): Update real_from_integer.
25991         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
25992         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
25993         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
25994         (zero_constant): Likewise.
25995         (input_operand): Likewise.
25996         (splat_input_operand): Likewise.
25997         (non_logical_cint_operand): Change const_double to const_wide_int.
25998         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
25999         (easy_altivec_constant): Remove comment.
26000         (paired_expand_vector_init): Use CONSTANT_P.
26001         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26002         (rs6000_emit_move): Update checks.
26003         (rs6000_aggregate_candidate): Use wide-int interfaces.
26004         (rs6000_expand_ternop_builtin): Likewise.
26005         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26006         (rs6000_assemble_integer): Likewise.
26007         (rs6000_hash_constant): Likewise.
26008         (output_toc): Likewise.
26009         (rs6000_rtx_costs): Likewise.
26010         (rs6000_emit_swrsqrt); Update call to real_from_integer.
26011         * config/rs6000/rs6000-c.c: Include wide-int.h.
26012         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26013         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26014         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26015         Handle CONST_WIDE_INT.
26016         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26017         Use tree_fits_uhwi_p.
26018         * config/sparc/sparc.c: Include wide-int.h.
26019         (sparc_fold_builtin): Use wide-int interfaces.
26020         * config/vax/vax.c: Include wide-int.h.
26021         (vax_float_literal): Use real_from_integer.
26022         * coretypes.h (struct hwivec_def): New.
26023         (hwivec): New.
26024         (const_hwivec): New.
26025         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26026         (equiv_constant): Handle CONST_WIDE_INT.
26027         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26028         (cselib_hash_rtx): Handle CONST_WIDE_INT.
26029         * dbxout.c (stabstr_U): Use wide-int interfaces.
26030         (dbxout_type): Update to use cst_fits_shwi_p.
26031         * defaults.h (LOG2_BITS_PER_UNIT): Define.
26032         (TARGET_SUPPORTS_WIDE_INT): Add default.
26033         * dfp.c: Include wide-int.h.
26034         (decimal_real_to_integer2): Use wide-int interfaces and rename to
26035         decimal_real_to_integer.
26036         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26037         decimal_real_to_integer.
26038         * doc/generic.texi (Constant expressions): Update for wide_int.
26039         * doc/rtl.texi (const_double): Likewise.
26040         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26041         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26042         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26043         (REAL_VALUE_FROM_INT): Remove.
26044         (TARGET_SUPPORTS_WIDE_INT): New.
26045         * doc/tm.texi: Regenerate.
26046         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26047         * double-int.h: Include wide-int.h.
26048         (struct wi::int_traits): New.
26049         * dwarf2out.c (get_full_len): New.
26050         (dw_val_equal_p): Add case dw_val_class_wide_int.
26051         (size_of_loc_descr): Likewise.
26052         (output_loc_operands): Likewise.
26053         (insert_double): Remove.
26054         (insert_wide_int): New.
26055         (add_AT_wide): New.
26056         (print_die): Add case dw_val_class_wide_int.
26057         (attr_checksum): Likewise.
26058         (attr_checksum_ordered): Likewise.
26059         (same_dw_val_p): Likewise.
26060         (size_of_die): Likewise.
26061         (value_format): Likewise.
26062         (output_die): Likewise.
26063         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26064         Use wide-int.
26065         (clz_loc_descriptor): Use wide-int interfaces.
26066         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
26067         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
26068         (round_up_to_align): Use wide-int interfaces.
26069         (field_byte_offset): Likewise.
26070         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
26071         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
26072         CONST_DOUBLE handling.  Use wide-int interfaces.
26073         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
26074         (gen_enumeration_type_die): Use add_AT_wide.
26075         (hash_loc_operands): Add case dw_val_class_wide_int.
26076         (compare_loc_operands): Likewise.
26077         * dwarf2out.h: Include wide-int.h.
26078         (wide_int_ptr): New.
26079         (enum dw_val_class): Add dw_val_class_wide_int.
26080         (struct dw_val_struct): Add val_wide.
26081         * emit-rtl.c (const_wide_int_htab): New.
26082         (const_wide_int_htab_hash): New.
26083         (const_wide_int_htab_eq): New.
26084         (lookup_const_wide_int): New.
26085         (const_double_htab_hash): Use wide-int interfaces.
26086         (const_double_htab_eq): Likewise.
26087         (rtx_to_double_int): Conditionally compile for wide-int.
26088         (immed_double_int_const): Rename to immed_wide_int_const and
26089         update for wide-int.
26090         (immed_double_const): Conditionally compile for wide-int.
26091         (init_emit_once): Use wide-int interfaces.
26092         * explow.c (plus_constant): Likewise.
26093         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
26094         (lshift_value): Use wide-int interfaces.
26095         (expand_mult): Likewise.
26096         (choose_multiplier): Likewise.
26097         (expand_smod_pow2): Likewise.
26098         (make_tree): Likewise.
26099         * expr.c (convert_modes): Consolidate handling of constants.
26100         Use wide-int interfaces.
26101         (emit_group_load_1): Add note.
26102         (store_expr): Update comment.
26103         (get_inner_reference): Use wide-int interfaces.
26104         (expand_constructor): Update comment.
26105         (expand_expr_real_2): Use wide-int interfaces.
26106         (expand_expr_real_1): Likewise.
26107         (reduce_to_bit_field_precision): Likewise.
26108         (const_vector_from_tree): Likewise.
26109         * final.c: Include wide-int-print.h.
26110         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
26111         * fixed-value.c: Include wide-int.h.
26112         (fixed_from_string): Use wide-int interfaces.
26113         (fixed_to_decimal): Likewise.
26114         (fixed_convert_from_real): Likewise.
26115         (real_convert_from_fixed): Likewise.
26116         * fold-const.h (mem_ref_offset): Return an offset_int.
26117         (div_if_zero_remainder): Remove code parameter.
26118         * fold-const.c (div_if_zero_remainder): Remove code parameter.
26119         Use wide-int interfaces.
26120         (may_negate_without_overflow_p): Use wide-int interfaces.
26121         (negate_expr_p): Likewise.
26122         (fold_negate_expr): Likewise.
26123         (int_const_binop_1): Likewise.
26124         (const_binop): Likewise.
26125         (fold_convert_const_int_from_int): Likewise.
26126         (fold_convert_const_int_from_real): Likewise.
26127         (fold_convert_const_int_from_fixed): Likewise.
26128         (fold_convert_const_fixed_from_int): Likewise.
26129         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
26130         (sign_bit_p): Use wide-int interfaces.
26131         (make_range_step): Likewise.
26132         (build_range_check): Likewise.  Pass an integer of the correct type
26133         instead of using integer_one_node.
26134         (range_predecessor): Pass an integer of the correct type instead
26135         of using integer_one_node.
26136         (range_successor): Likewise.
26137         (merge_ranges): Likewise.
26138         (unextend): Use wide-int interfaces.
26139         (extract_muldiv_1): Likewise.
26140         (fold_div_compare): Likewise.
26141         (fold_single_bit_test): Likewise.
26142         (fold_sign_changed_comparison): Likewise.
26143         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26144         (fold_plusminus_mult_expr): Use wide-int interfaces.
26145         (native_encode_int): Likewise.
26146         (native_interpret_int): Likewise.
26147         (fold_unary_loc): Likewise.
26148         (pointer_may_wrap_p): Likewise.
26149         (size_low_cst): Likewise.
26150         (mask_with_tz): Likewise.
26151         (fold_binary_loc): Likewise.
26152         (fold_ternary_loc): Likewise.
26153         (multiple_of_p): Likewise.
26154         (tree_call_nonnegative_warnv_p): Update calls to
26155         tree_int_cst_min_precision and real_from_integer.
26156         (fold_negate_const): Use wide-int interfaces.
26157         (fold_abs_const): Likewise.
26158         (fold_relational_const): Use tree_int_cst_lt.
26159         (round_up_loc): Use wide-int interfaces.
26160         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
26161         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
26162         * gengtype.c: Remove include of double-int.h.
26163         (do_typedef): Use wide-int interfaces.
26164         (open_base_files): Add wide-int.h.
26165         (main): Add offset_int and widest_int typedefs.
26166         * gengtype-lex.l: Handle "^".
26167         (CXX_KEYWORD): Add "static".
26168         * gengtype-parse.c (require3): New.
26169         (require_template_declaration): Handle constant template arguments
26170         and nested templates.
26171         * gengtype-state.c: Don't include "double-int.h".
26172         * genpreds.c (write_one_predicate_function): Update comment.
26173         (write_tm_constrs_h): Add check for hval and lval use in
26174         CONST_WIDE_INT.
26175         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
26176         (add_to_sequence): Likewise.
26177         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
26178         and const_double_operand.
26179         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
26180         interfaces.
26181         * gimple-fold.c (get_base_constructor): Likewise.
26182         (fold_array_ctor_reference): Likewise.
26183         (fold_nonarray_ctor_reference): Likewise.
26184         (fold_const_aggregate_ref_1): Likewise.
26185         (gimple_val_nonnegative_real_p): Likewise.
26186         (gimple_fold_indirect_ref): Likewise.
26187         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
26188         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
26189         (struct slsr_cand_d): Change index to be widest_int.
26190         (struct incr_info_d): Change incr to be widest_int.
26191         (alloc_cand_and_find_basis): Use wide-int interfaces.
26192         (slsr_process_phi): Likewise.
26193         (backtrace_base_for_ref): Likewise.  Return a widest_int.
26194         (restructure_reference): Take a widest_int instead of a double_int.
26195         (slsr_process_ref): Use wide-int interfaces.
26196         (create_mul_ssa_cand): Likewise.
26197         (create_mul_imm_cand): Likewise.
26198         (create_add_ssa_cand): Likewise.
26199         (create_add_imm_cand): Take a widest_int instead of a double_int.
26200         (slsr_process_add): Use wide-int interfaces.
26201         (slsr_process_cast): Likewise.
26202         (slsr_process_copy): Likewise.
26203         (dump_candidate): Likewise.
26204         (dump_incr_vec): Likewise.
26205         (replace_ref): Likewise.
26206         (cand_increment): Likewise.  Return a widest_int.
26207         (cand_abs_increment): Likewise.
26208         (replace_mult_candidate): Take a widest_int instead of a double_int.
26209         (replace_unconditional_candidate): Use wide-int interfaces.
26210         (incr_vec_index): Take a widest_int instead of a double_int.
26211         (create_add_on_incoming_edge): Likewise.
26212         (create_phi_basis): Use wide-int interfaces.
26213         (replace_conditional_candidate): Likewise.
26214         (record_increment): Take a widest_int instead of a double_int.
26215         (record_phi_increments): Use wide-int interfaces.
26216         (phi_incr_cost): Take a widest_int instead of a double_int.
26217         (lowest_cost_path): Likewise.
26218         (total_savings): Likewise.
26219         (analyze_increments): Use wide-int interfaces.
26220         (ncd_with_phi): Take a widest_int instead of a double_int.
26221         (ncd_of_cand_and_phis): Likewise.
26222         (nearest_common_dominator_for_cands): Likewise.
26223         (insert_initializers): Use wide-int interfaces.
26224         (all_phi_incrs_profitable): Likewise.
26225         (replace_one_candidate): Likewise.
26226         (replace_profitable_candidates): Likewise.
26227         * godump.c: Include wide-int-print.h.
26228         (go_output_typedef): Use wide-int interfaces.
26229         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26230         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26231         (build_loop_iteration_domains): Likewise.
26232         * hooks.h: Include wide-int.h rather than double-int.h.
26233         (hook_bool_dint_dint_uint_bool_true): Delete.
26234         (hook_bool_wint_wint_uint_bool_true): Declare.
26235         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26236         (hook_bool_wint_wint_uint_bool_true): New.
26237         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26238         interfaces.
26239         (ubsan_expand_si_overflow_mul_check): Likewise.
26240         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26241         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26242         (get_ancestor_addr_info): Likewise.
26243         (ipa_modify_call_arguments): Likewise.
26244         * loop-doloop.c (doloop_modify): Likewise.
26245         (doloop_optimize): Likewise.
26246         * loop-iv.c (iv_number_of_iterations): Likewise.
26247         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26248         (unroll_loop_constant_iterations): Likewise.
26249         (decide_unroll_runtime_iterations): Likewise.
26250         (unroll_loop_runtime_iterations): Likewise.
26251         (decide_peel_simple): Likewise.
26252         (decide_unroll_stupid): Likewise.
26253         * lto-streamer-in.c (streamer_read_wi): Add.
26254         (input_cfg): Use wide-int interfaces.
26255         (lto_input_tree_1): Likewise.
26256         * lto-streamer-out.c (streamer_write_wi): Add.
26257         (hash_tree): Use wide-int interfaces.
26258         (output_cfg): Likewise.
26259         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26260         (GTFILES): Add wide-int.h and signop.h.
26261         (TAGS): Look for .cc files too.
26262         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26263         * optabs.c (expand_subword_shift): Likewise.
26264         (expand_doubleword_shift): Likewise.
26265         (expand_absneg_bit): Likewise.
26266         (expand_copysign_absneg): Likewise.
26267         (expand_copysign_bit): Likewise.
26268         * postreload.c (reload_cse_simplify_set): Likewise.
26269         * predict.c (predict_iv_comparison): Likewise.
26270         * pretty-print.h: Include wide-int-print.h.
26271         (pp_wide_int) New.
26272         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26273         * print-tree.c: Include wide-int-print.h.
26274         (print_node_brief): Use wide-int interfaces.
26275         (print_node): Likewise.
26276         * read-rtl.c (validate_const_wide_int): New.
26277         (read_rtx_code): Add CONST_WIDE_INT case.
26278         * real.c: Include wide-int.h.
26279         (real_to_integer2): Delete.
26280         (real_to_integer): New function, returning a wide_int.
26281         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26282         (ten_to_ptwo): Update call to real_from_integer.
26283         (real_digit): Likewise.
26284         * real.h: Include signop.h, wide-int.h and insn-modes.h.
26285         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26286         (REAL_VALUE_TO_INT): Delete.
26287         (real_to_integer): Declare a wide-int form.
26288         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26289         * recog.c (const_int_operand): Improve comment.
26290         (const_scalar_int_operand): New.
26291         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26292         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26293         (split_double): Likewise.
26294         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
26295         (rtx_size): Likewise.
26296         (rtx_alloc_stat_v): New.
26297         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
26298         (cwi_output_hex): New.
26299         (iterative_hash_rtx): Handle CONST_WIDE_INT.
26300         (cwi_check_failed_bounds): New.
26301         * rtl.def (CONST_WIDE_INT): New.
26302         * rtl.h: Include <utility> and wide-int.h.
26303         (struct hwivec_def): New.
26304         (CWI_GET_NUM_ELEM): New.
26305         (CWI_PUT_NUM_ELEM): New.
26306         (struct rtx_def): Add num_elem and hwiv.
26307         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
26308         (CASE_CONST_UNIQUE): Likewise.
26309         (CASE_CONST_ANY): Likewise.
26310         (CONST_SCALAR_INT_P): Likewise.
26311         (CONST_WIDE_INT_P): New.
26312         (CWI_ELT): New.
26313         (HWIVEC_CHECK): New.
26314         (cwi_check_failed_bounds): New.
26315         (CWI_ELT): New.
26316         (HWIVEC_CHECK): New.
26317         (CONST_WIDE_INT_VEC) New.
26318         (CONST_WIDE_INT_NUNITS) New.
26319         (CONST_WIDE_INT_ELT) New.
26320         (rtx_mode_t): New type.
26321         (wi::int_traits <rtx_mode_t>): New.
26322         (wi::shwi): New.
26323         (wi::min_value): New.
26324         (wi::max_value): New.
26325         (rtx_alloc_v) New.
26326         (const_wide_int_alloc): New.
26327         (immed_wide_int_const): New.
26328         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
26329         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
26330         * signop.h: New file.
26331         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
26332         (simplify_const_unary_operation): Use wide-int interfaces.
26333         (simplify_binary_operation_1): Likewise.
26334         (simplify_const_binary_operation): Likewise.
26335         (simplify_const_relational_operation): Likewise.
26336         (simplify_immed_subreg): Likewise.
26337         * stmt.c (expand_case): Likewise.
26338         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
26339         signop rather than a bool.
26340         * stor-layout.c (layout_type): Use wide-int interfaces.
26341         (initialize_sizetypes): Update calls to
26342         set_min_and_max_values_for_integral_type.
26343         (set_min_and_max_values_for_integral_type): Take a signop rather
26344         than a bool.  Use wide-int interfaces.
26345         (fixup_signed_type): Update accordingly.  Remove
26346         HOST_BITS_PER_DOUBLE_INT limit.
26347         (fixup_unsigned_type): Likewise.
26348         * system.h (STATIC_CONSTANT_P): New.
26349         (STATIC_ASSERT): New.
26350         * target.def (can_use_doloop_p): Take widest_ints rather than
26351         double_ints.
26352         * target.h: Include wide-int.h rather than double-int.h.
26353         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
26354         than double_ints.
26355         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
26356         rather than INT_CST_LT_UNSIGNED.
26357         (can_use_doloop_if_innermost): Take widest_ints rather than
26358         double_ints.
26359         * tree-affine.c: Include wide-int-print.h.
26360         (double_int_ext_for_comb): Delete.
26361         (wide_int_ext_for_comb): New.
26362         (aff_combination_zero): Use wide-int interfaces.
26363         (aff_combination_const): Take a widest_int instead of a double_int.
26364         (aff_combination_elt): Use wide-int interfaces.
26365         (aff_combination_scale): Take a widest_int instead of a double_int.
26366         (aff_combination_add_elt): Likewise.
26367         (aff_combination_add_cst): Likewise.
26368         (aff_combination_add): Use wide-int interfaces.
26369         (aff_combination_convert): Likewise.
26370         (tree_to_aff_combination): Likewise.
26371         (add_elt_to_tree): Take a widest_int instead of a double_int.
26372         (aff_combination_to_tree): Use wide-int interfaces.
26373         (aff_combination_remove_elt): Likewise.
26374         (aff_combination_add_product): Take a widest_int instead of
26375         a double_int.
26376         (aff_combination_mult): Use wide-int interfaces.
26377         (aff_combination_expand): Likewise.
26378         (double_int_constant_multiple_p): Delete.
26379         (wide_int_constant_multiple_p): New.
26380         (aff_combination_constant_multiple_p): Take a widest_int pointer
26381         instead of a double_int pointer.
26382         (print_aff): Use wide-int interfaces.
26383         (get_inner_reference_aff): Take a widest_int pointer
26384         instead of a double_int pointer.
26385         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
26386         * tree-affine.h: Include wide-int.h.
26387         (struct aff_comb_elt): Change type of coef to widest_int.
26388         (struct affine_tree_combination): Change type of offset to widest_int.
26389         (double_int_ext_for_comb): Delete.
26390         (wide_int_ext_for_comb): New.
26391         (aff_combination_const): Use widest_int instead of double_int.
26392         (aff_combination_scale): Likewise.
26393         (aff_combination_add_elt): Likewise.
26394         (aff_combination_constant_multiple_p): Likewise.
26395         (get_inner_reference_aff): Likewise.
26396         (aff_comb_cannot_overlap_p): Likewise.
26397         (aff_combination_zero_p): Use wide-int interfaces.
26398         * tree.c: Include tree.h.
26399         (init_ttree): Use make_int_cst.
26400         (tree_code_size): Removed code for INTEGER_CST case.
26401         (tree_size): Add INTEGER_CST case.
26402         (make_node_stat): Update comment.
26403         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
26404         (build_int_cst_type): Use wide-int interfaces.
26405         (double_int_to_tree): Likewise.
26406         (double_int_fits_to_tree_p): Delete.
26407         (force_fit_type_double): Delete.
26408         (force_fit_type): New.
26409         (int_cst_hash_hash): Use wide-int interfaces.
26410         (int_cst_hash_eq): Likewise.
26411         (build_int_cst_wide): Delete.
26412         (wide_int_to_tree): New.
26413         (cache_integer_cst): Use wide-int interfaces.
26414         (build_low_bits_mask): Likewise.
26415         (cst_and_fits_in_hwi): Likewise.
26416         (real_value_from_int_cst): Likewise.
26417         (make_int_cst_stat): New.
26418         (integer_zerop): Use wide_int interfaces.
26419         (integer_onep): Likewise.
26420         (integer_all_onesp): Likewise.
26421         (integer_pow2p): Likewise.
26422         (integer_nonzerop): Likewise.
26423         (tree_log2): Likewise.
26424         (tree_floor_log2): Likewise.
26425         (tree_ctz): Likewise.
26426         (int_size_in_bytes): Likewise.
26427         (mem_ref_offset): Return an offset_int rather than a double_int.
26428         (build_type_attribute_qual_variant): Use wide_int interfaces.
26429         (type_hash_eq): Likewise
26430         (tree_int_cst_equal): Likewise.
26431         (tree_int_cst_lt): Delete.
26432         (tree_int_cst_compare): Likewise.
26433         (tree_fits_shwi_p): Use wide_int interfaces.
26434         (tree_fits_uhwi_p): Likewise.
26435         (tree_int_cst_sign_bit): Likewise.
26436         (tree_int_cst_sgn): Likewise.
26437         (tree_int_cst_min_precision): Take a signop rather than a bool.
26438         (simple_cst_equal): Use wide_int interfaces.
26439         (compare_tree_int): Likewise.
26440         (iterative_hash_expr): Likewise.
26441         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
26442         INT_CST_LT.
26443         (get_type_static_bounds): Use wide_int interfaces.
26444         (tree_int_cst_elt_check_failed): New.
26445         (build_common_tree_nodes): Reordered to set prec before filling in
26446         value.
26447         (int_cst_value): Check cst_and_fits_in_hwi.
26448         (widest_int_cst_value): Use wide_int interfaces.
26449         (upper_bound_in_type): Likewise.
26450         (lower_bound_in_type): Likewise.
26451         (num_ending_zeros): Likewise.
26452         (drop_tree_overflow): Likewise.
26453         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
26454         (gen_conditions_for_pow_cst_base): Likewise.
26455         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
26456         (group_case_labels_stmt): Use wide-int interfaces.
26457         (verify_gimple_assign_binary): Likewise.
26458         (print_loop): Likewise.
26459         * tree-chrec.c (tree_fold_binomial): Likewise.
26460         * tree-core.h (struct tree_base): Add int_length.
26461         (struct tree_int_cst): Change rep of value.
26462         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
26463         (dr_may_alias_p): Likewise.
26464         (max_stmt_executions_tree): Likewise.
26465         * tree.def (INTEGER_CST): Update comment.
26466         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
26467         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
26468         * tree-dump.c: Include wide-int.h and wide-int-print.h.
26469         (dequeue_and_dump): Use wide-int interfaces.
26470         * tree.h: Include wide-int.h.
26471         (NULL_TREE): Moved to earlier loc in file.
26472         (TREE_INT_CST_ELT_CHECK): New.
26473         (tree_int_cst_elt_check_failed): New.
26474         (TYPE_SIGN): New.
26475         (TREE_INT_CST): Delete.
26476         (TREE_INT_CST_LOW): Use wide-int interfaces.
26477         (TREE_INT_CST_HIGH): Delete.
26478         (TREE_INT_CST_NUNITS): New.
26479         (TREE_INT_CST_EXT_NUNITS): Likewise.
26480         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
26481         (TREE_INT_CST_ELT): Likewise.
26482         (INT_CST_LT): Delete.
26483         (tree_int_cst_elt_check): New (two forms).
26484         (type_code_size): Update comment.
26485         (make_int_cst_stat, make_int_cst): New.
26486         (tree_to_double_int): Delete.
26487         (double_int_fits_to_tree_p): Delete.
26488         (force_fit_type_double): Delete.
26489         (build_int_cstu): Replace with out-of-line function.
26490         (build_int_cst_wide): Delete.
26491         (tree_int_cst_lt): Define inline.
26492         (tree_int_cst_le): New.
26493         (tree_int_cst_compare): Define inline.
26494         (tree_int_cst_min_precision): Take a signop rather than a bool.
26495         (wi::int_traits <const_tree>): New.
26496         (wi::int_traits <tree>): New.
26497         (wi::extended_tree): New.
26498         (wi::int_traits <wi::extended_tree>): New.
26499         (wi::to_widest): New.
26500         (wi::to_offset): New.
26501         (wi::fits_to_tree_p): New.
26502         (wi::min_value): New.
26503         (wi::max_value): New.
26504         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
26505         (copy_tree_body_r): Likewise.
26506         * tree-object-size.c (compute_object_offset): Likewise.
26507         (addr_object_size): Likewise.
26508         * tree-predcom.c: Include wide-int-print.h.
26509         (struct dref_d): Change type of offset to widest_int.
26510         (dump_dref): Call wide-int printer.
26511         (aff_combination_dr_offset): Use wide-int interfaces.
26512         (determine_offset): Take a widest_int pointer rather than a
26513         double_int pointer.
26514         (split_data_refs_to_components): Use wide-int interfaces.
26515         (suitable_component_p): Likewise.
26516         (order_drefs): Likewise.
26517         (add_ref_to_chain): Likewise.
26518         (valid_initializer_p): Likewise.
26519         (determine_roots_comp): Likewise.
26520         * tree-pretty-print.c: Include wide-int-print.h.
26521         (dump_generic_node): Use wide-int interfaces.
26522         * tree-sra.c (sra_ipa_modify_expr): Likewise.
26523         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
26524         (move_fixed_address_to_symbol): Likewise.
26525         (move_hint_to_base): Likewise.
26526         (move_pointer_to_base): Likewise.
26527         (move_variant_to_index): Likewise.
26528         (most_expensive_mult_to_index): Likewise.
26529         (addr_to_parts): Likewise.
26530         (copy_ref_info): Likewise.
26531         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26532         (indirect_refs_may_alias_p): Likewise.
26533         (stmt_kills_ref_p_1): Likewise.
26534         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
26535         * tree-ssa-ccp.c: Update comment at top of file.  Include
26536         wide-int-print.h.
26537         (struct prop_value_d): Change type of mask to widest_int.
26538         (extend_mask): New function.
26539         (dump_lattice_value): Use wide-int interfaces.
26540         (get_default_value): Likewise.
26541         (set_constant_value): Likewise.
26542         (set_value_varying): Likewise.
26543         (valid_lattice_transition): Likewise.
26544         (set_lattice_value): Likewise.
26545         (value_to_double_int): Delete.
26546         (value_to_wide_int): New.
26547         (get_value_from_alignment): Use wide-int interfaces.
26548         (get_value_for_expr): Likewise.
26549         (do_dbg_cnt): Likewise.
26550         (ccp_finalize): Likewise.
26551         (ccp_lattice_meet): Likewise.
26552         (bit_value_unop_1): Use widest_ints rather than double_ints.
26553         (bit_value_binop_1): Likewise.
26554         (bit_value_unop): Use wide-int interfaces.
26555         (bit_value_binop): Likewise.
26556         (bit_value_assume_aligned): Likewise.
26557         (evaluate_stmt): Likewise.
26558         (ccp_fold_stmt): Likewise.
26559         (visit_cond_stmt): Likewise.
26560         (ccp_visit_stmt): Likewise.
26561         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26562         (constant_pointer_difference): Likewise.
26563         (associate_pointerplus): Likewise.
26564         (combine_conversions): Likewise.
26565         * tree-ssa-loop.h: Include wide-int.h.
26566         (struct tree_niter_desc): Change type of max to widest_int.
26567         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26568         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26569         (remove_redundant_iv_tests): Likewise.
26570         (canonicalize_loop_induction_variables): Likewise.
26571         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26572         (constant_multiple_of): Take a widest_int pointer instead of
26573         a double_int pointer.
26574         (get_computation_aff): Use wide-int interfaces.
26575         (ptr_difference_cost): Likewise.
26576         (difference_cost): Likewise.
26577         (get_loop_invariant_expr_id): Likewise.
26578         (get_computation_cost_at): Likewise.
26579         (iv_elimination_compare_lt): Likewise.
26580         (may_eliminate_iv): Likewise.
26581         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26582         instead of double_int.
26583         (max_loop_iterations): Likewise.
26584         (max_stmt_executions): Likewise.
26585         (estimated_stmt_executions): Likewise.
26586         * tree-ssa-loop-niter.c: Include wide-int-print.h.
26587         (split_to_var_and_offset): Use wide-int interfaces.
26588         (determine_value_range): Likewise.
26589         (bound_difference_of_offsetted_base): Likewise.
26590         (bounds_add): Take a widest_int instead of a double_int.
26591         (number_of_iterations_ne_max): Use wide-int interfaces.
26592         (number_of_iterations_ne): Likewise.
26593         (number_of_iterations_lt_to_ne): Likewise.
26594         (assert_loop_rolls_lt): Likewise.
26595         (number_of_iterations_lt): Likewise.
26596         (number_of_iterations_le): Likewise.
26597         (number_of_iterations_cond): Likewise.
26598         (number_of_iterations_exit): Likewise.
26599         (finite_loop_p): Likewise.
26600         (derive_constant_upper_bound_assign): Likewise.
26601         (derive_constant_upper_bound): Return a widest_int.
26602         (derive_constant_upper_bound_ops): Likewise.
26603         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26604         (record_estimate): Take a widest_int rather than a double_int.
26605         (record_nonwrapping_iv): Use wide-int interfaces.
26606         (double_int_cmp): Delete.
26607         (wide_int_cmp): New.
26608         (bound_index): Take a widest_int rather than a double_int.
26609         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26610         (maybe_lower_iteration_bound): Likewise.
26611         (estimate_numbers_of_iterations_loop): Likewise.
26612         (estimated_loop_iterations): Take a widest_int pointer than than
26613         a double_int pointer.
26614         (estimated_loop_iterations_int): Use wide-int interfaces.
26615         (max_loop_iterations): Take a widest_int pointer than than
26616         a double_int pointer.
26617         (max_loop_iterations_int): Use wide-int interfaces.
26618         (max_stmt_executions): Take a widest_int pointer than than
26619         a double_int pointer.
26620         (estimated_stmt_executions): Likewise.
26621         (n_of_executions_at_most): Use wide-int interfaces.
26622         (scev_probably_wraps_p): Likewise.
26623         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26624         to real_to_integer.
26625         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26626         interfaces.
26627         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26628         double_ints.  Adjust for trailing_wide_ints <3> representation.
26629         (set_nonzero_bits): Likewise.
26630         (get_range_info): Return wide_ints rather than double_ints.
26631         Adjust for trailing_wide_ints <3> representation.
26632         (get_nonzero_bits): Likewise.
26633         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26634         representation.
26635         * tree-ssanames.h (struct range_info_def): Replace min, max and
26636         nonzero_bits with a trailing_wide_ints <3>.
26637         (set_range_info): Use wide_int_refs rather than double_ints.
26638         (set_nonzero_bits): Likewise.
26639         (get_range_info): Return wide_ints rather than double_ints.
26640         (get_nonzero_bits): Likewise.
26641         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
26642         * tree-ssa-pre.c (phi_translate_1): Likewise.
26643         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
26644         (acceptable_pow_call): Likewise.
26645         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
26646         interfaces.
26647         (vn_reference_fold_indirect): Likewise.
26648         (vn_reference_maybe_forwprop_address): Likewise.
26649         (valueize_refs_1): Likewise.
26650         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
26651         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
26652         tree_int_cst_lt and tree_int_cst_le.
26653         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
26654         interfaces.
26655         (streamer_alloc_tree): Likewise.
26656         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
26657         (streamer_write_tree_header): Likewise.
26658         (streamer_write_integer_cst): Likewise.
26659         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26660         (build_constructors): Likewise.
26661         (array_value_type): Likewise.
26662         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26663         (vect_check_gather): Likewise.
26664         * tree-vect-generic.c (build_replicated_const): Likewise.
26665         (expand_vector_divmod): Likewise.
26666         * tree-vect-loop.c (vect_transform_loop): Likewise.
26667         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26668         (vect_do_peeling_for_alignment): Likewise.
26669         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26670         * tree-vrp.c: Include wide-int.h.
26671         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26672         (extract_range_from_assert): Use wide-int interfaces.
26673         (vrp_int_const_binop): Likewise.
26674         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26675         double_int pointers.
26676         (ranges_from_anti_range): Use wide-int interfaces.
26677         (quad_int_cmp): Delete.
26678         (quad_int_pair_sort): Likewise.
26679         (extract_range_from_binary_expr_1): Use wide-int interfaces.
26680         (extract_range_from_unary_expr_1): Likewise.
26681         (adjust_range_with_scev): Likewise.
26682         (masked_increment): Take and return wide_ints rather than double_ints.
26683         (register_edge_assert_for_2): Use wide-int interfaces.
26684         (check_array_ref): Likewise.
26685         (search_for_addr_array): Likewise.
26686         (maybe_set_nonzero_bits): Likewise.
26687         (union_ranges): Pass an integer of the correct type instead of
26688         using integer_one_node.
26689         (intersect_ranges): Likewise.
26690         (simplify_truth_ops_using_ranges): Likewise.
26691         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
26692         (range_fits_type_p): Likewise.
26693         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
26694         a bool.
26695         (simplify_conversion_using_ranges): Use wide-int interfaces.
26696         (simplify_float_conversion_using_ranges): Likewise.
26697         (vrp_finalize): Likewise.
26698         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
26699         (gimple_stringops_transform): Likewise.
26700         * varasm.c (decode_addr_const): Likewise.
26701         (const_hash_1): Likewise.
26702         (const_rtx_hash_1): Likewise
26703         (output_constant): Likewise.
26704         (array_size_for_constructor): Likewise.
26705         (output_constructor_regular_field): Likewise.
26706         (output_constructor_bitfield): Likewise.
26707         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
26708         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
26709         GENERATOR_FILEs.
26710         * gencheck.c: Define BITS_PER_UNIT.
26711         * wide-int.cc: New.
26712         * wide-int.h: New.
26713         * wide-int-print.cc: New.
26714         * wide-int-print.h: New.
26716 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26718         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
26720 2014-05-06  Richard Biener  <rguenther@suse.de>
26722         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
26723         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
26724         (TODO_verify_all): Adjust.
26725         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
26726         TODO_verify_stmts and TODO_verify_rtl_sharing.
26727         * bb-reorder.c: Likewise.
26728         * cfgexpand.c: Likewise.
26729         * cprop.c: Likewise.
26730         * cse.c: Likewise.
26731         * function.c: Likewise.
26732         * fwprop.c: Likewise.
26733         * gcse.c: Likewise.
26734         * gimple-ssa-isolate-paths.c: Likewise.
26735         * gimple-ssa-strength-reduction.c: Likewise.
26736         * ipa-split.c: Likewise.
26737         * loop-init.c: Likewise.
26738         * loop-unroll.c: Likewise.
26739         * lower-subreg.c: Likewise.
26740         * modulo-sched.c: Likewise.
26741         * postreload-gcse.c: Likewise.
26742         * predict.c: Likewise.
26743         * recog.c: Likewise.
26744         * sched-rgn.c: Likewise.
26745         * store-motion.c: Likewise.
26746         * tracer.c: Likewise.
26747         * trans-mem.c: Likewise.
26748         * tree-call-cdce.c: Likewise.
26749         * tree-cfg.c: Likewise.
26750         * tree-cfgcleanup.c: Likewise.
26751         * tree-complex.c: Likewise.
26752         * tree-eh.c: Likewise.
26753         * tree-emutls.c: Likewise.
26754         * tree-if-conv.c: Likewise.
26755         * tree-into-ssa.c: Likewise.
26756         * tree-loop-distribution.c: Likewise.
26757         * tree-object-size.c: Likewise.
26758         * tree-parloops.c: Likewise.
26759         * tree-pass.h: Likewise.
26760         * tree-sra.c: Likewise.
26761         * tree-ssa-ccp.c: Likewise.
26762         * tree-ssa-copy.c: Likewise.
26763         * tree-ssa-copyrename.c: Likewise.
26764         * tree-ssa-dce.c: Likewise.
26765         * tree-ssa-dom.c: Likewise.
26766         * tree-ssa-dse.c: Likewise.
26767         * tree-ssa-forwprop.c: Likewise.
26768         * tree-ssa-ifcombine.c: Likewise.
26769         * tree-ssa-loop-ch.c: Likewise.
26770         * tree-ssa-loop-ivcanon.c: Likewise.
26771         * tree-ssa-loop.c: Likewise.
26772         * tree-ssa-math-opts.c: Likewise.
26773         * tree-ssa-phiopt.c: Likewise.
26774         * tree-ssa-phiprop.c: Likewise.
26775         * tree-ssa-pre.c: Likewise.
26776         * tree-ssa-reassoc.c: Likewise.
26777         * tree-ssa-sink.c: Likewise.
26778         * tree-ssa-strlen.c: Likewise.
26779         * tree-ssa-tail-merge.c: Likewise.
26780         * tree-ssa-uncprop.c: Likewise.
26781         * tree-switch-conversion.c: Likewise.
26782         * tree-tailcall.c: Likewise.
26783         * tree-vect-generic.c: Likewise.
26784         * tree-vectorizer.c: Likewise.
26785         * tree-vrp.c: Likewise.
26786         * tsan.c: Likewise.
26787         * var-tracking.c: Likewise.
26788         * bt-load.c: Likewise.
26789         * cfgcleanup.c: Likewise.
26790         * combine-stack-adj.c: Likewise.
26791         * combine.c: Likewise.
26792         * compare-elim.c: Likewise.
26793         * config/epiphany/resolve-sw-modes.c: Likewise.
26794         * config/i386/i386.c: Likewise.
26795         * config/mips/mips.c: Likewise.
26796         * config/s390/s390.c: Likewise.
26797         * config/sh/sh_treg_combine.cc: Likewise.
26798         * config/sparc/sparc.c: Likewise.
26799         * dce.c: Likewise.
26800         * dse.c: Likewise.
26801         * final.c: Likewise.
26802         * ifcvt.c: Likewise.
26803         * mode-switching.c: Likewise.
26804         * passes.c: Likewise.
26805         * postreload.c: Likewise.
26806         * ree.c: Likewise.
26807         * reg-stack.c: Likewise.
26808         * regcprop.c: Likewise.
26809         * regrename.c: Likewise.
26810         * web.c: Likewise.
26812 2014-05-06  Richard Biener  <rguenther@suse.de>
26814         PR middle-end/61070
26815         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
26816         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
26818 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
26820         PR ipa/60965
26821         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
26823 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
26824             Tom de Vries  <tom@codesourcery.com>
26826         * target.def (call_fusage_contains_non_callee_clobbers): New
26827         DEFHOOKPOD.
26828         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
26829         Hooks to @menu.
26830         (@node Miscellaneous Register Hooks): New node.
26831         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
26832         * doc/tm.texi: Regenerate.
26834 2014-05-05  Marek Polacek  <polacek@redhat.com>
26836         PR driver/61065
26837         * opts.c (common_handle_option): Call error_at instead of warning_at.
26839 2014-05-05  Richard Biener  <rguenther@suse.de>
26841         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
26842         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
26843         under the TODO_verify_il umbrella.
26845 2014-05-05  Richard Biener  <rguenther@suse.de>
26847         * passes.c (execute_function_todo): Move TODO_verify_flow under
26848         the TODO_verify_ul umbrella.
26850 2014-05-05  Richard Biener  <rguenther@suse.de>
26852         PR middle-end/61010
26853         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
26854         X & CST away from a CST that is the mask of a mode.
26856 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26858         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
26859         int argument to enum machine_mode.
26860         (picochip_class_max_nregs): Ditto.
26861         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
26862         (picochip_class_max_nregs): Ditto.
26864 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26866         * target.def: Add new target hook.
26867         * doc/tm.texi: Regenerate.
26868         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
26869         * targhooks.c (default_keep_leaf_when_profiled): New function.
26871         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
26872         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
26874 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
26876         PR tree-optimization/60363
26877         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
26878         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
26879         (update_destination_phis): New parameter.
26880         (create_edge_and_update_destination_phis): Ditto.
26881         (ssa_fix_duplicate_block_edges): Pass new arguments.
26882         (thread_single_edge): Ditto.
26884 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
26886         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
26887         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
26888         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
26889         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
26890         Use RS6000_BTM_HARD_FLOAT.
26891         (BU_MISC_2): Likewise.
26892         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
26893         RS6000_BTM_HARD_FLOAT.
26894         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
26895         is explicitly used.
26896         (rs6000_invalid_builtin): Add hard floating builtin support.
26897         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
26898         hard float builtins.
26899         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
26901 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26903         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
26904         Add missing function* argument.
26906 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26908         * lra-constraints.c (valid_address_p): Move earlier in file.
26909         Add a constraint argument to the address_info version.
26910         (satisfies_memory_constraint_p): New function.
26911         (satisfies_address_constraint_p): Likewise.
26912         (process_alt_operands, curr_insn_transform): Use them.
26913         (process_address): Pass the constraint to valid_address_p when
26914         checking address operands.
26916 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26918         * config/mips/mips.c (mips_isa_rev): New variable.
26919         (mips_set_architecture): Set it.
26920         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
26921         from mips_isa_rev.
26922         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
26923         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
26924         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
26925         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
26926         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
26927         conditions in terms of mips_isa_rev.
26928         (mips_isa_rev): Declare.
26930 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26932         * config/sh/sh-mem.cc: Use tabs instead of spaces.
26933         (prob_unlikely, prob_likely): Make variables const.
26935 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
26937         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
26939 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26941         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
26943 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26945         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
26946         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
26947         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
26948         functions.
26949         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
26950         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
26951         sh_pass_in_reg_p.
26952         Replace usage of ROUND_REG with sh_round_reg.
26953         Use CEIL instead of ROUND_ADVANCE.
26955 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26957         PR target/61026
26958         * config/sh/sh.c: Include stdlib headers before everything else.
26960 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
26962         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
26963         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
26964         (gimplify_adjust_omp_clauses): Simd region is never
26965         directly nested in combined parallel.  Instead, for linear
26966         with copyin/copyout, if in combined for simd loop, make decl
26967         firstprivate/lastprivate on OMP_FOR.
26968         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
26969         expand_omp_for_static_chunk): When setting endvar, also set
26970         fd->loop.v to the same value.
26972 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26974         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
26976 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
26978         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
26979         expression.
26981 2014-05-02  Marek Polacek  <polacek@redhat.com>
26983         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
26985 2014-05-02  Kito Cheng  <kito@0xlab.org>
26987         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
26988         to a C expression marco.
26989         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
26990         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
26991         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
26992         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
26993         HONOR_REG_ALLOC_ORDER.
26994         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
26996 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26998         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27000 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27002         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27004 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
27006         * tree-if-conv.c (is_cond_scalar_reduction): New function.
27007         (convert_scalar_cond_reduction): Likewise.
27008         (predicate_scalar_phi): Add recognition and transformation
27009         of simple conditioanl reduction to be vectorizable.
27011 2014-05-01  Marek Polacek  <polacek@redhat.com>
27013         PR c/43245
27014         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27016 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
27018         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27019         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27020         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27021         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27022         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27023         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27024         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27025         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27027 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
27029         * config/arc/arc.opt (mlra): Move comment above option name
27030         to avoid mis-parsing as language options.
27032 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27034         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27035         * config/sol2.h: ... here.
27036         * config/sol2-10.h: Remove.
27038         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27039         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27040         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27041         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27042         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27043         * config/sol2.h: ... here.
27044         (SECTION_NAME_FORMAT): Don't redefine.
27045         (STARTFILE_ARCH32_SPEC): Rename to ...
27046         (STARTFILE_ARCH_SPEC): ... this.
27047         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27048         * config/sparc/sol2.h: ... here.
27049         (SECTION_NAME_FORMAT): Don't undef.
27050         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27051         (SUBTARGET_EXTRA_SPECS): Remove.
27052         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27054         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27055         (MD_STARTFILE_PREFIX): Remove.
27056         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27057         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27058         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27059         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27060         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27061         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27062         * config/i386/sol2.h: ... here.
27063         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27064         * config/i386/sol2-bi.h: Remove.
27065         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27066         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27068         * config/i386/t-sol2-64: Rename to ...
27069         * config/i386/t-sol2: ... this.
27070         * config/sparc/t-sol2-64: Rename to ...
27071         * config/sparc/t-sol2: ... this.
27073         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27074         sol2_tm_file_head, sol2_tm_file_tail.
27075         Include ${cpu_type}/sol2.h before sol2.h.
27076         Remove sol2-10.h.
27077         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27078         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27079         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27080         Reflect i386/t-sol2-64 renaming.
27081         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27082         Reflect sparc/t-sol2-64 renaming.
27084 2014-04-30  Richard Biener  <rguenther@suse.de>
27086         * passes.c (execute_function_todo): Move TODO_verify_stmts
27087         and TODO_verify_ssa under the TODO_verify_il umbrella.
27088         * tree-ssa.h (verify_ssa): Adjust prototype.
27089         * tree-ssa.c (verify_ssa): Add parameter to tell whether
27090         we should verify SSA operands.
27091         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27092         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27093         whether we should verify whether not throwing stmts have EH info.
27094         * graphite-scop-detection.c (create_sese_edges): Adjust.
27095         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27096         * tree-eh.c (lower_try_finally_switch): Do not add the
27097         default case label twice.
27099 2014-04-30  Marek Polacek  <polacek@redhat.com>
27101         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27102         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27103         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27104         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27106 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
27108         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27109         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27110         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27111         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27112         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27113         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27114         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27115         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27117 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
27119         * tree-cfg.c (dump_function_to_file): Dump the return type of
27120         functions, in a line to itself before the function body, mimicking
27121         the layout of a C function.
27123 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
27125         PR tree-optimization/60971
27126         * tree-tailcall.c (process_assignment): Reject conversions which
27127         reduce precision.
27129 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27131         * calls.c (initialize_argument_information): Always treat
27132         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27133         (expand_call): Likewise.
27134         (emit_library_call_calue_1): Likewise.
27135         * expr.c (PUSH_ARGS_REVERSED): Do not define.
27136         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27137         code accordingly.
27139 2014-04-29  Nick Clifton  <nickc@redhat.com>
27141         * config/msp430/msp430.md (umulsidi): Fix typo.
27142         (mulhisi3): Enable even inside interrupt handlers.
27143         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27144         bigger return address pushed in large mode.
27146 2014-04-29  Nick Clifton  <nickc@redhat.com>
27148         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27149         (arc_init_reg_tables): Use a machine_mode enum to iterate over
27150         available modes.
27151         * config/m32r/m32r.c (init_reg_tables): Likewise.
27152         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27153         enum to hold the modes.
27155 2014-04-29  Richard Biener  <rguenther@suse.de>
27157         * dominance.c (free_dominance_info): Add overload with
27158         function parameter.
27159         (dom_info_state): Likewise.
27160         (dom_info_available_p): Likewise.
27161         * basic-block.h (free_dominance_info, dom_info_state,
27162         dom_info_available_p): Declare overloads.
27163         * passes.c (execute_function_todo): Verify that verifiers
27164         don't change dominator info state.  Drop dominator info
27165         for IPA pass invocations.
27166         * cgraph.c (release_function_body): Restore asserts that
27167         dominator information is released.
27169 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
27171         * doc/invoke.texi: Fix typo.
27172         * tree-vrp.c: Fix typos.
27173         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
27175 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27177         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
27179 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
27181         * config/aarch64/aarch64-builtins.c
27182         (aarch64_types_storestruct_lane_qualifiers): New.
27183         (TYPES_STORESTRUCT_LANE): Likewise.
27184         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
27185         (st3_lane): Likewise.
27186         (st4_lane): Likewise.
27187         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
27188         (vec_store_lanesci_lane<mode>): Likewise.
27189         (vec_store_lanesxi_lane<mode>): Likewise.
27190         (aarch64_st2_lane<VQ:mode>): Likewise.
27191         (aarch64_st3_lane<VQ:mode>): Likewise.
27192         (aarch64_st4_lane<VQ:mode>): Likewise.
27193         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
27194         * config/aarch64/arm_neon.h
27195         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27196         use new macro arguments.
27197         (__ST3_LANE_FUNC): Likewise.
27198         (__ST4_LANE_FUNC): Likewise.
27199         * config/aarch64/iterators.md (V_TWO_ELEM): New.
27200         (V_THREE_ELEM): Likewise.
27201         (V_FOUR_ELEM): Likewise.
27203 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
27205         * doc/gimple.texi: Replace the description of the now-defunct
27206         union gimple_statement_d with a diagram showing the
27207         gimple_statement_base class hierarchy and its relationships to
27208         the GSS_ and GIMPLE_ enums.
27210 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
27212         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27213         * config/aarch64/aarch64.c
27214         (aarch64_cannot_change_mode_class): Weaken conditions.
27215         (aarch64_modes_tieable_p): New.
27216         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27218 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
27220         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27221         (loadsync_<mode>): Change mode.
27222         (load_quadpti, store_quadpti): New.
27223         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27224         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27226 2014-04-28  Martin Jambor  <mjambor@suse.cz>
27228         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27229         same alias type as the original statement.
27230         (subreplacement_assignment_data): New type.
27231         (handle_unscalarized_data_in_subtree): New type of parameter,
27232         generate new memory accesses with same alias type as the original
27233         statement.
27234         (load_assign_lhs_subreplacements): Likewise.
27235         (sra_modify_constructor_assign): Generate new memory accesses with
27236         same alias type as the original statement.
27238 2014-04-28  Richard Biener  <rguenther@suse.de>
27240         * tree-pass.h (TODO_verify_il): Define.
27241         (TODO_verify_all): Complete properly.
27242         * passes.c (execute_function_todo): Move existing loop-closed
27243         SSA verification under TODO_verify_il.
27244         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27245         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27246         Fix tree sharing issue.
27248 2014-04-28  Richard Biener  <rguenther@suse.de>
27250         PR middle-end/60092
27251         * builtins.def (DEF_C11_BUILTIN): Add.
27252         (BUILT_IN_ALIGNED_ALLOC): Likewise.
27253         * coretypes.h (enum function_class): Add function_c11_misc.
27254         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27255         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27256         (call_may_clobber_ref_p_1): Likewise.
27257         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27258         (mark_all_reaching_defs_necessary_1): Likewise.
27259         (propagate_necessity): Likewise.
27260         (eliminate_unnecessary_stmts): Likewise.
27261         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27263 2014-04-28  Richard Biener  <rguenther@suse.de>
27265         * tree-vrp.c (vrp_var_may_overflow): Remove.
27266         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27267         with overflow immediately bump to one before that value and
27268         let iteration figure out overflow status.
27270 2014-04-28  Richard Biener  <rguenther@suse.de>
27272         * configure.ac: Do valgrind header checks unconditionally.
27273         Add --enable-valgrind-annotations.
27274         * system.h: Guard valgrind header inclusion with
27275         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27276         * alloc-pool.c (pool_alloc, pool_free): Use
27277         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27278         to guard possibly dead code.
27279         * config.in: Regenerated.
27280         * configure: Likewise.
27282 2014-04-28  Jeff Law  <law@redhat.com>
27284         PR tree-optimization/60902
27285         * tree-ssa-threadedge.c
27286         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27287         over real defs when invalidating outputs from statements that do not
27288         produce useful outputs for threading.
27290 2014-04-28  Richard Biener  <rguenther@suse.de>
27292         PR tree-optimization/60979
27293         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27294         SCOPs that end in a block with a successor with abnormal
27295         predecessors.
27297 2014-04-28  Richard Biener  <rguenther@suse.de>
27299         * tree-pass.h (execute_pass_list): Adjust prototype.
27300         * passes.c (pass_manager::execute_early_local_passes): Adjust.
27301         (do_per_function): Change callback signature, push all actual
27302         work to the callbals.
27303         (do_per_function_toporder): Likewise.
27304         (execute_function_dump): Adjust.
27305         (execute_function_todo): Likewise.
27306         (clear_last_verified): Likewise.
27307         (verify_curr_properties): Likewise.
27308         (update_properties_after_pass): Likewise.
27309         (execute_pass_list_1): Split out from ...
27310         (execute_pass_list): ... here.  Adjust.
27311         (execute_ipa_pass_list): Likewise.
27312         * cgraphunit.c (cgraph_add_new_function): Adjust.
27313         (analyze_function): Likewise.
27314         (expand_function): Likewise.
27315         * cgraph.c (release_function_body): Free dominance info
27316         here instead of asserting it was magically freed elsewhere.
27318 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27320         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
27321         * configure: Regenerate.
27322         * config/sparc/sparc.opt (muser-mode): New option.
27323         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
27324         for LEON3.
27325         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
27326         * doc/invoke.texi (SPARC options): Document -muser-mode.
27328 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
27330         * cselib.c (find_slot_memmode): Delete.
27331         (cselib_hasher): Change compare_type to a struct.
27332         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
27333         constants.
27334         (preserve_constants_and_equivs): Adjust for new compare_type.
27335         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
27336         (wrap_constant): Delete.
27337         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
27339 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
27341         * doc/install.texi (Building with profile feedback): Remove
27342         outdated sentence.
27344 2014-04-26  Tom de Vries  <tom@codesourcery.com>
27346         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
27347         array accesses.
27349 2014-04-25  Cary Coutant  <ccoutant@google.com>
27351         PR debug/60929
27352         * dwarf2out.c (should_move_die_to_comdat): A type definition
27353         can contain a subprogram definition, but don't move it to a
27354         comdat unit.
27355         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
27356         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
27357         from original DIE.
27358         (clone_tree_hash): Rename to...
27359         (clone_tree_partial): ...this; change callers.  Copy
27360         DW_TAG_subprogram DIEs as declarations.
27361         (copy_decls_walk): Don't copy children of a declaration into a
27362         type unit.
27364 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
27366         PR target/60969
27367         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
27368         alternative 12.
27370 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
27372         * config/arm/predicates.md (call_insn_operand): Add long_call check.
27373         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
27374         reg for long_call.
27375         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
27376         restriction.
27378 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27380         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
27382 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27384         PR tree-optimization/60930
27385         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
27386         creating a multiply candidate by folding two constant
27387         multiplicands when the result overflows.
27389 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
27391         PR tree-optimization/60960
27392         * tree-vect-generic.c (expand_vector_operation): Only call
27393         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
27395 2014-04-25  Tom de Vries  <tom@codesourcery.com>
27397         * expr.c (clobber_reg_mode): New function.
27398         * expr.h (clobber_reg): New function.
27400 2014-04-25  Tom de Vries  <tom@codesourcery.com>
27402         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
27403         clobbers.
27405 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
27406             Tom de Vries  <tom@codesourcery.com>
27408         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
27409         handle.
27410         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
27411         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
27412         new argument to find_all_hard_reg_sets call.
27414 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27416         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
27417         Use HOST_WIDE_INT_C for mask literal.
27418         (aarch_rev16_shleft_mask_imm_p): Likewise.
27420 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
27422         PR target/60941
27423         * config/sparc/sparc.md (ashlsi3_extend): Delete.
27425 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
27427         PR preprocessor/56540
27428         * config/i386/i386-c.c (ix86_target_macros): Define
27429         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
27431 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27433         * configure.ac (tga_func): Remove.
27434         (LIB_TLS_SPEC): Remove.
27435         * configure: Regenerate.
27436         * config.in: Regenerate.
27437         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
27439 2014-04-25  Richard Biener  <rguenther@suse.de>
27441         PR ipa/60912
27442         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
27443         call stmt use/clobber sets during stmt walk instead of
27444         walking the possibly incomplete set of caller edges.
27446 2014-04-25  Richard Biener  <rguenther@suse.de>
27448         PR ipa/60911
27449         * passes.c (apply_ipa_transforms): Inline into only caller ...
27450         (execute_one_pass): ... here.  Properly bring in function
27451         bodies for nodes we want to apply IPA transforms to.
27453 2014-04-24  Cong Hou  <congh@google.com>
27455         PR tree-optimization/60896
27456         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
27457         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
27458         (vect_mark_pattern_stmts): Set the def type of all statements in
27459         PATTERN_DEF_SEQ as vect_internal_def.
27461 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
27463         * doc/extend.texi (PowerPC Built-in Functions): Document new
27464         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
27465         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
27467         * config/rs6000/predicates.md (const_0_to_3_operand): New
27468         predicate to match 0..3 integer constants.
27470         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
27471         to support adding miscellaneous builtin functions.
27472         (BU_DFP_MISC_2): Likewise.
27473         (BU_P7_MISC_1): Likewise.
27474         (BU_P7_MISC_2): Likewise.
27475         (BU_P8V_MISC_3): Likewise.
27476         (BU_MISC_1): Likewise.
27477         (BU_MISC_2): Likewise.
27478         (DIVWE): Add extended divide builtin functions.
27479         (DIVWEO): Likewise.
27480         (DIVWEU): Likewise.
27481         (DIVWEUO): Likewise.
27482         (DIVDE): Likewise.
27483         (DIVDEO): Likewise.
27484         (DIVDEU): Likewise.
27485         (DIVDEUO): Likewise.
27486         (DXEX): Add decimal floating-point builtin functions.
27487         (DXEXQ): Likewise.
27488         (DDEDPD): Likewise.
27489         (DDEDPDQ): Likewise.
27490         (DENBCD): Likewise.
27491         (DENBCDQ): Likewise.
27492         (DIEX): Likewise.
27493         (DIEXQ): Likewise.
27494         (DSCLI): Likewise.
27495         (DSCLIQ): Likewise.
27496         (DSCRI): Likewise.
27497         (DSCRIQ): Likewise.
27498         (CDTBCD): Add new BCD builtin functions.
27499         (CBCDTD): Likewise.
27500         (ADDG6S): Likewise.
27501         (BCDADD): Likewise.
27502         (BCDADD_LT): Likewise.
27503         (BCDADD_EQ): Likewise.
27504         (BCDADD_GT): Likewise.
27505         (BCDADD_OV): Likewise.
27506         (BCDSUB): Likewise.
27507         (BCDSUB_LT): Likewise.
27508         (BCDSUB_EQ): Likewise.
27509         (BCDSUB_GT): Likewise.
27510         (BCDSUB_OV): Likewise.
27511         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
27512         (UNPACK_TD): Likewise.
27513         (PACK_TF): Likewise.
27514         (UNPACK_TF): Likewise.
27515         (UNPACK_TF_0): Likewise.
27516         (UNPACK_TF_1): Likewise.
27517         (PACK_V1TI): Likewise.
27518         (UNPACK_V1TI): Likewise.
27520         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27521         support for decimal floating point builtin functions.
27522         (rs6000_expand_ternop_builtin): Add checks for the new builtin
27523         functions that take constant arguments.
27524         (rs6000_invalid_builtin): Add decimal floating point builtin support.
27525         (rs6000_init_builtins): Setup long double, _Decimal64, and
27526         _Decimal128 types for new builtin functions.
27527         (builtin_function_type): Set the unsigned flags appropriately for
27528         the new builtin functions.
27529         (rs6000_opt_masks): Add support for decimal floating point builtin
27530         functions.
27532         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
27533         floating point builtin functions.
27534         (RS6000_BTM_COMMON): Likewise.
27535         (RS6000_BTI_long_double): Likewise.
27536         (RS6000_BTI_dfloat64): Likewise.
27537         (RS6000_BTI_dfloat128): Likewise.
27538         (long_double_type_internal_node): Likewise.
27539         (dfloat64_type_internal_node): Likewise.
27540         (dfloat128_type_internal_node): Likewise.
27542         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
27543         2.07 bcd arithmetic instructions.
27544         (UNSPEC_BCDSUB): Likewise.
27545         (UNSPEC_BCD_OVERFLOW): Likewise.
27546         (UNSPEC_BCD_ADD_SUB): Likewise.
27547         (bcd_add_sub): Likewise.
27548         (BCD_TEST): Likewise.
27549         (bcd<bcd_add_sub>): Likewise.
27550         (bcd<bcd_add_sub>_test): Likewise.
27551         (bcd<bcd_add_sub>_test2): Likewise.
27552         (bcd<bcd_add_sub>_<code>): Likewise.
27553         (peephole2 for combined bcd ops): Likewise.
27555         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27556         decimal floating point builtin functions.
27557         (UNSPEC_DENBCD): Likewise.
27558         (UNSPEC_DXEX): Likewise.
27559         (UNSPEC_DIEX): Likewise.
27560         (UNSPEC_DSCLI): Likewise.
27561         (UNSPEC_DSCRI): Likewise.
27562         (D64_D128): Likewise.
27563         (dfp_suffix): Likewise.
27564         (dfp_ddedpd_<mode>): Likewise.
27565         (dfp_denbcd_<mode>): Likewise.
27566         (dfp_dxex_<mode>): Likewise.
27567         (dfp_diex_<mode>): Likewise.
27568         (dfp_dscli_<mode>): Likewise.
27569         (dfp_dscri_<mode>): Likewise.
27571         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27572         builtin functions.
27573         (UNSPEC_CDTBCD): Likewise.
27574         (UNSPEC_CBCDTD): Likewise.
27575         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27576         (UNSPEC_DIVEO): Likewise.
27577         (UNSPEC_DIVEU): Likewise.
27578         (UNSPEC_DIVEUO): Likewise.
27579         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27580         pack/unpack 128-bit types.
27581         (UNSPEC_PACK_128BIT): Likewise.
27582         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27583         (udiv<mode>3): Use idiv_ldiv mode attribute.
27584         (div<mode>3): Likewise.
27585         (addg6s): Add new BCD builtin functions.
27586         (cdtbcd): Likewise.
27587         (cbcdtd): Likewise.
27588         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27589         (div_extend): Likewise.
27590         (div<div_extend>_<mode>"): Likewise.
27591         (FP128_64): Add support for new builtin functions to pack/unpack
27592         128-bit types.
27593         (unpack<mode>): Likewise.
27594         (unpacktf_0): Likewise.
27595         (unpacktf_1): Likewise.
27596         (unpack<mode>_dm): Likewise.
27597         (unpack<mode>_nodm): Likewise.
27598         (pack<mode>): Likewise.
27599         (unpackv1ti): Likewise.
27600         (packv1ti): Likewise.
27602 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
27604         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27605         is disabled.
27607 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
27609         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27610         * gimplify.c (omp_is_private): Change last argument's type to int.
27611         Only diagnose lastprivate if the simd argument is 1, only diagnose
27612         linear if the simd argument is 2.
27613         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
27614         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
27615         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
27616         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27617         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27618         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27619         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27620         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27621         * tree-nested.c (convert_nonlocal_omp_clauses,
27622         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27624 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
27626         PR target/60822
27627         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27628         operand 1.
27630 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
27632         * flag-types.h (enum ivar_visibility): Add.
27634 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
27636         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27637         function * argument.
27639 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
27641         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
27643 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
27644             Tom de Vries  <tom@codesourcery.com>
27646         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
27647         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
27648         reg-note.
27649         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
27650         * emit-rtl.c (try_split): Same.
27652 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
27653             Tom de Vries  <tom@codesourcery.com>
27655         * common.opt (fuse-caller-save): New option.
27657 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
27659         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27660         elements for big-endian.
27662 2014-04-24  Richard Biener  <rguenther@suse.de>
27664         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27665         during TER and instead use the sepops interface for expanding
27666         non-GIMPLE_SINGLE_RHS.
27668 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27670         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27671         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27673 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27675         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27676         assembler 64-bit option.
27677         * configure: Regenerate.
27679 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27681         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27682         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27683         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27684         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27685         (TARGET_CRYPTO): Take TARGET_SIMD into account.
27687 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27689         * config/aarch64/aarch64-builtins.c
27690         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
27691         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
27692         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
27693         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
27694         builtins.
27695         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
27696         (Vrevsuff): New mode attribute.
27698 2014-04-24  Terry Guo  <terry.guo@arm.com>
27700         * config/arm/arm.h (machine_function): Define variable
27701         after_arm_reorg here.
27702         * config/arm/arm.c (after_arm_reorg): Remove the definition.
27703         (arm_split_constant): Update the way to access variable
27704         after_arm_reorg.
27705         (arm_reorg): Ditto.
27706         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
27708 2014-04-23  Tom de Vries  <tom@codesourcery.com>
27710         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
27712 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
27714         * is-a.h: Update comments to reflect the following changes to the
27715         "pointerness" of the API, making the template parameter match the
27716         return type, allowing use of is-a.h with typedefs of pointers.
27717         (is_a_helper::cast): Return a T rather then a pointer to a T, so
27718         that the return type matches the parameter to the is_a_helper.
27719         (as_a): Likewise.
27720         (dyn_cast): Likewise.
27722         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
27723         pointer from the is-a.h API.
27725         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
27726         (is_a_helper <cgraph_node *>::test): ...this, matching change to
27727         is-a.h API.
27728         (is_a_helper <varpool_node>::test): Likewise, convert to...
27729         (is_a_helper <varpool_node *>::test): ...this.
27731         (varpool_first_variable): Update for removal of implicit pointer
27732         from the is-a.h API.
27733         (varpool_next_variable): Likewise.
27734         (varpool_first_static_initializer): Likewise.
27735         (varpool_next_static_initializer): Likewise.
27736         (varpool_first_defined_variable): Likewise.
27737         (varpool_next_defined_variable): Likewise.
27738         (cgraph_first_defined_function): Likewise.
27739         (cgraph_next_defined_function): Likewise.
27740         (cgraph_first_function): Likewise.
27741         (cgraph_next_function): Likewise.
27742         (cgraph_first_function_with_gimple_body): Likewise.
27743         (cgraph_next_function_with_gimple_body): Likewise.
27744         (cgraph_alias_target): Likewise.
27745         (varpool_alias_target): Likewise.
27746         (cgraph_function_or_thunk_node): Likewise.
27747         (varpool_variable_node): Likewise.
27748         (symtab_real_symbol_p): Likewise.
27749         * cgraphunit.c (referred_to_p): Likewise.
27750         (analyze_functions): Likewise.
27751         (handle_alias_pairs): Likewise.
27752         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
27753         * gimple-ssa.h (gimple_vuse_op): Likewise.
27754         (gimple_vdef_op): Likewise.
27755         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
27756         * gimple.c (gimple_build_asm_1): Likewise.
27757         (gimple_build_try): Likewise.
27758         (gimple_build_resx): Likewise.
27759         (gimple_build_eh_dispatch): Likewise.
27760         (gimple_build_omp_for): Likewise.
27761         (gimple_omp_for_set_clauses): Likewise.
27763         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
27764         (is_a_helper <gimple_statement_asm *>::test): ...this.
27765         (is_a_helper <gimple_statement_bind>::test): Convert to...
27766         (is_a_helper <gimple_statement_bind *>::test): ...this.
27767         (is_a_helper <gimple_statement_call>::test): Convert to...
27768         (is_a_helper <gimple_statement_call *>::test): ...this.
27769         (is_a_helper <gimple_statement_catch>::test): Convert to...
27770         (is_a_helper <gimple_statement_catch *>::test): ...this.
27771         (is_a_helper <gimple_statement_resx>::test): Convert to...
27772         (is_a_helper <gimple_statement_resx *>::test): ...this.
27773         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
27774         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
27775         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
27776         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
27777         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
27778         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
27779         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
27780         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
27781         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
27782         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
27783         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
27784         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
27785         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
27786         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
27787         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
27788         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
27789         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
27790         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
27791         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
27792         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
27793         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
27794         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
27795         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
27796         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
27797         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
27798         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
27799         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
27800         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
27801         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
27802         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
27803         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
27804         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
27805         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
27806         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
27807         (is_a_helper <gimple_statement_phi>::test): Convert to...
27808         (is_a_helper <gimple_statement_phi *>::test): ...this.
27809         (is_a_helper <gimple_statement_transaction>::test): Convert to...
27810         (is_a_helper <gimple_statement_transaction *>::test): ...this.
27811         (is_a_helper <gimple_statement_try>::test): Convert to...
27812         (is_a_helper <gimple_statement_try *>::test): ...this.
27813         (is_a_helper <gimple_statement_wce>::test): Convert to...
27814         (is_a_helper <gimple_statement_wce *>::test): ...this.
27815         (is_a_helper <const gimple_statement_asm>::test): Convert to...
27816         (is_a_helper <const gimple_statement_asm *>::test): ...this.
27817         (is_a_helper <const gimple_statement_bind>::test): Convert to...
27818         (is_a_helper <const gimple_statement_bind *>::test): ...this.
27819         (is_a_helper <const gimple_statement_call>::test): Convert to...
27820         (is_a_helper <const gimple_statement_call *>::test): ...this.
27821         (is_a_helper <const gimple_statement_catch>::test): Convert to...
27822         (is_a_helper <const gimple_statement_catch *>::test): ...this.
27823         (is_a_helper <const gimple_statement_resx>::test): Convert to...
27824         (is_a_helper <const gimple_statement_resx *>::test): ...this.
27825         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
27826         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
27827         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
27828         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
27829         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
27830         Convert to...
27831         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
27832         ...this.
27833         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
27834         Convert to...
27835         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
27836         ...this.
27837         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
27838         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
27839         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
27840         to...
27841         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
27842         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
27843         to...
27844         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
27845         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
27846         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
27847         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
27848         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
27849         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
27850         to...
27851         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
27852         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
27853         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
27854         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
27855         to...
27856         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
27857         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
27858         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
27859         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
27860         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
27861         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
27862         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
27863         (is_a_helper <const gimple_statement_phi>::test): Convert to...
27864         (is_a_helper <const gimple_statement_phi *>::test): ...this.
27865         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
27866         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
27867         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
27868         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
27869         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
27870         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
27871         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
27872         to...
27873         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
27874         ...this.
27875         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
27876         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
27878         (gimple_use_ops): Update for removal of implicit pointer from the
27879         is-a.h API.
27880         (gimple_set_use_ops): Likewise.
27881         (gimple_vuse): Likewise.
27882         (gimple_vdef): Likewise.
27883         (gimple_vuse_ptr): Likewise.
27884         (gimple_vdef_ptr): Likewise.
27885         (gimple_set_vuse): Likewise.
27886         (gimple_set_vdef): Likewise.
27887         (gimple_omp_return_set_lhs): Likewise.
27888         (gimple_omp_return_lhs): Likewise.
27889         (gimple_omp_return_lhs_ptr): Likewise.
27890         (gimple_call_fntype): Likewise.
27891         (gimple_call_set_fntype): Likewise.
27892         (gimple_call_set_internal_fn): Likewise.
27893         (gimple_call_use_set): Likewise.
27894         (gimple_call_clobber_set): Likewise.
27895         (gimple_bind_vars): Likewise.
27896         (gimple_bind_set_vars): Likewise.
27897         (gimple_bind_body_ptr): Likewise.
27898         (gimple_bind_set_body): Likewise.
27899         (gimple_bind_add_stmt): Likewise.
27900         (gimple_bind_block): Likewise.
27901         (gimple_bind_set_block): Likewise.
27902         (gimple_asm_ninputs): Likewise.
27903         (gimple_asm_noutputs): Likewise.
27904         (gimple_asm_nclobbers): Likewise.
27905         (gimple_asm_nlabels): Likewise.
27906         (gimple_asm_input_op): Likewise.
27907         (gimple_asm_input_op_ptr): Likewise.
27908         (gimple_asm_output_op): Likewise.
27909         (gimple_asm_output_op_ptr): Likewise.
27910         (gimple_asm_set_output_op): Likewise.
27911         (gimple_asm_clobber_op): Likewise.
27912         (gimple_asm_set_clobber_op): Likewise.
27913         (gimple_asm_label_op): Likewise.
27914         (gimple_asm_set_label_op): Likewise.
27915         (gimple_asm_string): Likewise.
27916         (gimple_catch_types): Likewise.
27917         (gimple_catch_types_ptr): Likewise.
27918         (gimple_catch_handler_ptr): Likewise.
27919         (gimple_catch_set_types): Likewise.
27920         (gimple_catch_set_handler): Likewise.
27921         (gimple_eh_filter_types): Likewise.
27922         (gimple_eh_filter_types_ptr): Likewise.
27923         (gimple_eh_filter_failure_ptr): Likewise.
27924         (gimple_eh_filter_set_types): Likewise.
27925         (gimple_eh_filter_set_failure): Likewise.
27926         (gimple_eh_must_not_throw_fndecl): Likewise.
27927         (gimple_eh_must_not_throw_set_fndecl): Likewise.
27928         (gimple_eh_else_n_body_ptr): Likewise.
27929         (gimple_eh_else_e_body_ptr): Likewise.
27930         (gimple_eh_else_set_n_body): Likewise.
27931         (gimple_eh_else_set_e_body): Likewise.
27932         (gimple_try_eval_ptr): Likewise.
27933         (gimple_try_cleanup_ptr): Likewise.
27934         (gimple_try_set_eval): Likewise.
27935         (gimple_try_set_cleanup): Likewise.
27936         (gimple_wce_cleanup_ptr): Likewise.
27937         (gimple_wce_set_cleanup): Likewise.
27938         (gimple_phi_capacity): Likewise.
27939         (gimple_phi_num_args): Likewise.
27940         (gimple_phi_result): Likewise.
27941         (gimple_phi_result_ptr): Likewise.
27942         (gimple_phi_set_result): Likewise.
27943         (gimple_phi_arg): Likewise.
27944         (gimple_phi_set_arg): Likewise.
27945         (gimple_resx_region): Likewise.
27946         (gimple_resx_set_region): Likewise.
27947         (gimple_eh_dispatch_region): Likewise.
27948         (gimple_eh_dispatch_set_region): Likewise.
27949         (gimple_omp_critical_name): Likewise.
27950         (gimple_omp_critical_name_ptr): Likewise.
27951         (gimple_omp_critical_set_name): Likewise.
27952         (gimple_omp_for_clauses): Likewise.
27953         (gimple_omp_for_clauses_ptr): Likewise.
27954         (gimple_omp_for_set_clauses): Likewise.
27955         (gimple_omp_for_collapse): Likewise.
27956         (gimple_omp_for_index): Likewise.
27957         (gimple_omp_for_index_ptr): Likewise.
27958         (gimple_omp_for_set_index): Likewise.
27959         (gimple_omp_for_initial): Likewise.
27960         (gimple_omp_for_initial_ptr): Likewise.
27961         (gimple_omp_for_set_initial): Likewise.
27962         (gimple_omp_for_final): Likewise.
27963         (gimple_omp_for_final_ptr): Likewise.
27964         (gimple_omp_for_set_final): Likewise.
27965         (gimple_omp_for_incr): Likewise.
27966         (gimple_omp_for_incr_ptr): Likewise.
27967         (gimple_omp_for_set_incr): Likewise.
27968         (gimple_omp_for_pre_body_ptr): Likewise.
27969         (gimple_omp_for_set_pre_body): Likewise.
27970         (gimple_omp_parallel_clauses): Likewise.
27971         (gimple_omp_parallel_clauses_ptr): Likewise.
27972         (gimple_omp_parallel_set_clauses): Likewise.
27973         (gimple_omp_parallel_child_fn): Likewise.
27974         (gimple_omp_parallel_child_fn_ptr): Likewise.
27975         (gimple_omp_parallel_set_child_fn): Likewise.
27976         (gimple_omp_parallel_data_arg): Likewise.
27977         (gimple_omp_parallel_data_arg_ptr): Likewise.
27978         (gimple_omp_parallel_set_data_arg): Likewise.
27979         (gimple_omp_task_clauses): Likewise.
27980         (gimple_omp_task_clauses_ptr): Likewise.
27981         (gimple_omp_task_set_clauses): Likewise.
27982         (gimple_omp_task_child_fn): Likewise.
27983         (gimple_omp_task_child_fn_ptr): Likewise.
27984         (gimple_omp_task_set_child_fn): Likewise.
27985         (gimple_omp_task_data_arg): Likewise.
27986         (gimple_omp_task_data_arg_ptr): Likewise.
27987         (gimple_omp_task_set_data_arg): Likewise.
27988         (gimple_omp_taskreg_clauses): Likewise.
27989         (gimple_omp_taskreg_clauses_ptr): Likewise.
27990         (gimple_omp_taskreg_set_clauses): Likewise.
27991         (gimple_omp_taskreg_child_fn): Likewise.
27992         (gimple_omp_taskreg_child_fn_ptr): Likewise.
27993         (gimple_omp_taskreg_set_child_fn): Likewise.
27994         (gimple_omp_taskreg_data_arg): Likewise.
27995         (gimple_omp_taskreg_data_arg_ptr): Likewise.
27996         (gimple_omp_taskreg_set_data_arg): Likewise.
27997         (gimple_omp_task_copy_fn): Likewise.
27998         (gimple_omp_task_copy_fn_ptr): Likewise.
27999         (gimple_omp_task_set_copy_fn): Likewise.
28000         (gimple_omp_task_arg_size): Likewise.
28001         (gimple_omp_task_arg_size_ptr): Likewise.
28002         (gimple_omp_task_set_arg_size): Likewise.
28003         (gimple_omp_task_arg_align): Likewise.
28004         (gimple_omp_task_arg_align_ptr): Likewise.
28005         (gimple_omp_task_set_arg_align): Likewise.
28006         (gimple_omp_single_clauses): Likewise.
28007         (gimple_omp_single_clauses_ptr): Likewise.
28008         (gimple_omp_single_set_clauses): Likewise.
28009         (gimple_omp_target_clauses): Likewise.
28010         (gimple_omp_target_clauses_ptr): Likewise.
28011         (gimple_omp_target_set_clauses): Likewise.
28012         (gimple_omp_target_child_fn): Likewise.
28013         (gimple_omp_target_child_fn_ptr): Likewise.
28014         (gimple_omp_target_set_child_fn): Likewise.
28015         (gimple_omp_target_data_arg): Likewise.
28016         (gimple_omp_target_data_arg_ptr): Likewise.
28017         (gimple_omp_target_set_data_arg): Likewise.
28018         (gimple_omp_teams_clauses): Likewise.
28019         (gimple_omp_teams_clauses_ptr): Likewise.
28020         (gimple_omp_teams_set_clauses): Likewise.
28021         (gimple_omp_sections_clauses): Likewise.
28022         (gimple_omp_sections_clauses_ptr): Likewise.
28023         (gimple_omp_sections_set_clauses): Likewise.
28024         (gimple_omp_sections_control): Likewise.
28025         (gimple_omp_sections_control_ptr): Likewise.
28026         (gimple_omp_sections_set_control): Likewise.
28027         (gimple_omp_for_set_cond): Likewise.
28028         (gimple_omp_for_cond): Likewise.
28029         (gimple_omp_atomic_store_set_val): Likewise.
28030         (gimple_omp_atomic_store_val): Likewise.
28031         (gimple_omp_atomic_store_val_ptr): Likewise.
28032         (gimple_omp_atomic_load_set_lhs): Likewise.
28033         (gimple_omp_atomic_load_lhs): Likewise.
28034         (gimple_omp_atomic_load_lhs_ptr): Likewise.
28035         (gimple_omp_atomic_load_set_rhs): Likewise.
28036         (gimple_omp_atomic_load_rhs): Likewise.
28037         (gimple_omp_atomic_load_rhs_ptr): Likewise.
28038         (gimple_omp_continue_control_def): Likewise.
28039         (gimple_omp_continue_control_def_ptr): Likewise.
28040         (gimple_omp_continue_set_control_def): Likewise.
28041         (gimple_omp_continue_control_use): Likewise.
28042         (gimple_omp_continue_control_use_ptr): Likewise.
28043         (gimple_omp_continue_set_control_use): Likewise.
28044         (gimple_transaction_body_ptr): Likewise.
28045         (gimple_transaction_label): Likewise.
28046         (gimple_transaction_label_ptr): Likewise.
28047         (gimple_transaction_set_body): Likewise.
28048         (gimple_transaction_set_label): Likewise.
28050         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28051         * ipa-inline-analysis.c (inline_write_summary): Likewise.
28052         * ipa-ref.c (ipa_record_reference): Likewise.
28053         * ipa-reference.c (analyze_function): Likewise.
28054         (ipa_reference_write_optimization_summary): Likewise.
28055         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28056         (address_taken_from_non_vtable_p): Likewise.
28057         (comdat_can_be_unshared_p_1): Likewise.
28058         * lto-cgraph.c (lto_output_ref): Likewise.
28059         (add_references): Likewise.
28060         (compute_ltrans_boundary): Likewise.
28061         (output_symtab): Likewise.
28062         (input_ref): Likewise.
28063         (input_cgraph_1): Likewise.
28064         (output_cgraph_opt_summary): Likewise.
28065         * lto-streamer-out.c (lto_output): Likewise.
28066         (output_symbol_p): Likewise.
28067         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28068         (lsei_start_function_in_partition): Likewise.
28069         (lsei_next_variable_in_partition): Likewise.
28070         (lsei_start_variable_in_partition): Likewise.
28071         * symtab.c (insert_to_assembler_name_hash): Likewise.
28072         (unlink_from_assembler_name_hash): Likewise.
28073         (symtab_unregister_node): Likewise.
28074         (symtab_remove_node): Likewise.
28075         (dump_symtab_node): Likewise.
28076         (verify_symtab_base): Likewise.
28077         (verify_symtab_node): Likewise.
28078         (symtab_make_decl_local): Likewise.
28079         (symtab_alias_ultimate_target): Likewise.
28080         (symtab_resolve_alias): Likewise.
28081         (symtab_get_symbol_partitioning_class): Likewise.
28082         * tree-phinodes.c (allocate_phi_node): Likewise.
28083         (reserve_phi_args_for_new_edge): Likewise.
28084         (remove_phi_args): Likewise.
28085         * varpool.c (varpool_node_for_asm): Likewise.
28086         (varpool_remove_unreferenced_decls): Likewise.
28088 2014-04-23  Jeff Law  <law@redhat.com>
28090         PR tree-optimization/60902
28091         * tree-ssa-threadedge.c
28092         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28093         invalidate outputs from statements that do not produce useful
28094         outputs for threading.
28096 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
28098         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28099         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28100         machine descriptions for Stack Smashing Protector.
28102 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
28104         * aarch64.md (<optab>_rol<mode>3): New pattern.
28105         (<optab>_rolsi3_uxtw): Likewise.
28106         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28108 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
28110         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28111         (arm_cortex_a12_tune): Likewise.
28113 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28115         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28117 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28119         * config/arm/arm.md (arm_rev16si2): New pattern.
28120         (arm_rev16si2_alt): Likewise.
28121         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28123 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28125         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28126         (rev16<mode>2_alt): Likewise.
28127         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28128         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28129         (aarch_rev16_shleft_mask_imm_p): Likewise.
28130         (aarch_rev16_p_1): Likewise.
28131         (aarch_rev16_p): Likewise.
28132         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28133         (aarch_rev16_shright_mask_imm_p): Likewise.
28134         (aarch_rev16_shleft_mask_imm_p): Likewise.
28136 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28138         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28139         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28140         rev cost.
28141         (cortex_a53_extra_costs): Likewise.
28142         (cortex_a57_extra_costs): Likewise.
28143         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28144         (cortexa7_extra_costs): Likewise.
28145         (cortexa8_extra_costs): Likewise.
28146         (cortexa12_extra_costs): Likewise.
28147         (cortexa15_extra_costs): Likewise.
28148         (v7m_extra_costs): Likewise.
28149         (arm_new_rtx_costs): Handle BSWAP.
28151 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28153         * config/arm/arm.c (cortexa8_extra_costs): New table.
28154         (arm_cortex_a8_tune): New tuning struct.
28155         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28157 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28159         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
28161 2014-04-23  Richard Biener  <rguenther@suse.de>
28163         * Makefile.in (OBJS): Remove loop-unswitch.o.
28164         * tree-pass.h (make_pass_rtl_unswitch): Remove.
28165         * passes.def (pass_rtl_unswitch): Likewise.
28166         * loop-init.c (gate_rtl_unswitch): Likewise.
28167         (rtl_unswitch): Likewise.
28168         (pass_data_rtl_unswitch): Likewise.
28169         (pass_rtl_unswitch): Likewise.
28170         (make_pass_rtl_unswitch): Likewise.
28171         * rtl.h (reversed_condition): Likewise.
28172         (compare_and_jump_seq): Likewise.
28173         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
28174         and make static.
28175         * loop-unroll.c (compare_and_jump_seq): Likewise.
28177 2014-04-23  Richard Biener  <rguenther@suse.de>
28179         PR tree-optimization/60903
28180         * tree-ssa-loop-im.c (analyze_memory_references): Remove
28181         commented code block.
28182         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
28183         loop flags to newly created BBs and edges.
28185 2014-04-23  Nick Clifton  <nickc@redhat.com>
28187         * config/msp430/msp430.c (msp430_handle_option): Move function
28188         to msp430-common.c
28189         (msp430_option_override): Simplify mcu and mcpu option handling.
28190         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
28191         support for -mhwmult command line option.
28192         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
28193         -mhwmult command line option.
28194         (msp430_hwmult_enabled): Delete.
28195         (msp43o_output_labelref): Add support for -mhwmult command line option.
28196         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28197         (umulsidi3): Likewise.
28198         * config/msp430/msp430.opt (mmcu): Add Report attribute.
28199         (mcpu, mlarge, msmall): Likewise.
28200         (mhwmult): New option.
28201         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28202         prototype.
28203         (msp430_is_f5_mcu): Remove prototype.
28204         (msp430_use_f5_series_hwmult): Add prototype.
28205         * config/msp430/msp430-opts.h: New file.
28206         * common/config/msp430: New directory.
28207         * common/config/msp430/msp430-common.c: New file.
28208         * config.gcc (msp430): Remove target_has_targetm_common.
28209         * doc/invoke.texi: Document -mhwmult command line option.
28211 2014-04-23  Nick Clifton  <nickc@redhat.com>
28213         * config/i386/cygwin.h (ENDFILE_SPEC): Include
28214         default-manifest.o if it can be found in the search path.
28215         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28217 2014-04-23  Terry Guo  <terry.guo@arm.com>
28219         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28221 2014-04-23  Richard Biener  <rguenther@suse.de>
28223         PR middle-end/60895
28224         * tree-inline.c (declare_return_variable): Use mark_addressable.
28226 2014-04-23  Richard Biener  <rguenther@suse.de>
28228         PR middle-end/60891
28229         * loop-init.c (loop_optimizer_init): Make sure to apply
28230         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28232 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28234         PR sanitizer/60275
28235         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28236         New options.
28237         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28238         if flag_sanitize_undefined_trap_on_error.
28239         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28240         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28241         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28242         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28243         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28244         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28245         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28246         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28247         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28248         * ubsan.c (ubsan_instrument_unreachable): Return
28249         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28250         (ubsan_expand_null_ifn): Emit __builtin_trap ()
28251         if flag_sanitize_undefined_trap_on_error and
28252         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28253         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28254         instrument_bool_enum_load): Emit __builtin_trap () if
28255         flag_sanitize_undefined_trap_on_error and
28256         __builtin_handle_*_abort () if !flag_sanitize_recover.
28257         * doc/invoke.texi (-fsanitize-recover,
28258         -fsanitize-undefined-trap-on-error): Document.
28260 2014-04-22  Christian Bruel  <christian.bruel@st.com>
28262         * config/sh/sh.md (mov<mode>): Replace movQIHI.
28263         Force immediates to SImode.
28265 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
28267         * config/nios2/nios2.md (UNSPEC_ROUND): New.
28268         (lroundsfsi2): New.
28269         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28270         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28271         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28272         (nios2_fpu_insn): Add entry for round.
28273         (N2FPU_NO_ERRNO_P): Define.
28274         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28275         flag_errno_math.
28276         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28278 2014-04-22  Richard Henderson  <rth@redhat.com>
28280         * config/aarch64/aarch64 (addti3, subti3): New expanders.
28281         (add<GPI>3_compare0): Remove leading * from name.
28282         (add<GPI>3_carryin): Likewise.
28283         (sub<GPI>3_compare0): Likewise.
28284         (sub<GPI>3_carryin): Likewise.
28285         (<su_optab>mulditi3): New expander.
28286         (multi3): New expander.
28287         (madd<GPI>): Remove leading * from name.
28289 2014-04-22  Martin Jambor  <mjambor@suse.cz>
28291         * cgraphclones.c (cgraph_function_versioning): Copy
28292         ipa_transforms_to_apply instead of asserting it is empty.
28294 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
28296         PR target/60868
28297         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
28298         on count_exp to get mode.
28300 2014-04-22  Andrew Pinski  <apinski@cavium.com>
28302         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28303         Handle TLS for ILP32.
28304         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
28305         (tlsie_small_<mode>): this and handle PTR.
28306         (tlsie_small_sidi): New pattern.
28307         (tlsle_small): Change to an expand to handle ILP32.
28308         (tlsle_small_<mode>): New pattern.
28309         (tlsdesc_small): Rename to ...
28310         (tlsdesc_small_<mode>): this and handle PTR.
28312 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28314         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
28316 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28318         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28319         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
28320         (aarch64_types_signed_poly_qualifiers): Likewise.
28321         (aarch64_types_unsigned_signed_qualifiers): Likewise.
28322         (aarch64_types_poly_signed_qualifiers): Likewise.
28323         (TYPES_REINTERP_SS): Type macro added.
28324         (TYPES_REINTERP_SU): Likewise.
28325         (TYPES_REINTERP_SP): Likewise.
28326         (TYPES_REINTERP_US): Likewise.
28327         (TYPES_REINTERP_PS): Likewise.
28328         (aarch64_fold_builtin): New expression folding added.
28329         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
28330         Declarations removed.
28331         (REINTERP_SS): Declarations added.
28332         (REINTERP_US): Likewise.
28333         (REINTERP_PS): Likewise.
28334         (REINTERP_SU): Likewise.
28335         (REINTERP_SP): Likewise.
28336         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
28337         (vreinterpretq_p8_f64): Likewise.
28338         (vreinterpret_p16_f64): Likewise.
28339         (vreinterpretq_p16_f64): Likewise.
28340         (vreinterpret_f32_f64): Likewise.
28341         (vreinterpretq_f32_f64): Likewise.
28342         (vreinterpret_f64_f32): Likewise.
28343         (vreinterpret_f64_p8): Likewise.
28344         (vreinterpret_f64_p16): Likewise.
28345         (vreinterpret_f64_s8): Likewise.
28346         (vreinterpret_f64_s16): Likewise.
28347         (vreinterpret_f64_s32): Likewise.
28348         (vreinterpret_f64_s64): Likewise.
28349         (vreinterpret_f64_u8): Likewise.
28350         (vreinterpret_f64_u16): Likewise.
28351         (vreinterpret_f64_u32): Likewise.
28352         (vreinterpret_f64_u64): Likewise.
28353         (vreinterpretq_f64_f32): Likewise.
28354         (vreinterpretq_f64_p8): Likewise.
28355         (vreinterpretq_f64_p16): Likewise.
28356         (vreinterpretq_f64_s8): Likewise.
28357         (vreinterpretq_f64_s16): Likewise.
28358         (vreinterpretq_f64_s32): Likewise.
28359         (vreinterpretq_f64_s64): Likewise.
28360         (vreinterpretq_f64_u8): Likewise.
28361         (vreinterpretq_f64_u16): Likewise.
28362         (vreinterpretq_f64_u32): Likewise.
28363         (vreinterpretq_f64_u64): Likewise.
28364         (vreinterpret_s64_f64): Likewise.
28365         (vreinterpretq_s64_f64): Likewise.
28366         (vreinterpret_u64_f64): Likewise.
28367         (vreinterpretq_u64_f64): Likewise.
28368         (vreinterpret_s8_f64): Likewise.
28369         (vreinterpretq_s8_f64): Likewise.
28370         (vreinterpret_s16_f64): Likewise.
28371         (vreinterpretq_s16_f64): Likewise.
28372         (vreinterpret_s32_f64): Likewise.
28373         (vreinterpretq_s32_f64): Likewise.
28374         (vreinterpret_u8_f64): Likewise.
28375         (vreinterpretq_u8_f64): Likewise.
28376         (vreinterpret_u16_f64): Likewise.
28377         (vreinterpretq_u16_f64): Likewise.
28378         (vreinterpret_u32_f64): Likewise.
28379         (vreinterpretq_u32_f64): Likewise.
28381 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28383         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28384         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
28385         (vreinterpret_p8_s8): Likewise.
28386         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
28387         (vreinterpret_p8_s16): Likewise.
28388         (vreinterpret_p8_s32): Likewise.
28389         (vreinterpret_p8_s64): Likewise.
28390         (vreinterpret_p8_f32): Likewise.
28391         (vreinterpret_p8_u8): Likewise.
28392         (vreinterpret_p8_u16): Likewise.
28393         (vreinterpret_p8_u32): Likewise.
28394         (vreinterpret_p8_u64): Likewise.
28395         (vreinterpret_p8_p16): Likewise.
28396         (vreinterpretq_p8_s8): Likewise.
28397         (vreinterpretq_p8_s16): Likewise.
28398         (vreinterpretq_p8_s32): Likewise.
28399         (vreinterpretq_p8_s64): Likewise.
28400         (vreinterpretq_p8_f32): Likewise.
28401         (vreinterpretq_p8_u8): Likewise.
28402         (vreinterpretq_p8_u16): Likewise.
28403         (vreinterpretq_p8_u32): Likewise.
28404         (vreinterpretq_p8_u64): Likewise.
28405         (vreinterpretq_p8_p16): Likewise.
28406         (vreinterpret_p16_s8): Likewise.
28407         (vreinterpret_p16_s16): Likewise.
28408         (vreinterpret_p16_s32): Likewise.
28409         (vreinterpret_p16_s64): Likewise.
28410         (vreinterpret_p16_f32): Likewise.
28411         (vreinterpret_p16_u8): Likewise.
28412         (vreinterpret_p16_u16): Likewise.
28413         (vreinterpret_p16_u32): Likewise.
28414         (vreinterpret_p16_u64): Likewise.
28415         (vreinterpret_p16_p8): Likewise.
28416         (vreinterpretq_p16_s8): Likewise.
28417         (vreinterpretq_p16_s16): Likewise.
28418         (vreinterpretq_p16_s32): Likewise.
28419         (vreinterpretq_p16_s64): Likewise.
28420         (vreinterpretq_p16_f32): Likewise.
28421         (vreinterpretq_p16_u8): Likewise.
28422         (vreinterpretq_p16_u16): Likewise.
28423         (vreinterpretq_p16_u32): Likewise.
28424         (vreinterpretq_p16_u64): Likewise.
28425         (vreinterpretq_p16_p8): Likewise.
28426         (vreinterpret_f32_s8): Likewise.
28427         (vreinterpret_f32_s16): Likewise.
28428         (vreinterpret_f32_s32): Likewise.
28429         (vreinterpret_f32_s64): Likewise.
28430         (vreinterpret_f32_u8): Likewise.
28431         (vreinterpret_f32_u16): Likewise.
28432         (vreinterpret_f32_u32): Likewise.
28433         (vreinterpret_f32_u64): Likewise.
28434         (vreinterpret_f32_p8): Likewise.
28435         (vreinterpret_f32_p16): Likewise.
28436         (vreinterpretq_f32_s8): Likewise.
28437         (vreinterpretq_f32_s16): Likewise.
28438         (vreinterpretq_f32_s32): Likewise.
28439         (vreinterpretq_f32_s64): Likewise.
28440         (vreinterpretq_f32_u8): Likewise.
28441         (vreinterpretq_f32_u16): Likewise.
28442         (vreinterpretq_f32_u32): Likewise.
28443         (vreinterpretq_f32_u64): Likewise.
28444         (vreinterpretq_f32_p8): Likewise.
28445         (vreinterpretq_f32_p16): Likewise.
28446         (vreinterpret_s64_s8): Likewise.
28447         (vreinterpret_s64_s16): Likewise.
28448         (vreinterpret_s64_s32): Likewise.
28449         (vreinterpret_s64_f32): Likewise.
28450         (vreinterpret_s64_u8): Likewise.
28451         (vreinterpret_s64_u16): Likewise.
28452         (vreinterpret_s64_u32): Likewise.
28453         (vreinterpret_s64_u64): Likewise.
28454         (vreinterpret_s64_p8): Likewise.
28455         (vreinterpret_s64_p16): Likewise.
28456         (vreinterpretq_s64_s8): Likewise.
28457         (vreinterpretq_s64_s16): Likewise.
28458         (vreinterpretq_s64_s32): Likewise.
28459         (vreinterpretq_s64_f32): Likewise.
28460         (vreinterpretq_s64_u8): Likewise.
28461         (vreinterpretq_s64_u16): Likewise.
28462         (vreinterpretq_s64_u32): Likewise.
28463         (vreinterpretq_s64_u64): Likewise.
28464         (vreinterpretq_s64_p8): Likewise.
28465         (vreinterpretq_s64_p16): Likewise.
28466         (vreinterpret_u64_s8): Likewise.
28467         (vreinterpret_u64_s16): Likewise.
28468         (vreinterpret_u64_s32): Likewise.
28469         (vreinterpret_u64_s64): Likewise.
28470         (vreinterpret_u64_f32): Likewise.
28471         (vreinterpret_u64_u8): Likewise.
28472         (vreinterpret_u64_u16): Likewise.
28473         (vreinterpret_u64_u32): Likewise.
28474         (vreinterpret_u64_p8): Likewise.
28475         (vreinterpret_u64_p16): Likewise.
28476         (vreinterpretq_u64_s8): Likewise.
28477         (vreinterpretq_u64_s16): Likewise.
28478         (vreinterpretq_u64_s32): Likewise.
28479         (vreinterpretq_u64_s64): Likewise.
28480         (vreinterpretq_u64_f32): Likewise.
28481         (vreinterpretq_u64_u8): Likewise.
28482         (vreinterpretq_u64_u16): Likewise.
28483         (vreinterpretq_u64_u32): Likewise.
28484         (vreinterpretq_u64_p8): Likewise.
28485         (vreinterpretq_u64_p16): Likewise.
28486         (vreinterpret_s8_s16): Likewise.
28487         (vreinterpret_s8_s32): Likewise.
28488         (vreinterpret_s8_s64): Likewise.
28489         (vreinterpret_s8_f32): Likewise.
28490         (vreinterpret_s8_u8): Likewise.
28491         (vreinterpret_s8_u16): Likewise.
28492         (vreinterpret_s8_u32): Likewise.
28493         (vreinterpret_s8_u64): Likewise.
28494         (vreinterpret_s8_p8): Likewise.
28495         (vreinterpret_s8_p16): Likewise.
28496         (vreinterpretq_s8_s16): Likewise.
28497         (vreinterpretq_s8_s32): Likewise.
28498         (vreinterpretq_s8_s64): Likewise.
28499         (vreinterpretq_s8_f32): Likewise.
28500         (vreinterpretq_s8_u8): Likewise.
28501         (vreinterpretq_s8_u16): Likewise.
28502         (vreinterpretq_s8_u32): Likewise.
28503         (vreinterpretq_s8_u64): Likewise.
28504         (vreinterpretq_s8_p8): Likewise.
28505         (vreinterpretq_s8_p16): Likewise.
28506         (vreinterpret_s16_s8): Likewise.
28507         (vreinterpret_s16_s32): Likewise.
28508         (vreinterpret_s16_s64): Likewise.
28509         (vreinterpret_s16_f32): Likewise.
28510         (vreinterpret_s16_u8): Likewise.
28511         (vreinterpret_s16_u16): Likewise.
28512         (vreinterpret_s16_u32): Likewise.
28513         (vreinterpret_s16_u64): Likewise.
28514         (vreinterpret_s16_p8): Likewise.
28515         (vreinterpret_s16_p16): Likewise.
28516         (vreinterpretq_s16_s8): Likewise.
28517         (vreinterpretq_s16_s32): Likewise.
28518         (vreinterpretq_s16_s64): Likewise.
28519         (vreinterpretq_s16_f32): Likewise.
28520         (vreinterpretq_s16_u8): Likewise.
28521         (vreinterpretq_s16_u16): Likewise.
28522         (vreinterpretq_s16_u32): Likewise.
28523         (vreinterpretq_s16_u64): Likewise.
28524         (vreinterpretq_s16_p8): Likewise.
28525         (vreinterpretq_s16_p16): Likewise.
28526         (vreinterpret_s32_s8): Likewise.
28527         (vreinterpret_s32_s16): Likewise.
28528         (vreinterpret_s32_s64): Likewise.
28529         (vreinterpret_s32_f32): Likewise.
28530         (vreinterpret_s32_u8): Likewise.
28531         (vreinterpret_s32_u16): Likewise.
28532         (vreinterpret_s32_u32): Likewise.
28533         (vreinterpret_s32_u64): Likewise.
28534         (vreinterpret_s32_p8): Likewise.
28535         (vreinterpret_s32_p16): Likewise.
28536         (vreinterpretq_s32_s8): Likewise.
28537         (vreinterpretq_s32_s16): Likewise.
28538         (vreinterpretq_s32_s64): Likewise.
28539         (vreinterpretq_s32_f32): Likewise.
28540         (vreinterpretq_s32_u8): Likewise.
28541         (vreinterpretq_s32_u16): Likewise.
28542         (vreinterpretq_s32_u32): Likewise.
28543         (vreinterpretq_s32_u64): Likewise.
28544         (vreinterpretq_s32_p8): Likewise.
28545         (vreinterpretq_s32_p16): Likewise.
28546         (vreinterpret_u8_s8): Likewise.
28547         (vreinterpret_u8_s16): Likewise.
28548         (vreinterpret_u8_s32): Likewise.
28549         (vreinterpret_u8_s64): Likewise.
28550         (vreinterpret_u8_f32): Likewise.
28551         (vreinterpret_u8_u16): Likewise.
28552         (vreinterpret_u8_u32): Likewise.
28553         (vreinterpret_u8_u64): Likewise.
28554         (vreinterpret_u8_p8): Likewise.
28555         (vreinterpret_u8_p16): Likewise.
28556         (vreinterpretq_u8_s8): Likewise.
28557         (vreinterpretq_u8_s16): Likewise.
28558         (vreinterpretq_u8_s32): Likewise.
28559         (vreinterpretq_u8_s64): Likewise.
28560         (vreinterpretq_u8_f32): Likewise.
28561         (vreinterpretq_u8_u16): Likewise.
28562         (vreinterpretq_u8_u32): Likewise.
28563         (vreinterpretq_u8_u64): Likewise.
28564         (vreinterpretq_u8_p8): Likewise.
28565         (vreinterpretq_u8_p16): Likewise.
28566         (vreinterpret_u16_s8): Likewise.
28567         (vreinterpret_u16_s16): Likewise.
28568         (vreinterpret_u16_s32): Likewise.
28569         (vreinterpret_u16_s64): Likewise.
28570         (vreinterpret_u16_f32): Likewise.
28571         (vreinterpret_u16_u8): Likewise.
28572         (vreinterpret_u16_u32): Likewise.
28573         (vreinterpret_u16_u64): Likewise.
28574         (vreinterpret_u16_p8): Likewise.
28575         (vreinterpret_u16_p16): Likewise.
28576         (vreinterpretq_u16_s8): Likewise.
28577         (vreinterpretq_u16_s16): Likewise.
28578         (vreinterpretq_u16_s32): Likewise.
28579         (vreinterpretq_u16_s64): Likewise.
28580         (vreinterpretq_u16_f32): Likewise.
28581         (vreinterpretq_u16_u8): Likewise.
28582         (vreinterpretq_u16_u32): Likewise.
28583         (vreinterpretq_u16_u64): Likewise.
28584         (vreinterpretq_u16_p8): Likewise.
28585         (vreinterpretq_u16_p16): Likewise.
28586         (vreinterpret_u32_s8): Likewise.
28587         (vreinterpret_u32_s16): Likewise.
28588         (vreinterpret_u32_s32): Likewise.
28589         (vreinterpret_u32_s64): Likewise.
28590         (vreinterpret_u32_f32): Likewise.
28591         (vreinterpret_u32_u8): Likewise.
28592         (vreinterpret_u32_u16): Likewise.
28593         (vreinterpret_u32_u64): Likewise.
28594         (vreinterpret_u32_p8): Likewise.
28595         (vreinterpret_u32_p16): Likewise.
28596         (vreinterpretq_u32_s8): Likewise.
28597         (vreinterpretq_u32_s16): Likewise.
28598         (vreinterpretq_u32_s32): Likewise.
28599         (vreinterpretq_u32_s64): Likewise.
28600         (vreinterpretq_u32_f32): Likewise.
28601         (vreinterpretq_u32_u8): Likewise.
28602         (vreinterpretq_u32_u16): Likewise.
28603         (vreinterpretq_u32_u64): Likewise.
28604         (vreinterpretq_u32_p8): Likewise.
28605         (vreinterpretq_u32_p16): Likewise.
28607 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28609         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28610         Pattern extended.
28611         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28612         (sqabs): Likewise.
28613         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28614         (vqnegd_s64): Likewise.
28615         (vqabs_s64): Likewise.
28616         (vqabsd_s64): Likewise.
28618 2014-04-22  Richard Henderson  <rth@redhat.com>
28620         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28621         computation to the top of the loop.
28623 2014-04-22  Renlin  <renlin.li@arm.com>
28624             Jiong Wang  <jiong.wang@arm.com>
28626         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28627         * config/aarch64/aarch64.c (aarch64_layout_frame)
28628         (aarch64_initial_elimination_offset): Likewise.
28630 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28632         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28633         Fix indentation.
28635 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
28637         * machmode.h (bitwise_mode_for_mode): Declare.
28638         * stor-layout.h (bitwise_type_for_mode): Likewise.
28639         * stor-layout.c (bitwise_mode_for_mode): New function.
28640         (bitwise_type_for_mode): Likewise.
28641         * builtins.c (fold_builtin_memory_op): Use it instead of
28642         int_mode_for_mode and build_nonstandard_integer_type.
28644 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28646         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
28647         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
28648         (*-*-solaris2*): Simplify.
28649         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
28650         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
28651         *-*-solaris2.9* handling.
28653         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
28654         as bug.
28655         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
28656         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
28657         handling, simplify.
28658         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28659         * configure: Regenerate.
28661         * config/i386/sol2-9.h: Remove.
28663         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28664         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28665         Remove Solaris 9 references.
28667 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
28669         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28670         (floatuns<GPI:mode><GPF:mode>2): Remove.
28671         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28672         and floatuns conversions.
28673         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28674         and floatuns conversions.
28675         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28676         (w1,w2): New mode attributes for inequal width conversions.
28678 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
28680         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28681         the output asm format.
28683 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28685         * config/aarch64/aarch64-simd.md
28686         (aarch64_cm<optab>di): Always split.
28687         (*aarch64_cm<optab>di): New.
28688         (aarch64_cmtstdi): Always split.
28689         (*aarch64_cmtstdi): New.
28691 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28693         PR tree-optimization/60823
28694         * omp-low.c (ipa_simd_modify_function_body): Go through
28695         all SSA_NAMEs and for those refering to vector arguments
28696         which are going to be replaced adjust SSA_NAME_VAR and,
28697         if it is a default definition, change it into a non-default
28698         definition assigned at the beginning of function from new_decl.
28699         (ipa_simd_modify_stmt_ops): Rewritten.
28700         * tree-dfa.c (set_ssa_default_def): When removing default def,
28701         check for NULL loc instead of NULL *loc.
28703 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28705         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
28706         restrictions on core registers for DImode values in Thumb2.
28708 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
28710         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
28711         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
28713 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
28715         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
28716         (*iordi_notzesidi_di): Likewise.
28717         (*iordi_notsesidi_di): Likewise.
28719 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
28721         * config/arm/arm-protos.h (tune_params): New struct members.
28722         * config/arm/arm.c: Initialise tune_params per processor.
28723         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
28724         for speed, based on new tune_params.
28726 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28728         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
28729         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
28730         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
28731         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
28732         * config/aarch64/arm_neon.h (vrnd_f64): Added.
28733         (vrnda_f64): Likewise.
28734         (vrndi_f64): Likewise.
28735         (vrndm_f64): Likewise.
28736         (vrndn_f64): Likewise.
28737         (vrndp_f64): Likewise.
28738         (vrndx_f64): Likewise.
28740 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28742         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
28743         GET_MODE_SIZE argument is enum machine_mode.
28745 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28747         PR target/60910
28748         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
28749         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
28751 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
28753         PR middle-end/60281
28754         * asan.c (asan_emit_stack_protection): Force the base to align to
28755         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
28756         appropriate bits if STRICT_ALIGNMENT.
28757         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
28758         when asan is on.
28759         (expand_used_vars): Leave a space in the stack frame for alignment
28760         if STRICT_ALIGNMENT.
28762 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
28764         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
28765         than a gimple.
28766         (gimple_store_p): Likewise.
28767         (gimple_assign_load_p): Likewise.
28768         (gimple_assign_cast_p): Likewise.
28769         (gimple_clobber_p): Likewise.
28771         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
28772         rather than a gimple.
28773         (gimple_assign_cast_p): Likewise.
28775 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
28777         PR target/60735
28778         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
28779         If mode is DDmode and TARGET_E500_DOUBLE allow move.
28781         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
28782         more debug information for E500 if -mdebug=reg.
28784 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
28786         PR target/60909
28787         * config/i386/i386.c (ix86_expand_builtin)
28788         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
28789         register for target RTX.
28790         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
28792 2014-04-18  Cong Hou  <congh@google.com>
28794         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
28795         the widen-mult pattern by handling two operands with different sizes,
28796         and operands whose size is smaller than half of the result type.
28798 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
28800         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
28801         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
28802         (do_estimate_edge_time): Compute it.
28803         * ipa-inline.c (want_inline_small_function_p): Bypass
28804         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
28806 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
28808         * ipa-inline.c (spec_rem): New static variable.
28809         (dump_overall_stats): New function.
28810         (dump_inline_stats): New function.
28812 2014-04-18  Richard Henderson  <rth@redhat.com>
28814         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
28815         to GET_MODE_SIZE, not a reg_class_t.
28817 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28819         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
28820         (vsx_xxmrglw_<mode>): Likewise.
28822 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
28824         PR target/60876
28825         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
28826         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
28827         (rs6000_init_hard_regno_mode_ok): Likewise.
28829 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
28831         * ipa-inline.c (inline_small_functions): Account only non-cold
28832         functions.
28833         * doc/invoke.texi (inline-unit-growth): Update documentation.
28835 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
28837         * config/rs6000/rs6000.md (addti3, subti3): New.
28839 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
28841         PR target/60863
28842         * config/i386/i386.c (ix86_expand_clear): Remove outdated
28843         comment.  Check optimize_insn_for_size_p instead of
28844         optimize_insn_for_speed_p.
28846 2014-04-17  Martin Jambor  <mjambor@suse.cz>
28848         * gimple-iterator.c (gsi_start_edge): New function.
28849         * gimple-iterator.h (gsi_start_edge): Declare.
28850         * tree-sra.c (single_non_eh_succ): New function.
28851         (disqualify_ops_if_throwing_stmt): Renamed to
28852         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
28853         having one non-EH successor BB.
28854         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
28855         generate loads into replacements.
28856         (sra_modify_assign): Likewise and and also use the simple path for
28857         such statements.
28858         (sra_modify_function_body): Commit statements on edges.
28860 2014-04-17  Richard Biener  <rguenther@suse.de>
28862         PR middle-end/60849
28863         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
28864         comparison results and add clarifying comment.
28866 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
28868         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
28869         (blank_mode): Initialize it.
28870         (emit_mode_size_inline, emit_mode_nunits_inline,
28871         emit_mode_inner_inline): New functions.
28872         (emit_insn_modes_h): Call them and surround their output with
28873         #if GCC_VERSION >= 4001 ... #endif.
28874         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
28875         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
28876         mode_* arrays if the argument is __builtin_constant_p.
28877         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
28878         is enum machine_mode.
28880 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28882         * passes.c (opt_pass::execute): Adjust.
28883         (pass_manager::execute_pass_mode_switching): Likewise.
28884         (early_local_passes::execute): Likewise.
28885         (execute_one_pass): Pass cfun to the pass's execute method.
28886         * tree-pass.h (opt_pass::execute): Add function * argument.
28887         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28888         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28889         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28890         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28891         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28892         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
28893         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
28894         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28895         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28896         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
28897         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
28898         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
28899         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
28900         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
28901         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28902         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28903         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28904         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
28905         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
28906         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28907         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28908         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28909         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28910         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28911         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28912         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28913         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28914         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28915         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28916         Adjust.
28918 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28920         * passes.c (opt_pass::gate): Take function * argument.
28921         (gate_all_early_local_passes): Merge into
28922         (early_local_passes::gate): this.
28923         (gate_all_early_optimizations): Merge into
28924         (all_early_optimizations::gate): this.
28925         (gate_all_optimizations): Mege into
28926         (all_optimizations::gate): this.
28927         (gate_all_optimizations_g): Merge into
28928         (all_optimizations_g::gate): this.
28929         (gate_rest_of_compilation): Mege into
28930         (rest_of_compilation::gate): this.
28931         (gate_postreload): Merge into
28932         (postreload::gate): this.
28933         (dump_one_pass): Pass cfun to the pass's gate method.
28934         (execute_ipa_summary_passes): Likewise.
28935         (execute_one_pass): Likewise.
28936         (ipa_write_summaries_2): Likewise.
28937         (ipa_write_optimization_summaries_1): Likewise.
28938         (ipa_read_summaries_1): Likewise.
28939         (ipa_read_optimization_summaries_1): Likewise.
28940         (execute_ipa_stmt_fixups): Likewise.
28941         * tree-pass.h (opt_pass::gate): Add function * argument.
28942         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
28943         combine-stack-adj.c, combine.c, compare-elim.c,
28944         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28945         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
28946         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
28947         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
28948         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28949         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28950         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28951         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
28952         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
28953         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
28954         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28955         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28956         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
28957         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28958         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28959         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28960         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28961         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28962         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28963         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28964         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28965         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28966         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
28967         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
28968         var-tracking.c, vtable-verify.c, web.c: Adjust.
28970 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28972         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
28973         * configure: Regenerate.
28975 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28977         * passes.c (dump_one_pass): don't check pass->has_gate.
28978         (execute_ipa_summary_passes): Likewise.
28979         (execute_one_pass): Likewise.
28980         (ipa_write_summaries_2): Likewise.
28981         (ipa_write_optimization_summaries_1): Likewise.
28982         (ipa_read_optimization_summaries_1): Likewise.
28983         (execute_ipa_stmt_fixups): Likewise.
28984         * tree-pass.h (pass_data::has_gate): Remove.
28985         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28986         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28987         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28988         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28989         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28990         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
28991         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
28992         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
28993         gimple-low.c, gimple-ssa-isolate-paths.c,
28994         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
28995         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
28996         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28997         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
28998         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
28999         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29000         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29001         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29002         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29003         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29004         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29005         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29006         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29007         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29008         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29009         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29010         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29011         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29012         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29013         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29014         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29015         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29016         Adjust.
29018 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29020         * pass_manager.h (pass_manager::register_dump_files_1): Remove
29021         declaration.
29022         * passes.c (pass_manager::register_dump_files_1): Merge into
29023         (pass_manager::register_dump_files): this, and remove its handling of
29024         properties since the pass always has the properties anyway.
29025         (pass_manager::pass_manager): Adjust.
29027 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29029         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29030         * passes.c (pass_manager::register_dump_files_1): Remove dead code
29031         dealing with properties.
29032         (pass_manager::register_dump_files): Adjust.
29034 2014-03-20  Mark Wielaard  <mjw@redhat.com>
29036         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29037         then represent the bound as normal constant value.
29039 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
29041         PR target/60847
29042         Forward port from 4.8 branch
29043         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
29045         * config/i386/bmiintrin.h (_blsi_u32): New.
29046         (_blsi_u64): Ditto.
29047         (_blsr_u32): Ditto.
29048         (_blsr_u64): Ditto.
29049         (_blsmsk_u32): Ditto.
29050         (_blsmsk_u64): Ditto.
29051         (_tzcnt_u32): Ditto.
29052         (_tzcnt_u64): Ditto.
29054 2014-04-17  Kito Cheng  <kito@0xlab.org>
29056         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29058 2014-04-17  Richard Biener  <rguenther@suse.de>
29060         PR middle-end/60849
29061         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29062         boolean results for comparisons.
29064 2014-04-17  Richard Biener  <rguenther@suse.de>
29066         PR tree-optimization/60836
29067         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29068         initial PHI args to be gimple values.
29070 2014-04-17  Richard Biener  <rguenther@suse.de>
29072         PR tree-optimization/60841
29073         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29074         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29075         of stmts to SLP build.
29076         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29077         (vect_analyze_slp): Likewise.
29078         (vect_analyze_slp_instance): Likewise.
29079         (vect_build_slp_tree): Limit overall SLP tree growth.
29080         * tree-vectorizer.h (vect_analyze_data_refs,
29081         vect_analyze_slp): Adjust prototypes.
29083 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29085         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29086         Silvermont.
29088 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29090         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29091         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29092         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29093         for TARGET_SLOW_PSHUFB
29095 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29097         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29098         * config/i386/i386.c (intel_cost): Ditto.
29100 2014-04-17  Joey Ye  <joey.ye@arm.com>
29102         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29104 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29106         * opts.c (common_handle_option): Disable -fipa-reference coorectly
29107         with -fuse-profile.
29109 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29111         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29112         (type_all_derivations_known_p): New predicate.
29113         (type_all_ctors_visible_p): New predicate.
29114         (type_possibly_instantiated_p): New predicate.
29115         (get_odr_type): Compute all_derivations_known.
29116         (dump_odr_type): Dump the flag.
29117         (maybe_record_type): Cleanup.
29118         (record_target_from_binfo): Add bases_to_consider array;
29119         record bases for types w/o instances and skip CXX destructor.
29120         (possible_polymorphic_call_targets_1): Add bases_to_consider
29121         and consider_construction parameters; check if type may have instance.
29122         (get_polymorphic_call_info): Set maybe_in_construction to true
29123         when we know nothing.
29124         (record_targets_from_bases): Skip CXX destructors; they are
29125         never called for types in construction.
29126         (possible_polymorphic_call_targets): Do not record target when
29127         type may not have instance.
29129 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29131         PR ipa/60854
29132         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29133         external aliases alive, too.
29135 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
29137         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29138         definition.
29140 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
29142         * final.c (compute_alignments): Do not apply loop alignment to a block
29143         falling through to the exit.
29145 2014-04-16  Catherine Moore  <clm@codesourcery.com>
29147         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29148         Adjust constraints for microMIPS store patterns.
29150 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
29152         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29154 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
29156         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29157         (append_use): Run at -O0.
29158         (append_vdef): Likewise.
29159         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
29160         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
29162 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
29164         PR tree-optimization/60844
29165         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
29166         (propagate_op_to_single_use, remove_visited_stmt_chain,
29167         linearize_expr, repropagate_negates, reassociate_bb): Use it
29168         instead of gsi_remove.
29170 2014-04-16  Martin Jambor  <mjambor@suse.cz>
29172         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
29173         ipa_transforms_to_apply.
29174         (cgraph_function_versioning): Assert that old_node has empty
29175         ipa_transforms_to_apply.
29176         * trans-mem.c (ipa_tm_create_version): Likewise.
29177         * tree-inline.c (tree_function_versioning): Do not duplicate
29178         ipa_transforms_to_apply.
29180 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29182         PR target/60817
29183         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
29184         x86_64-*-* cases.
29185         Pass necessary as flags on 64-bit Solaris/x86.
29186         Use lowercase relocs for x86_64-*-*.
29187         * configure: Regenerate.
29189 2014-04-15  Jan Hubicka  <jh@suse.cz>
29191         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
29192         (maybe_record_node, likely_target_p): Use it.
29194 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29196         PR target/60839
29197         Revert following patch
29199         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29201         PR target/60735
29202         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29203         software floating point or no floating point registers, do not
29204         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
29205         in GPRs that occurs after we tested for GPRs that would never be
29206         true.
29208         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29209         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29210         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
29211         specifically allow DDmode, since that does not use the SPE SIMD
29212         instructions.
29214 2014-03-21  Mark Wielaard  <mjw@redhat.com>
29216         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29217         as unsigned or int depending on type and value used.
29219 2014-04-15  Richard Biener  <rguenther@suse.de>
29221         PR rtl-optimization/56965
29222         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29223         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29224         ... here.
29225         * alias.c (true_dependence_1): Do not call
29226         nonoverlapping_component_refs_p.
29227         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29228         nonoverlapping_component_refs_p.
29229         (indirect_refs_may_alias_p): Likewise.
29231 2014-04-15  Teresa Johnson  <tejohnson@google.com>
29233         * cfg.c (dump_bb_info): Fix flags check.
29234         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29236 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29238         PR rtl-optimization/60663
29239         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29240         avoid 0 cost.
29242 2014-04-15  Richard Biener  <rguenther@suse.de>
29244         * lto-streamer.h (LTO_major_version): Bump to 4.
29246 2014-04-15  Richard Biener  <rguenther@suse.de>
29248         * common.opt (lto_partition_model): New enum.
29249         (flto-partition=): Merge separate options with a single with argument,
29250         add -flto-partition=one support.
29251         * flag-types.h (enum lto_partition_model): Declare.
29252         * opts.c (finish_options): Remove duplicate -flto-partition=
29253         option check.
29254         * lto-wrapper.c (run_gcc): Adjust.
29256 2014-04-15  Richard Biener  <rguenther@suse.de>
29258         * alias.c (ncr_compar): New function.
29259         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29261 2014-04-15  Richard Biener  <rguenther@suse.de>
29263         * alias.c (record_component_aliases): Do not walk BINFOs.
29265 2014-04-15  Richard Biener  <rguenther@suse.de>
29267         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29268         Add struct function argument and adjust.
29269         (find_func_aliases_for_call): Likewise.
29270         (find_func_aliases): Likewise.
29271         (find_func_clobbers): Likewise.
29272         (intra_create_variable_infos): Likewise.
29273         (compute_points_to_sets): Likewise.
29274         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
29276 2014-04-15  Richard Biener  <rguenther@suse.de>
29278         * tree.c (iterative_hash_expr): Use enum tree_code_class
29279         to store TREE_CODE_CLASS.
29280         (tree_block): Likewise.
29281         (tree_set_block): Likewise.
29282         * tree.h (fold_build_pointer_plus_loc): Use
29283         convert_to_ptrofftype_loc.
29285 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
29287         PR plugins/59335
29288         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29289         added in 4.9.
29291 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29293         * cfgloop.h (struct loop): Move force_vectorize down.
29294         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
29295         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
29296         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
29297         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
29298         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
29299         * tree-core.h (enum annot_expr_kind): Add new kind values.
29300         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
29301         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
29302         kinds.
29303         * tree.def (ANNOTATE_EXPR): Tweak comment.
29305 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
29307         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
29308         cxa_pure_virtual).
29310 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
29312         * tree.h (TYPE_IDENTIFIER): Declare.
29313         * tree.c (subrange_type_for_debug_p): Use it.
29314         * godump.c (go_format_type): Likewise.
29315         * dwarf2out.c (is_cxx_auto, modified_type_die,
29316         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
29317         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
29319 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
29321         PR lto/60820
29322         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
29324 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
29326         * config/i386/i386.c (examine_argument): Return bool.  Return true if
29327         parameter should be passed in memory.
29328         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
29329         (construct_container): Update calls to examine_argument.
29330         (function_arg_advance_64): Ditto.
29331         (return_in_memory_32): Merge with ix86_return_in_memory.
29332         (return_in_memory_64): Ditto.
29333         (return_in_memory_ms_64): Ditto.
29335 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
29337         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
29338         * coverage.c (coverage_compute_profile_id): Handle externally visible
29339         symbols.
29341 2014-04-14  Martin Jambor  <mjambor@suse.cz>
29343         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
29344         DECL_DISREGARD_INLINE_LIMITS functions.
29346 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
29348         PR target/60827
29349         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
29351 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
29353         PR target/60827
29354         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
29355         optimize_insn_for_speed_p instead of
29356         optimize_function_for_speed_p.
29358 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
29360         * doc/invoke.texi (free): Document AArch64.
29362 2014-04-14  Richard Biener  <rguenther@suse.de>
29364         PR tree-optimization/60042
29365         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
29366         (insert_into_preds_of_block): Do not prevent PHI insertion
29367         for REFERENCE exprs here ...
29368         (eliminate_dom_walker::before_dom_children): ... but prevent
29369         their use here under similar conditions when applied to the
29370         IL after PRE optimizations.
29372 2014-04-14  Richard Biener  <rguenther@suse.de>
29374         * passes.def: Move early points-to after early SRA.
29376 2014-04-14  Richard Biener  <rguenther@suse.de>
29378         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
29379         check for which sign-changes we allow when forwarding
29380         a converted value into a switch.
29382 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29384         * stor-layout.c (place_field): Finalize non-constant offset for the
29385         field, if any.
29387 2014-04-14  Richard Biener  <rguenther@suse.de>
29389         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
29390         as argument.
29391         (expand_switch_using_bit_tests_p): Likewise.
29392         (process_switch): Compute and pass on speed_p based on the
29393         switch stmt.
29394         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
29395         optimize_bb_for_speed_p.
29397 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29399         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
29400         * function.h (struct function): Rename has_force_vect_loops into
29401         has_force_vectorize_loops.
29402         * lto-streamer-in.c (input_cfg): Adjust for renaming.
29403         (input_struct_function_base): Likewise.
29404         * lto-streamer-out.c (output_cfg): Likewise.
29405         (output_struct_function_base): Likewise.
29406         * omp-low.c (expand_omp_simd): Likewise.
29407         * tree-cfg.c (move_sese_region_to_fn): Likewise.
29408         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
29409         (version_loop_for_if_conversion): Likewise.
29410         (tree_if_conversion): Likewise.
29411         (main_tree_if_conversion): Likewise.
29412         (gate_tree_if_conversion): Likewise.
29413         * tree-inline.c (copy_loops): Likewise.
29414         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
29415         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
29416         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
29417         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
29418         * tree-vectorizer.c (vectorize_loops): Likewise.
29419         * tree-vectorizer.h (unlimited_cost_model): Likewise.
29421 2014-04-14  Richard Biener  <rguenther@suse.de>
29423         PR lto/60720
29424         * lto-streamer-out.c (wrap_refs): New function.
29425         (lto_output): Wrap symbol references in global initializes in
29426         type-preserving MEM_REFs.
29428 2014-04-14  Christian Bruel  <christian.bruel@st.com>
29430         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
29432 2014-04-14  Christian Bruel  <christian.bruel@st.com>
29434         * config/sh/sh.md (setmemqi): New expand pattern.
29435         * config/sh/sh.h (CLEAR_RATIO): Define.
29436         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
29437         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
29439 2014-04-14  Richard Biener  <rguenther@suse.de>
29441         PR middle-end/55022
29442         * fold-const.c (negate_expr_p): Don't negate directional rounding
29443         division.
29444         (fold_negate_expr): Likewise.
29446 2014-04-14  Richard Biener  <rguenther@suse.de>
29448         PR tree-optimization/59817
29449         PR tree-optimization/60453
29450         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
29451         recursion to catch all CHRECs in the scalar evolution and restrict
29452         the predicate for the remains appropriately.
29454 2014-04-12  Catherine Moore  <clm@codesourcery.com>
29456         * config/mips/constraints.md: Add new register constraint "kb".
29457         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
29458         (*movhi_internal): Likewise.
29459         (*movqi_internal): Likewise.
29460         * config/mips/mips.h (M16_STORE_REGS): New register class.
29461         (REG_CLASS_NAMES): Add M16_STORE_REGS.
29462         (REG_CLASS_CONTENTS): Likewise.
29463         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
29465 2014-04-11  Tobias Burnus  <burnus@net-b.de>
29467         PR c/60194
29468         * doc/invoke.texi (-Wformat-signedness): Document it.
29469         (Wformat=2): Mention that this enables -Wformat-signedness.
29471 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29473         * common/config/epiphany/epiphany-common.c
29474         (epiphany_option_optimization_table): Enable section anchors by
29475         default at -O1 or higher.
29476         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
29477         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
29478         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
29479         carries no extra cost.
29480         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
29481         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
29482         * config/epiphany/predicates.md (memclob_operand): New predicate.
29483         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
29484         Use memclob_operand predicate and X constraint for operand 3.
29486 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29488         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
29489         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
29490         its operands.
29492 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29494         PR rtl-optimization/60651
29495         * mode-switching.c (optimize_mode_switching): Make sure to emit
29496         sets of a lower numbered entity before sets of a higher numbered
29497         entity to a mode of the same or lower priority.
29498         When creating a seginfo for a basic block that starts with a code
29499         label, move the insertion point past the code label.
29500         (new_seginfo): Document and enforce requirement that
29501         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
29502         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
29503         * doc/tm.texi: Regenerate.
29505 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29507         PR target/60811
29508         * config/arc/arc.c (arc_save_restore): Fix assert typo.
29510 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
29512         * BASE-VER: Set to 4.10.0.
29514 2014-04-11  Tobias Burnus  <burnus@net-b.de>
29516         PR other/59055
29517         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
29518         * doc/gcc.texi (Service): Update description in the @menu
29519         * doc/invoke.texi (Option Summary): Remove misplaced and
29520         duplicated @menu.
29522 2014-04-11  Steve Ellcey  <sellcey@mips.com>
29523             Jakub Jelinek  <jakub@redhat.com>
29525         PR middle-end/60556
29526         * expr.c (convert_move): Use emit_store_flag_force instead of
29527         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
29528         argument to it.
29530 2014-04-11  Richard Biener  <rguenther@suse.de>
29532         PR middle-end/60797
29533         * varasm.c (assemble_alias): Avoid endless error reporting
29534         recursion by setting TREE_ASM_WRITTEN.
29536 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29538         * config/s390/s390.md: Add a splitter for NOT rtx.
29540 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
29542         PR rtl-optimization/60663
29543         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29545 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
29546             Jakub Jelinek  <jakub@redhat.com>
29548         PR lto/60567
29549         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29550         flag from decl_node to node.
29552 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29554         PR debug/60655
29555         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29556         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29557         ameliorating the cases where it can be.
29559 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
29561         Revert
29562         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
29564         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29565         (loadsync_<mode>): Change mode.
29566         (load_quadpti, store_quadpti): New.
29567         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29568         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29569         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29571 2014-04-09  Cong Hou  <congh@google.com>
29573         PR testsuite/60773
29574         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29575         documentation.
29577 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29579         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29580         instead of vnor to exploit possible fusion opportunity in the
29581         future.
29582         (altivec_expand_vec_perm_const_le): Likewise.
29584 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
29586         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29587         (loadsync_<mode>): Change mode.
29588         (load_quadpti, store_quadpti): New.
29589         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29590         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29592 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
29594         PR target/60763
29595         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29596         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29597         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29599 2014-04-08  Richard Biener  <rguenther@suse.de>
29601         PR middle-end/60706
29602         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29603         a 64bit widest int print double-int similar to on HWI64 hosts.
29605 2014-04-08  Richard Biener  <rguenther@suse.de>
29607         PR tree-optimization/60785
29608         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29609         default defs properly.
29611 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
29613         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29614         (Weffc++): Likewise.
29616 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
29618         * ipa-devirt.c (maybe_record_node): When node is not recorded,
29619         set completep to false rather than true.
29621 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
29623         PR target/60504
29624         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29625         ARM_TARGET2_DWARF_FORMAT.
29627 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
29629         PR target/60609
29630         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29631         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29632         ADDR_DIFF_VEC.
29634 2014-04-07  Richard Biener  <rguenther@suse.de>
29636         PR tree-optimization/60766
29637         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29638         (may_eliminate_iv): Convert cand_value_at result to desired type.
29640 2014-04-07  Jason Merrill  <jason@redhat.com>
29642         PR c++/60731
29643         * common.opt (-fno-gnu-unique): Add.
29644         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
29646 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29648         * haifa-sched.c: Fix outdated function reference and minor
29649         grammar errors in introductory comment.
29651 2014-04-07  Richard Biener  <rguenther@suse.de>
29653         PR middle-end/60750
29654         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
29655         for noreturn calls.
29656         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
29658 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
29660         PR debug/55794
29661         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29662         size accounting for thunks.
29663         (pa_asm_output_mi_thunk): Use final_start_function() and
29664         final_end_function() to output function start and end directives.
29666 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
29668         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29669         device specific ISA/ feature information. Remove short_sp and
29670         errata_skip ds.  Add avr_device_specific_features enum to have device
29671         specific info.
29672         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29673         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29674         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29675         updated device specific info.
29676         * config/avr/avr-mcus.def: Merge device specific details to
29677         dev_attribute field.
29678         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29679         errata_skip.
29680         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29681         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29682         assembler if RMW isa supported by current device.
29683         * config/avr/genmultilib.awk: Update as device info structure changed.
29684         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29686 2014-04-04  Cong Hou  <congh@google.com>
29688         PR tree-optimization/60656
29689         * tree-vect-stmts.c (supportable_widening_operation):
29690         Fix a bug that elements in a vector with vect_used_by_reduction
29691         property are incorrectly reordered when the operation on it is not
29692         consistant with the one in reduction operation.
29694 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
29696         PR rtl-optimization/60155
29697         * gcse.c (record_set_data): New function.
29698         (single_set_gcse): New function.
29699         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
29700         (hoist_code): Likewise.
29701         (get_pressure_class_and_nregs): Likewise.
29703 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
29705         * explow.c (probe_stack_range): Emit a final optimization blockage.
29707 2014-04-04  Anthony Green  <green@moxielogic.com>
29709         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
29710         typos.
29712 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
29714         PR ipa/59626
29715         * lto-cgraph.c (input_overwrite_node): Check that partitioning
29716         flags are set only during streaming.
29717         * ipa.c (process_references, walk_polymorphic_call_targets,
29718         symtab_remove_unreachable_nodes): Drop bodies of always inline
29719         after early inlining.
29720         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
29722 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
29723         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29725         PR debug/60655
29726         * dwarf2out.c (const_ok_for_output_1): Reject expressions
29727         containing a NOT.
29729 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29731         PR bootstrap/60743
29732         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
29733         duration.
29734         (cortex_a53_fdivd): Likewise.
29736 2014-04-04  Martin Jambor  <mjambor@suse.cz>
29738         PR ipa/60640
29739         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
29740         Adjust all callers.
29741         * cgraph.c (clone_of_p): Also return true if thunks match.
29742         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
29743         cgraph_function_or_thunk_node and an obsolete comment.
29744         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
29745         file.
29746         (build_function_decl_skip_args): Likewise.
29747         (set_new_clone_decl_and_node_flags): New function.
29748         (duplicate_thunk_for_node): Likewise.
29749         (redirect_edge_duplicating_thunks): Likewise.
29750         (cgraph_clone_node): New parameter args_to_skip, pass it to
29751         redirect_edge_duplicating_thunks which is called instead of
29752         cgraph_redirect_edge_callee.
29753         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
29754         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
29756 2014-04-04  Jeff Law  <law@redhat.com>
29758         PR target/60657
29759         * config/arm/predicates.md (const_int_I_operand): New predicate.
29760         (const_int_M_operand): Similarly.
29761         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
29762         const_int_operand.
29763         (insv_t2, extv_reg, extzv_t2): Likewise.
29764         (load_multiple_with_writeback): Similarly for const_int_I_operand.
29765         (pop_multiple_with_writeback_and_return): Likewise.
29766         (vfp_pop_multiple_with_writeback): Likewise
29768 2014-04-04  Richard Biener  <rguenther@suse.de>
29770         PR ipa/60746
29771         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
29772         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
29773         non-GIMPLE_LABELs.
29774         * gimplify.h (gimple_add_tmp_var_fn): Declare.
29775         * gimplify.c (gimple_add_tmp_var_fn): New function.
29776         * gimple-expr.h (create_tmp_reg_fn): Declare.
29777         * gimple-expr.c (create_tmp_reg_fn): New function.
29778         * gimple-low.c (record_vars_into): Don't change cfun.
29779         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
29780         code generation without cfun.
29782 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
29784         PR bootstrap/60719
29785         * Makefile.in (install-driver): Fix shell scripting.
29787 2014-04-03  Cong Hou  <congh@google.com>
29789         PR tree-optimization/60505
29790         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
29791         threshold of number of iterations below which no vectorization
29792         will be done.
29793         * tree-vect-loop.c (new_loop_vec_info):
29794         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
29795         * tree-vect-loop.c (vect_analyze_loop_operations):
29796         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
29797         * tree-vect-loop.c (vect_transform_loop):
29798         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
29799         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
29800         of iterations of the loop and see if we should build the epilogue.
29802 2014-04-03  Richard Biener  <rguenther@suse.de>
29804         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
29805         (streamer_tree_cache_create): Adjust.
29806         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
29807         to allow optional nodes array.
29808         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
29809         (streamer_tree_cache_append): Likewise.
29810         (streamer_tree_cache_create): Create nodes array optionally
29811         as specified by parameter.
29812         * lto-streamer-out.c (create_output_block): Avoid maintaining
29813         the node array in the writer cache.
29814         (DFS_write_tree): Remove assertion.
29815         (produce_asm_for_decls): Free the out decl state hash table early.
29816         * lto-streamer-in.c (lto_data_in_create): Adjust for
29817         streamer_tree_cache_create prototype change.
29819 2014-04-03  Richard Biener  <rguenther@suse.de>
29821         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
29822         set TREE_CHAIN to NULL_TREE.
29824 2014-04-03  Richard Biener  <rguenther@suse.de>
29826         PR tree-optimization/60740
29827         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
29828         over all GIMPLE_COND operands.
29830 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
29832         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
29833         (Weffc++): Remove Scott's numbering, merge lists and reference
29834         Wnon-virtual-dtor.
29836 2014-04-03  Nick Clifton  <nickc@redhat.com>
29838         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
29839         properly.
29841 2014-04-03  Martin Jambor  <mjambor@suse.cz>
29843         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
29844         mention gcc_unreachable before failing.
29845         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
29846         removed symbols.
29848 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
29850         PR ipa/60659
29851         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
29852         inconsistent code and instead mark the context inconsistent.
29853         (possible_polymorphic_call_targets): For inconsistent contexts
29854         return empty complete list.
29856 2014-04-02  Anthony Green  <green@moxielogic.com>
29858         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
29859         (extendqisi2, extendhisi2): Define.
29860         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
29861         (WCHAR_TYPE): Change to unsigned int.
29863 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29865         PR tree-optimization/60733
29866         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
29867         insertion point for PHI candidates to be the end of the feeding
29868         block for the PHI argument.
29870 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
29872         PR rtl-optimization/60650
29873         * lra-constraints.c (process_alt_operands): Decrease reject for
29874         earlyclobber matching.
29876 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29878         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
29880 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29882         * config/spu/spu.c (pad_bb): Do not crash when the last
29883         insn is CODE_FOR_blockage.
29885 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29887         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
29888         lies outside the target mode.
29890 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29892         PR target/60735
29893         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29894         software floating point or no floating point registers, do not
29895         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
29896         in GPRs that occurs after we tested for GPRs that would never be
29897         true.
29899         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29900         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29901         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
29902         specifically allow DDmode, since that does not use the SPE SIMD
29903         instructions.
29905 2014-04-02  Richard Biener  <rguenther@suse.de>
29907         PR middle-end/60729
29908         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
29909         MODE_INTs.  Properly use negv_optab.
29910         (expand_abs): Likewise.
29912 2014-04-02  Richard Biener  <rguenther@suse.de>
29914         PR bootstrap/60719
29915         * Makefile.in (install-driver): Guard extra installs with special
29916         names properly.
29918 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
29920         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29921         Document vec_vgbbd.
29923 2014-04-01  Richard Henderson  <rth@redhat.com>
29925         PR target/60704
29926         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
29927         alternative enabled before register allocation.
29929 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
29931         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
29932         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
29933         typo.
29934         (nios2_large_got_address): Remove unneeded 'sym' parameter.
29935         (nios2_got_address): Update nios2_large_got_address call site.
29936         (nios2_delegitimize_address): New function.
29937         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
29938         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
29939         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
29941 2014-04-01  Martin Husemann  <martin@duskware.de>
29943         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
29944         for -mabi=32.
29946 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
29948         PR rtl-optimization/60604
29949         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
29950         check from register_operand.
29951         (register_operand): Redefine in terms of general_operand.
29952         (nonmemory_operand): Use register_operand for the non-constant cases.
29954 2014-04-01  Richard Biener  <rguenther@suse.de>
29956         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
29958 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29960         * doc/invoke.texi (mapp-regs): Clarify.
29962 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
29964         * config/i386/avx512fintrin.h (__v32hi): Define type.
29965         (__v64qi): Likewise.
29966         (_mm512_set1_epi8): Define.
29967         (_mm512_set1_epi16): Define.
29968         (_mm512_set4_epi32): Define.
29969         (_mm512_set4_epi64): Define.
29970         (_mm512_set4_pd): Define.
29971         (_mm512_set4_ps): Define.
29972         (_mm512_setr4_epi64): Define.
29973         (_mm512_setr4_epi32): Define.
29974         (_mm512_setr4_pd): Define.
29975         (_mm512_setr4_ps): Define.
29976         (_mm512_setzero_epi32): Define.
29978 2014-03-31  Martin Jambor  <mjambor@suse.cz>
29980         PR middle-end/60647
29981         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
29982         callsite_arguments_match_p.  Updated all callers.  Also check types of
29983         corresponding formal parameters and actual arguments.
29984         (not_all_callers_have_enough_arguments_p) Renamed to
29985         some_callers_have_mismatched_arguments_p.
29987 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
29989         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
29991 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
29993         PR target/60034
29994         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
29995         section anchor.
29997 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
29999         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30000         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30001         Split out
30002         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30003         Use FMAMODE_NOVF512 mode iterator.
30004         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30005         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30006         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30007         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30008         Split out
30009         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30010         Use VF_128_256 mode iterator.
30011         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30012         Ditto.
30014 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30016         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30017         static chain if needed.
30019 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30021         PR target/60697
30022         * lra-constraints.c (index_part_to_reg): New.
30023         (process_address): Use it.
30025 2014-03-27  Jeff Law  <law@redhat.com>
30026             Jakub Jelinek  <jakub@redhat.com>
30028         PR target/60648
30029         * expr.c (do_tablejump): Use simplify_gen_binary rather than
30030         gen_rtx_{PLUS,MULT} to build up the address expression.
30032         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30033         creating non-canonical RTL.
30035 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30037         PR ipa/60243
30038         * ipa-inline.c (want_inline_small_function_p): Short circuit large
30039         functions; reorganize to make cheap checks first.
30040         (inline_small_functions): Do not estimate growth when dumping;
30041         it is expensive.
30042         * ipa-inline.h (inline_summary): Add min_size.
30043         (growth_likely_positive): New function.
30044         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30045         (set_cond_stmt_execution_predicate): Cleanup.
30046         (estimate_edge_size_and_time): Compute min_size.
30047         (estimate_calls_size_and_time): Likewise.
30048         (estimate_node_size_and_time): Likewise.
30049         (inline_update_overall_summary): Update min_size.
30050         (do_estimate_edge_time): Likewise.
30051         (do_estimate_edge_size): Update.
30052         (do_estimate_edge_hints): Update.
30053         (growth_likely_positive): New function.
30055 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
30057         PR target/60693
30058         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30059         also if addr has VOIDmode.
30061 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30063         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30064         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30065         Declare extern.
30066         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30067         instructions as well as AdvancedSIMD loads.
30069 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30071         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30072         Use crypto_aese type.
30073         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30074         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30075         crypto_aese, crypto_aesmc.  Move to types.md.
30076         * config/arm/types.md (crypto_aes): Split into crypto_aese,
30077         crypto_aesmc.
30078         * config/arm/iterators.md (crypto_type): Likewise.
30080 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30082         * cgraph.c: Include expr.h and tree-dfa.h.
30083         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30084         remove LHS.
30086 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30088         PR target/60675
30089         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30090         regs from checking multi-reg pseudos.
30092 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30094         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30096 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30098         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30099         if it would clobber the stack pointer, even temporarily.
30101 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30103         * mode-switching.c: Make small adjustments to the top comment.
30105 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
30107         * config/rs6000/constraints.md (wD constraint): New constraint to
30108         match the constant integer to get the top DImode/DFmode out of a
30109         vector in a VSX register.
30111         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30112         match the constant integer to get the top DImode/DFmode out of a
30113         vector in a VSX register.
30115         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30116         for ISA 2.07.
30118         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30119         vbpermq builtins.
30121         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30122         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30124         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30125         Optimize vec_extract of 64-bit values, where the value being
30126         extracted is in the top word, where we can use scalar
30127         instructions.  Add direct move and store support.  Combine the big
30128         endian/little endian vector select load support into a single insn.
30129         (vsx_extract_<mode>_internal1): Likewise.
30130         (vsx_extract_<mode>_internal2): Likewise.
30131         (vsx_extract_<mode>_load): Likewise.
30132         (vsx_extract_<mode>_store): Likewise.
30133         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30134         combined into vsx_extract_<mode>_load.
30135         (vsx_extract_<mode>_one_le): Likewise.
30137         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30138         define the top 64-bit vector element.
30140         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30141         constraint.
30143         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30144         Document vec_vbpermq builtin.
30146         PR target/60672
30147         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30148         enable use of xxsldwi and xxpermdi builtin functions.
30149         (vec_xxpermdi): Likewise.
30151         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30152         Document use of vec_xxsldwi and vec_xxpermdi builtins.
30154 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30156         PR rtl-optimization/60650
30157         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30158         first_p.  Use it.
30159         (find_spills_for): New.
30160         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
30161         Spill all pseudos on the second iteration.
30163 2014-03-27  Marek Polacek  <polacek@redhat.com>
30165         PR c/50347
30166         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
30167         types.
30169 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30171         * config/s390/s390.c (s390_can_use_return_insn): Check for
30172         call-saved FPRs on 31 bit.
30174 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
30176         PR middle-end/60682
30177         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
30178         if they need regimplification, just drop them instead of
30179         calling gimple_regimplify_operands on them.
30181 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30183         PR target/60580
30184         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
30185         (aarch64_frame_pointer_required): Adjust logic.
30186         (aarch64_can_eliminate): Adjust logic.
30187         (aarch64_override_options_after_change): Adjust logic.
30189 2014-03-27  Dehao Chen  <dehao@google.com>
30191         * ipa-inline.c (early_inliner): Update node's inline info.
30193 2014-03-26  Dehao Chen  <dehao@google.com>
30195         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30196         compiler inserted conditional jumps for NAN float check.
30198 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
30200         * ubsan.h (ubsan_create_data): Change second argument's type
30201         to const location_t *.
30202         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30203         _("<unknown>").
30204         (ubsan_create_data): Change second argument to const location_t *PLOC.
30205         Create Loc field whenever PLOC is non-NULL.
30206         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30207         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30208         callers.
30210         PR other/59545
30211         * real.c (real_to_integer2): Change type of low to UHWI.
30213 2014-03-26  Tobias Burnus  <burnus@net-b.de>
30215         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30216         (CILK_SELF_SPECS): New define.
30217         (driver_self_specs): Use it.
30219 2014-03-26  Richard Biener  <rguenther@suse.de>
30221         * tree-pretty-print.c (percent_K_format): Implement special
30222         case for LTO and its stripped down BLOCK tree.
30224 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
30226         PR sanitizer/60636
30227         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30229         * tree-vrp.c (simplify_internal_call_using_ranges): If only
30230         one range is range_int_cst_p, but not both, at least optimize
30231         addition/subtraction of 0 and multiplication by 0 or 1.
30232         * gimple-fold.c (gimple_fold_call): Fold
30233         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30234         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30235         INTEGER_CSTs, try to fold at least x * 0 and y - y.
30237 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30239         PR rtl-optimization/60452
30240         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30241         <case REG>: Return 1 for invalid offsets from the frame pointer.
30243 2014-03-26  Marek Polacek  <polacek@redhat.com>
30245         PR c/37428
30246         * doc/extend.texi (C Extensions): Mention variable-length arrays in
30247         a structure/union.
30249 2014-03-26  Marek Polacek  <polacek@redhat.com>
30251         PR c/39525
30252         * doc/extend.texi (Designated Inits): Describe what happens to omitted
30253         field members.
30255 2014-03-26  Marek Polacek  <polacek@redhat.com>
30257         PR other/59545
30258         * ira-color.c (update_conflict_hard_regno_costs): Perform the
30259         multiplication in unsigned type.
30261 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
30263         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30265 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
30267         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30269 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
30271         PR ipa/60315
30272         * cif-code.def (UNREACHABLE) New code.
30273         * ipa-inline.c (inline_small_functions): Skip edges to
30274         __builtlin_unreachable.
30275         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30276         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30277         predicate to __bulitin_unreachable.
30278         (set_cond_stmt_execution_predicate): Fix issue when
30279         invert_tree_comparison returns ERROR_MARK.
30280         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30281         propagate to inline clones.
30282         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30283         to unreachable.
30284         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30285         * cgraphclones.c (cgraph_clone_node): If call destination is already
30286         ureachable, do not redirect it back.
30287         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30288         unreachable.
30290 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
30292         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30293         Do not modify inline clones.
30295 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
30297         * config/i386/i386.md (general_sext_operand): New mode attr.
30298         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
30299         don't generate (sign_extend (const_int)).
30300         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
30301         operands[2].  Use We constraint instead of <i> and
30302         <general_sext_operand> predicate instead of <general_operand>.
30303         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
30304         * config/i386/constraints.md (We): New constraint.
30305         * config/i386/predicates.md (x86_64_sext_operand,
30306         sext_operand): New predicates.
30308 2014-03-25  Martin Jambor  <mjambor@suse.cz>
30310         PR ipa/60600
30311         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
30312         inconsistent devirtualizations to __builtin_unreachable.
30314 2014-03-25  Marek Polacek  <polacek@redhat.com>
30316         PR c/35449
30317         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
30319 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
30321         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
30322         order of elements for big-endian.
30324 2014-03-25  Richard Biener  <rguenther@suse.de>
30326         PR middle-end/60635
30327         * gimplify-me.c (gimple_regimplify_operands): Update the
30328         re-gimplifed stmt.
30330 2014-03-25  Martin Jambor  <mjambor@suse.cz>
30332         PR ipa/59176
30333         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
30334         (lto_output_varpool_node): Likewise.
30335         (input_overwrite_node): Likewise.
30336         (input_varpool_node): Likewise.
30338 2014-03-25  Richard Biener  <rguenther@suse.de>
30340         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
30341         (run_gcc): Likewise.
30343 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
30345         * combine.c (simplify_compare_const): Add MODE argument.
30346         Handle mode_width 0 as very large mode_width.
30347         (try_combine, simplify_comparison): Adjust callers.
30349         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
30350         type to avoid signed integer overflow.
30351         * explow.c (plus_constant): Likewise.
30353 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30355         * doc/generic.texi: Correct typos.
30357 2014-03-24  Tobias Burnus  <burnus@net-b.de>
30359         * doc/invoke.texi (-flto): Expand section about
30360         using static libraries with LTO.
30362 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30364         PR rtl-optimization/60501
30365         * optabs.def (addptr3_optab): New optab.
30366         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
30367         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
30368         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
30370         * lra.c (emit_add3_insn): Use the addptr pattern if available.
30372         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
30374 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
30376         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
30377         _mm512_set1_pd.
30379         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
30380         (_mm256_undefined_ps): Define.
30381         (_mm256_undefined_pd): Define.
30382         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
30383         (_mm_undefined_pd): Define.
30384         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
30385         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
30386         (_mm512_undefined_ps): Define.
30387         (_mm512_undefined_pd): Define.
30388         Use _mm*_undefined_*.
30389         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
30391 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
30393         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
30394         (lshr_simd): DI mode added.
30395         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
30396         (aarch64_ushr_simddi): Likewise.
30397         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
30398         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
30399         (vshrd_n_u64): Likewise.
30401 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30403         * Makefile.in (s-macro_list): Depend on cc1.
30405 2014-03-23  Teresa Johnson  <tejohnson@google.com>
30407         * ipa-utils.c (ipa_print_order): Use specified dump file.
30409 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
30411         PR rtl-optimization/60601
30412         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
30414         * gcc.c (eval_spec_function): Initialize save_growing_value.
30416 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
30418         PR sanitizer/60613
30419         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
30420         code == MINUS_EXPR, never swap op0 with op1.
30422         * toplev.c (init_local_tick): Avoid signed integer multiplication
30423         overflow.
30424         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
30425         shift by first operand's bitsize.
30427 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
30429         PR target/60610
30430         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
30431         redefine to 1 or 0.
30432         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
30433         TARGET_ISA_64BIT_P(x).
30435 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30437         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
30438         pattern for vector nor instead of subtract from splat(-1).
30439         (altivec_expand_vec_perm_const_le): Likewise.
30441 2014-03-21  Richard Henderson  <rth@twiddle.net>
30443         PR target/60598
30444         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
30445         related insns after epilogue_completed.
30447 2014-03-21  Martin Jambor  <mjambor@suse.cz>
30449         PR ipa/59176
30450         * cgraph.h (symtab_node): New flag body_removed.
30451         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
30452         when removing bodies.
30453         * symtab.c (dump_symtab_base): Dump body_removed flag.
30454         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
30455         had their bodies removed.
30457 2014-03-21  Martin Jambor  <mjambor@suse.cz>
30459         PR ipa/60419
30460         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
30461         in the border.
30463 2014-03-21  Richard Biener  <rguenther@suse.de>
30465         PR tree-optimization/60577
30466         * tree-core.h (struct tree_base): Document nothrow_flag use
30467         in DECL_NONALIASED.
30468         * tree.h (DECL_NONALIASED): New.
30469         (may_be_aliased): Adjust.
30470         * coverage.c (build_var): Set DECL_NONALIASED.
30472 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30474         * expr.c (expand_expr_real_1): Remove outdated comment.
30476 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
30478         PR middle-end/60597
30479         * ira.c (adjust_cleared_regs): Call copy_rtx on
30480         *reg_equiv[REGNO (loc)].src_p before passing it to
30481         simplify_replace_fn_rtx.
30483         PR target/60568
30484         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
30485         into CONST, put pic register as first operand of PLUS.  Use
30486         gen_const_mem for both 32-bit and 64-bit PIC got loads.
30488 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30490         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
30492 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30494         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
30495         around for store forwarding issue in the FPU on the UT699.
30496         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
30497         loads and operations if -mfix-ut699 is specified.
30498         (divtf3_hq): Tweak attribute.
30499         (sqrttf2_hq): Likewise.
30501 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30503         * calls.c (store_one_arg): Remove incorrect const qualification on the
30504         type of the temporary.
30505         * cfgexpand.c (expand_return): Likewise.
30506         * expr.c (expand_constructor): Likewise.
30507         (expand_expr_real_1): Likewise.
30509 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30511         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
30512         of parts.
30514 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
30516         PR target/60039
30517         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
30519 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
30521         * config/arm/aarch-common-protos.h
30522         (alu_cost_table): Fix spelling of "extend".
30523         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
30525 2014-03-19  Richard Biener  <rguenther@suse.de>
30527         PR middle-end/60553
30528         * tree-core.h (tree_type_common): Re-order pointer members
30529         to reduce recursion depth during GC walks.
30531 2014-03-19  Marek Polacek  <polacek@redhat.com>
30533         PR sanitizer/60569
30534         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
30535         before accessing it.
30537 2014-03-19  Richard Biener  <rguenther@suse.de>
30539         PR lto/59543
30540         * lto-streamer-in.c (input_function): In WPA stage do not drop
30541         debug stmts.
30543 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
30545         PR tree-optimization/60559
30546         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30547         with build_zero_cst assignment.
30549 2014-03-18  Kai Tietz  <ktietz@redhat.com>
30551         PR rtl-optimization/56356
30552         * sdbout.c (sdbout_parms): Verify that parms'
30553         incoming argument is valid.
30554         (sdbout_reg_parms): Likewise.
30556 2014-03-18  Richard Henderson  <rth@redhat.com>
30558         PR target/60562
30559         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30560         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
30561         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30563 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
30565         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30566         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30567         Italicize plugin event names in description.  Explain that
30568         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
30569         Remind that no GCC functions should be called after PLUGIN_FINISH.
30570         Explain what pragmas with expansion are.
30572 2014-03-18  Martin Liska  <mliska@suse.cz>
30574         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30575         gimple call statement is update.
30576         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30577         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30579 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
30581         PR sanitizer/60557
30582         * ubsan.c (ubsan_instrument_unreachable): Call
30583         initialize_sanitizer_builtins.
30584         (ubsan_pass): Likewise.
30586         PR sanitizer/60535
30587         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30588         varpool_finalize_decl instead of rest_of_decl_compilation.
30590 2014-03-18  Richard Biener  <rguenther@suse.de>
30592         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30593         by using bitmap_and_compl instead of bitmap_and_compl_into.
30594         (df_rd_transfer_function): Likewise.
30596 2014-03-18  Richard Biener  <rguenther@suse.de>
30598         * doc/lto.texi (fresolution): Fix typo.
30600 2014-03-18  Richard Biener  <rguenther@suse.de>
30602         * doc/invoke.texi (flto): Update for changes in 4.9.
30604 2014-03-18  Richard Biener  <rguenther@suse.de>
30606         * doc/loop.texi: Remove section on the removed lambda framework.
30607         Update loop docs with recent changes in preserving loop structure.
30609 2014-03-18  Richard Biener  <rguenther@suse.de>
30611         * doc/lto.texi (-fresolution): Document.
30613 2014-03-18  Richard Biener  <rguenther@suse.de>
30615         * doc/contrib.texi: Adjust my name.
30617 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
30619         PR ipa/58721
30620         * internal-fn.c: Include diagnostic-core.h.
30621         (expand_BUILTIN_EXPECT): New function.
30622         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30623         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30624         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30625         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30626         IFN_BUILTIN_EXPECT.
30627         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30628         Revert 3 argument __builtin_expect code.
30629         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30630         * gimple-fold.c (gimple_fold_call): Likewise.
30631         * tree.h (fold_builtin_expect): New prototype.
30632         * builtins.c (build_builtin_expect_predicate): Add predictor
30633         argument, if non-NULL, create 3 argument __builtin_expect.
30634         (fold_builtin_expect): No longer static.  Add ARG2 argument,
30635         pass it through to build_builtin_expect_predicate.
30636         (fold_builtin_2): Adjust caller.
30637         (fold_builtin_3): Handle BUILT_IN_EXPECT.
30638         * internal-fn.def (BUILTIN_EXPECT): New.
30640 2014-03-18  Tobias Burnus  <burnus@net-b.de>
30642         PR ipa/58721
30643         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
30644         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
30645         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
30647 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
30649         PR ipa/58721
30650         * predict.c (combine_predictions_for_bb): Fix up formatting.
30651         (expr_expected_value_1, expr_expected_value): Add predictor argument,
30652         fill what it points to if non-NULL.
30653         (tree_predict_by_opcode): Adjust caller, use the predictor.
30654         * predict.def (PRED_COMPARE_AND_SWAP): Add.
30656 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
30658         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30659         proper constant for the store mode.
30661 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
30663         * symtab.c (change_decl_assembler_name): Fix transparent alias
30664         chain construction.
30666 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
30668         * config/aarch64/aarch64.c: Correct the comments about the
30669         aarch64 stack layout.
30671 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
30673         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30674         check for GF_OMP_FOR_KIND_FOR.
30676 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
30678         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30679         ymm and zmm register names.
30681 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
30683         PR target/60516
30684         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30685         note creation for the 2010-08-31 changes.
30687 2014-03-17  Marek Polacek  <polacek@redhat.com>
30689         PR middle-end/60534
30690         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
30691         as -fno-tree-loop-vectorize.
30692         (expand_omp_simd): Likewise.
30694 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
30696         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
30697         (eligible_for_call_delay): New prototype.
30698         * config/sparc/sparc.c (tls_call_delay): Rename into...
30699         (eligible_for_call_delay): ...this.  Return false if the instruction
30700         cannot be put in the delay slot of a branch.
30701         (eligible_for_restore_insn): Simplify.
30702         (eligible_for_return_delay): Return false if the instruction cannot be
30703         put in the delay slot of a branch and simplify.
30704         (eligible_for_sibcall_delay): Return false if the instruction cannot be
30705         put in the delay slot of a branch.
30706         * config/sparc/sparc.md (fix_ut699): New attribute.
30707         (tls_call_delay): Delete.
30708         (in_call_delay): Reimplement.
30709         (eligible_for_sibcall_delay): Rename into...
30710         (in_sibcall_delay): ...this.
30711         (eligible_for_return_delay): Rename into...
30712         (in_return_delay): ...this.
30713         (in_branch_delay): Reimplement.
30714         (in_uncond_branch_delay): Delete.
30715         (in_annul_branch_delay): Delete.
30717 2014-03-14  Richard Henderson  <rth@redhat.com>
30719         PR target/60525
30720         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
30721         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
30722         (*floathi<X87MODEF>2_i387_with_temp): Remove.
30723         (floathi splitters): Remove.
30724         (float<SWI48x>xf2): New pattern.
30725         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
30726         code that tried to handle DImode for 32-bit, but which was excluded
30727         by the pattern's condition.  Drop allocation of stack temporary.
30728         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
30729         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
30730         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
30731         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
30732         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
30733         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
30734         (*float<SWI48><MODEF>2_sse_interunit): Remove.
30735         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
30736         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
30737         (*float<SWI48x><X87MODEF>2_i387): Remove.
30738         (all float _with_temp splitters): Remove.
30739         (*float<SWI48x><MODEF>2_i387): New pattern.
30740         (*float<SWI48><MODEF>2_sse): New pattern.
30741         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
30742         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
30744 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
30745             Marek Polacek  <polacek@redhat.com>
30747         PR middle-end/60484
30748         * common.opt (dump_base_name_prefixed): New Variable.
30749         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
30750         if x_dump_base_name_prefixed is already set, set it at the end.
30752 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
30754         PR rtl-optimization/60508
30755         * lra-constraints.c (get_reload_reg): Add new parameter
30756         in_subreg_p.
30757         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
30758         Pass the new parameter values.
30760 2014-03-14  Richard Biener  <rguenther@suse.de>
30762         * common.opt: Revert unintented changes from r205065.
30763         * opts.c: Likewise.
30765 2014-03-14  Richard Biener  <rguenther@suse.de>
30767         PR middle-end/60518
30768         * cfghooks.c (split_block): Properly adjust all loops the
30769         block was a latch of.
30771 2014-03-14  Martin Jambor  <mjambor@suse.cz>
30773         PR lto/60461
30774         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
30775         and simplify it.
30777 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
30779         PR target/59396
30780         * config/avr/avr.c (avr_set_current_function): Pass function name
30781         through default_strip_name_encoding before sanity checking instead
30782         of skipping the first char of the assembler name.
30784 2014-03-13  Richard Henderson  <rth@redhat.com>
30786         PR debug/60438
30787         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
30788         (ix86_force_to_memory, ix86_free_from_memory): Remove.
30789         * config/i386/i386-protos.h: Likewise.
30790         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
30791         in the expander instead of a splitter.
30792         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
30793         any possibility of requiring a memory.
30794         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
30795         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
30796         (fp branch splitters): Update for ix86_split_fp_branch.
30797         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
30798         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
30799         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
30800         (*fop_<MODEF>_2_i387): Remove f/r alternative.
30801         (*fop_<MODEF>_3_i387): Likewise.
30802         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
30803         (splitters for the fop_* register patterns): Remove.
30804         (fscalexf4_i387): Rename from *fscalexf4_i387.
30805         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
30807 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
30809         PR tree-optimization/59779
30810         * tree-dfa.c (get_ref_base_and_extent): Use double_int
30811         type for bitsize and maxsize instead of HOST_WIDE_INT.
30813 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
30815         PR rtl-optimization/57320
30816         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
30817         the CFG after thread_prologue_and_epilogue_insns.
30819 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
30821         PR rtl-optimization/57189
30822         * lra-constraints.c (process_alt_operands): Disfavor spilling
30823         vector pseudos.
30825 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
30827         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
30829 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
30831         PR tree-optimization/59025
30832         PR middle-end/60418
30833         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
30834         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
30836 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
30838         PR target/60486
30839         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
30840         calls of avr_out_plus_1.
30842 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
30844         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
30845         BB's single pred and update the father loop's latch info later.
30847 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
30849         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
30850         (VEC_M): Likewise.
30851         (VEC_N): Likewise.
30852         (VEC_R): Likewise.
30853         (VEC_base): Likewise.
30854         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
30855         registers, we need to swap double words in little endian mode.
30857         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
30858         to be a container mode for 128-bit integer operations added in ISA
30859         2.07.  Unlike TImode and PTImode, the preferred register set is
30860         the Altivec/VMX registers for the 128-bit operations.
30862         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
30863         declarations.
30864         (rs6000_split_128bit_ok_p): Likewise.
30866         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
30867         macros for creating ISA 2.07 normal and overloaded builtin
30868         functions with 3 arguments.
30869         (BU_P8V_OVERLOAD_3): Likewise.
30870         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
30871         for use as overloaded functions.
30872         (VPERM_1TI_UNS): Likewise.
30873         (VSEL_1TI): Likewise.
30874         (VSEL_1TI_UNS): Likewise.
30875         (ST_INTERNAL_1ti): Likewise.
30876         (LD_INTERNAL_1ti): Likewise.
30877         (XXSEL_1TI): Likewise.
30878         (XXSEL_1TI_UNS): Likewise.
30879         (VPERM_1TI): Likewise.
30880         (VPERM_1TI_UNS): Likewise.
30881         (XXPERMDI_1TI): Likewise.
30882         (SET_1TI): Likewise.
30883         (LXVD2X_V1TI): Likewise.
30884         (STXVD2X_V1TI): Likewise.
30885         (VEC_INIT_V1TI): Likewise.
30886         (VEC_SET_V1TI): Likewise.
30887         (VEC_EXT_V1TI): Likewise.
30888         (EQV_V1TI): Likewise.
30889         (NAND_V1TI): Likewise.
30890         (ORC_V1TI): Likewise.
30891         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
30892         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
30893         overloaded builtin.
30894         (VADDUQM): Likewise.
30895         (VSUBCUQ): Likewise.
30896         (VADDEUQM): Likewise.
30897         (VADDECUQ): Likewise.
30898         (VSUBEUQM): Likewise.
30899         (VSUBECUQ): Likewise.
30901         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
30902         __int128_t and __uint128_t types.
30903         (__uint128_type): Likewise.
30904         (altivec_categorize_keyword): Add support for vector __int128_t,
30905         vector __uint128_t, vector __int128, and vector unsigned __int128
30906         as a container type for TImode operations that need to be done in
30907         VSX/Altivec registers.
30908         (rs6000_macro_to_expand): Likewise.
30909         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
30910         to support 128-bit integer instructions vaddcuq, vadduqm,
30911         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
30912         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
30914         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
30915         for V1TImode, and set up preferences to use VSX/Altivec registers.
30916         Setup VSX reload handlers.
30917         (rs6000_debug_reg_global): Likewise.
30918         (rs6000_init_hard_regno_mode_ok): Likewise.
30919         (rs6000_preferred_simd_mode): Likewise.
30920         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
30921         (easy_altivec_constant): Likewise.
30922         (output_vec_const_move): Likewise.
30923         (rs6000_expand_vector_set): Convert V1TImode set and extract to
30924         simple move.
30925         (rs6000_expand_vector_extract): Likewise.
30926         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
30927         addressing.
30928         (rs6000_const_vec): Add support for V1TImode.
30929         (rs6000_emit_le_vsx_load): Swap double words when loading or
30930         storing TImode/V1TImode.
30931         (rs6000_emit_le_vsx_store): Likewise.
30932         (rs6000_emit_le_vsx_move): Likewise.
30933         (rs6000_emit_move): Add support for V1TImode.
30934         (altivec_expand_ld_builtin): Likewise.
30935         (altivec_expand_st_builtin): Likewise.
30936         (altivec_expand_vec_init_builtin): Likewise.
30937         (altivec_expand_builtin): Likewise.
30938         (rs6000_init_builtins): Add support for V1TImode type.  Add
30939         support for ISA 2.07 128-bit integer builtins.  Define type names
30940         for the VSX/Altivec vector types.
30941         (altivec_init_builtins): Add support for overloaded vector
30942         functions with V1TImode type.
30943         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
30944         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
30945         external function.
30946         (rs6000_split_128bit_ok_p): Likewise.
30947         (rs6000_handle_altivec_attribute): Create V1TImode from vector
30948         __int128_t and vector __uint128_t.
30950         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
30951         and mode attributes.
30952         (VSX_M): Likewise.
30953         (VSX_M2): Likewise.
30954         (VSm): Likewise.
30955         (VSs): Likewise.
30956         (VSr): Likewise.
30957         (VSv): Likewise.
30958         (VS_scalar): Likewise.
30959         (VS_double): Likewise.
30960         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
30962         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
30963         we support the ISA 2.07 128-bit integer arithmetic instructions.
30964         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
30965         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
30966         and TImode types for use with the builtin functions.
30967         (V1TI_type_node): Likewise.
30968         (unsigned_V1TI_type_node): Likewise.
30969         (intTI_type_internal_node): Likewise.
30970         (uintTI_type_internal_node): Likewise.
30972         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
30973         128-bit builtin functions.
30974         (UNSPEC_VADDEUQM): Likewise.
30975         (UNSPEC_VADDECUQ): Likewise.
30976         (UNSPEC_VSUBCUQ): Likewise.
30977         (UNSPEC_VSUBEUQM): Likewise.
30978         (UNSPEC_VSUBECUQ): Likewise.
30979         (VM): Add V1TImode to vector mode iterators.
30980         (VM2): Likewise.
30981         (VI_unit): Likewise.
30982         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
30983         (altivec_vaddcuq): Likewise.
30984         (altivec_vsubuqm): Likewise.
30985         (altivec_vsubcuq): Likewise.
30986         (altivec_vaddeuqm): Likewise.
30987         (altivec_vaddecuq): Likewise.
30988         (altivec_vsubeuqm): Likewise.
30989         (altivec_vsubecuq): Likewise.
30991         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
30992         mode iterators.
30993         (BOOL_128): Likewise.
30994         (BOOL_REGS_OUTPUT): Likewise.
30995         (BOOL_REGS_OP1): Likewise.
30996         (BOOL_REGS_OP2): Likewise.
30997         (BOOL_REGS_UNARY): Likewise.
30998         (BOOL_REGS_AND_CR0): Likewise.
31000         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31001         128-bit integer builtin support.
31002         (vec_vadduqm): Likewise.
31003         (vec_vaddecuq): Likewise.
31004         (vec_vaddeuqm): Likewise.
31005         (vec_vsubecuq): Likewise.
31006         (vec_vsubeuqm): Likewise.
31007         (vec_vsubcuq): Likewise.
31008         (vec_vsubuqm): Likewise.
31010         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31011         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31012         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31013         128-bit integer add/subtract to ISA 2.07.
31015 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
31017         * config/arc/arc.c (arc_predicate_delay_insns):
31018         Fix third argument passed to conditionalize_nonjump.
31020 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
31022         * config/aarch64/aarch64-builtins.c
31023         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31024         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31025         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31026         instead of __builtin_lfloor.
31027         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31029 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31031         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31032         (tree_ssa_ifcombine_bb_1): New function.
31033         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
31034         is an empty forwarder block to then_bb or vice versa and then_bb
31035         and else_bb are effectively swapped.
31037 2014-03-12  Christian Bruel  <christian.bruel@st.com>
31039         PR target/60264
31040         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31041         REG_CFA_DEF_CFA note.
31042         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31043         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31045 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31047         PR tree-optimization/60454
31048         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31050 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31052         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31053         Do not define target_cpu_default2 to generic.
31054         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31055         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31056         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31058 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31059             Marc Glisse  <marc.glisse@inria.fr>
31061         PR tree-optimization/60502
31062         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31063         instead of build_low_bits_mask.
31065 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31067         PR middle-end/60482
31068         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31069         if there are multiple uses, but op doesn't live on E edge.
31070         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31071         clobber stmts before __builtin_unreachable.
31073 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
31075         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31076         hard_frame_pointer_rtx.
31077         * cse.c (cse_insn): Remove volatile check.
31078         * cselib.c (cselib_process_insn): Likewise.
31079         * dse.c (scan_insn): Likewise.
31081 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31083         * config/arc/arc.c (conditionalize_nonjump): New function,
31084         broken out of ...
31085         (arc_ifcvt): ... this.
31086         (arc_predicate_delay_insns): Use it.
31088 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31090         * config/arc/predicates.md (extend_operand): During/after reload,
31091         allow const_int_operand.
31092         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31093         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
31094         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31095         to "i".
31096         (umulsi3_highpart_i): Likewise.
31098 2014-03-11  Richard Biener  <rguenther@suse.de>
31100         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31101         Add asserts to guard possible wrong-code bugs.
31103 2014-03-11  Richard Biener  <rguenther@suse.de>
31105         PR tree-optimization/60429
31106         PR tree-optimization/60485
31107         * tree-ssa-structalias.c (set_union_with_increment): Properly
31108         take into account all fields that overlap the shifted vars.
31109         (do_sd_constraint): Likewise.
31110         (do_ds_constraint): Likewise.
31111         (get_constraint_for_ptr_offset): Likewise.
31113 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
31115         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31116         (nios2_compute_frame_layout):
31117         Add calculation of cfun->machine->fp_save_offset.
31118         (nios2_expand_prologue): Correct setting of frame pointer register
31119         in prologue.
31120         (nios2_expand_epilogue): Update recovery of stack pointer from
31121         frame pointer accordingly.
31122         (nios2_initial_elimination_offset): Update calculation of offset
31123         for eliminating to HARD_FRAME_POINTER_REGNUM.
31125 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
31127         PR ipa/60457
31128         * ipa.c (symtab_remove_unreachable_nodes): Don't call
31129         cgraph_get_create_node on VAR_DECLs.
31131 2014-03-10  Richard Biener  <rguenther@suse.de>
31133         PR middle-end/60474
31134         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31136 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
31138         * config/vms/vms.opt (vms_float_format): New variable.
31140 2014-03-08  Tobias Burnus  <burnus@net-b.de>
31142         * doc/invoke.texi (-fcilkplus): Update implementation status.
31144 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
31145             Richard Biener  <rguenther@suse.de>
31147         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31148         consistently accross all TUs.
31149         (run_gcc): Enable -fshort-double automatically at link at link-time
31150         and disallow override.
31152 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
31154         PR target/58271
31155         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31156         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31157         if they can't be used.
31159 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31161         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
31162         for Solaris 11/x86 ld.
31163         * configure: Regenerate.
31165 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31167         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
31168         (LIB_TLS_SPEC): Save as ld_tls_libs.
31169         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
31170         (HAVE_AS_IX86_TLSLDM): New test.
31171         * configure, config.in: Regenerate.
31172         * config/i386/i386.c (legitimize_tls_address): Fall back to
31173         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
31174         cannot support TLS_MODEL_LOCAL_DYNAMIC.
31175         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
31176         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
31178 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
31180         * common.opt (fira-loop-pressure): Mark as optimization.
31182 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
31184         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
31185         an OpenMP mappable type.
31187 2014-03-06  Matthias Klose  <doko@ubuntu.com>
31189         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
31190         MULTILIB_OSDIRNAMES is not defined.
31192 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
31193             Meador Inge  <meadori@codesourcery.com>
31195         PR target/58595
31196         * config/arm/arm.c (arm_tls_symbol_p): Remove.
31197         (arm_legitimize_address): Call legitimize_tls_address for any
31198         arm_tls_referenced_p expression, handle constant addend.  Call it
31199         before testing for !TARGET_ARM.
31200         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31202 2014-03-06  Richard Biener  <rguenther@suse.de>
31204         PR middle-end/60445
31205         PR lto/60424
31206         PR lto/60427
31207         Revert
31208         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
31210         * tree-streamer.c (record_common_node): Assert we don't record
31211         nodes with type double.
31212         (preload_common_node): Skip type double, complex double and double
31213         pointer since it is now frontend dependent due to fshort-double option.
31215 2014-03-06  Richard Biener  <rguenther@suse.de>
31217         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31218         or -fno-lto is specified and the linker has full plugin support.
31219         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31220         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31221         * lto-wrapper.c (merge_and_complain): Merge compile-time
31222         optimization levels.
31223         (run_gcc): And pass it through to the link options.
31225 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
31227         PR debug/60381
31228         Revert:
31229         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31230         PR debug/59992
31231         * cselib.c (remove_useless_values): Skip to avoid quadratic
31232         behavior if the condition moved from...
31233         (cselib_process_insn): ... here holds.
31235 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
31237         PR plugins/59335
31238         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31239         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31241         PR plugins/59335
31242         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31243         (TM_H): Add x86-tune.def.
31245 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31247         * config/aarch64/aarch64.c (generic_tunings):
31248         Use cortexa57_extra_costs.
31250 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
31252         PR lto/60404
31253         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31254         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31255         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31256         cost for in_lto_p.
31258 2014-03-04  Heiher  <r@hev.cc>
31260         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31261         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31263 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
31265         * config/i386/predicates.md (const2356_operand): Change to ...
31266         (const2367_operand): ... this.
31267         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31268         const2367_operand.
31269         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31270         (*avx512pf_scatterpf<mode>sf): Ditto.
31271         (avx512pf_scatterpf<mode>df): Ditto.
31272         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31273         (*avx512pf_scatterpf<mode>df): Ditto.
31274         * config/i386/i386.c (ix86_expand_builtin): Update
31275         incorrect hint operand error message.
31277 2014-03-04  Richard Biener  <rguenther@suse.de>
31279         * lto-section-in.c (lto_get_section_data): Fix const cast.
31281 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
31283         * tree-streamer.c (record_common_node): Assert we don't record
31284         nodes with type double.
31285         (preload_common_node): Skip type double, complex double and double
31286         pointer since it is now frontend dependent due to fshort-double option.
31288 2014-03-04  Richard Biener  <rguenther@suse.de>
31290         PR lto/60405
31291         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31292         (lto_input_toplevel_asms): Likewise.
31293         * lto-section-in.c (lto_get_section_data): Instead do it here
31294         for every section.
31296 2014-03-04  Richard Biener  <rguenther@suse.de>
31298         PR tree-optimization/60382
31299         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
31300         dead PHIs a reduction.
31302 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
31304         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
31305         hint value.
31306         (_mm_prefetch): Move out of GCC target("sse") pragma.
31307         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
31308         GCC target("prfchw") pragma.
31309         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
31310         for locality <= 2.
31311         * config/i386/i386.c (ix86_option_override_internal): Enable
31312         -mprfchw with -mprefetchwt1.
31314 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
31316         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
31317         Mark as varying.
31319 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
31321         * opts.h (CL_PCH_IGNORE): Define.
31322         * targhooks.c (option_affects_pch_p):
31323         Return false for options that have CL_PCH_IGNORE set.
31324         * opt-functions.awk: Process PchIgnore.
31325         * doc/options.texi: Document PchIgnore.
31327         * config/arc/arc.opt (misize): Add PchIgnore property.
31329 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31331         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
31332         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
31333         constraint on constants to permit them being loaded into
31334         GENERAL_REGS or BASE_REGS.
31336 2014-03-03  Nick Clifton  <nickc@redhat.com>
31338         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
31339         anti-cacnonical alternatives.
31340         (negandhi3_real): New pattern.
31341         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
31343 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
31345         * config/avr/avr-mcus.def: Remove atxmega16x1.
31346         * config/avr/avr-tables.opt: Regenerate.
31347         * config/avr/t-multilib: Regenerate.
31348         * doc/avr-mmcu.texi: Regenerate.
31350 2014-03-03  Tobias Grosser  <tobias@grosser.es>
31351             Mircea Namolaru  <mircea.namolaru@inria.fr>
31353         PR tree-optimization/58028
31354         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
31355         scalar dimensions.
31357 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31359         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
31360         not handled by recognizers.
31362 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
31364         PR middle-end/60175
31365         * function.c (expand_function_end): Don't emit
31366         clobber_return_register sequence if clobber_after is a BARRIER.
31367         * cfgexpand.c (construct_exit_block): Append instructions before
31368         return_label to prev_bb.
31370 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31372         * config/rs6000/constraints.md: Document reserved use of "wc".
31374 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
31376         PR ipa/60150
31377         * ipa.c (function_and_variable_visibility): When dissolving comdat
31378         group, also set all symbols to local.
31380 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
31382         PR ipa/60306
31384         Revert:
31385         2013-12-14  Jan Hubicka  <jh@suse.cz>
31386         PR middle-end/58477
31387         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
31389 2014-03-02  Jon Beniston  <jon@beniston.com>
31391         PR bootstrap/48230
31392         PR bootstrap/50927
31393         PR bootstrap/52466
31394         PR target/46898
31395         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
31396         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
31397         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
31398         (simple_return, *simple_return): New patterns
31399         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
31400         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
31402 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
31404         * dwarf2out.c (gen_subprogram_die): Tidy.
31406 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
31408         PR target/60071
31409         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
31410         (*mov_t_msb_neg_negc): ... this new insn.
31412 2014-02-28  Jason Merrill  <jason@redhat.com>
31414         PR c++/58678
31415         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
31416         function.
31418 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
31420         PR c++/60314
31421         * dwarf2out.c (decltype_auto_die): New static.
31422         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
31423         (gen_type_die_with_usage): Handle 'decltype(auto)'.
31424         (is_cxx_auto): Likewise.
31426 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
31428         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
31429         we are not using general regs only.
31431 2014-02-28  Richard Biener  <rguenther@suse.de>
31433         PR target/60280
31434         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
31435         previous fix and only allow to remove trivial pre-headers
31436         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
31437         (remove_forwarder_block): Properly update the latch of a loop.
31439 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31441         PR debug/59992
31442         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
31443         (cselib_preserved_hash_table): New.
31444         (preserve_constants_and_equivs): Move preserved vals to it.
31445         (cselib_find_slot): Look it up first.
31446         (cselib_init): Initialize it.
31447         (cselib_finish): Release it.
31448         (dump_cselib_table): Dump it.
31450 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31452         PR debug/59992
31453         * cselib.c (remove_useless_values): Skip to avoid quadratic
31454         behavior if the condition moved from...
31455         (cselib_process_insn): ... here holds.
31457 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31459         PR debug/57232
31460         * var-tracking.c (vt_initialize): Apply the same condition to
31461         preserve the CFA base value.
31463 2014-02-28  Joey Ye  <joey.ye@arm.com>
31465         PR target/PR60169
31466         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
31467         if reload in progress or completed.
31469 2014-02-28  Tobias Burnus  <burnus@net-b.de>
31471         PR middle-end/60147
31472         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
31473         NAMELIST_DECL.
31475 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31477         * doc/tm.texi.in (Condition Code Status): Update documention for
31478         relative locations of cc0-setter and cc0-user.
31480 2014-02-27  Jeff Law  <law@redhat.com>
31482         PR rtl-optimization/52714
31483         * combine.c (try_combine): When splitting an unrecognized PARALLEL
31484         into two independent simple sets, if I3 is a jump, ensure the
31485         pattern we place into I3 is a (set (pc) ...).
31487 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
31488             Jeff Law  <law@redhat.com>
31490         PR rtl-optimization/49847
31491         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
31492         are in different blocks.
31493         * doc/tm.texi (Condition Code Status): Update documention for
31494         relative locations of cc0-setter and cc0-user.
31496 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
31498         PR target/59222
31499         * lra.c (lra_emit_add): Check SUBREG too.
31501 2014-02-27  Andreas Schwab  <schwab@suse.de>
31503         * config/m68k/m68k.c (m68k_option_override): Disable
31504         -flive-range-shrinkage for classic m68k.
31505         (m68k_override_options_after_change): Likewise.
31507 2014-02-27  Marek Polacek  <polacek@redhat.com>
31509         PR middle-end/59223
31510         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
31511         -Wmaybe-uninitialized.
31513 2014-02-27  Alan Modra  <amodra@gmail.com>
31515         PR target/57936
31516         * reload1.c (emit_input_reload_insns): When reload_override_in,
31517         set old to rl->in_reg when rl->in_reg is a subreg.
31519 2014-02-26  Richard Biener  <rguenther@suse.de>
31521         PR bootstrap/60343
31522         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
31524 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
31526         * common/config/i386/predicates.md (const1256_operand): Remove.
31527         (const2356_operand): New.
31528         (const_1_to_2_operand): Remove.
31529         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31530         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31531         (*avx512pf_gatherpf<mode>sf): Ditto.
31532         (avx512pf_gatherpf<mode>df): Ditto.
31533         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31534         (*avx512pf_gatherpf<mode>df): Ditto.
31535         (avx512pf_scatterpf<mode>sf): Ditto.
31536         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31537         (*avx512pf_scatterpf<mode>sf): Ditto.
31538         (avx512pf_scatterpf<mode>df): Ditto.
31539         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31540         (*avx512pf_scatterpf<mode>df): Ditto.
31541         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
31543 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
31545         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31546         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31547         (_mm512_mask_testn_epi64_mask): Move to ...
31548         * config/i386/avx512cdintrin.h: Here.
31549         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31550         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31551         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31552         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31553         TARGET_AVX512F from TARGET_AVX512CD.
31555 2014-02-26  Richard Biener  <rguenther@suse.de>
31557         PR ipa/60327
31558         * ipa.c (walk_polymorphic_call_targets): Properly guard
31559         call to inline_update_overall_summary.
31561 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
31563         PR target/60280
31564         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31565         and latches only if requested.  Fix latch if it is removed.
31566         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31567         LOOPS_HAVE_PREHEADERS.
31569 2014-02-25  Andrew Pinski  <apinski@cavium.com>
31571         * builtins.c (expand_builtin_thread_pointer): Create a new target
31572         when the target is NULL.
31574 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
31576         PR rtl-optimization/60317
31577         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31578         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31579         * lra-assigns.c: Include params.h.
31580         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31581         other reload pseudos considerations.
31583 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31585         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31586         to use canonical form for nor<mode>3.
31588 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31590         PR target/55426
31591         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31592         conversions.
31594 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
31596         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31597         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31598         (ix86_handle_option): Handle OPT_mprefetchwt1.
31599         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31600         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31601         PREFETCHWT1 CPUID.
31602         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31603         OPTION_MASK_ISA_PREFETCHWT1.
31604         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31605         (PTA_PREFETCHWT1): New.
31606         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31607         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31608         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31609         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31610         (*prefetch_avx512pf_<mode>_: Change into ...
31611         (*prefetch_prefetchwt1_<mode>: This.
31612         * config/i386/i386.opt (mprefetchwt1): New.
31613         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31614         (_mm_prefetch): Handle intent to write.
31615         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31617 2014-02-25  Richard Biener  <rguenther@suse.de>
31619         PR middle-end/60291
31620         * emit-rtl.c (mem_attrs_htab): Remove.
31621         (mem_attrs_htab_hash): Likewise.
31622         (mem_attrs_htab_eq): Likewise.
31623         (set_mem_attrs): Always allocate new mem-attrs when something changed.
31624         (init_emit_once): Do not allocate mem_attrs_htab.
31626 2014-02-25  Richard Biener  <rguenther@suse.de>
31628         PR lto/60319
31629         * lto-opts.c (lto_write_options): Output non-explicit conservative
31630         -fwrapv, -fno-trapv and -fno-strict-overflow.
31631         * lto-wrapper.c (merge_and_complain): Handle merging those options.
31632         (run_gcc): And pass them through.
31634 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
31636         * sel-sched.c (calculate_new_fences): New parameter ptime.
31637         Calculate it as a maximum over all fence cycles.
31638         (sel_sched_region_2): Adjust the call to calculate_new_fences.
31639         Print the final schedule timing when sched_verbose.
31641 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
31643         PR rtl-optimization/60292
31644         * sel-sched.c (fill_vec_av_set): Do not reset target availability
31645         bit fot the fence instruction.
31647 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
31649         * calls.h: Fix typo in comment.
31651 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
31653         * config/pa/pa.c (pa_output_move_double): Don't valididate when
31654         adjusting offsetable addresses.
31656 2014-02-24  Guozhi Wei  <carrot@google.com>
31658         * sparseset.h (sparseset_pop): Fix the wrong index.
31660 2014-02-24  Walter Lee  <walt@tilera.com>
31662         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31663         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31664         triplet.
31665         * common/config/tilegx/tilegx-common.c
31666         (TARGET_DEFAULT_TARGET_FLAGS): Define.
31667         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31668         (LINK_SPEC): Ditto.
31669         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31670         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31671         (tilegx_gimplify_va_arg_expr): Handle big endian.
31672         (tilegx_expand_unaligned_load): Ditto.
31673         (tilegx_expand_unaligned_store): Ditto.
31674         (TARGET_RETURN_IN_MSB): New.
31675         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31676         (TARGET_ENDIAN_DEFAULT): New.
31677         (TARGET_BIG_ENDIAN): Handle big endian.
31678         (BYTES_BIG_ENDIAN): Ditto.
31679         (WORDS_BIG_ENDIAN): Ditto.
31680         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31681         (ENDIAN_SPEC): New.
31682         (EXTRA_SPECS): New.
31683         * config/tilegx/tilegx.md (extv): Handle big endian.
31684         (extzv): Ditto.
31685         (insn_st<n>): Ditto.
31686         (insn_st<n>_add<bitsuffix>): Ditto.
31687         (insn_stnt<n>): Ditto.
31688         (insn_stnt<n>_add<bitsuffix>):Ditto.
31689         (vec_interleave_highv8qi): Handle big endian.
31690         (vec_interleave_highv8qi_be): New.
31691         (vec_interleave_highv8qi_le): New.
31692         (insn_v1int_h): Handle big endian.
31693         (vec_interleave_lowv8qi): Handle big endian.
31694         (vec_interleave_lowv8qi_be): New.
31695         (vec_interleave_lowv8qi_le): New.
31696         (insn_v1int_l): Handle big endian.
31697         (vec_interleave_highv4hi): Handle big endian.
31698         (vec_interleave_highv4hi_be): New.
31699         (vec_interleave_highv4hi_le): New.
31700         (insn_v2int_h): Handle big endian.
31701         (vec_interleave_lowv4hi): Handle big endian.
31702         (vec_interleave_lowv4hi_be): New.
31703         (vec_interleave_lowv4hi_le): New.
31704         (insn_v2int_l): Handle big endian.
31705         (vec_interleave_highv2si): Handle big endian.
31706         (vec_interleave_highv2si_be): New.
31707         (vec_interleave_highv2si_le): New.
31708         (insn_v4int_h): Handle big endian.
31709         (vec_interleave_lowv2si): Handle big endian.
31710         (vec_interleave_lowv2si_be): New.
31711         (vec_interleave_lowv2si_le): New.
31712         (insn_v4int_l): Handle big endian.
31713         * config/tilegx/tilegx.opt (mbig-endian): New option.
31714         (mlittle-endian): New option.
31715         * doc/install.texi: Document tilegxbe-linux.
31716         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
31718 2014-02-24  Martin Jambor  <mjambor@suse.cz>
31720         PR ipa/60266
31721         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
31722         there are no parameter descriptors.
31724 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
31726         PR rtl-optimization/60268
31727         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
31728         initialization to ...
31729         (sched_rgn_init): ... here.
31730         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
31732 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
31734         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
31735         names.
31737 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
31739         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
31740         definition.
31742 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
31744         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
31745         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
31747 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
31749         * config/microblaze/predicates.md: Add cmp_op predicate.
31750         * config/microblaze/microblaze.md: Add branch_compare instruction
31751         which uses cmp_op predicate and emits cmp insn before branch.
31752         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
31753         to microblaze_expand_conditional_branch and consolidate logic.
31754         (microblaze_expand_conditional_branch): emit branch_compare
31755         insn instead of handling cmp op separate from branch insn.
31757 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31759         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
31760         to permit subregs.
31762 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31764         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
31765         define_insn with define_expand and new define_insn
31766         *altivec_lve<VI_char>x_internal.
31767         (altivec_stve<VI_char>x): Replace define_insn with define_expand
31768         and new define_insn *altivec_stve<VI_char>x_internal.
31769         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
31770         prototype.
31771         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
31772         lve*x built-ins.
31773         (altivec_expand_stvex_be): New function.
31775 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
31777         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
31778         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
31779         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
31780         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
31782 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
31784         PR target/60298
31785         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
31786         instead of emit_move_insn.
31788 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31790         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
31791         vspltw with vsldoi.
31792         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
31793         gen_altivec_vsumsws.
31795 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31797         * config/rs6000/altivec.md (altivec_lvxl): Rename as
31798         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
31799         (altivec_lvxl_<mode>): New define_expand incorporating
31800         -maltivec=be semantics where needed.
31801         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
31802         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
31803         semantics where needed.
31804         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
31805         (altivec_stvx_<mode>): New define_expand incorporating
31806         -maltivec=be semantics where needed.
31807         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
31808         VM2 iterator instead of V4SI.
31809         (altivec_stvxl_<mode>): New define_expand incorporating
31810         -maltivec=be semantics where needed.
31811         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
31812         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
31813         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
31814         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
31815         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
31816         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
31817         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
31818         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
31819         ALTIVEC_BUILTIN_STVXL.
31820         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
31821         (altivec_expand_stvx_be): Likewise.
31822         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
31823         (altivec_expand_lvx_be): Likewise.
31824         (altivec_expand_stvx_be): Likewise.
31825         (altivec_expand_builtin): Add cases for
31826         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
31827         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
31828         (altivec_init_builtins): Add definitions for
31829         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
31830         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
31832 2014-02-21  Catherine Moore  <clm@codesourcery.com>
31834         * doc/invoke.texi (mvirt, mno-virt): Document.
31835         * config/mips/mips.opt (mvirt): New option.
31836         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
31838 2014-02-21  Richard Biener  <rguenther@suse.de>
31840         PR tree-optimization/60276
31841         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
31842         (STMT_VINFO_MIN_NEG_DIST): New macro.
31843         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
31844         STMT_VINFO_MIN_NEG_DIST.
31845         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
31846         made for negative dependence distances still hold.
31848 2014-02-21  Richard Biener  <rguenther@suse.de>
31850         PR middle-end/60291
31851         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
31852         DECL_INITIAL for globals not in the current function context.
31854 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
31856         PR tree-optimization/56490
31857         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
31858         * tree-ssa-uninit.c: Include params.h.
31859         (compute_control_dep_chain): Add num_calls argument, return false
31860         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
31861         num_calls to recursive call.
31862         (find_predicates): Change dep_chain into normal array,
31863         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
31864         variable and adjust compute_control_dep_chain caller.
31865         (find_def_preds): Likewise.
31867 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
31869         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
31870         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
31872 2014-02-21  Nick Clifton  <nickc@redhat.com>
31874         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
31875         (pushhi1): Likewise.
31876         (popqi1): Add mode to pre_dec.
31877         (pophi1): Likewise.
31879 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
31881         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
31882         mode for mask of V8SFmode permutation.
31884 2014-02-20  Richard Henderson  <rth@redhat.com>
31886         PR c++/60272
31887         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
31888         a new pseudo for OLDVAL.
31890 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
31892         PR target/57896
31893         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
31894         gen_reg_rtx if d->testing_p.
31895         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
31896         if d->testing_p and we will certainly return true.
31897         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
31898         if d->testing_p.
31900 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
31902         * emit-rtl.c (gen_reg_rtx): Assert that
31903         crtl->emit.regno_pointer_align_length is non-zero.
31905 2014-02-20  Richard Henderson  <rth@redhat.com>
31907         PR c++/60272
31908         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
31909         on failure the store back into EXPECT.
31911 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
31912             Sandra Loosemore  <sandra@codesourcery.com>
31914         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
31915         * config/nios2/nios2.c (nios2_function_profiler): Add
31916         -fPIC (flag_pic == 2) support.
31917         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
31918         (nios2_large_offset_p): New function.
31919         (nios2_unspec_reloc_p): Move up position, update to use
31920         nios2_large_offset_p.
31921         (nios2_unspec_address): Remove function.
31922         (nios2_unspec_offset): New function.
31923         (nios2_large_got_address): New function.
31924         (nios2_got_address): Add large offset support.
31925         (nios2_legitimize_tls_address): Update usage of removed and new
31926         functions.
31927         (nios2_symbol_binds_local_p): New function.
31928         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
31929         (nios2_legitimize_address): Update to use nios2_large_offset_p.
31930         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
31931         (nios2_print_operand): Merge H/L processing, add hiadj/lo
31932         processing for (const (unspec ...)).
31933         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
31935 2014-02-20  Richard Biener  <rguenther@suse.de>
31937         * tree-cfg.c (replace_uses_by): Mark altered BBs before
31938         doing the substitution.
31939         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
31941 2014-02-20  Martin Jambor  <mjambor@suse.cz>
31943         PR ipa/55260
31944         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
31945         info when checking whether lattices are bottom.
31947 2014-02-20  Richard Biener  <rguenther@suse.de>
31949         PR middle-end/60221
31950         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
31951         regions at -O0.
31953 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
31955         PR ipa/58555
31956         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
31957         parameter specifying the scaling.
31958         (inline_call): Update.
31959         (want_inline_recursively): Guard division by zero.
31960         (recursive_inlining): Update.
31961         * ipa-inline.h (clone_inlined_nodes): Update.
31963 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
31965         PR target/60204
31966         * config/i386/i386.c (classify_argument): Pass structures of size
31967         64 bytes or less in register.
31969 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
31970             Kirill Yukhin  <kirill.yukhin@intel.com>
31972         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
31973         (_mm_rcp28_round_ss): Ditto.
31974         (_mm_rsqrt28_round_sd): Ditto.
31975         (_mm_rsqrt28_round_ss): Ditto.
31976         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
31977         (_mm_rcp14_round_ss): Ditto.
31978         (_mm_rsqrt14_round_sd): Ditto.
31979         (_mm_rsqrt14_round_ss): Ditto.
31980         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
31981         the first input operand, get rid of match_dup.
31982         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
31983         attribute to sse.
31984         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
31985         Ditto.
31986         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
31987         operand as the first input operand, set type attribute.
31988         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
31989         Set type attribute.
31990         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
31991         operand as the first input operand, set type attribute.
31993 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31995         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
31996         bit of zero.
31998 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
32000         PR target/60207
32001         * config/i386/i386.c (construct_container): Remove TFmode check
32002         for X86_64_INTEGER_CLASS.
32004 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
32006         PR target/59794
32007         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32008         only when -Wpsabi is enabled.
32010 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
32012         PR target/59799
32013         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32014         passing arrays in registers are the same as for structs, so remove the
32015         special case for them.
32017 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
32019         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32020         destination type, extract only the valid bits if the source type is not
32021         integral and has a different mode.
32023 2014-02-19  Richard Biener  <rguenther@suse.de>
32025         PR ipa/60243
32026         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32027         for all calls.
32029 2014-02-19  Richard Biener  <rguenther@suse.de>
32031         PR ipa/60243
32032         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32033         (ipa_modify_call_arguments): Emit an argument load explicitely and
32034         preserve virtual SSA form there and for the replacement call.
32035         Do not update SSA form nor free dominance info.
32037 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32039         * ipa.c (function_and_variable_visibility): Also clear WEAK
32040         flag when disolving COMDAT_GROUP.
32042 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32044         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32045         * ipa-prop.c (ipa_set_jf_known_type): Return early when
32046         not devirtualizing.
32047         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32048         do more sanity checks.
32049         (detect_type_change): Return true when giving up early.
32050         (compute_complex_assign_jump_func): Fix type parameter of
32051         ipa_set_ancestor_jf.
32052         (compute_complex_ancestor_jump_func): Likewise.
32053         (update_jump_functions_after_inlining): Fix updating of
32054         ancestor function.
32055         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32057 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32059         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32060         inline clones when edge disappears.
32062 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
32064         PR target/60203
32065         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32066         Split 64-bit moves into 2 patterns.  Do not allow the use of
32067         direct move for TDmode in little endian, since the decimal value
32068         has little endian bytes within a word, but the 64-bit pieces are
32069         ordered in a big endian fashion, and normal subreg's of TDmode are
32070         not allowed.
32071         (mov<mode>_64bit_dm): Likewise.
32072         (movtd_64bit_nodm): Likewise.
32074 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32076         PR tree-optimization/60174
32077         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32078         statement of an SSA_NAME that occurs in an abnormal PHI node.
32080 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32082         PR sanitizer/60142
32083         * final.c (SEEN_BB): Remove.
32084         (SEEN_NOTE, SEEN_EMITTED): Renumber.
32085         (final_scan_insn): Don't force_source_line on second
32086         NOTE_INSN_BASIC_BLOCK.
32088 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
32090         PR target/60205
32091         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32092         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32093         (type_natural_mode): Warn ABI change when %zmm register is not
32094         available for AVX512F vector value passing.
32096 2014-02-18  Kai Tietz  <ktietz@redhat.com>
32098         PR target/60193
32099         * config/i386/i386.c (ix86_expand_prologue): Use value in
32100         rax register as displacement when restoring %r10 or %rax.
32101         Fix wrong offset when restoring both registers.
32103 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32105         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32106         assertion with conditional return.
32108 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32109             Uros Bizjak  <ubizjak@gmail.com>
32111         PR driver/60233
32112         * config/i386/driver-i386.c (host_detect_local_cpu): If
32113         YMM state is not saved by the OS, also clear has_f16c.  Move
32114         CPUID 0x80000001 handling before YMM state saving checking.
32116 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
32118         PR rtl-optimization/58960
32119         * haifa-sched.c (alloc_global_sched_pressure_data): New,
32120         factored out from ...
32121         (sched_init): ... here.
32122         (free_global_sched_pressure_data): New, factored out from ...
32123         (sched_finish): ... here.
32124         * sched-int.h (free_global_sched_pressure_data): Declare.
32125         * sched-rgn.c (nr_regions_initial): New static global.
32126         (haifa_find_rgns): Initialize it.
32127         (schedule_region): Disable sched-pressure for the newly
32128         generated regions.
32130 2014-02-17  Richard Biener  <rguenther@suse.de>
32132         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32133         release SSA defs of pattern stmts.
32135 2014-02-17  Richard Biener  <rguenther@suse.de>
32137         * tree-inline.c (expand_call_inline): Release the virtual
32138         operand defined by the call we are about to inline.
32140 2014-02-17  Richard Biener  <rguenther@suse.de>
32142         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32144 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
32145             Ilya Tocar  <ilya.tocar@intel.com>
32147         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32148         arguments order in builtin.
32149         (_mm512_permutexvar_epi64): Ditto.
32150         (_mm512_mask_permutexvar_epi64): Ditto
32151         (_mm512_maskz_permutexvar_epi32): Ditto
32152         (_mm512_permutexvar_epi32): Ditto
32153         (_mm512_mask_permutexvar_epi32): Ditto
32155 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32157         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32158         (p8_vmrgow): Likewise.
32160 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32162         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
32163         endian targets.
32165 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
32167         PR target/60203
32168         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
32169         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
32170         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
32171         using direct move instructions on ISA 2.07.  Also adjust
32172         instruction length for 64-bit.
32173         (mov<mode>_64bit, TFmode/TDmode): Likewise.
32174         (mov<mode>_32bit, TFmode/TDmode): Likewise.
32176 2014-02-15  Alan Modra  <amodra@gmail.com>
32178         PR target/58675
32179         PR target/57935
32180         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32181         find_replacement on parts of insn rtl that might be reloaded.
32183 2014-02-15  Richard Biener  <rguenther@suse.de>
32185         PR tree-optimization/60183
32186         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
32187         (tree_ssa_phiprop): Calculate and free post-dominators.
32189 2014-02-14  Jeff Law  <law@redhat.com>
32191         PR rtl-optimization/60131
32192         * ree.c (get_extended_src_reg): New function.
32193         (combine_reaching_defs): Use it rather than assuming location of REG.
32194         (find_and_remove_re): Verify first operand of extension is
32195         a REG before adding the insns to the copy list.
32197 2014-02-14  Roland McGrath  <mcgrathr@google.com>
32199         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32200         * configure: Regenerated.
32201         * config.in: Regenerated.
32202         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32203         instead of ASM_SHORT.
32205 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
32206             Richard Earnshaw  <rearnsha@arm.com>
32208         PR rtl-optimization/59535
32209         * lra-constraints.c (process_alt_operands): Encourage alternative
32210         when unassigned pseudo class is superset of the alternative class.
32211         (inherit_reload_reg): Don't inherit when optimizing for code size.
32212         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32213         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32214         modes not less than 4 for Thumb1.
32216 2014-02-14  Kyle McMartin  <kyle@redhat.com>
32218         PR pch/60010
32219         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32221 2014-02-14  Richard Biener  <rguenther@suse.de>
32223         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32224         (get_frame_arg): Drop the assert with langhook types_compatible_p.
32225         Do not strip INDIRECT_REFs.
32227 2014-02-14  Richard Biener  <rguenther@suse.de>
32229         PR lto/60179
32230         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32231         DECL_FUNCTION_SPECIFIC_TARGET.
32232         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32233         * tree-streamer-out.c (pack_ts_target_option): Remove.
32234         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32235         (write_ts_function_decl_tree_pointers): Do not stream
32236         DECL_FUNCTION_SPECIFIC_TARGET.
32237         * tree-streamer-in.c (unpack_ts_target_option): Remove.
32238         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32239         (lto_input_ts_function_decl_tree_pointers): Do not stream
32240         DECL_FUNCTION_SPECIFIC_TARGET.
32242 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
32244         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32245         (get_initial_def_for_induction, vectorizable_induction): Ignore
32246         debug stmts when looking for exit_phi.
32247         (vectorizable_live_operation): Fix up condition.
32249 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32251         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32252         nreverse() because it changes the content of original tree list.
32254 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32256         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32257         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32259 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32261         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32262         GNU coding standards.
32264 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
32266         PR debug/60152
32267         * dwarf2out.c (gen_subprogram_die): Don't call
32268         add_calling_convention_attribute if subr_die is old_die.
32270 2014-02-13  Sharad Singhai  <singhai@google.com>
32272         * doc/optinfo.texi: Fix order of nodes.
32274 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
32276         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32277         operands[2], not operands[3].
32279 2014-02-13  Richard Biener  <rguenther@suse.de>
32281         PR bootstrap/59878
32282         * doc/install.texi (ISL): Update recommended version to 0.12.2,
32283         mention the possibility of an in-tree build.
32284         (CLooG): Update recommended version to 0.18.1, mention the
32285         possibility of an in-tree build and clarify that the ISL
32286         bundled with CLooG does not work.
32288 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
32290         PR target/43546
32291         * expr.c (compress_float_constant): If x is a hard register,
32292         extend into a pseudo and then move to x.
32294 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32296         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
32297         caused by bad second argument to warning_at() with -mhotpatch and
32298         nested functions (e.g. with gfortran).
32300 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
32302         * opts.c (option_name): Remove "enabled by default" rider.
32304 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
32306         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
32308 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
32309             Uros Bizjak  <ubizjak@gmail.com>
32311         PR target/60151
32312         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
32313         * configure: Regenerated.
32315 2014-02-12  Richard Biener  <rguenther@suse.de>
32317         * vec.c (vec_prefix::calculate_allocation): Move as
32318         inline variant to vec.h.
32319         (vec_prefix::calculate_allocation_1): New out-of-line version.
32320         * vec.h (vec_prefix::calculate_allocation_1): Declare.
32321         (vec_prefix::m_has_auto_buf): Rename to ...
32322         (vec_prefix::m_using_auto_storage): ... this.
32323         (vec_prefix::calculate_allocation): Inline the easy cases
32324         and dispatch to calculate_allocation_1 which doesn't need the
32325         prefix address.
32326         (va_heap::reserve): Use gcc_checking_assert.
32327         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
32328         m_using_auto_storage.
32329         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
32330         member and adjust.
32331         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
32332         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
32333         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
32335 2014-02-12  Richard Biener  <rguenther@suse.de>
32337         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
32338         when we found a dependence.
32340 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
32342         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
32343         common code...
32344         (maybe_fold_stmt): ... into this new function.
32345         * omp-low.c (lower_omp): Update comment.
32347         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
32348         last use.
32350         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
32351         dereference.
32353 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
32355         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
32356         identifiers in comments.
32357         (cortexa53_extra_costs): Likewise.
32358         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
32359         (cortexa7_extra_costs): Likewise.
32360         (cortexa12_extra_costs): Likewise.
32361         (cortexa15_extra_costs): Likewise.
32362         (v7m_extra_costs): Likewise.
32364 2014-02-12  Richard Biener  <rguenther@suse.de>
32366         PR middle-end/60092
32367         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
32368         of posix_memalign being successful.
32369         (lower_stmt): Restrict lowering of posix_memalign to when
32370         -ftree-bit-ccp is enabled.
32372 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32374         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
32375         arg_loc.
32376         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
32378 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
32380         PR rtl-optimization/60116
32381         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
32382         other_insn once the combination has been validated.
32384 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
32386         PR lto/59468
32387         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
32388         and wrapper.
32389         * ipa-devirt.c: Include demangle.h
32390         (odr_violation_reported): New static variable.
32391         (add_type_duplicate): Update odr_violations.
32392         (maybe_record_node): Add completep parameter; update it.
32393         (record_target_from_binfo): Add COMPLETEP parameter;
32394         update it as needed.
32395         (possible_polymorphic_call_targets_1): Likewise.
32396         (struct polymorphic_call_target_d): Add nonconstruction_targets;
32397         rename FINAL to COMPLETE.
32398         (record_targets_from_bases): Sanity check we found the binfo;
32399         fix COMPLETEP updating.
32400         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
32401         parameter, fix computing of COMPLETEP.
32402         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
32403         at LTO time do demangling.
32404         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
32405         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
32406         parameter.
32407         (gimple_get_virt_method_for_binfo): Likewise.
32408         * gimple-fold.h (gimple_get_virt_method_for_binfo,
32409         gimple_get_virt_method_for_vtable): Update prototypes.
32411 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
32413         PR target/49008
32414         * genautomata.c (add_presence_absence): Fix typo with
32415         {final_}presence_list.
32417 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
32419         PR target/60137
32420         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
32421         for VSX/Altivec vectors that land in GPR registers.
32423 2014-02-11  Richard Henderson  <rth@redhat.com>
32424             Jakub Jelinek  <jakub@redhat.com>
32426         PR debug/59776
32427         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
32428         around drhs if type conversion to lacc->type is not useless.
32430 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32432         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
32433         tuning struct.
32434         (cortex-a57.cortex-a53): Likewise.
32435         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
32437 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32439         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
32440         arm_restrict_it.
32442 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
32444         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
32445         add_options_for_arm_vfp3.
32447 2014-02-11  Jeff Law  <law@redhat.com>
32449         PR middle-end/54041
32450         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
32451         object with an undesirable mode.
32453 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32455         PR libgomp/60107
32456         * config/i386/sol2-9.h: New file.
32457         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
32458         *-*-solaris2.9*): Use it.
32460 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
32462         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
32463         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
32465 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
32467         * config/microblaze/microblaze.c: Extend mcpu version format
32469 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
32471         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
32473 2014-02-10  Richard Henderson  <rth@redhat.com>
32475         PR target/59927
32476         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
32477         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
32478         ms-abi vs -mno-accumulate-outgoing-args.
32479         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
32480         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
32481         respect to ms-abi.
32483 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32485         PR middle-end/60080
32486         * cfgexpand.c (expand_asm_operands): Attach source location to
32487         ASM_INPUT rtx objects.
32488         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
32490 2014-02-10  Nick Clifton  <nickc@redhat.com>
32492         * config/mn10300/mn10300.c (popcount): New function.
32493         (mn10300_expand_prologue): Include saved registers in stack usage
32494         count.
32496 2014-02-10  Jeff Law  <law@redhat.com>
32498         PR middle-end/52306
32499         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
32500         when changing the SET_DEST of a prior insn to avoid an input reload.
32502 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32504         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
32505         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
32506         -mcall-openbsd, or -mcall-linux.
32507         (CC1_ENDIAN_BIG_SPEC): Remove.
32508         (CC1_ENDIAN_LITTLE_SPEC): Remove.
32509         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32510         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
32511         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
32512         and %cc1_endian_default.
32513         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32515 2014-02-10  Richard Biener  <rguenther@suse.de>
32517         PR tree-optimization/60115
32518         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
32519         MEM_REF handling.  Properly verify that the accesses are not
32520         out of the objects bound.
32522 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32524         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
32525         coretex to cortex.
32527 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
32529         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
32530         proper constants and fix formatting.
32531         (possible_polymorphic_call_targets): Fix formatting.
32533 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
32534             Ilya Tocar  <ilya.tocar@intel.com>
32536         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
32537         (_mm512_loadu_epi32): Renamed into...
32538         (_mm512_loadu_si512): This.
32539         (_mm512_storeu_epi32): Renamed into...
32540         (_mm512_storeu_si512): This.
32541         (_mm512_maskz_ceil_ps): Removed.
32542         (_mm512_maskz_ceil_pd): Ditto.
32543         (_mm512_maskz_floor_ps): Ditto.
32544         (_mm512_maskz_floor_pd): Ditto.
32545         (_mm512_floor_round_ps): Ditto.
32546         (_mm512_floor_round_pd): Ditto.
32547         (_mm512_ceil_round_ps): Ditto.
32548         (_mm512_ceil_round_pd): Ditto.
32549         (_mm512_mask_floor_round_ps): Ditto.
32550         (_mm512_mask_floor_round_pd): Ditto.
32551         (_mm512_mask_ceil_round_ps): Ditto.
32552         (_mm512_mask_ceil_round_pd): Ditto.
32553         (_mm512_maskz_floor_round_ps): Ditto.
32554         (_mm512_maskz_floor_round_pd): Ditto.
32555         (_mm512_maskz_ceil_round_ps): Ditto.
32556         (_mm512_maskz_ceil_round_pd): Ditto.
32557         (_mm512_expand_pd): Ditto.
32558         (_mm512_expand_ps): Ditto.
32559         * config/i386/i386.c (ix86_builtins): Remove
32560         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32561         (bdesc_args): Ditto.
32562         * config/i386/predicates.md (const1256_operand): New.
32563         (const_1_to_2_operand): Ditto.
32564         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32565         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32566         (*avx512pf_gatherpf<mode>sf): Ditto.
32567         (avx512pf_gatherpf<mode>df): Ditto.
32568         (*avx512pf_gatherpf<mode>df_mask): Ditto.
32569         (*avx512pf_gatherpf<mode>df): Ditto.
32570         (avx512pf_scatterpf<mode>sf): Ditto.
32571         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32572         (*avx512pf_scatterpf<mode>sf): Ditto.
32573         (avx512pf_scatterpf<mode>df): Ditto.
32574         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32575         (*avx512pf_scatterpf<mode>df): Ditto.
32576         (avx512f_expand<mode>): Removed.
32577         (<shift_insn><mode>3<mask_name>): Change predicate type.
32579 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
32581         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32582         not at the end of datarefs vector use ordered_remove to avoid
32583         reordering datarefs vector.
32585         PR c/59984
32586         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32587         mark local addressable non-static vars as GOVD_PRIVATE
32588         instead of GOVD_LOCAL.
32589         * omp-low.c (lower_omp_for): Move gimple_bind_vars
32590         and BLOCK_VARS of gimple_bind_block to new_stmt rather
32591         than copying them.
32593         PR middle-end/60092
32594         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32595         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32596         assume_aligned or alloc_align attributes.
32597         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32598         arguments.  Handle also assume_aligned and alloc_align attributes.
32599         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
32600         calls to functions with assume_aligned or alloc_align attributes.
32601         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32603 2014-02-08  Terry Guo  <terry.guo@arm.com>
32605         * doc/invoke.texi: Document ARM -march=armv7e-m.
32607 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
32609         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32610         flag on __cilkrts_rethrow builtin.
32612         PR ipa/60026
32613         * ipa-cp.c (determine_versionability): Fail at -O0
32614         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32615         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32617         Revert:
32618         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
32620         PR ipa/60026
32621         * tree-inline.c (copy_forbidden): Fail for
32622         __attribute__((optimize (0))) functions.
32624 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
32626         * varpool.c: Include pointer-set.h.
32627         (varpool_remove_unreferenced_decls): Variables in other partitions
32628         will not be output; be however careful to not lose information
32629         about partitioning.
32631 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
32633         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32634         lookup in the vtable constructor.
32636 2014-02-07  Jeff Law  <law@redhat.com>
32638         PR target/40977
32639         * config/m68k/m68k.md (ashldi_extsi): Turn into a
32640         define_insn_and_split.
32642         * ipa-inline.c (inline_small_functions): Fix typos.
32644 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32646         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
32647         (s390_can_use_return_insn): Declare.
32648         * config/s390/s390.h (EPILOGUE_USES): Define.
32649         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
32650         instructions.
32651         (s390_chunkify_start): Handle return JUMP_LABELs.
32652         (s390_early_mach): Emit a main_pool instruction on the entry edge.
32653         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
32654         (s390_can_use_return_insn): New functions.
32655         (s390_fix_long_loop_prediction): Handle conditional returns.
32656         (TARGET_SET_UP_BY_PROLOGUE): Define.
32657         * config/s390/s390.md (ANY_RETURN): New code iterator.
32658         (*creturn, *csimple_return, return, simple_return): New patterns.
32660 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32662         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32663         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
32664         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
32665         REG_CFA_RESTORE list when deciding not to restore a register.
32667 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32669         * config/s390/s390.c: Include tree-pass.h and context.h.
32670         (s390_early_mach): New function, split out from...
32671         (s390_emit_prologue): ...here.
32672         (pass_data_s390_early_mach): New pass structure.
32673         (pass_s390_early_mach): New class.
32674         (s390_option_override): Create and register early_mach pass.
32675         Move to end of file.
32677 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32679         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32680         to match for the exit block.
32682 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32684         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32685         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32686         Reject misaligned operands.
32688 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32690         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
32692 2014-02-07  Richard Biener  <rguenther@suse.de>
32694         PR middle-end/60092
32695         * gimple-low.c (lower_builtin_posix_memalign): New function.
32696         (lower_stmt): Call it to lower posix_memalign in a way
32697         to make alignment info accessible.
32699 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
32701         PR c++/60082
32702         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
32703         __builtin_setjmp_receiver.
32705 2014-02-07  Richard Biener  <rguenther@suse.de>
32707         PR middle-end/60092
32708         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
32709         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
32710         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32711         Handle BUILT_IN_POSIX_MEMALIGN.
32712         (find_func_clobbers): Likewise.
32713         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32714         (call_may_clobber_ref_p_1): Likewise.
32716 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32718         PR ipa/59918
32719         * ipa-devirt.c (record_target_from_binfo): Remove overactive
32720         sanity check.
32722 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32724         PR ipa/59469
32725         * lto-cgraph.c (lto_output_node): Use
32726         symtab_get_symbol_partitioning_class.
32727         (lto_output_varpool_node): likewise.
32728         (symtab_get_symbol_partitioning_class): Move here from
32729         lto/lto-partition.c
32730         * cgraph.h (symbol_partitioning_class): Likewise.
32731         (symtab_get_symbol_partitioning_class): Declare.
32733 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32735         * ggc.h (ggc_internal_cleared_alloc): New macro.
32736         * vec.h (vec_safe_copy): Handle memory stats.
32737         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
32738         * target-globals.c (save_target_globals): Likewise.
32740 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32742         PR target/60077
32743         * expr.c (emit_move_resolve_push): Export; be bit more selective
32744         on when to clear alias set.
32745         * expr.h (emit_move_resolve_push): Declare.
32746         * function.h (struct function): Add tail_call_marked.
32747         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
32748         * config/i386/i386-protos.h (ix86_expand_push): Remove.
32749         * config/i386/i386.md (TImode move expander): De not call
32750         ix86_expand_push.
32751         (FP push expanders): Preserve memory attributes.
32752         * config/i386/sse.md (push<mode>1): Remove.
32753         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
32754         (ix86_expand_push): Remove.
32755         * config/i386/mmx.md (push<mode>1): Remove.
32757 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
32759         PR rtl-optimization/60030
32760         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
32761         lopart with paradoxical subreg before shifting it up by hprec.
32763 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32765         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
32766         Remove extra newline at end of file.
32767         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
32768         (arm_issue_rate): Handle cortexa57.
32769         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
32770         (cortex-a57.cortex-a53): Likewise.
32772 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
32774         PR target/59575
32775         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
32776         don't record in REG_FRAME_RELATED_EXPR registers not set in that
32777         bitmask.
32778         (arm_expand_prologue): Adjust all callers.
32779         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
32780         info, registers also at the lowest numbered registers side.  Use
32781         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
32782         XEXP.
32784         PR debug/59992
32785         * var-tracking.c (adjust_mems): Before adding a SET to
32786         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
32788 2014-02-06  Alan Modra  <amodra@gmail.com>
32790         PR target/60032
32791         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
32792         change SDmode to DDmode when lra_in_progress.
32794 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
32796         PR middle-end/59150
32797         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
32798         free_data_ref on the dr first, and before goto again also set dr
32799         to the next dr.  For simd_lane_access, free old datarefs[i] before
32800         overwriting it.  For get_vectype_for_scalar_type failure, don't
32801         free_data_ref if simd_lane_access.
32803         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
32805         PR target/60062
32806         * tree.h (opts_for_fn): New inline function.
32807         (opt_for_fn): Define.
32808         * config/i386/i386.c (ix86_function_regparm): Use
32809         opt_for_fn (decl, optimize) instead of optimize.
32811 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32813         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
32814         for SYMBOL_REF in large memory model.
32816 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32818         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
32819         and crypto support.
32820         (cortex-a57): Likewise.
32821         (cortex-a57.cortex-a53): Likewise.
32823 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
32824             Kugan Vivekanandarajah  <kuganv@linaro.org>
32826         * config/arm/arm.c (arm_vector_alignment_reachable): Check
32827         unaligned_access.
32828         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
32830 2014-02-06  Richard Biener  <rguenther@suse.de>
32832         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
32833         set_loop_copy and initialize_original_copy_tables.
32835 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
32837         * config/aarch64/aarch64-simd.md
32838         (aarch64_ashr_simddi): Change QI to SI.
32840 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
32841             Jakub Jelinek  <jakub@redhat.com>
32843         PR middle-end/60013
32844         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
32845         of the dataflow.
32847 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32849         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
32850         CODE_FOR_altivec_vpku[hw]um to
32851         CODE_FOR_altivec_vpku[hw]um_direct.
32852         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
32853         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
32854         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
32855         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
32857 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32859         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
32860         generation for -maltivec=be.
32861         (altivec_vsumsws): Simplify redundant test.
32863 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32865         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
32866         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
32867         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
32868         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
32869         gen_altivec_vpkuwum.
32870         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
32871         BYTES_BIG_ENDIAN.
32872         (altivec_vpks<VI_char>ss): Likewise.
32873         (altivec_vpks<VI_char>us): Likewise.
32874         (altivec_vpku<VI_char>us): Likewise.
32875         (altivec_vpku<VI_char>um): Likewise.
32876         (altivec_vpku<VI_char>um_direct): New (copy of
32877         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
32878         internal use).
32879         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
32880         target is little endian and -maltivec=be is not specified.
32881         (*altivec_vupkhs<VU_char>_direct): New (copy of
32882         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
32883         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
32884         target is little endian and -maltivec=be is not specified.
32885         (*altivec_vupkls<VU_char>_direct): New (copy of
32886         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
32887         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
32888         little endian and -maltivec=be is not specified.
32889         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
32890         little endian and -maltivec=be is not specified.
32892 2014-02-05  Richard Henderson  <rth@redhat.com>
32894         PR debug/52727
32895         * combine-stack-adj.c: Revert r206943.
32896         * sched-int.h (struct deps_desc): Add last_args_size.
32897         * sched-deps.c (init_deps): Initialize it.
32898         (sched_analyze_insn): Add OUTPUT dependencies between insns that
32899         contain REG_ARGS_SIZE notes.
32901 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
32903         * lto-cgraph.c (asm_nodes_output): Make global.
32904         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
32905         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
32906         (driver_handle_option): Handle OPT_fwpa.
32908 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
32910         PR ipa/59947
32911         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
32912         a comment typo and formatting issue.  If odr_hash hasn't been
32913         created, return vNULL and set *completep to false.
32915         PR middle-end/57499
32916         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
32917         bb with no successors.
32919 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
32921         PR target/59718
32922         * doc/invoke.texi (-march): Clarify documentation for ARM.
32923         (-mtune): Likewise.
32924         (-mcpu): Likewise.
32926 2014-02-05  Richard Biener  <rguenther@suse.de>
32928         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
32929         when not vectorizing because of too many alias checks.
32930         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32931         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
32933 2014-02-05  Nick Clifton  <nickc@redhat.com>
32935         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
32936         accept extended registers in any mode when compiling for the MN10300.
32938 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
32940         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
32941         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
32942         sanitization attributes.
32943         (can_inline_edge_p): Likewise.
32944         (sanitize_attrs_match_for_inline_p): New function.
32946 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
32948         * ipa-prop.c (detect_type_change): Shor circuit testing of
32949         type changes on THIS pointer.
32951 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
32953         PR target/59777
32954         * config/pa/pa.c (legitimize_tls_address): Return original address
32955         if not passed a SYMBOL_REF rtx.
32956         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
32957         addresses.
32958         (pa_emit_move_sequence): Simplify TLS source operands.
32959         (pa_legitimate_constant_p): Reject all TLS constants.
32960         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
32961         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
32963 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
32965         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
32966         groups when we know they are controlled by LTO.
32967         * varasm.c (default_binds_local_p_1): If object is in other partition,
32968         it will be resolved locally.
32970 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32972         * config/host-linux.c (linux_gt_pch_use_address): Don't
32973         use SSIZE_MAX because it is not always defined.
32975 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
32977         PR bootstrap/59913
32978         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
32979         threshold for pseudo splitting.
32980         (update_ebb_live_info): Process call argument hard registers and
32981         hard registers from insn definition too.
32982         (max_small_class_regs_num): New constant.
32983         (inherit_in_ebb): Update live hard regs through EBBs.  Update
32984         reloads_num only for small register classes.  Don't split for
32985         outputs of jumps.
32987 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
32989         PR ipa/60058
32990         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
32991         is non-null.
32993 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
32995         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
32996         visibility is safe.
32998 2014-02-04  Marek Polacek  <polacek@redhat.com>
33000         * gdbinit.in (pel): Define.
33002 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33004         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33005         behavior.
33007 2014-02-04  Richard Biener  <rguenther@suse.de>
33009         PR lto/59723
33010         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33011         in function context local.
33012         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33013         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33014         similar to LTO_imported_decl_ref.
33016 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
33018         PR tree-optimization/60002
33019         * cgraphclones.c (build_function_decl_skip_args): Clear
33020         DECL_LANG_SPECIFIC.
33022         PR tree-optimization/60023
33023         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33024         false to gsi_replace.
33025         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33026         has been in some EH region and vec_stmt could throw, add
33027         vec_stmt into the same EH region.
33028         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33029         has no lhs, ignore it.
33030         * internal-fn.c (expand_MASK_LOAD): Likewise.
33032         PR ipa/60026
33033         * tree-inline.c (copy_forbidden): Fail for
33034         __attribute__((optimize (0))) functions.
33036         PR other/58712
33037         * omp-low.c (simd_clone_struct_copy): If from->inbranch
33038         is set, copy one less argument.
33039         (expand_simd_clones): Don't subtract clone_info->inbranch
33040         from simd_clone_struct_alloc argument.
33042         PR rtl-optimization/57915
33043         * recog.c (simplify_while_replacing): If all unary/binary/relational
33044         operation arguments are constant, attempt to simplify those.
33046         PR middle-end/59261
33047         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33048         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33050 2014-02-04  Richard Biener  <rguenther@suse.de>
33052         PR tree-optimization/60012
33053         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33054         TBAA disambiguation to all DDRs.
33056 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33058         PR target/59788
33059         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33060         (LINK_SPEC): Use it for -shared, -shared-libgcc.
33062 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33064         PR ipa/59882
33065         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33067 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33069         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33070         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33072 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33074         PR ipa/59831
33075         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33076         to figure out targets of polymorphic calls with known decl.
33077         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33078         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33079         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33080         (get_polymorphic_call_info): ... here.
33081         (get_polymorphic_call_info_from_invariant): New function.
33083 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33085         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33086         lookup via vtable pointer; check for type consistency
33087         and turn inconsitent facts into UNREACHABLE.
33088         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33089         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33090         type inconsistent querries; return UNREACHABLE instead.
33092 2014-02-03  Richard Henderson  <rth@twiddle.net>
33094         PR tree-opt/59924
33095         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33096         already processed this node.
33097         (normalize_one_pred_1): Pass along mark_set.
33098         (normalize_one_pred): Create and destroy a pointer_set_t.
33099         (normalize_one_pred_chain): Likewise.
33101 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
33103         PR gcov-profile/58602
33104         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33106 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33108         PR ipa/59831
33109         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33110         -fno-devirtualize; try to devirtualize by the knowledge of
33111         virtual table pointer given by aggregate propagation.
33112         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33113         (ipa_print_node_jump_functions): Dump also offset that
33114         is relevant for polymorphic calls.
33115         (determine_known_aggregate_parts): Add arg_type parameter; use it
33116         instead of determining the type from pointer type.
33117         (ipa_compute_jump_functions_for_edge): Update call of
33118         determine_known_aggregate_parts.
33119         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33120         (gimple_get_virt_method_for_binfo): ... here; simplify using
33121         vtable_pointer_value_to_vtable.
33122         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33123         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33124         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33125         (vtable_pointer_value_to_vtable): Break out from ...; handle also
33126         POINTER_PLUS_EXPR.
33127         (vtable_pointer_value_to_binfo): ... here.
33128         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33130 2014-02-03  Teresa Johnson  <tejohnson@google.com>
33132         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33133         redef of outer loop index variable.
33135 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
33137         PR c++/53017
33138         PR c++/59211
33139         * doc/extend.texi (Function Attributes): Typo.
33141 2014-02-03  Cong Hou  <congh@google.com>
33143         PR tree-optimization/60000
33144         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33145         if the vectorized statement is a store.  A store statement can only
33146         appear at the end of pattern statements.
33148 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
33150         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33151         (ix86_option_override_internal): Default long double to 64-bit for
33152         32-bit Bionic and to 128-bit for 64-bit Bionic.
33154         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33155         TARGET_LONG_DOUBLE_128 is true.
33156         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33158         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33159         (mlong-double-64): Negate -mlong-double-128.
33160         (mlong-double-128): New option.
33162         * config/i386/i386-c.c (ix86_target_macros): Define
33163         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
33165         * doc/invoke.texi: Document -mlong-double-128.
33167 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
33169         PR rtl-optimization/60024
33170         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
33172 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
33174         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
33176 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
33178         PR rtl-optimization/57662
33179         * sel-sched.c (code_motion_path_driver): Do not mark already not
33180         existing blocks in the visiting bitmap.
33182 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
33184         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
33185         on the insn being emitted.
33187 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
33188             Will Deacon  <will.deacon@arm.com>
33190         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
33192 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33194         * config/arm/arm-tables.opt: Regenerate.
33196 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33198         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33199         for vector types other than V16QImode.
33200         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33201         define_expand, and call altivec_expand_vec_perm_le when producing
33202         code with little endian element order.
33203         (*altivec_vperm_<mode>_internal): New insn having previous
33204         behavior of altivec_vperm_<mode>.
33205         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33206         altivec_expand_vec_perm_le when producing code with little endian
33207         element order.
33208         (*altivec_vperm_<mode>_uns_internal): New insn having previous
33209         behavior of altivec_vperm_<mode>_uns.
33211 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33213         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33214         (altivec_vsumsws): Add handling for -maltivec=be with a little
33215         endian target.
33216         (altivec_vsumsws_direct): New.
33217         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33218         gen_altivec_vsumsws.
33220 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
33222         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33223         vtable_pointer_value_to_binfo): New functions.
33224         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33225         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33227 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
33229         * config/nios2/nios2.md (load_got_register): Initialize GOT
33230         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33231         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33233 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
33235         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33236         preserverd by passthrough, do not propagate the type.
33238 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33240         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33241         (mips_atomic_assign_expand_fenv): New function.
33242         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33244 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33246         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33247         (__builtin_mips_set_fcsr): Likewise.
33248         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33249         MIPS_USI_FTYPE_VOID.
33250         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33251         (mips16_expand_set_fcsr): Likewise.
33252         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33253         (mips16_set_fcsr_stub): Likewise.
33254         (mips16_get_fcsr_one_only_stub): New class.
33255         (mips16_set_fcsr_one_only_stub): Likewise.
33256         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33257         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33258         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33259         (hard_float): New availability predicate.
33260         (mips_builtins): Add get_fcsr and set_fcsr.
33261         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33262         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33263         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33264         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33265         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33266         patterns.
33268 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33270         * config/mips/mips.c (mips_one_only_stub): New class.
33271         (mips_need_mips16_rdhwr_p): Replace with...
33272         (mips16_rdhwr_stub): ...this new variable.
33273         (mips16_stub_call_address): New function.
33274         (mips16_rdhwr_one_only_stub): New class.
33275         (mips_expand_thread_pointer): Use mips16_stub_call_address.
33276         (mips_output_mips16_rdhwr): Delete.
33277         (mips_finish_stub): New function.
33278         (mips_code_end): Use it to handle rdhwr stubs.
33280 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
33282         PR target/60017
33283         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33284         when calculating size of integer atomic types.
33286 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
33288         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33290 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
33292         PR tree-optimization/60003
33293         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33294         * profile.c (branch_prob): Use gimple_call_builtin_p
33295         to check for BUILT_IN_SETJMP_RECEIVER.
33296         * tree-inline.c (copy_bb): Call notice_special_calls.
33298 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
33300         PR bootstrap/59985
33301         * lra-constraints.c (process_alt_operands): Update reload_sum only
33302         on the first pass.
33304 2014-01-31  Richard Henderson  <rth@redhat.com>
33306         PR middle-end/60004
33307         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
33308         until after else_eh is processed.
33310 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
33312         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
33313         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
33314         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
33315         in smmintrin.h, remove them.
33316         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
33317         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
33318         * config/i386/i386.md (ROUND_SAE): Fix value.
33319         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
33320         (const48_operand): New.
33321         * config/i386/subst.md (round), (round_expand): Use
33322         const_4_or_8_to_11_operand.
33323         (round_saeonly), (round_saeonly_expand): Use const48_operand.
33325 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
33327         * config/i386/constraints.md (Yk): Swap meaning with k.
33328         * config/i386/i386.md (movhi_internal): Change Yk to k.
33329         (movqi_internal): Ditto.
33330         (*k<logic><mode>): Ditto.
33331         (*andhi_1): Ditto.
33332         (*andqi_1): Ditto.
33333         (kandn<mode>): Ditto.
33334         (*<code>hi_1): Ditto.
33335         (*<code>qi_1): Ditto.
33336         (kxnor<mode>): Ditto.
33337         (kortestzhi): Ditto.
33338         (kortestchi): Ditto.
33339         (kunpckhi): Ditto.
33340         (*one_cmplhi2_1): Ditto.
33341         (*one_cmplqi2_1): Ditto.
33342         * config/i386/sse.md (): Change k to Yk.
33343         (avx512f_load<mode>_mask): Ditto.
33344         (avx512f_blendm<mode>): Ditto.
33345         (avx512f_store<mode>_mask): Ditto.
33346         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
33347         (avx512f_storedqu<mode>_mask): Ditto.
33348         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
33349         Ditto.
33350         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
33351         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
33352         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
33353         (avx512f_maskcmp<mode>3): Ditto.
33354         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
33355         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
33356         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
33357         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
33358         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
33359         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
33360         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
33361         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
33362         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
33363         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
33364         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
33365         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
33366         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
33367         (vec_extract_lo_<mode>_maskm): Ditto.
33368         (vec_extract_hi_<mode>_maskm): Ditto.
33369         (avx512f_vternlog<mode>_mask): Ditto.
33370         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
33371         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
33372         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
33373         (avx512f_<code>v8div16qi2_mask): Ditto.
33374         (avx512f_<code>v8div16qi2_mask_store): Ditto.
33375         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
33376         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
33377         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
33378         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
33379         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33380         (*avx512pf_gatherpf<mode>df_mask): Ditto.
33381         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33382         (*avx512pf_scatterpf<mode>df_mask): Ditto.
33383         (avx512cd_maskb_vec_dupv8di): Ditto.
33384         (avx512cd_maskw_vec_dupv16si): Ditto.
33385         (avx512f_vpermi2var<mode>3_maskz): Ditto.
33386         (avx512f_vpermi2var<mode>3_mask): Ditto.
33387         (avx512f_vpermi2var<mode>3_mask): Ditto.
33388         (avx512f_vpermt2var<mode>3_maskz): Ditto.
33389         (*avx512f_gathersi<mode>): Ditto.
33390         (*avx512f_gathersi<mode>_2): Ditto.
33391         (*avx512f_gatherdi<mode>): Ditto.
33392         (*avx512f_gatherdi<mode>_2): Ditto.
33393         (*avx512f_scattersi<mode>): Ditto.
33394         (*avx512f_scatterdi<mode>): Ditto.
33395         (avx512f_compress<mode>_mask): Ditto.
33396         (avx512f_compressstore<mode>_mask): Ditto.
33397         (avx512f_expand<mode>_mask): Ditto.
33398         * config/i386/subst.md (mask): Change k to Yk.
33399         (mask_scalar_merge): Ditto.
33400         (sd): Ditto.
33402 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
33404         * doc/extend.texi (Vector Extensions): Document ?: in C++.
33406 2014-01-31  Richard Biener  <rguenther@suse.de>
33408         PR middle-end/59990
33409         * builtins.c (fold_builtin_memory_op): Make sure to not
33410         use a floating-point mode or a boolean or enumeral type for
33411         the copy operation.
33413 2014-01-30  DJ Delorie  <dj@redhat.com>
33415         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
33416         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
33417         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
33418         whenever main() has an epilogue.
33420 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33422         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
33423         unused variable "field".
33424         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
33425         (vsx_mergeh_<mode>): Likewise.
33426         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
33427         (altivec_vmrghh): Likewise.
33428         (altivec_vmrghw): Likewise.
33429         (altivec_vmrglb): Likewise.
33430         (altivec_vmrglh): Likewise.
33431         (altivec_vmrglw): Likewise.
33432         (altivec_vspltb): Add missing uses.
33433         (altivec_vsplth): Likewise.
33434         (altivec_vspltw): Likewise.
33435         (altivec_vspltsf): Likewise.
33437 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
33439         PR target/59923
33440         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
33441         frame related instructions.
33443 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33445         PR rtl-optimization/59959
33446         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
33447         any reload of register whose subreg is invalid.
33449 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
33451         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
33452         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
33453         Add missing return type - void.
33455 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33457         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
33458         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
33459         remove element index adjustment for endian (now handled in vsx.md
33460         and altivec.md).
33461         (altivec_expand_vec_perm_const): Use
33462         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
33463         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
33464         (vsx_xxspltw_<mode>): Adjust element index for little endian.
33465         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
33466         define_expand and a new define_insn *altivec_vspltb_internal;
33467         adjust for -maltivec=be on a little endian target.
33468         (altivec_vspltb_direct): New.
33469         (altivec_vsplth): Divide into a define_expand and a new
33470         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
33471         little endian target.
33472         (altivec_vsplth_direct): New.
33473         (altivec_vspltw): Divide into a define_expand and a new
33474         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
33475         little endian target.
33476         (altivec_vspltw_direct): New.
33477         (altivec_vspltsf): Divide into a define_expand and a new
33478         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
33479         a little endian target.
33481 2014-01-30  Richard Biener  <rguenther@suse.de>
33483         PR tree-optimization/59993
33484         * tree-ssa-forwprop.c (associate_pointerplus): Check we
33485         can propagate form the earlier stmt and avoid the transform
33486         when the intermediate result is needed.
33488 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
33490         * README.Portability: Fix typo.
33492 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
33494         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
33495         comparison_operator with ordered_comparison_operator.
33497 2014-01-30  Nick Clifton  <nickc@redhat.com>
33499         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
33500         Rename to mn10300_store_multiple_regs.
33501         * config/mn10300/mn10300.c: Likewise.
33502         * config/mn10300/mn10300.md (store_movm): Fix typo: call
33503         store_multiple_regs.
33504         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
33505         Call mn10300_store_multiple_regs.
33507 2014-01-30  Nick Clifton  <nickc@redhat.com>
33508             DJ Delorie  <dj@redhat.com>
33510         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
33511         %fp 2 to keep registers after it properly word-aligned.
33512         (rl78_alloc_physical_registers_umul): Handle the case where both
33513         input operands are the same.
33515 2014-01-30  Richard Biener  <rguenther@suse.de>
33517         PR tree-optimization/59903
33518         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
33519         check properly.
33521 2014-01-30  Jason Merrill  <jason@redhat.com>
33523         PR c++/59633
33524         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
33526         PR c++/59645
33527         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
33529 2014-01-30  Richard Biener  <rguenther@suse.de>
33531         PR tree-optimization/59951
33532         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
33534 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
33536         PR target/59784
33537         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
33538         SFmode to DFmode case.
33540 2014-01-29  DJ Delorie  <dj@redhat.com>
33542         * config/msp430/msp430.opt (-minrt): New.
33543         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33544         if -minrt given.
33545         (ENDFILE_SPEC): Likewise.
33547 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
33549         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33550         (estimate_function_body_sizes): Use it.
33552 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
33554         PR c++/58561
33555         * dwarf2out.c (is_cxx_auto): New.
33556         (is_base_type): Use it.
33557         (gen_type_die_with_usage): Likewise.
33559 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33561         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
33562         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33563         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33564         -maltivec=be with LE targets.
33565         (vsx_mergeh_<mode>): Likewise.
33566         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33567         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33568         (altivec_vmrghb): Replace with define_expand and new
33569         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33570         (altivec_vmrghb_direct): New define_insn.
33571         (altivec_vmrghh): Replace with define_expand and new
33572         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33573         (altivec_vmrghh_direct): New define_insn.
33574         (altivec_vmrghw): Replace with define_expand and new
33575         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33576         (altivec_vmrghw_direct): New define_insn.
33577         (*altivec_vmrghsf): Adjust for endianness.
33578         (altivec_vmrglb): Replace with define_expand and new
33579         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33580         (altivec_vmrglb_direct): New define_insn.
33581         (altivec_vmrglh): Replace with define_expand and new
33582         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33583         (altivec_vmrglh_direct): New define_insn.
33584         (altivec_vmrglw): Replace with define_expand and new
33585         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33586         (altivec_vmrglw_direct): New define_insn.
33587         (*altivec_vmrglsf): Adjust for endianness.
33588         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33589         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33590         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33591         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33592         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33593         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33594         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33595         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33597 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33599         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33600         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33601         whitespace.
33603 2014-01-29  Richard Biener  <rguenther@suse.de>
33605         PR tree-optimization/58742
33606         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33607         associate_pointerplus_align.
33608         (associate_pointerplus_diff): New function.
33609         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
33610         and associate_pointerplus_diff.
33612 2014-01-29  Richard Biener  <rguenther@suse.de>
33614         * lto-streamer.h (LTO_major_version): Bump to 3.
33615         (LTO_minor_version): Reset to 0.
33617 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
33619         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33620         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33621         (arm_file_start): Generate correct asm header for armv7ve.
33622         * config/arm/bpabi.h: Add multilib support for armv7ve.
33623         * config/arm/driver-arm.c: Change the architectures of cortex-a7
33624         and cortex-a15 to armv7ve.
33625         * config/arm/t-aprofile: Add multilib support for armv7ve.
33626         * doc/invoke.texi: Document -march=armv7ve.
33628 2014-01-29  Richard Biener  <rguenther@suse.de>
33630         PR tree-optimization/58742
33631         * tree-ssa-forwprop.c (associate_plusminus): Return true
33632         if we changed sth, defer EH cleanup to ...
33633         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
33634         (simplify_mult): New function.
33636 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
33638         PR middle-end/59917
33639         PR tree-optimization/59920
33640         * tree.c (build_common_builtin_nodes): Remove
33641         __builtin_setjmp_dispatcher initialization.
33642         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
33643         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
33644         instead of gsi_after_labels + manually skipping debug stmts.
33645         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
33646         ignore bbs with IFN_ABNORMAL_DISPATCHER.
33647         * tree-inline.c (copy_edges_for_bb): Remove
33648         can_make_abnormal_goto argument, instead add abnormal_goto_dest
33649         argument.  Ignore computed_goto_p stmts.  Don't call
33650         make_abnormal_goto_edges.  If a call might need abnormal edges
33651         for non-local gotos, see if it already has an edge to
33652         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
33653         with true argument, don't do anything then, otherwise add
33654         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
33655         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
33656         caller.
33657         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
33658         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33659         (lower_stmt): Don't set data->calls_builtin_setjmp.
33660         (lower_builtin_setjmp): Adjust comment.
33661         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33662         * tree-cfg.c (found_computed_goto): Remove.
33663         (factor_computed_gotos): Remove.
33664         (make_goto_expr_edges): Return bool, true for computed gotos.
33665         Don't call make_abnormal_goto_edges.
33666         (build_gimple_cfg): Don't set found_computed_goto, don't call
33667         factor_computed_gotos.
33668         (computed_goto_p): No longer static.
33669         (make_blocks): Don't set found_computed_goto.
33670         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33671         (make_edges): If make_goto_expr_edges returns true, push bb
33672         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33673         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33674         vector.  Record mapping between bbs and OpenMP regions if there
33675         are any, adjust make_gimple_omp_edges caller.  Call
33676         handle_abnormal_edges.
33677         (make_abnormal_goto_edges): Remove.
33678         * tree-cfg.h (make_abnormal_goto_edges): Remove.
33679         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33680         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33681         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33682         * internal-fn.def (ABNORMAL_DISPATCHER): New.
33683         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33684         filling *region also set *region_idx to (*region)->entry->index.
33686         PR other/58712
33687         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
33688         For REGs set ORIGINAL_REGNO.
33690 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
33692         * doc/md.texi: Mention that a target shouldn't implement
33693         vec_widen_(s|u)mul_even/odd pair if it is less efficient
33694         than hi/lo pair.
33696 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
33698         PR tree-optimization/59594
33699         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
33700         a copy of the datarefs vector rather than the vector itself.
33702 2014-01-28  Jason Merrill  <jason@redhat.com>
33704         PR c++/53756
33705         * dwarf2out.c (auto_die): New static.
33706         (gen_type_die_with_usage): Handle C++1y 'auto'.
33707         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
33708         on definition.
33710 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
33712         PR target/59672
33713         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
33714         (SPEC_X32): Likewise.
33715         (SPEC_64): Likewise.
33716         * config/i386/i386.c (ix86_option_override_internal): Turn off
33717         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
33718         for TARGET_16BIT.
33719         (x86_file_start): Output .code16gcc for TARGET_16BIT.
33720         * config/i386/i386.h (TARGET_16BIT): New macro.
33721         (TARGET_16BIT_P): Likewise.
33722         * config/i386/i386.opt: Add m16.
33723         * doc/invoke.texi: Document -m16.
33725 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
33727         PR preprocessor/59935
33728         * input.c (location_get_source_line): Bail out on when line number
33729         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
33731 2014-01-28  Richard Biener  <rguenther@suse.de>
33733         PR tree-optimization/58742
33734         * tree-ssa-forwprop.c (associate_plusminus): Handle
33735         pointer subtraction of the form (T)(P + A) - (T)P.
33737 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33739         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
33740         at const_int_cost.
33742 2014-01-28  Richard Biener  <rguenther@suse.de>
33744         Revert
33745         2014-01-28  Richard Biener  <rguenther@suse.de>
33747         PR rtl-optimization/45364
33748         PR rtl-optimization/59890
33749         * var-tracking.c (local_get_addr_clear_given_value): Handle
33750         already cleared slot.
33751         (val_reset): Handle not allocated local_get_addr_cache.
33752         (vt_find_locations): Use post-order on the inverted CFG.
33754 2014-01-28  Richard Biener  <rguenther@suse.de>
33756         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
33758 2014-01-28  Richard Biener  <rguenther@suse.de>
33760         PR rtl-optimization/45364
33761         PR rtl-optimization/59890
33762         * var-tracking.c (local_get_addr_clear_given_value): Handle
33763         already cleared slot.
33764         (val_reset): Handle not allocated local_get_addr_cache.
33765         (vt_find_locations): Use post-order on the inverted CFG.
33767 2014-01-28  Alan Modra  <amodra@gmail.com>
33769         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
33770         * configure.ac <recursive call for build != host>: Define
33771         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
33772         and LD_FOR_BUILD too.
33773         * configure: Regenerate.
33775 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
33777         * config/i386/i386.c (get_builtin_code_for_version): Separate
33778         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
33779         Broadwell from Haswell.
33781 2014-01-27  Steve Ellcey  <sellcey@mips.com>
33783         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33784         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
33785         * config/mips/mips.c (mips_option_override): Change setting
33786         of TARGET_DSP.
33787         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
33788         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
33789         Change from Mask to Var.
33791 2014-01-27  Jeff Law  <law@redhat.com>
33793         * ipa-inline.c (inline_small_functions): Fix typo.
33795 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
33797         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
33798         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
33799         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
33800         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
33801         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
33802         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
33803         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
33804         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
33805         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
33806         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
33807         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
33808         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
33809         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
33810         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
33811         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
33812         (_mm512_storeu_epi64): Ditto.
33813         (_mm512_cmpge_epi32_mask): Ditto.
33814         (_mm512_cmpge_epu32_mask): Ditto.
33815         (_mm512_cmpge_epi64_mask): Ditto.
33816         (_mm512_cmpge_epu64_mask): Ditto.
33817         (_mm512_cmple_epi32_mask): Ditto.
33818         (_mm512_cmple_epu32_mask): Ditto.
33819         (_mm512_cmple_epi64_mask): Ditto.
33820         (_mm512_cmple_epu64_mask): Ditto.
33821         (_mm512_cmplt_epi32_mask): Ditto.
33822         (_mm512_cmplt_epu32_mask): Ditto.
33823         (_mm512_cmplt_epi64_mask): Ditto.
33824         (_mm512_cmplt_epu64_mask): Ditto.
33825         (_mm512_cmpneq_epi32_mask): Ditto.
33826         (_mm512_cmpneq_epu32_mask): Ditto.
33827         (_mm512_cmpneq_epi64_mask): Ditto.
33828         (_mm512_cmpneq_epu64_mask): Ditto.
33829         (_mm512_expand_pd): Ditto.
33830         (_mm512_expand_ps): Ditto.
33831         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
33832         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
33833         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
33834         * config/i386/i386.c (ix86_builtins): Add
33835         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
33836         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
33837         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
33838         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
33839         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
33840         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
33841         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
33842         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
33843         IX86_BUILTIN_PMOVUSQW512_MEM.
33844         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
33845         __builtin_ia32_pmovsqd512mem_mask,
33846         __builtin_ia32_pmovqd512mem_mask,
33847         __builtin_ia32_pmovusqw512mem_mask,
33848         __builtin_ia32_pmovsqw512mem_mask,
33849         __builtin_ia32_pmovqw512mem_mask,
33850         __builtin_ia32_pmovusdw512mem_mask,
33851         __builtin_ia32_pmovsdw512mem_mask,
33852         __builtin_ia32_pmovdw512mem_mask,
33853         __builtin_ia32_pmovqb512mem_mask,
33854         __builtin_ia32_pmovusqb512mem_mask,
33855         __builtin_ia32_pmovsqb512mem_mask,
33856         __builtin_ia32_pmovusdb512mem_mask,
33857         __builtin_ia32_pmovsdb512mem_mask,
33858         __builtin_ia32_pmovdb512mem_mask.
33859         (bdesc_args): Add __builtin_ia32_expanddf512,
33860         __builtin_ia32_expandsf512.
33861         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
33862         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
33863         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
33864         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
33865         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
33866         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
33867         (avx512f_<code>v8div16qi2_mask_store): This.
33868         (avx512f_expand<mode>): New.
33870 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
33872         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
33873         New.
33874         (_mm512_mask_prefetch_i64gather_pd): Ditto.
33875         (_mm512_prefetch_i32scatter_pd): Ditto.
33876         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
33877         (_mm512_prefetch_i64scatter_pd): Ditto.
33878         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
33879         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
33880         (_mm512_mask_prefetch_i64gather_ps): Ditto.
33881         (_mm512_prefetch_i32scatter_ps): Ditto.
33882         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
33883         (_mm512_prefetch_i64scatter_ps): Ditto.
33884         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
33885         * config/i386/i386-builtin-types.def: Define
33886         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
33887         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
33888         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
33889         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
33890         IX86_BUILTIN_SCATTERPFQPD.
33891         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
33892         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
33893         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
33894         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
33895         __builtin_ia32_scatterpfqps.
33896         (ix86_expand_builtin): Expand new built-ins.
33897         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
33898         fix memory access data type.
33899         (*avx512pf_gatherpf<mode>_mask): Ditto.
33900         (*avx512pf_gatherpf<mode>): Ditto.
33901         (avx512pf_scatterpf<mode>): Ditto.
33902         (*avx512pf_scatterpf<mode>_mask): Ditto.
33903         (*avx512pf_scatterpf<mode>): Ditto.
33904         (GATHER_SCATTER_SF_MEM_MODE): New.
33905         (avx512pf_gatherpf<mode>df): Ditto.
33906         (*avx512pf_gatherpf<mode>df_mask): Ditto.
33907         (*avx512pf_scatterpf<mode>df): Ditto.
33909 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
33911         PR bootstrap/59934
33912         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
33913         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
33914         reached.
33916 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
33918         * common/config/arm/arm-common.c
33919         (arm_rewrite_mcpu): Handle multiple names.
33920         * config/arm/arm.h
33921         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33923 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
33925         * gimple-builder.h (create_gimple_tmp): Delete.
33927 2014-01-27  Christian Bruel  <christian.bruel@st.com>
33929         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
33930         words comparisons.
33932 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
33934         * config/pa/pa.md (call): Generate indirect long calls to non-local
33935         functions when outputing 32-bit code.
33936         (call_value): Likewise except for special call to buggy powf function.
33938         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
33939         portable runtime and PIC indirect calls.
33940         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
33941         and PIC call sequences.  Use ldo instead of blr to set return register
33942         in PIC call sequence.
33944 2014-01-25  Walter Lee  <walt@tilera.com>
33946         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
33947         avoid clobbering a live register.
33949 2014-01-25  Walter Lee  <walt@tilera.com>
33951         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
33952         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
33953         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
33954         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
33956 2014-01-25  Walter Lee  <walt@tilera.com>
33958         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
33959         arguments on even registers.
33960         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
33961         STACK_BOUNDARY.
33962         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
33963         (BIGGEST_ALIGNMENT): Ditto.
33964         (BIGGEST_FIELD_ALIGNMENT): Ditto.
33966 2014-01-25  Walter Lee  <walt@tilera.com>
33968         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
33969         insns before bundling.
33970         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
33972 2014-01-25  Walter Lee  <walt@tilera.com>
33974         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
33975         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
33976         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
33978 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
33980         * config/mips/constraints.md (kl): Delete.
33981         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
33982         define expands, using...
33983         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
33984         instructions for MIPS16.
33985         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
33986         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
33988 2014-01-25  Walter Lee  <walt@tilera.com>
33990         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
33991         (clzdi2): Ditto.
33992         (ffsdi2): Ditto.
33994 2014-01-25  Walter Lee  <walt@tilera.com>
33996         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
33997         (TARGET_EXPAND_TO_RTL_HOOK): Define.
33999 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34001         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34002         Handle XOR.
34004 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
34006         * print-rtl.c (in_call_function_usage): New var.
34007         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34008         EXPR_LIST mode as mode and not as reg note name.
34010         PR middle-end/59561
34011         * cfgloopmanip.c (copy_loop_info): If
34012         loop->warned_aggressive_loop_optimizations, make sure
34013         the flag is set in target loop too.
34015 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
34017         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34018         flag_cilkplus.
34019         * builtins.def: Likewise.
34020         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34021         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34022         * ira.c (ira_setup_eliminable_regset): Likewise.
34023         * omp-low.c (gate_expand_omp): Likewise.
34024         (execute_lower_omp): Likewise.
34025         (diagnose_sb_0): Likewise.
34026         (gate_diagnose_omp_blocks): Likewise.
34027         (simd_clone_clauses_extract): Likewise.
34028         (gate): Likewise.
34030 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34032         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34033         correction for little endian...
34034         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34035         here.
34037 2014-01-24  Jeff Law  <law@redhat.com>
34039         PR tree-optimization/59919
34040         * tree-vrp.c (find_assert_locations_1): Do not register asserts
34041         for non-returning calls.
34043 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
34045         * common/config/aarch64/aarch64-common.c
34046         (aarch64_rewrite_mcpu): Handle multiple names.
34047         * config/aarch64/aarch64.h
34048         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34050 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
34052         * input.c (add_file_to_cache_tab): Handle the case where fopen
34053         returns NULL.
34055 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34057         PR target/59929
34058         * config/i386/i386.md (pushsf splitter): Get stack adjustment
34059         from push operand if code of push isn't PRE_DEC.
34061 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
34063         PR target/59909
34064         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34065         -mquad-memory-atomic.  Update -mquad-memory documentation to say
34066         it is only used for non-atomic loads/stores.
34068         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34069         -mquad-memory or -mquad-memory-atomic switches.
34071         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34072         -mquad-memory-atomic to ISA 2.07 support.
34074         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34075         to separate support of normal quad word memory operations (ldq, stq)
34076         from the atomic quad word memory operations.
34078         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34079         support to separate non-atomic quad word operations from atomic
34080         quad word operations.  Disable non-atomic quad word operations in
34081         little endian mode so that we don't have to swap words after the
34082         load and before the store.
34083         (quad_load_store_p): Add comment about atomic quad word support.
34084         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34085         options printed with -mdebug=reg.
34087         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34088         -mquad-memory-atomic as the test for whether we have quad word
34089         atomic instructions.
34090         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34091         or -mp8-vector are used, allow byte/half-word atomic operations.
34093         * config/rs6000/sync.md (load_lockedti): Insure that the address
34094         is a proper indexed or indirect address for the lqarx instruction.
34095         On little endian systems, swap the hi/lo registers after the lqarx
34096         instruction.
34097         (load_lockedpti): Use indexed_or_indirect_operand predicate to
34098         insure the address is valid for the lqarx instruction.
34099         (store_conditionalti): Insure that the address is a proper indexed
34100         or indirect address for the stqcrx. instruction.  On little endian
34101         systems, swap the hi/lo registers before doing the stqcrx.
34102         instruction.
34103         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34104         insure the address is valid for the stqcrx. instruction.
34106         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34107         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34108         type of quad memory support is available.
34110 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
34112         PR regression/59915
34113         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34114         there is a danger of looping.
34116 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
34118         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34119         force flag_ira_loop_pressure if set via command line.
34121 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34123         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34124         (ashr_simd): New builtin handling DI mode.
34125         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34126         (aarch64_sshr_simddi): New match pattern.
34127         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34128         (vshrd_n_s64): Likewise.
34129         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34131 2014-01-23  Nick Clifton  <nickc@redhat.com>
34133         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34134         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34135         favour of mcu specific scripts.
34136         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34137         430x multilibs.
34139 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
34140             Alex Velenko  <Alex.Velenko@arm.com>
34142         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34143         (vaddv_s16): Likewise.
34144         (vaddv_s32): Likewise.
34145         (vaddv_u8): Likewise.
34146         (vaddv_u16): Likewise.
34147         (vaddv_u32): Likewise.
34148         (vaddvq_s8): Likewise.
34149         (vaddvq_s16): Likewise.
34150         (vaddvq_s32): Likewise.
34151         (vaddvq_s64): Likewise.
34152         (vaddvq_u8): Likewise.
34153         (vaddvq_u16): Likewise.
34154         (vaddvq_u32): Likewise.
34155         (vaddvq_u64): Likewise.
34156         (vaddv_f32): Likewise.
34157         (vaddvq_f32): Likewise.
34158         (vaddvq_f64): Likewise.
34159         (vmaxv_f32): Likewise.
34160         (vmaxv_s8): Likewise.
34161         (vmaxv_s16): Likewise.
34162         (vmaxv_s32): Likewise.
34163         (vmaxv_u8): Likewise.
34164         (vmaxv_u16): Likewise.
34165         (vmaxv_u32): Likewise.
34166         (vmaxvq_f32): Likewise.
34167         (vmaxvq_f64): Likewise.
34168         (vmaxvq_s8): Likewise.
34169         (vmaxvq_s16): Likewise.
34170         (vmaxvq_s32): Likewise.
34171         (vmaxvq_u8): Likewise.
34172         (vmaxvq_u16): Likewise.
34173         (vmaxvq_u32): Likewise.
34174         (vmaxnmv_f32): Likewise.
34175         (vmaxnmvq_f32): Likewise.
34176         (vmaxnmvq_f64): Likewise.
34177         (vminv_f32): Likewise.
34178         (vminv_s8): Likewise.
34179         (vminv_s16): Likewise.
34180         (vminv_s32): Likewise.
34181         (vminv_u8): Likewise.
34182         (vminv_u16): Likewise.
34183         (vminv_u32): Likewise.
34184         (vminvq_f32): Likewise.
34185         (vminvq_f64): Likewise.
34186         (vminvq_s8): Likewise.
34187         (vminvq_s16): Likewise.
34188         (vminvq_s32): Likewise.
34189         (vminvq_u8): Likewise.
34190         (vminvq_u16): Likewise.
34191         (vminvq_u32): Likewise.
34192         (vminnmv_f32): Likewise.
34193         (vminnmvq_f32): Likewise.
34194         (vminnmvq_f64): Likewise.
34196 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
34198         * config/aarch64/aarch64-simd.md
34199         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34200         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34201         (*aarch64_mul3_elt<mode>): Likewise.
34202         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34203         (*aarch64_mul3_elt_to_64v2df): Likewise.
34204         (*aarch64_mla_elt<mode>): Likewise.
34205         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34206         (*aarch64_mls_elt<mode>): Likewise.
34207         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34208         (*aarch64_fma4_elt<mode>): Likewise.
34209         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34210         (*aarch64_fma4_elt_to_64v2df): Likewise.
34211         (*aarch64_fnma4_elt<mode>): Likewise.
34212         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34213         (*aarch64_fnma4_elt_to_64v2df): Likewise.
34214         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34215         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34216         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34217         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34218         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34219         (aarch64_sqdmull_lane<mode>_internal): Likewise.
34220         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34222 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34224         * config/aarch64/aarch64-simd.md
34225         (aarch64_be_checked_get_lane<mode>): New define_expand.
34226         * config/aarch64/aarch64-simd-builtins.def
34227         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34228         New builtin definition.
34229         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34230         Use new safe be builtin.
34232 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34234         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34235         New define_insn.
34236         (aarch64_be_st1<mode>): Likewise.
34237         (aarch_ld1<VALL:mode>): Define_expand modified.
34238         (aarch_st1<VALL:mode>): Likewise.
34239         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34240         (UNSPEC_ST1): Likewise.
34242 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
34244         * config/microblaze/microblaze.md: Add trap insn and attribute
34246 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
34248         PR preprocessor/58580
34249         * input.h (location_get_source_line): Take an additional line_size
34250         parameter.
34251         (void diagnostics_file_cache_fini): Declare new function.
34252         * input.c (struct fcache): New type.
34253         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34254         New static constants.
34255         (diagnostic_file_cache_init, total_lines_num)
34256         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34257         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34258         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34259         (get_next_line, read_next_line, goto_next_line, read_line_num):
34260         New static function definitions.
34261         (diagnostic_file_cache_fini): New function.
34262         (location_get_source_line): Take an additional output line_len
34263         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
34264         read_line_num.
34265         * diagnostic.c (diagnostic_finish): Call
34266         diagnostic_file_cache_fini.
34267         (adjust_line): Take an additional input parameter for the length
34268         of the line, rather than calculating it with strlen.
34269         (diagnostic_show_locus): Adjust the use of
34270         location_get_source_line and adjust_line with respect to their new
34271         signature.  While displaying a line now, do not stop at the first
34272         null byte.  Rather, display the zero byte as a space and keep
34273         going until we reach the size of the line.
34274         * Makefile.in: Add vec.o to OBJS-libcommon
34276 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
34277             Ilya Tocar  <ilya.tocar@intel.com>
34279         * config/i386/avx512fintrin.h (_mm512_kmov): New.
34280         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34281         (__builtin_ia32_kmov16): Ditto.
34282         * config/i386/i386.md (UNSPEC_KMOV): New.
34283         (kmovw): Ditto.
34285 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
34287         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34288         (_mm512_storeu_si512): Ditto.
34290 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
34292         PR target/52125
34293         * rtl.h (get_referenced_operands): Declare.
34294         * recog.c (get_referenced_operands): New function.
34295         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
34296         operands have been referenced when recording LO_SUM references.
34298 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
34300         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
34302 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
34304         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
34305         Enable for generic and recent AMD targets.
34307 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
34309         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
34310         ARG_SIZE note when adjustment was eliminated.
34312 2014-01-22  Jeff Law  <law@redhat.com>
34314         PR tree-optimization/59597
34315         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
34316         in file.  Accept new argument REGISTERING and use it to modify
34317         dump output appropriately.
34318         (register_jump_thread): Corresponding changes.
34319         (mark_threaded_blocks): Reinstate code to cancel unprofitable
34320         thread paths involving joiner blocks.  Add code to dump cancelled
34321         jump threading paths.
34323 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
34325         PR rtl-optimization/59477
34326         * lra-constraints.c (inherit_in_ebb): Process call for living hard
34327         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
34329 2014-01-22  Tom Tromey  <tromey@redhat.com>
34331         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
34332         PARAMS.
34333         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
34335 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
34337         PR rtl-optimization/59896
34338         * lra-constraints.c (process_alt_operands): Check unused note for
34339         matched operands of insn with no output reloads.
34341 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
34343         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
34344         (mips_move_from_gpr_cost): Likewise.
34346 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
34348         PR rtl-optimization/59858
34349         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
34350         ira_class_hard_regs_num.
34351         (process_alt_operands): Increase reject for dying matched operand.
34353 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
34355         PR target/59003
34356         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
34357         smaller than size, perform several stores or loads and stores
34358         at dst + count - size to store or copy all of size bytes, rather
34359         than just last modesize bytes.
34361 2014-01-20  DJ Delorie  <dj@redhat.com>
34363         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
34364         that CLOBBERs are REGs before propogating their values.
34366 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
34368         PR middle-end/59789
34369         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
34370         (cgraph_inline_failed_type): New function.
34371         * cgraph.h (DEFCIFCODE): Add type.
34372         (cgraph_inline_failed_type_t): New enum.
34373         (cgraph_inline_failed_type): New prototype.
34374         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
34375         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34376         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
34377         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
34378         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
34379         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
34380         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
34381         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
34382         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
34383         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
34384         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
34385         OPTIMIZATION_MISMATCH.
34386         * tree-inline.c (expand_call_inline): Emit errors during
34387         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
34389 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
34391         PR target/59685
34392         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
34393         mode attribute in insn output.
34395 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
34397         * output.h (output_constant): Delete.
34398         * varasm.c (output_constant): Make private.
34400 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
34402         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
34404 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
34406         PR middle-end/59860
34407         * tree.h (fold_builtin_strcat): New prototype.
34408         * builtins.c (fold_builtin_strcat): No longer static.  Add len
34409         argument, if non-NULL, don't call c_strlen.  Optimize
34410         directly into __builtin_memcpy instead of __builtin_strcpy.
34411         (fold_builtin_2): Adjust fold_builtin_strcat caller.
34412         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
34414 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
34416         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34417         for SImode_address_operand operands, having only a REG argument.
34419 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34421         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34422         loader name using mbig-endian.
34423         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
34425 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
34427         * doc/invoke.texi (-march): Clarify documentation for AArch64.
34428         (-mtune): Likewise.
34429         (-mcpu): Likewise.
34431 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
34433         * config/aarch64/aarch64-protos.h
34434         (aarch64_cannot_change_mode_class_ptr): Declare.
34435         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
34436         aarch64_cannot_change_mode_class_ptr): New.
34437         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
34438         backend hook aarch64_cannot_change_mode_class.
34440 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
34442         * common/config/aarch64/aarch64-common.c
34443         (aarch64_handle_option): Don't handle any option order logic here.
34444         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
34445         selected_cpu, warn on architecture version mismatch.
34446         (aarch64_override_options): Fix parsing order for option strings.
34448 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
34449             Iain Sandoe  <iain@codesourcery.com>
34451         PR bootstrap/59496
34452         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
34453         warning.  Amend comment to reflect current functionality.
34455 2014-01-20  Richard Biener  <rguenther@suse.de>
34457         PR middle-end/59860
34458         * builtins.c (fold_builtin_strcat): Remove case better handled
34459         by tree-ssa-strlen.c.
34461 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
34463         * config/aarch64/aarch64.opt
34464         (mcpu, march, mtune): Make case-insensitive.
34466 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
34468         PR target/59880
34469         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34470         if operands[1] is a REG or ZERO_EXTEND of a REG.
34472 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
34474         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
34476 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
34478         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
34479         long non-pic millicode calls.
34481 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
34483         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
34485 2014-01-19  Kito Cheng  <kito@0xlab.org>
34487         * builtins.c (expand_movstr): Check movstr expand done or fail.
34489 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
34490             H.J. Lu  <hongjiu.lu@intel.com>
34492         PR target/59379
34493         * config/i386/i386.md (*lea<mode>): Zero-extend return register
34494         to DImode for zero-extended addresses.
34496 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
34498         PR rtl-optimization/57763
34499         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
34500         on the new indirect jump_insn and increment LABEL_NUSES (label).
34502 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
34504         PR bootstrap/59580
34505         PR bootstrap/59583
34506         * config.gcc (x86_archs): New variable.
34507         (x86_64_archs): Likewise.
34508         (x86_cpus): Likewise.
34509         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
34510         --with-arch/--with-cpu= options.
34511         Support --with-arch=/--with-cpu={nehalem,westmere,
34512         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
34514 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
34516         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
34517         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
34519 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
34521         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
34523 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
34525         PR target/58944
34526         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
34527         clear cpp_get_options (parse_in)->warn_unused_macros for
34528         ix86_target_macros_internal with cpp_define.
34530 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
34532         * jump.c (delete_related_insns): Keep (use (insn))s.
34533         * reorg.c (redundant_insn): Check for barriers too.
34535 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34537         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
34539 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
34541         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
34542         call to $$dyncall when TARGET_LONG_CALLS is true.
34544 2014-01-17  Jeff Law  <law@redhat.com>
34546         * ree.c (combine_set_extension): Temporarily disable test for
34547         changing number of hard registers.
34549 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
34551         PR middle-end/58125
34552         * ipa-inline-analysis.c (inline_free_summary):
34553         Do not free summary of aliases.
34555 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
34557         PR middle-end/59706
34558         * gimplify.c (gimplify_expr): Use create_tmp_var
34559         instead of create_tmp_var_raw.  If cond doesn't have
34560         integral type, don't add the IFN_ANNOTATE builtin at all.
34562 2014-01-17  Martin Jambor  <mjambor@suse.cz>
34564         PR ipa/59736
34565         * ipa-cp.c (prev_edge_clone): New variable.
34566         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34567         Also resize prev_edge_clone vector.
34568         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34569         (ipcp_edge_removal_hook): New function.
34570         (ipcp_driver): Register ipcp_edge_removal_hook.
34572 2014-01-17  Andrew Pinski  <apinski@cavium.com>
34573             Steve Ellcey  <sellcey@mips.com>
34575         PR target/59462
34576         * config/mips/mips.c (mips_print_operand): Check operand mode instead
34577         of operator mode.
34579 2014-01-17  Jeff Law  <law@redhat.com>
34581         PR middle-end/57904
34582         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34583         so that pass_ccp runs first.
34585 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34587         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34588         (ix86_adjust_cost): Use !TARGET_XXX.
34589         (do_reorder_for_imul): Likewise.
34590         (swap_top_of_ready_list): Likewise.
34591         (ix86_sched_reorder): Likewise.
34593 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34595         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34596         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
34597         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
34598         (intel_memset): New.  Duplicate slm_memset.
34599         (intel_cost): New.  Duplicate slm_cost.
34600         (m_INTEL): New macro.
34601         (processor_target_table): Add "intel".
34602         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34603         with PROCESSOR_INTEL for "intel".
34604         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
34605         PROCESSOR_SILVERMONT.
34606         (ix86_issue_rate): Likewise.
34607         (ix86_adjust_cost): Likewise.
34608         (ia32_multipass_dfa_lookahead): Likewise.
34609         (swap_top_of_ready_list): Likewise.
34610         (ix86_sched_reorder): Likewise.
34611         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34612         instead of TARGET_OPT_AGU.
34613         * config/i386/i386.h (TARGET_INTEL): New.
34614         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34615         (processor_type): Add PROCESSOR_INTEL.
34616         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34617         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34619 2014-01-17  Marek Polacek  <polacek@redhat.com>
34621         PR c/58346
34622         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34623         size is zero.
34625 2014-01-17  Richard Biener  <rguenther@suse.de>
34627         PR tree-optimization/46590
34628         * opts.c (default_options_table): Add entries for
34629         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34630         all enabled at -O1 but not for -Og.
34631         * common.opt (fbranch-count-reg): Remove Init(1).
34632         (fmove-loop-invariants): Likewise.
34633         (ftree-pta): Likewise.
34635 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
34637         * config/i386/i386.c (ix86_data_alignment): For compatibility with
34638         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34639         decls to at least the GCC 4.8 used alignments.
34641         PR fortran/59440
34642         * tree-nested.c (convert_nonlocal_reference_stmt,
34643         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
34644         of GIMPLE_BIND stmts, adjust associated decls.
34646 2014-01-17  Richard Biener  <rguenther@suse.de>
34648         PR tree-optimization/46590
34649         * vec.h (vec<>::bseach): New member function implementing
34650         binary search according to C89 bsearch.
34651         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
34652         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
34653         bitmap pointer again.  Make accesses_in_loop a flat array.
34654         (mem_ref_obstack): New global.
34655         (outermost_indep_loop): Adjust for mem_ref->stored changes.
34656         (mark_ref_stored): Likewise.
34657         (ref_indep_loop_p_2): Likewise.
34658         (set_ref_stored_in_loop): New helper function.
34659         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34660         (memref_free): Adjust.
34661         (record_mem_ref_loc): Simplify.
34662         (gather_mem_refs_stmt): Adjust.
34663         (sort_locs_in_loop_postorder_cmp): New function.
34664         (analyze_memory_references): Sort accesses_in_loop after
34665         loop postorder number.
34666         (find_ref_loc_in_loop_cmp): New function.
34667         (for_all_locs_in_loop): Find relevant cluster of locs in
34668         accesses_in_loop and iterate without recursion.
34669         (execute_sm): Avoid uninit warning.
34670         (struct ref_always_accessed): Simplify.
34671         (ref_always_accessed::operator ()): Likewise.
34672         (ref_always_accessed_p): Likewise.
34673         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34674         loop postorder numbers here.
34675         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34676         numbers.
34678 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
34680         PR c++/57945
34681         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34682         on decls for which assemble_alias has been called.
34684 2014-01-17  Nick Clifton  <nickc@redhat.com>
34686         * config/msp430/msp430.opt: (mcpu): New option.
34687         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
34688         (msp430_option_override): Parse target_cpu.  If the MCU name
34689         matches a generic string, clear target_mcu.
34690         (msp430_attr): Allow numeric interrupt values up to 63.
34691         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
34692         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
34693         option.
34694         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
34695         Add mcpu matches.
34696         * config/msp430/msp430.md (popm): Use %J rather than %I.
34697         (addsi3): Use msp430_nonimmediate_operand for operand 2.
34698         (addhi_cy_i): Use immediate_operand for operand 2.
34699         * doc/invoke.texi: Document -mcpu option.
34701 2014-01-17  Richard Biener  <rguenther@suse.de>
34703         PR rtl-optimization/38518
34704         * df.h (df_analyze_loop): Declare.
34705         * df-core.c: Include cfgloop.h.
34706         (df_analyze_1): Split out main part of df_analyze.
34707         (df_analyze): Adjust.
34708         (loop_inverted_post_order_compute): New function.
34709         (loop_post_order_compute): Likewise.
34710         (df_analyze_loop): New function avoiding whole-function
34711         postorder computes.
34712         * loop-invariant.c (find_defs): Use df_analyze_loop.
34713         (find_invariants): Adjust.
34714         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
34716 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
34718         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
34719         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
34721 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
34723         * ipa-ref.c (ipa_remove_stmt_references): Fix references
34724         traversal when removing references.
34726 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
34728         PR ipa/59775
34729         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
34731 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
34733         PR middle-end/56791
34734         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
34735         pushing a reload for an autoinc when we had previously reloaded an
34736         inner part of the address.
34738 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
34740         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
34741         field.
34742         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
34743         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
34744         when not giving up or versioning for alias only because of
34745         loop->safelen.
34746         (vect_analyze_data_ref_dependences): Set to true.
34747         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
34748         is a GIMPLE_PHI.
34749         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
34750         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
34751         to the condition.
34753         PR middle-end/58344
34754         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
34756         PR target/59839
34757         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
34758         operand 0 predicate for gathers, use a new pseudo as subtarget.
34760 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
34762         PR middle-end/59609
34763         * lra-constraints.c (process_alt_operands): Add printing debug info.
34764         Check absence of input/output reloads for matched operands too.
34766 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
34768         PR rtl-optimization/59835
34769         * ira.c (ira_init_register_move_cost): Increase cost for
34770         impossible modes.
34772 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
34774         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
34776 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
34778         PR target/59780
34779         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
34780         non-register objects.  Use gen_(high/low)part more consistently.
34781         Fix assertions.
34783 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
34785         PR target/59844
34786         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
34787         endian support, remove tests for WORDS_BIG_ENDIAN.
34788         (p8_mfvsrd_3_<mode>): Likewise.
34789         (reload_gpr_from_vsx<mode>): Likewise.
34790         (reload_gpr_from_vsxsf): Likewise.
34791         (p8_mfvsrd_4_disf): Likewise.
34793 2014-01-16  Richard Biener  <rguenther@suse.de>
34795         PR rtl-optimization/46590
34796         * lcm.c (compute_antinout_edge): Use postorder iteration.
34797         (compute_laterin): Use inverted postorder iteration.
34799 2014-01-16  Nick Clifton  <nickc@redhat.com>
34801         PR middle-end/28865
34802         * varasm.c (output_constant): Return the number of bytes actually
34803         emitted.
34804         (output_constructor_array_range): Update the field size with the
34805         number of bytes emitted by output_constant.
34806         (output_constructor_regular_field): Likewise.  Also do not
34807         complain if the total number of bytes emitted is now greater
34808         than the expected fieldpos.
34809         * output.h (output_constant): Update prototype and descriptive comment.
34811 2014-01-16  Marek Polacek  <polacek@redhat.com>
34813         PR middle-end/59827
34814         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
34815         it is error_mark_node.
34817 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
34819         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
34820         VALID_AVX256_REG_OR_OI_MODE.
34822 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
34824         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
34825         current procedure should be profiled.
34827 2014-01-15  Andrew Pinski  <apinski@cavium.com>
34829         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
34830         of moving from/to the STACK_REG register class.
34832 2014-01-15  Richard Henderson  <rth@redhat.com>
34834         PR debug/54694
34835         * reginfo.c (global_regs_decl): Globalize.
34836         * rtl.h (global_regs_decl): Declare.
34837         * ira.c (do_reload): Diagnose frame_pointer_needed and it
34838         reserved via global_regs.
34840 2014-01-15  Teresa Johnson  <tejohnson@google.com>
34842         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
34844 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
34846         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
34847         and vmulosh rather than call gen_vec_widen_smult_*.
34848         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
34849         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
34850         (vec_widen_smult_even_v16qi): Likewise.
34851         (vec_widen_umult_even_v8hi): Likewise.
34852         (vec_widen_smult_even_v8hi): Likewise.
34853         (vec_widen_umult_odd_v16qi): Likewise.
34854         (vec_widen_smult_odd_v16qi): Likewise.
34855         (vec_widen_umult_odd_v8hi): Likewise.
34856         (vec_widen_smult_odd_v8hi): Likewise.
34857         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
34858         vmuloub rather than call gen_vec_widen_umult_*.
34859         (vec_widen_umult_lo_v16qi): Likewise.
34860         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
34861         vmulosb rather than call gen_vec_widen_smult_*.
34862         (vec_widen_smult_lo_v16qi): Likewise.
34863         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
34864         rather than call gen_vec_widen_umult_*.
34865         (vec_widen_umult_lo_v8hi): Likewise.
34866         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
34867         rather than call gen_vec_widen_smult_*.
34868         (vec_widen_smult_lo_v8hi): Likewise.
34870 2014-01-15  Jeff Law  <law@redhat.com>
34872         PR tree-optimization/59747
34873         * ree.c (find_and_remove_re): Properly handle case where a second
34874         eliminated extension requires widening a copy created for elimination
34875         of a prior extension.
34876         (combine_set_extension): Ensure that the number of hard regs needed
34877         for a destination register does not change when we widen it.
34879 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
34881         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
34882         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
34883         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
34884         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
34885         (avr-*-rtems*): Likewise.
34886         (bfin*-rtems*): Likewise.
34887         (moxie-*-rtems*): Likewise.
34888         (h8300-*-rtems*): Likewise.
34889         (i[34567]86-*-rtems*): Likewise.
34890         (lm32-*-rtems*): Likewise.
34891         (m32r-*-rtems*): Likewise.
34892         (m68k-*-rtems*): Likewise.
34893         (microblaze*-*-rtems*): Likewise.
34894         (mips*-*-rtems*): Likewise.
34895         (powerpc-*-rtems*): Likewise.
34896         (sh-*-rtems*): Likewise.
34897         (sparc-*-rtems*): Likewise.
34898         (sparc64-*-rtems*): Likewise.
34899         (v850-*-rtems*): Likewise.
34900         (m32c-*-rtems*): Likewise.
34902 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
34904         PR rtl-optimization/59511
34905         * ira.c (ira_init_register_move_cost): Use memory costs for some
34906         cases of register move cost calculations.
34907         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
34908         instead of BB frequency.
34909         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
34910         * lra-assigns.c (find_hard_regno_for): Ditto.
34912 2014-01-15  Richard Biener  <rguenther@suse.de>
34914         PR tree-optimization/59822
34915         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
34916         (vectorizable_load): Use it to hoist defs of uses of invariant
34917         loads out of the loop.
34919 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
34920             Kugan Vivekanandarajah  <kuganv@linaro.org>
34922         PR target/59695
34923         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
34924         truncation.
34926 2014-01-15  Richard Biener  <rguenther@suse.de>
34928         PR rtl-optimization/59802
34929         * lcm.c (compute_available): Use inverted postorder to seed
34930         the initial worklist.
34932 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34934         PR target/59803
34935         * config/s390/s390.c (s390_preferred_reload_class): Don't return
34936         ADDR_REGS for invalid symrefs in non-PIC code.
34938 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
34940         PR other/58712
34941         * builtins.c (determine_block_size): Initialize *probable_max_size
34942         even if len_rtx is CONST_INT.
34944 2014-01-14  Andrew Pinski  <apinski@cavium.com>
34946         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
34947         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
34948         (cortexa53_tunings): Likewise.
34949         (aarch64_sched_issue_rate): New function.
34950         (TARGET_SCHED_ISSUE_RATE): Define.
34952 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
34954         * ira-costs.c (find_costs_and_classes): Add missed
34955         ira_init_register_move_cost_if_necessary.
34957 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
34959         PR target/59787
34960         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
34962 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
34964         PR target/59794
34965         * config/i386/i386.c (type_natural_mode): Add a bool parameter
34966         to indicate if type is used for function return value.  Warn ABI
34967         change if the vector mode isn't available for function return value.
34968         (ix86_function_arg_advance): Pass false to type_natural_mode.
34969         (ix86_function_arg): Likewise.
34970         (ix86_gimplify_va_arg): Likewise.
34971         (function_arg_32): Don't warn ABI change.
34972         (ix86_function_value): Pass true to type_natural_mode.
34973         (ix86_return_in_memory): Likewise.
34974         (ix86_struct_value_rtx): Removed.
34975         (TARGET_STRUCT_VALUE_RTX): Likewise.
34977 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
34979         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
34980         converting a conditional jump into a conditional return.
34982 2014-01-14  Richard Biener  <rguenther@suse.de>
34984         PR tree-optimization/58921
34985         PR tree-optimization/59006
34986         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
34987         hoisting invariant stmts.
34988         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
34989         invariant loads on the preheader edge if possible.
34991 2014-01-14  Joey Ye  <joey.ye@arm.com>
34993         * doc/plugin.texi (Building GCC plugins): Update to C++.
34995 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
34997         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
34998         (_mm_rcp28_round_ss): Ditto.
34999         (_mm_rsqrt28_round_sd): Ditto.
35000         (_mm_rsqrt28_round_ss): Ditto.
35001         (_mm_rcp28_sd): Ditto.
35002         (_mm_rcp28_ss): Ditto.
35003         (_mm_rsqrt28_sd): Ditto.
35004         (_mm_rsqrt28_ss): Ditto.
35005         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35006         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35007         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35008         (IX86_BUILTIN_RCP28SD): Ditto.
35009         (IX86_BUILTIN_RCP28SS): Ditto.
35010         (IX86_BUILTIN_RSQRT28SD): Ditto.
35011         (IX86_BUILTIN_RSQRT28SS): Ditto.
35012         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35013         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35014         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35015         (ix86_expand_special_args_builtin): Expand new FTYPE.
35016         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35017         (srcp14<mode>): Make insn unary.
35018         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35019         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35020         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35021         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35022         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35023         Fix rounding: make it SAE only.
35024         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35025         Ditto.
35026         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35027         Ditto.
35028         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35029         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35030         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35031         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35032         (round_saeonly_mask_scalar_operand4): Ditto.
35033         (round_saeonly_mask_scalar_op3): Ditto.
35034         (round_saeonly_mask_scalar_op4): Ditto.
35036 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35038         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35039         Implement -maltivec=be for vec_insert and vec_extract.
35041 2014-01-10  DJ Delorie  <dj@redhat.com>
35043         * config/msp430/msp430.md (call_internal): Don't allow memory
35044         references with SP as the base register.
35045         (call_value_internal): Likewise.
35046         * config/msp430/constraints.md (Yc): New.  For memory references
35047         that don't use SP as a base register.
35049         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35050         "an integer without a # prefix"
35051         * config/msp430/msp430.md (epilogue_helper): Use it.
35053 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35055         PR target/59617
35056         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35057         AVX512F gather builtins.
35058         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35059         on gather decls with INTEGER_TYPE masktype.
35060         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35061         directly into the builtin rather than hoisting it before loop.
35063         PR tree-optimization/59387
35064         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35065         (scev_const_prop): If folded_casts and type has undefined overflow,
35066         use force_gimple_operand instead of force_gimple_operand_gsi and
35067         for each added stmt if it is assign with
35068         arith_code_with_undefined_signed_overflow, call
35069         rewrite_to_defined_overflow.
35070         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35071         gimple-fold.h instead.
35072         (arith_code_with_undefined_signed_overflow,
35073         rewrite_to_defined_overflow): Moved to ...
35074         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35075         rewrite_to_defined_overflow): ... here.  No longer static.
35076         Include gimplify-me.h.
35077         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35078         rewrite_to_defined_overflow): New prototypes.
35080 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35082         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35084 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
35086         * builtins.c (get_object_alignment_2): Minor tweak.
35087         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35089 2014-01-13  Christian Bruel  <christian.bruel@st.com>
35091         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35092         optimized non constant lengths.
35094 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35096         PR libgomp/59194
35097         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35098         load as __atomic_load_N if possible.
35100 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35102         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35103         target parameter.
35104         (rs6000_expand_builtin): Adjust call.
35106 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35108         PR target/58115
35109         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35110         * config/rs6000/rs6000.c: Include target-globals.h.
35111         (rs6000_set_current_function): Instead of doing target_reinit
35112         unconditionally, use save_target_globals_default_opts and
35113         restore_target_globals.
35115         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35116         FPSCR.
35117         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35118         (rs6000_expand_builtin): Handle mffs and mtfsf.
35119         (rs6000_init_builtins): Define mffs and mtfsf.
35120         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35121         (rs6000_mffs): New pattern.
35122         (rs6000_mtfsf): New pattern.
35124 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
35126         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35127         Start narrowing with START.  Apply candidate-use pair
35128         and check overall cost in narrowing.
35129         (iv_ca_prune): Pass new argument.
35131 2014-01-10  Jeff Law  <law@redhat.com>
35133         PR middle-end/59743
35134         * ree.c (combine_reaching_defs): Ensure the defining statement
35135         occurs before the extension when optimizing extensions with
35136         different source and destination hard registers.
35138 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
35140         PR ipa/58585
35141         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35142         vtables into the type inheritance graph.
35144 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35146         PR rtl-optimization/59754
35147         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35148         modes in the REGNO != REGNO case.
35150 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35152         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35154 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35156         PR tree-optimization/59745
35157         * tree-predcom.c (tree_predictive_commoning_loop): Call
35158         free_affine_expand_cache if giving up because components is NULL.
35160         * target-globals.c (save_target_globals): Allocate < 4KB structs using
35161         GC in payload of target_globals struct instead of allocating them on
35162         the heap and the larger structs separately using GC.
35163         * target-globals.h (struct target_globals): Make regs, hard_regs,
35164         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
35165         of GTY((skip)) and change type to void *.
35166         (reset_target_globals): Cast loads from those fields to corresponding
35167         types.
35169 2014-01-10  Steve Ellcey  <sellcey@mips.com>
35171         PR plugins/59335
35172         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
35173         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
35174         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
35176 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
35178         PR target/59744
35179         * aarch64-modes.def (CC_Zmode): New flags mode.
35180         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
35181         represents an equality.
35182         (aarch64_get_condition_code): Handle CC_Zmode.
35183         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
35185 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35187         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
35188         extraction in good case.
35190 2014-01-10  Richard Biener  <rguenther@suse.de>
35192         PR tree-optimization/59374
35193         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
35194         checking after SLP discovery.  Mark stmts not participating
35195         in any SLP instance properly.
35197 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35199         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35200         when handling a SET rtx.
35202 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35204         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35205         (cortex-a57): Likewise.
35206         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35208 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35210         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35211         non-iwmmxt builtins.
35213 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
35215         PR ipa/58252
35216         PR ipa/59226
35217         * ipa-devirt.c record_target_from_binfo): Take as argument
35218         stack of binfos and lookup matching one for virtual inheritance.
35219         (possible_polymorphic_call_targets_1): Update.
35221 2014-01-10  Huacai Chen  <chenhc@lemote.com>
35223         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35224         kernel strings for Loongson-2E/2F/3A.
35226 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35228         PR middle-end/59670
35229         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35230         is_gimple_call before calling gimple_call_internal_p.
35232 2014-01-09  Steve Ellcey  <sellcey@mips.com>
35234         * Makefile.in (TREE_FLOW_H): Remove.
35235         (TREE_SSA_H): Add file names from tree-flow.h.
35236         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35237         * tree.h: Remove tree-flow.h reference.
35238         * hash-table.h: Remove tree-flow.h reference.
35239         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35240         reference with tree-ssa-loop.h.
35242 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35244         * doc/invoke.texi: Add -maltivec={be,le} options, and document
35245         default element-order behavior for -maltivec.
35246         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35247         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35248         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35249         when targeting big endian, at least for now.
35250         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35252 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35254         PR middle-end/47735
35255         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35256         var satisfies use_register_for_decl, just take into account type
35257         alignment, rather than decl alignment.
35259         PR tree-optimization/59622
35260         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
35261         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35262         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35263         Don't devirtualize for inplace at all.  For targets.length () == 1,
35264         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35266 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
35268         * config/i386/i386.md (cpu): Remove the unused btver1.
35270 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
35272         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35274 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35276         PR target/58115
35277         * tree-core.h (struct target_globals): New forward declaration.
35278         (struct tree_target_option): Add globals field.
35279         * tree.h (TREE_TARGET_GLOBALS): Define.
35280         (prepare_target_option_nodes_for_pch): New prototype.
35281         * target-globals.h (struct target_globals): Define even if
35282         !SWITCHABLE_TARGET.
35283         * tree.c (prepare_target_option_node_for_pch,
35284         prepare_target_option_nodes_for_pch): New functions.
35285         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35286         * config/i386/i386.c: Include target-globals.h.
35287         (ix86_set_current_function): Instead of doing target_reinit
35288         unconditionally, use save_target_globals_default_opts and
35289         restore_target_globals.
35291 2014-01-09  Richard Biener  <rguenther@suse.de>
35293         PR tree-optimization/59715
35294         * tree-cfg.h (split_critical_edges): Declare.
35295         * tree-cfg.c (split_critical_edges): Export.
35296         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
35298 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35300         * cfgexpand.c (expand_stack_vars): Optionally disable
35301         asan stack protection.
35302         (expand_used_vars): Likewise.
35303         (partition_stack_vars): Likewise.
35304         * asan.c (asan_emit_stack_protection): Optionally disable
35305         after return stack usage.
35306         (instrument_derefs): Optionally disable memory access instrumentation.
35307         (instrument_builtin_call): Likewise.
35308         (instrument_strlen_call): Likewise.
35309         (asan_protect_global): Optionally disable global variables protection.
35310         * doc/invoke.texi: Added doc for new options.
35311         * params.def: Added new options.
35312         * params.h: Likewise.
35314 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35316         PR rtl-optimization/59724
35317         * ifcvt.c (cond_exec_process_if_block): Don't call
35318         flow_find_head_matching_sequence with 0 longest_match.
35319         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
35320         non-active insns if !stop_after.
35321         (try_head_merge_bb): Revert 2014-01-07 changes.
35323 2014-01-08  Jeff Law  <law@redhat.com>
35325         * ree.c (get_sub_rtx): New function, extracted from...
35326         (merge_def_and_ext): Here.
35327         (combine_reaching_defs): Use get_sub_rtx.
35329 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
35331         * cgraph.h (varpool_variable_node): Do not choke on null node.
35333 2014-01-08  Catherine Moore  <clm@codesourcery.com>
35335         * config/mips/mips.md (simple_return): Attempt to use JRC
35336         for microMIPS.
35337         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
35339 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
35341         PR rtl-optimization/59137
35342         * reorg.c (steal_delay_list_from_target): Call update_block for
35343         elided insns.
35344         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
35346 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35348         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
35349         two duplicate entries.
35351 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
35353         Revert:
35354         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
35356         * config/mips/mips.c (mips_truncated_op_cost): New function.
35357         (mips_rtx_costs): Adjust test for BADDU.
35358         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
35360         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
35362         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
35363         (*baddu_si): ...this new pattern.
35365 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
35367         PR ipa/59722
35368         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
35370 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35372         PR middle-end/57748
35373         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
35374         inner_reference_p.
35375         (expand_expr, expand_normal): Adjust.
35376         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
35377         inner_reference_p. Use inner_reference_p to expand inner references.
35378         (store_expr): Adjust.
35379         * cfgexpand.c (expand_call_stmt): Adjust.
35381 2014-01-08  Rong Xu  <xur@google.com>
35383         * gcov-io.c (gcov_var): Move from gcov-io.h.
35384         (gcov_position): Ditto.
35385         (gcov_is_error): Ditto.
35386         (gcov_rewrite): Ditto.
35387         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
35388         only part to libgcc/libgcov.h.
35390 2014-01-08  Marek Polacek  <polacek@redhat.com>
35392         PR middle-end/59669
35393         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
35395 2014-01-08  Marek Polacek  <polacek@redhat.com>
35397         PR sanitizer/59667
35398         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
35400 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
35402         PR rtl-optimization/59649
35403         * stor-layout.c (get_mode_bounds): For BImode return
35404         0 and STORE_FLAG_VALUE.
35406 2014-01-08  Richard Biener  <rguenther@suse.de>
35408         PR middle-end/59630
35409         * gimple.h (is_gimple_builtin_call): Remove.
35410         (gimple_builtin_call_types_compatible_p): New.
35411         (gimple_call_builtin_p): New overload.
35412         * gimple.c (is_gimple_builtin_call): Remove.
35413         (validate_call): Rename to ...
35414         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
35415         check return types.
35416         (validate_type): New static function.
35417         (gimple_call_builtin_p): New overload and adjust.
35418         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
35419         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
35420         (gimple_fold_stmt_to_constant_1): Likewise.
35421         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
35423 2014-01-08  Richard Biener  <rguenther@suse.de>
35425         PR middle-end/59471
35426         * gimplify.c (gimplify_expr): Gimplify register-register type
35427         VIEW_CONVERT_EXPRs to separate stmts.
35429 2014-01-07  Jeff Law  <law@redhat.com>
35431         PR middle-end/53623
35432         * ree.c (combine_set_extension): Handle case where source
35433         and destination registers in an extension insn are different.
35434         (combine_reaching_defs): Allow source and destination registers
35435         in extension to be different under limited circumstances.
35436         (add_removable_extension): Remove restriction that the
35437         source and destination registers in the extension are the same.
35438         (find_and_remove_re): Emit a copy from the extension's
35439         destination to its source after the defining insn if
35440         the source and destination registers are different.
35442         PR middle-end/59285
35443         * ifcvt.c (merge_if_block): If we are merging a block with more than
35444         one successor with a block with no successors, remove any BARRIER
35445         after the second block.
35447 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
35449         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
35451 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
35453         PR target/59652
35454         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
35455         for 14-bit register offsets when INT14_OK_STRICT is false.
35457 2014-01-07  Roland Stigge  <stigge@antcom.de>
35458             Michael Meissner  <meissner@linux.vnet.ibm.com>
35460         PR 57386/target
35461         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
35462         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
35464 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35466         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
35467         -mcpu.
35469 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
35471         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
35472         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
35473         rtx is const0_rtx or not.
35475 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
35477         PR target/58115
35478         * target-globals.c (save_target_globals): Remove this_fn_optab
35479         handling.
35480         * toplev.c: Include optabs.h.
35481         (target_reinit): Temporarily restore the global options if another
35482         set of options are in force.
35484 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
35486         PR rtl-optimization/58668
35487         * cfgcleanup.c (flow_find_cross_jump): Don't count
35488         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
35489         to determine what is counted.
35490         (flow_find_head_matching_sequence): Use active_insn_p to determine
35491         what is counted.
35492         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
35493         counting change.
35494         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
35495         determine what is counted.
35497         PR tree-optimization/59643
35498         * tree-predcom.c (split_data_refs_to_components): If one dr is
35499         read and one write, determine_offset fails and the write isn't
35500         in the bad component, just put the read into the bad component.
35502 2014-01-07  Mike Stump  <mikestump@comcast.net>
35503             Jakub Jelinek  <jakub@redhat.com>
35505         PR pch/59436
35506         * tree-core.h (struct tree_optimization_option): Change optabs
35507         type from unsigned char * to void *.
35508         * optabs.c (init_tree_optimization_optabs): Adjust
35509         TREE_OPTIMIZATION_OPTABS initialization.
35511 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
35513         PR target/59644
35514         * config/i386/i386.h (struct machine_function): Add
35515         no_drap_save_restore field.
35516         * config/i386/i386.c (ix86_save_reg): Use
35517         !cfun->machine->no_drap_save_restore instead of
35518         crtl->stack_realign_needed.
35519         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
35520         this function clears frame_pointer_needed.  Set
35521         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
35522         and DRAP reg is needed.
35524 2014-01-06  Marek Polacek  <polacek@redhat.com>
35526         PR c/57773
35527         * doc/implement-c.texi: Mention that other integer types are
35528         permitted as bit-field types in strictly conforming mode.
35530 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
35532         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
35533         is newly allocated.
35535 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
35537         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
35539 2014-01-06  Martin Jambor  <mjambor@suse.cz>
35541         PR ipa/59008
35542         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35543         to int.
35544         * ipa-prop.c (ipa_print_node_params): Fix indentation.
35546 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
35548         PR debug/59350
35549         PR debug/59510
35550         * var-tracking.c (add_stores): Preserve the value of the source even if
35551         we don't record the store.
35553 2014-01-06  Terry Guo  <terry.guo@arm.com>
35555         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35557 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
35559         PR bootstrap/59541
35560         * config/darwin.c (darwin_function_section): Adjust return values to
35561         correspond to optimisation changes made in r206070.
35563 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
35565         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35566         from prefetch_block tune setting.
35567         (nocona_cost): Correct size of prefetch block to 64.
35569 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
35571         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35572         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35573         used to save the static chain register in the computation of the offset
35574         from which the FP registers need to be restored.
35576 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
35578         PR tree-optimization/59519
35579         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35580         ICE if get_current_def (current_new_name) is already non-NULL, as long
35581         as it is a phi result of some other phi in *new_exit_bb that has
35582         the same argument.
35584         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35585         or vmovdqu* for misaligned_operand.
35586         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35587         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35588         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35589         aligned_mem for AVX512F masked aligned load and store builtins and for
35590         non-temporal moves.
35592 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
35594         PR tree-optimization/59651
35595         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35596         Address range for negative step should be added by TYPE_SIZE_UNIT.
35598 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
35600         * config/m68k/m68k.c (handle_move_double): Handle pushes with
35601         overlapping registers also for registers other than the stack pointer.
35603 2014-01-03  Marek Polacek  <polacek@redhat.com>
35605         PR other/59661
35606         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35607         __builtin_FILE.
35609 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
35611         PR target/59625
35612         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35613         asm goto as jump.
35615         * config/i386/i386.md (MODE_SIZE): New mode attribute.
35616         (push splitter): Use <P:MODE_SIZE> instead of
35617         GET_MODE_SIZE (<P:MODE>mode).
35618         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35619         (mov -1, reg peephole2): Likewise.
35620         * config/i386/sse.md (*mov<mode>_internal,
35621         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35622         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35623         *<code><mode>3, *andnot<mode>3<mask_name>,
35624         <mask_codefor><code><mode>3<mask_name>): Likewise.
35625         * config/i386/subst.md (mask_mode512bit_condition,
35626         sd_mask_mode512bit_condition): Likewise.
35628 2014-01-02  Xinliang David Li  <davidxl@google.com>
35630         PR tree-optimization/59303
35631         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35632         (dump_predicates): Better output format.
35633         (pred_equal_p): New function.
35634         (is_neq_relop_p): Ditto.
35635         (is_neq_zero_form_p): Ditto.
35636         (pred_expr_equal_p): Ditto.
35637         (pred_neg_p): Ditto.
35638         (simplify_pred): Ditto.
35639         (simplify_preds_2): Ditto.
35640         (simplify_preds_3): Ditto.
35641         (simplify_preds_4): Ditto.
35642         (simplify_preds): Ditto.
35643         (push_pred): Ditto.
35644         (push_to_worklist): Ditto.
35645         (get_pred_info_from_cmp): Ditto.
35646         (is_degenerated_phi): Ditto.
35647         (normalize_one_pred_1): Ditto.
35648         (normalize_one_pred): Ditto.
35649         (normalize_one_pred_chain): Ditto.
35650         (normalize_preds): Ditto.
35651         (normalize_cond_1): Remove function.
35652         (normalize_cond): Ditto.
35653         (is_gcond_subset_of): Ditto.
35654         (is_subset_of_any): Ditto.
35655         (is_or_set_subset_of): Ditto.
35656         (is_and_set_subset_of): Ditto.
35657         (is_norm_cond_subset_of): Ditto.
35658         (pred_chain_length_cmp): Ditto.
35659         (convert_control_dep_chain_into_preds): Type change.
35660         (find_predicates): Ditto.
35661         (find_def_preds): Ditto.
35662         (destroy_predicates_vecs): Ditto.
35663         (find_matching_predicates_in_rest_chains): Ditto.
35664         (use_pred_not_overlap_with_undef_path_pred): Ditto.
35665         (is_pred_expr_subset): Ditto.
35666         (is_pred_chain_subset_of): Ditto.
35667         (is_included_in): Ditto.
35668         (is_superset_of): Ditto.
35670 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35672         Update copyright years.
35674 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35676         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35677         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35678         config/arc/arc.md, config/arc/arc.opt,
35679         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35680         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35681         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35682         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35683         config/linux-protos.h, config/linux.c, config/winnt-c.c,
35684         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35685         vtable-verify.c, vtable-verify.h: Use the standard form for the
35686         copyright notice.
35688 2014-01-02  Tobias Burnus  <burnus@net-b.de>
35690         * gcc.c (process_command): Update copyright notice dates.
35691         * gcov-dump.c: Ditto.
35692         * gcov.c: Ditto.
35693         * doc/cpp.texi: Bump @copying's copyright year.
35694         * doc/cppinternals.texi: Ditto.
35695         * doc/gcc.texi: Ditto.
35696         * doc/gccint.texi: Ditto.
35697         * doc/gcov.texi: Ditto.
35698         * doc/install.texi: Ditto.
35699         * doc/invoke.texi: Ditto.
35701 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35703         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
35705 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
35707         * config/i386/sse.md (*mov<mode>_internal): Guard
35708         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
35710         PR rtl-optimization/59647
35711         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
35712         new_rtx into UNSIGNED_FLOAT rtxes.
35714 Copyright (C) 2014 Free Software Foundation, Inc.
35716 Copying and distribution of this file, with or without modification,
35717 are permitted in any medium without royalty provided the copyright
35718 notice and this notice are preserved.