Disable max_issue when scheduling for register pressure
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
2
3         * haifa-sched.c (sched_init): Disable max_issue when scheduling for
4         register pressure.
5
6 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
7
8         * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
9         (cached_issue_rate): Remove.  Use dfa_lookahead and issue_rate instead.
10         (max_issue, choose_ready, sched_init): Update.
11
12 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
13
14         * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
15         * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
16         (rfs_result): Set INSN_LAST_RFS_WIN.  Update signature.
17         (rank_for_schedule): Update calls to rfs_result to pass new parameters.
18         (print_rank_for_schedule_stats): Print out elements of ready list that
19         ended up on their respective places due to each of the sorting
20         heuristics.
21         (ready_sort): Update.
22         (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
23         (schedule_block): Update.
24
25 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
26
27         * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
28         arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
29         (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
30         (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
31         (model_start_schedule): Update.
32         (sched_pressure_start_bb): New static function.  Calculate
33         sched_class_regs_num.
34         (schedule_block): Use it.
35         (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
36
37 2014-10-24  Richard Biener  <rguenther@suse.de>
38
39         * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
40         host library and make sure to pull in the required libintl
41         and libiconv dependencies.
42
43 2014-10-24  Richard Biener  <rguenther@suse.de>
44
45         * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
46
47 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
48
49         PR bootstrap/63632
50         * collect2.c (main): Filter out -fno-lto.
51
52 2014-10-24  Martin Liska  <mliska@suse.cz>
53
54         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
55         division by zero in dumps.
56         (sem_item_optimizer::merge_classes): Ditto.
57
58 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
59
60         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
61
62 2014-10-23  Ian Lance Taylor  <iant@google.com>
63
64         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
65
66 2014-10-23  Ian Lance Taylor  <iant@google.com>
67
68         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't define.
69
70 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
71
72         PR debug/63623
73         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
74         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
75         instead of only handling autoinc in dest if it is a MEM.
76         (vt_stack_adjustments): Fix up formatting.
77
78 2014-10-23  DJ Delorie  <dj@redhat.com>
79
80         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
81         independend of -mlarge.
82         * config/msp430/constraints.md (Ys): Update comment.
83
84 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
85
86         PR target/63534
87         PR target/63618
88         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
89         while it is pseudo.
90         * dse.c (deletable_insn_p): Likewise.
91
92 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
93
94         * config/avr/avr.c: Fix GNU coding rules and typos.
95         * config/avr/avr.h: Dito.
96         * config/avr/avr-c.c: Dito.
97         * config/avr/avr.md: Dito.
98
99 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
100
101         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
102         New.
103         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
104         iterator.
105         (define_expand "abs<mode>2"): Ditto.
106
107 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
108
109         * tree-core.h (tree_var_decl): Extend `function_code' field
110         by one bit, move `regdecl_flag' field to ...
111         (tree_decl_with_vis): Here.
112         * tree.h (DECL_STATIC_CHAIN): Update struct name.
113
114 2014-10-23  Richard Biener  <rguenther@suse.de>
115
116         * Makefile.in (BUILD_CPPLIB): Add.
117         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
118         Drop LIBIBERTY.
119
120 2014-10-23  Richard Biener  <rguenther@suse.de>
121
122         * fold-const.c (fold_binary_loc): Preserve side-effects of
123         X - X when simplifying to 0.
124         * stor-layout.c (finish_bitfield_representative): Strip
125         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
126
127 2014-10-22  Richard Biener  <rguenther@suse.de>
128             Tobias Burnus <burnus@net-b.de>
129
130         PR lto/63603
131         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
132
133 2014-10-22  Dehao Chen  <dehao@google.com>
134
135         * auto-profile.c: Change order of header files.
136
137 2014-10-22  Guozhi Wei  <carrot@google.com>
138
139         PR tree-optimization/63530
140         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
141         pointer alignment according to DR_MISALIGNMENT.
142
143 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
144
145         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
146
147 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
148
149         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
150         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
151         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
152         * dominance.h: New.  Add prototypes for dominance.c.
153         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
154         * cfghooks.h: (struct profile_record) Relocate here.
155         Relocate 2 prototypes from basic-block.h.
156         * basic-block.h: Move prototypes and struct to new header files.
157         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
158         * rtl.h: Move a few prototypes to new header files.
159         * cfgcleanup.c (merge_memattrs): Make static.
160         * genopinit.c (main): Add predict.h to list of includes.
161         * predict.h: Update prototype list to match predict.c.
162         * predict.c (maybe_hot_count_p): Export.
163         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
164         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
165         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
166         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
167         * profile.h: Adjust prototypes.
168         * ifcvt.h: New.  Relocate struct ce_if_block here.
169         * ifcvt.c: Include ifcvt.h.
170         * config/frv/frv.c: Include ifcvt.h.
171         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
172
173 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
174
175         * lra.c (lra): Remove call to recog_init.
176         * config/i386/i386.md (preferred_for_speed): New attribute
177         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
178         "enabled".  Remove check for sched1.
179
180 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
181
182         * recog.h (recog_data_d): Remove enabled_alternatives.
183         * recog.c (extract_insn): Don't set it.
184         * reload.c (find_reloads): Call get_enabled_alternatives.
185
186 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
187
188         * recog.h (constrain_operands): Add an alternative_mask parameter.
189         (constrain_operands_cached): Likewise.
190         (get_preferred_alternatives): Declare new form.
191         * recog.c (get_preferred_alternatives): New bb-taking instance.
192         (constrain_operands): Take the set of available alternatives as
193         a parameter.
194         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
195         (extract_constrain_insn_cached): Update calls to constrain_operands.
196         * caller-save.c (reg_save_code): Likewise.
197         * ira.c (setup_prohibited_mode_move_regs): Likewise.
198         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
199         * ree.c (combine_reaching_defs): Likewise.
200         * reload.c (can_reload_into): Likewise.
201         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
202         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
203         (emit_insn_if_valid_for_reload): Likewise.
204         * reorg.c (fill_slots_from_thread): Likewise.
205         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
206         * config/pa/pa.c (pa_can_combine_p): Likewise.
207         * config/rl78/rl78.c (insn_ok_now): Likewise.
208         * config/sh/sh.md (define_peephole2): Likewise.
209         * final.c (final_scan_insn): Update call to constrain_operands_cached.
210
211 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
212
213         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
214         attributes.
215         * genattr.c (main): Handle "preferred_for_size" and
216         "preferred_for_speed" in the same way as "enabled".
217         * recog.h (bool_attr): New enum.
218         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
219         (get_preferred_alternatives, check_bool_attrs): Declare.
220         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
221         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
222         New functions.
223         (get_enabled_alternatives): Use get_bool_attr_mask.
224         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
225         instead of recog_data.enabled_alternatives.
226         * ira.c (ira_setup_alts): Likewise.
227         * postreload.c (reload_cse_simplify_operands): Likewise.
228         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
229         * ira-lives.c (preferred_alternatives): New variable.
230         (process_bb_node_lives): Set it.
231         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
232         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
233         of recog_data.enabled_alternatives.
234         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
235         to preferred_alternatives.
236         * lra-constraints.c (process_alt_operands): Update accordingly.
237         * lra.c (lra_set_insn_recog_data): Likewise.
238         (lra_update_insn_recog_data): Assert check_bool_attrs.
239
240 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
241
242         * recog.h (extract_constrain_insn): Declare.
243         * recog.c (extract_constrain_insn): New function.
244         * lra.c (check_rtl): Use it.
245         * postreload.c (reload_cse_simplify_operands): Likewise.
246         * reg-stack.c (check_asm_stack_operands): Likewise.
247         (subst_asm_stack_regs): Likewise.
248         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
249         * regrename.c (build_def_use): Likewise.
250         * sel-sched.c (get_reg_class): Likewise.
251         * config/arm/arm.c (note_invalid_constants): Likewise.
252         * config/s390/predicates.md (execute_operation): Likewise.
253
254 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
255             Yury Gribov  <y.gribov@samsung.com>
256
257         * common.opt (flag_sanitize_recover): New variable.
258         (fsanitize-recover): Remove Var/Init, deprecate.
259         (fsanitize-recover=): New option.
260         * doc/invoke.texi (fsanitize-recover): Update docs.
261         * opts.c (finish_options): Use opts->x_flag_sanitize
262         instead of flag_sanitize.  Prohibit -fsanitize-recover
263         for anything besides UBSan.  Formatting.
264         (common_handle_option): Handle OPT_fsanitize_recover_
265         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
266         instead of flag_sanitize.
267         * asan.c (pass_sanopt::execute): Fix up formatting.
268         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
269         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
270         instrument_bool_enum_load, ubsan_instrument_float_cast,
271         instrument_nonnull_arg, instrument_nonnull_return): Check
272         bits in flag_sanitize_recover bitmask instead of
273         flag_sanitize_recover as bool flag.
274
275 2014-10-22  Jiong Wang <jiong.wang@arm.com>
276
277         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
278
279 2014-10-22  Renlin Li <renlin.li@arm.com>
280
281         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
282         __ARM_FEATURE_IDIV__.
283
284 2014-10-22  Richard Biener  <rguenther@suse.de>
285
286         * Makefile.in (s-match): Adjust dependencies to only catch
287         match.pd.
288
289 2014-10-22  Richard Biener  <rguenther@suse.de>
290         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
291
292         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
293         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
294         (gimple-match.c): Generate by triggering s-match.
295         (generic-match.c): Likewise.
296         (s-match): Rule to build gimple-match.c and generic-match.c
297         by running the genmatch generator program.
298         (build/hash-table.o): Dependencies to build hash-table.c for the host.
299         (build/genmatch.o): Dependencies to build genmatch.
300         (genprog): Add match.
301         (build/genmatch): Likewise.
302         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
303         * generic-match-head.c: New file.
304         * gimple-match-head.c: Likewise.
305         * gimple-match.h: Likewise.
306         * genmatch.c: Likewise.
307         * match.pd: Likewise.
308         * builtins.h (fold_builtin_n): Export.
309         * builtins.c (fold_builtin_n): Likewise.
310         * gimple-fold.h (gimple_build): Declare various overloads.
311         (gimple_simplify): Likewise.
312         (gimple_convert): Re-implement in terms of gimple_build.
313         * gimple-fold.c (gimple_convert): Remove.
314         (gimple_build): New functions.
315         * doc/match-and-simplify.texi: New file.
316         * doc/gccint.texi: Add menu item Match and Simplify and include
317         match-and-simplify.texi.
318
319 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
320
321         PR target/63594
322         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
323         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
324         even for just TARGET_AVX2, not only for
325         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
326         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
327         otherwise build it using concatenation of 256-bit
328         broadcast.
329         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
330         avx512 broadcast patterns.
331         (vec_dup<mode>): Likewise.  For avx2 use
332         v<sseintprefix>broadcast<bcstscalarsuff> instead of
333         vbroadcast<ssescalarmodesuffix>.
334         (AVX2_VEC_DUP_MODE): New mode iterator.
335         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
336         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
337
338         PR target/63542
339         * config/i386/i386.c (ix86_pic_register_p): Also return
340         true if x is a hard register with ORIGINAL_REGNO equal to
341         pic_offset_table_rtx pseudo REGNO.
342         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
343         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
344
345 2014-10-22  Alan Modra  <amodra@gmail.com>
346
347         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
348         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
349         (gcc_obstack_init): Use obstack_specify_allocation in place of
350         _obstack_begin.
351         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
352         (regexp_representation): Likewise.
353         * godump.c (go_output_type): Likewise.
354
355 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
356
357         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
358         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
359         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
360
361 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
362
363         * doc/invoke.texi (pedantic-errors): Explain better.
364
365 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
366             Vidya Praveen <vidya.praveen@atmel.com>
367             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
368             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
369             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
370
371         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
372         __MEMX for avrtiny.
373         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
374         (avr_nonconst_pointer_addrspace): Likewise.
375         * config/avr/avr.h (AVR_HAVE_LPM): Define.
376
377         Added AVRTINY architecture to avr target.
378         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
379         (base_arch_s): member added for AVRTINY architecture.
380         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
381         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
382         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
383         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
384         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
385         in callee saved register list.
386         (avr_option_override): CCP address updated for AVRTINY.
387         (avr_init_expanders): tmp and zero rtx initialized as per arch.
388         Reset avr_have_dimode if AVRTINY.
389         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
390         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
391         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
392         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
393         (expand_epilogue): Likewise.
394         (avr_print_operand): Print CCP address in case of AVRTINY also.
395         <TBD>bad address
396         (function_arg_regno_p): Check different register list for arguments
397         if AVRTINY.
398         (init_cumulative_args): Check for AVRTINY to update number of argument
399         registers.
400         (tiny_valid_direct_memory_access_range): New function. Return false if
401         direct memory access range is not in accepted range for AVRTINY.
402         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
403         indirect load (with displacement) for AVRTINY.
404         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
405         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
406         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
407         indirect load (no displacement) for AVRTINY.
408         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
409         indirect load (with displacement) for AVRTINY.
410         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
411         indirect load for pre-decrement address.
412         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
413         functions. Update instruction length for AVRTINY.
414         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
415         SImode.
416         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
417         (out_movsi_r_mr): Likewise, for SImode.
418         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
419         indirect store (no displacement) for AVRTINY.
420         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
421         indirect store (with displacement) for AVRTINY.
422         (out_movsi_mr_r): Emit out insn for IO address store. Update store
423         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
424         store functions.
425         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
426         indirect load (no displacement) for PSImode in AVRTINY.
427         (avr_out_load_psi_reg_disp_tiny): New function to handle register
428         indirect load (with displacement) for PSImode in AVRTINY.
429         (avr_out_load_psi): Call PSImode register indirect load functions for
430         AVRTINY. Update instruction length for AVRTINY.
431         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
432         indirect store (no displacement) for PSImode in AVRTINY.
433         (avr_out_store_psi_reg_disp_tiny): New function to handle register
434         indirect store (with displacement) for PSImode in AVRTINY.
435         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
436         register indirect store functions for AVRTINY.
437         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
438         register indirect store (with displacement) for AVRTINY.
439         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
440         register indirect store function for QImode in AVRTINY.
441         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
442         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
443         indirect store (no displacement) for HImode in AVRTINY.
444         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
445         indirect store (with displacement) for HImode in AVRTINY.
446         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
447         indirect store for post-increment address in HImode.
448         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
449         register indirect store function for HImode in AVRTINY.
450         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
451         in case of AVRTINY.
452         (order_regs_for_local_alloc): Updated register allocation order for
453         AVRTINY.
454         (avr_conditional_register_usage): New function. It is a target hook
455         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
456         used registers list and register allocation order for AVRTINY.
457         (avr_return_in_memory): Update return value size for AVRTINY.
458         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
459         for AVRTINY arch and tiny program memory base address.
460         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
461         (avr_texinfo): Added description for AVRTINY arch.
462         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
463         STATIC_CHAIN_REGNUM for AVRTINY.
464         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
465         * config/avr/avr.md: Added constants for tmp/ zero registers in
466         AVRTINY. Attributes for AVRTINY added.
467         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
468         memory access range.
469         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
470         in AVRTINY memory access range.
471         (*mov<mode>): Likewise for HImode and SImode.
472         (*movsf): Likewise for SFmode.
473         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
474         not have sbiw.
475         * config/avr/avr-protos.h: Added function prototype for
476         tiny_valid_direct_memory_access_range.
477         * config/avr/avr-tables.opt: Regenerate.
478         * gcc/config/avr/t-multilib: Regenerate.
479         * doc/avr-mmcu.texi: Regenerate.
480
481 2014-10-21  Andrew Pinski  <apinski@cavium.com>
482
483         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
484         available option also.
485         * config/aarch64/aarch64-cost-tables.h: New file.
486         * config/aarch64/aarch64-cores.def (thunderx): New core.
487         * config/aarch64/aarch64-tune.md: Regenerate.
488         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
489         of config/arm/aarch-cost-tables.h.
490         (thunderx_regmove_cost): New variable.
491         (thunderx_tunings): New variable.
492
493 2014-10-21  Dehao Chen  <dehao@google.com>
494
495         * auto-profile.c: New file.
496         * auto-profile.h: New file.
497         * basic-block.h (maybe_hot_count_p): New export func.
498         (add_working_set): New export func.
499         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
500         (GCOV_TAG_AFDO_FUNCTION): Likewise.
501         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
502         * opts.c (enable_fdo_optimizations): New func.
503         (common_handle_option): Handle -fauto-profile flag.
504         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
505         (class pass_early_inline): Export early_inliner.
506         (early_inliner): Likewise.
507         (pass_early_inline::execute): Likewise.
508         * ipa-inline.h (early_inliner): Likewise.
509         * predict.c (maybe_hot_count_p): New export func.
510         (counts_to_freqs): AutoFDO logic.
511         (rebuild_frequencies): Likewise.
512         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
513         * profile.c (add_working_set): New func.
514         * Makefile.in (auto-profile.o): New object file.
515         * passes.def (pass_ipa_auto_profile): New pass.
516         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
517         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
518         * toplev.c (compile_file): AutoFDO logic.
519         * doc/invoke.texi (-fauto-profile): New doc.
520         * coverage.c (coverage_init): AutoFDO logic.
521         * common.opt (-fauto-profile): New flag.
522         * timevar.def (TV_IPA_AUTOFDO): New tag.
523         * value-prof.c (gimple_alloc_histogram_value): New export func.
524         (check_ic_target): Likewise.
525         * value-prof.h (gimple_alloc_histogram_value): Likewise.
526         (check_ic_target): Likewise.
527
528 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
529
530         * cgraph.c (cgraph_c_finalize): New function.
531         * cgraph.h (cgraph_c_finalize): New prototype.
532         (cgraphunit_c_finalize): New prototype.
533         * cgraphunit.c (first_analyzed): Move from analyze_functions
534         to file-scope.
535         (first_analyzed_var): Likewise.
536         (analyze_functions): Move static variables into file-scope.
537         (cgraphunit_c_finalize): New function.
538         * diagnostic.c (diagnostic_finish): Free the memory for
539         context->classify_diagnostic and context->printer, running the
540         destructor for the latter.
541         (bt_stop): Use toplev::main.
542         * dwarf2out.c (dwarf2out_finalize): New function.
543         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
544         * gcse.c (gcse_c_finalize): New function.
545         * gcse.h (gcse_c_finalize): New prototype.
546         * ggc-page.c (init_ggc): Make idempotent.
547         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
548         * ipa-cp.c (ipa_cp_c_finalize): New function.
549         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
550         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
551         a field of class pass_ipa_pure_const.
552         (node_duplication_hook_holder): Likewise.
553         (node_removal_hook_holder): Likewise.
554         (register_hooks): Convert to method...
555         (pass_ipa_pure_const::register_hooks): ...here, converting
556         static variable init_p into...
557         (pass_ipa_pure_const::init_p): ...new field.
558         (pure_const_generate_summary): Update invocation of
559         register_hooks to invoke as a method of current_pass.
560         (pure_const_read_summary): Likewise.
561         (propagate): Convert to...
562         (pass_ipa_pure_const::execute): ...method.
563         * ipa-reference.c (ipa_init): Move static bool init_p from here
564         to...
565         (ipa_init_p): New file-scope variable, so that it can be reset
566         when repeatedly invoking the compiler within one process by...
567         (ipa_reference_c_finalize): New function.
568         * ipa-reference.h (ipa_reference_c_finalize): New.
569         * main.c (main): Replace invocation of toplev_main with
570         construction of a toplev instance, and call its "main" method.
571         * params.c (global_init_params): Add an assert that
572         params_finished is false.
573         (params_c_finalize): New.
574         * params.h (params_c_finalize): New.
575         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
576         invoking generate_summary, for the benefit of pass_ipa_pure_const.
577         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
578         before calling write_summary hook.
579         (ipa_write_optimization_summaries_1): Likewise when calling
580         write_optimization_summary hook.
581         (ipa_read_summaries_1): Likewise for read_summary hook.
582         (ipa_read_optimization_summaries_1): Likewise for
583         read_optimization_summary hook.
584         (execute_ipa_stmt_fixups): Likewise.
585         * stringpool.c (init_stringpool): Clean up if we're called more
586         than once.
587         * timevar.c (timevar_init): Ignore repeated calls.
588         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
589         "ipa-prop.h".
590         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
591         (initialize_rtl): Move static local "initialized_once"
592         into file scope, and rename to...
593         (rtl_initialized): New variable.
594         (do_compile): Move timevar initialization from here to
595         toplev::start_timevars.
596         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
597         toplev::finalize): New functions.
598         (toplev_main): Rename to...
599         (toplev::main): ...this.
600         * toplev.h (class toplev): New class.
601
602 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
603
604         * loop-doloop.c: Include loop-unroll.h.
605
606 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
607
608         * cfg.h: New.  Header file for cfg.c.
609         * cfganal.h: New.  Header file for cfganal.c.
610         * lcm.h: New.  Header file for lcm.c.
611         * loop-unroll.h: New.  Header file for loop-unroll.h.
612         * cfgloop.h: (unroll_loops): Remove prototype.
613         * basic-block.h: Move prototypes and structs to new header files.
614         Include cfg.h, cfganal.h, and lcm.h.
615         * loop-init.c: Include loop-unroll.h.
616         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
617         * modulo-sched.c: Include loop-unroll.h.
618
619 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
620
621         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
622         MARKER_BYTE_UNKNOWN markers when handling casts.
623
624 2014-10-21  Richard Biener  <rguenther@suse.de>
625
626         * tree-ssa-phiopt.c (value_replacement): Properly verify we
627         are the non-singleton PHI.
628
629 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
630
631         PR tree-optimization/63563
632         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
633         if either dra or drb stmts are not normal loads/stores.
634
635 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
636
637         * config/i386/i386.c (expand_vec_perm_1): Fix
638         expand_vec_perm_palignr case.
639         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
640         VI1_AVX512.
641
642 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
643
644         * cfgloopanal.c (seq_cost): Delete.
645         * rtl.h (seq_cost): New prototype.
646         * rtlanal.c (seq_cost): New function.
647         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
648
649 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
650
651         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
652         * basic-block.h: Remove prototypes for cfgrtl.c.
653         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
654         prototypes to cfgrtl.h.
655         * profile.h (profile_info): Add extern export declaration.
656         * rtl.h: Remove prototypes for cfgrtl.h.
657         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
658         * ipa-inline.c: Include profile.h.
659         * loop-unroll.c: Ditto.
660         * modulo-sched.c: Ditto.
661         * postreload-gcse.c: Ditto.
662         * predict.c: Ditto.
663         * sched-ebb.c: Ditto.
664         * sched-rgn.c: Ditto.
665         * tracer.c: Ditto.
666         * tree-ssa-loop-ivcanon.c: Ditto.
667
668 2014-10-20  Richard Biener  <rguenther@suse.de>
669
670         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
671         operands to get a def operand kind match.  Signal mismatches
672         to the parent so we can try swapping its operands.
673         (vect_build_slp_tree): Try swapping operands if they have
674         a mismatched operand kind.
675
676 2014-10-20  Alan Modra  <amodra@gmail.com>
677
678         PR debug/60655
679         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
680         Increase "ops" array size.  Correct array size tests.  Init
681         n_constants in loop.  Break out of innermost loop when finding
682         a trivial CONST expression.
683
684 2014-10-20  Martin Liska  <mliska@suse.cz>
685
686         PR ipa/63583
687         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
688         Gimple tempate string is compared.
689
690 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
691
692         * varasm.c (const_alias_set): Remove.
693         (init_varasm_once): Remove initialization of const_alias_set.
694         (build_constant_desc): Do not set alias set to const_alias_set.
695
696 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
697
698         * configure: Regenerate.
699         * configure.ac: Move the test for section attribute specifier "e" in GAS
700         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
701         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
702         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
703         ifdef HAVE_GAS_SECTION_EXCLUDE.
704
705 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
706
707         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
708         match_operand expression.
709
710 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
711             David Edelsohn  <dje.gcc@gmail.com>
712
713         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
714         function.
715         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
716
717 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
718
719         * doc/invoke.texi (Options to Request or Suppress Warnings):
720         Explain options precedence.
721         (Wtrampolines): Do not indent paragraph.
722
723 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
724
725         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
726         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
727         (pa_jump_in_call_delay): Likewise.
728         * config/pa/pa.c (pa_option_override): Remove jump in call delay
729         override.
730         (pa_output_millicode_call): Remove support for jump in call delay.
731         (pa_output_call): Likewise.
732         (pa_jump_in_call_delay): Delete.
733         (pa_following_call): Likewise.
734         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
735         (uncond_branch): Remove following call check from attribute length.
736
737 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
738
739         PR target/53513
740         * config/sh/sh-modes.def (PSI): Remove.
741         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
742         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
743         (sh_reorg): Remove commented out FPSCR code.
744         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
745         insn instead of move insn.
746         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
747         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
748         handling.
749         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
750         (sh1_builtin_p): Uncomment.
751         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
752         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
753         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
754         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
755         (general_movsrc_operand, general_movdst_operand): Disallow
756         fpscr_operand.
757         * config/sh/sh.md (FPSCR_FR): New constant.
758         (push_fpscr): Emit sts_fpscr insn.
759         (pop_fpscr): Emit lds_fpscr_insn.
760         (movsi_ie): Disallow FPSCR operands.
761         (fpu_switch, unnamed related split, extend_psi_si,
762         truncate_si_psi): Remove insns.
763         (lds_fpscr, sts_fpscr): New insns.
764         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
765
766 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
767
768         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
769         (clone_inlined_nodes): Do not overwrite the clone if above predicate
770         returns true.
771
772 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
773
774         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
775         (expand_vec_perm_d): Ditto.
776         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
777         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
778         V4DFmode.
779         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
780         (ix86_expand_sse_unpack): Handle V64QImode.
781         (expand_vec_perm_blend): Update conditions for TARGET, handle
782         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
783         (expand_vec_perm_pshufb): Handle V64QImode.
784         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
785         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
786         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
787         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
788         (ix86_expand_vecop_qihi): Handle V64QImode.
789         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
790         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
791         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
792         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
793         (mul<mode>3): Use VI1_AVX512.
794         (<sse2_avx2>_packsswb): Ditto.
795         (<sse2_avx2>_packuswb): Ditto.
796         (<ssse3_avx2>_pshufb<mode>3): Ditto.
797         (<shift_insn><mode>3): Ditto.
798
799 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
800
801         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
802         conditions to fix bootstrap.
803
804 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
805
806         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
807
808 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
809             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
810             Anna Tikhonova  <anna.tikhonova@intel.com>
811             Ilya Tocar  <ilya.tocar@intel.com>
812             Andrey Turetskiy  <andrey.turetskiy@intel.com>
813             Ilya Verbin  <ilya.verbin@intel.com>
814             Kirill Yukhin  <kirill.yukhin@intel.com>
815             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
816
817         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
818         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
819         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
820         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
821         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
822         (define_expand "vec_init<mode>"): Use VF48_I1248.
823
824 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
825             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
826             Anna Tikhonova  <anna.tikhonova@intel.com>
827             Ilya Tocar  <ilya.tocar@intel.com>
828             Andrey Turetskiy  <andrey.turetskiy@intel.com>
829             Ilya Verbin  <ilya.verbin@intel.com>
830             Kirill Yukhin  <kirill.yukhin@intel.com>
831             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
832
833         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
834         expand_sse2_mulvxdi3.
835
836 2014-10-17  Richard Biener  <rguenther@suse.de>
837
838         * fold-const.c (fold_comparison): Remove redundant constant
839         folding and operand swapping.
840         (fold_binary_loc): Do comparison operand swapping here.
841         (fold_ternary_loc): Canonicalize operand order for
842         commutative ternary operations.
843         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
844         and FMA_EXPR.
845
846 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
847
848         PR tree-optimization/63464
849         * gimple.h (gimple_seq_discard): New prototype.
850         * gimple.c: Include stringpool.h and tree-ssanames.h.
851         (gimple_seq_discard): New function.
852         * optabs.h (lshift_cheap_p): New prototype.
853         * optabs.c (lshift_cheap_p): New function, moved from...
854         * tree-switch-conversion.c (lshift_cheap_p): ... here.
855         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
856         (reassoc_branch_fixups): New variable.
857         (update_range_test): Add otherrangep and seq arguments.
858         Unshare exp.  If otherrange is NULL, use for other ranges
859         array of pointers pointed by otherrangep instead.
860         Emit seq before gimplified statements for tem.
861         (optimize_range_tests_diff): Adjust update_range_test
862         caller.
863         (optimize_range_tests_xor): Likewise.  Fix up comment.
864         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
865         functions.
866         (optimize_range_tests): Adjust update_range_test caller.
867         Call optimize_range_tests_to_bit_test.
868         (branch_fixup): New function.
869         (execute_reassoc): Call branch_fixup.
870
871         PR tree-optimization/63302
872         * tree-ssa-reassoc.c (optimize_range_tests_xor,
873         optimize_range_tests_diff): Use !integer_pow2p () instead of
874         tree_log2 () < 0.
875
876 2014-10-17  Martin Liska  <mliska@suse.cz>
877
878         * ipa-icf.c (sem_function::merge): Local flags are set to false
879         to enforce equal calling convention to be used.
880         * opts.c (common_handle_option): Indentation fix.
881
882 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
883
884         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
885
886 2014-10-17  Tom de Vries  <tom@codesourcery.com>
887
888         PR rtl-optimization/61605
889         * regcprop.c (copyprop_hardreg_forward_1): Use
890         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
891
892 2014-10-17  Tom de Vries  <tom@codesourcery.com>
893
894         PR rtl-optimization/61605
895         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
896         notice stores for noops.  Don't regard noops as copies.
897
898 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
899
900         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
901         register in a special way.
902         (__cpuid_count): Ditto.
903         * config/i386/driver-i386.h: Protect with
904         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
905         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
906         is required to compile the function.
907
908 2014-10-16  DJ Delorie  <dj@redhat.com>
909
910         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
911         integers.
912
913         * config/rs6000/rs6000-c.c (rid_int128): New.
914         (rs6000_macro_to_expand): Use instead of RID_INT128.
915
916 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
917
918         * function.h: Flatten file.  Remove includes, adjust prototypes to
919         reflect only what is in function.h.
920         (enum direction, struct args_size, struct locate_and_pad_arg_data,
921         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
922         from expr.h.
923         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
924         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
925         prototypes to predict.h.
926         (init_varasm_status): Move prototype to varasm.h.
927         * expr.h: Adjust include files.
928         (enum direction, struct args_size, struct locate_and_pad_arg_data,
929         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
930         to function.h.
931         (locate_and_pad_parm): Move prototype to function.h.
932         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
933         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
934         assign_temp, reposition_prologue_and_epilogue_notes,
935         prologue_epilogue_contains, sibcall_epilogue_contains,
936         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
937         set_return_jump_label): Move prototypes to function.h.
938         * predict.h (optimize_function_for_size_p,
939         optimize_function_for_speed_p): Relocate prototypes from function.h.
940         * shrink-wrap.h (emit_return_into_block, active_insn_between,
941         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
942         function.h.
943         * varasm.h (init_varasm_status): Relocate prototype from function.h.
944         * genattrtab.c (write_header): Add predict.h to include list.
945         * genconditions.c (write_header): Add predict.h to include list.
946         * genemit.c (main): Adjust header file includes.
947         * gengtype.c (ifiles): Add flattened function.h header files.
948         * genoutput.c (output_prologue): Add predict.h to include list.
949         * genpreds.c (write_insn_preds_c): Adjust header file includes.
950         * genrecog.c (write_header): Add flattened function.h header files.
951         * alias.c: Adjust include files.
952         * auto-inc-dec.c: Likewise.
953         * basic-block.h: Likewise.
954         * bb-reorder.c: Likewise.
955         * bt-load.c: Likewise.
956         * builtins.c: Likewise.
957         * caller-save.c: Likewise.
958         * calls.c: Likewise.
959         * cfgbuild.c: Likewise.
960         * cfgcleanup.c: Likewise.
961         * cfgexpand.c: Likewise.
962         * cfgloop.c: Likewise.
963         * cfgloop.h: Likewise.
964         * cfgrtl.c: Likewise.
965         * cgraph.h: Likewise.
966         * cgraphclones.c: Likewise.
967         * cgraphunit.c: Likewise.
968         * combine-stack-adj.c: Likewise.
969         * combine.c: Likewise.
970         * coverage.c: Likewise.
971         * cprop.c: Likewise.
972         * cse.c: Likewise.
973         * cselib.c: Likewise.
974         * dbxout.c: Likewise.
975         * ddg.c: Likewise.
976         * df-core.c: Likewise.
977         * df-problems.c: Likewise.
978         * df-scan.c: Likewise.
979         * dojump.c: Likewise.
980         * dwarf2cfi.c: Likewise.
981         * dwarf2out.c: Likewise.
982         * emit-rtl.c: Likewise.
983         * except.c: Likewise.
984         * explow.c: Likewise.
985         * expr.c: Likewise.
986         * final.c: Likewise.
987         * function.c: Likewise.
988         * gcse.c: Likewise.
989         * gimple-fold.c: Likewise.
990         * gimple-low.c: Likewise.
991         * gimple-streamer.h: Likewise.
992         * haifa-sched.c: Likewise.
993         * ifcvt.c: Likewise.
994         * ira.c: Likewise.
995         * jump.c: Likewise.
996         * lcm.c: Likewise.
997         * loop-invariant.c: Likewise.
998         * lra-assigns.c: Likewise.
999         * lra-coalesce.c: Likewise.
1000         * lra-constraints.c: Likewise.
1001         * lra-eliminations.c: Likewise.
1002         * lra-lives.c: Likewise.
1003         * lra-spills.c: Likewise.
1004         * lra.c: Likewise.
1005         * lto-cgraph.c: Likewise.
1006         * lto-section-in.c: Likewise.
1007         * lto-section-out.c: Likewise.
1008         * lto-streamer-in.c: Likewise.
1009         * lto-streamer-out.c: Likewise.
1010         * mode-switching.c: Likewise.
1011         * modulo-sched.c: Likewise.
1012         * omp-low.c: Likewise.
1013         * optabs.c: Likewise.
1014         * passes.c: Likewise.
1015         * postreload-gcse.c: Likewise.
1016         * postreload.c: Likewise.
1017         * predict.c: Likewise.
1018         * profile.c: Likewise.
1019         * recog.c: Likewise.
1020         * ree.c: Likewise.
1021         * reg-stack.c: Likewise.
1022         * regcprop.c: Likewise.
1023         * reginfo.c: Likewise.
1024         * regrename.c: Likewise.
1025         * reload.c: Likewise.
1026         * reload1.c: Likewise.
1027         * reorg.c: Likewise.
1028         * resource.c: Likewise.
1029         * rtlanal.c: Likewise.
1030         * sched-deps.c: Likewise.
1031         * sched-ebb.c: Likewise.
1032         * sched-rgn.c: Likewise.
1033         * sel-sched-dump.c: Likewise.
1034         * sel-sched-ir.c: Likewise.
1035         * sel-sched.c: Likewise.
1036         * shrink-wrap.c: Likewise.
1037         * simplify-rtx.c: Likewise.
1038         * statistics.c: Likewise.
1039         * stmt.c: Likewise.
1040         * stor-layout.c: Likewise.
1041         * store-motion.c: Likewise.
1042         * symtab.c: Likewise.
1043         * targhooks.c: Likewise.
1044         * toplev.c: Likewise.
1045         * trans-mem.c: Likewise.
1046         * tree-cfg.c: Likewise.
1047         * tree-cfgcleanup.c: Likewise.
1048         * tree-dfa.c: Likewise.
1049         * tree-eh.c: Likewise.
1050         * tree-inline.c: Likewise.
1051         * tree-into-ssa.c: Likewise.
1052         * tree-nested.c: Likewise.
1053         * tree-nrv.c: Likewise.
1054         * tree-profile.c: Likewise.
1055         * tree-ssa-alias.c: Likewise.
1056         * tree-ssa-ccp.c: Likewise.
1057         * tree-ssa-copy.c: Likewise.
1058         * tree-ssa-copyrename.c: Likewise.
1059         * tree-ssa-dom.c: Likewise.
1060         * tree-ssa-operands.c: Likewise.
1061         * tree-ssa-propagate.c: Likewise.
1062         * tree-ssa-structalias.c: Likewise.
1063         * tree-ssa-tail-merge.c: Likewise.
1064         * tree-ssa-threadedge.c: Likewise.
1065         * tree-ssa-threadupdate.c: Likewise.
1066         * tree-ssa-uncprop.c: Likewise.
1067         * tree-ssa-uninit.c: Likewise.
1068         * tree-ssa.c: Likewise.
1069         * tree-stdarg.c: Likewise.
1070         * tree-tailcall.c: Likewise.
1071         * tree.c: Likewise.
1072         * tsan.c: Likewise.
1073         * valtrack.c: Likewise.
1074         * varasm.c: Likewise.
1075         * vmsdbgout.c: Likewise.
1076         * web.c: Likewise.
1077         * config/aarch64/aarch64.c: Add flattened includes from function.h.
1078         * config/alpha/alpha.c: Likewise.
1079         * config/arc/arc.c: Likewise.
1080         * config/arm/arm.c: Likewise.
1081         * config/avr/avr-log.c: Likewise.
1082         * config/avr/avr.c: Likewise.
1083         * config/bfin/bfin.c: Likewise.
1084         * config/c6x/c6x.c: Likewise.
1085         * config/cr16/cr16.c: Likewise.
1086         * config/cris/cris.c: Likewise.
1087         * config/darwin.c: Likewise.
1088         * config/epiphany/epiphany.c: Likewise.
1089         * config/epiphany/mode-switch-use.c: Likewise.
1090         * config/epiphany/resolve-sw-modes.c: Likewise.
1091         * config/fr30/fr30.c: Likewise.
1092         * config/frv/frv.c: Likewise.
1093         * config/h8300/h8300.c: Likewise.
1094         * config/i386/i386.c: Likewise.
1095         * config/ia64/ia64.c: Likewise.
1096         * config/iq2000/iq2000.c: Likewise.
1097         * config/lm32/lm32.c: Likewise.
1098         * config/m32c/m32c.c: Likewise.
1099         * config/m32r/m32r.c: Likewise.
1100         * config/m68k/m68k.c: Likewise.
1101         * config/mcore/mcore.c: Likewise.
1102         * config/mep/mep-pragma.c: Likewise.
1103         * config/mep/mep.c: Likewise.
1104         * config/microblaze/microblaze.c: Likewise.
1105         * config/mips/mips.c: Likewise.
1106         * config/mmix/mmix.c: Likewise.
1107         * config/mn10300/mn10300.c: Likewise.
1108         * config/moxie/moxie.c: Likewise.
1109         * config/msp430/msp430.c: Likewise.
1110         * config/nds32/nds32-cost.c: Likewise.
1111         * config/nds32/nds32-fp-as-gp.c: Likewise.
1112         * config/nds32/nds32-intrinsic.c: Likewise.
1113         * config/nds32/nds32-isr.c: Likewise.
1114         * config/nds32/nds32-md-auxiliary.c: Likewise.
1115         * config/nds32/nds32-memory-manipulation.c: Likewise.
1116         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1117         * config/nds32/nds32-predicates.c: Likewise.
1118         * config/nds32/nds32.c: Likewise.
1119         * config/nios2/nios2.c: Likewise.
1120         * config/pa/pa.c: Likewise.
1121         * config/pdp11/pdp11.c: Likewise.
1122         * config/rl78/rl78.c: Likewise.
1123         * config/rs6000/rs6000.c: Likewise.
1124         * config/rx/rx.c: Likewise.
1125         * config/s390/s390.c: Likewise.
1126         * config/score/score.c: Likewise.
1127         * config/sh/sh.c: Likewise.
1128         * config/sparc/sparc.c: Likewise.
1129         * config/spu/spu.c: Likewise.
1130         * config/stormy16/stormy16.c: Likewise.
1131         * config/tilegx/tilegx.c: Likewise.
1132         * config/tilepro/tilepro.c: Likewise.
1133         * config/v850/v850.c: Likewise.
1134         * config/vax/vax.c: Likewise.
1135         * config/xtensa/xtensa.c: Likewise.
1136
1137 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
1138
1139         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1140         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1141
1142 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1143
1144         * config/sh/sh-protos.h (fldi_ok): Remove.
1145         * config/sh/sh.c (fldi_ok): Likewise.
1146         (sh_secondary_reload): Don't use fldi_ok.
1147         * config/sh/constraints.md (G constraint, H constraint): Don't use
1148         fldi_ok.
1149
1150 2014-10-16  Martin Liska  <mliska@suse.cz>
1151
1152         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1153         Cast to unsigned long.
1154         (sem_item_optimizer::dump_cong_classes): Likewise.
1155
1156 2014-10-16  Tom de Vries  <tom@codesourcery.com>
1157
1158         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1159         with SSA_NAME_IN_FREELIST.
1160
1161 2014-10-16  Richard Biener  <rguenther@suse.de>
1162
1163         PR middle-end/63554
1164         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1165         (fold_builtin_strncat_chk): Move ...
1166         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1167         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1168
1169 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1170
1171         PR target/59401
1172         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1173         GBR to 0.
1174
1175 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1176             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1177             Anna Tikhonova  <anna.tikhonova@intel.com>
1178             Ilya Tocar  <ilya.tocar@intel.com>
1179             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1180             Ilya Verbin  <ilya.verbin@intel.com>
1181             Kirill Yukhin  <kirill.yukhin@intel.com>
1182             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1183
1184         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1185         V64QI modes.
1186
1187 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1188             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1189             Anna Tikhonova  <anna.tikhonova@intel.com>
1190             Ilya Tocar  <ilya.tocar@intel.com>
1191             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1192             Ilya Verbin  <ilya.verbin@intel.com>
1193             Kirill Yukhin  <kirill.yukhin@intel.com>
1194             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1195
1196         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1197         V16SI, V32HI, V64QI modes.
1198
1199 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1200
1201         PR target/53513
1202         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1203         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1204
1205         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1206         to match fp insn patterns.
1207         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1208         list.
1209         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1210         expand_df_unop, expand_df_binop): Remove.
1211         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1212         FPSCR_STAT_REG as not call clobbered.
1213         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1214         invoking fpscr_set_from_mem.
1215
1216         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
1217         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
1218         FPSCR_STAT_REG.
1219         (REGISTER_NAMES): Adjust.
1220         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1221         (FIRST_PSEUDO_REGISTER): Increase to 156.
1222         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
1223         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
1224         FPSCR_STAT_REG.
1225         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
1226         FPSCR_MODES_REG and FPSCR_STAT_REG.
1227         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1228
1229         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
1230         FPSCR_SZ): Add new constants.
1231         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
1232
1233         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
1234         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
1235         Use TARGET_FPU_ANY condition.
1236         (fpu_switch peephole2): Remove.
1237         (fpu_switch split): Use simple_mem_operand to capture the mem and
1238         adjust split implementation.
1239         (extend_psi_si, truncate_si_psi): New insns.
1240         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
1241         set of FPSCR_MODES_REG.
1242
1243         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
1244         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
1245         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
1246         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
1247         call_value_compact, call_value_compact_rettramp, call,
1248         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
1249         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
1250         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1251         sibcall_value_compact, sibcall_value, call_value_pop_compact,
1252         call_value_pop_compact_rettramp, various unnamed splits):
1253         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
1254         function uses.
1255
1256         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1257         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1258         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1259         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1260         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1261
1262         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1263         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1264         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1265         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1266         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1267         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1268         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
1269
1270 2014-10-16  Martin Liska  <mliska@suse.cz>
1271             Jan Hubicka  <hubicka@ucw.cz>
1272
1273         * Makefile.in: New object files included.
1274         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1275         is printed.
1276         (verify_edge_corresponds_to_fndecl): More sensitive verification
1277         of nodes that are merged by IPA ICF.
1278         * cgraph.h (cgraph_node::num_references): New function.
1279         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1280         * common.opt: New options ipa-icf, ipa-icf-functions and
1281         ipa-icf-variables introduced.
1282         * doc/invoke.texi: Documentation of new options introduced.
1283         * ipa-icf-gimple.c: New file.
1284         * ipa-icf-gimple.h: New file.
1285         * ipa-icf.c: New file.
1286         * ipa-icf.h: New file.
1287         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1288         (input_overwrite_node): Likewise.
1289         * lto-section-in.c: New icf section added.
1290         * lto-streamer.h (enum lto_section_type): Likewise.
1291         * opts.c (common_handle_option): New option added.
1292         * passes.def: New pass included.
1293         * timevar.def: Time variable for IPA ICF added.
1294         * tree-pass.h: New IPA ICF pass entry point added.
1295
1296 2014-10-16  Richard Biener  <rguenther@suse.de>
1297
1298         PR tree-optimization/63168
1299         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1300         latches if after merging they are no longer simple.
1301         * cfghooks.c (merge_blocks): Handle merging a latch block
1302         into another block.
1303
1304 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1305             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1306             Anna Tikhonova  <anna.tikhonova@intel.com>
1307             Ilya Tocar  <ilya.tocar@intel.com>
1308             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1309             Ilya Verbin  <ilya.verbin@intel.com>
1310             Kirill Yukhin  <kirill.yukhin@intel.com>
1311             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1312
1313         * config/i386/sse.md
1314         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1315         support AVX-512VL instructions.
1316
1317 2014-10-16  DJ Delorie  <dj@redhat.com>
1318
1319         * tree-core.h: Fix comment to not assume pointers are multiples of
1320         bytes.
1321
1322 2014-10-15  Tom Tromey  <tromey@redhat.com>
1323
1324         * timevar.h (class auto_timevar): New class.
1325
1326 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
1327
1328         PR go/59432
1329         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1330         Remove the second alternative.
1331         (regprefix): Remove mode attribute.
1332         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1333         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1334
1335         Revert:
1336         2013-11-05  Ian Lance Taylor  <iant@google.com>
1337
1338         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1339         If possible, add .cfi directives to record change to bx.
1340         * config/i386/i386.c (ix86_emit_cfi): New function.
1341         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1342
1343 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
1344
1345         PR lto/62026
1346         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1347         to duplicate.
1348         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1349         at WPA time.
1350
1351 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
1352
1353         PR rtl-optimization/63448
1354         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
1355         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
1356         (LRA_MAX_INHERITANCE_PASSES): Use it.
1357         (lra_constraint_iter_after_spill): Remove.
1358         (lra_assignment_iter): New.
1359         (lra_assignment_iter_after_spill): New.
1360         * lra-assigns.c (lra_assignment_iter): New.
1361         (lra_assignment_iter_after_spill): New.
1362         (former_reload_pseudo_spill_p): New.
1363         (spill_for): Set up former_reload_pseudo_spill_p.
1364         (setup_live_pseudos_and_spill_after_risky): Ditto.
1365         (assign_by_spills): Ditto.
1366         (lra_assign): Increment lra_assignment_iter.  Print the iteration
1367         number.  Reset former_reload_pseudo_spill_p.  Check
1368         lra_assignment_iter_after_spill.
1369         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
1370         lra_assignment_iter and lra_assignment_iter_after_spill.
1371         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
1372         (lra_constraints): Remove code with
1373         lra_assignment_iter_after_spill.
1374
1375 2014-10-15  Teresa Johnson  <tejohnson@google.com>
1376
1377         PR bootstrap/63432
1378         * tree-ssa-threadupdate.c (recompute_probabilities): Better
1379         overflow checking.
1380
1381 2014-10-15  Renlin Li <renlin.li@arm.com>
1382
1383         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1384         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
1385         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
1386         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
1387
1388 2014-10-15  Richard Biener  <rguenther@suse.de>
1389
1390         * gimple-fold.c (gimple_fold_call): Properly keep virtual
1391         SSA form up-to-date when devirtualizing a call to
1392         __builtin_unreachable and avoid fixing up EH info here.
1393
1394 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1395             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1396             Anna Tikhonova  <anna.tikhonova@intel.com>
1397             Ilya Tocar  <ilya.tocar@intel.com>
1398             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1399             Ilya Verbin  <ilya.verbin@intel.com>
1400             Kirill Yukhin  <kirill.yukhin@intel.com>
1401             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1402
1403         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
1404         to support AVX-512BW.
1405         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
1406         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
1407         (define_insn "*<plusminus_insn><mode>3"): Ditto.
1408         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
1409         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1410         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
1411         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1412         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
1413         (define_insn "*andnot<mode>3"): Ditto.
1414         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
1415         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
1416         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1417         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
1418         (define_insn "*abs<mode>2"): Remove masking support.
1419         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
1420         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
1421         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
1422
1423 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1424             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1425             Anna Tikhonova  <anna.tikhonova@intel.com>
1426             Ilya Tocar  <ilya.tocar@intel.com>
1427             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1428             Ilya Verbin  <ilya.verbin@intel.com>
1429             Kirill Yukhin  <kirill.yukhin@intel.com>
1430             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1431
1432         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
1433         * config/i386/sse.md
1434         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
1435         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
1436         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
1437         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1438         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1439         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1440         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1441
1442 2014-10-15  Renlin Li <renlin.li@arm.com>
1443
1444         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
1445
1446 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
1447
1448         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
1449         MINUS_EXPR in unsigned type to avoid undefined behavior.
1450
1451 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
1452
1453         * stor-layout.c (self_referential_size): Do not promote arguments.
1454
1455 2014-10-15  Marek Polacek  <polacek@redhat.com>
1456
1457         * doc/invoke.texi: Update to reflect that GNU11 is the default
1458         mode for C.
1459         * c-common.h (c_language_kind): Update comment.
1460
1461 2014-10-15  Richard Biener  <rguenther@suse.de>
1462
1463         * hash-table.c: Include bconfig.h if building for the host.
1464         * hash-table.h: Do not include ggc.h on the host but just declare
1465         a few ggc allocation templates.
1466
1467 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
1468             Jeff Law  <law@redhat.com>
1469
1470         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
1471         multiple hard registers, use smaller mode derived from MODE.
1472
1473 2014-10-15  Andreas Schwab  <schwab@suse.de>
1474
1475         * explow.c (convert_memory_address_addr_space_1): Mark in_const
1476         as ATTRIBUTE_UNUSED.
1477
1478 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
1479
1480         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
1481         (decide_unrolling): ... this one.
1482         (peel_loops_completely): Remove.
1483         (decide_peel_simple): Remove.
1484         (decide_peel_once_rolling): Remove.
1485         (decide_peel_completely): Remove.
1486         (peel_loop_simple): Remove.
1487         (peel_loop_completely): Remove.
1488         (unroll_and_peel_loops): Rename to ...
1489         (unroll_loops): ... this one; handle only unrolling.
1490         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
1491         LPT_PEEL_SIMPLE.
1492         (UAP_PEEL): Remove.
1493         (unroll_and_peel_loops): Remove.
1494         (unroll_loops): New.
1495         * passes.def: Replace
1496         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
1497         * loop-init.c (gate_rtl_unroll_and_peel_loops,
1498         rtl_unroll_and_peel_loops): Rename to ...
1499         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
1500         (pass_rtl_unroll_and_peel_loops): Rename to ...
1501         (pass_rtl_unroll_loops): ... this one.
1502         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
1503         (make_pass_rtl_unroll_loops): New.
1504         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
1505         (canonicalize_loop_induction_variables): Update.
1506
1507 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
1508
1509         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
1510         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
1511         !TARGET_HARD_FLOAT_POSTINC.
1512         (*lsip, *ssip): new instructions.
1513
1514 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
1515
1516         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
1517         remove.
1518
1519 2014-10-14  Andrew Pinski  <apinski@cavium.com>
1520
1521         * explow.c (convert_memory_address_addr_space): Rename to ...
1522         (convert_memory_address_addr_space_1): This.  Add in_const argument.
1523         Inside a CONST RTL, permute the conversion and addition of constant
1524         for zero and sign extended pointers.
1525         (convert_memory_address_addr_space): New function.
1526
1527 2014-10-14  Andrew Pinski  <apinski@cavium.com>
1528
1529         Revert:
1530         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1531
1532         PR middle-end/49721
1533         * explow.c (convert_memory_address_addr_space): Also permute the
1534         conversion and addition of constant for zero-extend.
1535
1536 2014-10-14  DJ Delorie  <dj@redhat.com>
1537
1538         * config/msp430/msp430-modes.def (PSI): Add.
1539
1540         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
1541         (msp430_hard_regno_nregs_with_padding): New.
1542         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
1543         (msp430_hard_regno_nregs_has_padding): New.
1544         (msp430_hard_regno_nregs_with_padding): New.
1545         (msp430_unwind_word_mode): Use PSImode instead of SImode.
1546         (msp430_addr_space_legitimate_address_p): New.
1547         (msp430_asm_integer): New.
1548         (msp430_init_dwarf_reg_sizes_extra): New.
1549         (msp430_print_operand): Use X suffix for PSImode even in small model.
1550         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
1551         (PTR_SIZE): ...but 4 bytes for EH.
1552         (SIZE_TYPE): Use __int20.
1553         (PTRDIFF_TYPE): Likewise.
1554         (INCOMING_FRAME_SP_OFFSET): Adjust.
1555         * config/msp430/msp430.md (movqi_topbyte): New.
1556         (movpsi): Use fixed suffixes.
1557         (movsipsi2): Enable for 430X, not large model.
1558         (extendhipsi2): Likewise.
1559         (zero_extendhisi2): Likewise.
1560         (zero_extendhisipsi2): Likewise.
1561         (extend_and_shift1_hipsi2): Likewise.
1562         (extendpsisi2): Likewise.
1563         (*bitbranch<mode>4_z): Fix suffix logic.
1564
1565 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1566
1567         PR ada/62019
1568         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
1569         do not choke on null node.
1570         <VAR_DECL>: Likewise.
1571
1572 2014-10-14  DJ Delorie  <dj@redhat.com>
1573
1574         * machmode.h (int_n_data_t): New.
1575         (int_n_enabled_p): New.
1576         (int_n_data): New.
1577         * tree.c (int_n_enabled_p): New.
1578         (int_n_trees): New.
1579         (make_or_reuse_type): Check for all __intN types, not just
1580         __int128.
1581         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
1582         entries.
1583         * tree.h (int128_integer_type_node): Remove.
1584         (int128_unsigned_type_node): Remove.
1585         (int_n_trees_t): New.
1586         (int_n_enabled_p): New.
1587         (int_n_trees): New.
1588         * toplev.c (standard_type_bitsize): New.
1589         (do_compile): Check which __intN types are enabled for the current
1590         run.
1591         * builtin-types.def (BT_INT128): Remove.
1592         (BT_UINT128): Remove.
1593         * machmode.def: Add macro to create __int128 for all targets.
1594         * stor-layout.c (mode_for_size): Support __intN types.
1595         (smallest_mode_for_size): Likewise.
1596         (initialize_sizetypes): Support __intN types.
1597         * genmodes.c (struct mode_data): Add int_n field.
1598         (blank_mode): Likewise.
1599         (INT_N): New.
1600         (make_int_n): New.
1601         (emit_insn_modes_h): Count __intN entries and define
1602         NUM_INT_N_ENTS.
1603         (emit_mode_int_n): New.
1604         (emit_insn_modes_c): Call it.
1605         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1606         types, not just __int128.
1607         * tree-core.h (integer_type_kind): Remove __int128-specific
1608         entries, reserve spots for __intN entries.
1609
1610         * config/msp430/msp430-modes.def (PSI): Add.
1611
1612 2014-10-14  Kito Cheng  <kito@0xlab.org>
1613
1614         * ira.c: Fix typo in comment.
1615         * ira.h: Ditto.
1616         * ira-build.c: Ditto.
1617         * ira-color.c: Ditto.
1618         * ira-emit.c: Ditto.
1619         * ira-int.h: Ditto.
1620         * ira-lives.c: Ditto.
1621
1622 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
1623
1624         PR rtl-optimization/63475
1625         * alias.c (true_dependence_1): Always use get_addr to extract
1626         true address operands from x_addr and mem_addr.  Use extracted
1627         address operands to check for references with alignment ANDs.
1628         Use extracted address operands with find_base_term and
1629         base_alias_check. For noncanonicalized operands call canon_rtx with
1630         extracted address operand.
1631         (write_dependence_1): Ditto.
1632         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
1633
1634 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
1635
1636         PR target/63534
1637         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1638         __morestack local.
1639
1640 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1641             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1642             Anna Tikhonova  <anna.tikhonova@intel.com>
1643             Ilya Tocar  <ilya.tocar@intel.com>
1644             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1645             Ilya Verbin  <ilya.verbin@intel.com>
1646             Kirill Yukhin  <kirill.yukhin@intel.com>
1647             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1648
1649         * config/i386/i386.c
1650         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1651         (ix86_expand_int_vcond): Ditto.
1652
1653 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1654             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1655             Anna Tikhonova  <anna.tikhonova@intel.com>
1656             Ilya Tocar  <ilya.tocar@intel.com>
1657             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1658             Ilya Verbin  <ilya.verbin@intel.com>
1659             Kirill Yukhin  <kirill.yukhin@intel.com>
1660             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1661
1662         * config/i386/i386.c
1663         (emit_reduc_half): Handle V64QI and V32HI mode.
1664         * config/i386/sse.md
1665         (define_mode_iterator VI_AVX512BW): New.
1666         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1667
1668 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1669             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1670             Anna Tikhonova  <anna.tikhonova@intel.com>
1671             Ilya Tocar  <ilya.tocar@intel.com>
1672             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1673             Ilya Verbin  <ilya.verbin@intel.com>
1674             Kirill Yukhin  <kirill.yukhin@intel.com>
1675             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1676
1677         * config/i386/sse.md
1678         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1679
1680 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1681             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1682             Anna Tikhonova  <anna.tikhonova@intel.com>
1683             Ilya Tocar  <ilya.tocar@intel.com>
1684             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1685             Ilya Verbin  <ilya.verbin@intel.com>
1686             Kirill Yukhin  <kirill.yukhin@intel.com>
1687             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1688
1689         * config/i386/i386.c
1690         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1691         * config/i386/sse.md
1692         (define_mode_iterator VI): Add V64QI and V32HI modes.
1693
1694 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1695             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1696             Anna Tikhonova  <anna.tikhonova@intel.com>
1697             Ilya Tocar  <ilya.tocar@intel.com>
1698             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1699             Ilya Verbin  <ilya.verbin@intel.com>
1700             Kirill Yukhin  <kirill.yukhin@intel.com>
1701             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1702
1703         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
1704
1705 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1706             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1707             Anna Tikhonova  <anna.tikhonova@intel.com>
1708             Ilya Tocar  <ilya.tocar@intel.com>
1709             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1710             Ilya Verbin  <ilya.verbin@intel.com>
1711             Kirill Yukhin  <kirill.yukhin@intel.com>
1712             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1713
1714         * config/i386/sse.md
1715         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1716         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1717
1718 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1719             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1720             Anna Tikhonova  <anna.tikhonova@intel.com>
1721             Ilya Tocar  <ilya.tocar@intel.com>
1722             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1723             Ilya Verbin  <ilya.verbin@intel.com>
1724             Kirill Yukhin  <kirill.yukhin@intel.com>
1725             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1726
1727         * config/i386/sse.md
1728         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1729         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1730
1731 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1732             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1733             Anna Tikhonova  <anna.tikhonova@intel.com>
1734             Ilya Tocar  <ilya.tocar@intel.com>
1735             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1736             Ilya Verbin  <ilya.verbin@intel.com>
1737             Kirill Yukhin  <kirill.yukhin@intel.com>
1738             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1739
1740         * config/i386/sse.md
1741         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1742         (define_mode_iterator VI2_AVX2): Add V32HI mode.
1743         (define_expand "mul<mode>3<mask_name>"): Add masking.
1744         (define_insn "*mul<mode>3<mask_name>"): Ditto.
1745         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
1746         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
1747         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
1748         (define_mode_attr SDOT_PMADD_SUF): Ditto.
1749         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
1750         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
1751         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
1752         (define_insn "avx2_packusdw"): Delete.
1753         (define_insn "sse4_1_packusdw"): Ditto.
1754         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
1755
1756 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1757             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1758             Anna Tikhonova  <anna.tikhonova@intel.com>
1759             Ilya Tocar  <ilya.tocar@intel.com>
1760             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1761             Ilya Verbin  <ilya.verbin@intel.com>
1762             Kirill Yukhin  <kirill.yukhin@intel.com>
1763             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1764
1765         * config/i386/sse.md
1766         (define_insn "vec_dup<mode>"): Update constraints.
1767
1768 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1769             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1770             Anna Tikhonova  <anna.tikhonova@intel.com>
1771             Ilya Tocar  <ilya.tocar@intel.com>
1772             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1773             Ilya Verbin  <ilya.verbin@intel.com>
1774             Kirill Yukhin  <kirill.yukhin@intel.com>
1775             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1776
1777         * config/i386/sse.md
1778         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
1779         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
1780         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
1781
1782 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1783             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1784             Anna Tikhonova  <anna.tikhonova@intel.com>
1785             Ilya Tocar  <ilya.tocar@intel.com>
1786             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1787             Ilya Verbin  <ilya.verbin@intel.com>
1788             Kirill Yukhin  <kirill.yukhin@intel.com>
1789             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1790
1791         * config/i386/sse.md
1792         (define_expand "mul<mode>3<mask_name>"): Add masking.
1793
1794 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1795             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1796             Anna Tikhonova  <anna.tikhonova@intel.com>
1797             Ilya Tocar  <ilya.tocar@intel.com>
1798             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1799             Ilya Verbin  <ilya.verbin@intel.com>
1800             Kirill Yukhin  <kirill.yukhin@intel.com>
1801             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1802
1803         * config/i386/sse.md
1804         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
1805         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
1806
1807 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1808             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1809             Anna Tikhonova  <anna.tikhonova@intel.com>
1810             Ilya Tocar  <ilya.tocar@intel.com>
1811             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1812             Ilya Verbin  <ilya.verbin@intel.com>
1813             Kirill Yukhin  <kirill.yukhin@intel.com>
1814             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1815
1816         * config/i386/sse.md
1817         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
1818         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
1819         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
1820         Ditto.
1821
1822 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1823             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1824             Anna Tikhonova  <anna.tikhonova@intel.com>
1825             Ilya Tocar  <ilya.tocar@intel.com>
1826             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1827             Ilya Verbin  <ilya.verbin@intel.com>
1828             Kirill Yukhin  <kirill.yukhin@intel.com>
1829             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1830
1831         * config/i386/sse.md
1832         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
1833         use VF_128_256 mode iterator and update assembler emit code.
1834         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
1835         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
1836         Add masking, use VF_128_256 mode iterator.
1837         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
1838         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
1839         Add masking, use VF_128_256 mode iterator and update assembler emit
1840         code.
1841         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
1842         (define_mode_attr avx512flogicsuff): Delete.
1843         (define_insn "avx512f_<logic><mode>"): Ditto.
1844         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
1845         MODE_TI.
1846         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1847
1848 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1849             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1850             Anna Tikhonova  <anna.tikhonova@intel.com>
1851             Ilya Tocar  <ilya.tocar@intel.com>
1852             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1853             Ilya Verbin  <ilya.verbin@intel.com>
1854             Kirill Yukhin  <kirill.yukhin@intel.com>
1855             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1856
1857         * config/i386/sse.md
1858         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
1859         (define_expand "vashr<mode>3<mask_name>"): Add masking,
1860         use VI12_128 mode iterator.
1861         (define_expand "ashrv2di3<mask_name>"): New.
1862
1863 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1864             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1865             Anna Tikhonova  <anna.tikhonova@intel.com>
1866             Ilya Tocar  <ilya.tocar@intel.com>
1867             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1868             Ilya Verbin  <ilya.verbin@intel.com>
1869             Kirill Yukhin  <kirill.yukhin@intel.com>
1870             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1871
1872         * config/i386/i386.c
1873         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
1874         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
1875         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
1876         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
1877         CODE_FOR_avx512vl_ucmpv4si3_mask.
1878         * config/i386/sse.md
1879         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
1880         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
1881         (define_insn
1882         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
1883         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
1884         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
1885         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
1886         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
1887         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
1888
1889 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1890             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1891             Anna Tikhonova  <anna.tikhonova@intel.com>
1892             Ilya Tocar  <ilya.tocar@intel.com>
1893             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1894             Ilya Verbin  <ilya.verbin@intel.com>
1895             Kirill Yukhin  <kirill.yukhin@intel.com>
1896             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1897
1898         * config/i386/sse.md
1899         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
1900         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
1901         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
1902         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
1903         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
1904         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
1905         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1906         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1907         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
1908
1909 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1910             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1911             Anna Tikhonova  <anna.tikhonova@intel.com>
1912             Ilya Tocar  <ilya.tocar@intel.com>
1913             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1914             Ilya Verbin  <ilya.verbin@intel.com>
1915             Kirill Yukhin  <kirill.yukhin@intel.com>
1916             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1917
1918         * config/i386/sse.md
1919         (define_insn "avx512f_blendm<mode>"): Delete.
1920         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
1921         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
1922         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
1923         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
1924         (define_insn
1925         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1926         Remove.
1927         (define_insn
1928         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1929         New.
1930         (define_insn
1931         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1932         Ditto.
1933         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
1934         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
1935         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
1936         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
1937         Delete.
1938         (define_insn
1939         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
1940         New.
1941         (define_insn
1942         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
1943         Ditto.
1944         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
1945         Delete.
1946         (define_insn
1947         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
1948         New.
1949         (define_insn
1950         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
1951         Ditto.
1952
1953 2014-10-14  Richard Biener  <rguenther@suse.de>
1954
1955         PR tree-optimization/63512
1956         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
1957         modified.
1958
1959 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
1960
1961         PR target/63260
1962         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
1963         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
1964         of FPSCR.
1965         (negsf2_i): Rename to *negsf2_i.
1966         (abssf2_i): Rename to *abssf2_i.
1967         (negdf2_i): Rename to *negdf2_i.
1968         (absdf2_i): Rename to *absdf2_i.
1969
1970 2014-10-14  Felix Yang  <felix.yang@huawei.com>
1971             Jeff Law  <law@redhat.com>
1972
1973         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
1974         "replace" into boolean bitfields; turn member "loop_depth" into a short
1975         integer; add new member "no_equiv" and "reserved".
1976         (no_equiv): Set no_equiv of struct equivalence if register is marked
1977         as having no known equivalence.
1978         (update_equiv_regs): Check all definitions for a multiple-set
1979         register to make sure that the RHS have the same value.
1980
1981 2014-10-13  Richard Henderson  <rth@redhat.com>
1982
1983         * combine-stack-adj.c (no_unhandled_cfa): New.
1984         (maybe_merge_cfa_adjust): New.
1985         (combine_stack_adjustments_for_block): Use them.
1986
1987 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
1988
1989         * Makefile.in (TAGS): Tag ../include files.
1990
1991 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1992
1993         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
1994         to rs6000_dbx_register_number.
1995         (DWARF_FRAME_REGNUM): Redefine as identity map.
1996         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
1997         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
1998         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
1999         argument to handle .debug_frame and .eh_frame directly.  Always
2000         translate SPE high register numbers.  Add special treatment for CR,
2001         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
2002
2003         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2004         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2005         (RS6000_USE_DWARF_NUMBERING): Define.
2006         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2007         (RS6000_USE_DWARF_NUMBERING): Define.
2008         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2009         (RS6000_USE_DWARF_NUMBERING): Define.
2010         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2011         (RS6000_USE_DWARF_NUMBERING): Define.
2012         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2013         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2014
2015 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2016
2017         * config/i386/i386.c (ix86_address_cost): Lower cost for
2018         when address contains GOT register.
2019
2020 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2021             Vladimir Makarov  <vmakarov@redhat.com>
2022
2023         PR target/8340
2024         PR middle-end/47602
2025         PR rtl-optimization/55458
2026         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2027         (ix86_init_pic_reg): New.
2028         (ix86_select_alt_pic_regnum): Add check on pseudo register.
2029         (ix86_save_reg): Likewise.
2030         (ix86_expand_prologue): Remove PIC register initialization
2031         now performed in ix86_init_pic_reg.
2032         (ix86_output_function_epilogue): Add check on pseudo register.
2033         (set_pic_reg_ever_alive): New.
2034         (legitimize_pic_address): Replace df_set_regs_ever_live with new
2035         set_pic_reg_ever_alive.
2036         (legitimize_tls_address): Likewise.
2037         (ix86_pic_register_p): New check.
2038         (ix86_delegitimize_address): Add check on pseudo register.
2039         (ix86_expand_call): Insert move from pseudo PIC register to ABI
2040         defined REAL_PIC_OFFSET_TABLE_REGNUM.
2041         (TARGET_INIT_PIC_REG): New.
2042         (TARGET_USE_PSEUDO_PIC_REG): New.
2043         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2044         if pic_offset_table_rtx exists.
2045         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2046         Document.
2047         * doc/tm.texi: Regenerate.
2048         * function.c (assign_parms): Generate pseudo register for PIC.
2049         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2050         register.
2051         * ira-color.c (color_pass): Add check on pseudo register.
2052         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2053         register.
2054         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2055         register.
2056         (ira): Add target specific PIC register initialization.
2057         (do_reload): Keep PIC pseudo register.
2058         * lra-assigns.c (spill_for): Add checks on pseudo register.
2059         * lra-constraints.c (contains_symbol_ref_p): New.
2060         (lra_constraints): Enable lra risky transformations when PIC is pseudo
2061         register.
2062         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2063         * target.def (use_pseudo_pic_reg): New.
2064         (init_pic_reg): New.
2065
2066 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2067
2068         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2069         Remove m_SILVERMONT and m_INTEL from the tune.
2070
2071 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2072
2073         PR libfortran/63471
2074         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2075         when _HPUX_SOURCE is defined.
2076
2077 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2078
2079         PR tree-optimization/62127
2080         * tree.c (remap_type_1): When remapping array, remap
2081         also its type.
2082
2083 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
2084
2085         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2086         longer impact parallelization.
2087
2088 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2089
2090         PR bootstrap/63496
2091         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2092
2093 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
2094
2095         * asan.c (instrument_derefs): BIT_FIELD_REF added.
2096
2097 2014-10-13  Richard Biener  <rguenther@suse.de>
2098
2099         PR tree-optimization/63419
2100         * gimple-fold.h (gimple_convert): New function.
2101         * gimple-fold.c (gimple_convert): Likewise.
2102         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2103         to split out required conversions early.
2104
2105 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
2106
2107         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2108         Add the parts of an insn in reverse order, with the pattern at
2109         the top of the queue.  Detect when we're iterating over a SEQUENCE
2110         pattern and in that case just consider patterns of subinstructions.
2111
2112 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
2113
2114         PR target/59401
2115         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2116         of rtx.
2117         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2118         insn walking.
2119         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2120         address.  Use def chains to handle GBR clobbering call insns.
2121
2122 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
2123
2124         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2125         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2126         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2127         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2128         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2129         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2130         * doc/gty.texi (for_user): Document new option.
2131         * gengtype.c (create_user_defined_type): Don't try to get a struct for
2132         char.
2133         (walk_type): Don't error out on for_user option.
2134         (write_func_for_structure): Emit user marking routines if requested by
2135         for_user option.
2136         (write_local_func_for_structure): Likewise.
2137         (main): Mark types with for_user option as used.
2138         * ggc.h (gt_pch_nx): Add overload for unsigned int.
2139         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2140         * hash-table.h (ggc_hasher): New struct.
2141         (hash_table::create_ggc): New function.
2142         (gt_pch_nx): New overload for hash_table.
2143
2144 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
2145
2146         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2147         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2148         * config/sh/sh.c: Likewise.
2149         * config/sh/sh-mem.cc: Likewise.
2150         * config/sh/sh.md: Likewise.
2151         * config/sh/predicates.md: Likewise.
2152         * config/sh/sync.md: Likewise.
2153
2154 2014-10-11  Martin Liska  <mliska@suse.cz>
2155
2156         PR middle-end/63376
2157         * cgraphunit.c (symbol_table::process_new_functions): Missing call
2158         for call_cgraph_insertion_hooks added.
2159
2160 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
2161
2162         PR c/63495
2163         * stor-layout.c (min_align_of_type): Don't decrease alignment
2164         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2165         TYPE_USER_ALIGN is set.
2166
2167 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
2168
2169         PR rtl-optimization/63483
2170         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2171         references when alignment ANDs are involved.
2172         (write_dependence_p): Ditto.
2173         (may_alias_p): Ditto.
2174
2175 2014-10-10  Marek Polacek  <polacek@redhat.com>
2176
2177         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2178         * doc/invoke.texi: Document -fsanitize=object-size.
2179         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2180         or it into SANITIZE_UNDEFINED.
2181         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2182         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2183         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2184         * opts.c (common_handle_option): Handle -fsanitize=object-size.
2185         * ubsan.c: Include tree-object-size.h.
2186         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2187         (ubsan_expand_bounds_ifn): Use false instead of 0.
2188         (ubsan_expand_objsize_ifn): New function.
2189         (instrument_object_size): New function.
2190         (pass_ubsan::execute): Add object size instrumentation.
2191         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2192
2193 2014-10-10  Richard Henderson  <rth@redhat.com>
2194
2195         PR target/63404
2196         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2197         Restrict the set of expressions we're willing to move.
2198
2199 2014-10-10  Jeff Law  <law@redhat.com>
2200
2201         * ira.c (struct equivalence): Promote INIT_INSNs field to
2202         an rtx_insn_list.  Add comments.
2203         (no_equiv): Promote LIST to an rtx_insn_list.  Update
2204         testing for and creating the special marker.  Use methods
2205         to extract the insn and next pointers.  Promote INSN to an
2206         rtx_insn.
2207         (update_equiv_regs): Update test for special marker in the
2208         INIT_INSNs list.
2209
2210 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2211
2212         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2213         * configure: Regenerate.
2214         * config/aarch64/aarch64.c (aarch64_override_options): Handle
2215         TARGET_FIX_ERR_A53_835769_DEFAULT.
2216         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
2217         value to 2.
2218         * doc/install.texi (aarch64*-*-*): Document
2219         new --enable-fix-cortex-a53-835769 option.
2220
2221 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2222             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2223
2224         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
2225         (ADJUST_INSN_LENGTH): Define.
2226         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
2227         * config/aarch64/aarch64.c (is_mem_p): New function.
2228         (is_memory_op): Likewise.
2229         (aarch64_prev_real_insn): Likewise.
2230         (is_madd_op): Likewise.
2231         (dep_between_memop_and_curr): Likewise.
2232         (aarch64_madd_needs_nop): Likewise.
2233         (aarch64_final_prescan_insn): Likewise.
2234         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
2235         and -mno-fix-cortex-a53-835769 options.
2236
2237 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
2238
2239         PR tree-optimization/63464
2240         * tree-switch-conversion.c (struct case_bit_test): Remove
2241         hi and lo fields, add wide_int mask field.
2242         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
2243         hi/lo fields into wide_int mask operations, optimize by pretending
2244         minval to be 0 if maxval is small enough.
2245         (process_switch): Adjust caller.
2246
2247 2014-10-10  Richard Biener  <rguenther@suse.de>
2248
2249         PR tree-optimization/63379
2250         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
2251         a neutral operand for min/max when it is not a reduction chain.
2252
2253 2014-10-10  Richard Biener  <rguenther@suse.de>
2254
2255         PR tree-optimization/63476
2256         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2257         (BB_LIVE_VOP_ON_EXIT): New define.
2258         (create_expression_by_pieces): Assign VUSEs to stmts.
2259         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2260         (pass_pre::execute): Assert virtual SSA form is up-to-date
2261         after insertion.
2262
2263 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
2264
2265         * lra-assigns.c (assign_by_spills): Error out on spill failure.
2266
2267 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
2268
2269         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2270         assertion.
2271
2272 2014-10-09  Richard Biener  <rguenther@suse.de>
2273
2274         PR tree-optimization/63380
2275         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2276         may trap.
2277
2278 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
2279
2280         * config/avr/avr.opt (mmcu=): Change to have a string value.
2281         (mn-flash=, mskip-bug, march=, mrmw): New options.
2282         (HeaderInclude): New.
2283         (mmcu=): Remove Var / Init clauses.
2284         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2285         -specs option.
2286         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2287         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2288         (SYMBOL_FLAG_IO_LOW): Define.
2289         (avr_device_to_as, avr_device_to_ld): Don't declare.
2290         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2291         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2292         (EXTRA_SPEC_FUNCTIONS): Don't define.
2293         (ASM_SPEC): Translate -arch= option to -mmcu= option.
2294         (LINK_SPEC): Translate -arch= option to -m= option.
2295         Don't use device_to_ld / device_to_data_start.
2296         (STARTFILE_SPEC): Now empty.
2297         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2298         * config/avr/gen-avr-mmcu-specs.c: New file.
2299         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2300         (s-device-specs): Likewise.
2301         (GCC_PASSES): Add s-device-specs.
2302         (install-driver): Depend on install-device-specs.
2303         (install-device-specs): New rule.
2304         * config/avr/avr.c (avr_option_override): Look up mcu arch by
2305         avr_arch_index and provide fallback initialization for avr_n_flash.
2306         (varasm.h): #include.
2307         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2308         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2309         (avr_attribute_table): Add "io", "address" and "io_low".
2310         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2311         Add special handling for symbols with "io" and/or "address" attributes.
2312         (avr_asm_asm_output_aligned_bss): New function.
2313         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2314         as appropriate.  Handle io_low attribute.
2315         (avr_out_sbxx_branch): Handle symbolic io addresses.
2316         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2317         avr_n_flash instead of avr_current_device->n_flash.
2318         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2319         (avr_emit_movmemhi): Likewise.
2320         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2321         Use TARGET_RMW instead of avr_current_device->dev_attributes.
2322         Don't define avr_current_device->macro (that's the specfile's job).
2323         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2324         * config/avr/avr.c (avr_2word_insn_p): Likewise.
2325         * config/avr/avr.md (*cpse.ne): Likewise.
2326         (mov<mode>): Use avr_eval_addr_attrib.
2327         (cbi): Change constraint for low_io_address_operand operand to "i".
2328         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2329         * config/avr/predicates.md (io_address_operand):
2330         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2331         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2332         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2333         Update prototype.
2334         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2335         * config/avr/genmultilib.awk: Use -march=.
2336         Remove Multilib matches processing.
2337         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2338         * config/avr/avr-arch.h: Add double include guard.
2339         (avr_mcu_t) <library_name>: Update comment.
2340         * config/avr/driver-avr.c (avr_device_to_as): Delete.
2341         (avr_device_to_ld, avr_device_to_data_start): Likewise.
2342         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2343         (avr_device_to_sp8): Likewise.
2344         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
2345
2346         * doc/extend.texi (io, address): Document new AVR variable attributes.
2347         (io_low): Likewise.
2348
2349 2014-10-09  Marek Polacek  <polacek@redhat.com>
2350
2351         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2352
2353 2014-10-08  Richard Biener  <rguenther@suse.de>
2354
2355         PR tree-optimization/61969
2356         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
2357         variables.
2358
2359 2014-10-09  Richard Biener  <rguenther@suse.de>
2360
2361         PR tree-optimization/63445
2362         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
2363         overflow for non-equality compares.
2364
2365 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
2366
2367         PR rtl-optimization/57003
2368         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2369         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
2370         killing regs_invalidated_by_call.
2371
2372 2014-10-08  Teresa Johnson  <tejohnson@google.com>
2373
2374         PR bootstrap/63432.
2375         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
2376         (ssa_fix_duplicate_block_edges): Invoke it.
2377         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
2378
2379 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
2380
2381         PR target/52941
2382         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2383         atomic_fetch_<fetchop_name>si_hard,
2384         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
2385         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
2386         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
2387         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
2388
2389 2014-10-08  Rong Xu  <xur@google.com>
2390
2391         * gcov-tool.c (profile_overlap): New driver function
2392         to compute profile overlap.
2393         (print_overlap_usage_message): New.
2394         (overlap_usage): New.
2395         (do_overlap): New.
2396         (print_usage): Add calls to overlap function.
2397         (main): Ditto.
2398         * doc/gcov-tool.texi: Add documentation.
2399
2400 2014-10-08  Steve Ellcey  <sellcey@mips.com>
2401
2402         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
2403         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
2404
2405 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
2406
2407         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
2408         pattern matching of MEM_REF.
2409         (check_stmt_for_type_change): Update.
2410
2411 2014-10-08  Steve Ellcey  <sellcey@mips.com>
2412
2413         * config/mips/linux64.h: Remove.
2414         * config/mips/gnu-user64.h: Remove.
2415         * gcc.config (mips*-*-*): Remove references to linux64.h and
2416         gnu-user64.h
2417         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
2418         with modified version from gnu-user64.h.
2419         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
2420         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
2421         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
2422         linux64.h.
2423         (GNU_USER_LINK_EMULATION64): Ditto.
2424         (GNU_USER_LINK_EMULATIONN32): Ditto.
2425         (GLIBC_DYNAMIC_LINKER32): Ditto.
2426         (GLIBC_DYNAMIC_LINKER64): Ditto.
2427         (GLIBC_DYNAMIC_LINKERN32): Ditto.
2428         (UCLIBC_DYNAMIC_LINKER32): Ditto.
2429         (UCLIBC_DYNAMIC_LINKER64): Ditto.
2430         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
2431         (BIONIC_DYNAMIC_LINKERN32): Ditto.
2432         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
2433         (GLIBC_DYNAMIC_LINKER): Delete.
2434         (UCLIBC_DYNAMIC_LINKER): Delete.
2435
2436 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
2437             Richard Biener  <rguenther@suse.de>
2438
2439         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
2440         Get address space from operand 0 (BASE).
2441
2442 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
2443
2444         PR target/61387
2445         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
2446
2447 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
2448
2449         * dwarf2out.c: Remove current_function_has_inlines.
2450         (gen_subprogram_die): Same.
2451         (gen_inlined_subroutine_die): Same.
2452
2453 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
2454
2455         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
2456         type.
2457         (_addcarry_u64): Ditto.
2458         (_addcarryx_u64): Ditto.
2459
2460 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
2461
2462         * cgraph.h (cgraph_node::get_fun): Declare.
2463         * cgraph.c (cgraph_node::get_fun): New method.
2464         * ipa-inline.c (can_inline_edge_p): Use it.
2465
2466 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
2467
2468         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
2469         and -ftrapping-math.
2470         * lto-wrapper.c (merge_and_complain): Likewise.
2471         (run_gcc): Likewise.
2472
2473 2014-10-06  Rong Xu  <xur@google.com>
2474
2475         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
2476         * tree-profile.c: (params.h): New include.
2477         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
2478         and __gcov_indirect_call_topn_counters for
2479         indirect_call_topn_profile.
2480         (gimple_init_edge_profiler): New decls for
2481         __gcov_indirect_call_topn_profiler.
2482         (gimple_gen_ic_profiler): Generate the correct profiler call.
2483         (gimple_gen_ic_func_profiler): Fix format.
2484         * value-prof.c (params.h): New include.
2485         (dump_histogram_value): Hanlde indirect_call_topn counters.
2486         (stream_in_histogram_value): Ditto.
2487         (gimple_indirect_call_to_profile): Use indirect_call_topn
2488         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
2489         (gimple_find_values_to_profile): Hanlde indirect_call_topn
2490         counters.
2491         * value-prof.h (enum hist_type): Histrogram type for
2492         indirect_call_topn counters.
2493         * profile.c (instrument_values): Instrument
2494         indirect_call_topn counters.
2495
2496 2014-10-06  Rong Xu  <xur@google.com>
2497
2498         * Makefile.in: Fix dependence.
2499         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
2500         indirect call topn profiler.
2501         * gcov-io.h: Ditto.
2502
2503 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2504
2505         * calls.c (expand_call): Do not use the target as the return slot if
2506         it is not sufficiently aligned.
2507
2508 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2509
2510         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
2511         discussion of permutes and why we don't handle them.
2512
2513 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2514
2515         * config/sparc/predicates.md (int_register_operand): Delete.
2516
2517 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2518
2519         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
2520
2521 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
2522
2523         * ubsan.h (ubsan_get_source_location): New prototype.
2524         * ubsan.c (ubsan_source_location_type): New variable.
2525         Function renamed to ...
2526         (ubsan_get_source_location_type): ... this.  Cache
2527         return value in ubsan_source_location_type variable.
2528         (ubsan_source_location, ubsan_create_data): Use
2529         ubsan_get_source_location_type instead of
2530         ubsan_source_location_type.
2531         * asan.c (asan_protect_global): Don't protect globals
2532         with ubsan_get_source_location_type () type.
2533         (asan_add_global): Provide global decl location info
2534         if possible.
2535
2536 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2537
2538         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
2539         sanity check.
2540
2541 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2542
2543         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
2544         on size.
2545         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
2546         into vptr pointer.
2547         (ipa_polymorphic_call_context::dump): Fix formating.
2548         (walk_ssa_copies): Add logic avoiding loops; update uses.
2549         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
2550
2551 2014-10-02  Mark Wielaard  <mjw@redhat.com>
2552
2553         PR debug/63239
2554         * dwarf2out.c (gen_subprogram_die): When a member function is
2555         explicitly deleted then add a DW_AT_GNU_deleted attribute.
2556         * langhooks.h (struct lang_hooks_for_decls): Add
2557         function_decl_deleted_p langhook.
2558         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
2559         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
2560
2561 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2562
2563         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
2564         NULL pointer checks.
2565         (ipa_polymorphic_call_context::get_dynamic_type): Return true
2566         if type doesn't change.
2567         * cgraph.h (cgraph_indirect_call_info): New flag.
2568         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
2569         (cgraph_node::dump): Dump it.
2570         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
2571         of context.get_dynamic_type.
2572         (ipa_make_edge_direct_to_target): Do not speculate
2573         edge that is already speuclative.
2574         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
2575         speculate to __builtin_unreachable
2576         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
2577         vptr_changed.
2578         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
2579
2580 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
2581
2582         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
2583         get_dynamic_type; drop TODO.
2584         * ipa-polymorphic-call.c
2585         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
2586         for otr_type to be unknown.
2587
2588 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
2589
2590         * common/config/score/score-common.c: Remove.
2591         * config.gcc: Remove support for score-*.
2592         * config/score/constraints.md: Remove.
2593         * config/score/elf.h: Remove.
2594         * config/score/predicates.md: Remove.
2595         * config/score/score-conv.h: Remove.
2596         * config/score/score-generic.md: Remove.
2597         * config/score/score-modes.def: Remove.
2598         * config/score/score-protos.h: Remove.
2599         * config/score/score.c: Remove.
2600         * config/score/score.h: Remove.
2601         * config/score/score.md: Remove.
2602         * config/score/score.opt: Remove.
2603         * doc/md.texi: Don't document score-*.
2604
2605 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
2606
2607         PR pch/63429
2608         * genconditions.c: Directly include ggc.h before rtl.h.
2609
2610 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
2611
2612         * ipa-polymorphic-call.c
2613         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2614         code determining speculative type.
2615         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2616
2617 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2618
2619         * altivec.md (altivec_lvsl): New define_expand.
2620         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2621         (altivec_lvsr): New define_expand.
2622         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2623         * rs6000.c (rs6000_expand_builtin): Change to use
2624         altivec_lvs[lr]_direct; remove commented-out code.
2625
2626 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2627
2628         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2629         Issue a warning message when vec_lvsl or vec_lvsr is used with a
2630         little endian target.
2631
2632 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2633
2634         * tree-pretty-print.c (dump_location): Make it extern. Dump also
2635         the column.
2636         * tree-pretty-print.h (dump_location): Declare.
2637         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2638         (pp_gimple_stmt_1): Likewise.
2639         (dump_implicit_edges): Likewise.
2640         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2641         LOCATION_LINE.
2642
2643
2644 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
2645
2646         * gcc.c (driver::global_initializations): Remove "const" so
2647         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2648         and decoded_options_count.
2649
2650 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2651
2652         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2653         macro.
2654         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2655         TARGET_E500_DOUBLE case here.
2656
2657 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
2658
2659         PR c++/54427
2660         PR c++/57198
2661         PR c++/58845
2662         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2663
2664 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
2665
2666         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2667         * lto-cgraph.c (lto_output_edge, input_edge): Stream
2668         in_polymorphic_cdtor
2669         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2670         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2671         * cgraphclones.c (cgraph_edge::clone): Likewise.
2672         * ipa-prop.c (update_jump_functions_after_inlining,
2673         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2674         to possible_dynamic_type_change.
2675         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2676         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2677         IN_POLY_CDOTR argument.
2678
2679         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2680         for BASE and OUTER_TYPE being NULL.
2681         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2682         in_poly_cdtor parameter.
2683
2684 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
2685
2686         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2687         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2688         TARGET_AVX512F.
2689         (expand_vec_perm_1): Likewise.
2690
2691 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
2692             Uros Bizjak  <ubizjak@gmail.com>
2693
2694         PR tree-optimization/61403
2695         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2696         error in comment.  Also optimize 256-bit vectors for AVX2
2697         or AVX (floating vectors only), provided the first permutation
2698         can be performed in one insn.
2699
2700 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
2701
2702         * gcc.c (class driver): New class.
2703         (main): Reimplement in terms of driver::main, moving most of the
2704         locals to be locals within individual methods of class driver.
2705         The remaining locals "explicit_link_files", "decoded_options" and
2706         "decoded_options_count" are used by multiple driver:: methods, and
2707         so become member data.  Doing so isolates the argc/argv reads and
2708         writes.  Replace "goto out" with a special exit code from
2709         new method driver::prepare_infiles.  Split out the old
2710         implementation of main into the following...
2711         (driver::main): New function, corresponding to the old "main"
2712         implementation.
2713         (driver::set_progname): New function, taken from the old
2714         "main" implementation.
2715         (driver::expand_at_files): Likewise.
2716         (driver::decode_argv): Likewise.
2717         (driver::global_initializations): Likewise.
2718         (driver::build_multilib_strings): Likewise.
2719         (driver::set_up_specs): Likewise.
2720         (driver::putenv_COLLECT_GCC): Likewise.
2721         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2722         (driver::handle_unrecognized_options): Likewise.
2723         (driver::maybe_print_and_exit): Likewise.
2724         (driver::prepare_infiles): Likewise.
2725         (driver::do_spec_on_infiles): Likewise.
2726         (driver::maybe_run_linker): Likewise.
2727         (driver::final_actions): Likewise.
2728         (driver::get_exit_code): Likewise.
2729
2730 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
2731
2732         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2733         don't emit empty ctors.
2734
2735 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
2736
2737         * convert.c (convert_to_integer): Do not introduce useless conversions
2738         between integral types.
2739
2740 2014-10-03  David Sherwood  <david.sherwood@arm.com>
2741
2742         * ira-int.h (ira_allocno): Mark hard_regno as signed.
2743
2744 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
2745
2746         * lra-constraints.c (inherit_in_ebb): Handle calls with
2747         multiple return values.
2748         * caller-save.c (save_call_clobbered_regs): Likewise.
2749
2750 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
2751
2752         * tree-vect-data-refs.c (vect_permute_load_chain,
2753         vect_shift_permute_load_chain): Fix a typo in temporary var names,
2754         suffle3 to shuffle3.
2755
2756         PR libgomp/61200
2757         * omp-low.c (taskreg_contexts): New variable.
2758         (scan_omp_parallel): Push newly created context into taskreg_contexts
2759         vector and move record layout code to finish_taskreg_scan.
2760         (scan_omp_task): Likewise.
2761         (finish_taskreg_scan): New function.
2762         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
2763         vector elements and release it.
2764
2765         PR target/62128
2766         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
2767         of palignr arguments can't be used due to min 0 or max - min
2768         too high, try also op0, op1 order of palignr arguments.
2769
2770 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
2771
2772         * cgraph.h (ipa_polymorphic_call_context):
2773         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
2774         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
2775         * ipa-polymorphic-call.c
2776         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
2777         past end of dynamic types.
2778         (ipa_polymorphic_call_context::stream_out,
2779         speculative_outer_type): Stream dynamic flag.
2780         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
2781         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
2782         Clear DYNAMIC.
2783         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
2784         set it.
2785         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
2786         * ipa-prop.c (update_jump_functions_after_inlining,
2787         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
2788
2789 2014-10-02  Teresa Johnson  <tejohnson@google.com>
2790
2791         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
2792         up when synthesizing counts to avoid rounding errors.
2793
2794 2014-10-02  Teresa Johnson  <tejohnson@google.com>
2795
2796         PR middle-end/63422
2797         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
2798         asserts to handle incoming insanities.
2799
2800 2014-10-02  Martin Jambor  <mjambor@suse.cz>
2801
2802         PR tree-optimization/63375
2803         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
2804         references.
2805
2806 2014-10-02  Olivier Hainque  <hainque@adacore.com>
2807
2808         * Makefile.in (CROSS): Define, to @CROSS.
2809
2810 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
2811
2812         PR target/62128
2813         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
2814         if it expands to a single insn only.
2815         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
2816         fail unless in_order is true.  Add forward declaration.
2817         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
2818         is useful for one_operand_p.
2819         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
2820
2821 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2822
2823         * cgraphclones.c (build_function_type_skip_args): Do not make new
2824         type variant of old.
2825
2826 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2827
2828         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
2829         when speculation is added.
2830         (ipa_edge_args): Add polymorphic_call_contexts.
2831         (ipa_get_ith_polymorhic_call_context): New accesor.
2832         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
2833         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
2834         (ipa_compute_jump_functions_for_edge): Compute contexts.
2835         (update_jump_functions_after_inlining): Update contexts.
2836         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
2837         update dumping; add speculative edge creation.
2838         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
2839         context updating.
2840         (update_indirect_edges_after_inlining): Pass down context.
2841         (ipa_edge_duplication_hook): Duplicate contexts.
2842         (ipa_write_node_info): Stream out contexts.
2843         (ipa_read_node_info): Stream in contexts.
2844         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
2845         types.
2846         (try_speculative_devirtualization): New function.
2847         * ipa-utils.h (try_speculative_devirtualization): Declare.
2848
2849 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2850
2851         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
2852         dumping during WPA.
2853
2854 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2855
2856         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
2857         type variants.
2858
2859 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
2860
2861         * ipa-polymorphic-call.c
2862         (ipa_polymorphic_call_context::restrict_to_inner_class):
2863         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
2864         use speculation_consistent_p to do so; Add CONSDER_BASES
2865         and CONSIDER_PLACEMENT_NEW parameters.
2866         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
2867         short circuit obvious cases.
2868         (ipa_polymorphic_call_context::dump): Improve formatting.
2869         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
2870         combine_speculation_with to record speculations; Do not ICE when
2871         object is located in pointer type decl; do not ICE for methods
2872         of UNION_TYPE; do not record nonpolymorphic types.
2873         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
2874         (ipa_polymorphic_call_context::combine_speculation_with): New method.
2875         (ipa_polymorphic_call_context::combine_with): New method.
2876         (ipa_polymorphic_call_context::make_speculative): Move here; use
2877         combine speculation.
2878         * cgraph.h (ipa_polymorphic_call_context): Update
2879         restrict_to_inner_class prototype; add offset_by, make_speculative,
2880         combine_with, useless_p, combine_speculation_with and
2881         speculation_consistent_p methods.
2882         (ipa_polymorphic_call_context::offset_by): New method.
2883         (ipa_polymorphic_call_context::useless_p): New method.
2884
2885 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
2886
2887         PR rtl-optimization/62151
2888         * combine.c (can_combine_p): Allow the destination register of INSN
2889         to be clobbered in I3.
2890         (subst): Do not substitute into clobbers of registers.
2891
2892 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
2893
2894         PR debug/63342
2895         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
2896         offset, TARGET_MEM_REF and SSA_NAME.
2897
2898         * config/i386/i386.c (expand_vec_perm_palignr): Handle
2899         256-bit vectors for TARGET_AVX2.
2900
2901         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
2902         dfirst permutation.
2903
2904         PR target/63428
2905         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
2906         argument to avx2_permv2ti.
2907
2908 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2909
2910         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
2911
2912 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
2913
2914         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
2915         (fmod<mode>3): Ditto.
2916         (fpremxf4_i387): Ditto.
2917         (reminderxf3): Ditto.
2918         (reminder<mode>3): Ditto.
2919         (fprem1xf4_i387): Ditto.
2920
2921 2014-09-30  Teresa Johnson  <tejohnson@google.com>
2922
2923         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
2924         duplicate_blocks bitmap.
2925         (remove_ctrl_stmt_and_useless_edges): Ditto.
2926         (create_block_for_threading): Ditto.
2927         (compute_path_counts): New function.
2928         (update_profile): Ditto.
2929         (recompute_probabilities): Ditto.
2930         (update_joiner_offpath_counts): Ditto.
2931         (freqs_to_counts_path): Ditto.
2932         (clear_counts_path): Ditto.
2933         (ssa_fix_duplicate_block_edges): Update profile info.
2934         (ssa_create_duplicates): Pass new parameter.
2935         (ssa_redirect_edges): Remove old profile update.
2936         (thread_block_1): New duplicate_blocks bitmap,
2937         remove old profile update.
2938         (thread_single_edge): Pass new parameter.
2939
2940 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
2941
2942         PR middle-end/62120
2943         * varasm.c (decode_reg_name_and_count): Check availability for
2944         registers from ADDITIONAL_REGISTER_NAMES.
2945
2946 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
2947
2948         PR plugins/63410
2949         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
2950         (PLUGIN_HEADERS): Add pass-instances.def.
2951
2952 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
2953
2954         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
2955         iterator.
2956         * config/aarch64/aarch64-simd.md
2957         (aarch64_sqdmull_laneq<mode>): Expand iterator.
2958         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
2959         (vqdmulls_lane_s32): Fix return type.
2960         (vqdmulls_laneq_s32): New.
2961
2962 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
2963
2964         PR inline-asm/63282
2965         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
2966         or invert_jump_1 if jump isn't any_condjump_p.
2967
2968 2014-09-30  Terry Guo  <terry.guo@arm.com>
2969
2970         * config/arm/arm-cores.def (cortex-m7): New core name.
2971         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
2972         (fpv5-d16): Ditto.
2973         * config/arm/arm-tables.opt: Regenerated.
2974         * config/arm/arm-tune.md: Regenerated.
2975         * config/arm/arm.h (TARGET_VFP5): New macro.
2976         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
2977         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
2978         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
2979         * doc/invoke.texi: Document new cpu and fpu names.
2980
2981 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
2982
2983         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
2984         before sinking insn.
2985
2986 2014-09-30  David Sherwood  <david.sherwood@arm.com>
2987
2988         * ira-int.h (ira_allocno): Add "wmode" field.
2989         * ira-build.c (create_insn_allocnos): Add new "parent" function
2990         parameter.
2991         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
2992         that cannot be accessed in wmode.
2993
2994 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
2995
2996         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
2997         integer overflow.
2998
2999 2014-09-29  Andi Kleen  <ak@linux.intel.com>
3000
3001         * opts.c (print_filtered_help): Print --param min/max/default
3002         with -Q.
3003
3004 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3005
3006         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3007
3008 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
3009
3010         * tree-vrp.c (get_single_symbol): New function.
3011         (build_symbolic_expr): Likewise.
3012         (symbolic_range_based_on_p): New predicate.
3013         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3014         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
3015         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3016         operand is symbolic and based on the other operand.
3017
3018 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
3019
3020         * config/microblaze/microblaze.md (call_internal1): Use VOID
3021         instead of SI to fix "((void (*)(void)) 0)()" issue
3022
3023 2014-09-29  Nick Clifton  <nickc@redhat.com>
3024
3025         * config/msp430/msp430.c (msp430_expand_prologue): Return a
3026         CLOBBER rtx for naked functions.
3027         (msp430_expand_epilogue): Likewise.
3028         (msp430_use_f5_series_hwmult): Cache result.
3029         (use_32bit_hwmult): Cache result.
3030         (msp430_no_hwmult): New function.
3031         (msp430_output_labelref): Use it.
3032
3033 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
3034
3035         PR middle-end/63247
3036         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3037         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3038         use the alignment of avar rather than ovar.
3039
3040 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
3041
3042         * config/pa/pa.c (pa_output_function_epilogue): Only update
3043         last_address when a nonnote insn is found.
3044
3045 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3046
3047         PR ipa/60665
3048         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3049
3050 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3051
3052         PR ipa/62121
3053         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3054         fix pasto in checking array size.
3055
3056 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3057
3058         PR middle-end/35545
3059         * passes.def (pass_tracer): Move before last dominator pass.
3060
3061 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
3062
3063         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
3064         users.
3065         (run_attempt): Handle errors of "pex_run" invocation.
3066
3067 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
3068
3069         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3070         (CC1_SPEC): Define.
3071         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3072         (TARGET_ASAN_SHADOW_OFFSET): Define.
3073
3074 2014-09-26  Martin Liska  <mliska@suse.cz>
3075
3076         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3077         introduced.
3078         * cgraph.h: Likewise.
3079         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3080         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3081         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3082         * tree-ssa-alias.h: Likewise.
3083
3084 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
3085             Max Ostapenko  <m.ostapenko@partner.samsung.com>
3086
3087         * common.opt: New option.
3088         * doc/invoke.texi: Describe new option.
3089         * gcc.c (execute): Don't free first string early, but at the end
3090         of the function.  Call retry_ice if compiler exited with
3091         ICE_EXIT_CODE.
3092         (main): Factor out common code.
3093         (print_configuration): New function.
3094         (files_equal_p): Likewise.
3095         (check_repro): Likewise.
3096         (run_attempt): Likewise.
3097         (do_report_bug): Likewise.
3098         (append_text): Likewise.
3099         (try_generate_repro): Likewise
3100
3101 2014-09-25  Andi Kleen  <ak@linux.intel.com>
3102
3103         * config/i386/i386.c (x86_print_call_or_nop): New function.
3104         (x86_function_profiler): Support -mnop-mcount and
3105         -mrecord-mcount.
3106         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3107         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3108
3109 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3110
3111         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3112         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3113         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3114         Remove.
3115
3116 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3117
3118         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3119         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3120         types_odr_comparable): Declare.
3121         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3122         * ipa-polymorphic-call.c: New file.
3123         (contains_polymorphic_type_p, possible_placement_new,
3124         ipa_polymorphic_call_context::restrict_to_inner_class,
3125         contains_type_p, decl_maybe_in_construction_p,
3126         ipa_polymorphic_call_context::stream_out,
3127         ipa_polymorphic_call_context::debug,
3128         ipa_polymorphic_call_context::stream_in,
3129         ipa_polymorphic_call_context::set_by_decl,
3130         ipa_polymorphic_call_context::set_by_invariant,
3131         walk_ssa_copies,
3132         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3133         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3134         extr_type_from_vtbl_ptr_store, record_known_type
3135         check_stmt_for_type_change,
3136         ipa_polymorphic_call_context::get_dynamic_type): Move here from
3137         ipa-devirt.c
3138         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3139         and streamer-hooks.h
3140         (contains_polymorphic_type_p, possible_placement_new,
3141         ipa_polymorphic_call_context::restrict_to_inner_class,
3142         contains_type_p, decl_maybe_in_construction_p,
3143         ipa_polymorphic_call_context::stream_out,
3144         ipa_polymorphic_call_context::debug,
3145         ipa_polymorphic_call_context::stream_in,
3146         ipa_polymorphic_call_context::set_by_decl,
3147         ipa_polymorphic_call_context::set_by_invariant,
3148         walk_ssa_copies,
3149         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3150         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3151         extr_type_from_vtbl_ptr_store, record_known_type
3152         check_stmt_for_type_change,
3153         ipa_polymorphic_call_context::get_dynamic_type): Move to
3154         ipa-polymorphic-call.c
3155         (type_all_derivations_known_p, types_odr_comparable,
3156         types_must_be_same_for_odr): Export.
3157         (type_known_to_have_no_deriavations_p): New function.
3158         * Makefile.in: Add ipa-polymorphic-call.c
3159
3160 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3161
3162         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3163         for better storage.
3164         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3165         (possible_polymorphic_call_targets): Instead of computing both
3166         speculative and non-speculative answers, do just one at a time.
3167         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3168         (dump_targets): Break out from ...
3169         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3170         and non-speculative lists.
3171         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3172         * ipa-utils.h (possible_polymorphic_call_targets): Update.
3173
3174 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
3175
3176         PR rtl-optimization/63348
3177         * emit-rtl.c (try_split): Do not emit extra barrier.
3178
3179 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
3180
3181         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3182         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3183         new predicates.
3184         (aarch64_<sur>shll2_n<mode>): Likewise.
3185         (aarch64_<sur>shr_n<mode>): Likewise.
3186         (aarch64_<sur>sra_n<mode>: Likewise.
3187         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3188         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3189         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3190         * config/aarch64/iterators.md (ve_mode): New.
3191         (offsetlr): Remap to infix text for use in new predicates.
3192         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3193         (aarch64_simd_shift_imm_hi): Likewise.
3194         (aarch64_simd_shift_imm_si): Likewise.
3195         (aarch64_simd_shift_imm_di): Likewise.
3196         (aarch64_simd_shift_imm_offset_qi): Likewise.
3197         (aarch64_simd_shift_imm_offset_hi): Likewise.
3198         (aarch64_simd_shift_imm_offset_si): Likewise.
3199         (aarch64_simd_shift_imm_offset_di): Likewise.
3200         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3201         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3202         (aarch64_simd_shift_imm_bitsize_si): Likewise.
3203         (aarch64_simd_shift_imm_bitsize_di): Likewise.
3204
3205 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
3206
3207         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3208         new created BB as the intersection of live-in from "old_dest" and
3209         live-out from "bb".
3210
3211 2014-09-25  Felix Yang  <felix.yang@huawei.com>
3212
3213         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3214         * genautomata.c (merge_states): Ditto.
3215
3216 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
3217
3218         PR target/62218
3219         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
3220         in instruction sequence.
3221
3222 2014-09-25  Nick Clifton  <nickc@redhat.com>
3223
3224         PR target/62218
3225         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
3226         in instruction sequence.
3227
3228 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3229
3230         PR target/63335
3231         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
3232         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
3233
3234 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3235             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3236             Anna Tikhonova  <anna.tikhonova@intel.com>
3237             Ilya Tocar  <ilya.tocar@intel.com>
3238             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3239             Ilya Verbin  <ilya.verbin@intel.com>
3240             Kirill Yukhin  <kirill.yukhin@intel.com>
3241             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3242
3243         * config/i386/sse.md
3244         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
3245         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
3246         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
3247         (define_expand "<avx512>_perm<mode>_mask"): ... this.
3248         Use VI8F_256_512 mode iterator.
3249         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
3250         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
3251
3252 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3253             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3254             Anna Tikhonova  <anna.tikhonova@intel.com>
3255             Ilya Tocar  <ilya.tocar@intel.com>
3256             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3257             Ilya Verbin  <ilya.verbin@intel.com>
3258             Kirill Yukhin  <kirill.yukhin@intel.com>
3259             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3260
3261         * config/i386/sse.md
3262         (define_insn "avx_movshdup256<mask_name>"): Add masking.
3263         (define_insn "sse3_movshdup<mask_name>"): Ditto.
3264         (define_insn "avx_movsldup256<mask_name>"): Ditto.
3265         (define_insn "sse3_movsldup<mask_name>"): Ditto.
3266         (define_insn "vec_dupv2df<mask_name>"): Ditto.
3267         (define_insn "*vec_concatv2df"): Add EVEX version.
3268
3269 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3270             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3271             Anna Tikhonova  <anna.tikhonova@intel.com>
3272             Ilya Tocar  <ilya.tocar@intel.com>
3273             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3274             Ilya Verbin  <ilya.verbin@intel.com>
3275             Kirill Yukhin  <kirill.yukhin@intel.com>
3276             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3277
3278         * config/i386/sse.md
3279         (define_insn "vec_set<mode>_0"): Add EVEX version.
3280
3281 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3282             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3283             Anna Tikhonova  <anna.tikhonova@intel.com>
3284             Ilya Tocar  <ilya.tocar@intel.com>
3285             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3286             Ilya Verbin  <ilya.verbin@intel.com>
3287             Kirill Yukhin  <kirill.yukhin@intel.com>
3288             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3289
3290         * config/i386/sse.md
3291         (define_insn
3292         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3293         New.
3294         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3295         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3296         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3297         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3298         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3299         (define_expand "sse2_cvtpd2ps_mask): New.
3300         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3301         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3302
3303 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3304             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3305             Anna Tikhonova  <anna.tikhonova@intel.com>
3306             Ilya Tocar  <ilya.tocar@intel.com>
3307             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3308             Ilya Verbin  <ilya.verbin@intel.com>
3309             Kirill Yukhin  <kirill.yukhin@intel.com>
3310             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3311
3312         * config/i386/i386.c
3313         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3314         (ufix_notruncv8dfv8si2_mask_round): ... this.
3315         * config/i386/sse.md
3316         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3317         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3318         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3319         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3320         (define_expand "sse2_cvtpd2dq"): Delete.
3321         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3322         make 2nd operand const0 vector.
3323         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3324         Delete.
3325         (define_mode_attr pd2udqsuff): New.
3326         (define_insn
3327         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3328         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3329         (define_insn "*avx_cvttpd2dq256_2"): Delete.
3330         (define_expand "sse2_cvttpd2dq"): Ditto.
3331         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3332         make 2nd operand const0 vector.
3333
3334 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
3335
3336         PR tree-optimization/63341
3337         * tree-vectorizer.h (vect_create_data_ref_ptr,
3338         vect_create_addr_base_for_vector_ref): Add another tree argument
3339         defaulting to NULL_TREE.
3340         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3341         argument, pass it down to vect_create_addr_base_for_vector_ref.
3342         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3343         add that to base_offset too if non-NULL.
3344         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3345         for dr_explicit_realign_optimized set it to vector byte size
3346         - 1 instead of setting offset, pass byte_offset down to
3347         vect_create_data_ref_ptr.
3348
3349 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
3350
3351         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
3352         forgotten debug output; canonicalize querries more wtih LTO.
3353
3354 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
3355
3356         * cgraph.h (class ipa_polymorphic_call_context): Move here from
3357         ipa-utils.h; add stream_int and stream_out methods.
3358         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
3359         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
3360         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
3361         add CONTEXT.
3362         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3363         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3364         ipa_polymorphic_call_context::clear_speculation,
3365         ipa_polymorphic_call_context::clear_outer_type): Move here from
3366         ipa-utils.h
3367         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
3368         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3369         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3370         ipa_polymorphic_call_context::clear_speculation,
3371         ipa_polymorphic_call_context::clear_outer_type): Likewise.
3372         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
3373         streamer-hooks.h
3374         (ipa_polymorphic_call_context::stream_out): New method.
3375         (ipa_polymorphic_call_context::stream_in): New method.
3376         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
3377         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
3378         OUTER_TYPE.
3379         (ipa_analyze_call_uses): Simplify.
3380         (update_indirect_edges_after_inlining): Do not care about outer_type.
3381         (ipa_write_indirect_edge_info): Update.
3382         (ipa_write_indirect_edge_info): Likewise.
3383         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
3384         (dump_edge_flags): Break out from ...
3385         (cgraph_node::dump): ... here; dump indirect edges.
3386
3387 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
3388
3389         * ipa-utils.h (polymorphic_call_context): Add
3390         metdhos dump, debug and clear_outer_type.
3391         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3392         (ipa_polymorphic_call_context::clear_outer_type): New method.
3393         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
3394         * ipa-devirt.c (types_odr_comparable): New function.
3395         (types_must_be_same_for_odr): New function.
3396         (odr_subtypes_equivalent_p): Simplify.
3397         (possible_placement_new): Break out from ...
3398         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
3399         be more cuatious about returning false in cases the context may be
3400         valid in derived type or via placement new.
3401         (contains_type_p): Clear maybe_derived_type
3402         (ipa_polymorphic_call_context::dump): New method.
3403         (ipa_polymorphic_call_context::debug): New method.
3404         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
3405         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
3406         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3407         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
3408         to suceed on all valid cases; remove confused sanity check.
3409         (dump_possible_polymorphic_call_targets): Simplify.
3410
3411 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
3412
3413         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
3414         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
3415         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
3416         varpool.c: Rename all instances of DECL_ABSTRACT to
3417         DECL_ABSTRACT_P.
3418
3419 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3420
3421         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
3422         special handling for stores whose SET_SRC is an UNSPEC (such as
3423         UNSPEC_STVE).
3424
3425 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
3426
3427         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
3428         !REG_P (src) to release more instruction sink opportunities.
3429
3430 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3431
3432         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
3433         move costs for 128-bit types.
3434
3435 2014-09-24  Martin Jambor  <mjambor@suse.cz>
3436
3437         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
3438         when duplicating a PASS_THROUGH jump function when creating a
3439         speculative edge.
3440
3441 2014-09-24  Marek Polacek  <polacek@redhat.com>
3442
3443         PR c/61405
3444         PR c/53874
3445         * asan.c (maybe_instrument_call): Add default case.
3446         * ipa-pure-const.c (special_builtin_state): Likewise.
3447         * predict.c (expr_expected_value_1): Likewise.
3448         * lto-streamer-out.c (write_symbol): Initialize variable.
3449
3450 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3451
3452         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
3453         the lane.
3454         (vmuld_laneq_f64): Likewise.
3455         (vmuls_lane_f32): Likewise.
3456         (vmuls_laneq_f32): Likewise.
3457
3458 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
3459
3460         PR bootstrap/63235
3461         * varpool.c (varpool_node::add): Pass decl attributes
3462         to lookup_attribute.
3463
3464 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
3465
3466         PR sanitizer/63316
3467         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
3468
3469 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3470
3471         PR tree-optimization/63266
3472         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
3473         marker for unknown byte value.
3474         (MARKER_MASK): New macro.
3475         (MARKER_BYTE_UNKNOWN): New macro.
3476         (HEAD_MARKER): New macro.
3477         (do_shift_rotate): Mark bytes with unknown values due to sign
3478         extension when doing an arithmetic right shift. Replace hardcoded
3479         mask for marker by new MARKER_MASK macro.
3480         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
3481         numbers accordingly.
3482
3483 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3484             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3485             Anna Tikhonova  <anna.tikhonova@intel.com>
3486             Ilya Tocar  <ilya.tocar@intel.com>
3487             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3488             Ilya Verbin  <ilya.verbin@intel.com>
3489             Kirill Yukhin  <kirill.yukhin@intel.com>
3490             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3491
3492         * config/i386/sse.md
3493         (define_insn
3494         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
3495         Add masking.
3496         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
3497         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
3498
3499 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3500             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3501             Anna Tikhonova  <anna.tikhonova@intel.com>
3502             Ilya Tocar  <ilya.tocar@intel.com>
3503             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3504             Ilya Verbin  <ilya.verbin@intel.com>
3505             Kirill Yukhin  <kirill.yukhin@intel.com>
3506             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3507
3508         * config/i386/sse.md
3509         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
3510         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
3511         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
3512         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
3513         (define_expand "avx512vl_pshuflw_mask"): New.
3514         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
3515         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
3516         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
3517         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
3518         (define_expand "avx512vl_pshufhw_mask"): New.
3519         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
3520
3521 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3522             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3523             Anna Tikhonova  <anna.tikhonova@intel.com>
3524             Ilya Tocar  <ilya.tocar@intel.com>
3525             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3526             Ilya Verbin  <ilya.verbin@intel.com>
3527             Kirill Yukhin  <kirill.yukhin@intel.com>
3528             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3529
3530         * config/i386/i386.c
3531         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
3532         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
3533         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
3534         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
3535         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
3536         * config/i386/sse.md
3537         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
3538         (define_insn
3539         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
3540         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
3541         (define_insn
3542         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
3543         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
3544         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
3545         (define_expand "avx512vl_pshufd_mask"): New.
3546         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
3547
3548 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3549             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3550             Anna Tikhonova  <anna.tikhonova@intel.com>
3551             Ilya Tocar  <ilya.tocar@intel.com>
3552             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3553             Ilya Verbin  <ilya.verbin@intel.com>
3554             Kirill Yukhin  <kirill.yukhin@intel.com>
3555             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3556
3557         * config/i386/i386.c
3558         (CODE_FOR_avx2_extracti128): Rename to ...
3559         (CODE_FOR_avx_vextractf128v4di): this.
3560         (CODE_FOR_avx2_inserti128): Rename to ...
3561         (CODE_FOR_avx_vinsertf128v4di): this.
3562         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
3563         CODE_FOR_avx_vextractf128v4di.
3564         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
3565         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
3566         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
3567         CODE_FOR_avx512vl_vinsertv8si.
3568         * config/i386/sse.md
3569         (define_expand
3570         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
3571         AVX512_VEC mode iterator.
3572         (define_insn
3573         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
3574         Ditto.
3575         (define_expand
3576         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
3577         AVX512_VEC_2 mode iterator.
3578         (define_insn "vec_set_lo_<mode><mask_name>"): New.
3579         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3580         (define_expand "avx512vl_vinsert<mode>"): Ditto.
3581         (define_insn "avx2_vec_set_lo_v4di"): Delete.
3582         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
3583         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
3584         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3585         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
3586         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3587         (define_expand "avx2_extracti128"): Delete.
3588         (define_expand "avx2_inserti128"): Ditto.
3589
3590 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3591             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3592             Anna Tikhonova  <anna.tikhonova@intel.com>
3593             Ilya Tocar  <ilya.tocar@intel.com>
3594             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3595             Ilya Verbin  <ilya.verbin@intel.com>
3596             Kirill Yukhin  <kirill.yukhin@intel.com>
3597             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3598
3599         * config/i386/sse.md
3600         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3601         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3602         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3603         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3604         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3605         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3606         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3607         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3608         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3609         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3610         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3611         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3612         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3613
3614 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3615
3616         PR rtl-optimization/63210
3617         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3618         HARD_REGNO is not available for CONFLICT_A.
3619
3620 2014-09-23  Andi Kleen  <ak@linux.intel.com>
3621
3622         * cgraph.h (symtab_node): Add no_reorder attribute.
3623         (symbol_table::output_asm_statements): Remove.
3624         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3625         (cgraph_node::create_version_clone): Dito.
3626         (symbol_table::output_asm_statements): Remove.
3627         * trans-mem.c (ipa_tm_create_version_alias): Dito.
3628         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3629         (output_in_order): Add no_reorder flag. Only handle no_reorder
3630         nodes when set.
3631         (symbol_table::compile): Add separate pass for no_reorder nodes.
3632         (process_common_attributes): Set no_reorder flag in symtab node.
3633         Add node argument.
3634         (process_function_and_variable_attributes): Pass symtab nodes to
3635         process_common_attributes.
3636         * doc/extend.texi (no_reorder): Document no_reorder attribute.
3637         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3638         (lto_output_varpool_node): Dito.
3639         (input_overwrite_node): Dito.
3640         (input_varpool_node): Dito.
3641         * varpool.c (varpool_node::add): Set no_reorder attribute.
3642         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3643         (symbol_table::output_variables): Dito.
3644         * symtab.c (symtab_node::dump_base): Print no_reorder.
3645
3646 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
3647
3648         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3649         be INVALID_REGNUM.
3650
3651 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
3652
3653         * configure: Regenerate.
3654
3655 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
3656
3657         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3658         when result_mode == shift_mode.
3659
3660 2014-09-23  Kostya Serebryany  <kcc@google.com>
3661
3662         Update to match the changed asan API.
3663         * asan.c (asan_global_struct): Update the __asan_global definition
3664         to match the new API.
3665         (asan_add_global): Ditto.
3666         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3667         to __asan_init_v4.
3668
3669 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3670
3671         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3672         refine the constraints used on 32/64-bit floating point moves.
3673         (f32_av): Likewise.
3674         (f64_vsx): Likewise.
3675         (f64_dm): Likewise.
3676         (f64_av): Likewise.
3677         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3678         (BOOL_REGS_OP1): Likewise.
3679         (BOOL_REGS_OP2): Likewise.
3680         (BOOL_REGS_UNARY): Likewise.
3681         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3682         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
3683         for moves involving VSX registers.  Do not use constraints that
3684         target VSX registers for decimal types.
3685         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3686         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3687
3688 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
3689
3690         * tree.h (int_bit_position): Turn into inline function;
3691         implement using wide int.
3692         * tree.c (int_bit_position): Remove.
3693
3694 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
3695
3696         PR bootstrap/63280
3697         * target-globals.c (target_globals::~target_globals): Fix location
3698         of ira_int destruction.
3699
3700 2014-09-23  Renlin Li  <renlin.li@arm.com>
3701
3702         * config/aarch64/aarch64.md (return): New.
3703         (simple_return): Likewise.
3704         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
3705         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
3706
3707 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
3708
3709         * common/config/aarch64/aarch64-common.c:
3710         (default_options aarch_option_optimization_table):
3711         Default to -fsched-pressure.
3712
3713 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
3714
3715         * cfgcleanup.c (try_optimize_cfg): Do not remove label
3716         with LABEL_PRESERVE_P flag set.
3717
3718 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3719             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3720             Anna Tikhonova  <anna.tikhonova@intel.com>
3721             Ilya Tocar  <ilya.tocar@intel.com>
3722             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3723             Ilya Verbin  <ilya.verbin@intel.com>
3724             Kirill Yukhin  <kirill.yukhin@intel.com>
3725             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3726
3727         * config/i386/sse.md
3728         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
3729         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3730         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3731         (define_insn "sse2_shufpd_v2df_mask"): New.
3732
3733 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3734             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3735             Anna Tikhonova  <anna.tikhonova@intel.com>
3736             Ilya Tocar  <ilya.tocar@intel.com>
3737             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3738             Ilya Verbin  <ilya.verbin@intel.com>
3739             Kirill Yukhin  <kirill.yukhin@intel.com>
3740             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3741
3742         * config/i386/sse.md
3743         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3744         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
3745         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
3746         (define_insn "sse_shufps_v4sf_mask"): New.
3747
3748 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3749             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3750             Anna Tikhonova  <anna.tikhonova@intel.com>
3751             Ilya Tocar  <ilya.tocar@intel.com>
3752             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3753             Ilya Verbin  <ilya.verbin@intel.com>
3754             Kirill Yukhin  <kirill.yukhin@intel.com>
3755             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3756
3757         * config/i386/sse.md
3758         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
3759         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
3760         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
3761         (define_insn "unpcklps128_mask"): New.
3762
3763 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3764             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3765             Anna Tikhonova  <anna.tikhonova@intel.com>
3766             Ilya Tocar  <ilya.tocar@intel.com>
3767             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3768             Ilya Verbin  <ilya.verbin@intel.com>
3769             Kirill Yukhin  <kirill.yukhin@intel.com>
3770             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3771
3772         * config/i386/sse.md
3773         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
3774         (define_insn "avx512vl_unpckhpd128_mask"): New.
3775         (define_expand "avx_movddup256<mask_name>"): Add masking.
3776         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
3777         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
3778         (define_insn "avx512vl_unpcklpd128_mask"): New.
3779
3780 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
3781
3782         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3783         * doc/tm.texi: Regenerate.
3784         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
3785         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3786         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3787         Remove.
3788         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3789         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3790         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3791         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3792         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3793         Remove.
3794         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3795         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3796         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3797         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3798         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3799         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3800         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3801         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3802         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3803         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3804         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3805         Remove.
3806
3807 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
3808
3809         * tree-ssa-ccp.c (prop_value_d): Rename to ...
3810         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
3811         * ipa-prop.c (struct type_change_info): Rename to ...
3812         (prop_type_change_info): ... this; update uses.
3813         * ggc-page.c (globals): Rename to ...
3814         (static struct ggc_globals): ... this; update uses.
3815         * tree-ssa-loop-im.c (mem_ref): Rename to ...
3816         (im_mem_ref): ... this; update uses.
3817         * ggc-common.c (loc_descriptor): Rename to ...
3818         (ggc_loc_descriptor): ... this; update uses.
3819         * lra-eliminations.c (elim_table): Rename to ...
3820         (lra_elim_table): ... this; update uses.
3821         * bitmap.c (output_info): Rename to ...
3822         (bitmap_output_info): ... this; update uses.
3823         * gcse.c (expr): Rename to ...
3824         (gcse_expr) ... this; update uses.
3825         (occr): Rename to ...
3826         (gcse_occr): .. this; update uses.
3827         * tree-ssa-copy.c (prop_value_d): Rename to ...
3828         (prop_value_t): ... this.
3829         * predict.c (block_info_def): Rename to ...
3830         (block_info): ... this; update uses.
3831         (edge_info_def): Rename to ...
3832         (edge_info): ... this; update uses.
3833         * profile.c (bb_info): Rename to ...
3834         (bb_profile_info): ... this; update uses.
3835         * alloc-pool.c (output_info): Rename to ...
3836         (pool_output_info): ... this; update uses.
3837         * ipa-cp.c (topo_info): Rename to ..
3838         (ipa_topo_info): ... this; update uses.
3839         * tree-nrv.c (nrv_data): Rename to ...
3840         (nrv_data_t): ... this; update uses.
3841         * ipa-split.c (bb_info): Rename to ...
3842         (split_bb_info): ... this one.
3843         * profile.h (edge_info): Rename to ...
3844         (edge_profile_info): ... this one; update uses.
3845         * dse.c (bb_info): Rename to ...
3846         (dse_bb_info): ... this one; update uses.
3847         * cprop.c (occr): Rename to ...
3848         (cprop_occr): ... this one; update uses.
3849         (expr): Rename to ...
3850         (cprop_expr): ... this one; update uses.
3851
3852 2014-09-22  Jason Merrill  <jason@redhat.com>
3853
3854         * Makefile.in (check-parallel-%): Add @.
3855
3856 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
3857
3858         * config/aarch64/geniterators.sh: New.
3859         * config/aarch64/iterators.md (VDQF_DF): New.
3860         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
3861         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
3862
3863 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
3864
3865         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
3866         -lnosys when -msim absent.
3867
3868 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
3869
3870         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3871
3872 2014-09-22  Richard Biener  <rguenther@suse.de>
3873
3874         * gimplify.c (gimplify_init_constructor): Do not leave
3875         non-GIMPLE vector constructors around.
3876         * tree-cfg.c (verify_gimple_assign_single): Verify that
3877         CONSTRUCTORs have gimple elements.
3878
3879 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
3880
3881         PR debug/63328
3882         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
3883         insert a debug source bind stmt setting DEBUG_EXPR_DECL
3884         instead of a normal gimple assignment stmt.
3885
3886 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
3887
3888         * config/bfin/bfin.md: Fix use of constraints in define_split.
3889
3890 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3891
3892         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
3893         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
3894
3895 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3896
3897         * hard-reg-set.h: Include hash-table.h.
3898         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
3899         field.
3900         * target-globals.c (target_globals::~target_globals): Call
3901         hard_regs->finalize.
3902         * rtl.h (subreg_shape): New structure.
3903         (shape_of_subreg): New function.
3904         (simplifiable_subregs): Declare.
3905         * reginfo.c (simplifiable_subreg): New structure.
3906         (simplifiable_subregs_hasher): Likewise.
3907         (simplifiable_subregs): New function.
3908         (invalid_mode_changes): Delete.
3909         (alid_mode_changes, valid_mode_changes_obstack): New variables.
3910         (record_subregs_of_mode): Remove subregs_of_mode parameter.
3911         Record valid mode changes in valid_mode_changes.
3912         (find_subregs_of_mode): Remove subregs_of_mode parameter.
3913         Update calls to record_subregs_of_mode.
3914         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
3915         handling.  Initialize new variables.  Update call to
3916         find_subregs_of_mode.
3917         (invalid_mode_change_p): Check new variables instead of
3918         invalid_mode_changes.
3919         (finish_subregs_of_mode): Finalize new variables instead of
3920         invalid_mode_changes.
3921         (target_hard_regs::finalize): New function.
3922         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
3923         even when CLASS_CANNOT_CHANGE_MODE is undefined.
3924
3925 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3926
3927         * combine.c (subst): Use simplify_subreg_regno rather than
3928         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
3929
3930 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3931
3932         * rtl.h (subreg_info): Expand commentary
3933         * rtlanal.c (subreg_get_info): Likewise.
3934
3935 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
3936
3937         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3938         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3939         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
3940
3941 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3942
3943         * config/arm/arm.c: #include "tm-constrs.h"
3944         (thumb1_size_rtx_costs): Adjust rtx costs.
3945
3946 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
3947
3948         * configure.ac (target_header_dir): Move block defining
3949         this to before the block setting inhibit_libc.
3950         (inhibit_libc): When considering $with_headers, just
3951         check it it's explicitly "no".  If not, also check if
3952         $target_header_dir/stdio.h is present.  If not, set
3953         inhibit_libc=true.
3954         * configure: Regenerate.
3955
3956 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
3957
3958         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
3959
3960 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3961
3962         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
3963         insn for divides by integer powers of two.
3964         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
3965         (mod<mode>3): Fix formatting.
3966         (three anonymous define_insn and two define_split): Delete.
3967
3968 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3969
3970         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
3971         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
3972         (floatdisf2_internal2): Ditto.
3973         (ashrdi3_no_power): Ditto.  Fix formatting.
3974
3975 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3976
3977         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3978         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
3979         Tidy.
3980
3981 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3982
3983         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
3984         constant, use addsi3 directly.
3985         (three anonymous define_insn, two define_split): Delete.
3986         (sub<mode>3): Move.  Do not allow constant second operand.
3987         Generate different insn for constant first operand.
3988         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
3989         (subf<mode>3_imm): New.
3990         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
3991         (*plus_ltu<mode>): Only handle registers.
3992         (*plus_ltu<mode>_1): New.  Handle integer third operand.
3993         (*plus_gtu<mode>): Only handle registers.
3994         (*plus_gtu<mode>_1): New.  Handle integer third operand.
3995
3996 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3997
3998         * config/rs6000/rs6000.md (iorxor): New code_iterator.
3999         (iorxor): New code_attr.
4000         (IORXOR): New code_attr.
4001         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4002         (ior<mode>3, xor<mode>3): Delete.
4003         (<iorxor><mode>3): New.
4004         (splitter for "big" integer ior, xor): New.
4005         (*bool<mode>3): Move.  Also handle AND.
4006         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4007         (splitter for "big" integer ior, xor): Delete.
4008
4009 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4010
4011         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4012         (two anonymous define_insn and two define_split): Delete.
4013         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4014
4015 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4016
4017         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4018         (two anonymous define_insn and two define_split): Delete.
4019         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4020
4021 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4022
4023         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4024
4025 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4026
4027         * config/rs6000/predicates.md (ca_operand): Allow subregs.
4028         (input_operand): Do not allow ca_operand.
4029         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4030         carry bit, allow SImode and Pmode.
4031         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4032
4033 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
4034
4035         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4036         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
4037         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4038         (*call_rex64_ms_sysv): Remove.
4039         (*call_value_rex64_ms_sysv): Ditto.
4040         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4041
4042 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
4043
4044         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4045         operand 3 to "CnL".
4046
4047 2014-09-20  Andreas Schwab  <schwab@suse.de>
4048
4049         * config/ia64/ia64.md: Remove constraints from define_split
4050         patterns.
4051
4052 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4053
4054         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4055         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4056         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4057         (get_dynamic_type): Remove.
4058         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4059         (clear_speculation): Bring to ipa-deivrt.h
4060         (get_class_context): Rename to ...
4061         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4062         (contains_type_p): Update.
4063         (get_dynamic_type): Rename to ...
4064         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4065         (possible_polymorphic_call_targets): UPdate.
4066         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4067         * ipa-prop.c (ipa_analyze_call_uses): Update.
4068
4069 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4070
4071         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4072         privatize dynamic TLS variables.
4073
4074 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4075
4076         * diagnostic.c (warning_n): New function.
4077         * diagnostic-core.h (warning_n): Declare.
4078         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4079         output dynamic counts when available.
4080
4081 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4082
4083         PR tree-optimization/63255
4084         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4085         issue in setting body_removed flag.
4086
4087 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4088
4089         PR c++/61825
4090         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4091         that visibility change is possible
4092         (handle_weakref_attribute): Likewise.
4093         * cgraph.h (symtab_node): Add method get_create and
4094         field refuse_visibility_changes.
4095         (symtab_node::get_create): New method.
4096         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4097         * varasm.c (mark_weak): Verify that visibility change is
4098         possible.
4099
4100 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
4101
4102         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4103         for base_reg_operand to be common between LO_SUM and PLUS.
4104         (fusion_gpr_mem_combo): New predicate to match a fused address
4105         that combines the addis and memory offset address.
4106
4107         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4108         calling signature.
4109         (emit_fusion_gpr_load): Likewise.
4110
4111         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4112         signature to pass each argument separately, rather than
4113         using an operands array.  Rewrite the insns found by peephole2 to
4114         be a single insn, rather than hoping the insns will still be
4115         together when the peephole pass is done.  Drop being called via a
4116         normal peephole.
4117         (emit_fusion_gpr_load): Change calling signature to be called from
4118         the fusion_gpr_load_<mode> insns with a combined memory address
4119         instead of the peephole pass passing the addis and offset
4120         separately.
4121
4122         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4123         fusion.
4124         (power8 fusion peephole): Drop support for doing power8 via a
4125         normal peephole that was created by the peephole2 pass.
4126         (power8 fusion peephole2): Create a new insn with the fused
4127         address, so that the fused operation is kept together after
4128         register allocation is done.
4129         (fusion_gpr_load_<mode>): Likewise.
4130
4131 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4132
4133         PR lto/63286
4134         * tree.c (need_assembler_name_p): Do not mangle variadic types.
4135
4136 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
4137
4138         * recog.c (scratch_operand): Do not simply allow all hard registers:
4139         only allow those that are allocatable.
4140
4141 2014-09-19  Felix Yang  <felix.yang@huawei.com>
4142
4143         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4144         comments and fix spacing to conform to coding style.
4145
4146 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4147
4148         * genrecog.c (validate_pattern): Allow empty constraints in
4149         a match_scratch.
4150
4151 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
4152
4153         * dwarf2out.c (decl_ultimate_origin): Update comment.
4154         * tree.c (block_ultimate_origin): Same.
4155
4156 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4157
4158         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4159         Update GCC version name to GCC 5.
4160         (rs6000_function_arg_boundary): Likewise.
4161         (rs6000_function_arg): Likewise.
4162
4163 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4164
4165         * config/sh/sh.md: Fix use of constraints in define_split.
4166
4167 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
4168
4169         PR ipa/61998
4170         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4171
4172 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4173
4174         * doc/md.texi (Modifiers): Consistently use "read/write"
4175         nomenclature rather than "input/output".
4176         * genrecog.c (constraints_supported_in_insn_p): New.
4177         (validate_pattern): If needed, also check constraints on
4178         MATCH_SCRATCH operands.
4179         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4180         operands with no '=' or '+' modifier.
4181
4182 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4183
4184         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4185         scratch register as written.
4186
4187 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4188
4189         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4190         assignment.
4191
4192 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4193
4194         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4195         expanders.
4196
4197 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4198
4199         PR target/62662
4200         * config/s390/s390.c (s390_emit_epilogue): When doing the return
4201         address load optimization force s390_optimize_prologue to leave it
4202         that way.  Only do the optimization if we already decided to push
4203         r14 into a stack slot.
4204
4205 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
4206
4207         * asan.c (build_check_stmt): Alignment arg was added.
4208         (asan_expand_check_ifn): Optimization for alignment >= 8.
4209
4210 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4211
4212         * config/i386/vxworksae.h: Remove obsolete definitions.
4213         (STACK_CHECK_PROTECT): Define.
4214         * config/i386/vx-common.h: Remove.  Merge contents within
4215         config/i386/vxworks.h.
4216         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
4217         i386/vx-common.h.
4218
4219 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4220
4221         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
4222         * config/rs6000/t-vxworksmils: New file.
4223         * config/rs6000/vxworksmils.h: New file.
4224
4225 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4226
4227         * varasm.c (default_section_type_flags): Flag .persistent.bss
4228         sections as SECTION_BSS.
4229
4230 2014-09-19  Nick Clifton  <nickc@redhat.com>
4231
4232         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
4233         pop'ed registers so that DCE does not eliminate them.
4234
4235 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
4236
4237         PR lto/63298
4238         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
4239
4240 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
4241
4242         * system.h (LIBGCC2_TF_CEXT): Poison.
4243         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
4244         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
4245         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
4246         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
4247         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
4248         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
4249         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
4250         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
4251         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
4252
4253 2014-09-19  Kito Cheng  <kito@0xlab.org>
4254
4255         * except.h: Fix header guard.
4256         * addresses.h: Add missing header guard.
4257         * cfghooks.h: Likewise.
4258         * collect-utils.h: Likewise.
4259         * collect2-aix.h: Likewise.
4260         * conditions.h: Likewise.
4261         * cselib.h: Likewise.
4262         * dwarf2asm.h: Likewise.
4263         * graphds.h: Likewise.
4264         * graphite-scop-detection.h: Likewise.
4265         * gsyms.h: Likewise.
4266         * hw-doloop.h: Likewise.
4267         * incpath.h: Likewise.
4268         * ipa-inline.h: Likewise.
4269         * ipa-ref.h: Likewise.
4270         * ira-int.h: Likewise.
4271         * ira.h: Likewise.
4272         * lra-int.h: Likewise.
4273         * lra.h: Likewise.
4274         * lto-section-names.h: Likewise.
4275         * read-md.h: Likewise.
4276         * reload.h: Likewise.
4277         * rtl-error.h: Likewise.
4278         * sdbout.h: Likewise.
4279         * targhooks.h: Likewise.
4280         * tree-affine.h: Likewise.
4281         * xcoff.h: Likewise.
4282         * xcoffout.h: Likewise.
4283
4284 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
4285
4286         PR debug/63285
4287         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4288         if advance != 0.
4289
4290 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
4291
4292         PR target/61360
4293         * lra.c (lra): Call recog_init.
4294
4295 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
4296
4297         PR c++/62017
4298         * asan.c (transform_statements): Don't instrument clobber statements.
4299
4300 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4301
4302         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4303         to neon_load1_1reg<q>.
4304
4305 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
4306
4307         PR debug/63284
4308         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4309         if there are only debug stmts after the noreturn call, instead
4310         remove the debug stmts.
4311
4312 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
4313
4314         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4315         (odr_types_equivalent_p): Use pair hash.
4316         (odr_subtypes_equivalent_p): Likewise, do structural compare
4317         on ODR types that may be mismatched.
4318         (warn_odr): Support warning when only one field is given.
4319         (odr_types_equivalent_p): Strenghten comparsions made;
4320         support VOIDtype.
4321         (add_type_duplicate): Update VISITED hash set.
4322
4323 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4324
4325         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4326         Enable selection of 'posix' or no thread model.
4327
4328 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
4329
4330         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4331         when architecture is older than ARMv7.
4332
4333 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
4334
4335         PR target/61853
4336         * config/pa/pa.c (pa_function_value): Directly handle aggregates
4337         that fit exactly in a word or double word.
4338
4339 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
4340
4341         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4342         zmm/k regs support.
4343
4344 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4345             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4346             Anna Tikhonova  <anna.tikhonova@intel.com>
4347             Ilya Tocar  <ilya.tocar@intel.com>
4348             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4349             Ilya Verbin  <ilya.verbin@intel.com>
4350             Kirill Yukhin  <kirill.yukhin@intel.com>
4351             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4352
4353         * config/i386/i386.c
4354         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
4355         * config/i386/sse.md
4356         (define_mode_iterator VI48F_256): New.
4357         (define_mode_attr extract_type): Ditto.
4358         (define_mode_attr extract_suf): Ditto.
4359         (define_mode_iterator AVX512_VEC): Ditto.
4360         (define_expand
4361         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
4362         AVX512_VEC.
4363         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
4364         (define_insn
4365         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
4366         Ditto.
4367         (define_mode_attr extract_type_2): Ditto.
4368         (define_mode_attr extract_suf_2): Ditto.
4369         (define_mode_iterator AVX512_VEC_2): Ditto.
4370         (define_expand
4371         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
4372         AVX512_VEC_2 mode iterator.
4373         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4374         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
4375         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4376         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4377         (define_split for V16FI mode): Ditto.
4378         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4379         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4380         (define_split for VI8F_256 mode): Ditto.
4381         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4382         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4383         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4384         (define_split for VI4F_256 mode): Ditto.
4385         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
4386         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4387         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4388         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
4389         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
4390         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
4391         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
4392         Update `type' attribute, remove explicit `memory' attribute calculation.
4393
4394 2014-09-16  Kito Cheng  <kito@0xlab.org>
4395
4396         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
4397         ira_spilled_reg_stack_slots_num if using lra.
4398         (do_reload): Remove release ira_spilled_reg_stack_slots part.
4399         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
4400         make sure not using lra.
4401         (ira_reuse_stack_slot): Likewise.
4402         (ira_mark_new_stack_slot): Likewise.
4403
4404 2014-09-15  Andi Kleen  <ak@linux.intel.com>
4405
4406         * function.c (allocate_struct_function): Force
4407         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
4408         profiling is disabled.
4409
4410 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
4411
4412         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
4413         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
4414         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
4415         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
4416         macro with statically checked member functions.
4417         * rtl.h (rtx_insn::deleted): New method.
4418         (rtx_insn::set_deleted): Likewise.
4419         (rtx_insn::set_undeleted): Likewise.
4420         (INSN_DELETED_P): Remove.
4421
4422 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
4423
4424         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
4425         result of emit_jump_insn_before to a new variable.
4426         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
4427         (mark_jump_label_1): Likewise.
4428         (mark_jump_label_asm): Likewise.
4429         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
4430         * rtl.h (mark_jump_label): Adjust.
4431
4432 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
4433
4434         * Makefile.in (dg_target_exps): Remove.
4435         (check_gcc_parallelize): Change to just an upper bound number.
4436         (check-%-subtargets): Always print the non-parallelized goals.
4437         (check_p_vars, check_p_comma, check_p_subwork): Remove.
4438         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
4439         check_p_numbers3, check_p_numbers4, check_p_numbers5,
4440         check_p_numbers6): New variables.
4441         (check_p_numbers): Set to sequence from 1 to 9999.
4442         (check_p_subdirs): Set to sequence from 1 to minimum of
4443         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
4444         or 128.
4445         (check-%, check-parallel-%): Rewritten so that for parallelized
4446         testing each job runs all the *.exp files, with
4447         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
4448
4449 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4450
4451         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4452         rtx to rtx_insn *.
4453         (arc_sets_cc_p): Likewise.
4454         * config/arc/arc.c (arc_print_operand): Use methods of
4455         "final_sequence" for clarity, and to enable strengthening of
4456         locals "jump" and "delay" from rtx to rtx_insn *.
4457         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
4458         rtx_insn *; use method of rtx_sequence for typesafety.
4459         (arc_get_insn_variants): Use insn method of rtx_sequence for
4460         typesafety.
4461         (arc_pad_return): Likewise.
4462         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
4463         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
4464         dyn_cast to rtx_sequence *, using insn method for typesafety.
4465         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
4466         rtx_sequence * and use insn method when invoking get_attr_length.
4467         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
4468         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
4469         rtx_sequence *, introducing a local "seq", using its insn method
4470         from typesafety and clarity.
4471         (add_sched_insns_for_speculation): Strengthen local "next" from
4472         rtx to rtx_insn *.
4473         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
4474         (predicate_insn): Likewise.
4475         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
4476         second param.
4477         * config/cris/cris.c (cris_notice_update_cc): Likewise.
4478         * config/epiphany/epiphany-protos.h
4479         (extern void epiphany_insert_mode_switch_use): Likewise for param
4480         "insn".
4481         (get_attr_sched_use_fpu): Likewise for param.
4482         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
4483         Likewise for param "insn".
4484         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
4485         param "insn" of "target_insert_mode_switch_use" callback.
4486         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
4487         (frv_issues_to_branch_unit_p): Likewise.
4488         (frv_pack_insn_p): Likewise.
4489         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
4490         const rtx * (i.e. mutable rtx_def * const *) to
4491         rtx_insn * const *.
4492         * config/i386/i386-protos.h (standard_sse_constant_opcode):
4493         Strengthen first param from rtx to rtx_insn *.
4494         (output_fix_trunc): Likewise.
4495         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
4496         (output_fix_trunc): Likewise.
4497         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
4498         local "insn".
4499         (min_insn_size): Likewise for param "insn".
4500         (get_mem_group): Likewise.
4501         (is_cmp): Likewise.
4502         (get_insn_path): Likewise.
4503         (get_insn_group): Likewise.
4504         (count_num_restricted): Likewise.
4505         (fits_dispatch_window): Likewise.
4506         (add_insn_window): Likewise.
4507         (add_to_dispatch_window): Likewise.
4508         (debug_insn_dispatch_info_file): Likewise.
4509         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
4510         first param.
4511         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
4512         "cmp" and local "prev".
4513         (m32c_output_compare): Likewise for param "insn".
4514         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
4515         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
4516         (define_predicate "large_insn_p"): Likewise.
4517         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
4518         param from rtx to rtx_insn *.
4519         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
4520         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
4521         (m68k_sched_attr_size): Likewise.
4522         (sched_get_opxy_mem_type): Likewise for param "insn".
4523         (m68k_sched_attr_op_mem): Likewise.
4524         (sched_mem_operand_p): Likewise.
4525         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
4526         * config/mep/mep.c (mep_multi_slot): Likewise.
4527         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
4528         first param.
4529         (mips_sync_loop_insns): Likewise.
4530         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
4531         method of "final_sequence" for typesafety.
4532         (mips_process_sync_loop): Strengthen param "insn" from rtx to
4533         rtx_insn *.
4534         (mips_output_sync_loop): Likewise.
4535         (mips_sync_loop_insns): Likewise.
4536         (mips_74k_agen_init): Likewise.
4537         (mips_sched_init): Use NULL rather than NULL_RTX when working with
4538         insns.
4539         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
4540         Strengthen param "insn" from rtx to rtx_insn *.
4541         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
4542         local "insn".
4543         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
4544         param.
4545         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
4546         "insn".  Use method of rtx_sequence for typesafety.
4547         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
4548         rtx_insn *.
4549         (branch_needs_nop_p): Likewise.
4550         (use_skip_p): Likewise.
4551         (pa_insn_refs_are_delayed): Likewise.
4552         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
4553         for locals "insn", "ninsn".
4554         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
4555         "insn".
4556         (is_cracked_insn): Likewise.
4557         (is_branch_slot_insn): Likewise.
4558         (is_nonpipeline_insn): Likewise.
4559         (insn_terminates_group_p): Likewise.
4560         (insn_must_be_first_in_group): Likewise.
4561         (insn_must_be_last_in_group): Likewise.
4562         (force_new_group): Likewise for param "next_insn".
4563         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
4564         "insn".
4565         (s390_sched_score): Likewise.
4566         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
4567         (rtx sfunc_uses_reg): Likewise for sole param.
4568         * config/sh/sh.c (sh_print_operand): Use insn method of
4569         final_sequence for typesafety.
4570         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
4571         Use insn method of final_sequence for typesafety.
4572         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
4573         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
4574         for param.
4575         (eligible_for_return_delay): Likewise.
4576         (eligible_for_sibcall_delay): Likewise.
4577         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
4578         (eligible_for_return_delay): Likewise.
4579         (eligible_for_sibcall_delay): Likewise.
4580         * config/stormy16/stormy16-protos.h
4581         (xstormy16_output_cbranch_hi): Likewise for final param.
4582         (xstormy16_output_cbranch_si): Likewise.
4583         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
4584         (xstormy16_output_cbranch_si): Likewise.
4585         * config/v850/v850-protos.h (notice_update_cc): Likewise.
4586         * config/v850/v850.c (notice_update_cc): Likewise.
4587
4588         * final.c (get_attr_length_1): Strengthen param "insn" and param
4589         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
4590         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
4591         (get_attr_min_length): Likewise.
4592         (shorten_branches): Likewise for signature of locals "length_fun"
4593         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
4594         from a checked cast and use its methods for clarity and to enable
4595         strengthening local "inner_insn" from rtx to rtx_insn *.
4596         * genattr.c (gen_attr): When writing out the prototypes of the
4597         various generated "get_attr_" functions, strengthen the params of
4598         the non-const functions from rtx to rtx_insn *.
4599         Similarly, strengthen the params of insn_default_length,
4600         insn_min_length, insn_variable_length_p, insn_current_length.
4601         (main): Similarly, strengthen the param of num_delay_slots,
4602         internal_dfa_insn_code, insn_default_latency, bypass_p,
4603         insn_latency, min_issue_delay, print_reservation,
4604         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4605         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
4606         to hook_int_rtx_insn_unreachable.
4607         * genattrtab.c (write_attr_get): When writing out the generated
4608         "get_attr_" functions, strengthen the param "insn" from rtx to
4609         rtx_insn *, eliminating a checked cast.
4610         (make_automaton_attrs): When writing out prototypes of
4611         "internal_dfa_insn_code_", "insn_default_latency_" functions
4612         and the "internal_dfa_insn_code" and "insn_default_latency"
4613         callbacks, strengthen their params from rtx to rtx_insn *
4614         * genautomata.c (output_internal_insn_code_evaluation): When
4615         writing out code, add a checked cast from rtx to rtx_insn * when
4616         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4617         (output_dfa_insn_code_func): Strengthen param of generated
4618         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4619         (output_trans_func): Likewise for generated function
4620         "state_transition".
4621         (output_internal_insn_latency_func): When writing out generated
4622         function "internal_insn_latency", rename params from "insn" and
4623         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
4624         locals "insn" and "insn2" as rtx_insn * with checked casts once
4625         we've proven that we're not dealing with const0_rtx.
4626         (output_insn_latency_func):  Strengthen param of generated
4627         function "insn_latency" from rtx to rtx_insn *.
4628         (output_print_reservation_func): Likewise for generated function
4629         "print_reservation".
4630         (output_insn_has_dfa_reservation_p): Likewise for generated
4631         function "insn_has_dfa_reservation_p".
4632         * hooks.c (hook_int_rtx_unreachable): Rename to...
4633         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4634         from rtx to rtx_insn *.
4635         * hooks.h (hook_int_rtx_unreachable): Likewise.
4636         (extern int hook_int_rtx_insn_unreachable): Likewise.
4637         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4638         (get_attr_min_length): Likewise.
4639         * recog.c (get_enabled_alternatives): Likewise.
4640         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4641         * reorg.c (find_end_label): Introduce local rtx "pat" and
4642         strengthen local "insn" from rtx to rtx_insn *.
4643         (redundant_insn): Use insn method of "seq" rather than element for
4644         typesafety; strengthen local "control" from rtx to rtx_insn *.
4645         * resource.c (mark_referenced_resources): Add checked cast to
4646         rtx_insn * within INSN/JUMP_INSN case.
4647         (mark_set_resources): Likewise.
4648         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4649         rtx to rtx_insn *.
4650
4651 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4652
4653         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4654         param "label" from rtx to rtx_insn *.
4655         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4656         and local "op".
4657         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4658         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4659         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4660         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4661         * final.c (default_label_align_after_barrier_max_skip): Strengthen
4662         param from rtx to rtx_insn *.
4663         (default_loop_align_max_skip): Likewise.
4664         (default_label_align_max_skip): Likewise.
4665         (default_jump_align_max_skip): Likewise.
4666         * target.def (label_align_after_barrier_max_skip): Likewise.
4667         (loop_align_max_skip): Likewise.
4668         (label_align_max_skip): Likewise.
4669         (jump_align_max_skip): Likewise.
4670         * targhooks.h (default_label_align_after_barrier_max_skip):
4671         Likewise.
4672         (default_loop_align_max_skip): Likewise.
4673         (default_label_align_max_skip): Likewise.
4674         (default_jump_align_max_skip): Likewise.
4675
4676 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4677
4678         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4679         from const_rtx to const rtx_insn *.  Update union members from rtx
4680         to rtx_insn *.
4681         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4682         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4683         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4684         strengthen both params from const_rtx to const rtx_insn *.
4685         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4686         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4687         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4688         rtx_insn *.
4689         * target.def (can_follow_jump): Strengthen both params from
4690         const_rtx to const rtx_insn *, and update default implementation
4691         from hook_bool_const_rtx_const_rtx_true to
4692         hook_bool_const_rtx_insn_const_rtx_insn_true.
4693
4694 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
4695
4696         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
4697         "insn" from rtx to rtx_insn *.
4698         * sched-int.h (deps_start_bb): Likewise for 2nd param.
4699
4700 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4701             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4702             Anna Tikhonova  <anna.tikhonova@intel.com>
4703             Ilya Tocar  <ilya.tocar@intel.com>
4704             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4705             Ilya Verbin  <ilya.verbin@intel.com>
4706             Kirill Yukhin  <kirill.yukhin@intel.com>
4707             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4708
4709         * config/i386/sse.md
4710         (define_insn "vcvtph2ps<mask_name>"): Add masking.
4711         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
4712         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
4713         (define_expand "vcvtps2ph_mask"): New.
4714         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
4715         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4716         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4717
4718 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4719             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4720             Anna Tikhonova  <anna.tikhonova@intel.com>
4721             Ilya Tocar  <ilya.tocar@intel.com>
4722             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4723             Ilya Verbin  <ilya.verbin@intel.com>
4724             Kirill Yukhin  <kirill.yukhin@intel.com>
4725             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4726
4727         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4728         New.
4729         (define_mode_iterator VI24_AVX512BW_1): Ditto.
4730         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4731         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4732         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4733         also for TARGET_AVX512VL.
4734         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4735
4736 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
4737
4738         * doc/install.texi (Options specification): add
4739         --disable-libsanitizer item.
4740
4741 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
4742             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4743
4744         PR target/61407
4745         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
4746         and above.
4747         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
4748         kernel version check to avoid incrementing it after every major OS X
4749         release.
4750         (darwin_default_min_version): Avoid static memory buffer.
4751
4752 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
4753
4754         * tree.c (need_assembler_name_p): Store C++ type mangling only
4755         for aggregates.
4756
4757 2014-09-13  Marek Polacek  <polacek@redhat.com>
4758
4759         * tree.c (protected_set_expr_location): Don't check whether T is
4760         non-null here.
4761
4762 2014-09-12  DJ Delorie  <dj@redhat.com>
4763
4764         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
4765         (extend_and_shift1_hipsi2): Likewise.
4766         (extend_and_shift2_hipsi2): Likewise.
4767
4768 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
4769
4770         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
4771         with NULL when dealing with an insn.
4772         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
4773         from rtx to rtx_insn *.
4774         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
4775         const_rtx to const rtx_insn *.
4776         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
4777
4778 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
4779
4780         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
4781         assert.
4782
4783 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
4784
4785         * target.def (libgcc_floating_mode_supported_p): New hook.
4786         * targhooks.c (default_libgcc_floating_mode_supported_p): New
4787         function.
4788         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
4789         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
4790         (LIBGCC2_HAS_TF_MODE): Remove.
4791         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
4792         * doc/tm.texi: Regenerate.
4793         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
4794         machine mode.
4795         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
4796         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
4797         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
4798         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
4799         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4800         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
4801         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
4802         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
4803         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
4804         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
4805         function.
4806         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
4807         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4808         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4809         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4810         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4811         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4812         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4813         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
4814         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
4815         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
4816         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4817         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
4818         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
4819         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
4820         Remove.
4821         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
4822         New macro.
4823         (ia64_libgcc_floating_mode_supported_p): New function.
4824         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
4825         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
4826         (IA64_NO_LIBGCC_TFMODE): Define.
4827         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
4828         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
4829         macro.
4830         (pdp11_scalar_mode_supported_p): New function.
4831         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
4832         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
4833
4834 2014-09-12  Richard Biener  <rguenther@suse.de>
4835
4836         PR middle-end/63237
4837         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
4838
4839 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
4840
4841         * tree.c (integer_each_onep): New function.
4842         * tree.h (integer_each_onep): Declare it.
4843         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
4844         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
4845         (X & 1) == 0 for vector and complex.
4846
4847 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4848
4849         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
4850         for A57.
4851         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
4852         cost to spilling from integer to FP registers.
4853
4854 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4855
4856         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
4857         move handling.
4858         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
4859         are now handled correctly.
4860
4861 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4862
4863         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
4864         handling of CALLER_SAVE_REGS and POINTER_REGS.
4865
4866 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4867
4868         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
4869         the number of hard registers.
4870
4871 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4872             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4873             Anna Tikhonova  <anna.tikhonova@intel.com>
4874             Ilya Tocar  <ilya.tocar@intel.com>
4875             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4876             Ilya Verbin  <ilya.verbin@intel.com>
4877             Kirill Yukhin  <kirill.yukhin@intel.com>
4878             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4879
4880         * config/i386/sse.md
4881         (define_mode_iterator VI48_AVX512VL): New.
4882         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
4883         "avx512f_vternlog<mode>_maskz" and update mode iterator.
4884         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
4885         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
4886         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
4887         "avx512f_vternlog<mode>_mask" and update mode iterator.
4888         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
4889         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
4890         iterator.
4891         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
4892         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
4893         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
4894         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
4895         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
4896         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
4897
4898 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4899             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4900             Anna Tikhonova  <anna.tikhonova@intel.com>
4901             Ilya Tocar  <ilya.tocar@intel.com>
4902             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4903             Ilya Verbin  <ilya.verbin@intel.com>
4904             Kirill Yukhin  <kirill.yukhin@intel.com>
4905             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4906
4907         * config/i386/sse.md (VI128_256): Delete.
4908         (define_mode_iterator VI124_256): New.
4909         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
4910         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
4911         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
4912         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
4913         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
4914         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
4915         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
4916         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
4917         iterator.
4918         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
4919         in presence of AVX-512.
4920
4921 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4922             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4923             Anna Tikhonova  <anna.tikhonova@intel.com>
4924             Ilya Tocar  <ilya.tocar@intel.com>
4925             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4926             Ilya Verbin  <ilya.verbin@intel.com>
4927             Kirill Yukhin  <kirill.yukhin@intel.com>
4928             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4929
4930         * config/i386/sse.md
4931         (define_expand "<avx512>_gathersi<mode>"): Rename from
4932         "avx512f_gathersi<mode>".
4933         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
4934         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
4935         (define_expand "<avx512>_gatherdi<mode>"): Rename from
4936         "avx512f_gatherdi<mode>".
4937         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
4938         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
4939         wide versions.
4940         (define_expand "<avx512>_scattersi<mode>"): Rename from
4941         "avx512f_scattersi<mode>".
4942         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
4943         (define_expand "<avx512>_scatterdi<mode>"): Rename from
4944         "avx512f_scatterdi<mode>".
4945         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
4946
4947 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
4948
4949         * ira.h (ira_finish_once): Delete.
4950         * ira-int.h (target_ira_int::~target_ira_int): Declare.
4951         (target_ira_int::free_ira_costs): Likewise.
4952         (target_ira_int::free_register_move_costs): Likewise.
4953         (ira_finish_costs_once): Delete.
4954         * ira.c (free_register_move_costs): Replace with...
4955         (target_ira_int::free_register_move_costs): ...this new function.
4956         (target_ira_int::~target_ira_int): Define.
4957         (ira_init): Call free_register_move_costs as a member function rather
4958         than a global function.
4959         (ira_finish_once): Delete.
4960         * ira-costs.c (free_ira_costs): Replace with...
4961         (target_ira_int::free_ira_costs): ...this new function.
4962         (ira_init_costs): Call free_ira_costs as a member function rather
4963         than a global function.
4964         (ira_finish_costs_once): Delete.
4965         * target-globals.c (target_globals::~target_globals): Call the
4966         target_ira_int destructor.
4967         * toplev.c: Include lra.h.
4968         (finalize): Call lra_finish_once rather than ira_finish_once.
4969
4970 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
4971
4972         * common.opt (flto-odr-type-merging): New flag.
4973         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
4974         (types_same_for_odr): Likewise.
4975         (odr_subtypes_equivalent_p): Likewise.
4976         (add_type_duplicate): Do not walk type variants.
4977         (register_odr_type): New function.
4978         * ipa-utils.h (register_odr_type): Declare.
4979         (odr_type_p): New function.
4980         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
4981         TYPE_DECLs
4982         * doc/invoke.texi (-flto-odr-type-merging): Document.
4983         * tree.c (need_assembler_name_p): Compute ODR names when asked
4984         for it.
4985         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
4986
4987 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
4988
4989         PR target/63228
4990         * config/i386/i386.c (ix86_option_override_internal): Also turn
4991         off OPTION_MASK_ABI_X32 for -m16.
4992
4993 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
4994
4995         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
4996         GPR instead of P.
4997
4998 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
4999
5000         PR target/58757
5001         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5002         Directly forward to __*_DENORM_MIN__.
5003
5004 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
5005
5006         * rtl.h (LABEL_REF_LABEL): New macro.
5007
5008         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5009         of XEXP (, 0), where we know that we have a LABEL_REF.
5010         * cfgbuild.c (make_edges): Likewise.
5011         (purge_dead_tablejump_edges): Likewise.
5012         * cfgexpand.c (convert_debug_memory_address): Likewise.
5013         * cfgrtl.c (patch_jump_insn): Likewise.
5014         * combine.c (distribute_notes): Likewise.
5015         * cse.c (hash_rtx_cb): Likewise.
5016         (exp_equiv_p): Likewise.
5017         (fold_rtx): Likewise.
5018         (check_for_label_ref): Likewise.
5019         * cselib.c (rtx_equal_for_cselib_1): Likewise.
5020         (cselib_hash_rtx): Likewise.
5021         * emit-rtl.c (mark_label_nuses): Likewise.
5022         * explow.c (convert_memory_address_addr_space): Likewise.
5023         * final.c (output_asm_label): Likewise.
5024         (output_addr_const): Likewise.
5025         * gcse.c (add_label_notes): Likewise.
5026         * genconfig.c (walk_insn_part): Likewise.
5027         * genrecog.c (validate_pattern): Likewise.
5028         * ifcvt.c (cond_exec_get_condition): Likewise.
5029         (noce_emit_store_flag): Likewise.
5030         (noce_get_alt_condition): Likewise.
5031         (noce_get_condition): Likewise.
5032         * jump.c (maybe_propagate_label_ref): Likewise.
5033         (mark_jump_label_1): Likewise.
5034         (redirect_exp_1): Likewise.
5035         (rtx_renumbered_equal_p): Likewise.
5036         * lra-constraints.c (operands_match_p): Likewise.
5037         * reload.c (operands_match_p): Likewise.
5038         (find_reloads): Likewise.
5039         * reload1.c (set_label_offsets): Likewise.
5040         * reorg.c (get_branch_condition): Likewise.
5041         * rtl.c (rtx_equal_p_cb): Likewise.
5042         (rtx_equal_p): Likewise.
5043         * rtlanal.c (reg_mentioned_p): Likewise.
5044         (rtx_referenced_p): Likewise.
5045         (get_condition): Likewise.
5046         * sched-vis.c (print_value): Likewise.
5047         * varasm.c (const_hash_1): Likewise.
5048         (compare_constant): Likewise.
5049         (const_rtx_hash_1): Likewise.
5050         (output_constant_pool_1): Likewise.
5051
5052 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
5053
5054         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5055         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5056         instead of minus.
5057         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5058         cr6_test_for_lt_reverse): Ditto.
5059
5060 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
5061
5062         PR c++/61489
5063         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5064
5065 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5066
5067         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5068         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5069         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5070         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5071         Delete.
5072
5073         (aarch64_fold_builtin): Remove all reinterpret cases.
5074
5075         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5076
5077         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5078
5079         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5080         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5081         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5082         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5083         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5084         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5085         aarch64_reinterpretv2df<mode>): Delete.
5086
5087         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5088
5089         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5090         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5091         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5092         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5093         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5094         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5095         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5096         vreinterpret_u32_f64): Use cast.
5097
5098         * config/aarch64/iterators.md (VD_RE): Delete.
5099
5100 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5101
5102         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5103         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5104         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5105         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5106         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5107         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5108         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5109         Replace inline assembler with __aarch64_vset_lane_any.
5110
5111 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
5112
5113         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5114         types.
5115         (vmull_high_lane_s32): Likewise.
5116         (vmull_high_lane_u16): Likewise.
5117         (vmull_high_lane_u32): Likewise.
5118
5119 2014-09-11  Jason Merrill  <jason@redhat.com>
5120
5121         PR c++/58678
5122         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5123
5124 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
5125
5126         PR target/63223
5127         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5128         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
5129         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5130
5131 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5132             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5133             Anna Tikhonova  <anna.tikhonova@intel.com>
5134             Ilya Tocar  <ilya.tocar@intel.com>
5135             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5136             Ilya Verbin  <ilya.verbin@intel.com>
5137             Kirill Yukhin  <kirill.yukhin@intel.com>
5138             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5139
5140         * config/i386/sse.md
5141         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5142         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5143         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5144         New.
5145         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5146         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5147         iterator.
5148         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5149         New.
5150         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5151         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5152         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5153         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5154         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5155         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5156         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5157         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5158         iterator.
5159         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5160         New.
5161         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5162         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5163         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5164
5165 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5166
5167         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5168         to access removed nodes.
5169
5170 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5171
5172         PR tree-optimization/63186
5173         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5174         (mark_nonssa_use): Likewise.
5175         (verify_non_ssa_vars): Verify all header blocks for label
5176         definitions.
5177
5178 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5179             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5180             Anna Tikhonova  <anna.tikhonova@intel.com>
5181             Ilya Tocar  <ilya.tocar@intel.com>
5182             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5183             Ilya Verbin  <ilya.verbin@intel.com>
5184             Kirill Yukhin  <kirill.yukhin@intel.com>
5185             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5186
5187         * config/i386/sse.md
5188         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5189         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5190         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5191         "<avx2_avx512f>_permvar<mode><mask_name>".
5192         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5193         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5194         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5195         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5196         Ditto.
5197         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5198         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5199         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5200         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5201
5202 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5203
5204         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5205         V2DF, V4SF, DF, and DI modes.
5206         (vsx_fmav2df2): Likewise.
5207         (vsx_float_fix_<mode>2): Likewise.
5208         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5209
5210 2014-09-10  Xinliang David Li  <davidxl@google.com>
5211
5212         PR target/63209
5213         * config/arm/arm.md (movcond_addsi): Handle case where source
5214         and target operands are the same.
5215
5216 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
5217
5218         * final.c (this_is_asm_operands): Strengthen this variable from
5219         rtx to const rtx_insn *.
5220         * output.h (this_is_asm_operands): Likewise.
5221         * rtl-error.c (location_for_asm): Strengthen param "insn" from
5222         const_rtx to const rtx_insn *.
5223         (diagnostic_for_asm): Likewise.
5224         * rtl-error.h (error_for_asm): Likewise.
5225         (warning_for_asm): Likewise.
5226
5227 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
5228
5229         * genextract.c (print_header): When writing out insn_extract to
5230         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5231         * recog.h (insn_extract): Strengthen the param from rtx to
5232         rtx_insn *.
5233
5234 2014-09-10  Mike Stump  <mikestump@comcast.net>
5235
5236         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
5237         8.6.1.
5238
5239 2014-09-10  Martin Jambor  <mjambor@suse.cz>
5240
5241         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
5242         (analyze): Do not set analyze flag if expand_thunk returns false;.
5243         (create_wrapper): Likewise.
5244         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5245
5246 2014-09-10  Martin Jambor  <mjambor@suse.cz>
5247
5248         PR ipa/61654
5249         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
5250         new decl properly.  Analyze the new thunk if it is expanded.
5251
5252 2014-09-10  Andreas Schwab  <schwab@suse.de>
5253
5254         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5255         [USED_FOR_TARGET]: Define.
5256
5257 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
5258
5259         * config/mips/mips.c (mips_secondary_reload_class): Handle
5260         regno < 0 case.
5261
5262 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
5263
5264         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5265         assignment.
5266
5267 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
5268
5269         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5270         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5271         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5272         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5273         flag_delete_null_pointer_checks for them.
5274         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5275         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5276         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5277         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5278         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5279         stmt's iterator.
5280         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5281         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5282         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5283         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5284         * doc/invoke.texi (-fsanitize=nonnull-attribute,
5285         -fsanitize=returns-nonnull-attribute): Document.
5286
5287         * ubsan.h (struct ubsan_mismatch_data): Removed.
5288         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5289         * ubsan.c (ubsan_source_location): For unknown locations,
5290         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5291         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5292         Allow more than one location and arbitrary extra arguments passed
5293         in ... instead of through MISMATCH pointer.
5294         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5295         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5296         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5297         callers.
5298
5299 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5300             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5301             Anna Tikhonova  <anna.tikhonova@intel.com>
5302             Ilya Tocar  <ilya.tocar@intel.com>
5303             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5304             Ilya Verbin  <ilya.verbin@intel.com>
5305             Kirill Yukhin  <kirill.yukhin@intel.com>
5306             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5307
5308         * config/i386/sse.md
5309         (define_mode_iterator VI48F): New.
5310         (define_insn "<avx512>_compress<mode>_mask"): Rename from
5311         "avx512f_compress<mode>_mask" and update mode iterator.
5312         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5313         "avx512f_compressstore<mode>_mask" and update mode iterator.
5314         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5315         "avx512f_expand<mode>_maskz" and update mode iterator.
5316         (define_insn "<avx512>_expand<mode>_mask"): Rename from
5317         "avx512f_expand<mode>_mask" and update mode iterator.
5318
5319 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5320             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5321             Anna Tikhonova  <anna.tikhonova@intel.com>
5322             Ilya Tocar  <ilya.tocar@intel.com>
5323             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5324             Ilya Verbin  <ilya.verbin@intel.com>
5325             Kirill Yukhin  <kirill.yukhin@intel.com>
5326             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5327
5328         * config/i386/i386.c
5329         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5330         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5331         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5332         avx512dq_rangepv4sf_mask.
5333         * config/i386/sse.md
5334         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5335         UNSPEC_RANGE.
5336         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5337         (define_insn "reduces<mode>"): Ditto.
5338         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5339         Ditto.
5340         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5341         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5342         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5343
5344 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5345             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5346             Anna Tikhonova  <anna.tikhonova@intel.com>
5347             Ilya Tocar  <ilya.tocar@intel.com>
5348             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5349             Ilya Verbin  <ilya.verbin@intel.com>
5350             Kirill Yukhin  <kirill.yukhin@intel.com>
5351             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5352
5353         * config/i386/i386.c
5354         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
5355         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
5356         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
5357         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
5358         avx512vl_getmantv2df_mask.
5359         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
5360         avx512f_vgetmantv4sf_round.
5361         * config/i386/sse.md
5362         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
5363         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
5364         mode iterator.
5365         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
5366         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
5367         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
5368         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
5369         iterator..
5370         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
5371         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
5372         update mode iterator.
5373         (define_expand
5374         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
5375         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
5376         mode iterator.
5377         (define_insn
5378         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
5379         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
5380         update mode iterator.
5381         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
5382         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
5383         iterator..
5384         (define_insn
5385         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
5386         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
5387         mode iterator..
5388         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
5389         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
5390         update mode iterator.
5391         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
5392         "avx512f_getmant<mode><round_saeonly_name>".
5393
5394 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5395
5396         PR ipa/63166
5397         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5398
5399 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5400             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5401             Anna Tikhonova  <anna.tikhonova@intel.com>
5402             Ilya Tocar  <ilya.tocar@intel.com>
5403             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5404             Ilya Verbin  <ilya.verbin@intel.com>
5405             Kirill Yukhin  <kirill.yukhin@intel.com>
5406             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5407
5408         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
5409         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
5410         (define_mode_iterator FMAMODE_AVX512): New.
5411         (define_mode_iterator FMAMODE): Remove conditions.
5412         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
5413         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
5414         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
5415         mode iterator.
5416         (define_mode_iterator FMAMODE_NOVF512): Remove.
5417         (define_insn "*fma_fmadd_<mode>"): Rename from
5418         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
5419         FMAMODE mode iterator.
5420         (define_mode_iterator VF_SF_AVX512VL): New.
5421         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
5422         Use VF_SF_AVX512VL mode iterator.
5423         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
5424         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5425         iterator.
5426         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
5427         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5428         iterator.
5429         (define_insn "*fma_fmsub_<mode>"): Rename from
5430         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
5431         FMAMODE mode iterator.
5432         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
5433         Use VF_SF_AVX512VL mode iterator.
5434         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
5435         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5436         iterator.
5437         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
5438         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5439         iterator.
5440         (define_insn "*fma_fnmadd_<mode>"): Rename from
5441         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
5442         use FMAMODE mode iterator.
5443         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
5444         Use VF_SF_AVX512VL mode iterator.
5445         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
5446         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5447         iterator.
5448         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
5449         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5450         iterator.
5451         (define_insn "*fma_fnmsub_<mode>"): Rename from
5452         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
5453         FMAMODE mode iterator.
5454         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
5455         Use VF_SF_AVX512VL mode iterator.
5456         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
5457         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5458         iterator.
5459         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
5460         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5461         iterator.
5462         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
5463         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
5464         use VF_AVX512VL mode iterator.
5465         (define_insn "*fma_fmaddsub_<mode>"): Rename from
5466         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
5467         remove subst usage.
5468         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
5469         Use VF_SF_AVX512VL mode iterator.
5470         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
5471         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5472         iterator.
5473         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
5474         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5475         iterator.
5476         (define_insn "*fma_fmsubadd_<mode>"): Rename from
5477         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
5478         remove usage of subst.
5479         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
5480         Use VF_SF_AVX512VL mode iterator.
5481         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
5482         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5483         iterator.
5484         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
5485         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5486         iterator.
5487
5488 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
5489
5490         Revert r213751:
5491         * calls.c (precompute_arguments): Check
5492          promoted_for_signed_and_unsigned_p and set the promoted mode.
5493         (promoted_for_signed_and_unsigned_p): New function.
5494         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5495         and set the promoted mode.
5496         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5497         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5498         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5499
5500 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5501
5502         * opth-gen.awk: Generate mapping from cpp message reasons to the
5503         options that enable them.
5504         * doc/options.texi (CppReason): Document.
5505
5506 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5507
5508         * doc/invoke.texi (Wnormalized=): Update.
5509
5510 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
5511
5512         PR target/63195
5513         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
5514         operands.  Split off the constant operand alternative to ...
5515         (*bool<mode>3_imm): New.
5516
5517 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5518
5519         * rtl.h (single_set_2): Strengthen first param from const_rtx to
5520         const rtx_insn *, and move prototype to above...
5521         (single_set): ...this.  Convert this from a macro to an inline
5522         function, enforcing the requirement that the param is a const
5523         rtx_insn *.
5524         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
5525
5526         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
5527         Strengthen both params from rtx to rtx_insn *.
5528         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5529         Likewise; introduce locals "producer_set", "consumer_set", using
5530         them in place of "producer" and "consumer" when dealing with SET
5531         rather than insn.
5532         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
5533         when invoking single_set in region guarded by INSN_P.
5534         (avr_out_bitop): Likewise.
5535         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
5536         region guarded by GET_CODE check, using methods to strengthen
5537         local "this_insn" from rtx to rtx_insn *, and for clarity.
5538         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
5539         Strengthen local "insn" from rtx to rtx_insn *.
5540         (define_insn_and_split "xload<mode>_A"): Likewise.
5541         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
5542         "insn".
5543         (find_load): Likewise for return type.
5544         (workaround_speculation): Likewise for both locals named
5545         "load_insn".
5546         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
5547         local "cc0_user".
5548         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
5549         for local "prev".
5550         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
5551         param 2.
5552         * config/h8300/h8300.c (notice_update_cc): Likewise.
5553         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
5554         "insn" and "dep_insn".
5555         (exact_store_load_dependency): Likewise for both params.
5556         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
5557         since this now clashes with inline function.  Instead, delay
5558         calling single_set until the point where its needed, and then
5559         assign the result to "compare_set" and rework the conditional that
5560         follows.
5561         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
5562         local "last" from rtx to rtx_insn *.
5563         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
5564         second param.
5565         (mips_store_data_bypass_p): Likewise for both params.
5566         * config/mips/mips.c (mips_load_store_insns): Likewise for second
5567         param.
5568         (mips_store_data_bypass_p): Likewise for both params.
5569         (mips_orphaned_high_part_p): Likewise for param "insn".
5570         * config/mn10300/mn10300.c (extract_bundle): Likewise.
5571         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
5572         Introduce local rtx "insn2_pat".
5573         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
5574         "ninsn".
5575         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
5576         Introduce local rtx "set", using it in place of "insn" for the
5577         result of single_set.  This appears to fix a bug, since the call
5578         to find_regno_note on a SET does nothing.
5579         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
5580         params from rtx to rtx_insn *.
5581         (set_to_load_agen): Likewise.
5582         * config/s390/s390.c (s390_label_align): Likewise for local
5583         "prev_insn".  Introduce new rtx locals "set" and "src", using
5584         them in place of "prev_insn" for the results of single_set
5585         and SET_SRC respectively.
5586         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
5587         Introduce new rtx local "set" using in place of "jump" for the
5588         result of single_set.  Use SET_SRC (set) rather than plain
5589         XEXP (set, 1).
5590         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
5591         rtx to rtx_insn *.
5592         (noncall_uses_reg): Likewise.
5593         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
5594         guarded by GET_CODE check, using its methods for clarity, and to
5595         enable strengthening local "this_insn" from rtx to rtx_insn *.
5596         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
5597         "insn" from rtx to rtx_insn *.
5598         (define_expand "umulhisi3"): Likewise.
5599         (define_expand "smulsi3_highpart"): Likewise.
5600         (define_expand "umulsi3_highpart"): Likewise.
5601         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5602         local "after".  Replace GET_CODE check with a dyn_cast,
5603         introducing new local rtx_sequence * "seq", using insn method for
5604         typesafety.
5605
5606         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5607         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
5608         place of "insn" once we're dealing with patterns rather than the
5609         input insn.
5610         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5611         (scan_trace): Likewise for local "elt", updating lookups within
5612         sequence to use insn method rather than element method.
5613         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5614         to rtx_insn *.
5615         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5616         * ifcvt.c (noce_try_abs): Likewise for local "insn".
5617         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5618         invoking single_set.
5619         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5620         "insn" from rtx to rtx_insn *.
5621         (skip_usage_debug_insns): Likewise for return type, adding a
5622         checked cast.
5623         (check_secondary_memory_needed_p): Likewise for local "insn".
5624         (inherit_reload_reg): Likewise.
5625         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5626         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5627         checked casts.
5628         (store_data_bypass_p): Likewise for both params.
5629         (if_test_bypass_p): Likewise.
5630         * recog.h (store_data_bypass_p): Likewise for both params.
5631         (if_test_bypass_p): Likewise.
5632         * reload.c (find_equiv_reg): Likewise for local "where".
5633         * reorg.c (delete_jump): Likewise for param "insn".
5634         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5635         to const rtx_insn *.
5636         * store-motion.c (replace_store_insn): Likewise for param "del".
5637         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5638         and use its methods for clarity, and to strengthen local "del"
5639         from rtx to rtx_insn *.
5640         (build_store_vectors): Use insn method of "st" when calling
5641         replace_store_insn for typesafety and clarity.
5642
5643 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5644
5645         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5646         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5647         on how to make it legal in future.
5648
5649 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5650
5651         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5652         to rtx_insn *.
5653         (restinsn): Likewise.
5654         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5655         Likewise for param.
5656         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5657         Likewise.
5658         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5659         first param.
5660         (arc_hazard): Likewise for both params.
5661         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5662         checked casts to rtx_sequence * and uses of the insn method for
5663         type-safety.
5664         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5665         (arc_adjust_insn_length): Likewise for param "insn".
5666         (struct insn_length_parameters_s): Likewise for first param of
5667         "get_variants" callback field.
5668         (arc_get_insn_variants): Likewise for first param and local
5669         "inner".  Replace a check of GET_CODE with a dyn_cast to
5670         rtx_sequence *, using methods for type-safety and clarity.
5671         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5672         rtx_sequence * and uses of the insn method for type-safety when
5673         invoking arc_adjust_insn_length.
5674         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5675         for param.
5676         (arm_address_offset_is_imm): Likewise.
5677         (struct tune_params): Likewise for params 1 and 3 of the
5678         "sched_adjust_cost" callback field.
5679         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5680         params 1 and 3 ("insn" and "dep").
5681         (xscale_sched_adjust_cost): Likewise.
5682         (fa726te_sched_adjust_cost): Likewise.
5683         (cortexa7_older_only): Likewise for param "insn".
5684         (cortexa7_younger): Likewise.
5685         (arm_attr_length_move_neon): Likewise.
5686         (arm_address_offset_is_imm): Likewise.
5687         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5688         * config/avr/avr.c (avr_notice_update_cc): Likewise.
5689         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5690         (workaround_speculation): Likewise for local "last_condjump".
5691         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5692         (shadow_or_blockage_p): Likewise.
5693         (get_unit_reqs): Likewise.
5694         (get_unit_operand_masks): Likewise.
5695         (c6x_registers_update): Likewise.
5696         (returning_call_p): Likewise.
5697         (can_use_callp): Likewise.
5698         (convert_to_callp): Likewise.
5699         (find_last_same_clock): Likwise for local "t".
5700         (reorg_split_calls): Likewise for local "shadow".
5701         (hwloop_pattern_reg): Likewise for param "insn".
5702         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
5703         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
5704         (frv_extract_membar): Likewise.
5705         (frv_optimize_membar_local): Strengthen param "last_membar" from
5706         rtx * to rtx_insn **.
5707         (frv_optimize_membar_global): Strengthen param "membar" from rtx
5708         to rtx_insn *.
5709         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
5710         to rtx_insn **.
5711         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
5712         both params from rtx to rtx_insn *.
5713         (ia64_ld_address_bypass_p): Likewise.
5714         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
5715         "insn".
5716         (ia64_safe_type): Likewise.
5717         (group_barrier_needed): Likewise.
5718         (safe_group_barrier_needed): Likewise.
5719         (ia64_single_set): Likewise.
5720         (is_load_p): Likewise.
5721         (record_memory_reference): Likewise.
5722         (get_mode_no_for_insn): Likewise.
5723         (important_for_bundling_p): Likewise.
5724         (unknown_for_bundling_p): Likewise.
5725         (ia64_st_address_bypass_p): Likewise for both params.
5726         (ia64_ld_address_bypass_p): Likewise.
5727         (expand_vselect): Introduce new local rtx_insn * "insn", using it
5728         in place of rtx "x" after the emit_insn call.
5729         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5730         Strengthen param from rtx to rtx_insn *.
5731         (ix86_agi_dependent): Likewise for both params.
5732         (ix86_attr_length_immediate_default): Likewise for param 1.
5733         (ix86_attr_length_address_default): Likewise for param.
5734         (ix86_attr_length_vex_default): Likewise for param 1.
5735         * config/i386/i386.c (ix86_attr_length_immediate_default):
5736         Likewise for param "insn".
5737         (ix86_attr_length_address_default): Likewise.
5738         (ix86_attr_length_vex_default): Likewise.
5739         (ix86_agi_dependent): Likewise for both params.
5740         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5741         (vselect_insn): Likewise for this variable.
5742         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5743         for param 1.
5744         (m68k_sched_attr_opy_type): Likewise.
5745         * config/m68k/m68k.c (sched_get_operand): Likewise.
5746         (sched_attr_op_type): Likewise.
5747         (m68k_sched_attr_opx_type): Likewise.
5748         (m68k_sched_attr_opy_type): Likewise.
5749         (sched_get_reg_operand): Likewise.
5750         (sched_get_mem_operand): Likewise.
5751         (m68k_sched_address_bypass_p): Likewise for both params.
5752         (sched_get_indexed_address_scale): Likewise.
5753         (m68k_sched_indexed_address_bypass_p): Likewise.
5754         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
5755         (m68k_sched_indexed_address_bypass_p): Likewise.
5756         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
5757         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
5758         removing another.
5759         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
5760         params from rtx to rtx_insn *.
5761         (mips_fmadd_bypass): Likewise.
5762         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
5763         (mips_linked_madd_p): Likewise.
5764         (mips_macc_chains_last_hilo): Likewise for this variable.
5765         (mips_macc_chains_record): Likewise for param.
5766         (vr4130_last_insn): Likewise for this variable.
5767         (vr4130_swap_insns_p): Likewise for both params.
5768         (mips_ls2_variable_issue): Likewise for param.
5769         (mips_need_noat_wrapper_p): Likewise for param "insn".
5770         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
5771         in place of "x" after the emit_insn.
5772         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
5773         params from rtx to rtx_insn *.
5774         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
5775         (pa_combine_instructions): Introduce local "par" for result of
5776         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
5777         to make_insn_raw.
5778         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
5779         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
5780         (rl78_alloc_physical_registers_op1): Likewise.
5781         (rl78_alloc_physical_registers_op2): Likewise.
5782         (rl78_alloc_physical_registers_ro1): Likewise.
5783         (rl78_alloc_physical_registers_cmp): Likewise.
5784         (rl78_alloc_physical_registers_umul): Likewise.
5785         (rl78_alloc_address_registers_macax): Likewise.
5786         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
5787         * config/s390/predicates.md (execute_operation): Likewise for
5788         local "insn".
5789         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
5790         params.
5791         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
5792         (addr_generation_dependency_p): Likewise for param "insn".
5793         (s390_agen_dep_p): Likewise for both params.
5794         (s390_fpload_toreg): Likewise for param "insn".
5795         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
5796         * config/sh/sh.c (sh_loop_align): Likewise for param and local
5797         "next".
5798         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
5799         * config/sh/sh_treg_combine.cc
5800         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
5801         and local "i".
5802         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
5803         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
5804         "and_insn", "load", "shift".
5805         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
5806         "insn".
5807         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
5808         for XEXP (note, 0) of the REG_CC_SETTER note.
5809         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
5810         rtx_insn *, eliminating a checked cast made redundant by this.
5811         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
5812         to rtx_insn *.
5813         * genattr.c (main): When writing out the prototype to
5814         const_num_delay_slots, strengthen the param from rtx to
5815         rtx_insn *.
5816         * genattrtab.c (write_const_num_delay_slots): Likewise when
5817         writing out the implementation of const_num_delay_slots.
5818         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
5819         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
5820         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
5821         favor of new rtx locals "src" and "set" and new local rtx_insn *
5822         "insn" and "seq".
5823         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
5824         to rtx_insn *.
5825         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
5826         locals "cond", "if_then_else", "set" and new rtx_insn * locals
5827         "insn" and "seq".
5828         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
5829         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
5830         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
5831         the top-level scope, replacing with new more tightly-scoped rtx
5832         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
5833         "new_insn", "copy_of_insn_b", and make local rtx "set" more
5834         tightly-scoped.
5835         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
5836         rtx_insn *.
5837         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
5838         "move_insn".
5839         (ira_setup_alts): Likewise for param "insn".
5840         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
5841         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
5842         and an rtx_insn *.
5843         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
5844         new more-tightly scoped rtx locals "add3_insn", "insn",
5845         "add2_insn" and rtx_insn * "move_insn".
5846         * postreload-gcse.c (eliminate_partially_redundant_load): Add
5847         checked cast on result of gen_move_insn when invoking
5848         extract_insn.
5849         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
5850         rtx_insn *.
5851         (verify_changes): Add a checked cast on "object" when invoking
5852         insn_invalid_p.
5853         (extract_insn_cached): Strengthen param "insn" from rtx to
5854         rtx_insn *.
5855         (extract_constrain_insn_cached): Likewise.
5856         (extract_insn): Likewise.
5857         * recog.h (insn_invalid_p): Likewise for param 1.
5858         (recog_memoized): Likewise for param.
5859         (extract_insn): Likewise.
5860         (extract_constrain_insn_cached): Likewise.
5861         (extract_insn_cached): Likewise.
5862         * reload.c (can_reload_into): Likewise for local "test_insn".
5863         * reload.h (cleanup_subreg_operands): Likewise for param.
5864         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
5865         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
5866         result of emit_insn.  Remove a checked cast made redundant by this
5867         change.
5868         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
5869         rtx to rtx_insn *.
5870         * sel-sched.c (get_reg_class): Likewise.
5871
5872 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5873             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5874
5875         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
5876         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
5877         Define.
5878         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
5879
5880 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5881
5882         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
5883         const rtx_insn *, and from rtx to rtx_insn * for the other
5884         overloaded variant.
5885         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
5886         INSN_LOCATION, since we know INSN_P holds.
5887         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
5888         (insn_file): Likewise.
5889         (insn_scope): Likewise.
5890         (insn_location): Likewise.
5891
5892         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
5893         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
5894         for the result of gen_load_const_gp.
5895         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
5896         param from rtx to rtx_insn *.
5897         * config/rs6000/rs6000.c (output_call): Likewise.
5898         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
5899         introducing a checked cast to rtx_sequence * and use of the insn
5900         method.
5901         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
5902         from rtx to rtx_insn *.
5903         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
5904         (insn_line): Likewise.
5905         (insn_file): Likewise.
5906         (insn_location): Likewise.
5907         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
5908         from rtx to rtx_insn *.
5909         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
5910         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
5911         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
5912         via a checked cast.
5913         * reorg.c (relax_delay_slots): Strengthen locals named "after"
5914         from rtx to rtx_insn *; use methods of "pat" for type-safety.
5915
5916 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5917
5918         * combine.c (try_combine): Eliminate checked cast on result of
5919         gen_rtx_INSN.
5920         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
5921         autogenerated one by strengthening the return type and params 2 and 3
5922         from rtx to rtx_insn *, and by naming the params.
5923         * gengenrtl.c (special_rtx): Add INSN to those that are
5924         special-cased.
5925         * rtl.h (gen_rtx_INSN): New prototype.
5926
5927 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
5928
5929         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
5930         than NULL_RTX.
5931         (no_equiv): Likewise.
5932         (update_equiv_regs): Likewise.
5933         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
5934         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
5935         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
5936         clarity.
5937         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
5938         from rtx to rtx_insn_list *.
5939         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
5940         rtx_insn_list * and use methods for clarity and typesafety.
5941         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
5942         "list".
5943         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
5944         redundant check on INSN_P (insns): this cannot hold, as "insns" is
5945         an INSN_LIST, not an insn.
5946         (reverse_equiv_p): Strengthen local "insns" from rtx to
5947         rtx_insn_list * and use methods for clarity and typesafety.
5948         (contains_reloaded_insn_p): Likewise for local "list".
5949
5950 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
5951
5952         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
5953         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
5954         (arm_builtin_vectorized_function): Likewise.
5955         * config/arm/arm_neon_builtins.def: New macro for copysignf.
5956         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
5957
5958 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
5959
5960         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
5961         * builtins.h (default_target_builtins): Likewise.
5962         * gcse.h (default_target_gcse): Likewise.
5963         * target-globals.h (target_globals): Add a destructor.  Convert
5964         void-pointer fields back to their real type and change from
5965         GTY((atomic)) to GTY((skip)).
5966         (restore_target_globals): Remove casts accordingly.
5967         * target-globals.c (save_target_globals): Use XCNEW rather than
5968         ggc_internal_cleared_alloc to allocate non-GC structures.
5969         Use ggc_cleared_alloc to allocate the target_globals structure
5970         itself.
5971         (target_globals::~target_globals): Define.
5972
5973 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5974
5975         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
5976         mnemonic instead of fldmfdd.
5977         * config/arm/arm.c (vfp_output_fstmd): Rename to...
5978         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
5979         Output vpush when address register is SP.
5980         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
5981         (vfp_output_vstmd): ... This.
5982         * config/arm/vfp.md (push_multi_vfp): Update call to
5983         vfp_output_vstmd.
5984
5985 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5986
5987         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
5988
5989 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5990
5991         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
5992         (*sqrtdf2_vfp): Likewise.
5993         (*cmpsf_vfp): Likewise.
5994         (*cmpsf_trap_vfp): Likewise.
5995         (*cmpdf_vfp): Likewise.
5996         (*cmpdf_trap_vfp): Likewise.
5997
5998 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5999
6000         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6001         (*truncdfsf2_vfp): Likewise.
6002         (*truncsisf2_vfp): Likewise.
6003         (*truncsidf2_vfp): Likewise.
6004         (fixuns_truncsfsi2): Likewise.
6005         (fixuns_truncdfsi2): Likewise.
6006         (*floatsisf2_vfp): Likewise.
6007         (*floatsidf2_vfp): Likewise.
6008         (floatunssisf2): Likewise.
6009         (floatunssidf2): Likewise.
6010
6011 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6012
6013         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6014         (*muldf3_vfp): Likewise.
6015         (*mulsf3negsf_vfp): Likewise.
6016         (*muldf3negdf_vfp): Likewise.
6017         (*mulsf3addsf_vfp): Likewise.
6018         (*muldf3adddf_vfp): Likewise.
6019         (*mulsf3subsf_vfp): Likewise.
6020         (*muldf3subdf_vfp): Likewise.
6021         (*mulsf3negsfaddsf_vfp): Likewise.
6022         (*fmuldf3negdfadddf_vfp): Likewise.
6023         (*mulsf3negsfsubsf_vfp): Likewise.
6024         (*muldf3negdfsubdf_vfp): Likewise.
6025
6026 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6027
6028         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6029         (*absdf2_vfp): Likewise.
6030         (*negsf2_vfp): Likewise.
6031         (*negdf2_vfp): Likewise.
6032         (*addsf3_vfp): Likewise.
6033         (*adddf3_vfp): Likewise.
6034         (*subsf3_vfp): Likewise.
6035         (*subdf3_vfp): Likewise.
6036         (*divsf3_vfp): Likewise.
6037         (*divdf3_vfp): Likewise.
6038
6039 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6040
6041         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6042         multiple.
6043         (arm_print_operand): Don't convert real values to decimal
6044         representation in default case.
6045         (fp_immediate_constant): Delete.
6046         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6047         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6048         syntax.
6049         (*thumb2_movsi_vfp): Likewise.
6050         (*movdi_vfp): Likewise.
6051         (*movdi_vfp_cortexa8): Likewise.
6052         (*movhf_vfp_neon): Likewise.
6053         (*movhf_vfp): Likewise.
6054         (*movsf_vfp): Likewise.
6055         (*thumb2_movsf_vfp): Likewise.
6056         (*movdf_vfp): Likewise.
6057         (*thumb2_movdf_vfp): Likewise.
6058         (*movsfcc_vfp): Likewise.
6059         (*thumb2_movsfcc_vfp): Likewise.
6060         (*movdfcc_vfp): Likewise.
6061         (*thumb2_movdfcc_vfp): Likewise.
6062
6063 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
6064
6065         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6066         (-mtune): Likewise.
6067         (-mcpu): Likewise.
6068
6069 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6070
6071         PR target/61749
6072         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6073         Use qualifier_immediate for last operand.  Rename to...
6074         (aarch64_types_ternop_lane_qualifiers): ... This.
6075         (TYPES_QUADOP): Rename to...
6076         (TYPES_TERNOP_LANE): ... This.
6077         (aarch64_simd_expand_args): Return const0_rtx when encountering user
6078         error.  Change return of 0 to return of NULL_RTX.
6079         (aarch64_crc32_expand_builtin): Likewise.
6080         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6081         ICE when expanding unknown builtin.
6082         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6083         TERNOP_LANE qualifiers.
6084         (sqdmlsl_lane): Likewise.
6085         (sqdmlal_laneq): Likewise.
6086         (sqdmlsl_laneq): Likewise.
6087         (sqdmlal2_lane): Likewise.
6088         (sqdmlsl2_lane): Likewise.
6089         (sqdmlal2_laneq): Likewise.
6090         (sqdmlsl2_laneq): Likewise.
6091
6092 2014-09-09  Nick Clifton  <nickc@redhat.com>
6093
6094         * doc/invoke.texi (Optimization Options): Add missing @gol to the
6095         end of a line.
6096         (S/390 and zSeries Options): Remove superfluous word from the
6097         description of the -mhotpatch option.
6098
6099 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6100
6101         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6102         * ira.c: #include "shrink-wrap.h"
6103         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6104         * ifcvt.c: #include "shrink-wrap.h"
6105         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6106
6107 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
6108
6109         * common/config/picochip/picochip-common.c: Remove.
6110         * config.gcc: Remove support for picochip.
6111         * config/picochip/constraints.md: Remove.
6112         * config/picochip/dfa_space.md: Remove.
6113         * config/picochip/dfa_speed.md: Remove.
6114         * config/picochip/picochip-protos.h: Remove.
6115         * config/picochip/picochip.c: Remove.
6116         * config/picochip/picochip.h: Remove.
6117         * config/picochip/picochip.md: Remove.
6118         * config/picochip/picochip.opt: Remove.
6119         * config/picochip/predicates.md: Remove.
6120         * config/picochip/t-picochip: Remove.
6121         * doc/md.texi: Don't document picochi.
6122
6123 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
6124
6125         * basic-block.h (control_flow_insn_p): Strengthen param from
6126         const_rtx to const rtx_insn *.
6127         * cfgbuild.c (control_flow_insn_p): Likewise.
6128
6129 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
6130
6131         * gcse.c (modify_mem_list): Strengthen this variable from
6132         vec<rtx> * to vec<rtx_insn *> *.
6133         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6134         vec<rtx_insn *>.
6135         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6136         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6137         (record_last_mem_set_info): Strengthen param "insn" from rtx to
6138         rtx_insn *.
6139         (record_last_set_info): Likewise for local "last_set_insn".
6140
6141 2014-09-08  DJ Delorie  <dj@redhat.com>
6142
6143         * doc/invoke.texi (MSP430 Options): Add -minrt.
6144
6145 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6146
6147         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
6148         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6149         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6150         handling SH_SPLAT.
6151         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6152         of extracted lane.
6153         (adjust_splat): New function.
6154         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6155         (dump_swap_insn_table): Add case for SH_SPLAT.
6156
6157 2014-09-08  Richard Biener  <rguenther@suse.de>
6158
6159         PR ipa/63196
6160         * tree-inline.c (copy_loops): The source loop header should
6161         always be non-NULL.
6162         (tree_function_versioning): If loops need fixup after removing
6163         unreachable blocks fix them.
6164         * omp-low.c (simd_clone_adjust): Do not add incr block to
6165         loop under construction.
6166
6167 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6168
6169         * config/aarch64/aarch64-builtins.c
6170         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6171
6172 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6173
6174         * config/i386/cygming.h (TF_SIZE): Remove.
6175         * config/i386/darwin.h (TF_SIZE): Remove.
6176         * config/i386/dragonfly.h (TF_SIZE): Remove.
6177         * config/i386/freebsd.h (TF_SIZE): Remove.
6178         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6179         * config/i386/openbsdelf.h (TF_SIZE): Remove.
6180         * config/i386/sol2.h (TF_SIZE): Remove.
6181         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6182         * config/ia64/linux.h (TF_SIZE): Remove.
6183         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6184         * doc/tm.texi: Regenerate.
6185         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6186
6187 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6188
6189         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6190         Remove.
6191         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6192         Remove.
6193         * doc/tm.texi: Regenerate.
6194         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6195         Poison.
6196         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6197         * config/cris/cris.h (__make_dp): Remove.
6198
6199 2014-09-08  Richard Biener  <rguenther@suse.de>
6200
6201         PR bootstrap/63204
6202         * cfgloop.c (mark_loop_for_removal): Track former header
6203         unconditionally.
6204         * cfgloop.h (struct loop): Add former_header member unconditionally.
6205         * loop-init.c (fix_loop_structure): Enable bogus loop removal
6206         diagnostic unconditionally.
6207
6208 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6209
6210         PR target/63190
6211         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6212         constraint for operand0 and remove write only modifier from operand3.
6213
6214 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
6215
6216         PR rtl-optimization/62208
6217         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
6218         rather than const0_rtx in eq/ne-xor simplifications.
6219
6220 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
6221
6222         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
6223         (arc_output_mi_thunk): Likewise.
6224
6225         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
6226         arguments to silence bogus warning.
6227
6228 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
6229
6230         PR middle-end/63171
6231         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
6232
6233 2014-09-06  Tom de Vries  <tom@codesourcery.com>
6234
6235         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
6236         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
6237         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6238
6239 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
6240
6241         PR target/63188
6242         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
6243         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
6244
6245 2014-09-05  Easwaran Raman  <eraman@google.com>
6246
6247         PR rtl-optimization/62146
6248         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
6249         hoisted instruction unconditional.
6250
6251 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
6252
6253         PR target/63187
6254         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6255         Do not allow any_mask_operand for operands[2].
6256         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6257
6258 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6259
6260         * config/arc/arc.c (arc_print_operand): Use insn method of
6261         final_sequence for type-safety.
6262         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6263         "insn" from rtx to rtx_insn *.
6264         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6265         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6266         Likewise for locals "branch", "label".
6267         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6268         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
6269         (same_cmp_following_p): Likewise for locals "i2", "i3".
6270         * config/sh/sh_optimize_sett_clrt.cc
6271         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6272         param "cbranch_insn".
6273         * function.c (convert_jumps_to_returns): Likewis for local "jump".
6274         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6275         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6276         const rtx_insn *.
6277         (condjump_p): Likewise.
6278         (condjump_in_parallel_p): Likewise.
6279         (pc_set): Likewise.
6280         (any_uncondjump_p): Likewise.
6281         (any_condjump_p): Likewise.
6282         (condjump_label): Likewise.
6283         (returnjump_p): Strengthen param "insn" from rtx to
6284         const rtx_insn *.
6285         (onlyjump_p): Strengthen param "insn" from const_rtx to
6286         const rtx_insn *.
6287         (jump_to_label_p): Likewise.
6288         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6289         (invert_jump): Likewise.
6290         * reorg.c (simplejump_or_return_p): Add checked cast when calling
6291         simplejump_p.
6292         (get_jump_flags): Strengthen param "insn" from rtx to
6293         const rtx_insn *.
6294         (get_branch_condition): Likewise.
6295         (condition_dominates_p): Likewise.
6296         (make_return_insns): Move declaration of local "pat" earlier, to
6297         after we've handled NONJUMP_INSN_P and non-sequences, using its
6298         methods to simplify the code and for type-safety.
6299         * rtl.h (find_constant_src): Strengthen param from const_rtx to
6300         const rtx_insn *.
6301         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6302         (condjump_p): Strengthen param from const_rtx to
6303         const rtx_insn *.
6304         (any_condjump_p): Likewise.
6305         (any_uncondjump_p): Likewise.
6306         (pc_set): Likewise.
6307         (condjump_label): Likewise.
6308         (simplejump_p): Likewise.
6309         (returnjump_p): Likewise.
6310         (onlyjump_p): Likewise.
6311         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6312         (invert_jump): Likewise.
6313         (condjump_in_parallel_p): Strengthen param from const_rtx to
6314         const rtx_insn *.
6315         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6316         to const rtx_insn *.
6317         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6318         to const rtx_insn *.
6319         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6320
6321 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6322
6323         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6324         above the conditional, and convert the check on GET_CODE to a
6325         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6326         the conditional.  Simplify the conditional by using methods of
6327         "trial_seq".
6328
6329 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6330
6331         * haifa-sched.c (check_clobbered_conditions): Strengthen local
6332         "link" from rtx to rtx_insn_list *, and use its methods for
6333         clarity and type-safety.
6334         (toggle_cancelled_flags): Likewise.
6335         (restore_last_backtrack_point): Likewise.
6336         (queue_to_ready): Use insn method of "link" in one place.
6337         (schedule_block): Strengthen local "link" from rtx to
6338         rtx_insn_list *, and use its methods for clarity and type-safety.
6339
6340 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6341
6342         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6343         param "insn" from const_rtx to const rtx_insn *.
6344         (sched_get_reverse_condition_uncached): Likewise.
6345         (sched_get_condition_with_rev): Likewise.
6346         (sched_has_condition_p): Likewise.
6347         (sched_insns_conditions_mutex_p): Likewise for both params.
6348         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6349         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6350         (setup_insn_reg_uses): Move local "list" to be more tightly
6351         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
6352         its methods for clarity and type-safety.
6353         (sched_analyze_1): Strengthen local "pending" from rtx to
6354         rtx_insn_list *, and local "pending_mem" from rtx to
6355         rtx_expr_list *.  Use methods of each for clarity and type-safety.
6356         (sched_analyze_2): Likewise.
6357         (sched_analyze_insn): Likewise.
6358
6359         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
6360         param from const_rtx to const rtx_insn *.
6361         (sched_insns_conditions_mutex_p): Likewise for both params.
6362         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
6363         param.
6364
6365         * system.h (CONST_CAST_RTX_INSN): New macro.
6366
6367 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6368
6369         * recog.c (peep2_attempt): Strengthen return type from rtx to
6370         rtx_insn *.
6371         (peep2_update_life): Likewise for params "last", "prev", removing
6372         a checked cast made redundant by this.
6373         (peephole2_optimize): Likewise for local "last".
6374
6375 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6376
6377         * basic-block.h (set_block_for_insn): Eliminate this macro in
6378         favor of...
6379         * rtl.h (set_block_for_insn): New inline function, imposing the
6380         requirement that the "insn" param is an rtx_insn *.
6381
6382 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6383
6384         * caller-save.c (setup_save_areas): Strengthen local "insn" from
6385         rtx to rtx_insn *.
6386         * final.c (get_call_reg_set_usage): Likewise for first param,
6387         eliminating a checked cast.
6388         * regs.h (get_call_reg_set_usage): Likewise for first param.
6389         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
6390         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
6391         cast, replacing references to "x" with "call_insn" where
6392         appropriate.
6393         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
6394         rtx_insn *, adding a checked cast.
6395
6396 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6397
6398         * output.h (final_scan_insn): Strengthen first param from rtx to
6399         rtx_insn *.
6400
6401         * final.c (final_scan_insn): Likewise, renaming it back from
6402         "uncast_insn" to "insn", eliminating the checked cast.
6403
6404         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
6405         "vec" with an rtx_sequence * "seq", taking a copy of
6406         "final_sequence", and using methods of "seq" for clarity, and for
6407         type-safety in the calls to final_scan_insn.
6408         * config/mips/mips.c (mips_output_conditional_branch): Use methods
6409         of "final_sequence" for clarity, and for type-safety in the call to
6410         final_scan_insn.
6411         * config/sh/sh.c (print_slot): Strengthen param from rtx to
6412         rtx_sequence * and rename from "insn" to "seq".
6413
6414 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6415
6416         * jump.c (delete_related_insns): Introduce a new local "table" by
6417         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
6418         get_labels method of "table" to simplify access to the labels in
6419         the jump table.
6420
6421 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6422
6423         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
6424         f_minmaxs, f_minmaxd types.
6425
6426 2014-09-05  Richard Biener  <rguenther@suse.de>
6427
6428         * cfgloop.c (mark_loop_for_removal): Record former header
6429         when ENABLE_CHECKING.
6430         * cfgloop.h (strut loop): Add former_header member when
6431         ENABLE_CHECKING.
6432         * loop-init.c (fix_loop_structure): Sanity check loops
6433         marked for removal if they re-appeared.
6434
6435 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6436
6437         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
6438         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
6439
6440         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
6441         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
6442         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
6443         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
6444         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
6445         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
6446         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
6447         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
6448         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
6449         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
6450         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
6451         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
6452         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
6453         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
6454         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
6455         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
6456         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
6457         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
6458         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
6459         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
6460         with int{32,16,8}_t.
6461
6462 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6463
6464         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
6465         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
6466         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
6467         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
6468         Remove temporary __asm__ and reimplement.
6469
6470 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6471
6472         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
6473         handling cmge, cmgt, cmeq, cmtst.
6474
6475         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
6476         cmlt, cmgeu, cmgtu, cmtst): Remove.
6477
6478         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
6479         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
6480         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
6481         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
6482
6483 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6484
6485         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
6486         TYPES_TST): Define.
6487         (aarch64_fold_builtin): Update pattern for cmtst.
6488
6489         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
6490         Declare.
6491
6492         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
6493
6494         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
6495         Switch operands, separate out more cases, refactor.
6496
6497         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
6498
6499         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
6500         argument; rename old version to...
6501         (aarch64_const_vec_all_same_in_range_p): ...this.
6502         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
6503
6504         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
6505
6506 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6507
6508         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6509         Remove qualifier_const_pointer, update comment.
6510
6511 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6512
6513         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
6514
6515 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6516
6517         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
6518         varargs with pointer parameter.
6519         (aarch64_simd_expand_builtin): pass pointer into previous.
6520
6521 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6522
6523         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
6524         alus_ext.
6525
6526 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
6527
6528         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
6529         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
6530         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6531         Replace temporary asm with call to builtin.
6532         (vrbit_p8, vrbitq_p8): New functions.
6533
6534 2014-09-05  Richard Biener  <rguenther@suse.de>
6535
6536         * cfgloop.c (mark_loop_for_removal): New function.
6537         * cfgloop.h (mark_loop_for_removal): Declare.
6538         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
6539         (merge_blocks): Likewise.
6540         (duplicate_block): Likewise.
6541         * except.c (sjlj_emit_dispatch_table): Likewise.
6542         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
6543         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
6544         (thread_through_loop_header): Likewise.
6545
6546 2014-09-05  Richard Biener  <rguenther@suse.de>
6547
6548         PR middle-end/63148
6549         * fold-const.c (try_move_mult_to_index): Remove.
6550         (fold_binary_loc): Do not call it.
6551         * tree-data-ref.c (dr_analyze_indices): Strip conversions
6552         from the base object again.
6553
6554 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
6555
6556         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
6557         DImode.
6558
6559 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
6560
6561         PR target/55701
6562         * config/arm/arm.md (setmem): New pattern.
6563         * config/arm/arm-protos.h (struct tune_params): New fields.
6564         (arm_gen_setmem): New prototype.
6565         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6566         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6567         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6568         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6569         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6570         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6571         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6572         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6573         (arm_const_inline_cost): New function.
6574         (arm_block_set_max_insns): New function.
6575         (arm_block_set_non_vect_profit_p): New function.
6576         (arm_block_set_vect_profit_p): New function.
6577         (arm_block_set_unaligned_vect): New function.
6578         (arm_block_set_aligned_vect): New function.
6579         (arm_block_set_unaligned_non_vect): New function.
6580         (arm_block_set_aligned_non_vect): New function.
6581         (arm_block_set_vect, arm_gen_setmem): New functions.
6582
6583 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
6584
6585         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
6586
6587 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
6588
6589         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6590
6591 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6592
6593         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
6594         an rtx.
6595         * valtrack.h: Adjust.
6596
6597 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6598
6599         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6600         an rtx.
6601         (emit_jump_insn_before_noloc): Likewise.
6602         (emit_call_insn_before_noloc): Likewise.
6603         (emit_label_before): Likewise.
6604         (emit_label_after): Likewise.
6605         (emit_insn_before_setloc): Likewise.
6606         (emit_jump_insn_before_setloc): Likewise.
6607         (emit_call_insn_before_setloc): Likewise.
6608         (emit_call_insn_before): Likewise.
6609         * rtl.h: Adjust.
6610
6611 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6612
6613         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6614         rtx_insn *, eliminating a checked cast.
6615
6616 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6617
6618         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6619         const_rtx to const rtx_insn *.
6620         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6621         cast.
6622
6623 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6624
6625         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6626         fixup_args_size_notes.
6627         * expr.c (fixup_args_size_notes): Strengthen first two params from
6628         rtx to rtx_insn *, eliminating a checked cast.
6629         * rtl.h (fixup_args_size_notes): Strengthen first two params from
6630         rtx to rtx_insn *.
6631
6632 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6633
6634         * haifa-sched.c (get_ready_element): Strengthen return type from
6635         rtx to rtx_insn *.
6636         * sched-int.h (get_ready_element): Likewise.
6637
6638 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
6639
6640         PR target/63165
6641         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6642         indexed_or_indirect_operand instead of memory_operand.
6643         (floatsi<mode>2_lfiwzx_mem): Ditto.
6644
6645 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6646
6647         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6648         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6649         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6650
6651 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
6652
6653         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6654         rtx.
6655         (get_last_nonnote_insn): Likewise.
6656         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6657         * resource.c (find_basic_block): Likewise.
6658         * rtl.h: Adjust.
6659         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6660         const_rtx.
6661
6662 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
6663
6664         * genattr.c (main): Within the prototype of insn_latency written
6665         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6666         * genautomata.c (output_internal_maximal_insn_latency_func):
6667         Within the implementation of insn_latency written out to
6668         insn-automata.c, strengthen both params from rtx to rtx_insn *,
6669         eliminating a pair of checked casts.
6670
6671 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
6672
6673         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6674         rtx_insn *.
6675
6676         * rtl.h (eh_returnjump_p): Likewise.
6677
6678 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
6679
6680         * Makefile.in (TAGS): Handle constructs in timevar.def.
6681
6682 2014-09-04  Guozhi Wei  <carrot@google.com>
6683
6684         PR target/62040
6685         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6686         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6687         it into two patterns.
6688         (move_lo_quad_internal_be_<mode>): Likewise.
6689
6690 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6691
6692         * doc/options.texi: Document that Var and Init are required if CPP
6693         is given.
6694         * optc-gen.awk: Require Var and Init if CPP is given.
6695         * common.opt (Wpedantic): Use Init.
6696
6697 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6698
6699         * config/rs6000/rs6000.c (special_handling_values): Add
6700         SH_EXTRACT.
6701         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
6702         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
6703         as swappable with special handling SH_EXTRACT.  Remove
6704         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
6705         optimization.
6706         (adjust_extract): New function.
6707         (handle_special_swappables): Add default to case statement; add
6708         case for SH_EXTRACT that calls adjust_extract.
6709         (dump_swap_insn_table): Handle SH_EXTRACT.
6710
6711 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6712
6713         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
6714         selection of 0th memory doubleword, regardless of endianness.
6715
6716 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6717
6718         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6719
6720 2014-09-04  Alan Modra  <amodra@gmail.com>
6721
6722         PR debug/60655
6723         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6724         can't be output.
6725
6726 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
6727
6728         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6729         * targhooks.c (default_dwarf_frame_reg_mode): New function.
6730         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6731         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6732         * doc/tm.texi: Regenerate.
6733         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6734         selection logic to default_dwarf_frame_reg_mode.
6735
6736 2014-09-03  Marek Polacek  <polacek@redhat.com>
6737
6738         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6739         by -Wall.
6740
6741 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
6742
6743         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6744         the automodified register.
6745
6746 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
6747
6748         * output.h (get_some_local_dynamic_name): Declare.
6749         * final.c (some_local_dynamic_name): New variable.
6750         (get_some_local_dynamic_name): New function.
6751         (final_end_function): Clear some_local_dynamic_name.
6752         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
6753         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6754         (print_operand): Report an error if '%&' is used inappropriately.
6755         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
6756         (get_some_local_dynamic_name_1): Delete.
6757         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
6758         (rs6000_get_some_local_dynamic_name): Delete.
6759         (rs6000_get_some_local_dynamic_name_1): Delete.
6760         (print_operand): Report an error if '%&' is used inappropriately.
6761         * config/s390/s390.c (machine_function): Remove some_ld_name.
6762         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6763         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
6764         * config/sparc/sparc.c: Include rtl-iter.h.
6765         (machine_function): Remove some_ld_name.
6766         (sparc_print_operand): Report an error if '%&' is used inappropriately.
6767         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6768
6769 2014-09-03  Richard Henderson  <rth@redhat.com>
6770
6771         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
6772         (aarch64_popwb_pair_reg): Remove.
6773         (aarch64_set_frame_expr): Remove.
6774         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
6775         the restore ops performed by the insns generated.
6776         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
6777         insn.  Perform the calls_eh_return addition later; do not attempt to
6778         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
6779         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
6780         special markup at all.  Load cfun->machine->frame.hard_fp_offset
6781         into a local variable.
6782         (aarch64_frame_pointer_required): Don't check calls_alloca.
6783
6784 2014-09-03  Richard Biener  <rguenther@suse.de>
6785
6786         * opts.c (default_options_optimization): Adjust
6787         max-combine-insns to 2 for -Og.
6788
6789 2014-09-03  Martin Jambor  <mjambor@suse.cz>
6790
6791         PR ipa/62015
6792         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
6793         pass-trough jump functions correctly.
6794
6795 2014-09-03  Martin Jambor  <mjambor@suse.cz>
6796
6797         PR ipa/61986
6798         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
6799         created replacements in ascending order of offsets.
6800         (known_aggs_to_agg_replacement_list): Likewise.
6801
6802 2014-09-03  Martin Liska  <mliska@suse.cz>
6803
6804         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
6805         is set to set uninitialized value for vnresult.
6806
6807 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6808
6809         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
6810         for TARGET_MUST_PASS_IN_STACK.
6811
6812 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6813
6814         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
6815         for TARGET_ARG_PARTIAL_BYTES.
6816
6817 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6818
6819         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
6820         instructions for varargs implementation.
6821         (nds32_expand_epilogue): Emit stack adjustment instructions for
6822         varargs implementation.
6823
6824 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6825
6826         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
6827         optimization detection.
6828
6829 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6830
6831         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
6832         arguments.
6833         (nds32_function_arg_advance): Deal with nameless arguments.
6834         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
6835         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
6836         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
6837
6838 2014-09-03  Richard Biener  <rguenther@suse.de>
6839
6840         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
6841         (struct bb_bitmap_sets): Remove deferred member.
6842         (BB_DEFERRED): Remove.
6843         (defer_or_phi_translate_block): Remove.
6844         (compute_antic_aux): Remove deferring of blocks, assert
6845         proper iteration order.
6846         (compute_antic): Do not set BB_DEFERRED.
6847         (eliminate): Allocate el_avail of proper size initially.
6848
6849 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6850
6851         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
6852         according to the value of crtl->args.pretend_args_size.
6853
6854 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6855
6856         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
6857         varargs information.
6858
6859 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6860
6861         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
6862         implementation for TARGET_SETUP_INCOMING_VARARGS.
6863         (nds32_strict_argument_naming): Refine comment.
6864         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
6865         Define for future implementation.
6866
6867 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
6868
6869         * config/i386/adxintrin.h (_subborrow_u32): New.
6870         (_addcarry_u32): Ditto.
6871         (_subborrow_u64): Ditto.
6872         (_addcarry_u64): Ditto.
6873         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
6874         IX86_BUILTIN_SBB64.
6875         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
6876         __builtin_ia32_sbb_u64
6877
6878 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6879
6880         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
6881         GPR-specific stuff.
6882         (nds32_function_arg_advance): Likewise.
6883         (nds32_init_cumulative_args): Likewise.
6884         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
6885         (NDS32_FIRST_GPR_REGNUM): Define.
6886         (NDS32_LAST_GPR_REGNUM): Define.
6887         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
6888         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6889         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6890         (machine_function): Use GRP-specific stuff.
6891
6892 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6893
6894         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
6895         (nds32_expand_epilogue): Likewise.
6896         (nds32_expand_prologue_v3push): Likewise.
6897         (nds32_expand_epilogue_v3pop): Likewise.
6898
6899 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6900
6901         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
6902         v3push/v3pop for variadic function.
6903         * config/nds32/nds32.md (prologue, epilogue): Likewise.
6904
6905 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6906
6907         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
6908         Check rtx for varargs implementation.
6909         (nds32_output_stack_pop): Likewise.
6910         * config/nds32/nds32-protos.h: Have a rtx argument for
6911         nds32_output_stack_push and nds32_output_stack_pop.
6912         * config/nds32/nds32.md: Likewise.
6913
6914 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6915
6916         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
6917         to check if FUNC is an interrupt service routine.
6918         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
6919
6920 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6921
6922         * config/nds32/nds32.h (machine_function): Add some fields for variadic
6923         arguments implementation.
6924
6925 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6926
6927         * config/nds32/nds32-predicates.c
6928         (nds32_valid_stack_push_pop): Rename to ...
6929         (nds32_valid_stack_push_pop_p): ... this.
6930         * config/nds32/nds32-protos.h: Likewise.
6931         * config/nds32/predicates.md: Likewise.
6932
6933 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6934
6935         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
6936         (nds32_emit_stack_v3push): ... this.
6937         (nds32_gen_stack_v3pop): Rename to ...
6938         (nds32_emit_stack_v3pop): ... this and consider CFA restore
6939         information.
6940
6941 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6942
6943         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
6944         (nds32_emit_stack_push_multiple): ... this.
6945         (nds32_gen_stack_pop_multiple): Rename to ...
6946         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
6947         information.
6948
6949 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6950
6951         PR target/61078
6952         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
6953         and add a second splitter to handle the remaining cases.
6954
6955 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
6956
6957         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
6958
6959 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
6960
6961         * cfgexpand.c (label_rtx_for_bb): Change type to
6962         hash_map<basic_block, rtx_code_label *> *.
6963         (expand_gimple_basic_block): Adjust.
6964         (pass_expand::execute): Likewise.
6965
6966 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
6967
6968         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
6969         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
6970         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
6971         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
6972         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
6973         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
6974         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
6975         of rtx.
6976
6977 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
6978
6979         * alloc-pool.c: Include coretypes.h.
6980         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
6981         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
6982         hash_set instead of htab.
6983         * ggc-page.c (in_gc): New variable.
6984         (ggc_free): Do nothing if a collection is taking place.
6985         (ggc_collect): Set in_gc appropriately.
6986         * ggc.h (gt_ggc_mx(const char *)): New function.
6987         (gt_pch_nx(const char *)): Likewise.
6988         (gt_ggc_mx(int)): Likewise.
6989         (gt_pch_nx(int)): Likewise.
6990         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
6991         (hash_map::hash_entry::pch_nx): Likewise.
6992         (hash_map::hash_entry::pch_nx_helper): Likewise.
6993 (hash_map::hash_map): Adjust.
6994 (hash_map::create_ggc): New function.
6995 (gt_ggc_mx): Likewise.
6996 (gt_pch_nx): Likewise.
6997         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
6998 (default_hashset_traits::pch_nx): Likewise.
6999 (hash_set::hash_entry::ggc_mx): Likewise.
7000 (hash_set::hash_entry::pch_nx): Likewise.
7001 (hash_set::hash_entry::pch_nx_helper): Likewise.
7002 (hash_set::hash_set): Adjust.
7003 (hash_set::create_ggc): New function.
7004 (hash_set::elements): Likewise.
7005 (gt_ggc_mx): Likewise.
7006 (gt_pch_nx): Likewise.
7007         * hash-table.h (hash_table::hash_table): Adjust.
7008 (hash_table::m_ggc): New member.
7009         (hash_table::~hash_table): Adjust.
7010         (hash_table::expand): Likewise.
7011         (hash_table::empty): Likewise.
7012 (gt_ggc_mx): New function.
7013         (hashtab_entry_note_pointers): Likewise.
7014 (gt_pch_nx): Likewise.
7015
7016 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7017
7018         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
7019         built-in definition.
7020         (XVCVUXDDP_SCALE): Likewise.
7021         (XVCVDPSXDS_SCALE): Likewise.
7022         (XVCVDPUXDS_SCALE): Likewise.
7023         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
7024         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7025         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7026         VSX_BUILTIN_XVCVDPUXDS_SCALE.
7027         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7028         prototype.
7029         * config/rs6000/rs6000.c (real.h): New include.
7030         (rs6000_scale_v2df): New function.
7031         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7032         (UNSPEC_VSX_XVCVUXDDP): Likewise.
7033         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7034         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7035         (vsx_xvcvsxddp_scale): New define_expand.
7036         (vsx_xvcvsxddp): New define_insn.
7037         (vsx_xvcvuxddp_scale): New define_expand.
7038         (vsx_xvcvuxddp): New define_insn.
7039         (vsx_xvcvdpsxds_scale): New define_expand.
7040         (vsx_xvcvdpsxds): New define_insn.
7041         (vsx_xvcvdpuxds_scale): New define_expand.
7042         (vsx_xvcvdpuxds): New define_insn.
7043         * doc/extend.texi (vec_ctf): Add new prototypes.
7044         (vec_cts): Likewise.
7045         (vec_ctu): Likewise.
7046         (vec_splat): Likewise.
7047         (vec_div): Likewise.
7048         (vec_mul): Likewise.
7049
7050 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7051
7052         PR target/62275
7053         * config/arm/neon.md
7054         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7055         <v_cmp_result>): New pattern.
7056         * config/arm/iterators.md (NEON_VCVT): New int iterator.
7057         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7058         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7059         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7060         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7061         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7062
7063 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7064
7065         PR target/62275
7066         * config/arm/iterators.md (FIXUORS): New code iterator.
7067         (VCVT): New int iterator.
7068         (su_optab): New code attribute.
7069         (su): Likewise.
7070         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7071
7072 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7073
7074         * config/aarch64/predicates.md (aarch64_comparison_operation):
7075         New special predicate.
7076         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7077         aarch64_comparison_operation instead of matching an operator.
7078         Update operand numbers.
7079         (csinc3<mode>_insn): Likewise.
7080         (*csinv3<mode>_insn): Likewise.
7081         (*csneg3<mode>_insn): Likewise.
7082         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7083         * config/aarch64/aarch64.c (aarch64_get_condition_code):
7084         Return -1 instead of aborting on invalid condition codes.
7085         (aarch64_print_operand): Update aarch64_get_condition_code callsites
7086         to assert that the returned condition code is valid.
7087         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7088
7089 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
7090
7091         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7092         tree.def, and gimple.def
7093
7094 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
7095             Balaji V. Iyer  <balaji.v.iyer@intel.com>
7096             Igor Zamyatin  <igor.zamyatin@intel.com>
7097
7098         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7099         (__cilkrts_cilk_for_64): Likewise.
7100         * cilk-common.c (declare_cilk_for_builtin): New function.
7101         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7102         __cilkrts_cilk_for_64 bultins.
7103         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7104         CILK_TI_F_LOOP_64.
7105         (cilk_for_32_fndecl): New define.
7106         (cilk_for_64_fndecl): Likewise.
7107         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7108         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7109         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7110         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7111         GF_OMP_FOR_COMBINED_INTO.
7112         * gimplify.c (gimplify_scan_omp_clauses): Added
7113         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7114         (gimplify_adjust_omp_clauses): Ditto.
7115         (gimplify_omp_for): Added CILK_FOR case.
7116         (gimplify_expr): Ditto.
7117         * omp-low.c: Include cilk.h.
7118         (extract_omp_for_data): Set appropriate kind for
7119         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7120         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7121         (create_omp_child_function_name): Added second argument to handle
7122         cilk_for case.
7123         (cilk_for_check_loop_diff_type): New function.
7124         (expand_cilk_for_call): Likewise.
7125         (expand_cilk_for): Likewise.
7126         (create_omp_child_function): Set cilk_for_count; handle the cases when
7127         it is true; call create_omp_child_function_name with second argument.
7128         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7129         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7130         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7131         * tree-nested.c (convert_nonlocal_omp_clauses): Added
7132         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7133         (convert_local_omp_clauses): Ditto.
7134         * tree-pretty-print.c (dump_omp_clause): Added
7135         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7136         (dump_generic_node): Added CILK_FOR case.
7137         * tree.c (omp_clause_num_ops): New element
7138         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7139         (omp_clause_code_name): New element _Cilk_for_count_.
7140         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7141         * tree.def: Add tree code for CILK_FOR.
7142
7143 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7144
7145         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7146         (ppc403-compare): Add "exts with dot" case.
7147         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7148         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7149         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7150         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7151         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7152         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7153         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7154         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7155         cell-cmp-microcoded): Similarly.
7156         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7157         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7158         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7159         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7160         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7161         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7162         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7163         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7164         (power6-compare): Add "exts with dot" case.
7165         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7166         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7167         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7168
7169         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7170         if avoiding Cell microcode.
7171         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7172         (is_cracked_insn): Ditto.
7173         (insn_must_be_first_in_group): Ditto.
7174         * config/rs6000/rs6000.md (dot): Adjust comment.
7175         (cell_micro): Handle exts+dot.
7176         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7177         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7178         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7179         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7180         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7181         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7182         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7183
7184 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7185
7186         * config/rs6000/rs6000.md (QHSI): Delete.
7187         (EXTQI, EXTHI, EXTSI): New mode iterators.
7188         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7189         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7190         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7191         9 anonymous instructions, and 8 splitters): Delete.
7192         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7193         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7194         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7195         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7196         *zero_extendsi<mode>2_dot2): New.
7197
7198 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7199
7200         * config/rs6000/rs6000.md (any_extend): New code iterator.
7201         (u, su): New code attributes.
7202         (dmode, DMODE): New mode attributes.
7203         (<su>mul<mode>3_highpart): New.
7204         (*<su>mul<mode>3_highpart): New.
7205         (<su>mulsi3_highpart_le): New.
7206         (<su>muldi3_highpart_le): New.
7207         (<su>mulsi3_highpart_64): New.
7208         (<u>mul<mode><dmode>3): New.
7209         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7210         splitters): Delete.
7211         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7212         splitters): Delete.
7213
7214 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7215
7216         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
7217         *mulsi3_internal2, and two splitters): Delete.
7218         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
7219         Delete.
7220         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
7221
7222 2014-09-02  Richard Biener  <rguenther@suse.de>
7223
7224         PR tree-optimization/62695
7225         * tree-ssa-structalias.c (find_func_clobbers): Add missing
7226         vector truncate.
7227
7228 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
7229
7230         PR target/62312
7231         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
7232
7233 2014-09-01  Andi Kleen  <ak@linux.intel.com>
7234
7235         * file-find.c (add_prefix_begin): Add.
7236         (do_add_prefix): Rename from add_prefix with first argument.
7237         (add_prefix): Add new wrapper.
7238         * file-find.h (add_prefix_begin): Add.
7239         * gcc-ar.c (main): Support -B option.
7240
7241 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
7242
7243         * genemit.c: Include dumpfile.h.
7244         (gen_split): Print name of splitter function to dump file.
7245
7246 2014-09-01  Richard Biener  <rguenther@suse.de>
7247
7248         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
7249         Use stack auto_vecs for constraint expressions.
7250         (find_func_aliases_for_call): Likewise.
7251         (find_func_aliases): Likewise.
7252         (find_func_clobbers): Likewise.
7253
7254 2014-09-01  Richard Biener  <rguenther@suse.de>
7255
7256         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7257         operands vector in most cases.  Remove redundant code.
7258
7259 2014-09-01  Olivier Hainque  <hainque@adacore.com>
7260
7261         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7262         $WIND_BASE instead of designating a harcoded arbitrary home dir.
7263         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7264
7265 2014-09-01  Richard Biener  <rguenther@suse.de>
7266
7267         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7268         copy_reference_ops_from_call, vn_nary_op_compute_hash,
7269         vn_reference_compute_hash, vn_reference_insert): Remove.
7270         (vn_reference_lookup_call): New function.
7271         * tree-ssa-sccvn.c (vn_reference_compute_hash,
7272         copy_reference_ops_from_ref, copy_reference_ops_from_call,
7273         vn_reference_insert, vn_nary_op_compute_hash): Make static.
7274         (create_reference_ops_from_call): Remove.
7275         (vn_reference_lookup_3): Properly update shared_lookup_references.
7276         (vn_reference_lookup_pieces): Assert that we updated
7277         shared_lookup_references properly.
7278         (vn_reference_lookup): Likewise.
7279         (vn_reference_lookup_call): New function.
7280         (visit_reference_op_call): Use it.  Avoid re-building the
7281         reference ops.
7282         (visit_reference_op_load): Remove redundant lookup.
7283         (visit_reference_op_store): Perform special tail-merging work
7284         only when possibly doing tail-merging.
7285         (visit_use): Likewise.
7286         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7287
7288 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
7289
7290         PR target/62025
7291         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7292         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7293         (find_inc): Revert 2014-08-13 change.
7294
7295 2014-09-01  Marek Polacek  <polacek@redhat.com>
7296
7297         PR middle-end/61903
7298         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7299         Change the type of V to unsigned HOST_WIDE_INT.
7300
7301 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7302
7303         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7304         the size of byte markers.
7305         (do_shift_rotate): Fix confusion between host, target and marker byte
7306         size.
7307         (verify_symbolic_number_p): Likewise.
7308         (find_bswap_or_nop_1): Likewise.
7309         (find_bswap_or_nop): Likewise.
7310
7311 2014-09-01  Olivier Hainque  <hainque@adacore.com>
7312
7313         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7314         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7315
7316 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
7317
7318         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7319         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7320         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7321
7322 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
7323
7324         PR sanitizer/61897
7325         PR sanitizer/62140
7326         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7327         (build_check_stmt): Likewise.
7328         (instrument_strlen_call): Likewise.
7329         (asan_expand_check_ifn): Likewise and fix types.
7330         (maybe_cast_to_ptrmode): New function.
7331
7332 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7333
7334         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7335
7336 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
7337
7338         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7339
7340 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
7341
7342         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7343         prefix to function labels when generating fast indirect calls.
7344
7345 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
7346
7347         PR bootstrap/62304
7348
7349         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7350         param back from rtx_insn * to rtx.  Rename param from "label" to
7351         "label_or_return", reintroducing "label" as an rtx_insn * after
7352         we've ensured it's not a RETURN.
7353         (first_active_target_insn): Likewise for return type and param;
7354         add a checked cast to rtx_insn * once we've ensured "insn" is not
7355         a RETURN.
7356         (steal_delay_list_from_target): Convert param "pnew_thread" back
7357         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
7358         with JUMP_LABEL.
7359         (own_thread_p): Convert param "thread" back from an rtx_insn * to
7360         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
7361         cast once we've established we're not dealing with a RETURN,
7362         renaming subsequent uses of "thread" to "thread_insn".
7363         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
7364         to JUMP_LABEL.
7365         (follow_jumps): Convert return type and param "label" from
7366         rtx_insn * back to rtx.  Move initialization of "value" to after
7367         the handling for ANY_RETURN_P, adding a checked cast there to
7368         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
7369         rename to "this_label_or_return", reintroducing "this_label" as
7370         an rtx_insn * once we've handled the case where it could be an
7371         ANY_RETURN_P.
7372         (fill_slots_from_thread): Rename param "thread" to
7373         "thread_or_return", converting from an rtx_insn * back to an rtx.
7374         Reintroduce name "thread" as an rtx_insn * local with a checked
7375         cast once we've handled the case of it being an ANY_RETURN_P.
7376         Convert local "new_thread" from an rtx_insn * back to an rtx.
7377         Add a checked cast when assigning to "trial" from "new_thread".
7378         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
7379         checked cast to rtx_insn * from "new_thread" when invoking
7380         get_label_before.
7381         (fill_eager_delay_slots): Convert locals "target_label",
7382         "insn_at_target" from rtx_insn * back to rtx.
7383         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
7384         (relax_delay_slots): Convert locals "trial", "target_label" from
7385         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
7386         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
7387         invoking update_block.
7388         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
7389         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
7390
7391         * resource.h (mark_target_live_regs): Undo erroneous conversion
7392         of second param of r214693, converting it back from rtx_insn * to
7393         rtx, since it could be a RETURN.
7394
7395         * resource.c (find_dead_or_set_registers): Similarly, convert
7396         param "jump_target" back from an rtx_insn ** to an rtx *, as we
7397         could be writing back a RETURN.  Rename local rtx_insn * "next" to
7398         "next_insn", and introduce "lab_or_return" as a local rtx,
7399         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
7400         (mark_target_live_regs): Undo erroneous conversion
7401         of second param of r214693, converting it back from rtx_insn * to
7402         rtx, since it could be a RETURN.  Rename it from "target" to
7403         "target_maybe_return", reintroducing the name "target" as a local
7404         rtx_insn * with a checked cast, after we've handled the case of
7405         ANY_RETURN_P.
7406
7407 2014-08-29  DJ Delorie  <dj@redhat.com>
7408
7409         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
7410         pointer size up to a power of two.
7411         * defaults.h (DWARF2_ADDR_SIZE): Round up.
7412         (POINTER_SIZE_UNITS): New, rounded up value.
7413         * dwarf2asm.c (size_of_encoded_value): Use it.
7414         (dw2_output_indirect_constant_1): Likewise.
7415         * expmed.c (init_expmed_one_conv): We now know the sizes of
7416         partial int modes.
7417         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
7418         * optabs.c (expand_float): Use precision, not size.
7419         (expand_fix): Likewise.
7420         * simplify-rtx (simplify_unary_operation_1): Likewise.
7421         * tree-dfa.c (get_ref_base_and_extent): Likewise.
7422         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
7423         (default_assemble_integer) Likewise.
7424         (dump_tm_clone_pairs): Likewise.
7425         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
7426         * var-tracking.c (adjust_mems): Allow partial-int modes also.
7427         (prepare_call_arguments): Likewise.
7428         * stor-layout.c (finalize_type_size): Preserve precision.
7429         (layout_type): Use precision, not size.
7430
7431         * expr.c (convert_move): If the target has an explicit converter,
7432         use it.
7433
7434 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
7435
7436         * gdbinit.in: Skip various inline functions in rtl.h when
7437         stepping.
7438
7439 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
7440
7441         PR bootstrap/62301
7442         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
7443
7444 2014-08-29  Richard Biener  <rguenther@suse.de>
7445
7446         PR tree-optimization/62291
7447         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
7448         exactly the vector size needed and use quick_push.
7449         (phi_translate_1): Adjust comment.
7450         (valid_in_sets): Remove block argument and remove pointless
7451         checking of NAMEs.
7452         (dependent_clean): Adjust for removal of block argument.
7453         (clean): Likewise.
7454         (compute_antic_aux): Likewise.
7455         (compute_partial_antic_aux): Likewise.
7456
7457 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7458             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7459             Anna Tikhonova  <anna.tikhonova@intel.com>
7460             Ilya Tocar  <ilya.tocar@intel.com>
7461             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7462             Ilya Verbin  <ilya.verbin@intel.com>
7463             Kirill Yukhin  <kirill.yukhin@intel.com>
7464             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7465
7466         * config/i386/sse.md
7467         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
7468         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
7469         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
7470         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
7471
7472 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7473             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7474             Anna Tikhonova  <anna.tikhonova@intel.com>
7475             Ilya Tocar  <ilya.tocar@intel.com>
7476             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7477             Ilya Verbin  <ilya.verbin@intel.com>
7478             Kirill Yukhin  <kirill.yukhin@intel.com>
7479             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7480
7481         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
7482         * config/i386/sse.md
7483         (define_mode_iterator VI4_128_8_256): New.
7484         (define_mode_iterator VI2_128_4_256): Ditto.
7485         (define_mode_iterator PMOV_DST_MODE): Rename into
7486         (define_mode_iterator PMOV_DST_MODE_1): this.
7487         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
7488         Use PMOV_DST_MODE_1 mode iterator.
7489         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7490         Ditto.
7491         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7492         Ditto.
7493         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
7494         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
7495         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
7496         (define_mode_iterator PMOV_DST_MODE_2): New.
7497         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
7498         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
7499         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
7500         Ditto.
7501         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
7502         (define_mode_attr pmov_dst_3): Ditto.
7503         (define_mode_attr pmov_dst_zeroed_3): Ditto.
7504         (define_mode_attr pmov_suff_3): Ditto.
7505         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
7506         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
7507         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
7508         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
7509         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
7510         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
7511         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
7512         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
7513         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
7514         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
7515         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
7516         (define_mode_attr pmov_dst_4): Ditto.
7517         (define_mode_attr pmov_dst_zeroed_4): Ditto.
7518         (define_mode_attr pmov_suff_4): Ditto.
7519         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
7520         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
7521         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
7522         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
7523         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
7524         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
7525         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
7526         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
7527         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
7528         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
7529         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
7530
7531 2014-08-29  Richard Biener  <rguenther@suse.de>
7532
7533         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
7534         NON_LVALUE_EXPR in gimple.
7535
7536 2014-08-29  Richard Biener  <rguenther@suse.de>
7537
7538         PR middle-end/62292
7539         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
7540         from previous refactoring.
7541         (gimple_fold_builtin_strncpy): Likewise.
7542
7543 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
7544
7545         PR bootstrap/62300
7546         * function.c (assign_parm_setup_reg): Remove erroneous checked
7547         cast to rtx_insn * on result of gen_extend_insn in favor of
7548         introducing a new local rtx "pat".
7549
7550 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7551
7552         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
7553         to silence warning.
7554         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
7555
7556 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7557
7558         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
7559         (next_insn): Likewise.
7560         * emit-rtl.c (next_insn): Likewise.
7561         (previous_insn): Likewise.
7562         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
7563         "insn" and "next" from rtx to rtx_insn *.
7564         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
7565         "insn", "insn1", "vliw_start",  "prologue_end_note",
7566         "last_insn_in_packet".
7567
7568 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7569
7570         * shrink-wrap.h (active_insn_between): Strengthen both params from
7571         rtx to rtx_insn *.
7572         * function.c (active_insn_between): Likewise.
7573
7574 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7575
7576         * genattr.c (main): When writing out insn-attr.h, strengthen param
7577         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
7578         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
7579         writing out the definition of dfa_clear_single_insn_cache to the
7580         generated insn-automata.c
7581
7582 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7583
7584         * resource.h (clear_hashed_info_for_insn): Strengthen param from
7585         rtx to rtx_insn *.
7586         (incr_ticks_for_insn): Likewise.
7587         (init_resource_info): Likewise.
7588
7589         * resource.c (init_resource_info): Likewise.
7590         (clear_hashed_info_for_insn): Likewise.
7591         (incr_ticks_for_insn): Likewise.
7592
7593         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
7594         rtx to rtx_insn *.
7595         (steal_delay_list_from_target): Use methods of "seq".
7596         (try_merge_delay_insns): Use methods of "merged_insns".
7597         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
7598         (reorg_redirect_jump): Likewise for param "jump".
7599
7600 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7601
7602         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7603         rtx to rtx_insn *.
7604         * config/s390/s390.c (s390_split_branches): Eliminate top-level
7605         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7606         "set_insn".
7607         (s390_mainpool_finish): In three places, split out a local rtx
7608         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7609         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
7610         and split another local rtx "insn" out into rtx "pat" and
7611         rtx_insn * "insn".
7612         * config/sh/sh.c (output_branchy_insn): Rather than working
7613         directly on operands[9], introduce local rtx_code_label *
7614         variables named "lab" in two places, working on them, and then
7615         assigning them to operands[9], so that the intervening operations
7616         are known by the type system to be on insns.
7617
7618 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7619
7620         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7621         const rtx_insn *.
7622
7623         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7624         in invocation of INSN_HAS_LOCATION.
7625
7626 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7627
7628         * config/rs6000/altivec.h (vec_xl): New #define.
7629         (vec_xst): Likewise.
7630         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7631         (XXSPLTD_V2DI): Likewise.
7632         (DIV_V2DI): Likewise.
7633         (UDIV_V2DI): Likewise.
7634         (MUL_V2DI): Likewise.
7635         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7636         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7637         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7638         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7639         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7640         (UNSPEC_VSX_DIVSD): Likewise.
7641         (UNSPEC_VSX_DIVUD): Likewise.
7642         (UNSPEC_VSX_MULSD): Likewise.
7643         (vsx_mul_v2di): New insn-and-split.
7644         (vsx_div_v2di): Likewise.
7645         (vsx_udiv_v2di): Likewise.
7646         (vsx_xxspltd_<mode>): New insn.
7647
7648 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7649
7650         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7651         NEXT_INSN.
7652         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7653         (NEXT_INSN): Likewise.
7654         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7655         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7656         const rtx_insn *.
7657         (no_labels_between_p): Likewise for both params.
7658
7659         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7660         cast when using NEXT_INSN on operands[2].
7661         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7662         "insn" from rtx to rtx_insn *, adding a checked cast.
7663         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7664         rtx_insn *.
7665         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7666         for third param.
7667         (arc_text_label): Likewise for param "insn".
7668         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7669         "insn".
7670         (arc_ccfsm_record_condition): Likewise for param "jump".
7671         (arc_text_label): Likewise for local "label".
7672         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7673         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7674         a method for typesafety.  Add a checked cast.
7675         * config/arc/constraints.md (Clb): Add a checked cast when getting
7676         the CODE_LABEL from a LABEL_REF.
7677         * config/arm/arm.c (require_pic_register): Strengthen locals
7678         "seq", "insn" from rtx to rtx_insn *.
7679         (create_fix_barrier): Likewise for locals "selected", "next".
7680         (thumb1_reorg): Likewise for locals "prev", "insn".
7681         (arm_expand_prologue): Likewise for local "last".
7682         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7683         operands[0].
7684         (thumb2_output_casesi): Likewise for operands[2].
7685         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7686         strengthen local "insn" from rtx to rtx_insn *.
7687         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7688         type and param "insn".
7689         (find_prev_insn_start): Likewise.
7690         (hwloop_optimize): Likewise for locals "insn", "last_insn",
7691         "prev".
7692         (gen_one_bundle): Likewise for loal "t".
7693         (find_load): Likewise for param "insn".
7694         (workaround_speculation): Likewise for locals "insn", "next",
7695         "target", "next_tgt".
7696         * config/c6x/c6x.c (assign_reservations): Likewise for both params
7697         and for locals "insn", "within", "last".
7698         (count_unit_reqs): Likewise for params "head", "tail" and local
7699         "insn".
7700         (try_rename_operands): Likewise for params "head", "tail".
7701         (reshuffle_units): Likewise for locals "head", "tail", "insn".
7702         (struct c6x_sched_context): Likewise for fields
7703         "last_scheduled_insn", "last_scheduled_iter0".
7704         (init_sched_state): Replace NULL_RTX with NULL.
7705         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
7706         to rtx_insn *.
7707         (undo_split_delayed_nonbranch): Likewise for param and for local
7708         "prev".
7709         (conditionalize_after_sched): Likewise for local "insn".
7710         (bb_earliest_end_cycle): Likewise.
7711         (filter_insns_above): Likewise for locals "insn", "next".
7712         (hwloop_optimize): Remove redundant checked cast.
7713         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
7714         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
7715         NULL_RTX with NULL.
7716         (cris_simple_epilogue): Likewise.
7717         (cris_expand_prologue): Likewise.
7718         (cris_expand_epilogue): Likewise.
7719         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7720         local "insn" from rtx to rtx_insn *.
7721         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7722         (struct frv_packet_group): Likewise for the elements within array
7723         fields "insns", "sorted", and for field "nop".
7724         (frv_packet): Likewise for the elements within array field
7725         "insns".
7726         (frv_add_insn_to_packet): Likewise for param "insn".
7727         (frv_insert_nop_in_packet): Likewise for param "insn" and local
7728         "last".
7729         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7730         (frv_sort_insn_group_1): Likewise for local "insn".
7731         (frv_optimize_membar_local): Likewise.
7732         (frv_align_label): Likewise for locals "x", "last", "barrier",
7733         "label".
7734         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7735         local.
7736         (ia64_sched_init): Likewise for local "insn".
7737         (scheduled_good_insn): Likewise for param "last".
7738         (struct _ia64_sched_context): Likewise for field
7739         "last_scheduled_insn".
7740         (ia64_init_sched_context): Replace NULL_RTX with NULL.
7741         (struct bundle_state): Likewise for field "insn".
7742         (issue_nops_and_insn): Likewise for param "insn".
7743         (get_next_important_insn): Likewise for return type and both
7744         params.
7745         (ia64_add_bundle_selector_before): Likewise for param "insn".
7746         (bundling): Likewise for params "prev_head_insn", "tail" and
7747         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
7748         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
7749         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
7750         Strengthen final param from rtx to rtx_insn *.
7751         (iq2000_move_1word): Likewise for second param.
7752         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
7753         param "cur_insn" and local "next_insn".
7754         (iq2000_move_1word): Likewise for param "insn".
7755         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
7756         casts when using NEXT_INSN on operands[1].
7757         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
7758         "insn" from rtx to rtx_insn *.
7759         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
7760         "x", introducing local rtx_insn * "insn" for when working with the
7761         CODE_LABEL of the LABEL_REF.
7762         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
7763         rtx_insn *.
7764         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
7765         param.
7766         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
7767         type.
7768         (conditionalize_block): Likewise for return type and param.
7769         (mcore_is_dead): Likewise for param "first" and local "insn".
7770         (emit_new_cond_insn): Likewise for return type.
7771         (conditionalize_block): Likewise for return type, param, and
7772         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
7773         "newinsn".
7774         (conditionalize_optimization): Likewise for local "insn".
7775         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
7776         using NEXT_INSN.
7777         * config/microblaze/microblaze.md: Add checked casts when using
7778         NEXT_INSN.
7779         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
7780         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
7781         and rtx_insn * "insn".
7782         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
7783         checked cast when using NEXT_INSN on operands[2].
7784         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
7785         local "insn" from rtx to rtx_insn *.
7786         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
7787         Likewise.
7788         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
7789         Add a checked cast when using NEXT_INSN on operands[1].
7790         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
7791         rtx to rtx_insn *.
7792         (pa_output_cbranch): Likewise for final param.
7793         (pa_output_lbranch): Likewise for second param.
7794         (pa_output_bb): Likewise for third param.
7795         (pa_output_bvb): Likewise.
7796         (pa_output_dbra): Likewise for second param.
7797         (pa_output_movb): Likewise.
7798         (pa_output_parallel_movb): Likewise.
7799         (pa_output_parallel_addb): Likewise.
7800         (pa_output_millicode_call): Likewise for first param.
7801         (pa_output_mul_insn): Likewise for second param.
7802         (pa_output_div_insn): Likewise for third param.
7803         (pa_output_mod_insn): Likewise for second param.
7804         (pa_jump_in_call_delay): Likewise for param.
7805         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
7806         (pa_output_div_insn): Likewise.
7807         (pa_output_mod_insn): Likewise.
7808         (pa_output_cbranch): Likewise.
7809         (pa_output_lbranch): Likewise.
7810         (pa_output_bb): Likewise.
7811         (pa_output_bvb): Likewise.
7812         (pa_output_dbra): Likewise.
7813         (pa_output_movb): Likewise.
7814         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
7815         to simplify and for typesafety.
7816         (pa_output_call): Use method of rtx_sequence *.
7817         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
7818         (pa_jump_in_call_delay): Likewise.
7819         (pa_output_parallel_movb): Likewise.
7820         (pa_output_parallel_addb): Likewise.
7821         (pa_following_call): Likewise.
7822         (pa_combine_instructions): Likewise for locals "anchor",
7823         "floater".
7824         (pa_can_combine_p): Likewise for params "anchor", "floater" and
7825         locals "start", "end".
7826         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
7827         param "insn" and local "local_insn".
7828         (picochip_final_prescan_insn): Likewise for local "local_insn".
7829         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
7830         local "insn".
7831         (uses_TOC): Likewise.
7832         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
7833         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
7834         splitting out to more tightly-scoped locals, 3 as rtx and one as
7835         rtx_insn *.
7836         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
7837         to rtx_insn *.
7838         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
7839         where needed.
7840         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
7841         to rtx_insn *.
7842         (fixup_addr_diff_vecs): Likewise.
7843         (reg_unused_after): Likewise for param 2.
7844         (sh_can_redirect_branch): Likewise for both params.
7845         (check_use_sfunc_addr): Likewise for param 1.
7846         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
7847         (find_barrier): Likewise for local "last_got".
7848         (gen_block_redirect): Likewise for return type, param "jump" and
7849         locals "prev", "scan", "next", "insn".
7850         (struct far_branch): Likewise for fields "near_label",
7851         "insert_place", "far_label".
7852         (gen_far_branch): Likewise for local "jump".
7853         (fixup_addr_diff_vecs): Likewise for param "first" and locals
7854         "insn", "prev".
7855         (barrier_align): Likewise for param and for locals "prev", "x".
7856         Introduce local rtx_sequence * "prev_seq" and use insn method for
7857         typesafety and clarity.
7858         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
7859         (get_dest_uid): Likewise for local "dest".
7860         (split_branches): Likewise for locals "next", "beyond", "label",
7861         "block", "far_label".  Add checked casts when assigning to
7862         bp->far_label and "far_label".
7863         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
7864         (sequence_insn_p): Likewise.
7865         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
7866         more loop-scoped rtx "insn" when walking LABEL_REFS.
7867         (sh_can_redirect_branch): Strengthen both params from rtx to
7868         rtx_insn *.
7869         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
7870         new local rtx_sequence * "seq" via a dyn_cast, and use a method
7871         for clarity and typesafety.
7872         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
7873         "insn" from rtx to rtx_insn *.
7874         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
7875         when using NEXT_INSN on the CODE_LABEL in operands[2].
7876         (define_insn "casesi_worker_2"): Likewise.
7877         (define_insn "casesi_shift_media"): Likewise.
7878         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
7879         operands[3].
7880         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
7881         Strengthen field "insn" from rtx to rtx_insn *.
7882         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
7883         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
7884         param "start_insn" and local "start_insn".
7885         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
7886         field "insn".
7887         (find_set_of_reg_bb): Likewise for param "insn".
7888         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
7889         (trace_reg_uses): Likewise for param "start_insn".
7890         (sh_treg_combine::cbranch_trace): Likewise for field
7891         "cbranch_insn".
7892         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
7893         param "insn".
7894         (sh_treg_combine::record_set_of_reg): Likewise for param
7895         "start_insn" and local "i".
7896         (sh_treg_combine::can_remove_cstore): Likewise for local
7897         "prev_insn".
7898         (sh_treg_combine::try_optimize_cbranch): Likewise for param
7899         "insn".
7900         (sh_treg_combine::execute): Likewise for local "i".
7901         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
7902         param.
7903         (sparc_check_64): Likewise for second param.
7904         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
7905         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
7906         dyn_cast, using its insn method for typesafety and clarity.
7907         (empty_delay_slot): Strengthen param "insn" from rtx to
7908         rtx_insn *.
7909         (set_extends): Likewise.
7910         (sparc_check_64): Likewise.
7911         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
7912         for locals "seq", "last_insn".
7913         (combine_bnp): Likewise for param "insn".
7914         (xstormy16_reorg): Likewise for local "insn".
7915         * config/v850/v850.c (substitute_ep_register): Likewise for params
7916         "first_insn", "last_insn" and local "insn".
7917         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
7918         elements of "regs" array, and local "insn".
7919         * except.c (emit_note_eh_region_end): Likewise for param "insn".
7920         * final.c (final_sequence): Strengthen this global from rtx to
7921         rtx_sequence *.
7922         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
7923         rtx_insn *.
7924         (final_scan_insn): Update assignment to "final_sequence" to be
7925         from "seq", the cast version of "body", for type-safety.
7926         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
7927         "insns" from rtx to rtx_insn *.
7928         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
7929         * genattr.c (main): When writing out generated insn-attr.h,
7930         strengthen params 1 and 3 of eligible_for_delay,
7931         eligible_for_annul_true, eligible_for_annul_false from rtx to
7932         rtx_insn *.
7933         * genattrtab.c (write_eligible_delay): Likewise when writing out
7934         generated insn-attrtab.c; also local "insn" the generated
7935         functions.
7936         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
7937         to rtx_insn *.
7938         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
7939         "start_label" from rtx to rtx_insn *.
7940         * ira.c (decrease_live_ranges_number): Likewise for local "p".
7941         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
7942         "insns" and local "insn".
7943         (validate_equiv_mem): Likewise for param "start" and local "insn".
7944         (memref_used_between_p): Likewise for params "start", "end" and
7945         local "insn".
7946         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
7947         final param.
7948         * loop-doloop.c (doloop_optimize): Within region guarded by
7949         INSN_P (doloop_pat), introduce a new local rtx_insn *
7950         "doloop_insn" via a checked cast, and use it for typesafety,
7951         eventually writing the value back into doloop_pat.
7952         * output.h (final_sequence): Strengthen this global from rtx to
7953         rtx_sequence *.
7954         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
7955         reintroducing "insn" as an rtx_insn * via a checked cast.
7956         Strengthen param "attempt" and local "new_insn"from rtx to
7957         rtx_insn *.
7958         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
7959         to rtx_insn *.
7960         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
7961         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
7962         "p" in favor of more tightly-scoped replacements, sometimes rtx
7963         and sometimes rtx_insn *, as appropriate.
7964         (delete_output_reload): Eliminate top-level rtx "i1", splitting
7965         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
7966         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
7967         local "trial" from rtx to rtx_insn *.
7968         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
7969         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
7970         rtx_sequence * and use methods for clarity and typesafety.
7971         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
7972         rtx to rtx_insn *.  Strenghten local "li" from rtx to
7973         rtx_insn_list * and use its methods for clarity and typesafety.
7974         (steal_delay_list_from_target): Strengthen param "insn" from rtx
7975         to rtx_insn *.
7976         (steal_delay_list_from_fallthrough): Likewise.
7977         (try_merge_delay_insns): Likewise for param "thread" and locals
7978         "trial", "next_trial", "delay_insn".
7979         (redundant_insn): Likewise for param "target" and local "trial".
7980         (own_thread_p): Likewise for param "thread" and locals
7981         "active_insn", "insn".
7982         (get_label_before): Likewise for param "insn".
7983         (fill_simple_delay_slots): Likewise for local "new_label"; use
7984         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
7985         (label_before_next_insn): Strengthen return type and local "insn"
7986         from rtx to rtx_insn *.
7987         (relax_delay_slots): Likewise for locals "other", "tmp".
7988         (make_return_insns): Likewise for param "first" and locals "insn",
7989         "jump_insn", "prev".  Move declaration of "pat" to its assignment
7990         and strengthen from rtx to rtx_sequence *.  Use its methods for
7991         clarity and typesafety.
7992         * rtlanal.c (no_labels_between_p): Strengthen params from
7993         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
7994         rtx_insn *.
7995         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
7996         from const_rtx to const rtx_insn *.
7997         (reg_set_between_p): Rename param "from_insn" to
7998         "uncast_from_insn", and reintroduce "from_insn" as a
7999         const rtx_insn * via a checked cast.
8000         (modified_between_p): Likewise for param "start" as "uncast_start".
8001         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8002         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8003         "tmp", head" from rtx to rtx_insn *.
8004         (recompute_rev_top_order): Likewise for local "insn".
8005         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8006         * store-motion.c (build_store_vectors): Likewise for local "insn".
8007         Strengthen local "st" from rtx to rtx_insn_list * and use methods
8008         for clarity and typesafety.
8009         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8010         rtx to rtx_insn *.
8011         (computation_cost): Likewise for local "seq".
8012         (get_address_cost): Likewise.
8013
8014 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8015
8016         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8017         const rtx_insn *.
8018         (label_is_jump_target_p): Likewise for second param.
8019
8020         * rtlanal.c (tablejump_p): Likewise for param "insn".
8021         (label_is_jump_target_p): Likewise for param "jump_insn".
8022
8023 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8024
8025         * rtl.h (find_first_parameter_load): Strengthen return type and
8026         both params from rtx to rtx_insn *.
8027         * rtlanal.c (find_first_parameter_load): Strengthen return type,
8028         both params and locals "before", "first_set" from rtx to
8029         rtx_insn *.  Remove now-redundant cast.
8030         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8031
8032 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8033
8034         * rtl.h (find_last_value): Delete.
8035         * rtlanal.c (find_last_value): Delete.
8036
8037 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8038
8039         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8040         from rtx to rtx_insn *.
8041         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8042         rtx "note" with new local rtx_insn * "new_head" when calculating
8043         head insn of new basic block.
8044         * combine.c (combine_split_insns): Strengthen return type and local
8045         "ret" from rtx to rtx_insn *.
8046         (likely_spilled_retval_p): Likewise for locals "use" and "p".
8047         (try_combine): Eliminate local "m_split", splitting into new
8048         locals "m_split_insn" and "m_split_pat".
8049         (find_split_point): Strengthen local "seq" from rtx into
8050         rtx_insn *.
8051         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8052         locals "label", "branch".
8053         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8054         for local "insn".
8055         (define_expand "umulsi3_highpart"): Likewise for local "insn".
8056         * dse.c (note_add_store_info): Likewise for fields "first",
8057         "current".
8058         (note_add_store): Likewise for local "insn".
8059         (emit_inc_dec_insn_before): Likewise for locals "insn",
8060         "new_insn", "cur".
8061         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8062         (replace_read): Likewise for locals "insns", "this_insn".
8063         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8064         (notice_eh_throw): Likewise for param "insn".
8065         (before_next_cfi_note): Likewise for return type, param, and local
8066         "prev".
8067         (connect_traces): Likewise for local "note".
8068         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8069         (verify_rtl_sharing): Likewise.
8070         (unshare_all_rtl_in_chain): Likewise for param "insn".
8071         (get_first_nonnote_insn): Likewise for local "insn".
8072         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
8073         "seq" and use its methods to clarify things.
8074         (next_insn): Strengthen return type from rtx to rtx_insn *.
8075         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8076         local rtx_insn * using a checked cast, dropping a checked cast
8077         made redundant by this change.  Use a cast to and method of
8078         rtx_sequence to clarify the code.
8079         (previous_insn): Rename param "insn" to "uncast_insn" and
8080         reintroduce "insn" as a local rtx_insn * using a checked cast,
8081         dropping a checked cast made redundant by this change.  Use a cast
8082         to and method of rtx_sequence to clarify the code.
8083         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8084         reintroduce "insn" as a local rtx_insn * using a checked cast,
8085         dropping a checked cast made redundant by this change.
8086         (next_nonnote_insn_bb): Likewise.
8087         (prev_nonnote_insn): Likewise.
8088         (prev_nonnote_insn_bb): Likewise.
8089         (next_nondebug_insn): Likewise.
8090         (prev_nondebug_insn): Likewise.
8091         (next_nonnote_nondebug_insn): Likewise.
8092         (prev_nonnote_nondebug_insn): Likewise.
8093         (next_real_insn): Likewise.
8094         (prev_real_insn): Likewise.
8095         (next_active_insn): Likewise.
8096         (prev_active_insn): Likewise.
8097         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
8098         clarity.
8099         (prev_cc0_setter): Likewise.
8100         (try_split): Rename param "trial" to "uncast_trial" and
8101         reintroduce "insn" as a local rtx_insn * using a checked cast,
8102         dropping checked casts made redundant by this change.
8103         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8104         rtx to rtx_insn *.
8105         (remove_insn): Rename param "insn" to "uncast_insn" and
8106         reintroduce "insn" as a local rtx_insn * using a checked cast.
8107         (emit_pattern_after_setloc): Likewise for param "after", as
8108         "uncast_after".
8109         (emit_pattern_after): Likewise.  Strengthen local "prev" from
8110         rtx to rtx_insn *.
8111         (emit_pattern_before_setloc): Rename param "before" to
8112         "uncast_before" and reintroduce "before" as a local rtx_insn *
8113         using a checked cast.  Strengthen locals "first", "last" from
8114         rtx to rtx_insn *.
8115         (emit_pattern_before): Likewise rename/cast param "before" to
8116         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8117         * except.c (copy_reg_eh_region_note_forward): Strengthen param
8118         "first" and local "insn" from rtx to rtx_insn *.
8119         (copy_reg_eh_region_note_backward): Likewise for param "last"
8120         and local "insn".
8121         * expr.c (fixup_args_size_notes): Rename param "last" to
8122         "uncast_last" and reintroduce "last" as a local rtx_insn *
8123         using a checked cast.  Strengthen local "insn" from rtx to
8124         rtx_insn *.
8125         * function.c (set_insn_locations): Strengthen param "insn" from
8126         rtx to rtx_insn *.
8127         (record_insns): Likewise for param "insns" and local "tmp".
8128         (active_insn_between): Rename param "tail" to
8129         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8130         using a checked cast.
8131         (thread_prologue_and_epilogue_insns): Split out top-level local
8132         rtx "seq" into three different rtx_insn * locals.  Strengthen
8133         local "prologue_seq" from rtx to rtx_insn *.
8134         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8135         from rtx to rtx_insn *.
8136         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8137         (priority): Likewise for locals "prev_first", "twin".
8138         (setup_insn_max_reg_pressure): Likewise for param "after".
8139         (sched_setup_bb_reg_pressure_info): Likewise.
8140         (no_real_insns_p): Strengthen params from const_rtx to
8141         const rtx_insn *.
8142         (schedule_block): Strengthen local "next_tail" from rtx to
8143         rtx_insn *.
8144         * ifcvt.c (find_active_insn_before): Strengthen return type and
8145         param "insn" from rtx to rtx_insn *.
8146         (find_active_insn_after): Likewise.
8147         (cond_exec_process_insns): Likewise for param "start" and local "insn".
8148         (cond_exec_process_if_block): Likewise for locals "then_start",
8149         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8150         (noce_process_if_block): Likewise for local "jump".
8151         (merge_if_block): Likewise for two locals named "end".
8152         (cond_exec_find_if_block): Likewise for local "last_insn".
8153         * jump.c (delete_related_insns): Rename param "insn" to
8154         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8155         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
8156         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8157         NULL.
8158         (split_reg): Likewise.
8159         * lra.c (lra_process_new_insns): Likewise.
8160         * modulo-sched.c (permute_partial_schedule): Strengthen param
8161         "last" from rtx to rtx_insn *.
8162         * optabs.c (add_equal_note): Likewise for param "insns" and local
8163         "last_insn".
8164         (expand_binop_directly): Add checked casts to rtx_insn * within
8165         NEXT_INSN (pat) uses.
8166         (expand_unop_direct): Likewise.
8167         (maybe_emit_unop_insn): Likewise.
8168         * recog.c (peep2_attempt): Strengthen locals "last",
8169         "before_try", "x" from rtx to rtx_insn *.
8170         * reorg.c (optimize_skip): Strengthen return type and local
8171         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
8172         and locals "trial", "next_trial" from rtx to rtx_insn *.
8173         * resource.c (next_insn_no_annul): Strengthen return type and
8174         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
8175         rtx_sequence to clarify the code.
8176         (mark_referenced_resources): Add a checked cast to rtx_insn *
8177         within PREV_INSN (x).
8178         (find_dead_or_set_registers): Strengthen return type, param
8179         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8180         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
8181         to rtx_insn **.
8182         (mark_target_live_regs): Strengthen params "insns" and "target",
8183         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8184         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
8185         the code.
8186         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8187         from rtx to rtx_insn *.
8188         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8189         from rtx to rtx_insn *.
8190         (copy_reg_eh_region_note_backward): Likewise.
8191         (unshare_all_rtl_in_chain): Likewise for sole param.
8192         (dump_rtl_slim): Strengthen second and third params from const_rtx
8193         to const rtx_insn *.
8194         * sched-deps.c (sched_free_deps): Strengthen params "head" and
8195         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8196         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8197         "next_tail" from rtx to rtx_insn *.
8198         (begin_move_insn): Likewise for local "next".
8199         * sched-int.h (sched_free_deps): Likewise for first and second
8200         params.
8201         (no_real_insns_p): Strengthen both params from const_rtx to
8202         const rtx_insn *.
8203         (sched_setup_bb_reg_pressure_info): Strengthen second params from
8204         rtx to rtx_insn *.
8205         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8206         "next_tail".
8207         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8208         and locals "insn", "tail" from const_rtx to const rtx_insn *.
8209         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8210         rtx_insn *.
8211         (debug_rtl_slim): Strengthen params "first" and "last" from
8212         const_rtx to const rtx_insn *.
8213         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8214         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8215         (convert_to_simple_return): Likewise for param "returnjump".
8216         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
8217         "prologue_seq".
8218         (convert_to_simple_return): Likewise for param "returnjump".
8219         * valtrack.c (propagate_for_debug): Likewise for params
8220         "insn", "last".
8221         * valtrack.h (propagate_for_debug): Likewise for second param.
8222
8223 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8224
8225         * output.h (insn_current_reference_address): Strengthen param
8226         from rtx to rtx_insn *.
8227         * final.c (insn_current_reference_address): Likewise.
8228
8229 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8230
8231         * basic-block.h (inside_basic_block_p): Strengthen param from
8232         const_rtx to const rtx_insn *.
8233         * cfgbuild.c (inside_basic_block_p): Likewise.
8234
8235 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8236
8237         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
8238         rtx_insn *.
8239         (get_trace_info): Likewise for param "insn".
8240         (save_point_p): Likewise.
8241         (maybe_record_trace_start): Likewise for both params.
8242         (maybe_record_trace_start_abnormal): Likewise.
8243         (create_trace_edges): Likewise for sole param and for three of the
8244         locals named "lab".
8245         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
8246         to rtx_insn *, and update a call to pat->element to pat->insn.
8247
8248 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8249
8250         * function.h (struct expr_status): Convert field "x_forced_labels"
8251         from rtx_expr_list * to rtx_insn_list *.
8252
8253         * cfgbuild.c (make_edges): Convert local "x" from an
8254         rtx_expr_list * to an rtx_insn_list *, replacing use of
8255         "element" method with "insn" method.
8256         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8257         * except.c (sjlj_emit_dispatch_table): Replace use of
8258         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8259         forced_labels.
8260         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8261         rtx_expr_list * to an rtx_insn_list *, replacing use of
8262         "element" method with "insn" method.
8263         * reload1.c (set_initial_label_offsets): Likewise for local "x".
8264         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8265         rtx_insn *, adding a checked cast.  Replace use of
8266         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8267         forced_labels.
8268         (expand_label): Likewise for local "label_r".
8269
8270 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8271
8272         * function.h (struct rtl_data): Convert field
8273         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8274         rtx_insn_list *.
8275         * rtl.h (remove_node_from_insn_list): New prototype.
8276
8277         * builtins.c (expand_builtin): When prepending to
8278         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8279         gen_rtx_EXPR_LIST.
8280         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8281         to rtx_insn_list *, and use its "insn" method rather than
8282         "element" method.
8283         * cfgrtl.c (delete_insn): Use new function
8284         remove_node_from_insn_list rather than
8285         remove_node_from_expr_list.
8286         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8287         to rtx_insn_list *, and use its "insn" method rather than
8288         "element" method.
8289         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8290         * reload1.c (set_initial_label_offsets): Likewise for local "x".
8291         * rtlanal.c (remove_node_from_insn_list): New function, adapted
8292         from remove_node_from_expr_list.
8293         * stmt.c (expand_label): When prepending to
8294         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8295         gen_rtx_EXPR_LIST.
8296
8297 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8298
8299         * function.h (struct rtl_data): Strengthen fields "x_return_label"
8300         and "x_naked_return_label" from rtx to rtx_code_label *.
8301
8302 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8303
8304         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8305         (SET_NEXT_INSN): Likewise.
8306         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8307
8308         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8309         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
8310         to split out the SEQUENCE from local "bundle", strengthening the
8311         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8312         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8313         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8314         and the type of the elements of the "slot" array from rtx to
8315         rtx_insn *.
8316         (reorg_split_calls): Likewise for locals "insn" and "next", and
8317         the type of the elements of the "slot" array.
8318
8319         * config/frv/frv.c (frv_nops): Likewise for the elements of this
8320         array.
8321         (frv_function_prologue): Likewise for locals "insn", "next",
8322         "last_call".
8323         (frv_register_nop): Introduce a local "nop_insn" to be the
8324         rtx_insn * containing rtx "nop".
8325
8326         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8327         used as an insn and sometimes as a pattern, so rename it to
8328         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8329         using it where dealing with the core insn.
8330
8331         * config/picochip/picochip.c (reorder_var_tracking_notes):
8332         Strengthen locals "insn", "next", "last_insn", "queue",
8333         "next_queue", "prev" from rtx to rtx_insn *.
8334
8335         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8336         the second param is an rtx_insn ** rather than an rtx **.
8337         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8338         from rtx to rtx_sequence *, and introduce local named "sequence",
8339         using methods of rtx_sequence to clarify the code.
8340         (remove_insn): Introduce local rtx_sequence * named "sequence" and
8341         use its methods.
8342         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8343         Rename param "after" to "uncast_after", reintroducing "after" as a
8344         local rtx_insn * with a checked cast.
8345         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8346         reintroducing "after" as a local rtx_insn * with a checked cast.
8347         Strengthen local "last" from rtx to rtx_insn * and remove the
8348         now-redundant checked casts.
8349         (copy_delay_slot_insn): Strengthen return type and param from rtx
8350         to rtx_insn *.
8351
8352         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
8353         "last" from rtx to rtx_insn *.
8354
8355 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8356
8357         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
8358         param from rtx to rtx_insn *.
8359
8360         * emit-rtl.c (copy_delay_slot_insn): Likewise.
8361
8362         * reorg.c (skip_consecutive_labels): Strengthen return type, param
8363         and local "insn" from rtx to rtx_insn *.
8364         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
8365         (unfilled_slots_next): Likewise.
8366         (function_return_label): Strengthen from rtx to rtx_code_label *.
8367         (function_simple_return_label): Likewise.
8368         (first_active_target_insn): Strengthen return type and param from
8369         rtx to rtx_insn *.
8370         (find_end_label): Strengthen return type from rtx to
8371         rtx_code_label *; strengthen locals as appropriate.
8372         (emit_delay_sequence): Strengthen return type, param "insn" and
8373         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
8374         and local "li" from rtx to rtx_insn_list *, using methods of
8375         rtx_insn_list for clarity and typesafety.
8376         (add_to_delay_list): Strengthen return type and param "insn" from
8377         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
8378         rtx_insn_list * and use methods of rtx_insn_list.
8379         (delete_from_delay_slot): Strengthen return type, param "insn",
8380         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
8381         Strengthen local "seq" from rtx to rtx_sequence *, and local
8382         "delay_list" from rtx to rtx_insn_list *, using methods of
8383         rtx_sequence for clarity and type-safety.
8384         (delete_scheduled_jump): Add checked cast when invoking
8385         delete_from_delay_slot.  Strengthen local "trial" from rtx to
8386         rtx_insn *.
8387         (optimize_skip): Strengthen return type and local "delay_list"
8388         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
8389         rtx_insn *.
8390         (steal_delay_list_from_target): Strengthen return type, param
8391         "delay_list" and local "new_delay_list" from rtx to
8392         rtx_insn_list *.  Strengthen param "seq" from rtx to
8393         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
8394         rtx_insn **.
8395         Split out local "temp" into multiple more-tightly scoped locals:
8396         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
8397         of rtx_insn_list and rtx_sequence for clarity and typesafety.
8398         Strengthen locals named "trial" from rtx to rtx_insn *.
8399         (steal_delay_list_from_fallthrough): Strengthen return type and
8400         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
8401         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
8402         Strengthen local "trial" from rtx to rtx_insn *.
8403         (try_merge_delay_insns): Strength local "merged_insns" from rtx
8404         to rtx_insn_list * and use its methods.  Strengthen local "pat"
8405         from rtx to rtx_sequence * and use its methods.  Strengthen locals
8406         "dtrial" and "new_rtx" from rtx to rtx_insn *.
8407         (get_label_before): Strengthen return type and local "label" from
8408         rtx to rtx_insn *.
8409         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
8410         "next_trial", "next", prev".  Strengthen local "delay_list" from
8411         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
8412         rtx_insn **.
8413         (follow_jumps): Strengthen return type, param "label" and locals
8414         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
8415         (fill_slots_from_thread): Strengthen return type, param
8416         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
8417         "insn", "thread", "opposite_thread" and locals "new_thread",
8418         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
8419         "sequence" from a checked cast to rtx_sequence so that we can call
8420         steal_delay_list_from_target and steal_delay_list_from_fallthrough
8421         with an rtx_sequence *.
8422         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
8423         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
8424         Strengthen local "delay_list" from rtx to rtx_insn_list *.
8425         (relax_delay_slots): Strengthen param "first" and locals "insn",
8426         "next", "trial", "delay_insn", "target_label" from rtx to
8427         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
8428         Introduce a local "trial_seq" for PATTERN (trial) of type
8429         rtx_sequence *, in both cases using methods of rtx_sequence.
8430         (dbr_schedule): Strengthen param "first" and locals "insn",
8431         "next", "epilogue_insn" from rtx to rtx_insn *.
8432
8433 2014-08-28  Richard Biener  <rguenther@suse.de>
8434
8435         PR tree-optimization/62283
8436         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8437         Do not peel loops for alignment where the vector loop likely
8438         doesn't run at least VF times.
8439
8440 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
8441
8442         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
8443         important_candidates.  Consider all important candidates if
8444         IVS doesn't give any result.  Remove check on ivs->upto.
8445         (try_add_cand_for): Call iv_ca_add_use only once.
8446
8447 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8448             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8449             Anna Tikhonova  <anna.tikhonova@intel.com>
8450             Ilya Tocar  <ilya.tocar@intel.com>
8451             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8452             Ilya Verbin  <ilya.verbin@intel.com>
8453             Kirill Yukhin  <kirill.yukhin@intel.com>
8454             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8455
8456         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
8457         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
8458         masking.
8459         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
8460         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8461         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8462         (define_insn "*mul<mode>3"): Add EVEX version.
8463
8464 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8465             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8466             Anna Tikhonova  <anna.tikhonova@intel.com>
8467             Ilya Tocar  <ilya.tocar@intel.com>
8468             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8469             Ilya Verbin  <ilya.verbin@intel.com>
8470             Kirill Yukhin  <kirill.yukhin@intel.com>
8471             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8472
8473         * config/i386/sse.md
8474         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
8475         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
8476         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
8477         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
8478         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
8479         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
8480         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
8481         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
8482         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
8483         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
8484         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
8485         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
8486         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
8487         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
8488         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
8489         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
8490
8491 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8492             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8493             Anna Tikhonova  <anna.tikhonova@intel.com>
8494             Ilya Tocar  <ilya.tocar@intel.com>
8495             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8496             Ilya Verbin  <ilya.verbin@intel.com>
8497             Kirill Yukhin  <kirill.yukhin@intel.com>
8498             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8499
8500         * config/i386/sse.md
8501         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
8502         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
8503         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
8504
8505 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8506             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8507             Anna Tikhonova  <anna.tikhonova@intel.com>
8508             Ilya Tocar  <ilya.tocar@intel.com>
8509             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8510             Ilya Verbin  <ilya.verbin@intel.com>
8511             Kirill Yukhin  <kirill.yukhin@intel.com>
8512             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8513
8514         * config/i386/sse.md
8515         (define_mode_iterator VI128_256): New.
8516         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
8517
8518 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8519             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8520             Anna Tikhonova  <anna.tikhonova@intel.com>
8521             Ilya Tocar  <ilya.tocar@intel.com>
8522             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8523             Ilya Verbin  <ilya.verbin@intel.com>
8524             Kirill Yukhin  <kirill.yukhin@intel.com>
8525             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8526
8527         * config/i386/sse.md
8528         (define_mode_iterator VI8_256_512): New.
8529         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
8530         Ditto.
8531         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8532         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
8533         Ditto.
8534         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
8535
8536 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8537
8538         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
8539         pointer to the cumulative reloc value and return the value for
8540         this reloc instead.
8541         (compute_reloc_for_rtx): Take a const_rtx.  Call
8542         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
8543         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
8544         for_each_rtx for the CONST case.
8545
8546 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8547
8548         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
8549         (mark_constants_in_pattern): ...this new function to iterate over
8550         all the subrtxes.
8551         (mark_constants): Update accordingly.
8552
8553 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8554
8555         * varasm.c: Include rtl-iter.h.
8556         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
8557         Remove the pointer to the cumulative hashval_t and just return
8558         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
8559         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8560         Accumulate the hashval_ts here instead of const_rtx_hash_1.
8561
8562 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8563
8564         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
8565         Give real type of data parameter.  Remove return value.
8566         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
8567         to iterate over subrtxes.
8568
8569 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8570
8571         * var-tracking.c (use_narrower_mode_test): Turn from being a
8572         for_each_rtx callback to being a function that examines each
8573         subrtx itself.
8574         (adjust_mems): Update accordingly.
8575
8576 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8577
8578         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
8579         callback to being a function that examines each subrtx itself.
8580         Remove handling of null rtxes.
8581         (add_uses): Update accordingly.
8582
8583 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8584
8585         * var-tracking.c: Include rtl-iter.h.
8586         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
8587         to being a function that examines each subrtx itself.
8588         (use_type): Update accordingly.
8589
8590 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8591
8592         * store-motion.c: Include rtl-iter.h.
8593         (extract_mentioned_regs_1): Delete.
8594         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
8595         for_each_rtx to iterate over subrtxes.
8596
8597 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8598
8599         * sel-sched.c: Include rtl-iter.h
8600         (count_occurrences_1): Delete.
8601         (count_occurrences_equiv): Turn rtxes into const_rtxes.
8602         Use FOR_EACH_SUBRTX rather than for_each_rtx.
8603
8604 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8605
8606         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8607         * rtlanal.c (tls_referenced_p_1): Delete.
8608         (tls_referenced_p): Take a const_rtx rather than an rtx.
8609         Use FOR_EACH_SUBRTX rather than for_each_rtx.
8610
8611 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8612
8613         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8614         (for_each_inc_dec): Take an rtx rather than an rtx *.
8615         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8616         (cselib_record_sets): Likewise.
8617         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8618         (check_for_inc_dec): Likewise.
8619         * rtlanal.c (for_each_inc_dec_ops): Delete.
8620         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8621         rather than a pointer to the memory address.  Replace
8622         for_each_inc_dec_ops argument with separate function and data
8623         arguments.  Abort on non-autoinc addresses.
8624         (for_each_inc_dec_find_mem): Delete.
8625         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
8626         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8627
8628 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8629
8630         * rtl.h (find_all_hard_regs): Declare.
8631         * rtlanal.c (find_all_hard_regs): New function.
8632         (record_hard_reg_uses_1): Delete.
8633         (record_hard_reg_uses): Use find_all_hard_regs.
8634
8635 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8636
8637         * rtl.h (replace_label_data): Delete.
8638         (replace_label): Take the old label, new label and update-nuses flag
8639         as direct arguments.  Return void.
8640         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8641         * rtlanal.c (replace_label): Update interface as above.  Handle
8642         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
8643         iterator.  Use FOR_EACH_SUBRTX_PTR.
8644
8645 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8646
8647         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8648         with const_rtx parameters.
8649         * varasm.c (get_pool_constant): Likewise.
8650         * rtlanal.c (rtx_referenced_p_1): Delete.
8651         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8652         Assert that the rtx we're looking for is nonnull.  Allow searches
8653         for constant pool SYMBOL_REFs.
8654
8655 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8656
8657         * reload1.c: Include rtl-iter.h.
8658         (note_reg_elim_costly): Turn from being a for_each_rtx callback
8659         to being a function that examines each subrtx itself.
8660         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8661
8662 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8663
8664         * regcprop.c (cprop_find_used_regs_1): Delete.
8665         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8666
8667 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8668
8669         * regcprop.c: Include rtl-iter.h.
8670         (kill_value): Take a const_rtx.
8671         (kill_autoinc_value): Turn from being a for_each_rtx callback
8672         to being a function that examines each subrtx itself.
8673         (copyprop_hardreg_forward_1): Update accordingly.
8674
8675 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8676
8677         * reg-stack.c: Include rtl-iter.h.
8678         (subst_stack_regs_in_debug_insn): Delete.
8679         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8680         instead of for_each_rtx.
8681
8682 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8683
8684         * lower-subreg.c (find_decomposable_subregs): Turn from being
8685         a for_each_rtx callback to being a function that examines each
8686         subrtx itself.  Remove handling of null rtxes.
8687         (decompose_multiword_subregs): Update accordingly.
8688
8689 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8690
8691         * lower-subreg.c (adjust_decomposed_uses): Delete.
8692         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8693         Remove handling of null rtxes.
8694
8695 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8696
8697         * lower-subreg.c: Include rtl-iter.h.
8698         (resolve_subreg_use): Turn from being a for_each_rtx callback
8699         to being a function that examines each subrtx itself.  Remove
8700         handling of null rtxes.
8701         (resolve_reg_notes, resolve_simple_move): Update accordingly.
8702         (decompose_multiword_subregs): Likewise.
8703
8704 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8705
8706         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
8707         to being a function that examines each subrtx itself.
8708         (simplify_using_condition, simplify_using_initial_values): Update
8709         accordingly.
8710
8711 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8712
8713         * loop-iv.c: Include rtl-iter.h.
8714         (find_single_def_src): New function.
8715         (replace_single_def_regs): Turn from being a for_each_rtx callback
8716         to being a function that examines each subrtx itself.
8717         (replace_in_expr, simplify_using_initial_values): Update accordingly.
8718
8719 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8720
8721         * jump.c (eh_returnjump_p_1): Delete.
8722         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8723         Remove handling of null rtxes.
8724
8725 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8726
8727         * jump.c: Include rtl-iter.h.
8728         (returnjump_p_1): Delete.
8729         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8730         Remove handling of null rtxes.
8731
8732 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8733
8734         * ira.c: Include rtl-iter.h.
8735         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8736         to being a function that examines each subrtx itself.  Remove
8737         handling of null rtxes.
8738         (update_equiv_regs): Update call accordingly.
8739
8740 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8741
8742         * fwprop.c: Include rtl-iter.h.
8743         (varying_mem_p): Turn from being a for_each_rtx callback to being
8744         a function that examines each subrtx itself.
8745         (propagate_rtx): Update accordingly.
8746
8747 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8748
8749         * function.c: Include rtl-iter.h
8750         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
8751         callback to being a function that examines each subrtx itself.
8752         Return the changed flag.
8753         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
8754         (instantiate_virtual_regs): Update calls accordingly.
8755
8756 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8757
8758         * final.c: Include rtl-iter.h.
8759         (mark_symbol_ref_as_used): Delete.
8760         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
8761         for_each_rtx.
8762
8763 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8764
8765         * emit-rtl.c: Include rtl-iter.h.
8766         (find_auto_inc): Turn from being a for_each_rtx callback to being
8767         a function that examines each subrtx itself.  Assume the first operand
8768         to an RTX_AUTOINC is the automodified register.
8769         (try_split): Update call accordingly.
8770
8771 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8772
8773         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
8774         Return a bool, inverting the result so that 0/false means "not ok".
8775         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
8776         subrtxes of a CONST.
8777         (mem_loc_descriptor, add_const_value_attribute)
8778         (resolve_addr_in_expr): Update calls accordingly.
8779
8780 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8781
8782         * dwarf2out.c: Include rtl-iter.h.
8783         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
8784         Remove unused data parameter.  Return a bool, inverting the result
8785         so that 0/false means "not ok".
8786         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
8787         instead of for_each_rtx.
8788
8789 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8790
8791         * dse.c: Include rtl-iter.h.
8792         (check_mem_read_rtx): Change void * parameter to real type.
8793         Remove return value.
8794         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
8795         for_each_rtx.  Don't handle null rtxes.
8796
8797 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8798
8799         * df-problems.c: Include rtl-iter.h.
8800         (find_memory): Turn from being a for_each_rtx callback to being
8801         a function that examines each subrtx itself.  Continue to look for
8802         volatile references even after a nonvolatile one has been found.
8803         (can_move_insns_across): Update calls accordingly.
8804
8805 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8806
8807         * ddg.c (walk_mems_2, walk_mems_1): Delete.
8808         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
8809         to iterate over subrtxes.  Return a bool rather than an int.
8810
8811 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8812
8813         * ddg.c: Include rtl-iter.h.
8814         (mark_mem_use_1): Rename to...
8815         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
8816         instead of for_each_rtx.
8817         (mem_read_insn_p): Update accordingly.
8818
8819 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8820
8821         * cse.c (change_cc_mode_args): Delete.
8822         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
8823         a function that examines each subrtx itself.  Take the fields of
8824         change_cc_mode_args as argument and return void.
8825         (cse_change_cc_mode_insn): Update calls accordingly.
8826
8827 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8828
8829         * cse.c (is_dead_reg): Change argument to const_rtx.
8830         (dead_debug_insn_data): Delete.
8831         (is_dead_debug_insn): Expand commentary.  Turn from being a
8832         for_each_rtx callback to being a function that examines
8833         each subrtx itself.  Take the fields of dead_debug_insn_data
8834         as argument.
8835         (delete_trivially_dead_insns): Update call accordingly.
8836
8837 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8838
8839         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
8840         being a for_each_rtx callback to being a function that examines
8841         each subrtx itself.
8842         (cse_extended_basic_block): Update call accordingly.
8843
8844 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8845
8846         * cse.c (check_dependence_data): Delete.
8847         (check_dependence): Change from being a for_each_rtx callback to being
8848         a function that examines all subrtxes itself.  Don't handle null rtxes.
8849         (invalidate): Update call accordingly.
8850
8851 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8852
8853         * cse.c: Include rtl-iter.h.
8854         (approx_reg_cost_1): Delete.
8855         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8856         Don't handle null rtxes.
8857
8858 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8859
8860         * cfgcleanup.c: Include rtl-iter.h.
8861         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
8862         to being a function that examines each subrtx itself.
8863         (thread_jump): Update accordingly.
8864
8865 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8866
8867         * combine-stack-adj.c: Include rtl-iter.h.
8868         (record_stack_refs_data): Delete.
8869         (record_stack_refs): Turn from being a for_each_rtx callback
8870         to being a function that examines each subrtx itself.
8871         Take a pointer to the reflist.  Invert sense of return value
8872         so that true means success and false means failure.  Don't
8873         handle null rtxes.
8874         (combine_stack_adjustments_for_block): Update accordingly.
8875
8876 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8877
8878         * combine.c (record_truncated_value): Turn from being a for_each_rtx
8879         callback to a function that takes an rtx and returns a bool
8880         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
8881         for_each_rtx.
8882
8883 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8884
8885         * combine.c: Include rtl-iter.h.
8886         (unmentioned_reg_p_1): Delete.
8887         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8888         Don't handle null rtxes.
8889
8890 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8891
8892         * calls.c: Include rtl-iter.h.
8893         (internal_arg_pointer_based_exp_1): Delete.
8894         (internal_arg_pointer_based_exp): Take a const_rtx.
8895         Use FOR_EACH_SUBRTX to iterate over subrtxes.
8896
8897 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8898
8899         * caller-save.c: Include rtl-iter.h.
8900         (add_used_regs_1): Delete.
8901         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
8902         to iterate over subrtxes.  Assert that any remaining pseudos
8903         have been spilled.
8904
8905 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8906
8907         * bt-load.c: Include rtl-iter.h.
8908         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
8909         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
8910         to iterate over subrtxes.
8911         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
8912         find_btr_use rather than btr_referenced_p.
8913
8914 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8915
8916         * alias.c: Include rtl-iter.h.
8917         (refs_newer_value_cb): Delete.
8918         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8919
8920 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
8921
8922         * rtl-iter.h: New file.
8923         * rtlanal.c: Include it.
8924         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
8925         (generic_subrtx_iterator <T>::add_single_to_queue)
8926         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
8927         (generic_subrtx_iterator <T>::free_array): New functions.
8928         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
8929         (generic_subrtx_iterator <const_rtx_accessor>)
8930         (generic_subrtx_iterator <rtx_var_accessor>
8931         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
8932         (setup_reg_subrtx_bounds): New function.
8933         (init_rtlanal): Call it.
8934
8935 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8936
8937         PR target/62261
8938         * config/sh/sh.md (ashlsi3): Handle negative shift count for
8939         TARGET_SHMEDIA.
8940         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
8941
8942 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
8943
8944         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
8945
8946 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8947
8948         * rtl.h (JUMP_LABEL_AS_INSN): New.
8949
8950 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8951
8952         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
8953         rtx_expr_list **.
8954         (alloc_EXPR_LIST): Strengthen return type from rtx to
8955         rtx_expr_list *.
8956         (remove_free_EXPR_LIST_node): Likewise for param.
8957         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
8958         from rtx to rtx_expr_list *.
8959         * sched-int.h (struct deps_desc): Strengthen fields
8960         "pending_read_mems" and "pending_write_mems" from rtx to
8961         rtx_expr_list *.
8962
8963         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
8964         rtx to rtx_expr_list *.
8965         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
8966         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
8967         rtx_expr_list **.
8968         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
8969         from rtx to rtx_expr_list *.
8970         * loop-iv.c (simplify_using_initial_values): Strengthen local
8971         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
8972         "pnote_next" from rtx * to rtx_expr_list **.
8973         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
8974         param "exprp" from rtx * to rtx_expr_list **.
8975         (add_insn_mem_dependence): Strengthen local "mem_list" from
8976         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
8977         to rtx_expr_list *.
8978         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
8979         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
8980         param "old_mems_p" from rtx * to rtx_expr_list **.
8981         * var-tracking.c (struct adjust_mem_data): Strengthen field
8982         "side_effects" from rtx to rtx_expr_list *.
8983         (adjust_insn): Replace NULL_RTX with NULL when assigning to
8984         rtx_expr_list *.
8985         (prepare_call_arguments): Likewise.
8986
8987 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8988
8989         * function.h (struct rtl_data): Strengthen field
8990         "x_stack_slot_list" from rtx to rtx_expr_list *.
8991
8992         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
8993         when assigning to stack_slot_list.
8994
8995 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8996
8997         * function.h (struct rtl_data): Strengthen field
8998         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
8999         * rtl.h (remove_node_from_expr_list): Strengthen second param from
9000         rtx * to rtx_expr_list **.
9001
9002         * cfgbuild.c (make_edges): In loop over
9003         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9004         rtx_expr_list *, and use methods of the latter class to clarify
9005         the code.
9006         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9007         rtx_expr_list *, and use methods of the latter class to clarify
9008         the code.
9009         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9010         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9011         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9012         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
9013         to rtx_expr_list *.  Use methods of the latter class to clarify
9014         the code.
9015
9016 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9017
9018         * function.h (struct expr_status): Strengthen field
9019         "x_forced_labels" from rtx to rtx_expr_list *.
9020
9021         * cfgbuild.c (make_edges): Split local "x" into two locals,
9022         strengthening one from rtx to rtx_expr_list *, and using methods
9023         of said class.
9024         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9025         loop over forced_labels, introduce strengthen it from rtx to
9026         rtx_expr_list *, using methods to clarify the code.
9027         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9028         to rtx_expr_list *, using methods of said class to clarify the
9029         code.
9030         * reload1.c (set_initial_label_offsets): Split local "x" into two
9031         per-loop variables, strengthening the first from rtx to
9032         rtx_expr_list * and using methods.
9033
9034 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9035
9036         * coretypes.h (class rtx_expr_list): Add forward declaration.
9037         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9038         * gengenrtl.c (special_rtx): Add EXPR_LIST.
9039         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9040         invariant: GET_CODE (X) == EXPR_LIST.
9041         (is_a_helper <rtx_expr_list *>::test): New.
9042         (rtx_expr_list::next): New.
9043         (rtx_expr_list::element): New.
9044         (gen_rtx_EXPR_LIST): New.
9045
9046 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9047
9048         * varasm.c (mark_constants): Convert a GET_CODE check into a
9049         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9050         Use methods of rtx_sequence to clarify the code.
9051
9052 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9053
9054         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9055         local "seq" via a checked cast, and use methods of rtx_sequence
9056         to simplify the code.
9057
9058 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9059
9060         * resource.c (mark_referenced_resources): Strengthen local
9061         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9062         using methods of rtx_sequence to clarify the code.
9063         (find_dead_or_set_registers): Within the switch statement, convert
9064         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
9065         the JUMP_P handling, introduce another local "seq", adding a
9066         checked cast to rtx_sequence *.  In both cases, use methods of
9067         rtx_sequence to clarify the code.
9068         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9069         via a checked cast, and use methods of rtx_sequence to simplify
9070         the code.
9071
9072 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9073
9074         * reorg.c (redundant_insn): In two places in the function, replace
9075         a check of GET_CODE with a dyn_cast, introducing local "seq", and
9076         usings methods of rtx_sequence to clarify the code.
9077
9078 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9079
9080         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9081         local "seq" with a checked cast, and use methods of rtx_sequence
9082         to clarify the code.
9083
9084 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9085
9086         * function.c (contains): Introduce local "seq" for PATTERN (insn),
9087         with a checked cast, in the region for where we know it's a
9088         SEQUENCE.  Use methods of rtx_sequence.
9089
9090 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9091
9092         * final.c (get_attr_length_1): Replace GET_CODE check with a
9093         dyn_cast, introducing local "seq" and the use of methods of
9094         rtx_sequence.
9095         (shorten_branches): Likewise, introducing local "body_seq".
9096         Strengthen local "inner_insn" from rtx to rtx_insn *.
9097         (reemit_insn_block_notes): Replace GET_CODE check with a
9098         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9099         Use methods of rtx_sequence.
9100         (final_scan_insn): Likewise, introducing local "seq" for when
9101         "body" is known to be a SEQUENCE, using its methods.
9102
9103 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9104
9105         * except.c (can_throw_external): Strengthen local "seq" from rtx
9106         to rtx_sequence *.  Use methods of rtx_sequence.
9107         (insn_nothrow_p): Likewise.
9108
9109 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9110
9111         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9112         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9113         Use methods of rtx_sequence.
9114         (scan_trace): Likewise for local "pat".
9115
9116 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9117
9118         * coretypes.h (class rtx_sequence): Add forward declaration.
9119         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9120         invariant: GET_CODE (X) == SEQUENCE.
9121         (is_a_helper <rtx_sequence *>::test): New.
9122         (is_a_helper <const rtx_sequence *>::test): New.
9123         (rtx_sequence::len): New.
9124         (rtx_sequence::element): New.
9125         (rtx_sequence::insn): New.
9126
9127 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9128
9129         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9130         rtx_insn_list **.
9131         (alloc_INSN_LIST): Strengthen return type from rtx to
9132         rtx_insn_list *.
9133         (copy_INSN_LIST): Likewise for return type and param.
9134         (concat_INSN_LIST): Likewise for both params and return type.
9135         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9136         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
9137         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9138         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
9139
9140         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9141         "implicit_sets", "control_uses", "clobbers" from rtx to
9142         rtx_insn_list *.
9143         (struct deps_desc): Likewise for fields "pending_read_insns",
9144         "pending_write_insns", "pending_jump_insns",
9145         "last_pending_memory_flush", "last_function_call",
9146         "last_function_call_may_noreturn", "sched_before_next_call",
9147         "sched_before_next_jump".
9148         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9149         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9150
9151         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9152         from rtx to rtx_insn_list *.
9153         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9154         rtx_insn_list *.
9155
9156         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9157         to rtx_insn_list **.
9158         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9159         rtx_insn_list *.
9160         (queue_insn): Likewise for local "link".
9161         (struct haifa_saved_data): Strengthen field "insn_queue" from
9162         rtx * to rtx_insn_list **.
9163         (save_backtrack_point): Update allocation of save->insn_queue to
9164         reflect the strengthening of elements from rtx to rtx_insn_list *.
9165         (queue_to_ready): Strengthen local "link" from rtx to
9166         rtx_insn_list *; use methods "next" and "insn" when traversing the
9167         list.
9168         (early_queue_to_ready): Likewise for locals "link", "next_link",
9169         "prev_link".
9170         (schedule_block): Update allocation of insn_queue to reflect the
9171         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
9172         local "link" from rtx to rtx_insn_list *, and use methods when
9173         working it.
9174         (add_to_speculative_block): Strengthen locals "twins" and
9175         "next_node" from rtx to rtx_insn_list *, and use methods when
9176         working with them.  Strengthen local "twin" from rtx to
9177         rtx_insn *, eliminating a checked cast.
9178         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9179         from rtx to rtx_insn_list *, and use methods when working with
9180         them.
9181
9182         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9183         from rtx to rtx_insn_list *, adding a checked cast.
9184         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9185         rtx_insn_list **.
9186         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9187         "newlink" from rtx to rtx_insn_list *.  Strengthen local
9188         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
9189         from rtx to rtx_insn *.
9190         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9191         from rtx to rtx_insn_list *.  Use methods of the latter class.
9192         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9193         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9194         (remove_free_INSN_LIST_node): Strengthen return type and local
9195         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
9196         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
9197         rtx_insn_list *, using "insn" method.
9198
9199         * sched-deps.c (add_dependence_list):  Strengthen param "list"
9200         from rtx to rtx_insn_list *, and use methods when working with it.
9201         (add_dependence_list_and_free):  Strengthen param "listp" from
9202         rtx * to rtx_insn_list **.
9203         (remove_from_dependence_list): Strenghten param "listp" from rtx *
9204         to rtx_insn_list **, and use methods when working with *listp.
9205         (remove_from_both_dependence_lists): Strengthen param "listp" from
9206         rtx * to rtx_insn_list **
9207         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9208         to rtx_insn_list **.  Eliminate local "link", in favor of two new
9209         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9210         respectively.
9211         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9212         by introducing local "cond_deps".
9213         (remove_from_deps): Strengthen param "insn" from rtx to
9214         rtx_insn *.
9215
9216         * sched-rgn.c (concat_insn_mem_list): Strengthen param
9217         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
9218         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
9219         Use methods of rtx_insn_list.
9220
9221         * store-motion.c (struct st_expr): Strengthen fields
9222         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
9223         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
9224         rtx_insn_list *.
9225         (find_moveable_store): Split out "tmp" into multiple more-tightly
9226         scoped locals.  Use methods of rtx_insn_list *.
9227         (compute_store_table): Strengthen local "tmp" from rtx to
9228         rtx_insn *.  Use methods of rtx_insn_list *.
9229
9230 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9231
9232         * coretypes.h (class rtx_insn_list): Add forward declaration.
9233         * rtl.h (class rtx_insn_list): New subclass of rtx_def
9234         (is_a_helper <rtx_insn_list *>::test): New.
9235         (rtx_insn_list::next): New.
9236         (rtx_insn_list::insn): New.
9237         (gen_rtx_INSN_LIST): Add prototype.
9238         * emit-rtl.c (gen_rtx_INSN_LIST): New.
9239         * gengenrtl.c (special_rtx): Add INSN_LIST.
9240
9241 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9242
9243         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
9244         "prev" from rtx to rtx_insn *.
9245
9246 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9247
9248         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
9249         functions.  Require merely an rtx for now, not an rtx_insn *.
9250         (BLOCK_FOR_INSN): Likewise.
9251         (INSN_LOCATION): Likewise.
9252         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9253
9254 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9255
9256         * rtl.h (PATTERN): Convert this macro into a pair of inline
9257         functions, for now, requiring const_rtx and rtx.
9258
9259 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9260
9261         * target.def (unwind_emit): Strengthen param "insn" from rtx to
9262         rtx_insn *.
9263         (final_postscan_insn): Likewise.
9264         (adjust_cost): Likewise.
9265         (adjust_priority): Likewise.
9266         (variable_issue): Likewise.
9267         (macro_fusion_pair_p): Likewise.
9268         (dfa_post_cycle_insn): Likewise.
9269         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9270         (first_cycle_multipass_issue): Likewise.
9271         (dfa_new_cycle): Likewise.
9272         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9273         (speculate_insn): Likewise for param "insn".
9274         (gen_spec_check): Likewise for params "insn" and "label".
9275         (get_insn_spec_ds): Likewise for param "insn".
9276         (get_insn_checked_ds): Likewise.
9277         (dispatch_do): Likewise.
9278         (dispatch): Likewise.
9279         (cannot_copy_insn_p): Likewise.
9280         (invalid_within_doloop): Likewise.
9281         (legitimate_combined_insn): Likewise.
9282         (needed): Likewise.
9283         (after): Likewise.
9284
9285         * doc/tm.texi: Automatically updated to reflect changes to
9286         target.def.
9287
9288         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9289         working with insn.
9290         (schedule_block): Likewise.
9291         (sched_init): Likewise.
9292         (sched_speculate_insn): Strengthen param "insn" from rtx to
9293         rtx_insn *.
9294         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9295         working with insn.
9296         * hooks.c (hook_bool_rtx_true): Rename to...
9297         hook_bool_rtx_insn_true): ...this, and strengthen first param from
9298         rtx to rtx_insn *.
9299         (hook_constcharptr_const_rtx_null): Rename to...
9300         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9301         first param from const_rtx to const rtx_insn *.
9302         (hook_bool_rtx_int_false): Rename to...
9303         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9304         param from rtx to rtx_insn *.
9305         (hook_void_rtx_int): Rename to...
9306         (hook_void_rtx_insn_int): ...this, and strengthen first param from
9307         rtx to rtx_insn *.
9308
9309         * hooks.h (hook_bool_rtx_true): Rename to...
9310         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9311         rtx to rtx_insn *.
9312         (hook_bool_rtx_int_false): Rename to...
9313         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9314         param from rtx to rtx_insn *.
9315         (hook_void_rtx_int): Rename to...
9316         (hook_void_rtx_insn_int): ...this, and strengthen first param from
9317         rtx to rtx_insn *.
9318         (hook_constcharptr_const_rtx_null): Rename to...
9319         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9320         first param from const_rtx to const rtx_insn *.
9321
9322         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9323         and local "prev" from rtx to rtx_insn *.
9324
9325         * sched-int.h (sched_speculate_insn): Strengthen first param from
9326         rtx to rtx_insn *.
9327
9328         * sel-sched.c (create_speculation_check): Likewise for local "label".
9329         * targhooks.c (default_invalid_within_doloop): Strengthen param
9330         "insn" from const_rtx to const rtx_insn *.
9331         * targhooks.h (default_invalid_within_doloop): Strengthen param
9332         from const_rtx to const rtx_insn *.
9333
9334         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9335         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9336
9337         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9338         "insn".
9339         (arc_invalid_within_doloop): Likewise, with const.
9340
9341         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9342         (arm_cannot_copy_insn_p): Likewise for param "insn".
9343         (arm_unwind_emit): Likewise.
9344
9345         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9346         "dep_insn".
9347
9348         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9349         (c6x_variable_issue): Likewise.  Removed now-redundant checked
9350         cast.
9351         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
9352
9353         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
9354         Likewise for param "insn".
9355         (epiphany_mode_after): Likewise.
9356         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
9357         params "insn", "dep_insn".
9358         (epiphany_mode_needed): Likewise for param "insn".
9359         (epiphany_mode_after): Likewise.
9360
9361         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
9362         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9363         (ix86_avx_u128_mode_needed): Likewise.
9364         (ix86_i387_mode_needed): Likewise.
9365         (ix86_mode_needed): Likewise.
9366         (ix86_avx_u128_mode_after): Likewise.
9367         (ix86_mode_after): Likewise.
9368         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
9369         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
9370         (ix86_adjust_priority): Likewise for param "insn".
9371         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
9372         (do_dispatch): Likewise.
9373         (has_dispatch): Likewise.
9374         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
9375
9376         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
9377         reflect renaming of default hook implementation from
9378         hook_constcharptr_const_rtx_null to
9379         hook_constcharptr_const_rtx_insn_null.
9380         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
9381         rtx to rtx_insn *.
9382         (ia64_variable_issue): Likewise for param "insn".
9383         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
9384         (ia64_dfa_new_cycle): Likewise.
9385         (ia64_get_insn_spec_ds): Likewise.
9386         (ia64_get_insn_checked_ds): Likewise.
9387         (ia64_speculate_insn): Likewise.
9388         (ia64_gen_spec_check): Likewise for params "insn", "label".
9389         (ia64_asm_unwind_emit): Likewise for param "insn".
9390
9391         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
9392
9393         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
9394         "insn", "def_insn".
9395         (m68k_sched_variable_issue): Likewise for param "insn".
9396
9397         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
9398         "def_insn".
9399
9400         * config/microblaze/microblaze.c (microblaze_adjust_cost):
9401         Likewise for params "insn", "dep".
9402
9403         * config/mips/mips.c (mips_adjust_cost): Likewise.
9404         (mips_variable_issue): Likewise for param "insn".
9405         (mips_final_postscan_insn): Likewise.
9406
9407         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
9408         for params "insn", "dep".
9409
9410         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
9411         "dep_insn".
9412         (pa_adjust_priority): Likewise for param "insn".
9413
9414         * config/picochip/picochip.c (picochip_sched_adjust_cost):
9415         Likewise for params "insn", "dep_insn".
9416
9417         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
9418         param "insn".
9419         (rs6000_variable_issue): Likewise.
9420         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
9421         (rs6000_debug_adjust_cost): Likewise.
9422         (rs6000_adjust_priority): Likewise for param "insn".
9423         (rs6000_use_sched_lookahead_guard): Likewise.
9424         (get_next_active_insn): Likewise for return type and both params.
9425         (redefine_groups): Likewise for params "prev_head_insn", "tail"
9426         and locals "insn", "next_insn".
9427         (pad_groups): Likewise.
9428
9429         * config/s390/s390.c (s390_adjust_priority): Likewise for param
9430         "insn".
9431         (s390_cannot_copy_insn_p): Likewise.
9432         (s390_sched_variable_issue): Likewise for third param, eliminating
9433         checked cast.
9434         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
9435         default hook implementation from hook_constcharptr_const_rtx_null
9436         to hook_constcharptr_const_rtx_insn_null.
9437
9438         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
9439         from rtx to rtx_insn *.
9440         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
9441         (sh_variable_issue): Likewise for param "insn".
9442         (sh_dfa_new_cycle): Likewise.
9443         (sh_mode_needed): Likewise.
9444         (sh_mode_after): Likewise.
9445
9446         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
9447         params "insn", "dep_insn".
9448         (hypersparc_adjust_cost): Likewise.
9449         (sparc_adjust_cost): Likewise.
9450
9451         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
9452         param, eliminated checked cast.
9453         (spu_sched_adjust_cost): Likewise for first and third params.
9454
9455         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
9456         params "insn" and "dep_insn" from rtx to rtx_insn *.
9457
9458         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
9459
9460 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9461
9462         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
9463         (set_is_load_p): ...this, updating to work on a SET pattern rather
9464         than an insn.
9465         (is_store_insn): Rename to...
9466         (set_is_store_p): ...this, updating to work on a SET pattern
9467         rather than an insn.
9468         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
9469         top of function to where it is needed.  Rewrite the bogus
9470         condition that checks for "insn" and "dep" being PARALLEL to
9471         instead use single_set, introducing locals "insn_set" and
9472         "dep_set".  Given that we only ever returned "cost" for a non-pair
9473         of SETs, bail out early if we don't have a pair of SET.
9474         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
9475         use the new locals "insn_set" and "dep_set", and update calls to
9476         is_load_insn and is_store_insn to be calls to set_is_load_p and
9477         set_is_store_p.
9478
9479 2014-08-27  Guozhi Wei  <carrot@google.com>
9480
9481         PR target/62262
9482         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
9483         amount before using it.
9484
9485 2014-08-27  Richard Biener  <rguenther@suse.de>
9486
9487         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
9488         get_maxval_strlen inside a more useful API.
9489         (gimple_fold_builtin_with_strlen): Remove and fold into ...
9490         (gimple_fold_builtin): ... caller.
9491         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
9492         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
9493         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
9494         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
9495         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
9496         gimple_fold_builtin_sprintf): Adjust to compute maxval
9497         themselves.
9498
9499 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
9500
9501         PR other/62248
9502         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
9503
9504 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9505             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9506             Anna Tikhonova  <anna.tikhonova@intel.com>
9507             Ilya Tocar  <ilya.tocar@intel.com>
9508             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9509             Ilya Verbin  <ilya.verbin@intel.com>
9510             Kirill Yukhin  <kirill.yukhin@intel.com>
9511             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9512
9513         * config/i386/sse.md
9514         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
9515         Use `concat_tg_mode' attribute to determine asm register size.
9516
9517 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9518             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9519             Anna Tikhonova  <anna.tikhonova@intel.com>
9520             Ilya Tocar  <ilya.tocar@intel.com>
9521             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9522             Ilya Verbin  <ilya.verbin@intel.com>
9523             Kirill Yukhin  <kirill.yukhin@intel.com>
9524             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9525
9526         * config/i386/sse.md
9527         (define_mode_iterator VI48_AVX512VL): New.
9528         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
9529         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
9530         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
9531         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9532         with VI1): Change mode iterator.
9533         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9534         with VI_ULOADSTORE_BW_AVX512VL): New.
9535         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9536         with VI_ULOADSTORE_F_AVX512VL): Ditto.
9537         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9538         with VI1): Change mode iterator.
9539         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9540         with VI_ULOADSTORE_BW_AVX512VL): New.
9541         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9542         with VI_ULOADSTORE_F_AVX512VL): Ditto.
9543         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9544         with VI1): Change mode iterator.
9545         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9546         with VI_ULOADSTORE_BW_AVX512VL): New.
9547         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9548         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
9549         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
9550         (define_insn "<avx512>_storedqu<mode>_mask" with
9551         VI48_AVX512VL): New.
9552         (define_insn "<avx512>_storedqu<mode>_mask" with
9553         VI12_AVX512VL): Ditto.
9554
9555 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9556             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9557             Anna Tikhonova  <anna.tikhonova@intel.com>
9558             Ilya Tocar  <ilya.tocar@intel.com>
9559             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9560             Ilya Verbin  <ilya.verbin@intel.com>
9561             Kirill Yukhin  <kirill.yukhin@intel.com>
9562             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9563
9564         * config/i386/sse.md
9565         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
9566         (define_mode_iterator VI48_AVX512BW): New.
9567         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
9568         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9569         with VI48_AVX2_48_AVX512F): New.
9570         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9571         with VI2_AVX512VL): Ditto.
9572
9573 2014-08-27  Richard Biener  <rguenther@suse.de>
9574
9575         PR middle-end/62239
9576         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
9577         (fold_builtin_3): Do not fold strcat_chk here.
9578         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
9579         from builtins.c.
9580         (gimple_fold_builtin): Fold strcat_chk here.
9581
9582 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
9583
9584         * dwarf2out.h (dwarf2out_decl): Remove prototype.
9585         * dwarf2out.c (dwarf2out_decl): Make static.
9586
9587 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
9588
9589         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
9590
9591 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9592
9593         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
9594         from rtx to rtx_insn *.
9595         (cselib_lookup_from_insn): Likewise for final param.
9596         (cselib_subst_to_values_from_insn): Likewise.
9597         (cselib_add_permanent_equiv): Likewise.
9598
9599         * cselib.c (cselib_current_insn): Likewise for this variable.
9600         (cselib_subst_to_values_from_insn): Likewise for param "insn".
9601         (cselib_lookup_from_insn): Likewise.
9602         (cselib_add_permanent_equiv): Likewise for param "insn" and local
9603         "save_cselib_current_insn".
9604         (cselib_process_insn): Replace use of NULL_RTX with NULL.
9605
9606         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9607         from rtx to rtx_insn *.
9608
9609 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9610
9611         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9612         rtx_insn *.
9613
9614 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9615
9616         * df.h (df_dump_insn_problem_function): Strengthen first param of
9617         this callback from const_rtx to const rtx_insn *.
9618         (struct df_insn_info): Strengthen field "insn" from rtx to
9619         rtx_insn *.
9620         (DF_REF_INSN): Eliminate this function, reinstating the older
9621         macro definition.
9622         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9623         (df_reg_defined): Likewise.
9624         (df_find_use): Likewise.
9625         (df_reg_used): Likewise.
9626         (df_dump_insn_top): Strengthen param 1 from const_rtx to
9627         const rtx_insn *.
9628         (df_dump_insn_bottom): Likewise.
9629         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9630         (df_insn_debug_regno): Likewise.
9631         (debug_df_insn): Likewise.
9632         (df_rd_simulate_one_insn): Likewise for param 2.
9633         (df_word_lr_simulate_defs): Likewise for param 1.
9634         (df_word_lr_simulate_uses): Likewise.
9635         (df_md_simulate_one_insn): Likewise for param 2.
9636         (df_simulate_find_noclobber_defs): Likewise for param 1.
9637         (df_simulate_find_defs): Likewise.
9638         (df_simulate_defs): Likewise.
9639         (df_simulate_uses): Likewise.
9640         (df_simulate_one_insn_backwards): Likewise for param 2.
9641         (df_simulate_one_insn_forwards): Likewise.
9642         (df_uses_create): Likewise for param 2.
9643         (df_insn_create_insn_record): Likewise for param 1.
9644         (df_insn_delete): Likewise.
9645         (df_insn_rescan): Likewise.
9646         (df_insn_rescan_debug_internal): Likewise.
9647         (df_insn_change_bb): Likewise.
9648         (df_notes_rescan): Likewise.
9649         * rtl.h (remove_death): Likewise for param 2.
9650         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9651         const rtx_insn *.
9652         * sched-int.h (reemit_notes): Strengthen param from rtx to
9653         rtx_insn *.
9654         * valtrack.h (propagate_for_debug): Likewise for param 1.
9655
9656         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9657         local "tmp_rtx" from const_rtx to const rtx_insn *.
9658         * combine.c (remove_death): Strengthen param "insn" from rtx to
9659         rtx_insn *.
9660         (move_deaths): Likewise for local "where_dead".
9661         * cse.c (delete_trivially_dead_insns): Introduce local
9662         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9663         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9664         rtx_insn *.
9665         (df_reg_defined): Likewise.
9666         (df_find_use): Likewise.
9667         (df_reg_used): Likewise.
9668         (df_dump_insn_problem_data): Strengthen param "insn" from
9669         const_rtx to const rtx_insn *.
9670         (df_dump_insn_top): Likewise.
9671         (df_dump_insn_bottom): Likewise.
9672         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9673         (df_insn_debug_regno): Likewise.
9674         (debug_df_insn): Likewise.
9675         (DF_REF_INSN): Delete.
9676         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9677         from rtx to rtx_insn *.
9678         (df_chain_insn_top_dump): Strengthen param "insn" from
9679         const_rtx to const rtx_insn *.
9680         (df_chain_insn_bottom_dump): Likewise.
9681         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9682         rtx_insn *.
9683         (df_word_lr_simulate_uses): Likewise.
9684         (df_print_note): Likewise.
9685         (df_remove_dead_and_unused_notes): Likewise.
9686         (df_set_unused_notes_for_mw): Likewise.
9687         (df_set_dead_notes_for_mw): Likewise.
9688         (df_create_unused_note): Likewise.
9689         (df_simulate_find_defs): Likewise.
9690         (df_simulate_find_uses): Likewise.
9691         (df_simulate_find_noclobber_defs): Likewise.
9692         (df_simulate_defs): Likewise.
9693         (df_simulate_uses): Likewise.
9694         (df_simulate_one_insn_backwards): Likewise.
9695         (df_simulate_one_insn_forwards): Likewise.
9696         (df_md_simulate_one_insn): Likewise.
9697         * df-scan.c (df_uses_create): Likewise.
9698         (df_insn_create_insn_record): Likewise.
9699         (df_insn_delete): Likewise.
9700         (df_insn_rescan): Likewise.
9701         (df_insn_rescan_debug_internal): Likewise.
9702         (df_insn_change_bb): Likewise.
9703         (df_notes_rescan): Likewise.
9704         (df_refs_add_to_chains): Likewise.
9705         (df_insn_refs_verify): Likewise.
9706         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
9707         when invoking df_insn_delete.
9708         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
9709         (set_unique_reg_note): Add checked cast.
9710         * final.c (cleanup_subreg_operands): Likewise.
9711         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
9712         "insn" from rtx to rtx_insn *.
9713         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
9714         "last" from rtx to rtx_insn *.
9715         * ira-emit.c (change_regs_in_insn): New function.
9716         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9717         Invoke change_regs_in_insn rather than change_regs.
9718         * ira.c (update_equiv_regs): Strengthen locals "insn",
9719         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
9720         for_each_rtx_in_insn rather than for_each_rtx.
9721         * recog.c (confirm_change_group): Add checked casts.
9722         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9723         Add checked cast.
9724         (peep2_fill_buffer): Add checked cast.
9725         * rtlanal.c (remove_note): Likewise.
9726         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9727         locals "next" "end" from rtx to rtx_insn *.
9728
9729 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9730
9731         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9732         to rtx_insn *.
9733         (struct reg_use_data): Likewise for field "insn".
9734         (insn_cost): Likewise for param.
9735         (real_insn_for_shadow): Likewise for return type and param.
9736         (increase_insn_priority): Likewise for param 1.
9737         (debug_dependencies): Likewise for both params.
9738
9739         * haifa-sched.c (insn_delay): Likewise for param "insn".
9740         (real_insn_for_shadow): Likewise for return type and param "insn".
9741         (update_insn_after_change): Likewise for param "insn".
9742         (recompute_todo_spec): Likewise for param "next" and locals "pro",
9743         "other".
9744         (insn_cost): Likewise for param "insn".
9745         (increase_insn_priority): Likewise.
9746         (calculate_reg_deaths): Likewise.
9747         (setup_insn_reg_pressure_info): Likewise.
9748         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
9749         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
9750         (model_recompute): Likewise.
9751         (must_restore_pattern_p): Likewise for param "next".
9752         (model_excess_cost): Likewise for param "insn".
9753         (queue_remove): Likewise.
9754         (adjust_priority): Likewise for param "prev".
9755         (update_register_pressure): Likewise for param "insn".
9756         (setup_insn_max_reg_pressure): Likewise for local "insn".
9757         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
9758         (model_add_to_schedule): Likewise.
9759         (model_reset_queue_indices): Likewise for local "insn".
9760         (unschedule_insns_until): Strengthen local "recompute_vec" from
9761         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
9762         "con" from rtx to rtx_insn *.
9763         (restore_last_backtrack_point): Likewise for both locals "x". Add
9764         checked casts.
9765         (estimate_insn_tick): Likewise for param "insn".
9766         (commit_schedule): Likewise for params "prev_head", "tail" and
9767         local "x".
9768         (verify_shadows): Likewise for locals "i1", "i2".
9769         (dump_insn_stream): Likewise for params "head", "tail" and locals
9770         "next_tail", "insn".
9771         (schedule_block): Likewise for locals "insn", "x".  Add a checked
9772         cast.
9773         (fix_inter_tick): Likewise for params "head", "tail".
9774         (create_check_block_twin): Likewise for local "jump".
9775         (haifa_change_pattern): Likewise for param "insn".
9776         (haifa_speculate_insn): Likewise.
9777         (dump_new_block_header): Likewise for params "head", "tail".
9778         (fix_jump_move): Likewise for param "jump".
9779         (move_block_after_check): Likewise.
9780         (sched_init_insn_luid): Likewise for param "insn".
9781         (sched_init_luids): Likewise for local "insn".
9782         (insn_luid): Likewise for param "insn".
9783         (init_h_i_d): Likewise.
9784         (haifa_init_h_i_d): Likewise for local "insn".
9785         (haifa_init_insn): Likewise for param "insn".
9786         * sched-deps.c (add_dependence): Likewise for local "real_pro",
9787         "other".
9788         (create_insn_reg_use): Likewise for param "insn".
9789         (setup_insn_reg_uses): Likewise.  Add a checked cast.
9790         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
9791         "tail" from rtx to rtx_insn *.
9792         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
9793         "insn", "next_tail".
9794
9795 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9796
9797         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
9798         from rtx to rtx_insn *.
9799         (model_add_to_schedule): Likewise for locals "start", "end",
9800         "iter".
9801
9802 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9803
9804         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
9805         rtx_insn *.
9806         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
9807         "to" and locals "insn", "next", "copy".  Remove now-redundant
9808         checked cast.
9809
9810 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9811
9812         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
9813         rtx_insn * and param 4 from rtx * to rtx_insn **.
9814         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
9815         param 2 from rtx * to rtx_insn **.
9816
9817         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
9818         rtx_insn * and final param from rtx * to rtx_insn **.
9819
9820         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
9821         from rtx to rtx_insn *.
9822         (try_head_merge_bb): Likewise for both locals named "move_upto".
9823         * df-problems.c (can_move_insns_across): Likewise for params
9824         "from", "to", "across_from", "across_to" and locals "insn",
9825         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
9826         rtx_insn **.
9827         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
9828         from rtx to rtx_insn *.
9829         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
9830         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
9831         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
9832         rtx_insn *.
9833         (noce_try_abs): Likewise.
9834         (noce_get_condition): Likewise for param "jump".  Strengthen param
9835         "earliest" from rtx * to rtx_insn **.
9836         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
9837         rtx_insn *.
9838         (find_cond_trap): Likewise.
9839         (dead_or_predicable): Likewise for local "earliest".
9840         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
9841         checked cast.
9842         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
9843         and local "prev".  Strengthen param "earliest" from rtx * to
9844         rtx_insn **.
9845         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
9846         Strengthen param "earliest" from rtx * to rtx_insn **.
9847
9848 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9849
9850         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
9851         "to" and local "insn" from rtx to rtx_insn *.
9852
9853 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9854
9855         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
9856         from rtx to rtx_insn *.
9857         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
9858         (code_motion_path_driver): Likewise for local "last_insn".
9859         (simplify_changed_insns): Likewise for local "insn".
9860
9861 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9862
9863         * rtl.h (push_to_sequence): Strengthen param from rtx to
9864         rtx_insn *.
9865         (push_to_sequence2): Likewise for both params.
9866         (delete_insns_since): Likewise for param.
9867         (reorder_insns_nobb): Likewise for all three params.
9868         (set_new_first_and_last_insn): Likewise for both params.
9869
9870         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
9871         rtx_insn *.  Remove now-redundant cast.
9872         (set_last_insn): Likewise.
9873
9874         * builtins.c (expand_builtin_return): Strengthen local
9875         "call_fusage" from rtx to rtx_insn *.
9876         * cfgrtl.c (create_basic_block_structure): Likewise for local
9877         "after".
9878         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
9879         "first", "last" and local "insn".
9880         (delete_insns_since): Likewise for param "from".
9881         (reorder_insns_nobb): Likewise for params "from", "to", "after"
9882         and local "x".
9883         (push_to_sequence): Likewise for param "first" and local "last".
9884         (push_to_sequence2): Likewise for params "first" and "last".
9885         * lra.c (emit_add3_insn): Likewise for local "last".
9886         (lra_emit_add): Likewise.
9887         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
9888         "last_insn".
9889         (process_address_1): Likewise for locals "insn", last".
9890         * modulo-sched.c (ps_first_note): Likewise for return type.
9891         * optabs.c (expand_binop_directly): Likewise for param "last".
9892
9893 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9894
9895         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
9896         to rtx_insn*.
9897         * emit-rtl.c (get_last_insn_anywhere): Likewise.
9898
9899 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9900
9901         * function.h (struct sequence_stack): Strengthen fields "first"
9902         and "last" from rtx to rtx_insn *.
9903         (struct emit_status): Likewise for fields "x_first_insn" and
9904         "x_last_insn".
9905
9906         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
9907         (set_first_insn): Add checked cast.
9908         (get_last_insn): Remove now-redundant checked cast.
9909         (set_last_insn): Add checked cast.
9910
9911         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
9912         "saved_first" and "saved_last" from rtx to rtx_insn *.
9913
9914 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9915
9916         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
9917         (unlink_insn_chain): Strengthen both params from rtx to
9918         rtx_insn *.
9919
9920         * cfgrtl.c (cfg_layout_function_header): Likewise for this
9921         variable.
9922         (unlink_insn_chain): Likewise for params "first" and "last".
9923         Remove now-redundant checked cast.
9924         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
9925         (fixup_reorder_chain): Strengthen local "insn" from rtx to
9926         rtx_insn *.
9927         * emit-rtl.c (link_insn_into_chain): Likewise for all three
9928         params.
9929         (add_insn): Likewise for param "insn" and local "prev".
9930         (add_insn_after_nobb): Likewise for both params and local "next".
9931         (add_insn_before_nobb): Likewise for both params and local "prev".
9932         (add_insn_after): Rename param "after" to "uncast_after",
9933         introducing local "after" with another checked cast.
9934         (add_insn_before): Rename params "insn" and "before", giving them
9935         "uncast_" prefixes, adding the old names back using checked casts.
9936         (emit_note_after): Likewise for param "after".
9937         (emit_note_before): Likewise for param "before".
9938         (emit_label): Add a checked cast.
9939
9940 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9941
9942         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
9943         "insn" from rtx to rtx_insn *.
9944
9945         * cselib.c (cselib_record_sets_hook): Likewise.
9946
9947         * var-tracking.c (add_with_sets): Likewise, renaming back from
9948         "uncast_insn" to "insn" and eliminating the checked cast from rtx
9949         to rtx_insn *.
9950
9951 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
9952
9953         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
9954         and "header_" from rtx to rtx_insn *.
9955         (struct basic_block_d): Likewise for field "head_" within "x"
9956         field of union basic_block_il_dependent.
9957         (BB_HEAD): Drop function...
9958         (SET_BB_HEAD): ...and this function in favor of...
9959         (BB_HEAD): ...reinstate macro.
9960         (BB_END): Drop function...
9961         (SET_BB_END): ...and this function in favor of...
9962         (BB_END): ...reinstate macro.
9963         (BB_HEADER): Drop function...
9964         (SET_BB_HEADER): ...and this function in favor of...
9965         (BB_HEADER): ...reinstate macro.
9966
9967         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
9968         (fix_crossing_unconditional_branches): Likewise.
9969         * caller-save.c (save_call_clobbered_regs): Likewise.
9970         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
9971         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
9972         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9973         (merge_blocks_move_successor_nojumps): Likewise.
9974         (outgoing_edges_match): Update use of for_each_rtx to
9975         for_each_rtx_in_insn.
9976         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
9977         (expand_gimple_cond): Likewise.
9978         (expand_gimple_tailcall): Likewise.
9979         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
9980         SET_BB_END.
9981         (construct_exit_block): Drop use of SET_BB_END.
9982         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
9983         rtx_insn *.
9984         (delete_insn): Rename param "insn" to "uncast_insn", introducing
9985         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
9986         SET_BB_HEAD and SET_BB_END.
9987         (create_basic_block_structure): Drop use of SET_BB_HEAD and
9988         SET_BB_END.
9989         (rtl_delete_block): Drop use of SET_BB_HEAD.
9990         (rtl_split_block): Drop use of SET_BB_END.
9991         (emit_nop_for_unique_locus_between): Likewise.
9992         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
9993         (block_label): Drop use of SET_BB_HEAD.
9994         (fixup_abnormal_edges): Drop use of SET_BB_END.
9995         (record_effective_endpoints): Drop use of SET_BB_HEADER.
9996         (relink_block_chain): Likewise.
9997         (fixup_reorder_chain): Drop use of SET_BB_END.
9998         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
9999         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10000         rtx_insn **.  Drop use of SET_BB_HEADER.
10001         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10002         SET_BB_HEAD.
10003         (BB_HEAD): Delete this function.
10004         (SET_BB_HEAD): Likewise.
10005         (BB_END): Likewise.
10006         (SET_BB_END): Likewise.
10007         (BB_HEADER): Likewise.
10008         (SET_BB_HEADER): Likewise.
10009         * emit-rtl.c (add_insn_after):  Rename param "insn" to
10010         "uncast_insn", adding a new local "insn" and a checked cast to
10011         rtx_insn *.  Drop use of SET_BB_END.
10012         (remove_insn): Strengthen locals "next" and "prev" from rtx to
10013         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
10014         (reorder_insns): Drop use of SET_BB_END.
10015         (emit_insn_after_1): Strengthen param "first" and locals "last",
10016         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
10017         (emit_pattern_after_noloc): Add checked cast.
10018         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10019         (restore_other_notes): Likewise.
10020         (move_insn): Likewise.
10021         (sched_extend_bb): Likewise.
10022         (fix_jump_move): Likewise.
10023         * ifcvt.c (noce_process_if_block): Likewise.
10024         (dead_or_predicable): Likewise.
10025         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10026         * reg-stack.c (change_stack): Drop use of SET_BB_END.
10027         * sel-sched-ir.c (sel_move_insn): Likewise.
10028         * sel-sched.c (move_nop_to_previous_block): Likewise.
10029
10030         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10031         SET_BB_END.
10032         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10033
10034 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10035
10036         * basic-block.h (create_basic_block_structure): Strengthen params
10037         1 "head" and 2 "end" from rtx to rtx_insn *.
10038         * cfgrtl.c (create_basic_block_structure): Likewise.
10039         (rtl_create_basic_block): Update casts from void * to rtx to
10040         rtx_insn *, so that we can pass them as rtx_insn * to
10041         create_basic_block_structure.
10042         * sel-sched-ir.c (sel_create_basic_block): Likewise.
10043
10044 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10045
10046         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10047         rtx_insn **.
10048         (check_for_inc_dec): Strengthen param "insn" from rtx to
10049         rtx_insn *.
10050
10051         * cselib.h (cselib_process_insn): Likewise.
10052
10053         * cselib.c (cselib_record_sets): Likewise.
10054         (cselib_process_insn): Likewise.
10055
10056         * dse.c (struct insn_info): Likewise for field "insn".
10057         (check_for_inc_dec_1): Likewise for local "insn".
10058         (check_for_inc_dec): Likewise for param "insn".
10059         (scan_insn): Likewise.
10060         (dse_step1): Likewise for local "insn".
10061
10062         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10063         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
10064
10065 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10066
10067         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10068         from rtx to rtx_insn *.
10069         (DEP_PRO): Delete this function and...
10070         (SET_DEP_PRO): ...this function in favor of...
10071         (DEP_PRO): ...reinstate this macro.
10072         (DEP_CON): Delete this function and...
10073         (SET_DEP_CON): ...this function in favor of...
10074         (DEP_CON): ...reinstate this old macro.
10075         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10076         (init_dep): Likewise.
10077         (set_priorities): Likewise for both params.
10078         (sd_copy_back_deps): Likewise for params 1 and 2.
10079
10080         * haifa-sched.c (priority): Likewise for param "insn" and local
10081         "next".
10082         (set_priorities): Likewise for params "head" and "tail" and local
10083         "insn".
10084         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10085         local "consumer".
10086         (add_to_speculative_block): Add a checked cast.
10087         (create_check_block_twin): Drop use of SET_DEP_CON.
10088         (add_jump_dependencies): Strengthen params "insn" and "jump" from
10089         rtx to rtx_insn *.
10090
10091         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10092         Drop use of SET_DEP_PRO
10093         (init_dep): Strengthen params "pro" and "con" from rtx to
10094         rtx_insn *.
10095         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
10096         use of SET_DEP_CON.
10097         (DEP_PRO): Delete.
10098         (DEP_CON): Delete.
10099         (SET_DEP_PRO): Delete.
10100         (SET_DEP_CON): Delete.
10101
10102 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10103
10104         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10105         from rtx to rtx_insn *.
10106         (VINSN_INSN_RTX): Eliminate rvalue function and...
10107         (SET_VINSN_INSN): ...lvalue function in favor of...
10108         (VINSN_INSN_RTX): reinstate this old macro.
10109
10110         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10111         in favor of VINSN_INSN_RTX.
10112         (VINSN_INSN_RTX): Delete this function.
10113         (SET_VINSN_INSN_RTX): Likewise.
10114
10115 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10116
10117         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10118         (BND_TO): Delete this function and...
10119         (SET_BND_TO): ...this functions in favor of...
10120         (BND_TO): ...reinstating this macro.
10121         (struct _fence): Strengthen field "executing_insns" from
10122         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
10123         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10124         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10125         and param "insn" from rtx to insn_t.
10126         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10127         rtx_insn *.
10128
10129         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10130         vec<rtx_insn *> .
10131         (rtx_vec_t): Likewise.
10132         (struct sched_deps_info_def): Strengthen param of "start_insn"
10133         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
10134         "note_mem_dep" callback and first param of "note_dep" callback.
10135
10136         * haifa-sched.c (add_to_speculative_block): Strengthen param
10137         "insn" from rtx to rtx_insn *.
10138         (clear_priorities): Likewise.
10139         (calc_priorities): Likewise for local "insn".
10140
10141         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10142         Remove redundant checked cast.
10143         (haifa_note_mem_dep): Likewise for param "pending_insn".
10144         (haifa_note_dep): Likewise for param "elem".
10145         (note_mem_dep): Likewise for param "e".
10146         (sched_analyze_1): Add checked casts.
10147         (sched_analyze_2): Likewise.
10148
10149         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10150         from rtx to rtx_insn *.
10151         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10152         from vec<rtx> * to vec<rtx_insn *> *.
10153
10154         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10155         scaffolding.
10156         (flist_add): Strengthen param "executing_insns" from
10157         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10158         (advance_deps_context): Remove now-redundant checked cast.
10159         (init_fences): Replace uses of NULL_RTX with NULL.
10160         (merge_fences): Strengthen params "last_scheduled_insn" and
10161         "sched_next" from rtx to rtx_insn * and "executing_insns" from
10162         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10163         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10164         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10165         an instruction, rather than doing double-duty as a pattern.
10166         (return_nop_to_pool): Update for change of insn_t.
10167         (deps_init_id): Remove now-redundant checked cast.
10168         (struct sched_scan_info_def): Strengthen param of "init_insn"
10169         callback from rtx to insn_t.
10170         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10171         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10172         NULL.
10173         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10174         "end" from rtx to rtx_insn *.
10175         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10176         (rtx insn_rtx, bool force_unique_p)
10177         (BND_TO): Delete function.
10178         (SET_BND_TO): Delete function.
10179
10180         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10181         rtx to rtx_insn *.
10182         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10183         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10184         rtx to rtx_insn *.
10185         (undo_transformations): Likewise for param "insn".
10186         (update_liveness_on_insn): Likewise.
10187         (compute_live_below_insn): Likewise for param "insn" and local
10188         "succ".
10189         (update_data_sets): Likewise for param "insn".
10190         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10191         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10192         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10193         rtx_insn *.
10194         (move_cond_jump): Likewise for param "insn".
10195         (move_cond_jump): Drop use of SET_BND_TO.
10196         (compute_av_set_on_boundaries): Likewise.
10197         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10198         (update_and_record_unavailable_insns): Strengthen local "bb_end"
10199         from rtx to rtx_insn *.
10200         (maybe_emit_renaming_copy): Likewise for param "insn".
10201         (maybe_emit_speculative_check): Likewise.
10202         (handle_emitting_transformations): Likewise.
10203         (remove_insn_from_stream): Likewise.
10204         (code_motion_process_successors): Strengthen local "succ" from rtx
10205         to insn_t.
10206
10207 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10208
10209         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10210         ilist_t, not _xlist_t;
10211         (ILIST_INSN): Define in terms of new union field "insn".
10212         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10213         _XLIST_NEXT.
10214         (struct _list_node): Add new field "insn" to the union, of type
10215         insn_t.
10216         (ilist_add): Replace macro with an inline function, requiring an
10217         insn_t.
10218         (ilist_remove): Define this macro directly in terms of
10219         _list_remove, rather than indirectly via _xlist_remove.
10220         (ilist_clear): Likewise, in terms of _list_clear rather than
10221         _xlist_clear.
10222         (ilist_is_in_p): Replace macro with an inline function, requiring
10223         an insn_t.
10224         (_list_iter_cond_insn): New function.
10225         (ilist_iter_remove): Define this macro directly in terms of
10226         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
10227         (ilist_iterator): Define directly in terms of _list_iterator
10228         rather than indirectly through _xlist_iterator.
10229         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
10230         than in terms of _FOR_EACH_X.
10231         (FOR_EACH_INSN_1): Likewise.
10232
10233 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
10234
10235         PR target/60606
10236         PR target/61330
10237         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
10238         DECL_HARD_REGISTER and return for invalid register specifications.
10239         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
10240         DECL_HARD_REGISTER, call expand_one_error_var.
10241         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
10242         CC_REGNUM with non-MODE_CC modes.
10243         (arm_regno_class): Return NO_REGS for PC_REGNUM.
10244
10245 2014-08-26  Marek Polacek  <polacek@redhat.com>
10246
10247         PR c/61271
10248         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
10249
10250 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
10251
10252         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10253         qi cost; add di cost.
10254         (cortexa57_addrcost_table): Likewise.
10255
10256 2014-08-26  Marek Polacek  <polacek@redhat.com>
10257
10258         PR c/61271
10259         * expr.c (is_aligning_offset): Remove logical not.
10260
10261 2014-08-26  Marek Polacek  <polacek@redhat.com>
10262
10263         PR c/61271
10264         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10265         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10266
10267 2014-08-26  Richard Biener  <rguenther@suse.de>
10268
10269         PR tree-optimization/62175
10270         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10271         expand possibly trapping operations.
10272
10273 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10274
10275         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10276         "insn" from rtx to rtx_insn *.
10277         (permute_load): Likewise for param "insn".
10278         (permute_store): Likewise.
10279         (handle_special_swappables): Likewise for local "insn".
10280         (replace_swap_with_copy): Likewise for locals "insn" and
10281         "new_insn".
10282         (rs6000_analyze_swaps): Likewise for local "insn".
10283
10284 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10285
10286         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10287         to rtx_insn *.
10288
10289 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10290
10291         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10292         "note_list" from rtx to rtx_insn *.
10293         (BB_NOTE_LIST): Replace this function and...
10294         (SET_BB_NOTE_LIST): ...this function with...
10295         (BB_NOTE_LIST): ...the former macro implementation.
10296
10297         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10298         local "from_start" from rtx to rtx_insn *.  Strengthen param
10299         "to_endp" from rtx * to rtx_insn **.
10300
10301         * haifa-sched.c (concat_note_lists): Likewise.
10302         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10303         BB_NOTE_LIST.
10304         (sel_restore_notes): Likewise.
10305         (move_bb_info): Likewise.
10306         (BB_NOTE_LIST): Delete this function.
10307         (SET_BB_NOTE_LIST): Delete this function.
10308         * sel-sched.c (create_block_for_bookkeeping): Eliminate
10309         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10310
10311 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10312
10313         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10314         from rtx * to rtx_insn **.
10315         (reorder2): Likewise.
10316         (dependencies_evaluation_hook): Strengthen params "head", "tail"
10317         from rtx to rtx_insn *.
10318
10319         * doc/tm.texi: Update mechanically for above change to target.def.
10320
10321         * sched-int.h (note_list): Strengthen this variable from rtx to
10322         rtx_insn *.
10323         (remove_notes): Likewise for both params.
10324         (restore_other_notes): Likewise for return type and first param.
10325         (struct ready_list): Strengthen field "vec" from rtx * to
10326         rtx_insn **.
10327         (struct dep_replacement): Strenghten field "insn" from rtx to
10328         rtx_insn *.
10329         (struct deps_desc): Likewise for fields "last_debug_insn",
10330         "last_args_size".
10331         (struct haifa_sched_info): Likewise for callback field
10332         "can_schedule_ready_p"'s param, for first param of "new_ready"
10333         callback field, for both params of "rank" callback field, for
10334         first field of "print_insn" callback field (with a const), for
10335         both params of "contributes_to_priority" callback, for param
10336         of "insn_finishes_block_p" callback, for fields "prev_head",
10337         "next_tail", "head", "tail", for first param of "add_remove_insn"
10338         callback, for first param of "begin_schedule_ready" callback, for
10339         both params of "begin_move_insn" callback, and for second param
10340         of "advance_target_bb" callback.
10341         (add_dependence): Likewise for params 1 and 2.
10342         (sched_analyze): Likewise for params 2 and 3.
10343         (deps_analyze_insn): Likewise for param 2.
10344         (ready_element): Likewise for return type.
10345         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10346         (try_ready): Strenghten param from rtx to rtx_insn *.
10347         (sched_emit_insn): Likewise for return type.
10348         (record_delay_slot_pair): Likewise for params 1 and 2.
10349         (add_delay_dependencies): Likewise for param.
10350         (contributes_to_priority): Likewise for both params.
10351         (find_modifiable_mems): Likewise.
10352
10353         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
10354         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
10355         "first_older_only_insn" from rtx to rtx_insn *.
10356         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
10357         rtx_insn **.
10358
10359         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
10360         "last_scheduled_iter0" from rtx to rtx_insn *.
10361         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
10362         (c6x_sched_reorder_1): Strengthen param "ready" and locals
10363         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
10364         "insn" from rtx to rtx_insn *.
10365         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
10366         rtx_insn **.
10367         (c6x_sched_reorder2): Strengthen param "ready" and locals
10368         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10369         "insn" from rtx to rtx_insn *.
10370         (c6x_variable_issue):  Add a checked cast when assigning from insn
10371         to ss.last_scheduled_iter0.
10372         (split_delayed_branch): Strengthen param "insn" and local "i1"
10373         from rtx to rtx_insn *.
10374         (split_delayed_nonbranch): Likewise.
10375         (undo_split_delayed_nonbranch): Likewise for local "insn".
10376         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
10377         "entry_after", "end_packet", "head_insn", "tail_insn",
10378         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
10379         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
10380         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
10381         but add a checked cast on loop->start_label.  Consolidate calls to
10382         avoid assigning result of gen_spkernel to "insn", now an
10383         rtx_insn *.
10384
10385         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
10386         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
10387         rtx to rtx_insn *.
10388         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
10389         rtx_insn **.  Strengthen locals "top", "next" from rtx to
10390         rtx_insn *.
10391         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
10392         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
10393         (add_parameter_dependencies): Strengthen params "call", "head" and
10394         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
10395         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
10396         (add_dependee_for_func_arg): Likewise for param "arg" and local
10397         "insn".
10398         (ix86_dependencies_evaluation_hook): Likewise for params "head",
10399         "tail" and locals "insn", "first_arg".
10400
10401         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
10402         for params "head", "tail" and locals "insn", "next", "next_tail".
10403         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
10404         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
10405         "insn", "lowest", "highest" from rtx to rtx_insn *.
10406         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
10407         rtx_insn **.
10408         (ia64_sched_reorder2): Likewise.
10409
10410         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
10411         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
10412         from rtx * to rtx_insn **.
10413         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
10414         rtx_insn **.
10415         (mep_print_sched_insn): Strengthen param "insn" from rtx to
10416         rtx_insn *.
10417         (mep_sched_reorder): Strengthen param "ready" from rtx * to
10418         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
10419         to rtx_insn *.
10420
10421         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
10422         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
10423         to rtx_insn *.
10424         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
10425         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
10426         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
10427         rtx_insn **.
10428         (vr4130_reorder): Likewise.
10429         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
10430         rtx to rtx_insn *.
10431         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
10432         rtx_insn **.
10433         (mips_sched_reorder): Likewise.
10434         (mips_sched_reorder2): Likewise.
10435
10436         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
10437
10438         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
10439         Strengthen local "tmp" from rtx to rtx_insn *.
10440         (rs6000_sched_reorder2): Likewise.
10441
10442         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
10443         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
10444         (s390_sched_reorder): Strengthen param "ready" from rtx * to
10445         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
10446
10447         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
10448         "tmp2" from rtx to rtx_insn *.
10449         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
10450         Strengthen local "insn" from rtx to rtx_insn *.
10451         (ready_reorder): Strengthen param "ready" from rtx * to
10452         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
10453         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
10454         (sh_reorder2): Likewise.
10455
10456         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
10457         local "insn" from rtx to rtx_insn *.
10458
10459         * haifa-sched.c (note_list): Strengthen this variable from rtx to
10460         rtx_insn *.
10461         (scheduled_insns): Strengthen this variable from vec<rtx> to
10462         vec<rtx_insn *>.
10463         (set_modulo_params): Likewise for locals "i1", "i2".
10464         (record_delay_slot_pair): Likewise for params "i1", "i2".
10465         (add_delay_dependencies): Likewise for param "insn".
10466         (cond_clobbered_p): Likewise.
10467         (recompute_todo_spec): Likewise for local "prev".
10468         (last_scheduled_insn): Likewise for this variable.
10469         (nonscheduled_insns_begin): Likewise.
10470         (model_set_excess_costs): Strengthen param "insns" from rtx * to
10471         rtx_insn **.
10472         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
10473         rtx_insn *.
10474         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
10475         Strengthen local "insn" from rtx to rtx_insn *.
10476         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
10477         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10478         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
10479         (ready_remove_first): Likewise for return type and local "t".
10480         (ready_element): Likewise for return type.
10481         (ready_remove): Likewise for return type and local "t".
10482         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
10483         (check_clobbered_conditions): Strengthen local "x" from rtx to
10484         rtx_insn *, adding a checked cast.
10485         (schedule_insn): Likewise for param "insn".
10486         (remove_notes): Likewise for params "head", "tail" and locals
10487         "next_tail", "insn", "next".
10488         (struct haifa_saved_data): Likewise for fields
10489         "last_scheduled_insn", "nonscheduled_insns_begin".
10490         (save_backtrack_point): Update for change to field "vec" of
10491         struct ready_list.
10492         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
10493         rtx_insn **.
10494         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
10495         from rtx to rtx_insn *
10496         (resolve_dependencies): Strengthen param "insn" from rtx to
10497         rtx_insn *
10498         (restore_other_notes): Likewise for return type, for param "head"
10499         and local "note_head".
10500         (undo_all_replacements): Likewise for local "insn".
10501         (first_nonscheduled_insn): Likewise for return type and local "insn".
10502         (queue_to_ready): Likewise for local "insn", adding checked casts.
10503         (early_queue_to_ready): Likewise for local "insn".
10504         (debug_ready_list_1): Strengthen local "p" from rtx * to
10505         rtx_insn **.
10506         (move_insn): Strengthen param "insn" and local "note" from rtx to
10507         rtx_insn *
10508         (insn_finishes_cycle_p): Likewise for param "insn".
10509         (max_issue): Likewise for local "insn".
10510         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
10511         to rtx_insn **.
10512         (commit_schedule): Strengthen param "prev_head" and local "insn"
10513         from rtx to rtx_insn *
10514         (prune_ready_list): Likewise for local "insn".
10515         (schedule_block): Likewise for locals "prev_head", "head", "tail",
10516         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
10517         (set_priorities): Likewise for local "prev_head".
10518         (try_ready): Likewise for param "next".
10519         (fix_tick_ready): Likewise.
10520         (change_queue_index): Likewise.
10521         (sched_extend_ready_list): Update for change to field "vec" of
10522         struct ready_list.
10523         (generate_recovery_code): Strengthen param "insn" from rtx to
10524         rtx_insn *.
10525         (begin_speculative_block): Likewise.
10526         (create_check_block_twin): Likewise for param "insn" and locals
10527         "label", "check", "twin".  Introduce local "check_pat" to avoid
10528         "check" being used as a plain rtx before being used as an insn.
10529         (fix_recovery_deps): Add a checked cast to rtx_insn * when
10530         extracting elements from ready_list.
10531         (sched_remove_insn): Strengthen param "insn" from rtx to
10532         rtx_insn *.
10533         (sched_emit_insn): Likewise for return type.
10534         (ready_remove_first_dispatch): Likewise for return type and local
10535         "insn".
10536
10537         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
10538
10539         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
10540         const rtx_insn *.
10541
10542         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
10543         from rtx to rtx_insn *.
10544         (add_dependence_list): Likewise for param "insn".  Add a checked
10545         cast.
10546         (add_dependence_list_and_free): Strengthen param "insn" from rtx
10547         to rtx_insn *.  Strengthen param "list_p" from rtx * to
10548         rtx_insn **.
10549         (chain_to_prev_insn): Strengthen param "insn" and locals
10550         "prec_nonnote", "i" from rtx to rtx_insn *.
10551         (flush_pending_lists): Likewise for param "insn".
10552         (cur_insn): Likewise for this variable.
10553         (haifa_start_insn): Add a checked cast.
10554         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
10555         (sched_analyze_reg): Likewise for param "insn".
10556         (sched_analyze_1): Likewise.
10557         (sched_analyze_2): Likewise.  Add checked casts.
10558         (sched_analyze_insn): Likewise.  Also for local "prev".
10559         (deps_analyze_insn): Likewise for param "insn".
10560         (sched_analyze): Likewise for params "head", "tail" and local "insn".
10561         (add_dependence_1): Likewise for params "insn", "elem".
10562         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
10563         (parse_add_or_inc): Likewise for param "insn".
10564         (find_inc): Likewise for local "inc_cand".
10565         (find_modifiable_mems): Likewise for params "head", "tail" and
10566         locals "insn", "next_tail".
10567
10568         * sched-ebb.c (init_ready_list): Likewise for local "insn".
10569         (begin_schedule_ready): Likewise for param "insn".
10570         (begin_move_insn): Likewise for params "insn" and "last".
10571         (ebb_print_insn): Strengthen param "insn" from const_rtx to
10572         const rtx_insn *.
10573         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
10574         (ebb_contributes_to_priority): Likewise for params "next", "insn".
10575         (ebb_add_remove_insn): Likewise for param "insn".
10576         (advance_target_bb): Likewise.
10577
10578         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
10579         "insn".
10580         (check_live): Likewise for param "insn".
10581         (init_ready_list): Likewise for local "insn".
10582         (can_schedule_ready_p): Likewise for param "insn".
10583         (begin_schedule_ready): Likewise.
10584         (new_ready): Likewise for param "next".
10585         (rgn_print_insn): Likewise for param "insn".
10586         (rgn_rank): Likewise for params "insn1", "insn2".
10587         (contributes_to_priority): Likewise for params "next", "insn".
10588         (rgn_insn_finishes_block_p): Likewise for param "insn".
10589         (add_branch_dependences): Likewise for params "head", "tail" and
10590         locals "insn", "last".
10591         (rgn_add_remove_insn): Likewise for param "insn".
10592         (advance_target_bb): Likewise.
10593
10594         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
10595         const_rtx to const rtx_insn *.
10596
10597         * sel-sched-dump.h (sel_print_insn): Likewise.
10598
10599         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
10600         (deps_init_id): Likewise.
10601
10602         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10603         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10604         rtx_insn **.
10605
10606 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10607
10608         * output.h (final_start_function): Strengthen param 1 from rtx to
10609         rtx_insn *.
10610
10611         * final.c (final_start_function): Likewise, renaming back from
10612         "uncast_first" to "first", and dropping the checked cast from rtx
10613         to rtx_insn *.
10614
10615 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10616
10617         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10618         * final.c (final): Likewise.  Rename param back from
10619         "uncast_first" to "first" and eliminate the checked cast from rtx
10620         to rtx_insn *.
10621
10622 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10623
10624         * output.h (shorten_branches): Strengthen param from rtx to
10625         rtx_insn *.
10626
10627         * final.c (shorten_branches): Likewise, renaming param back from
10628         "uncast_first" to "first", and dropping the checked cast from rtx
10629         to rtx_insn *.
10630
10631         * genattr.c (gen_attr): Likewise when writing out the prototype of
10632         shorten_branches.
10633
10634 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10635
10636         * sched-int.h (struct haifa_sched_info): Strengthen fields
10637         "prev_head" and "next_tail" from rtx to rtx_insn *.
10638
10639 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10640
10641         * rtl.h (rtx_jump_table_data::get_labels): New method.
10642         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10643         with use of the new rtx_jump_table_data::get_labels method.
10644         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10645         to rtx_jump_table_data *.  Simplify by using get_labels method.
10646         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10647         a dyn_cast, introducing local "table", using it to replace
10648         label-lookup logic with a get_labels method call.
10649         (patch_jump_insn): Simplify using get_labels method.
10650         * dwarf2cfi.c (create_trace_edges): Likewise.
10651         * rtlanal.c (label_is_jump_target_p): Likewise.
10652
10653 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10654
10655         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10656         to rtx_insn *.
10657
10658         * emit-rtl.c (unshare_all_rtl_1): Likewise.
10659         (unshare_all_rtl_again): Likewise, also for local "p".
10660
10661 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10662
10663         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10664         to rtx_insn *.
10665         * cfgrtl.c (delete_insn_and_edges): Likewise.
10666
10667 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10668
10669         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10670         from rtx to rtx_insn *.
10671
10672         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10673
10674 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10675
10676         * function.c (thread_prologue_and_epilogue_insns): Likewise for
10677         locals "returnjump", "epilogue_end", "insn", "next".
10678
10679         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10680         "returnjump" from rtx * to rtx_insn **.
10681         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10682
10683 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10684
10685         * basic-block.h (struct edge_def). Strengthen "r" within
10686         union edge_def_insns from rtx to rtx_insn *.
10687
10688         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10689         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
10690         rtx_insn *.
10691         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10692         from rtx to rtx_insn *.
10693         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10694         rtx_insn *.
10695         * postreload-gcse.c (reg_killed_on_edge): Likewise.
10696         (reg_used_on_edge): Likewise.
10697         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
10698         (gt_pch_nx): New overload for rtx_insn *&.
10699         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
10700         from rtx to rtx_insn *.
10701
10702 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10703
10704         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
10705         from rtx to rtx_insn *.
10706         (BB_FOOTER): Replace function with access macro.
10707         (SET_BB_FOOTER): Delete.
10708
10709         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
10710         with BB_FOOTER.
10711         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10712         (emit_barrier_after_bb): Likewise.
10713         (record_effective_endpoints): Likewise.
10714         (relink_block_chain): Likewise.
10715         (fixup_fallthru_exit_predecessor): Likewise.
10716         (cfg_layout_duplicate_bb): Likewise.
10717         (cfg_layout_split_block): Likewise.
10718         (cfg_layout_delete_block): Likewise.
10719         (cfg_layout_merge_blocks): Likewise.
10720         (BB_FOOTER): Delete function.
10721         (SET_BB_FOOTER): Delete function.
10722         * combine.c (update_cfg_for_uncondjump): Replace uses of
10723         SET_BB_FOOTER with BB_FOOTER.
10724
10725 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10726
10727         * except.h (struct eh_landing_pad_d): Strengthen field
10728         "landing_pad" from rtx to rtx_code_label *.
10729
10730         * except.c (sjlj_emit_dispatch_table): Likewise for param
10731         "dispatch_label"
10732         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10733
10734 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10735
10736         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10737         first param from rtx to rtx_insn *.
10738         * config/xtensa/xtensa.c (struct machine_function): Likewise for
10739         field "set_frame_ptr_insn".
10740         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10741         "csend" from rtx to rtx_code_label *.
10742         (xtensa_expand_atomic): Likewise for local "csloop".
10743         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
10744         rtx_insn *.
10745         (xtensa_call_tls_desc): Likewise for return type and locals
10746         "call_insn", "insns".
10747         (xtensa_legitimize_tls_address): Likewise for local "insns".
10748         (xtensa_expand_prologue): Likewise for locals "insn", "first".
10749
10750 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10751
10752         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
10753         first param from rtx to rtx_insn *.
10754         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
10755         "insn".
10756
10757 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10758
10759         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
10760         Strengthen param 1 from rtx to rtx_insn *.
10761         (tilepro_output_cbranch): Likewise.
10762         (tilepro_adjust_insn_length): Likewise.
10763         (tilepro_final_prescan_insn): Likewise for sole param.
10764
10765         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
10766         Likewise for local "last".
10767         (cbranch_predicted_p): Likewise for param "insn".
10768         (tilepro_output_simple_cbranch_with_opcode): Likewise.
10769         (tilepro_output_cbranch_with_opcode): Likewise.
10770         (tilepro_output_cbranch): Likewise.
10771         (frame_emit_load): Likewise for return type and locals "seq",
10772         "insn".
10773         (emit_sp_adjust): Likewise for return type and local "insn".
10774         (tilepro_expand_epilogue): Likewise for locals "last_insn",
10775         "insn".
10776         (tilepro_adjust_insn_length): Likewise for param "insn".
10777         (next_insn_to_bundle): Likewise for return type and params
10778         "r", "end".
10779         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
10780         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
10781         local "new_insns".
10782         (match_addli_pcrel): Likewise for param "insn".
10783         (replace_addli_pcrel): Likewise.
10784         (match_auli_pcrel): Likewise.
10785         (replace_auli_pcrel): Likewise.
10786         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
10787         "next_insn".
10788         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10789         "queue", "next_queue", "prev".
10790         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
10791         (tilepro_final_prescan_insn): Likewise for param "insn".
10792
10793 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10794
10795         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
10796         Strengthen param 1 from rtx to rtx_insn *.
10797         (tilegx_output_cbranch): Likewise.
10798         (tilegx_adjust_insn_length): Likewise.
10799         (tilegx_final_prescan_insn): Likewise for sole param.
10800
10801         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
10802         or local "last".
10803         (cbranch_predicted_p): Likewise for param "insn".
10804         (tilegx_output_simple_cbranch_with_opcode): Likewise.
10805         (tilegx_output_cbranch_with_opcode): Likewise.
10806         (tilegx_output_cbranch): Likewise.
10807         (frame_emit_load): Likewise for return type.
10808         (set_frame_related_p): Likewise for locals "seq", "insn".
10809         (emit_sp_adjust): Likewise for return type, and for local "insn".
10810         Introduce local "pat" for use in place of "insn" where the latter
10811         isn't an instruction.
10812         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
10813         from rtx to rtx_insn *.
10814         (tilegx_adjust_insn_length): Likewise for param "insn".
10815         (next_insn_to_bundle): Likewise for return type and params "r" and
10816         "end".
10817         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
10818         "end".
10819         (replace_insns): Likewise for params "old_insn", "new_insns".
10820         (replace_mov_pcrel_step1): Likewise for param "insn" and local
10821         "new_insns".
10822         (replace_mov_pcrel_step2): Likewise.
10823         (replace_mov_pcrel_step3): Likewise.
10824         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
10825         "next_insn".
10826         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10827         "queue", "next_queue", "prev".
10828         (tilegx_output_mi_thunk): Likewise for local "insn".
10829         (tilegx_final_prescan_insn): Likewise for param "insn".
10830
10831 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10832
10833         * config/spu/spu.c (frame_emit_store): Strengthen return type from
10834         rtx to rtx_insn *.
10835         (frame_emit_load): Likewise.
10836         (frame_emit_add_imm): Likewise, also for local "insn".
10837         (spu_expand_prologue): Likewise for local "insn".
10838         (struct spu_bb_info): Likewise for field "prop_jump".
10839         (emit_nop_for_insn): Likewise for param "insn" and local
10840         "new_insn".
10841         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
10842         "hbr_insn".
10843         (spu_emit_branch_hint): Likewise for params "before", "branch" and
10844         locals "hint", "insn".
10845         (get_branch_target): Likewise for param "branch".
10846         (insn_clobbers_hbr): Likewise for param "insn".
10847         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
10848         locals "insn", "before_4", "before_16".
10849         (insert_hbrp): Likewise for local "insn".
10850         (spu_machine_dependent_reorg): Likewise for locals "branch",
10851         "insn", "next", "bbend".
10852         (uses_ls_unit): Likewise for param "insn".
10853         (get_pipe): Likewise.
10854         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
10855         introducing a checked cast.
10856         (spu_sched_adjust_cost): Likewise for params "insn" and
10857         "dep_insn".
10858         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
10859         (spu_sms_res_mii): Likewise.
10860
10861 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10862
10863         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
10864         from rtx to rtx_insn *.
10865         (output_cbranch): Likewise for param 6.
10866         (output_return): Likewise for param 1.
10867         (output_sibcall): Likewise.
10868         (output_v8plus_shift): Likewise.
10869         (output_v8plus_mult): Likewise.
10870         (output_v9branch): Likewise for param 7.
10871         (output_cbcond):  Likewise for param 3.
10872
10873         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
10874         for local "insn".
10875         (sparc_legitimize_pic_address): Likewise.
10876         (sparc_emit_call_insn): Likewise.
10877         (emit_save_or_restore_regs): Likewise.
10878         (emit_window_save): Likewise for return type and local "insn".
10879         (sparc_expand_prologue): Likewise for local "insn".
10880         (sparc_flat_expand_prologue): Likewise.
10881         (output_return): Likewise for param "insn".
10882         (output_sibcall): Likewise for param "insn" and local "delay".
10883         (output_ubranch): Likewise for param "insn".
10884         (output_cbranch): Likewise.
10885         (output_cbcond): Likewise.
10886         (output_v9branch): Likewise.
10887         (output_v8plus_shift): Likewise.
10888         (sparc_output_mi_thunk): Likewise for local "insn".
10889         (get_some_local_dynamic_name): Likewise.
10890         (output_v8plus_mult): Likewise for param "insn".
10891
10892 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10893
10894         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
10895         from rtx to rtx_insn *.
10896         (output_branchy_insn): Likewise for param 3.
10897         (output_far_jump): Likewise for param 1.
10898         (final_prescan_insn): Likewise.
10899         (sh_insn_length_adjustment): Likewise for sole param.
10900
10901         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
10902         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
10903         rtx_code_label *.
10904         (sh_emit_compare_and_set): Likewise for local "lab".
10905         (output_far_jump): Strengthen param "insn" and local "prev" from
10906         rtx to rtx_insn *.
10907         (output_branchy_insn): Likewise for param "insn" and local
10908         "next_insn".
10909         (output_ieee_ccmpeq): Likewise for param "insn".
10910         (struct label_ref_list_d): Strengthen field "label" from rtx to
10911         rtx_code_label *.
10912         (pool_node): Likewise.
10913         (pool_window_label): Likewise for this global.
10914         (add_constant): Likewise for return type and locals "lab", "new_rtx".
10915         (dump_table): Strengthen params "start", "barrier" and local
10916         "scan" from rtx to rtx_insn *.
10917         (broken_move): Likewise for param "insn".
10918         (untangle_mova): Likewise for params "first_mova" and "new_mova".
10919         Strengthen param "first_mova" from rtx * to rtx_insn **.
10920         (mova_p): Likewise for param "insn".
10921         (fixup_mova): Likewise for param "mova".
10922         (find_barrier): Likewise for return type, params "mova" and
10923         "from", and locals "barrier_before_mova", "found_barrier",
10924         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
10925         "label" from rtx to rtx_code_label *.
10926         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
10927         rtx to rtx_insn *.
10928         (sh_reorg): Likewise for locals "link", "scan", "barrier".
10929         (split_branches): Likewise for param "first" and local "insn".
10930         (final_prescan_insn): Likewise for param "insn".
10931         (sequence_insn_p): Likewise for locals "prev", "next".
10932         (sh_insn_length_adjustment): Likewise for param "insn".
10933         (sh_can_redirect_branch): Likewise for local "insn".
10934         (find_r0_life_regions): Likewise for locals "end", "insn".
10935         (sh_output_mi_thunk): Likewise for local "insns".
10936
10937 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10938
10939         * config/score/score.c (score_output_mi_thunk): Strengthen local
10940         "insn" from rtx to rtx_insn *.
10941         (score_prologue): Likewise.
10942
10943 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10944
10945         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
10946         1 from rtx to rtx_insn *.
10947         (s390_emit_jump): Likewise for return type.
10948         (s390_emit_call): Likewise.
10949         (s390_load_got): Likewise.
10950
10951         * config/s390/s390.c (last_scheduled_insn): Likewise for this
10952         variable.
10953         (s390_match_ccmode): Likewise for param "insn".
10954         (s390_emit_jump): Likewise for return type.
10955         (s390_split_branches): Likewise for local "label".
10956         (struct constant): Strengthen field "label" from rtx to
10957         rtx_code_label *.
10958         (struct constant_pool): Likewise for field "label".  Strengthen
10959         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
10960         rtx_insn *.
10961         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
10962         insns.
10963         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
10964         (s390_end_pool): Likewise.
10965         (s390_dump_pool): Likewise for local "insn".
10966         (s390_mainpool_start): Likewise.
10967         (s390_chunkify_start): Likewise.
10968         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
10969         with insns.  Strengthen locals "label", "jump", "barrier", "next",
10970         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
10971         (s390_chunkify_finish): Strengthen local "insn" from rtx to
10972         rtx_insn *.
10973         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
10974         "jump", "label", "next_insn".
10975         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
10976         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
10977         "tbegin_insn".
10978         (s390_load_got): Likewise for return type and local "insns".
10979         (s390_save_gprs_to_fprs): Likewise for local "insn".
10980         (s390_restore_gprs_from_fprs): Likewise.
10981         (pass_s390_early_mach::execute): Likewise.
10982         (s390_emit_prologue): Likewise for local "insns".
10983         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
10984         rtx_code_label *.
10985         (s390_emit_call): Strengthen return type and local "insn" from
10986         rtx to rtx_insn *.
10987         (s390_emit_tpf_eh_return): Likewise for local "insn".
10988         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
10989         "next_insn", introducing locals "s_pat", "rpat" to allow this.
10990         (s390_fix_long_loop_prediction): Likewise for param "insn" and
10991         local "cur_insn".
10992         (s390_non_addr_reg_read_p): Likewise for param "insn".
10993         (find_cond_jump): Likewise for return type and param "insn".
10994         (s390_swap_cmp): Likewise for param "insn".
10995         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
10996         "prev_insn", "next_insn".
10997         (s390_reorg): Likewise for locals "insn", "target".
10998         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
10999         (s390_sched_variable_issue): For now, rename param "insn" to
11000         "uncast_insn", introducing a checked cast.
11001         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11002         insn.
11003         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11004         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
11005
11006 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11007
11008         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11009         param from rtx to rtx_insn *.
11010         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11011
11012 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11013
11014         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11015         4 from rtx to rtx_insn *.
11016         (rs6000_final_prescan_insn): Likewise for first param.
11017         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11018         local "insn".
11019         (rs6000_get_some_local_dynamic_name): Likewise.
11020         (output_cbranch): Likewise for param "insn".
11021         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11022         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11023         (rs6000_emit_allocate_stack): Likewise for local "insn".
11024         (load_cr_save): Likewise.
11025         (restore_saved_cr): Likewise.
11026         (restore_saved_lr): Likewise.
11027         (emit_cfa_restores): Likewise.
11028         (rs6000_output_function_epilogue): Likewise for locals "insn" and
11029         "deleted_debug_label".
11030         (rs6000_output_mi_thunk): Likewise for local "insn".
11031         (rs6000_final_prescan_insn): Likewise for param "insn".
11032
11033 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11034
11035         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11036         Strengthen param "insn" from rtx to rtx_insn *.
11037         * config/picochip/picochip.c (picochip_current_prescan_insn):
11038         Likewise for this variable.
11039         (picochip_final_prescan_insn): Likewise for param "insn".
11040
11041 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11042
11043         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11044         from rtx to rtx_insn *.
11045         (pa_output_indirect_call): Likewise.
11046         (pa_adjust_insn_length): Likewise.
11047         (pa_attr_length_millicode_call): Likewise.
11048         (pa_attr_length_call): Likewise.
11049         (pa_attr_length_indirect_call): Likewise.
11050
11051         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11052         "insn".
11053         (pa_attr_length_millicode_call): Likewise.
11054         (pa_attr_length_call): Likewise.
11055         (pa_output_call): Likewise.
11056         (pa_attr_length_indirect_call): Likewise.
11057         (pa_output_indirect_call): Likewise.
11058
11059 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11060
11061         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11062         Strengthen first param from rtx to rtx_insn *.
11063         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11064         param "insn".
11065
11066 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11067
11068         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11069         type from rtx to rtx_insn *.
11070         (mips_expand_call): Likewise.
11071         (mips_adjust_insn_length): Likewise for first param.
11072         (mips_output_conditional_branch): Likewise.
11073         (mips_output_order_conditional_branch): Likewise.
11074         (mips_final_prescan_insn): Likewise.
11075
11076         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11077         rtx_insn * for the SEQUENCE case.
11078         (SEQ_END): Likewise.
11079         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11080         (mips_emit_call_insn): Likewise, also for local "insn".
11081         (mips16_gp_pseudo_reg): Likewise for local "scan".
11082         (mips16_build_call_stub): Likewise for return type and for local
11083         "insn".  Introduce a new local "pattern" so that "insn" can indeed
11084         be an insn.
11085         (mips_expand_call): Strengthen return type and local "insn" from
11086         rtx to rtx_insn *.
11087         (mips_block_move_loop): Strengthen local "label" from rtx to
11088         rtx_code_label *.
11089         (mips_expand_synci_loop): Likewise for locals "label",
11090         "end_label".
11091         (mips_set_frame_expr): Strengthen local "insn" from rtx to
11092         rtx_insn *.
11093         (mips16e_collect_argument_saves): Likewise for locals "insn",
11094         "next".
11095         (mips_find_gp_ref): Likewise for param of callback for "pred"
11096         param, and for local "insn".
11097         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11098         (mips_insn_has_flexible_gp_ref_p): Likewise.
11099         (mips_epilogue_emit_cfa_restores): Likewise for return type and
11100         local "insn".
11101         (mips_epilogue_set_cfa): Likewise for local "insn".
11102         (mips_expand_epilogue): Likewise.
11103         (mips_adjust_insn_length): Likewise for param "insn".
11104         (mips_output_conditional_branch): Likewise.
11105         (mips_output_order_conditional_branch): Likewise.
11106         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11107         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11108         "falu2_turn_enabled_insn".
11109         (mips_builtin_branch_and_move): Strengthen locals "true_label",
11110         "done_label" from rtx to rtx_code_label *.
11111         (struct mips16_constant): Likewise for field "label".
11112         (mips16_add_constant): Likewise for return type.
11113         (mips16_emit_constants_1): Strengthen return type and param "insn"
11114         from rtx to rtx_insn *.
11115         (mips16_emit_constants): Likewise for param "insn".
11116         (mips16_insn_length): Likewise.
11117         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11118         to rtx_code_label *.
11119         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11120         from rtx to rtx_insn *.
11121         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11122         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
11123         (r10k_simplify_address): Strengthen param "insn" and local
11124         "def_insn" from rtx to rtx_insn *.
11125         (r10k_safe_address_p): Strengthen param "insn" from rtx to
11126         rtx_insn *.
11127         (r10k_needs_protection_p_1): Update target type of cast of data
11128         from to rtx to rtx_insn *.
11129         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11130         rtx * to rtx_insn **.
11131         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11132         rtx_insn *.
11133         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11134         (mips_call_expr_from_insn): Likewise for param "insn".
11135         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11136         (mips_find_pic_call_symbol): Likewise for param "insn".
11137         (mips_annotate_pic_calls): Likewise for local "insn".
11138         (mips_sim_insn): Likewise for this variable.
11139         (struct mips_sim): Likewise for field "insn" within elements of
11140         last_set array.
11141         (mips_sim_wait_reg): Likewise for param "insn".
11142         (mips_sim_wait_regs): Likewise.
11143         (mips_sim_wait_units): Likewise.
11144         (mips_sim_wait_insn): Likewise.
11145         (mips_sim_issue_insn): Likewise.
11146         (mips_sim_finish_insn): Likewise.
11147         (mips_seq_time): Likewise for param "seq" and local "insn".
11148         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11149         locals "first", "second".
11150         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11151         "last", "last2", "next".
11152         (mips_avoid_hazard): Likewise for params "after", "insn".
11153         (mips_reorg_process_insns): Likewise for locals "insn",
11154         "last_insn", "subinsn", "next_insn".
11155         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11156         (mips16_split_long_branches): Likewise for locals "insn" "jump",
11157         "jump_sequence".
11158         (mips_output_mi_thunk): Likewise for local "insn".
11159         (mips_final_prescan_insn): Likewise for param "insn".
11160
11161 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11162
11163         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11164         Strengthen return type and local "insns" from rtx to rtx_insn *.
11165         (microblaze_legitimize_tls_address): Likewise for local "insns".
11166         (microblaze_block_move_loop): Strengthen local "label" from rtx
11167         to rtx_code_label *.
11168         (microblaze_expand_prologue): Strengthen two locals named "insn"
11169         from rtx to rtx_insn *.
11170         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11171         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11172         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
11173         to rtx_code_label *.
11174
11175 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11176
11177         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11178         param from rtx to rtx_insn *.
11179         (mep_reuse_lo): Likewise for third param.
11180         (mep_use_post_modify_p): Likewise for first param.
11181         (mep_core_address_length): Likewise.
11182         (mep_cop_address_length): Likewise.
11183         (mep_final_prescan_insn): Likewise.
11184         (mep_store_data_bypass_p): Likewise for both params.
11185         (mep_mul_hilo_bypass_p): Likewise.
11186         (mep_ipipe_ldc_p): Likewise for param.
11187
11188         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11189         (mep_rewrite_mult): Likewise.
11190         (mep_rewrite_mulsi3): Likewise.
11191         (mep_rewrite_maddsi3): Likewise.
11192         (mep_reuse_lo_p_1): Likewise.
11193         (mep_reuse_lo_p): Likewise.
11194         (mep_frame_expr): Likewise.
11195         (mep_make_parallel): Likewise for both params.
11196         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11197         local "insn".
11198         (mep_use_post_modify_p): Likewise for param "insn".
11199         (mep_core_address_length): Likewise.
11200         (mep_cop_address_length): Likewise.
11201         (mep_reg_set_in_function): Likewise for local "insn".
11202         (mep_asm_without_operands_p): Likewise.
11203         (F): Likewise for return type and param "x".
11204         (add_constant): Likewise for local "insn".
11205         (maybe_dead_move): Likewise for return type and local "insn".
11206         (mep_expand_prologue): Likewise for local "insn".
11207         (mep_final_prescan_insn): Likewise for param "insn".
11208         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11209         "next", "follow", "x".
11210         (mep_insert_repeat_label_last): Likewise for return type, param
11211         "last_insn", and locals "next", "prev".  Strengthen param "label"
11212         from rtx to rtx_code_label *.
11213         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11214         rtx_insn *.
11215         (struct mep_doloop_end): Likewise for fields "insn" and
11216         "fallthrough".
11217         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
11218         Strengthen local "repeat_label" from rtx to rtx_code_label *.
11219         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
11220         rtx_insn *.
11221         (mep_invert_branch): Likewise for params "insn" and "after".
11222         (mep_reorg_erepeat): Likewise for param "insns" and locals
11223         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
11224         "l" from rtx to rtx_code_label *.
11225         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
11226         from rtx to rtx_insn *.
11227         (mep_reorg_addcombine): Likewise for param "insns" and locals
11228         "i", "n".
11229         (add_sp_insn_p): Likewise for param "insn".
11230         (mep_reorg_noframe): Likewise for param "insns" and locals
11231         "start_frame_insn", "end_frame_insn", "next".
11232         (mep_reorg): Likewise for local "insns".
11233         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
11234         cast.
11235         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
11236         (mep_mul_hilo_bypass_p): Likewise.
11237         (mep_ipipe_ldc_p): Likewise for param "insn".
11238         (mep_make_bundle): Likewise for return type, param "cop" and local
11239         "insn", splitting out the latter into a new local "seq" for when it
11240         is a SEQUENCE rather than an insn.
11241         (core_insn_p): Likewise for param "insn".
11242         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
11243         "last", "first", "note", "prev", "core_insn".
11244
11245 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11246
11247         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
11248         rtx to rtx_insn *.
11249         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
11250         (m68k_final_prescan_insn): Likewise for first param.
11251
11252         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11253         (m68k_set_frame_related): Likewise for param "insn".
11254         (output_btst): Likewise for param "insn".
11255         (m68k_final_prescan_insn): Likewise.
11256         (m68k_move_to_reg): Likewise for local "insn".
11257         (m68k_call_tls_get_addr): Likewise for local "insns".
11258         (m68k_call_m68k_read_tp): Likewise.
11259         (strict_low_part_peephole_ok): Likewise for param "first_insn".
11260         (m68k_output_mi_thunk): Likewise for local "insn".
11261
11262 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11263
11264         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11265         first param from rtx to rtx_insn *.
11266         (iq2000_adjust_insn_length): Likewise.
11267         (iq2000_output_conditional_branch): Likewise.
11268         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11269         "insn" and local "nop_insn".
11270         (iq2000_annotate_frame_insn): Likewise for param "insn".
11271         (iq2000_expand_prologue): Likewise for both locals "insn".
11272         (iq2000_adjust_insn_length): Likewise for param "insn".
11273         (iq2000_output_conditional_branch): Likewise.
11274
11275 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11276
11277         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11278         "insns" from rtx to rtx_insn *.
11279         (ia64_emit_cond_move): Likewise for locals "insn", "first".
11280         (struct spill_fill_data): Likewise for field "init_after" and for
11281         elements of array field "prev_insn".
11282         (spill_restore_mem): Likewise for locals "insn", "first".
11283         (do_spill): Likewise for local "insn".
11284         (do_restore): Likewise.
11285         (ia64_expand_prologue): Likewise.
11286         (ia64_expand_epilogue): Likewise.
11287         (emit_insn_group_barriers): Likewise for locals "insn",
11288         "last_label".
11289         (emit_all_insn_group_barriers): Likewise for locals "insn",
11290         "last".
11291         (dfa_stop_insn): Likewise for this global.
11292         (dfa_pre_cycle_insn): Likewise.
11293         (ia64_nop): Likewise.
11294         (final_emit_insn_group_barriers): Likewise for locals "insn",
11295         "last".
11296         (emit_predicate_relation_info): Likewise for locals "head", "n",
11297         "insn", "b", "a".
11298         (ia64_reorg): Likewise for local "insn".
11299         (ia64_output_mi_thunk): Likewise.
11300         (expand_vec_perm_interleave_2): Likewise for local "seq".
11301
11302 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11303
11304         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11305         param 1 "insn" from rtx to rtx_insn *.
11306         (ix86_use_lea_for_mov): Likewise.
11307         (ix86_avoid_lea_for_addr): Likewise.
11308         (ix86_split_lea_for_addr): Likewise.
11309         (ix86_lea_for_add_ok): Likewise.
11310         (ix86_output_call_insn): Likewise.
11311
11312         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11313         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11314         (ix86_output_function_epilogue): Likewise for locals "insn",
11315         "deleted_debug_label".
11316         (legitimize_tls_address): Likewise for local "insn".
11317         (get_some_local_dynamic_name): Likewise.
11318         (increase_distance): Likewise for params "prev", "next".
11319         (distance_non_agu_define_in_bb): Likewise for params "insn",
11320         "start" and locals "prev", "next".
11321         (distance_non_agu_define): Likewise for param "insn".
11322         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11323         locals "next", "prev".
11324         (distance_agu_use): Likewise for param "insn".
11325         (ix86_lea_outperforms): Likewise.
11326         (ix86_ok_to_clobber_flags): Likewise.
11327         (ix86_avoid_lea_for_add): Likewise.
11328         (ix86_use_lea_for_mov): Likewise.
11329         (ix86_avoid_lea_for_addr): Likewise.
11330         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11331         (ix86_split_lea_for_addr): Likewise for param "insn".
11332         (ix86_lea_for_add_ok): Likewise for param "insn".
11333         (ix86_expand_carry_flag_compare): Likewise for local
11334         "compare_seq".
11335         (ix86_expand_int_movcc): Likewise.
11336         (ix86_output_call_insn): Likewise for param "insn".
11337         (ix86_output_call_insn): Likewise for local "i".
11338         (x86_output_mi_thunk): Introduce local "insn", using it in place
11339         of "tmp" when dealing with insns.
11340         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11341         "start".
11342         (ix86_pad_returns): Likewise for locals "ret", "prev".
11343         (ix86_count_insn_bb): Likewise for local "insn".
11344         (ix86_pad_short_function): Likewise for locals "ret", "insn".
11345         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11346         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11347         (expand_vec_perm_interleave2): Likewise for local "seq".
11348         (expand_vec_perm_vperm2f128_vblend): Likewise.
11349         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
11350         call to for_each_rtx with for_each_rtx_in_insn.
11351
11352 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11353
11354         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
11355         "label" from rtx to rtx_code_label *.
11356         (ix86_expand_prologue): Likewise.
11357         (ix86_expand_split_stack_prologue): Likewise for locals "label",
11358         "varargs_label".
11359         (ix86_split_idivmod): Likewise for locals "end_label" and
11360         "qimode_label".
11361         (ix86_expand_branch): Likewise for local "label2".
11362         (ix86_expand_aligntest): Likewise for return type and local "label".
11363         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
11364         "top_label".
11365         (expand_movmem_epilogue): Likewise for the various locals named
11366         "label".
11367         (expand_setmem_epilogue): Likewise.
11368         (expand_small_movmem_or_setmem): Likewise for local "label".
11369         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11370         Strengthen param "done_label" from rtx * to rtx_code_label **.
11371         Strengthen locals "loop_label" and "label" from rtx to
11372         rtx_code_label *.
11373         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11374         Likewise for locals "loop_label", "label".
11375         (ix86_expand_set_or_movmem): Likewise for locals "label",
11376         "jump_around_label", "hot_label".
11377         (ix86_expand_strlensi_unroll_1): Likewise for locals
11378         "align_2_label", align_3_label", "align_4_label", "end_0_label",
11379         "end_2_label".
11380         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
11381         (void ix86_emit_i387_log1p): Likewise for locals "label1",
11382         "label2", "jump_label".
11383         (ix86_expand_sse_compare_and_jump): Likewise for return type and
11384         local "label".
11385         (ix86_expand_lfloorceil): Likewise for local "label".
11386         (ix86_expand_rint): Likewise.
11387         (ix86_expand_floorceildf_32): Likewise.
11388         (ix86_expand_floorceil): Likewise.
11389         (ix86_expand_rounddf_32): Likewise.
11390         (ix86_expand_trunc): Likewise.
11391         (ix86_expand_truncdf_32): Likewise.
11392         (ix86_expand_round): Likewise.
11393
11394 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11395
11396         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
11397         first param from rtx to rtx_insn *.
11398         (h8300_insn_length_from_table): Likewise.
11399         * config/h8300/h8300.c (F): Likewise for return type and param
11400         "x".
11401         (Fpa): Add a checked cast to rtx_insn *.
11402         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
11403         rtx_insn *.
11404         (final_prescan_insn): Likewise for param "insn".
11405         (h8300_binary_length): Likewise.
11406         (h8300_insn_length_from_table): Likewise.
11407
11408 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11409
11410         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
11411         Strengthen first param "insn" from rtx to rtx_insn *.
11412
11413         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
11414         Likewise.
11415         (frame_insn): Likewise for return type.  Introduce local "insn"
11416         for use in place of local "x" for use as an rtx_insn *.
11417         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
11418         (epiphany_expand_prologue): Likewise for local "insn".
11419         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
11420         * config/epiphany/resolve-sw-modes.c
11421         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
11422         "seq".
11423
11424 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11425
11426         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
11427         param from rtx to rtx_insn *.
11428         (c6x_final_prescan_insn): Likewise for first param.
11429
11430         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
11431         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
11432         (c6x_expand_compare): Strengthen local "insns" from rtx to
11433         rtx_insn *.
11434         (c6x_get_unit_specifier): Likewise for param "insn".
11435         (c6x_print_unit_specifier_field): Likewise.
11436         (c6x_final_prescan_insn): Likewise.
11437         (emit_add_sp_const): Likewise for local "insn".
11438         (c6x_expand_prologue): Likewise.
11439
11440 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11441
11442         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
11443         param 1 from rtx to rtx_insn *.
11444         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
11445         the various locals named "insn".
11446         (expand_epilogue_reg_restore): Likewise.
11447         (frame_related_constant_load): Likewise.
11448         (add_to_reg): Likewise.
11449         (emit_link_insn): Likewise.
11450         (do_link): Likewise.
11451         (expand_interrupt_handler_prologue): Likewise.
11452         (branch_dest): Likewise for param "branch".
11453         (asm_conditional_branch): Likewise for param "insn".
11454         (gen_one_bundle): Likewise for elements of param "slot" and local
11455         "t".
11456         (bfin_gen_bundles): Likewise for locals "insn", "next" and
11457         elements of local "slot".
11458         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11459         "queue", "next_queue", "prev".
11460         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
11461         (add_sched_insns_for_speculation): Likewise for local "insn".
11462
11463 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11464
11465         * config/avr/avr-protos.h (output_movqi): Strengthen first param
11466         from rtx to rtx_insn *.
11467         (output_movhi): Likewise.
11468         (output_movsisf): Likewise.
11469         (avr_out_tstsi): Likewise.
11470         (avr_out_tsthi): Likewise.
11471         (avr_out_tstpsi): Likewise.
11472         (avr_out_compare): Likewise.
11473         (avr_out_compare64): Likewise.
11474         (avr_out_movpsi): Likewise.
11475         (ashlqi3_out): Likewise.
11476         (ashlhi3_out): Likewise.
11477         (ashlsi3_out): Likewise.
11478         (ashrqi3_out): Likewise.
11479         (ashrhi3_out): Likewise.
11480         (ashrsi3_out): Likewise.
11481         (lshrqi3_out): Likewise.
11482         (lshrhi3_out): Likewise.
11483         (lshrsi3_out): Likewise.
11484         (avr_out_ashlpsi3): Likewise.
11485         (avr_out_ashrpsi3): Likewise.
11486         (avr_out_lshrpsi3): Likewise.
11487         (avr_out_fract): Likewise.
11488         (avr_out_sbxx_branch): Likewise.
11489         (avr_out_round): Likewise.
11490         (avr_out_xload): Likewise.
11491         (avr_out_movmem): Likewise.
11492         (adjust_insn_length): Likewise.
11493         (avr_out_lpm): Likewise.
11494         (reg_unused_after): Likewise.
11495         (_reg_unused_after): Likewise.
11496         (avr_jump_mode): Likewise for second param.
11497         (jump_over_one_insn): Likewise for first param.
11498         (avr_final_prescan_insn): Likewise.
11499         (out_shift_with_cnt): Likewise for second param.
11500
11501         * config/avr/avr.c (get_sequence_length): Likewise for param
11502         "insns" and local "insn".
11503         (emit_push_byte): Likewise for local "insn".
11504         (emit_push_sfr): Likewise.
11505         (avr_prologue_setup_frame): Likewise for locals "insn",
11506         "fp_plus_insns", "sp_plus_insns".
11507         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
11508         "sp_plus_insns".
11509         (avr_jump_mode): Likewise for param "insn".
11510         (avr_final_prescan_insn): Likewise.
11511         (avr_find_unused_d_reg): Likewise.
11512         (avr_out_lpm_no_lpmx): Likewise.
11513         (avr_out_lpm): Likewise.
11514         (avr_out_xload): Likewise.
11515         (output_movqi): Likewise.
11516         (output_movhi): Likewise.
11517         (out_movqi_r_mr): Likewise.
11518         (out_movhi_r_mr): Likewise.
11519         (out_movsi_r_mr): Likewise.
11520         (out_movsi_mr_r): Likewise.
11521         (output_movsisf): Likewise.
11522         (avr_out_load_psi): Likewise.
11523         (avr_out_store_psi): Likewise.
11524         (avr_out_movpsi): Likewise.
11525         (out_movqi_mr_r): Likewise.
11526         (avr_out_movhi_mr_r_xmega): Likewise.
11527         (out_movhi_mr_r): Likewise.
11528         (compare_condition): Likewise for param "insn" and local "next".
11529         (compare_sign_p): Likewise for param "insn".
11530         (compare_diff_p): Likewise.
11531         (compare_eq_p): Likewise.
11532         (avr_out_compare): Likewise.
11533         (avr_out_compare64): Likewise.
11534         (avr_out_tsthi): Likewise.
11535         (avr_out_tstpsi): Likewise.
11536         (avr_out_tstsi): Likewise.
11537         (out_shift_with_cnt): Likewise.
11538         (ashlqi3_out): Likewise.
11539         (ashlhi3_out): Likewise.
11540         (avr_out_ashlpsi3): Likewise.
11541         (ashlsi3_out): Likewise.
11542         (ashrqi3_out): Likewise.
11543         (ashrhi3_out): Likewise.
11544         (avr_out_ashrpsi3): Likewise.
11545         (ashrsi3_out): Likewise.
11546         (lshrqi3_out): Likewise.
11547         (lshrhi3_out): Likewise.
11548         (avr_out_lshrpsi3): Likewise.
11549         (lshrsi3_out): Likewise.
11550         (avr_out_fract): Likewise.
11551         (avr_out_round): Likewise.
11552         (avr_adjust_insn_length): Likewise.
11553         (reg_unused_after): Likewise.
11554         (_reg_unused_after): Likewise.
11555         (avr_compare_pattern): Likewise.
11556         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
11557         and locals "branch1", "branch2", "insn2", "jump".
11558         (avr_reorg): Likewise for local "insn".
11559         (avr_2word_insn_p): Likewise for param "insn".
11560         (jump_over_one_insn_p): Likewise.
11561         (avr_out_sbxx_branch): Likewise.
11562         (avr_out_movmem): Likewise.
11563
11564 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11565
11566         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
11567         param from rtx to rtx_insn *.
11568         (thumb1_final_prescan_insn): Likewise.
11569         (thumb2_final_prescan_insn): Likewise.
11570
11571         * config/arm/arm.c (emit_set_insn): Strengthen return type from
11572         rtx to rtx_insn *.
11573         (struct minipool_node): Likewise for field "insn".
11574         (dump_minipool): Likewise for param "scan".
11575         (create_fix_barrier): Likewise for local "from".  Strengthen local
11576         "label" from rtx to rtx_code_label *.
11577         (push_minipool_barrier): Strengthen param "insn" from rtx to
11578         rtx_insn *.
11579         (push_minipool_fix): Likewise.
11580         (note_invalid_constants): Likewise.
11581         (thumb2_reorg): Likewise for local "insn".
11582         (arm_reorg): Likewise.
11583         (thumb2_final_prescan_insn): Likewise for param
11584         "insn" and local "first_insn".
11585         (arm_final_prescan_insn): Likewise for param "insn" and locals
11586         "start_insn", "this_insn".
11587         (arm_debugger_arg_offset): Likewise for param "insn".
11588         (thumb1_emit_multi_reg_push): Likewise for return type and local
11589         "insn".
11590         (thumb1_final_prescan_insn): Likewise for param "insn".
11591         (thumb_far_jump_used_p): Likewise for local "insn".
11592         (thumb1_expand_prologue): Likewise.
11593         (arm_expand_epilogue_apcs_frame): Likewise.
11594         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
11595         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
11596         from rtx to rtx_code_label *.
11597         (arm_split_atomic_op): Likewise for local "label".
11598         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
11599
11600 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11601
11602         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11603         first param from rtx to rtx_insn *.
11604         (arc_verify_short): Likewise.
11605         (arc_short_long): Likewise.
11606         (arc_need_delay): Likewise.
11607
11608         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11609         "target_insn".
11610         (arc_ccfsm_advance): Likewise for param "insn" and locals
11611         "start_insn", "this_insn".
11612         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11613         (arc_ccfsm_post_advance): Likewise for param "insn".
11614         (arc_next_active_insn): Likewise for return type and param "insn".
11615         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
11616         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11617         (output_short_suffix): Likewise for local "insn".
11618         (arc_final_prescan_insn): Likewise for param "insn".  Remove
11619         now-redundant checked cast.
11620         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11621         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11622         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
11623         for use where lc_set became an insn.
11624         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11625         rtx to rtx_insn *.
11626         (arc_get_insn_variants): Likewise for local "prev".
11627         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11628         "next".
11629         (arc_predicate_delay_insns): Likewise for local "insn".
11630         (arc_pad_return): Likewise for local "prev".  For now, add a
11631         checked cast when extracting the insn from "final_sequence".
11632         (arc_short_long): Likewise for param "insn".
11633         (arc_need_delay): Likewise for param "insn" and local "next".
11634         (arc_label_align): Likewise for locals "prev", "next".
11635
11636 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11637
11638         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11639         "insn" from rtx to rtx_insn *.
11640         (alpha_gp_save_rtx): Likewise for local "seq".
11641         (alpha_instantiate_decls): Likewise for local "top".
11642         (get_some_local_dynamic_name): Likewise for local "insn".
11643         (alpha_does_function_need_gp): Likewise.
11644         (set_frame_related_p): Likewise for return type and for locals
11645         "seq" and "insn".
11646         (emit_frame_store_1): Likewise for local "insn".
11647         (alpha_expand_prologue): Likewise for locals "insn", "seq".
11648         (alpha_end_function): Likewise for local "insn".
11649         (alpha_output_mi_thunk_osf): Likewise.
11650         (alphaev4_insn_pipe): Likewise for param "insn".
11651         (alphaev5_insn_pipe): Likewise.
11652         (alphaev4_next_group): Likewise for return type and param 1
11653         "insn".
11654         (alphaev5_next_group): Likewise.
11655         (alpha_align_insns_1): Likewise for return type and param 1 of
11656         callback param "next_group", and for locals "i", "next", "prev",
11657         "where", "where2", "insn".
11658
11659 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
11660
11661         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11662         rather than modifying the stmt.
11663
11664 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11665
11666         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11667         cgraph_state conversion.
11668
11669 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11670
11671         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11672         Strengthen local "insns" from rtx to rtx_insn *.
11673         (aarch64_set_frame_expr): Likewise for local "insn".
11674         (aarch64_save_or_restore_fprs): Likewise.
11675         (aarch64_save_or_restore_callee_save_registers): Likewise.
11676         (aarch64_expand_prologue): Likewise.
11677         (aarch64_expand_epilogue): Likewise.
11678         (aarch64_output_mi_thunk): Likewise.
11679         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11680         "label2" from rtx to rtx_code_label *.
11681         (aarch64_split_atomic_op): Likewise for local "label".
11682
11683 2014-08-25  Martin Liska  <mliska@suse.cz>
11684
11685         * cgraph.h (symtab_node):
11686         (bool needed_p (void)): created from decide_is_symbol_needed
11687         (bool referred_to_p (void)): created from referred_to_p
11688         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11689         * cgraph.h (cgraph_node):
11690         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11691         (void expand (void)): created from expand_function
11692         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11693         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11694         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11695         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11696         * cgraph.h (varpool_node):
11697         (static void add (tree decl): created from varpool_add_new_variable
11698         * cgraph.h (cgraph_edge):
11699         void remove (void);
11700         (void remove_caller (void)): created from cgraph_edge_remove_caller
11701         (void remove_callee (void)): created from cgraph_edge_remove_callee
11702         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
11703           created from cgraph_set_call_stmt
11704         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
11705         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
11706         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
11707           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
11708         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
11709           created from cgraph_speculative_call_info
11710         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
11711           int freq_scale, bool update_original)): created from cgraph_clone_edge
11712         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
11713         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
11714         (bool recursive_p (void)): created from cgraph_edge_recursive_p
11715         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11716         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11717         (static void rebuild_references (void)): created from cgraph_rebuild_references
11718         * cgraph.h (symbol_table):
11719         (create_reference): renamed from add_reference
11720         (maybe_create_reference): renamed from maybe_add_reference
11721         (void register_symbol (symtab_node *node)): new function
11722         (void clear_asm_symbols (void)): new function
11723         (void unregister (symtab_node *node)): new function
11724         (void release_symbol (cgraph_node *node, int uid)): new function
11725         (cgraph_node * allocate_cgraph_symbol (void)): new function
11726         (void initialize (void)): created from cgraph_init
11727         (symtab_node *first_symbol (void)):new function
11728         (asm_node *first_asm_symbol (void)):new function
11729         (symtab_node *first_defined_symbol (void)):new function
11730         (varpool_node *first_variable (void)):new function
11731         (varpool_node *next_variable (varpool_node *node)):new function
11732         (varpool_node *first_static_initializer (void)):new function
11733         (varpool_node *next_static_initializer (varpool_node *node)):new function
11734         (varpool_node *first_defined_variable (void)):new function
11735         (varpool_node *next_defined_variable (varpool_node *node)):new function
11736         (cgraph_node *first_defined_function (void)):new function
11737         (cgraph_node *next_defined_function (cgraph_node *node)):new function
11738         (cgraph_node *first_function (void)):new function
11739         (cgraph_node *next_function (cgraph_node *node)):new function
11740         (cgraph_node *first_function_with_gimple_body (void)):new function
11741         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11742         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11743           created from symtab_remove_unreachable_nodes
11744         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
11745         (void process_new_functions (void)): created from cgraph_process_new_functions
11746         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
11747         (bool output_variables (void)): created from varpool_node::output_variables
11748         (void output_asm_statements (void)): created from output_asm_statements
11749         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
11750         (void compile (void)): created from compile
11751         (void output_weakrefs (void)): created from output_weakrefs
11752         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
11753         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
11754           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
11755         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
11756         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
11757           created from cgraph_next_function_with_gimple_body
11758         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
11759           created from cgraph_remove_edge_removal_hook
11760         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
11761           created from cgraph_add_node_removal_hook
11762         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
11763           created from cgraph_remove_node_removal_hook
11764         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
11765           created from varpool_add_node_removal_hook
11766         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
11767           created from varpool_remove_node_removal_hook
11768         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
11769           created from cgraph_add_function_insertion_hook
11770         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
11771           created from cgraph_remove_function_insertion_hook
11772         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
11773           created from varpool_add_variable_insertion_hook
11774         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
11775           created from varpool_remove_variable_insertion_hook
11776         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
11777           created from cgraph_add_edge_duplication_hook
11778         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
11779           created from cgraph_remove_edge_duplication_hook
11780         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
11781           created from cgraph_add_node_duplication_hook
11782         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
11783           created from cgraph_remove_node_duplication_hook
11784         (void call_edge_removal_hooks (cgraph_edge *e)):
11785           created from cgraph_call_edge_removal_hooks
11786         (void call_cgraph_insertion_hooks (cgraph_node *node)):
11787           created from call_function_insertion_hooks
11788         (void call_cgraph_removal_hooks (cgraph_node *node)):
11789           created from cgraph_call_node_removal_hooks
11790         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
11791           created from cgraph_node::call_duplication_hooks
11792         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
11793           created from cgraph_call_edge_duplication_hooks
11794         (void call_varpool_removal_hooks (varpool_node *node)):
11795           created from varpool_call_node_removal_hooks
11796         (void call_varpool_insertion_hooks (varpool_node *node)):
11797           created from varpool_call_variable_insertion_hooks
11798         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
11799           created from insert_to_assembler_name_hash
11800         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
11801           created from unlink_from_assembler_name_hash
11802         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
11803           created from symtab_prevail_in_asm_name_hash
11804         (void symtab_initialize_asm_name_hash (void)):
11805           created from symtab_initialize_asm_name_hash
11806         (void change_decl_assembler_name (tree decl, tree name)):
11807           created from change_decl_assembler_name
11808         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
11809         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
11810           created from decl_assembler_name_hash
11811         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
11812           created from decl_assembler_name_equal
11813         (static hashval_t hash_node_by_assembler_name (const void *p)):
11814           created from hash_node_by_assembler_name
11815         (static int eq_assembler_name (const void *p1, const void *p2)):
11816           created from eq_assembler_name
11817
11818 2014-08-25  Marek Polacek  <polacek@redhat.com>
11819
11820         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
11821
11822 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
11823
11824         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
11825         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
11826         SWI1248_AVX512BW mode iterator.
11827
11828 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
11829
11830         PR target/62111
11831         * config/sh/predicates.md (general_extend_operand): Disable
11832         TRUNCATE before reload completes.
11833
11834 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
11835
11836         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
11837
11838 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
11839
11840         PR target/61996
11841         * config/sh/sh.opt (musermode): Allow negative form.
11842         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
11843         targets that don't support it.
11844         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
11845         Document -mno-usermode option.
11846
11847 2014-08-24  Kito Cheng  <kito@0xlab.org>
11848
11849         * system.h (CALLER_SAVE_PROFITABLE): Poison.
11850         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
11851         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
11852         * doc/tm.texi: Regenerate.
11853
11854 2014-08-24  Kito Cheng  <kito@0xlab.org>
11855
11856         * ira.c: Fix typo in comment.
11857
11858 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
11859
11860         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
11861         Deprecate c++1y. Change language to reflect greater confidence in C++14.
11862
11863 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
11864
11865         PR target/62038
11866         * config/pa/pa.c (pa_output_function_epilogue): Don't set
11867         last_address when the current function is a thunk.
11868         (pa_asm_output_mi_thunk): When we don't have named sections or they
11869         are not being used, check that thunk can reach the stub table with a
11870         short branch.
11871
11872 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11873
11874         * web.c (union_match_dups): Strengthen param "insn" from rtx to
11875         rtx_insn *.
11876         (pass_web::execute): Likewise for local "insn".
11877
11878 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11879
11880         * var-tracking.c (struct micro_operation_def): Strengthen field
11881         "insn" from rtx to rtx_insn *.
11882         (struct emit_note_data_def): Likewise.
11883         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
11884         (vt_stack_adjustments): Likewise for local "insn".
11885         (adjust_insn): Likewise for param "insn".
11886         (val_store): Likewise.
11887         (val_resolve): Likewise.
11888         (struct count_use_info): Likewise for field "insn".
11889         (log_op_type): Likewise for param "insn".
11890         (reverse_op): Likewise.
11891         (prepare_call_arguments): Likewise.
11892         (add_with_sets):  The initial param takes an insn, but we can't
11893         yet strengthen it from rtx to rtx_insn * since it's used as a
11894         cselib_record_sets_hook callback.  For now rename initial param
11895         from "insn" to "uncast_insn", and introduce a local "insn" of
11896         the stronger rtx_insn * type, with a checked cast.
11897         (compute_bb_dataflow): Strengthen local "insn" from rtx to
11898         rtx_insn *.
11899         (emit_note_insn_var_location): Likewise.
11900         (emit_notes_for_changes): Likewise.
11901         (emit_notes_for_differences): Likewise.
11902         (next_non_note_insn_var_location): Likewise for return type and
11903         for param "insn".
11904         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
11905         (vt_initialize): Likewise for local "insn".
11906         (delete_debug_insns): Likewise for locals "insn" and "next".
11907
11908 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11909
11910         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
11911         rtx_insn *.
11912         (mark_constant_pool): Likewise for local "insn".
11913
11914 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11915
11916         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
11917         rtx to rtx_insn *.
11918         (dead_debug_promote_uses): Likewise.
11919         (dead_debug_insert_temp): Likewise.
11920
11921 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
11922
11923         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
11924         from const_rtx to const rtx_insn *.
11925         (store_killed_after): Likewise.  Strengthen locals "last", "act"
11926         from rtx to rtx_insn *.
11927         (store_killed_before): Strengthen param "insn" from const_rtx to
11928         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
11929         (find_moveable_store): Strengthen param "insn" from rtx to
11930         rtx_insn *.
11931         (compute_store_table): Likewise for local "insn".
11932         (insert_insn_start_basic_block): Likewise for param "insn" and
11933         locals "prev", "before", "insn".
11934         (insert_store): For now, add a checked cast to rtx_insn * on the
11935         result of gen_move_insn.
11936         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
11937         to rtx_insn *.
11938         (replace_store_insn): Likewise.  For now, add a checked cast to
11939         rtx_insn * on the result of gen_move_insn.
11940
11941 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11942
11943         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
11944         rtx_insn *.
11945         (expand_sjlj_dispatch_table): Likewise.
11946
11947 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11948
11949         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
11950         "insn" from rtx to rtx_insn *.
11951
11952 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11953
11954         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
11955         "insn" from rtx to rtx_insn *.
11956         (dup_block_and_redirect): Likewise for param 3 "before".
11957
11958         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
11959         from rtx to rtx_insn *.
11960         (move_insn_for_shrink_wrap): Likewise.
11961         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
11962         (dup_block_and_redirect): Likewise for param "before" and local
11963         "insn".
11964         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
11965         "end".
11966         (convert_to_simple_return): Likewise for local "start".
11967
11968         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
11969         Strengthen local "insn" from rtx to rtx_insn *, for use when
11970         invoking requires_stack_frame_p.
11971
11972 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11973
11974         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
11975         rtx_insn *.
11976         (speculate_expr): Likewise for locals "orig_insn_rtx",
11977         "spec_insn_rtx".
11978         (eq_transformed_insns): Likewise for locals "i1", "i2".
11979         (check_for_new_jump): Likewise for return type and local "end".
11980         (find_new_jump): Likewise for return type and local "jump".
11981         (sel_split_edge): Likewise for local "jump".
11982         (sel_create_recovery_block): Likewise.
11983         (sel_redirect_edge_and_branch_force): Likewise.
11984         (sel_redirect_edge_and_branch): Likewise.
11985
11986 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11987
11988         * sel-sched.c (substitute_reg_in_expr): Strengthen local
11989         "new_insn" from rtx to rtx_insn *.
11990         (create_insn_rtx_with_rhs): Likewise for return type and for local
11991         "insn_rtx".
11992         (create_insn_rtx_with_lhs): Likewise.
11993         (create_speculation_check): Likewise for local "insn_rtx".
11994         (implicit_clobber_conflict_p): Likewise for local "insn".
11995         (get_expr_cost): Likewise.
11996         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
11997         (move_cond_jump): Likewise for locals "next", "prev", "link",
11998         "head", "from", "to".
11999
12000 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12001
12002         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12003         "next" from rtx to rtx_insn *.
12004         (find_conditional_protection): Likewise for local "next".
12005         (is_conditionally_protected): Likewise for local "insn1".
12006         (is_pfree): Likewise for locals "insn1", "insn2".
12007
12008 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12009
12010         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12011         from rtx to rtx_insn *.
12012
12013         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12014         locals "insn1", "insn2" from rtx to rtx_insn *.
12015         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12016         locals "insn", "prev", "last_jump", "next_tail".
12017         (schedule_ebb): Likewise for params "head", "tail".
12018         (schedule_ebbs): Likewise for locals "tail", "head".
12019
12020         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12021         to rtx_insn on "last_insn" in one of the invocations of
12022         schedule_ebb.
12023
12024 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12025
12026         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12027         "elem", "insn" from rtx to rtx_insn *.
12028         (change_spec_dep_to_hard): Likewise.
12029         (get_back_and_forw_lists): Likewise for local "con".
12030         (sd_add_dep): Likewise for locals "elem", "insn".
12031         (sd_resolve_dep): Likewise for locals "pro", "con".
12032         (sd_unresolve_dep): Likewise.
12033         (sd_delete_dep): Likewise.
12034         (chain_to_prev_insn): Likewise for local "pro".
12035         (find_inc): Likewise for locals "pro", "con".
12036
12037 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12038
12039         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12040         to rtx_insn *.
12041         (reg_set_between_p): Strengthen local "insn" from const_rtx to
12042         const rtx_insn *.
12043         (modified_between_p): Strengthen local "insn" from rtx to
12044         rtx_insn *.
12045         (remove_reg_equal_equiv_notes_for_regno): Likewise.
12046         (keep_with_call_p): Strengthen local "i2" from const_rtx to
12047         const rtx_insn *.
12048
12049 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12050
12051         * resource.c (next_insn_no_annul): Strengthen local "next" from
12052         rtx to rtx_insn *.
12053         (mark_referenced_resources): Likewise for local "insn".
12054
12055 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12056
12057         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12058         to rtx_insn *.
12059         (find_reloads): Likewise for param 1.
12060         (subst_reloads): Likewise for sole param.
12061         (find_equiv_reg): Likwise for param 2.
12062         (regno_clobbered_p): Likwise for param 2.
12063         (reload): Likewise for param 1.
12064
12065         * caller-save.c (save_call_clobbered_regs): Strengthen local
12066         "insn" from rtx to rtx_insn *.
12067         (insert_one_insn): Likewise for local "insn".
12068
12069         * reload.c (this_insn): Likewise for this global.
12070         (find_reloads): Likewise for param "insn".
12071         (find_reloads_toplev): Likewise.
12072         (find_reloads_address): Likewise.
12073         (subst_reg_equivs): Likewise.
12074         (update_auto_inc_notes): Likewise.
12075         (find_reloads_address_1): Likewise.
12076         (find_reloads_subreg_address): Likewise.
12077         (subst_reloads): Likewise.
12078         (find_equiv_reg): Likewise, also for local "p".
12079         (regno_clobbered_p): Likewise for param "insn".
12080
12081         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12082         array.
12083         (spill_reg_store): Likewise for the elements of this array.
12084         (remove_init_insns): Likewise for local "equiv_insn".
12085         (will_delete_init_insn_p): Likewise for param "insn".
12086         (reload): Likewise for param ""first" and local "insn".
12087         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12088         rtx_insn *.
12089         (calculate_elim_costs_all_insns): Likewise.
12090         (delete_caller_save_insns): Likewise.
12091         (spill_failure): Likewise for param "insn".
12092         (delete_dead_insn): Likewise.
12093         (set_label_offsets): Likewise.
12094         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12095         "prev_insn".
12096         (elimination_costs_in_insn): Likewise for param "insn".
12097         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12098         when referring to an insn.
12099         (set_initial_label_offsets): Likewise.
12100         (set_offsets_for_label): Strengthen param "insn" from rtx to
12101         rtx_insn *.
12102         (init_eliminable_invariants): Likewise for param "first" and local
12103         "insn".
12104         (fixup_eh_region_note): Likewise for param "insn".
12105         (reload_as_needed): Likewise for locals "prev", "insn",
12106         "old_next", "old_prev", "next".
12107         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12108         "last".
12109         (reload_inheritance_insn): Strengthen elements of this array from
12110         rtx to rtx_insn *.
12111         (failed_reload): Likewise for param "insn".
12112         (choose_reload_regs): Likewise for local "insn".  Replace use of
12113         NULL_RTX with NULL when referring to an insn.
12114         (input_reload_insns): Strengthen elements of this array from rtx
12115         to rtx_insn *.
12116         (other_input_address_reload_insns): Likewise for this global.
12117         (other_input_reload_insns): Likewise for this global.
12118         (input_address_reload_insns): Likwise for the elements of this
12119         array.
12120         (inpaddr_address_reload_insns): Likwise for the elements of this
12121         array.
12122         (output_reload_insns): Likewise for the elements of this array.
12123         (output_address_reload_insns): Likewise for the elements of this
12124         array.
12125         (outaddr_address_reload_insns): Likewise for the elements of this
12126         array.
12127         (operand_reload_insns): Likewise for this global.
12128         (other_operand_reload_insns): Likewise for this global.
12129         (other_output_reload_insns): Likewise for the elements of this
12130         array.
12131         (new_spill_reg_store): Likewise for the elements of this
12132         array.
12133         (emit_input_reload_insns): Likewise for locals "insn", "temp".
12134         Strengthen local "where" from rtx * to rtx_insn **.
12135         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12136         from rtx to rtx_insn *.
12137         (do_input_reload): Likewise for local "insn".
12138         (do_output_reload): Likewise for local "insn".
12139         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12140         (emit_insn_if_valid_for_reload): Likewise for return type and local
12141         "last".  Add checked cast to rtx_insn when returning "insn" since
12142         this has been through emit_insn.
12143         (gen_reload): Strengthen return type and locals "last", "insn", "set"
12144         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
12145         returning "insn" since it's been through
12146         emit_insn_if_valid_for_reload at this point.
12147         (delete_output_reload): Strengthen param "insn" and locals
12148         "output_reload_insn", "i2" from rtx to rtx_insn *.
12149         (delete_address_reloads): Likewise for params "dead_insn",
12150         "current_insn" and locals "prev", "next".
12151         (delete_address_reloads_1): Likewise for params "dead_insn",
12152         "current_insn" and locals "prev", "i2".
12153         (inc_for_reload): Likewise for locals "last", "add_insn".
12154         (add_auto_inc_notes): Strengthen param "insn" from rtx to
12155         rtx_insn *.
12156
12157         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12158         param of this duplicate of the prototype from reload.h
12159
12160 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12161
12162         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12163         rtx to rtx_insn *.
12164         (regstat_bb_compute_calls_crossed): Likewise.
12165
12166 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12167
12168         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12169         to rtx_insn *.
12170         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12171         with an insn.
12172         (regrename_analyze): Strengthen local "insn" from rtx to
12173         rtx_insn *.
12174         (scan_rtx_reg): Likewise for param "insn".
12175         (scan_rtx_address): Likewise.
12176         (scan_rtx): Likewise.
12177         (restore_operands): Likewise.
12178         (record_out_operands): Likewise.
12179         (build_def_use): Likewise for local "insn".  Replace use of
12180         NULL_RTX with NULL when dealing with an insn.
12181
12182 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12183
12184         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12185         * reginfo.c (reg_scan): Likewise, also for local "insn".
12186         (reg_scan_mark_refs): Likewise for param "insn".
12187         (init_subregs_of_mode): Likewise for local "insn".
12188
12189 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12190
12191         * regcprop.c (struct queued_debug_insn_change): Strengthen field
12192         "insn" from rtx to rtx_insn *.
12193         (replace_oldest_value_reg): Likewise for param "insn".
12194         (replace_oldest_value_addr): Likewise.
12195         (replace_oldest_value_mem): Likewise.
12196         (apply_debug_insn_changes): Likewise for local "last_insn".
12197         (copyprop_hardreg_forward_1): Likewise for local "insn".
12198
12199 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12200
12201         * reg-stack.c (next_flags_user): Strengthen return type and param
12202         "insn" from rtx to rtx_insn *.
12203         (straighten_stack): Likewise for param "insn".
12204         (check_asm_stack_operands): Likewise.
12205         (remove_regno_note): Likewise.
12206         (emit_pop_insn): Likewise for return type, param "insn", local
12207         "pop_insn".
12208         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
12209         "limit" from rtx to rtx_insn *.
12210         (swap_to_top): Likewise for param "insn".
12211         (move_for_stack_reg): Likewise.
12212         (move_nan_for_stack_reg): Likewise.
12213         (swap_rtx_condition): Likewise.
12214         (compare_for_stack_reg): Likewise.
12215         (subst_all_stack_regs_in_debug_insn): Likewise.
12216         (subst_stack_regs_pat): Likewise, and local "insn2".
12217         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
12218         rtx_insn *.
12219         (subst_stack_regs): Likewise.
12220         (change_stack): Likewise.
12221         (convert_regs_1): Likewise for locals "insn", "next".
12222
12223 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12224
12225         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
12226         rtx_insn *.
12227         (combine_set_extension): Likewise for param "curr_insn".
12228         (transform_ifelse): Likewise for param "def_insn".
12229         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
12230         from vec<rtx> * to vec<rtx_insn *> *.
12231         (is_cond_copy_insn): Likewise for param "insn".
12232         (struct ext_state): Strengthen the four vec fields from vec<rtx>
12233         to vec<rtx_insn *>.
12234         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
12235         local "def_insn" from rtx to rtx_insn *.
12236         (get_sub_rtx): Likewise for param "def_insn".
12237         (merge_def_and_ext): Likewise.
12238         (combine_reaching_defs): Likewise.
12239         (add_removable_extension): Likewise for param "insn".
12240         (find_removable_extensions): Likewise for local "insn".
12241         (find_and_remove_re): Likewise for locals "curr_insn" and
12242         "def_insn".  Strengthen locals "reinsn_del_list" and
12243         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
12244
12245 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12246
12247         * recog.c (split_insn): Strengthen param "insn" and locals
12248         "first", "last" from rtx to rtx_insn *.
12249         (split_all_insns): Likewise for locals "insn", "next".
12250         (split_all_insns_noflow): Likewise.
12251
12252 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12253
12254         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12255         const rtx_insn *.
12256         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12257         (debug_rtx_find): Likewise for param 1 "x".
12258
12259         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12260         const_rtx to const rtx_insn *.  Likewise for local "insn".
12261         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12262         (debug_rtx_find): Likewise for param 1 "x".
12263         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12264         from const_rtx to const rtx_insn * within the appropriate cases of
12265         the switch statement.
12266
12267         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12268         Strengthen local "insns" from rtx to rtx_insn * since this is
12269         passed to a call to debug_rtx_list.
12270
12271 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12272
12273         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12274         to rtx_insn *.
12275
12276         * function.c (stack_protect_epilogue): Add checked cast to
12277         rtx_insn for now when invoking predict_insn_def.
12278
12279         * predict.c (predict_insn): Strengthen param "insn" from rtx to
12280         rtx_insn *.
12281         (predict_insn_def): Likewise.
12282         (rtl_predict_edge): Likewise for local "last_insn".
12283         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12284         const rtx_insn *.
12285         (combine_predictions_for_insn): Strengthen param "insn" from rtx
12286         to rtx_insn *.
12287         (bb_estimate_probability_locally): Likewise for local "last_insn".
12288         (expensive_function_p): Likewise for local "insn".
12289
12290         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12291         local "jmp", since this is used when invoking predict_insn_def.
12292
12293 2014-08-22  Marek Polacek  <polacek@redhat.com>
12294
12295         PR c++/62199
12296         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12297
12298 2014-08-22  Marek Polacek  <polacek@redhat.com>
12299
12300         PR c/61271
12301         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12302         a comparison in parens.
12303         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12304         in parens.
12305
12306 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12307
12308         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12309         rtx_insn *.
12310
12311         * cprop.c (fis_get_condition): Likewise.
12312
12313         * postreload.c (reload_cse_regs): Likewise for param "first".
12314         (reload_cse_simplify): Likewise for param "insn".
12315         (reload_cse_regs_1): Likewise for local "insn".
12316         (reload_cse_simplify_set): Likewise for param "insn".
12317         (reload_cse_simplify_operands): Likewise.
12318         (struct reg_use): Likewise for field "insn".
12319         (reload_combine_purge_insn_uses): Likewise for param "insn".
12320         (fixup_debug_insns): Likewise for params "from", "to" and local
12321         "insn".
12322         (try_replace_in_use): Likewise for local "use_insn".
12323         (reload_combine_recognize_const_pattern): Likewise for param
12324         "insn" and locals "add_moved_after_insn", "use_insn".
12325         (reload_combine_recognize_pattern): Likewise for param "insn" and
12326         local "prev".
12327         (reload_combine): Likewise for locals "insn", "prev".
12328         (reload_combine_note_use): Likewise for param "insn".
12329         (move2add_use_add2_insn): Likewise.
12330         (move2add_use_add3_insn): Likewise.
12331         (reload_cse_move2add): Likewise, also for local "next".
12332         (move2add_note_store): Likewise for local "insn".
12333
12334 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12335
12336         * postreload-gcse.c (struct occr): Strengthen field "insn" from
12337         rtx to rtx_insn *.
12338         (struct unoccr): Likewise.
12339         (struct modifies_mem): Likewise.
12340         (alloc_mem): Likewise for local "insn".
12341         (insert_expr_in_table): Likewise for param "insn".
12342         (dump_expr_hash_table_entry): Likewise for local "insn".
12343         (oprs_unchanged_p): Likewise for param "insn".
12344         (load_killed_in_block_p): Likewise for local "setter".
12345         (record_last_reg_set_info): Likewise for param "insn".
12346         (record_last_reg_set_info_regno): Likewise.
12347         (record_last_mem_set_info): Likewise.
12348         (record_last_set_info): Likewise for local "last_set_insn".
12349         (record_opr_changes): Likewise for param "insn".
12350         (hash_scan_set): Likewise.
12351         (compute_hash_table): Likewise for local "insn".
12352         (get_avail_load_store_reg): Likewise for param "insn".
12353         (eliminate_partially_redundant_load): Likewise, also for locals
12354         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
12355         RTX for insns.
12356         (eliminate_partially_redundant_loads): Likewise for local "insn".
12357
12358 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12359
12360         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
12361         rtx to rtx_insn *.
12362         (expand_binop): Likewise for locals "entry_last", "last", "insns"
12363         (expand_twoval_unop): Likewise for locals entry_last", "last".
12364         (expand_twoval_binop): Likewise.
12365         (expand_twoval_binop_libfunc): Likewise for local "insns".
12366         (widen_leading): Likewise for local "last".
12367         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
12368         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
12369         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
12370         (expand_parity): Likewise for locals "last" and "seq".
12371         (expand_ffs): Likewise for local "seq".  Strengthen local
12372         "nonzero_label" from rtx to rtx_code_label *.
12373         (expand_absneg_bit): Strengthen local "insns" from rtx to
12374         rtx_insn *.
12375         (expand_unop_direct): Likewise for local "last".
12376         (expand_unop): Likewise for locals "last", "insns".
12377         (expand_abs_nojump): Likewise for local "last".
12378         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
12379         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
12380         rtx_insn *.
12381         (expand_copysign_absneg): Strengthen local "label" from rtx to
12382         rtx_code_label *.
12383         (expand_copysign_bit): Strengthen local "insns" from rtx to
12384         rtx_insn *.
12385         (struct no_conflict_data): Likewise for fields "first", "insn".
12386         (emit_libcall_block_1): Likewise for param "insns" and locals
12387         "next", "last", "insn".
12388         (emit_libcall_block): For now, add a checked cast to rtx_insn *
12389         on "insns" when invoking emit_libcall_block_1.  Ultimately we
12390         want to strengthen insns itself.
12391         (prepare_cmp_insn): Strengthen local "last" from rtx to
12392         rtx_insn *.
12393         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
12394         (prepare_float_lib_cmp): Likewise for local "insns".
12395         (emit_conditional_move): Likewise for local "last".
12396         (emit_conditional_add): Likewise.
12397         (have_sub2_insn): Likewise for local "seq".
12398         (expand_float): Likewise for local "insns".  Strengthen locals
12399         "label", "neglabel" from rtx to rtx_code_label *.
12400         (expand_fix): Likewise for locals "last", "insn", "insns" (to
12401         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
12402         (expand_fixed_convert): Likewise for local "insns" (to
12403         rtx_insn *).
12404         (expand_sfix_optab): Likewise for local "last".
12405         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
12406         to rtx_code_label *.
12407         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
12408         from rtx to rtx_insn *.
12409         (expand_atomic_fetch_op): Likewise for local "insn".
12410         (maybe_legitimize_operand_same_code): Likewise for local "last".
12411         (maybe_legitimize_operands): Likewise.
12412
12413 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12414
12415         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
12416         "insn" from rtx to rtx_insn *.
12417         (ps_rtl_insn): Likewise for return type.
12418         (doloop_register_get): Likewise for params "head", "tail" and
12419         locals "insn", "first_insn_not_to_check".
12420         (schedule_reg_move): Likewise for local "this_insn".
12421         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
12422         of gen_move_insn for now.
12423         (reset_sched_times): Strengthen local "insn" from rtx to
12424         rtx_insn *.
12425         (permute_partial_schedule): Likewise.
12426         (duplicate_insns_of_cycles): Likewise for local "u_insn".
12427         (dump_insn_location): Likewise for param "insn".
12428         (loop_canon_p): Likewise for local "insn".
12429         (sms_schedule): Likewise.
12430         (print_partial_schedule): Likewise.
12431         (ps_has_conflicts): Likewise.
12432
12433 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12434
12435         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
12436         "tailp" from rtx * to rtx_insn **.
12437
12438         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
12439         from rtx to rtx_insn *.
12440         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
12441         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
12442         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
12443         rtx to rtx_insn *.
12444         * modulo-sched.c (const_iteration_count): Strengthen return type
12445         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
12446         use of NULL_RTX with NULL when working with insns.
12447         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
12448         to rtx_insn *.
12449         (sms_schedule): Likewise.
12450         * sched-rgn.c (init_ready_list): Likewise, also for locals
12451         "src_head" and "src_next_tail".
12452         (compute_block_dependences): Likewise.
12453         (free_block_dependencies): Likewise.
12454         (debug_rgn_dependencies): Likewise.
12455         (free_rgn_deps): Likewise.
12456         (compute_priorities): Likewise.
12457         (schedule_region): Likewise.
12458         * sel-sched.c (find_ebb_boundaries): Likewise.
12459
12460         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
12461         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
12462
12463 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12464
12465         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
12466         from rtx to rtx_insn *.
12467         (new_seginfo): Likewise for param "insn".
12468         (create_pre_exit): Likewise for locals "last_insn",
12469         "before_return_copy", "return_copy".
12470         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
12471         "mode_set".
12472
12473 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12474
12475         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
12476         from rtx to rtx_insn *.
12477         (lra_push_insn): Likewise for 1st param.
12478         (lra_push_insn_and_update_insn_regno_info): Likewise.
12479         (lra_pop_insn): Likewise for return type.
12480         (lra_invalidate_insn_data): Likewise for 1st param.
12481         (lra_set_insn_deleted): Likewise.
12482         (lra_delete_dead_insn): Likewise.
12483         (lra_process_new_insns): Likewise for first 3 params.
12484         (lra_set_insn_recog_data): Likewise for 1st param.
12485         (lra_update_insn_recog_data): Likewise.
12486         (lra_set_used_insn_alternative): Likewise.
12487         (lra_invalidate_insn_regno_info): Likewise.
12488         (lra_update_insn_regno_info): Likewise.
12489         (lra_former_scratch_operand_p): Likewise.
12490         (lra_eliminate_regs_1): Likewise.
12491         (lra_get_insn_recog_data): Likewise.
12492
12493         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
12494         rtx to rtx_insn *.
12495
12496         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
12497         "mv1" and "mv2".
12498         (substitute_within_insn): New.
12499         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
12500         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
12501         Replace call to "substitute" with call to substitute_within_insn.
12502
12503         * lra-constraints.c (curr_insn): Strengthen from rtx to
12504         rtx_insn *.
12505         (get_equiv_with_elimination): Likewise for param "insn".
12506         (match_reload): Strengthen params "before" and "after" from rtx *
12507         to rtx_insn **.
12508         (emit_spill_move): Likewise for return type.  Add a checked cast
12509         to rtx_insn * on result of gen_move_insn for now.
12510         (check_and_process_move): Likewise for local "before".  Replace
12511         NULL_RTX with NULL when referring to insns.
12512         (process_addr_reg): Strengthen params "before" and "after" from
12513         rtx * to rtx_insn **.
12514         (insert_move_for_subreg): Likewise.
12515         (simplify_operand_subreg): Strengthen locals "before" and "after"
12516         from rtx to rtx_insn *.
12517         (process_address_1): Strengthen params "before" and "after" from
12518         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
12519         rtx to rtx_insn *.
12520         (process_address): Strengthen params "before" and "after" from
12521         rtx * to rtx_insn **.
12522         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
12523         (curr_insn_transform): Strengthen locals "before" and "after"
12524         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
12525         to insns.
12526         (loc_equivalence_callback): Update cast of "data", changing
12527         resulting type from rtx to rtx_insn *.
12528         (substitute_pseudo_within_insn): New.
12529         (inherit_reload_reg): Strengthen param "insn" from rtx to
12530         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
12531         NULL when referring to insns.  Add a checked cast to rtx_insn *
12532         when using usage_insn to invoke lra_update_insn_regno_info.
12533         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
12534         likewise for locals "restore", "save".  Add checked casts to
12535         rtx_insn * when using usage_insn to invoke
12536         lra_update_insn_regno_info and lra_process_new_insns.  Replace
12537         NULL_RTX with NULL when referring to insns.
12538         (split_if_necessary): Strengthen param "insn" from rtx to
12539         rtx_insn *.
12540         (update_ebb_live_info): Likewise for params "head", "tail" and local
12541         "prev_insn".
12542         (get_last_insertion_point): Likewise for return type and local "insn".
12543         (get_live_on_other_edges): Likewise for local "last".
12544         (inherit_in_ebb): Likewise for params "head", "tail" and locals
12545         "prev_insn", "next_insn", "restore".
12546         (remove_inheritance_pseudos): Likewise for local "prev_insn".
12547         (undo_optional_reloads): Likewise for local "insn".
12548
12549         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
12550         "insn".
12551         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
12552         insns.
12553         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
12554         rtx_insn *.
12555         (spill_pseudos): Likewise for local "insn".
12556         (init_elimination): Likewise.
12557         (process_insn_for_elimination): Likewise for param "insn".
12558
12559         * lra-lives.c (curr_insn): Likewise.;
12560
12561         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
12562         (remove_pseudos): Likewise for param "insn".
12563         (spill_pseudos): Likewise for local "insn".
12564         (lra_final_code_change): Likewise for locals "insn", "curr".
12565
12566         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
12567         (lra_set_insn_deleted): Likewise.
12568         (lra_delete_dead_insn): Likewise, and for local "prev".
12569         (new_insn_reg): Likewise for param "insn".
12570         (lra_set_insn_recog_data): Likewise.
12571         (lra_update_insn_recog_data): Likewise.
12572         (lra_set_used_insn_alternative): Likewise.
12573         (get_insn_freq): Likewise.
12574         (invalidate_insn_data_regno_info): Likewise.
12575         (lra_invalidate_insn_regno_info): Likewise.
12576         (lra_update_insn_regno_info): Likewise.
12577         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
12578         vec<rtx_insn *>.
12579         (lra_push_insn_1): Strengthen param "insn" from rtx to
12580         rtx_insn *.
12581         (lra_push_insn): Likewise.
12582         (lra_push_insn_and_update_insn_regno_info): Likewise.
12583         (lra_pop_insn): Likewise for return type and local "insn".
12584         (push_insns): Likewise for params "from", "to", and local "insn".
12585         (setup_sp_offset): Likewise for params "from", "last" and locals
12586         "before", "insn".
12587         (lra_process_new_insns): Likewise for params "insn", "before",
12588         "after" and local "last".
12589         (struct sloc): Likewise for field "insn".
12590         (lra_former_scratch_operand_p): Likewise for param "insn".
12591         (remove_scratches): Likewise for locals "insn", "last".
12592         (check_rtl): Likewise for local "insn".
12593         (add_auto_inc_notes): Likewise for param "insn".
12594         (update_inc_notes): Likewise for local "insn".
12595         (lra): Replace NULL_RTX with NULL when referring to insn.
12596
12597 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12598
12599         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12600         to rtx_insn *.
12601         (resolve_reg_notes): Likewise.
12602         (resolve_simple_move): Likewise for return type, param "insn", and
12603         locals "insns", "minsn".
12604         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12605         (resolve_use): Likewise.
12606         (resolve_debug): Likewise.
12607         (find_decomposable_shift_zext): Likewise.
12608         (resolve_shift_zext): Likewise for return type, param "insn", and
12609         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
12610         (decompose_multiword_subregs): Likewise for local "insn",
12611         "orig_insn", "decomposed_shift", "end".
12612
12613 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12614
12615         * basic-block.h (basic_block split_edge_and_insert): Strengthen
12616         param "insns" from rtx to rtx_insn *.
12617
12618         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12619         rtx to rtx_insn *.
12620         (struct iv_to_split): Likewise.
12621         (loop_exit_at_end_p): Likewise for local "insn".
12622         (split_edge_and_insert): Likewise for param "insns".
12623         (compare_and_jump_seq): Likewise for return type, param "cinsn",
12624         and locals "seq", "jump".
12625         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12626         "branch_code"; update invocations of compare_and_jump_seq to
12627         eliminate NULL_RTX in favor of NULL.
12628         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12629         rtx to rtx_insn *.
12630         (reset_debug_uses_in_loop): Likewise.
12631         (analyze_insn_to_expand_var): Likewise for param "insn".
12632         (analyze_iv_to_split_insn): Likewise.
12633         (analyze_insns_in_loop): Likewise for local "insn".
12634         (insert_base_initialization): Likewise for param
12635         "insn" and local "seq".
12636         (split_iv): Likewise for param "insn" and local "seq".
12637         (expand_var_during_unrolling): Likewise for param "insn".
12638         (insert_var_expansion_initialization): Likewise for local "seq".
12639         (combine_var_copies_in_loop_exit): Likewise.
12640         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12641         "insn".
12642         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12643         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12644         "next".
12645
12646 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12647
12648         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12649         rtx_insn *.
12650         (iv_analyze_result): Likewise.
12651         (iv_analyze_expr): Likewise.
12652         (biv_p): Likewise.
12653
12654         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12655         local "def_insn" from rtx to rtx_insn *.
12656         (get_biv_step_1): Likewise for local "insn".
12657         (iv_analyze_expr): Likewise for param "insn".
12658         (iv_analyze_def): Likewise for local "insn".
12659         (iv_analyze_op): Likewise for param "insn".
12660         (iv_analyze): Likewise.
12661         (iv_analyze_result): Likewise.
12662         (biv_p): Likewise.
12663         (suitable_set_for_replacement): Likewise.
12664         (simplify_using_initial_values): Likewise for local "insn".
12665         (iv_number_of_iterations): Likewise for param "insn".
12666         (check_simple_exit): Add checked cast to rtx_insn when invoking
12667         iv_number_of_iterations for now (until get_condition is
12668         strengthened).
12669
12670         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12671         "insn" from rtx to rtx_insn *.
12672         (analyze_insns_in_loop): Likewise for local "insn".
12673
12674 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12675
12676         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12677         to rtx_insn *.
12678         (struct invariant): Likewise.
12679         (hash_invariant_expr_1): Likewise for param "insn".
12680         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12681         (find_exits): Likewise for local "insn".
12682         (create_new_invariant): Likewise for param "insn".
12683         (check_dependencies): Likewise.
12684         (find_invariant_insn): Likewise.
12685         (record_uses): Likewise.
12686         (find_invariants_insn): Likewise.
12687         (find_invariants_bb): Likewise for local "insn".
12688         (get_pressure_class_and_nregs): Likewise for param "insn".
12689         (calculate_loop_reg_pressure): Likewise for local "insn".
12690
12691 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12692
12693         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12694         to rtx_insn *.
12695         (add_test): Likewise for locals "seq", "jump".
12696         (doloop_modify): Likewise for locals "sequence", "jump_insn".
12697
12698 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12699
12700         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
12701         rtx_insn *.
12702         (rebuild_jump_labels_chain): Likewise for param "chain".
12703
12704         * cfgexpand.c (pass_expand::execute): Add checked cast to
12705         rtx_insn * when calling rebuild_jump_labels_chain in region where
12706         we know e->insns.r is non-NULL.
12707
12708         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
12709         rtx_insn *.
12710         (rebuild_jump_labels): Likewise.
12711         (rebuild_jump_labels_chain): Likewise for param "chain".
12712         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
12713         (init_label_info): Likewise for param "f".
12714         (maybe_propagate_label_ref): Likewise for params "jump_insn",
12715         "prev_nonjump_insn".
12716         (mark_all_labels): Likewise for param "f" and locals "insn",
12717         "prev_nonjump_insn".
12718
12719 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12720
12721         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12722         from rtx to rtx_insn *insn.
12723         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12724         (ira_add_allocno_copy): Likewise.
12725         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12726         rtx to rtx_insn *.
12727         (ira_create_copy): Likewise.
12728         (ira_add_allocno_copy): Likewise.
12729         (create_bb_allocnos): Likewise for local "insn".
12730         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12731         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12732         process_regs_for_copy for rtx_insn * param.
12733         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12734         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
12735         process_regs_for_copy for rtx_insn * param.
12736         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12737         * ira-costs.c (record_reg_classes): Likewise for param "insn".
12738         (record_operand_costs): Likewise.
12739         (scan_one_insn): Likewise for return type, and for param "insn".
12740         (process_bb_for_costs): Likewise for local "insn".
12741         (process_bb_node_for_hard_reg_moves): Likewise.
12742         * ira-emit.c (struct move): Likewise for field "insn".
12743         (create_move): Eliminate use of NULL_RTX when dealing with an
12744         rtx_insn *.
12745         (emit_move_list): Strengthen return type and locals "result",
12746         "insn" from rtx to rtx_insn *insn.
12747         (emit_moves): Likewise for locals "insns", "tmp".
12748         (ira_emit): Likewise for local "insn".
12749         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
12750         "insn".
12751         (find_call_crossed_cheap_reg): Likewise.
12752         (process_bb_node_lives): Likewise for local "insn".
12753         * ira.c (decrease_live_ranges_number): Likewise.
12754         (compute_regs_asm_clobbered): Likewise.
12755         (build_insn_chain): Likewise.
12756         (find_moveable_pseudos): Likewise, also locals "def_insn",
12757         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
12758         to rtx_insn **.  Add a checked cast when assigning from
12759         "closest_use" into closest_uses array in a region where we know
12760         it's a non-NULL insn.
12761         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
12762         to rtx_insn *.
12763         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
12764         "last_interesting_insn", "uin".
12765         (move_unallocated_pseudos): Likewise for locals "def_insn",
12766         "move_insn", "newinsn".
12767
12768 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12769
12770         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
12771         Strengthen locals "done_label", "do_error" from rtx to
12772         rtx_code_label *.
12773         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
12774         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
12775         rtx_code_label *.
12776         (ubsan_expand_si_overflow_neg_check): Likewise for locals
12777         "done_label", "do_error" to rtx_code_label * and local  "last" to
12778         rtx_insn *.
12779         (ubsan_expand_si_overflow_mul_check): Likewise for locals
12780         "done_label", "do_error", "large_op0", "small_op0_large_op1",
12781         "one_small_one_large", "both_ops_large", "after_hipart_neg",
12782         "after_lopart_neg", "do_overflow", "hipart_different"  to
12783         rtx_code_label * and local  "last" to rtx_insn *.
12784
12785 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12786
12787         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
12788         "insn" and "move_insn" from rtx to rtx_insn *.
12789
12790 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12791
12792         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
12793         rtx_insn *.
12794         (cheap_bb_rtx_cost_p): Likewise.
12795         (first_active_insn): Likewise for return type and local "insn".
12796         (last_active_insn):  Likewise for return type and locals "insn",
12797         "head".
12798         (struct noce_if_info): Likewise for fields "jump", "insn_a",
12799         "insn_b".
12800         (end_ifcvt_sequence): Likewise for return type and locals "insn",
12801         "seq".
12802         (noce_try_move): Likewise for local "seq".
12803         (noce_try_store_flag): Likewise.
12804         (noce_try_store_flag_constants): Likewise.
12805         (noce_try_addcc): Likewise.
12806         (noce_try_store_flag_mask): Likewise.
12807         (noce_try_cmove): Likewise.
12808         (noce_try_minmax): Likewise.
12809         (noce_try_abs): Likewise.
12810         (noce_try_sign_mask): Likewise.
12811         (noce_try_bitop): Likewise.
12812         (noce_can_store_speculate_p): Likewise for local "insn".
12813         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
12814         seq".
12815         (check_cond_move_block): Likewise for local "insn".
12816         (cond_move_convert_if_block): Likewise.
12817         (cond_move_process_if_block): Likewise for locals "seq",
12818         "loc_insn".
12819         (noce_find_if_block): Likewise for local "jump".
12820         (merge_if_block): Likewise for local "last".
12821         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
12822         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
12823         (block_has_only_trap): Likewise for return type and local "trap".
12824         (find_if_case_1): Likewise for local "jump".
12825         (dead_or_predicable): Likewise for locals "head", "end", "jump",
12826         "insn".
12827
12828 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12829
12830         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
12831         "last_insn", "loop_end" from rtx to rtx_insn *.
12832
12833         * hw-doloop.c (scan_loop): Likewise for local "insn".
12834         (discover_loop): Likewise for param "tail_insn".
12835         (discover_loops): Likewise for local "tail".
12836
12837         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
12838         cast to rtx_insn * when assigning from an rtx local to a
12839         hwloop_info's "last_insn" field.
12840
12841 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12842
12843         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
12844         (add_delay_dependencies): Strengthen local "pro" from rtx to
12845         rtx_insn *.
12846         (recompute_todo_spec): Likewise.
12847         (dep_cost_1): Likewise for locals "insn", "used".
12848         (schedule_insn): Likewise for local "dbg".
12849         (schedule_insn): Likewise for locals "pro", "next".
12850         (unschedule_insns_until): Likewise for local "con".
12851         (restore_pattern): Likewise for local "next".
12852         (estimate_insn_tick): Likewise for local "pro".
12853         (resolve_dependencies): Likewise for local "next".
12854         (fix_inter_tick): Likewise.
12855         (fix_tick_ready): Likewise for local "pro".
12856         (add_to_speculative_block): Likewise for locals "check", "twin",
12857         "pro".
12858         (sched_extend_bb): Likewise for locals "end", "insn".
12859         (init_before_recovery): Likewise for local "x".
12860         (sched_create_recovery_block): Likewise for local "barrier".
12861         (create_check_block_twin): Likewise for local "pro".
12862         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
12863         "consumer".
12864         (unlink_bb_notes): Update for change to type of bb_header.
12865         Strengthen locals "prev", "label", "note", "next" from rtx to
12866         rtx_insn *.
12867         (clear_priorities): Likewise for local "pro".
12868
12869 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12870
12871         * gcse.c (struct occr): Strengthen field "insn" from rtx to
12872         rtx_insn *.
12873         (test_insn): Likewise for this global.
12874         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
12875         const rtx_insn *.
12876         (oprs_anticipatable_p): Likewise.
12877         (oprs_available_p): Likewise.
12878         (insert_expr_in_table): Strengthen param "insn" from  rtx to
12879         rtx_insn *.
12880         (hash_scan_set): Likewise.
12881         (hash_scan_clobber): Likewise.
12882         (hash_scan_call): Likewise.
12883         (hash_scan_insn): Likewise.
12884         (compute_hash_table_work): Likewise for local "insn".
12885         (process_insert_insn): Likewise for return type and local "pat".
12886         (insert_insn_end_basic_block): Likewise for locals "new_insn",
12887         "pat", "pat_end", "maybe_cc0_setter".
12888         (pre_edge_insert): Likewise for local "insn".
12889         (pre_insert_copy_insn): Likewise for param "insn".
12890         (pre_insert_copies): Likewise for local "insn".
12891         (struct set_data): Likewise for field "insn".
12892         (single_set_gcse): Likewise for param "insn".
12893         (gcse_emit_move_after): Likewise.
12894         (pre_delete): Likewise for local "insn".
12895         (update_bb_reg_pressure): Likewise for param "from" and local
12896         "insn".
12897         (should_hoist_expr_to_dom): Likewise for param "from".
12898         (hoist_code): Likewise for local "insn".
12899         (get_pressure_class_and_nregs): Likewise for param "insn".
12900         (calculate_bb_reg_pressure): Likewise for local "insn".
12901         (compute_ld_motion_mems): Likewise.
12902
12903 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12904
12905         * genpeep.c (main): Rename param back from "uncast_ins1" to
12906         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
12907         checked cast.
12908
12909         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
12910
12911 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
12912
12913         PR target/62195
12914         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
12915         documentation to state it is only for VSX operations.
12916
12917         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
12918         constraint only active if VSX.
12919
12920         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
12921         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
12922         (lfiwzx): Likewise.
12923
12924 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12925
12926         * fwprop.c (single_def_use_dom_walker::before_dom_children):
12927         Strengthen local "insn" from rtx to rtx_insn *.
12928         (use_killed_between): Likewise for param "target_insn".
12929         (all_uses_available_at): Likewise for param "target_insn" and
12930         local "next".
12931         (update_df_init): Likewise for params "def_insn", "insn".
12932         (update_df): Likewise for param "insn".
12933         (try_fwprop_subst): Likewise for param "def_insn" and local
12934         "insn".
12935         (free_load_extend): Likewise for param "insn".
12936         (forward_propagate_subreg): Likewise for param "def_insn" and
12937         local "use_insn".
12938         (forward_propagate_asm): Likewise for param "def_insn" and local
12939         "use_insn".
12940         (forward_propagate_and_simplify): Likewise for param "def_insn"
12941         and local "use_insn".
12942         (forward_propagate_into): Likewise for locals "def_insn" and
12943         "use_insn".
12944
12945 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12946
12947         * function.c (emit_initial_value_sets): Strengthen local "seq"
12948         from rtx to rtx_insn *.
12949         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
12950         local "seq".
12951         (instantiate_virtual_regs): Likewise for local "insn".
12952         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
12953         (reorder_blocks_1): Likewise for param "insns" and local "insn".
12954         (expand_function_end): Likewise for locals "insn" and "seq".
12955         (epilogue_done): Likewise for local "insn".
12956         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
12957         "last", "trial".
12958         (reposition_prologue_and_epilogue_notes): Likewise for locals
12959         "insn", "last", "note", "first".
12960         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
12961         (pass_match_asm_constraints::execute): Likewise for local "insn".
12962
12963 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12964
12965         * output.h (final_scan_insn): Strengthen return type from rtx to
12966         rtx_insn *.
12967         (final_forward_branch_p): Likewise for param.
12968         (current_output_insn): Likewise for this global.
12969
12970         * final.c (rtx debug_insn): Likewise for this variable.
12971         (current_output_insn): Likewise.
12972         (get_attr_length_1): Rename param "insn" to "uncast_insn",
12973         adding "insn" back in as an rtx_insn * with a checked cast, so
12974         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
12975         first param.
12976         (compute_alignments): Strengthen local "label" from rtx to
12977         rtx_insn *.
12978         (shorten_branches): Rename param from "first" to "uncast_first",
12979         introducing a new local rtx_insn * "first" using a checked cast to
12980         effectively strengthen "first" from rtx to rtx_insn * without
12981         affecting the type signature.  Strengthen locals "insn", "seq",
12982         "next", "label" from rtx to rtx_insn *.
12983         (change_scope): Strengthen param "orig_insn" and local "insn" from
12984         rtx to rtx_insn *.
12985         (final_start_function): Rename param from "first" to "uncast_first",
12986         introducing a new local rtx_insn * "first" using a checked cast to
12987         effectively strengthen "first" from rtx to rtx_insn * without
12988         affecting the type signature.  Strengthen local "insn" from rtx to
12989         rtx_insn *.
12990         (dump_basic_block_info): Strengthen param "insn" from rtx to
12991         rtx_insn *.
12992         (final): Rename param from "first" to "uncast_first",
12993         introducing a new local rtx_insn * "first" using a checked cast to
12994         effectively strengthen "first" from rtx to rtx_insn * without
12995         affecting the type signature.  Strengthen locals "insn", "next"
12996         from rtx to rtx_insn *.
12997         (output_alternate_entry_point): Strengthen param "insn" from rtx to
12998         rtx_insn *.
12999         (call_from_call_insn): Strengthen param "insn" from rtx to
13000         rtx_call_insn *.
13001         (final_scan_insn): Rename param from "insn" to "uncast_insn",
13002         introducing a new local rtx_insn * "insn" using a checked cast to
13003         effectively strengthen "insn" from rtx to rtx_insn * without
13004         affecting the type signature.  Strengthen return type and locals
13005         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
13006         now-redundant checked cast to rtx_insn * from both invocations of
13007         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
13008         introducing a local "call_insn" for use when invoking
13009         call_from_call_insn.
13010         (notice_source_line): Strengthen param "insn" from rtx to
13011         rtx_insn *.
13012         (leaf_function_p): Likewise for local "insn".
13013         (final_forward_branch_p): Likewise.
13014         (leaf_renumber_regs): Likewise for param "first".
13015         (rest_of_clean_state): Likewise for locals "insn" and "next".
13016         (self_recursive_call_p): Likewise for param "insn".
13017         (collect_fn_hard_reg_usage): Likewise for local "insn".
13018         (get_call_fndecl): Likewise for param "insn".
13019         (get_call_cgraph_rtl_info): Likewise.
13020         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
13021         introducing a new local rtx_insn * "insn" using a checked cast to
13022         effectively strengthen "insn" from rtx to rtx_insn * without
13023         affecting the type signature.
13024
13025         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13026         cast when assigning from param "insn" to current_output_insn.
13027         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13028         so that we can assign it back to current_output_insn.
13029
13030 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13031
13032         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13033         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13034         atmxt540s and atmxt540sreva devices.
13035         * config/avr/avr-tables.opt: Regenerate.
13036         * config/avr/t-multilib: Regenerate.
13037         * doc/avr-mmcu.texi: Regenerate.
13038
13039 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13040
13041         * expr.c (convert_move): Strengthen local "insns" from rtx to
13042         rtx_insn *.
13043         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13044         "top_label" from rtx to rtx_code_label *.
13045         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13046         rtx_insn *.
13047         (emit_single_push_insn): Likewise for locals "prev", "last".
13048         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13049         to rtx_code_label *.
13050         (store_constructor): Likewise for locals "loop_start", "loop_end".
13051         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13052         rtx_insn *.
13053         (expand_expr_real_2): Likewise.
13054         (expand_expr_real_1): Strengthen local "label" from rtx to
13055         rtx_code_label *.
13056
13057 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13058
13059         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13060         from rtx to rtx_insn *.
13061         (store_bit_field_1): Likewise.
13062         (extract_bit_field_1): Likewise.
13063         (expand_mult_const): Likewise for local "insns".
13064         (expmed_mult_highpart): Strengthen local "label" from rtx to
13065         rtx_code_label *.
13066         (expand_smod_pow2): Likewise.
13067         (expand_sdiv_pow2): Likewise.
13068         (expand_divmod): Strengthen locals "last", "insn" from rtx to
13069         rtx_insn *.  Strengthen locals "label", "label1", "label2",
13070         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13071         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13072         (emit_store_flag): Likewise.
13073         (emit_store_flag_force): Strengthen local "label" from rtx to
13074         rtx_code_label *.
13075         (do_cmp_and_jump): Likewise for param "label".
13076
13077 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13078
13079         * explow.c (force_reg): Strengthen local "insn" from rtx to
13080         rtx_insn *.
13081         (adjust_stack_1): Likewise.
13082         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
13083         "final_label", "available_label", "space_available" from rtx to
13084         rtx_code_label *.
13085         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13086         (anti_adjust_stack_and_probe): Likewise.
13087
13088 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13089
13090         * except.h (sjlj_emit_function_exit_after): Strengthen param
13091         "after" from rtx to rtx_insn *.  This is only called with
13092         result of get_last_insn (in function.c) so type-change should be
13093         self-contained.
13094
13095         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13096         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13097         to rtx_insn *.  These fields are only used from except.c so this
13098         type-change should be self-contained to this patch.
13099
13100         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13101         local "last" from rtx to rtx_insn *.
13102         (dw2_build_landing_pads): Likewise for local "seq".
13103         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13104         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13105         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
13106         rtx to rtx_insn *.
13107         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13108         to rtx_insn *.
13109         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13110         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13111         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13112         referring to an insn.  Strengthen local "dispatch_label" from
13113         rtx to rtx_code_label *.
13114         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13115         rtx_insn *.
13116         (expand_eh_return): Strengthen local "around_label" from
13117         rtx to rtx_code_label *.
13118         (convert_to_eh_region_ranges): Strengthen locals "iter",
13119         "last_action_insn", "first_no_action_insn",
13120         "first_no_action_insn_before_switch",
13121         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13122
13123 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13124
13125         * dwarf2out.c (last_var_location_insn): Strengthen this variable
13126         from rtx to rtx_insn *.
13127         (cached_next_real_insn): Likewise.
13128         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13129         working with insns.
13130         (dwarf2out_var_location): Strengthen locals "next_real",
13131         "next_note", "expected_next_loc_note", "last_start", "insn" from
13132         rtx to rtx_insn *.
13133
13134 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13135
13136         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13137         from rtx to rtx_insn *.
13138         (create_pseudo_cfg): Likewise for local "insn".
13139
13140 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13141
13142         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13143         from rtx to rtx_insn *.
13144         (df_bb_regno_last_def_find): Likewise.
13145
13146         * df-problems.c (df_rd_bb_local_compute): Likewise.
13147         (df_lr_bb_local_compute): Likewise.
13148         (df_live_bb_local_compute): Likewise.
13149         (df_chain_remove_problem): Likewise.
13150         (df_chain_create_bb): Likewise.
13151         (df_word_lr_bb_local_compute): Likewise.
13152         (df_remove_dead_eq_notes): Likewise for param "insn".
13153         (df_note_bb_compute): Likewise for local "insn".
13154         (simulate_backwards_to_point): Likewise.
13155         (df_md_bb_local_compute): Likewise.
13156
13157         * df-scan.c (df_scan_free_bb_info): Likewise.
13158         (df_scan_start_dump): Likewise.
13159         (df_scan_start_block): Likewise.
13160         (df_install_ref_incremental): Likewise for local "insn".
13161         (df_insn_rescan_all): Likewise.
13162         (df_reorganize_refs_by_reg_by_insn): Likewise.
13163         (df_reorganize_refs_by_insn_bb): Likewise.
13164         (df_recompute_luids): Likewise.
13165         (df_bb_refs_record): Likewise.
13166         (df_update_entry_exit_and_calls): Likewise.
13167         (df_bb_verify): Likewise.
13168
13169 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13170
13171         * ddg.h (struct ddg_node): Strengthen fields "insn" and
13172         "first_note" from rtx to rtx_insn *.
13173         (get_node_of_insn): Likewise for param 2 "insn".
13174         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13175
13176         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13177         rtx_insn *.
13178         (mem_write_insn_p): Likewise.
13179         (mem_access_insn_p): Likewise.
13180         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13181         (def_has_ccmode_p): Likewise for param "insn".
13182         (add_cross_iteration_register_deps): Likewise for locals
13183         "def_insn" and "use_insn".
13184         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13185         (build_intra_loop_deps): Likewise for local "src_insn".
13186         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13187         to rtx_insn *.
13188         (get_node_of_insn): Likewise for param "insn".
13189
13190 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13191
13192         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13193         (deletable_insn_p): Strengthen param "insn" from rtx to
13194         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
13195         find_call_stack_args, since this is guarded by CALL_P (insn).
13196         (marked_insn_p): Strengthen param "insn" from rtx to
13197         rtx_insn *.
13198         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
13199         invoking find_call_stack_args, since this is guarded by
13200         CALL_P (insn).
13201         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13202         rtx_insn *; we know this is an insn since this was called by
13203         mark_nonreg_stores.
13204         (mark_nonreg_stores_2): Likewise.
13205         (mark_nonreg_stores): Strengthen param "insn" from rtx to
13206         rtx_insn *.
13207         (find_call_stack_args): Strengthen param "call_insn" from rtx to
13208         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13209         to rtx_insn *.
13210         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13211         from rtx to rtx_insn *.
13212         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13213         "next", "ref_insn".
13214         (delete_unmarked_insns): Likewise for locals "insn", "next".
13215         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13216         (mark_reg_dependencies): Likewise for param "insn".
13217         (rest_of_handle_ud_dce): Likewise for local "insn".
13218         (word_dce_process_block): Likewise.
13219         (dce_process_block): Likewise.
13220
13221 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13222
13223         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
13224         from rtx to rtx_insn *.
13225         (struct change_cc_mode_args): Likewise for field "insn".
13226         (this_insn): Strengthen from rtx to rtx_insn *.
13227         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
13228         with insn.
13229         (validate_canon_reg): Strengthen param "insn" from rtx to
13230         rtx_insn *.
13231         (canon_reg): Likewise.
13232         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
13233         dealing with insn.
13234         (record_jump_equiv): Strengthen param "insn" from rtx to
13235         rtx_insn *.
13236         (try_back_substitute_reg): Likewise, also for locals "prev",
13237         "bb_head".
13238         (find_sets_in_insn): Likewise for param "insn".
13239         (canonicalize_insn): Likewise.
13240         (cse_insn): Likewise.  Add a checked cast.
13241         (invalidate_from_clobbers): Likewise for param "insn".
13242         (invalidate_from_sets_and_clobbers): Likewise.
13243         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
13244         dealing with insn.
13245         (cse_prescan_path): Strengthen local "insn" from rtx to
13246         rtx_insn *.
13247         (cse_extended_basic_block): Likewise for locals "insn" and
13248         "prev_insn".
13249         (cse_main): Likewise for param "f".
13250         (check_for_label_ref): Likewise for local "insn".
13251         (set_live_p): Likewise for second param ("insn").
13252         (insn_live_p): Likewise for first param ("insn") and for local
13253         "next".
13254         (cse_change_cc_mode_insn): Likewise for first param "insn".
13255         (cse_change_cc_mode_insns): Likewise for first and second params
13256         "start" and "end".
13257         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13258         and "end".
13259         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13260         "cc_src_insn".
13261
13262 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13263             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13264             Anna Tikhonova  <anna.tikhonova@intel.com>
13265             Ilya Tocar  <ilya.tocar@intel.com>
13266             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13267             Ilya Verbin  <ilya.verbin@intel.com>
13268             Kirill Yukhin  <kirill.yukhin@intel.com>
13269             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13270
13271         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13272         New.
13273         * config/i386/sse.md
13274         (define_mode_iterator VI248_AVX2): Delete.
13275         (define_mode_iterator VI2_AVX2_AVX512BW): New.
13276         (define_mode_iterator VI48_AVX2): Ditto.
13277         (define_insn <shift_insn><mode>3): Delete.
13278         (define_insn "<shift_insn><mode>3<mask_name>" with
13279         VI2_AVX2_AVX512BW): New.
13280         (define_insn "<shift_insn><mode>3<mask_name>" with
13281         VI48_AVX2): Ditto.
13282
13283 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13284             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13285             Anna Tikhonova  <anna.tikhonova@intel.com>
13286             Ilya Tocar  <ilya.tocar@intel.com>
13287             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13288             Ilya Verbin  <ilya.verbin@intel.com>
13289             Kirill Yukhin  <kirill.yukhin@intel.com>
13290             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13291
13292         * config/i386/sse.md
13293         (define_mode_iterator VI4F_BRCST32x2): New.
13294         (define_mode_attr 64x2_mode): Ditto.
13295         (define_mode_attr 32x2mode): Ditto.
13296         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13297         with VI4F_BRCST32x2): Ditto.
13298         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13299         with V16FI mode iterator): Ditto.
13300         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13301         with V16FI): Ditto.
13302         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13303         with VI8F_BRCST64x2): Ditto.
13304
13305 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13306             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13307             Anna Tikhonova  <anna.tikhonova@intel.com>
13308             Ilya Tocar  <ilya.tocar@intel.com>
13309             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13310             Ilya Verbin  <ilya.verbin@intel.com>
13311             Kirill Yukhin  <kirill.yukhin@intel.com>
13312             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13313
13314         * config/i386/sse.md
13315         (define_mode_iterator VI8_AVX512VL): New.
13316         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13317
13318 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13319
13320         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13321         (define_mode_iterator V48_AVX512VL): New.
13322         (define_mode_iterator V12_AVX512VL): Ditto.
13323         (define_insn <avx512>_load<mode>_mask): Split into two similar
13324         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13325         Refactor output template.
13326         (define_insn "<avx512>_store<mode>_mask"): Ditto.
13327
13328 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13329
13330         * cprop.c (struct occr): Strengthen field "insn" from rtx to
13331         rtx_insn *.
13332         (reg_available_p): Likewise for param "insn".
13333         (insert_set_in_table): Likewise.
13334         (hash_scan_set): Likewise.
13335         (hash_scan_insn): Likewise.
13336         (make_set_regs_unavailable): Likewise.
13337         (compute_hash_table_work): Likewise for local "insn".
13338         (reg_not_set_p): Strengthen param "insn" from const_rtx to
13339         const rtx_insn *.
13340         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13341         (try_replace_reg): Likewise.
13342         (find_avail_set): Likewise.
13343         (cprop_jump): Likewise for params "setcc", "jump".
13344         (constprop_register): Likewise for param "insn".
13345         (cprop_insn): Likewise.
13346         (do_local_cprop): Likewise.
13347         (local_cprop_pass): Likewise for local "insn".
13348         (bypass_block): Likewise for params "setcc" and "jump".
13349         (bypass_conditional_jumps): Likewise for locals "setcc" and
13350         "insn".
13351         (one_cprop_pass): Likewise for local "insn".
13352
13353 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13354
13355         * compare-elim.c (struct comparison_use): Strengthen field "insn"
13356         from rtx to rtx_insn *.
13357         (struct comparison): Likewise, also for field "prev_clobber".
13358         (conforming_compare): Likewise for param "insn".
13359         (arithmetic_flags_clobber_p): Likewise.
13360         (find_flags_uses_in_insn): Likewise.
13361         (find_comparison_dom_walker::before_dom_children): Likewise for
13362         locals "insn", "next", "last_clobber".
13363         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
13364
13365 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13366
13367         * combine-stack-adj.c (struct csa_reflist): Strengthen field
13368         "insn" from rtx to rtx_insn *.
13369         (single_set_for_csa): Likewise for param "insn".
13370         (record_one_stack_ref): Likewise.
13371         (try_apply_stack_adjustment): Likewise.
13372         (struct record_stack_refs_data): Likewise for field "insn".
13373         (maybe_move_args_size_note): Likewise for params "last" and "insn".
13374         (prev_active_insn_bb): Likewise for return type and param "insn".
13375         (next_active_insn_bb): Likewise.
13376         (force_move_args_size_note): Likewise for params "prev" and "last"
13377         and locals "test", "next_candidate", "prev_candidate".
13378         (combine_stack_adjustments_for_block): Strengthen locals
13379         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
13380         rtx_insn *.
13381
13382 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13383
13384         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
13385         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
13386         (subst_insn): Likewise for this variable.
13387         (added_links_insn): Likewise.
13388         (struct insn_link): Likewise for field "insn".
13389         (alloc_insn_link): Likewise for param "insn".
13390         (struct undobuf): Likewise for field "other_insn".
13391         (find_single_use): Likewise for param "insn" and local "next".
13392         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
13393         (delete_noop_moves): Likewise for locals "insn", "next".
13394         (create_log_links): Likewise for locals "insn", "use_insn".
13395         Strengthen local "next_use" from rtx * to rtx_insn **.
13396         (insn_a_feeds_b): Likewise for params "a", "b".
13397         (combine_instructions): Likewise for param "f" and locals "insn",
13398         "next", "prev", "first", "last_combined_insn", "link", "link1",
13399         "temp".  Replace use of NULL_RTX with NULL when referring to
13400         insns.
13401         (setup_incoming_promotions): Likewise for param "first"
13402         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
13403         (can_combine_p): Likewise for params "insn", "i3", "pred",
13404         "pred2", "succ", "succ2" and for local "p".
13405         (combinable_i3pat): Likewise for param "i3".
13406         (cant_combine_insn_p): Likewise for param "insn".
13407         (likely_spilled_retval_p): Likewise.
13408         (adjust_for_new_dest): Likewise.
13409         (update_cfg_for_uncondjump): Likewise, also for local "insn".
13410         (try_combine): Likewise for return type and for params "i3", "i2",
13411         "i1", "i0", "last_combined_insn", and for locals "insn",
13412         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
13413         "i0_insn".  Eliminate local "tem" in favor of new locals
13414         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
13415         checked cast for now to rtx_insn * on the return type of
13416         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
13417         insns.
13418         (find_split_point): Strengthen param "insn" from rtx to
13419         rtx_insn *.
13420         (simplify_set): Likewise for local "other_insn".
13421         (recog_for_combine): Likewise for param "insn".
13422         (record_value_for_reg): Likewise.
13423         (record_dead_and_set_regs_1): Likewise for local
13424         "record_dead_insn".
13425         (record_dead_and_set_regs): Likewise for param "insn".
13426         (record_promoted_value): Likewise.
13427         (check_promoted_subreg): Likewise.
13428         (get_last_value_validate): Likewise.
13429         (reg_dead_at_p): Likewise.
13430         (move_deaths): Likewise for param "to_insn".
13431         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
13432         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
13433         in favor of new locals "tem_note" and "tem_insn", the latter being
13434         an rtx_insn *.
13435         (distribute_links): Strengthen locals "place", "insn" from rtx to
13436         rtx_insn *.
13437
13438 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13439
13440         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
13441         than a const_rtx.
13442         (can_delete_label_p): Require a const rtx_code_label * rather than
13443         a const_rtx.
13444         (delete_insn): Add checked cast to rtx_code_label * when we know
13445         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
13446         rtx to rtx_insn *.
13447         (delete_insn_chain): Strengthen locals "prev" and "current" from
13448         rtx to rtx_insn *.  Add a checked cast when assigning from
13449         "finish" (strengthening the params will come later).  Add a
13450         checked cast to rtx_note * in region where we know
13451         NOTE_P (current).
13452         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
13453         rtx_insn *.
13454         (compute_bb_for_insn): Likewise.
13455         (free_bb_for_insn): Likewise for local "insn".
13456         (compute_bb_for_insn): Likewise.
13457         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
13458         local "insn" from rtx to rtx_insn *
13459         (flow_active_insn_p): Require a const rtx_insn * rather than a
13460         const_rtx.
13461         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
13462         rtx_insn *.
13463         (can_fallthru): Likewise for locals "insn" and "insn2".
13464         (bb_note): Likewise for local "note".
13465         (first_insn_after_basic_block_note): Likewise for local "note" and
13466         for return type.
13467         (rtl_split_block): Likewise for locals "insn" and "next".
13468         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
13469         "end".
13470         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
13471         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
13472         "prev", "tmp".
13473         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
13474         them), "kill_from", "barrier", "new_insn".
13475         (patch_jump_insn): Likewise for params "insn", "old_label".
13476         (redirect_branch_edge): Likewise for locals "old_label", "insn".
13477         (force_nonfallthru_and_redirect): Likewise for locals "insn",
13478         "old_label", "new_label".
13479         (rtl_tidy_fallthru_edge): Likewise for local "q".
13480         (rtl_split_edge): Likewise for locals "before", "last".
13481         (commit_one_edge_insertion): Likewise for locals "before",
13482         "after", "insns", "tmp", "last", adding a checked cast where
13483         currently necessary.
13484         (commit_edge_insertions): Likewise.
13485         (rtl_dump_bb): Likewise for locals "insn", "last".
13486         (print_rtl_with_bb): Likewise for local "x".
13487         (rtl_verify_bb_insns): Likewise for local "x".
13488         (rtl_verify_bb_pointers): Likewise for local "insn".
13489         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
13490         "head", "end".
13491         (rtl_verify_fallthru): Likewise for local "insn".
13492         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
13493         (purge_dead_edges): Likewise for local "insn".
13494         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
13495         (skip_insns_after_block): Likewise for return type and for locals
13496         "insn", "last_insn", "next_head", "prev".
13497         (record_effective_endpoints): Likewise for locals "next_insn",
13498         "insn", "end".
13499         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
13500         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
13501         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
13502         (duplicate_insn_chain): For now, add checked cast from rtx to
13503         rtx_insn * when returning insn.
13504         (cfg_layout_duplicate_bb): Likewise for local "insn".
13505         (cfg_layout_delete_block): Likewise for locals "insn", "next",
13506         "prev", "remaints".
13507         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
13508         (rtl_block_empty_p): Likewise.
13509         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
13510         "split_point", "last".
13511         (rtl_block_ends_with_call_p): Likewise for local "insn".
13512         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
13513         const rtx_insn *.
13514         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
13515         "split_at_insn" from rtx to rtx_insn *.
13516         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
13517         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
13518         to const rtx_insn *.
13519         (rtl_account_profile_record): Likewise.
13520
13521 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13522
13523         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
13524         rtx to rtx_insn *.
13525         (average_num_loop_insns): Likewise.
13526         (init_set_costs): Likewise for local "seq".
13527         (seq_cost): Likewise for param "seq", from const_rtx to const
13528         rtx_insn *.
13529
13530 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13531
13532         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
13533         rtx to rtx_insn *.
13534
13535 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13536
13537         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
13538         "f1" and "f2" from rtx * to rtx_insn **.
13539         (flow_find_head_matching_sequence): Likewise.
13540
13541         * cfgcleanup.c (try_simplify_condjump): Strengthen local
13542         "cbranch_insn" from rtx to rtx_insn *.
13543         (thread_jump): Likewise for local "insn".
13544         (try_forward_edges): Likewise for local "last".
13545         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
13546         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
13547         "real_b_end".
13548         (can_replace_by): Likewise for params "i1", "i2".
13549         (old_insns_match_p): Likewise.
13550         (merge_notes): Likewise.
13551         (walk_to_nondebug_insn): Likewise for param "i1".
13552         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
13553         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
13554         "afterlast1", "afterlast2" from rtx to rtx_insn *.
13555         (flow_find_head_matching_sequence): Strengthen params "f1" and
13556         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
13557         "last1", "last2", "beforelast1", "beforelast2" from rtx to
13558         rtx_insn *.
13559         (outgoing_edges_match): Likewise for locals "last1", "last2".
13560         (try_crossjump_to_edge): Likewise for local "insn".
13561         Replace call to for_each_rtx with for_each_rtx_in_insn.
13562
13563         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
13564         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
13565         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
13566         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
13567         (try_optimize_cfg): Strengthen local "last" from rtx to
13568         rtx_insn *.
13569         (delete_dead_jumptables): Likewise for locals "insn", "next",
13570         "label".
13571
13572         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
13573         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
13574         "rtx else_first_tail", to reflect the basic-block.h changes above.
13575
13576 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13577
13578         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
13579         rtx_insn *.
13580         (purge_dead_tablejump_edges): Likewise.
13581         (find_bb_boundaries): Likewise for locals "insn", "end",
13582         "flow_transfer_insn".
13583
13584 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13585
13586         * caller-save.c (save_call_clobbered_regs): Strengthen locals
13587         "ins" and "prev" from rtx to rtx_insn *.
13588
13589 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13590
13591         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
13592         rtx_insn *.
13593         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
13594         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
13595         "scan_start".
13596         (load_register_parameters): Likewise for local "before_arg".
13597         (check_sibcall_argument_overlap): Likewise for param "insn".
13598         (expand_call): Likewise for locals "normal_call_insns",
13599         "tail_call_insns", "insns", "before_call", "after_args",
13600         "before_arg", "last", "prev".  Strengthen one of the "last" from
13601         rtx to rtx_call_insn *.
13602         (fixup_tail_calls): Strengthen local "insn" from rtx to
13603         rtx_insn *.
13604         (emit_library_call_value_1): Likewise for locals "before_call" and
13605         "last".
13606
13607 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13608
13609         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13610         and "last" from rtx to rtx_insn *.
13611         (expand_builtin_nonlocal_goto): Likewise for local "insn".
13612         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13613         rtx_call_insn *.
13614         (expand_errno_check): Strengthen local "lab" from rtx to
13615         rtx_code_label *.
13616         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13617         rtx_insn *.
13618         (expand_builtin_mathfn_2): Likewise.
13619         (expand_builtin_mathfn_ternary): Likewise.
13620         (expand_builtin_mathfn_3): Likewise.
13621         (expand_builtin_interclass_mathfn): Likewise for local "last".
13622         (expand_builtin_int_roundingfn): Likewise for local "insns".
13623         (expand_builtin_int_roundingfn_2): Likewise.
13624         (expand_builtin_strlen): Likewise for local "before_strlen".
13625         (expand_builtin_strncmp): Likewise for local "seq".
13626         (expand_builtin_signbit): Likewise for local "last".
13627         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13628         from rtx to rtx_code_label *.
13629         (expand_stack_restore):  Strengthen local "prev" from rtx to
13630         rtx_insn *.
13631
13632 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13633
13634         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13635         to rtx_insn *.
13636         (struct btr_def_s): Likewise.
13637         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13638         const rtx_insn *.
13639         (add_btr_def): Likewise.
13640         (new_btr_user): Likewise.
13641         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13642         rtx to rtx_insn *.
13643         (link_btr_uses): Likewise.
13644         (move_btr_def): Likewise for locals "insp", "old_insn",
13645         "new_insn".  Add checked cast to rtx_insn * for now on result of
13646         gen_move_insn.
13647         (can_move_up): Strengthen param "insn" from const_rtx to
13648         const rtx_insn *.
13649
13650 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13651
13652         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13653         rtx_insn *.
13654         (get_uncond_jump_length): Likewise for locals "label", "jump".
13655         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13656         "jump", "insn".
13657         (add_labels_and_missing_jumps): Likewise for local "new_jump".
13658         (fix_up_fall_thru_edges): Likewise for local "old_jump".
13659         (find_jump_block): Likewise for local "insn".
13660         (fix_crossing_conditional_branches): Likewise for locals
13661         "old_jump", "new_jump".
13662         (fix_crossing_unconditional_branches): Likewise for locals
13663         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13664         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13665
13666 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13667
13668         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13669         rtx to rtx_insn *.
13670         (struct mem_insn): Likewise for field "insn".
13671         (reg_next_use): Strengthen from rtx * to rtx_insn **.
13672         (reg_next_inc_use): Likewise.
13673         (reg_next_def): Likewise.
13674         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13675         from rtx to rtx_insn *.
13676         (move_insn_before): Likewise for param "next_insn" and local "insns".
13677         (attempt_change): Likewise for local "mov_insn".
13678         (try_merge): Likewise for param "last_insn".
13679         (get_next_ref): Likewise for return type and local "insn".
13680         Strengthen param "next_array" from rtx * to rtx_insn **.
13681         (parse_add_or_inc): Strengthen param "insn" from rtx to
13682         rtx_insn *.
13683         (find_inc): Likewise for locals "insn" and "other_insn" (three of
13684         the latter).
13685         (merge_in_block): Likewise for locals "insn", "curr",
13686         "other_insn".
13687         (pass_inc_dec::execute): Update allocations of the arrays to
13688         reflect the stronger types.
13689
13690 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13691
13692         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13693         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
13694         from rtx to rtx_code_label *.
13695
13696 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13697
13698         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
13699         to rtx_insn *.
13700
13701 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
13702
13703         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
13704         generated a warning and prevented bootstrapping the compiler.
13705
13706 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13707
13708         * rtl.h (delete_related_insns): Strengthen return type from rtx to
13709         rtx_insn *.
13710
13711         * jump.c (delete_related_insns): Likewise, also for locals "next"
13712         and "prev".
13713
13714 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13715
13716         * genautomata.c (output_internal_insn_latency_func): When writing
13717         the function "internal_insn_latency" to insn-automata.c,
13718         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13719         allowing the optional guard function of (define_bypass) clauses to
13720         expect a pair of rtx_insn *, rather than a pair of rtx.
13721         (output_insn_latency_func): When writing the function
13722         "insn_latency", add an "uncast_" prefix to params "insn" and
13723         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13724         using checked casts from the params, thus enabling the above
13725         change to the generated "internal_insn_latency" function.
13726
13727 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
13728
13729         PR tree-optimization/62091
13730         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13731         handle correctly arrays.
13732         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13733         inheritance binfos.
13734         (record_known_type): Walk into inner type.
13735         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13736         condition on no type changes.
13737
13738 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13739
13740         * genattrtab.c (write_attr_get): Within the generated get_attr_
13741         functions, rename param "insn" to "uncast_insn" and reintroduce
13742         "insn" as an local rtx_insn * using a checked cast, so that "insn"
13743         is an rtx_insn * within insn-attrtab.c
13744
13745 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13746
13747         * output.h (peephole): Strengthen return type from rtx to
13748         rtx_insn *.
13749         * rtl.h (delete_for_peephole): Likewise for both params.
13750         * genpeep.c (main): In generated "peephole" function, strengthen
13751         return type and local "insn" from rtx to rtx_insn *.  For now,
13752         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
13753         rtx_insn *, with a checked cast.
13754         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
13755         locals "insn", "next", "prev" from rtx to rtx_insn *.
13756
13757 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
13758
13759         PR tree-optimization/62112
13760         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
13761         * gimple-iterator.h (gsi_replace): Return bool.
13762         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
13763         moved from ref_may_alias_global_p.
13764         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
13765         New overloads.
13766         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
13767         (stmt_kills_ref_p_1): Rename...
13768         (stmt_kills_ref_p): ... to this.
13769         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
13770         stmt_kills_ref_p): Declare.
13771         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
13772         Move the self-assignment case...
13773         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
13774
13775 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13776
13777         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
13778
13779         * emit-rtl.c (try_split): Likewise, also for locals "before" and
13780         "after".  For now, don't strengthen param "trial", which requires
13781         adding checked casts when returning it.
13782
13783 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13784
13785         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
13786         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
13787         "var_location" hook from rtx to rtx_insn *.
13788         (debug_nothing_rtx): Delete in favor of...
13789         (debug_nothing_rtx_code_label): New prototype.
13790         (debug_nothing_rtx_rtx): Delete unused prototype.
13791         (debug_nothing_rtx_insn): New prototype.
13792
13793         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
13794         invoking debug_hooks->var_location (in two places, one in a NOTE
13795         case of a switch statement, the other guarded by a CALL_P
13796         conditional.  Add checked cast to rtx_code_label * when invoking
13797         debug_hooks->label (within CODE_LABEL case of switch statement).
13798
13799         * dbxout.c (dbx_debug_hooks): Update "label" hook from
13800         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
13801         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
13802         (xcoff_debug_hooks): Likewise.
13803         * debug.c (do_nothing_debug_hooks): Likewise.
13804         (debug_nothing_rtx): Delete in favor of...
13805         (debug_nothing_rtx_insn): New function.
13806         (debug_nothing_rtx_rtx): Delete unused function.
13807         (debug_nothing_rtx_code_label): New function.
13808         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
13809         debug_nothing_rtx to debug_nothing_rtx_code_label.
13810         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
13811         to rtx_insn *.
13812         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
13813         debug_nothing_rtx to debug_nothing_rtx_insn.
13814         (sdbout_label): Strengthen param "insn" from rtx to
13815         rtx_code_label *.
13816         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
13817         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
13818         "var_location" hook from debug_nothing_rtx to
13819         debug_nothing_rtx_insn.
13820
13821 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13822
13823         * recog.h (insn_output_fn): Update this function typedef to match
13824         the changes below to the generated output functions, strengthening
13825         the 2nd param from rtx to rtx_insn *.
13826
13827         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
13828         insn when invoking an output function, to match the new signature
13829         of insn_output_fn with a stronger second param.
13830
13831         * genconditions.c (write_header): In the generated code for
13832         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
13833         to match the other changes in this patch.
13834
13835         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
13836         the generated "gen_" functions from rtx to rtx_insn * within their
13837         implementations.
13838
13839         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
13840         the subfunctions within the generated "recog_", "split", "peephole2"
13841         function trees from rtx to rtx_insn *.  For now, the top-level
13842         generated functions ("recog", "split", "peephole2") continue to
13843         take a plain rtx for "insn", to avoid introducing dependencies on
13844         other patches.  Rename this 2nd param from "insn" to
13845         "uncast_insn", and reintroduce "insn" as a local variable of type
13846         rtx_insn *, initialized at the top of the generated function with
13847         a checked cast on "uncast_insn".
13848         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
13849         the generated "gen_" functions from rtx to rtx_insn * within their
13850         prototypes.
13851
13852         * genoutput.c (process_template): Strengthen the 2nd param within
13853         the generated "output_" functions "insn" from rtx to rtx_insn *.
13854
13855 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
13856
13857         * tree-profile.c (tree_profiling): Skip external functions
13858         when doing coverage instrumentation.
13859         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
13860
13861 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13862
13863         * config/rs6000/altivec.h (vec_cpsgn): New #define.
13864         (vec_mergee): Likewise.
13865         (vec_mergeo): Likewise.
13866         (vec_cntlz): Likewise.
13867         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
13868         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
13869         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
13870         VMRGEW, and VMRGOW.
13871         * doc/extend.texi: Document various forms of vec_cpsgn,
13872         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
13873         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
13874         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
13875         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
13876         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
13877
13878 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13879
13880         * config/rs6000/rs6000.c (context.h): New include.
13881         (tree-pass.h): Likewise.
13882         (make_pass_analyze_swaps): New decl.
13883         (rs6000_option_override): Register pass_analyze_swaps.
13884         (swap_web_entry): New subsclass of web_entry_base (df.h).
13885         (special_handling_values): New enum.
13886         (union_defs): New function.
13887         (union_uses): Likewise.
13888         (insn_is_load_p): Likewise.
13889         (insn_is_store_p): Likewise.
13890         (insn_is_swap_p): Likewise.
13891         (rtx_is_swappable_p): Likewise.
13892         (insn_is_swappable_p): Likewise.
13893         (chain_purpose): New enum.
13894         (chain_contains_only_swaps): New function.
13895         (mark_swaps_for_removal): Likewise.
13896         (swap_const_vector_halves): Likewise.
13897         (adjust_subreg_index): Likewise.
13898         (permute_load): Likewise.
13899         (permute_store): Likewise.
13900         (handle_special_swappables): Likewise.
13901         (replace_swap_with_copy): Likewise.
13902         (dump_swap_insn_table): Likewise.
13903         (rs6000_analyze_swaps): Likewise.
13904         (pass_data_analyze_swaps): New pass_data.
13905         (pass_analyze_swaps): New rtl_opt_pass.
13906         (make_pass_analyze_swaps): New function.
13907         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
13908
13909 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13910
13911         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
13912         type from rtx to rtx_insn *.
13913         (create_copy_of_insn_rtx): Likewise.
13914         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
13915         (create_copy_of_insn_rtx): Likewise, also for local "res".
13916
13917 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13918
13919         * rtl.h (find_first_parameter_load): Strengthen return type from
13920         rtx to rtx_insn *.
13921         * rtlanal.c (find_first_parameter_load): Strengthen return type
13922         from rtx to rtx_insn *.  Add checked cast for now, to postpone
13923         strengthening the params.
13924
13925 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13926
13927         PR fortran/44054
13928         * diagnostic.c: Set default caret.
13929         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
13930         line is needed.
13931         * diagnostic.h (struct diagnostic_context):
13932
13933 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13934
13935         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
13936         (sel_bb_head): Strengthen return type insn_t (currently just an
13937         rtx) to rtx_insn *.
13938         (sel_bb_end): Likewise.
13939
13940         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
13941         (sel_bb_head): Strengthen return type and local "head" from
13942         insn_t (currently just an rtx) to rtx_insn *.
13943         (sel_bb_end): Likewise for return type.
13944         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
13945         working with insn.
13946
13947 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
13948
13949         * basic-block.h (get_last_bb_insn): Strengthen return type from
13950         rtx to rtx_insn *.
13951         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
13952         end".
13953
13954 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13955
13956         PR fortran/44054
13957         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
13958         to here ...
13959         (diagnostic_report_diagnostic): ... from here.
13960         * toplev.c (general_init): Move code to c-family.
13961
13962 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13963
13964         * df.h (web_entry_base): Replace existing struct web_entry with a
13965         new class web_entry_base with only the predecessor member.
13966         (unionfind_root): Remove declaration and move to class member.
13967         (unionfind_union): Remove declaration and move to friend
13968         function.
13969         (union_defs): Remove declaration.
13970         * web.c (web_entry_base::unionfind_root): Modify to be member
13971         function and adjust accessors.
13972         (unionfind_union): Modify to be friend function and adjust
13973         accessors.
13974         (web_entry): New subclass of web_entry_base containing the reg
13975         member.
13976         (union_match_dups): Modify for struct -> class changes.
13977         (union_defs): Likewise.
13978         (entry_register): Likewise.
13979         (pass_web::execute): Likewise.
13980
13981 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
13982
13983         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
13984         builtin define __VEC_ELEMENT_REG_ORDER__.
13985
13986 2014-08-20  Martin Jambor  <mjambor@suse.cz>
13987             Wei Mi  <wmi@google.com>
13988
13989         PR ipa/60449
13990         PR middle-end/61776
13991         * tree-ssa-operands.c (update_stmt_operands): Remove
13992         MODIFIED_NORETURN_CALLS.
13993         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
13994         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
13995         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
13996         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
13997         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
13998         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
13999         (gimple_call_set_ctrl_altering): New func.
14000         (gimple_call_ctrl_altering_p): Ditto.
14001         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14002         (make_blocks): Use gimple_call_initialize_ctrl_altering.
14003         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14004         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14005         remove MODIFIED_NORETURN_CALLS.
14006
14007 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14008
14009         * coverage.c (coverage_compute_profile_id): Return non-0;
14010         also handle symbols with unique name.
14011         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14012
14013 2014-08-20  Steve Ellcey  <sellcey@mips.com>
14014
14015         PR middle-end/49191
14016         * doc/sourcebuild.texi (non_strict_align): New.
14017
14018 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14019
14020         * cgraphunit.c (ipa_passes, compile): Reshedule
14021         symtab_remove_unreachable_nodes passes; update comments.
14022         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14023         TODO_remove_functions before the pass; the functions ought to be
14024         already removed.
14025         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14026         TODO_remove_functions.
14027         * passes.c (pass_data_early_local_passes): Do not schedule function
14028         removal.
14029         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14030
14031 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14032
14033         PR c/59304
14034         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14035         before setting the option.
14036         * diagnostic.c (diagnostic_classify_diagnostic): Record
14037         command-line status.
14038
14039 2014-08-20  Richard Biener  <rguenther@suse.de>
14040
14041         PR lto/62190
14042         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14043         to build uint{16,32,64}_type_node.
14044
14045 2014-08-20  Terry Guo  <terry.guo@arm.com>
14046
14047         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14048         with immediate_operand.
14049
14050 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
14051
14052         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14053         "insn" from an as_a to a safe_as_a, for the case when "insn" is
14054         NULL.
14055
14056 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14057
14058         PR preprocessor/51303
14059         * incpath.c (remove_duplicates): Use cpp_warning.
14060
14061 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14062
14063         PR c/60975
14064         PR c/53063
14065         * doc/options.texi (CPP): Document it.
14066         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14067         * optc-gen.awk: Handle CPP.
14068         * opth-gen.awk: Likewise.
14069
14070 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14071
14072         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14073         rtx_insn *.
14074         (duplicate_insn_chain): Likewise.
14075         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14076         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
14077         checked cast for now (until we can strengthen the params in the
14078         same way).
14079         (duplicate_insn_chain): Likewise.
14080
14081 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14082
14083         * rtl.h (next_cc0_user): Strengthen return type from rtx to
14084         rtx_insn *.
14085         (prev_cc0_setter): Likewise.
14086
14087         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14088         rtx_insn *, adding checked casts for now as necessary.
14089         (prev_cc0_setter): Likewise.
14090
14091 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14092
14093         * expr.h (emit_move_insn): Strengthen return type from rtx to
14094         rtx_insn *.
14095         (emit_move_insn_1): Likewise.
14096         (emit_move_complex_push): Likewise.
14097         (emit_move_complex_parts): Likewise.
14098
14099         * expr.c (emit_move_via_integer): Strengthen return type from rtx
14100         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
14101         with insns.
14102         (emit_move_complex_push): Strengthen return type from rtx to
14103         rtx_insn *.
14104         (emit_move_complex): Likewise, also for local "ret".
14105         (emit_move_ccmode): Likewise.
14106         (emit_move_multi_word): Likewise for return type and locals
14107         "last_insn", "seq".
14108         (emit_move_insn_1): Likewise for return type and locals "result",
14109         "ret".
14110         (emit_move_insn): Likewise for return type and local "last_insn".
14111         (compress_float_constant): Likewise.
14112
14113 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14114
14115         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14116         from rtx to rtx_insn *.
14117
14118         * rtl.h (emit_insn_before): Likewise.
14119         (emit_insn_before_noloc): Likewise.
14120         (emit_insn_before_setloc): Likewise.
14121         (emit_jump_insn_before): Likewise.
14122         (emit_jump_insn_before_noloc): Likewise.
14123         (emit_jump_insn_before_setloc): Likewise.
14124         (emit_call_insn_before): Likewise.
14125         (emit_call_insn_before_noloc): Likewise.
14126         (emit_call_insn_before_setloc): Likewise.
14127         (emit_debug_insn_before): Likewise.
14128         (emit_debug_insn_before_noloc): Likewise.
14129         (emit_debug_insn_before_setloc): Likewise.
14130         (emit_label_before): Likewise.
14131         (emit_insn_after): Likewise.
14132         (emit_insn_after_noloc): Likewise.
14133         (emit_insn_after_setloc): Likewise.
14134         (emit_jump_insn_after): Likewise.
14135         (emit_jump_insn_after_noloc): Likewise.
14136         (emit_jump_insn_after_setloc): Likewise.
14137         (emit_call_insn_after): Likewise.
14138         (emit_call_insn_after_noloc): Likewise.
14139         (emit_call_insn_after_setloc): Likewise.
14140         (emit_debug_insn_after): Likewise.
14141         (emit_debug_insn_after_noloc): Likewise.
14142         (emit_debug_insn_after_setloc): Likewise.
14143         (emit_label_after): Likewise.
14144         (emit_insn): Likewise.
14145         (emit_debug_insn): Likewise.
14146         (emit_jump_insn): Likewise.
14147         (emit_call_insn): Likewise.
14148         (emit_label): Likewise.
14149         (gen_clobber): Likewise.
14150         (emit_clobber): Likewise.
14151         (gen_use): Likewise.
14152         (emit_use): Likewise.
14153         (emit): Likewise.
14154
14155         (emit_barrier_before): Strengthen return type from rtx to
14156         rtx_barrier *.
14157         (emit_barrier_after): Likewise.
14158         (emit_barrier): Likewise.
14159
14160         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
14161         from rtx to rtx_insn *.  Add checked casts for now when converting
14162         "last" from rtx to rtx_insn *.
14163         (emit_insn_before_noloc): Likewise for return type.
14164         (emit_jump_insn_before_noloc): Likewise.
14165         (emit_call_insn_before_noloc): Likewise.
14166         (emit_debug_insn_before_noloc): Likewise.
14167         (emit_barrier_before): Strengthen return type and local "insn"
14168         from rtx to rtx_barrier *.
14169         (emit_label_before): Strengthen return type from rtx to
14170         rtx_insn *.  Add checked cast for now when returning param
14171         (emit_pattern_after_noloc): Strengthen return type from rtx to
14172         rtx_insn *.  Add checked casts for now when converting "last" from
14173         rtx to rtx_insn *.
14174         (emit_insn_after_noloc): Strengthen return type from rtx to
14175         rtx_insn *.
14176         (emit_jump_insn_after_noloc): Likewise.
14177         (emit_call_insn_after_noloc): Likewise.
14178         (emit_debug_insn_after_noloc): Likewise.
14179         (emit_barrier_after): Strengthen return type from rtx to
14180         rtx_barrier *.
14181         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14182         Add checked cast for now when converting "label" from rtx to
14183         rtx_insn *.
14184         (emit_pattern_after_setloc): Strengthen return type from rtx to
14185         rtx_insn *.  Add checked casts for now when converting "last" from
14186         rtx to rtx_insn *.
14187         (emit_pattern_after): Strengthen return type from rtx to
14188         rtx_insn *.
14189         (emit_insn_after_setloc): Likewise.
14190         (emit_insn_after): Likewise.
14191         (emit_jump_insn_after_setloc): Likewise.
14192         (emit_jump_insn_after): Likewise.
14193         (emit_call_insn_after_setloc): Likewise.
14194         (emit_call_insn_after): Likewise.
14195         (emit_debug_insn_after_setloc): Likewise.
14196         (emit_debug_insn_after): Likewise.
14197         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
14198         when converting "last" from rtx to rtx_insn *.
14199         (emit_pattern_before): Strengthen return type from rtx to
14200         rtx_insn *.
14201         (emit_insn_before_setloc): Likewise.
14202         (emit_insn_before): Likewise.
14203         (emit_jump_insn_before_setloc): Likewise.
14204         (emit_jump_insn_before): Likewise.
14205         (emit_call_insn_before_setloc): Likewise.
14206         (emit_call_insn_before): Likewise.
14207         (emit_debug_insn_before_setloc): Likewise.
14208         (emit_debug_insn_before): Likewise.
14209         (emit_insn): Strengthen return type and locals "last", "insn",
14210         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
14211         within cases where we know we have an insn.
14212         (emit_debug_insn): Likewise.
14213         (emit_jump_insn): Likewise.
14214         (emit_call_insn): Strengthen return type and local "insn" from rtx
14215         to rtx_insn *.
14216         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
14217         a checked cast to rtx_insn * for now on "label".
14218         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
14219         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
14220         (emit_use): Likewise.
14221         (gen_use): Likewise, also for local "seq".
14222         (emit): Likewise for return type and local "insn".
14223         (rtx_insn): Likewise for return type and local "new_rtx".
14224
14225         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
14226         from rtx to rtx_barrier *.
14227
14228         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
14229         changed return type from rtx to rtx_insn *, we must update
14230         "emit_fn" type, and this in turn means updating...
14231         (frame_insn): ...this.  Strengthen return type from rtx to
14232         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
14233
14234 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14235
14236         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
14237         rtx to rtx_jump_table_data *.  Also for local.
14238         * rtl.h (emit_jump_table_data): Likewise.
14239
14240 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14241
14242         * basic-block.h (create_basic_block_structure): Strengthen third
14243         param "bb_note" from rtx to rtx_note *.
14244         * rtl.h (emit_note_before): Strengthen return type from rtx to
14245         rtx_note *.
14246         (emit_note_after): Likewise.
14247         (emit_note): Likewise.
14248         (emit_note_copy): Likewise.  Also, strengthen param similarly.
14249         * function.h (struct rtl_data): Strengthen field
14250         "x_stack_check_probe_note" from rtx to rtx_note *.
14251
14252         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14253         from rtx to rtx_note *.
14254         * cfgrtl.c (create_basic_block_structure): Strengthen third param
14255         "bb_note" from rtx to rtx_note *.
14256         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
14257         when calling emit_note_copy.
14258         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14259         rtx_note *.
14260         (emit_note_after): Likewise.
14261         (emit_note_before): Likewise.
14262         (emit_note_copy): Likewise.  Also, strengthen param similarly.
14263         (emit_note): Likewise.
14264         * except.c (emit_note_eh_region_end): Likewise for return type.
14265         Strengthen local "next" from rtx to rtx_insn *.
14266         (convert_to_eh_region_ranges): Strengthen local "note"
14267         from rtx to rtx_note *.
14268         * final.c (change_scope): Likewise.
14269         (reemit_insn_block_notes): Likewise, for both locals named "note".
14270         Also, strengthen local "insn" from rtx to rtx_insn *.
14271         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14272         rtx to rtx_note *.
14273         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14274         strengthen local "seq" from rtx to rtx_insn *.
14275         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14276         to rtx_note *.
14277         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14278         vec<rtx_note *>.
14279         (get_bb_note_from_pool): Strengthen return type from rtx to
14280         rtx_note *.
14281         (sel_create_basic_block): Strengthen local "new_bb_note" from
14282         insn_t to rtx_note *.
14283         * var-tracking.c (emit_note_insn_var_location): Strengthen local
14284         "note" from rtx to rtx_note *.
14285         (emit_notes_in_bb): Likewise.
14286
14287 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14288
14289         * function.h (struct rtl_data): Strengthen field
14290         "x_parm_birth_insn" from rtx to rtx_insn *.
14291         * function.c (struct assign_parm_data_all): Strengthen fields
14292         "first_conversion_insn" and "last_conversion_insn" from rtx to
14293         rtx_insn *.
14294
14295 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14296
14297         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14298         to rtx_insn *; also for local "var_end_seq".
14299         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14300         (maybe_cleanup_end_of_block): Likewise for param "last" and local
14301         "insn".
14302         (expand_gimple_cond): Likewise for locals "last2" and "last".
14303         (mark_transaction_restart_calls): Likewise for local "insn".
14304         (expand_gimple_stmt): Likewise for return type and locals "last"
14305         and "insn".
14306         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14307         (avoid_complex_debug_insns): Likewise for param "insn".
14308         (expand_debug_locations): Likewise for locals "insn", "last",
14309         "prev_insn" and "insn2".
14310         (expand_gimple_basic_block): Likewise for local "last".
14311         (construct_exit_block): Likewise for locals "head", "end",
14312         "orig_end".
14313         (pass_expand::execute): Likewise for locals "var_seq",
14314         "var_ret_seq", "next".
14315
14316 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14317
14318         * asan.h (asan_emit_stack_protection): Strengthen return type from
14319         rtx to rtx_insn *.
14320         * asan.c (asan_emit_stack_protection): Likewise.  Add local
14321         "insns" to hold the return value.
14322
14323 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14324
14325         * basic-block.h (bb_note): Strengthen return type from rtx to
14326         rtx_note *.
14327         * sched-int.h (bb_note): Likewise.
14328         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
14329
14330 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14331
14332         * rtl.h (make_insn_raw): Strengthen return type from rtx to
14333         rtx_insn *.
14334
14335         * emit-rtl.c (make_insn_raw): Strengthen return type and local
14336         "insn" from rtx to rtx_insn *.
14337         (make_debug_insn_raw): Strengthen return type from rtx to
14338         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14339         (make_jump_insn_raw):  Strengthen return type from rtx to
14340         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14341         (make_call_insn_raw):  Strengthen return type from rtx to
14342         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14343         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14344         callback from rtx to rtx_insn *; likewise for local "insn" and
14345         "next", adding a checked cast to rtx_insn in the relevant cases of
14346         the switch statement.
14347         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14348         callback from rtx to rtx_insn *.
14349         (emit_pattern_after_setloc): Likewise.
14350         (emit_pattern_after): Likewise.
14351         (emit_pattern_before_setloc): Likewise.
14352         (emit_pattern_before): Likewise.
14353
14354 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14355
14356         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
14357         rtx_call_insn *.
14358         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
14359         accepting an rtx_insn *.
14360         (last_call_insn): Strengthen return type from rtx to
14361         rtx_call_insn *.
14362
14363 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14364
14365         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
14366         "insns" from rtx to rtx_insn *.
14367         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
14368         locals "insn" and "prev".
14369
14370 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14371
14372         * rtl.h (tablejump_p): Strengthen third param from rtx * to
14373         rtx_jump_table_data **.
14374
14375         * cfgbuild.c (make_edges): Introduce local "table", using it in
14376         place of "tmp" for jump table data.
14377         (find_bb_boundaries): Strengthen local "table" from rtx to
14378         rtx_jump_table_data *.
14379         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14380         (outgoing_edges_match): Likewise for locals "table1" and "table2".
14381         (try_crossjump_to_edge): Likewise.
14382         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
14383         "table".
14384         (patch_jump_insn): Introduce local "table", using it in place of
14385         "tmp" for jump table data.
14386         (force_nonfallthru_and_redirect): Introduce local "table", so that
14387         call to tablejump_p can receive an rtx_jump_table_data **.  Update
14388         logic around the call to overwrite "note" appropriately if
14389         tablejump_p returns non-zero.
14390         (get_last_bb_insn): Introduce local "table", using it in place of
14391         "tmp" for jump table data.
14392         * dwarf2cfi.c (create_trace_edges): Likewise.
14393
14394         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
14395         from rtx to rtx_jump_table_data *.
14396         (create_fix_barrier): Strengthen local "tmp" from rtx to
14397         rtx_jump_table_data *.
14398         (arm_reorg): Likewise for local "table".
14399
14400         * config/s390/s390.c (s390_chunkify_start): Likewise.
14401
14402         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
14403
14404         * jump.c (delete_related_insns): Strengthen local "lab_next" from
14405         rtx to rtx_jump_table_data *.
14406
14407         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
14408         rtx_jump_table_data **.  Add a checked cast when writing through
14409         the pointer: we know there that local "table" is non-NULL and that
14410         JUMP_TABLE_DATA_P (table) holds.
14411         (label_is_jump_target_p): Introduce local "table", using it in
14412         place of "tmp" for jump table data.
14413
14414 2014-08-19  Marek Polacek  <polacek@redhat.com>
14415
14416         PR c++/62153
14417         * doc/invoke.texi: Document -Wbool-compare.
14418
14419 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14420
14421         * rtl.h (entry_of_function): Strengthen return type from rtx to
14422         rtx_insn *.
14423         * cfgrtl.c (entry_of_function): Likewise.
14424
14425 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14426
14427         * emit-rtl.h (get_insns): Strengthen return type from rtx to
14428         rtx_insn *, adding a checked cast for now.
14429         (get_last_insn): Likewise.
14430
14431 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14432
14433         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
14434         rtx_code_label *.
14435
14436         * emit-rtl.c (gen_label_rtx): Likewise.
14437
14438 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14439
14440         * rtl.h (previous_insn): Strengthen return type from rtx to
14441         rtx_insn *.
14442         (next_insn): Likewise.
14443         (prev_nonnote_insn): Likewise.
14444         (prev_nonnote_insn_bb): Likewise.
14445         (next_nonnote_insn): Likewise.
14446         (next_nonnote_insn_bb): Likewise.
14447         (prev_nondebug_insn): Likewise.
14448         (next_nondebug_insn): Likewise.
14449         (prev_nonnote_nondebug_insn): Likewise.
14450         (next_nonnote_nondebug_insn): Likewise.
14451         (prev_real_insn): Likewise.
14452         (next_real_insn): Likewise.
14453         (prev_active_insn): Likewise.
14454         (next_active_insn): Likewise.
14455
14456         * emit-rtl.c (next_insn): Strengthen return type from rtx to
14457         rtx_insn *, adding a checked cast.
14458         (previous_insn): Likewise.
14459         (next_nonnote_insn): Likewise.
14460         (next_nonnote_insn_bb): Likewise.
14461         (prev_nonnote_insn): Likewise.
14462         (prev_nonnote_insn_bb): Likewise.
14463         (next_nondebug_insn): Likewise.
14464         (prev_nondebug_insn): Likewise.
14465         (next_nonnote_nondebug_insn): Likewise.
14466         (prev_nonnote_nondebug_insn): Likewise.
14467         (next_real_insn): Likewise.
14468         (prev_real_insn): Likewise.
14469         (next_active_insn): Likewise.
14470         (prev_active_insn): Likewise.
14471
14472         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
14473         param "stepfunc" so that it returns an rtx_insn * rather than an
14474         rtx, to track the change to prev_nonnote_insn_bb, which is the
14475         only function this is called with.
14476         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
14477
14478 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
14479
14480         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
14481         assert.
14482
14483 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14484
14485         * coretypes.h (class rtx_debug_insn): Add forward declaration.
14486         (class rtx_nonjump_insn): Likewise.
14487         (class rtx_jump_insn): Likewise.
14488         (class rtx_call_insn): Likewise.
14489         (class rtx_jump_table_data): Likewise.
14490         (class rtx_barrier): Likewise.
14491         (class rtx_code_label): Likewise.
14492         (class rtx_note): Likewise.
14493
14494         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
14495         adding the invariant DEBUG_INSN_P (X).
14496         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
14497         the invariant NONJUMP_INSN_P (X).
14498         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
14499         the invariant JUMP_P (X).
14500         (class rtx_call_insn): New, a subclass of rtx_insn, adding
14501         the invariant CALL_P (X).
14502         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
14503         invariant JUMP_TABLE_DATA_P (X).
14504         (class rtx_barrier): New, a subclass of rtx_insn, adding the
14505         invariant BARRIER_P (X).
14506         (class rtx_code_label): New, a subclass of rtx_insn, adding
14507         the invariant LABEL_P (X).
14508         (class rtx_note): New, a subclass of rtx_insn, adding
14509         the invariant NOTE_P(X).
14510         (is_a_helper <rtx_debug_insn *>::test): New.
14511         (is_a_helper <rtx_nonjump_insn *>::test): New.
14512         (is_a_helper <rtx_jump_insn *>::test): New.
14513         (is_a_helper <rtx_call_insn *>::test): New.
14514         (is_a_helper <rtx_jump_table_data *>::test): New functions,
14515         overloaded for both rtx and rtx_insn *.
14516         (is_a_helper <rtx_barrier *>::test): New.
14517         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
14518         for both rtx and rtx_insn *.
14519         (is_a_helper <rtx_note *>::test): New.
14520
14521 2014-08-19  Marek Polacek  <polacek@redhat.com>
14522
14523         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
14524         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14525         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
14526         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14527
14528 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14529
14530         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
14531         rtx_insn *.  To help with transition, for now, convert from an
14532         access macro into a pair of functions: BND_TO, returning an
14533         rtx_insn *, and...
14534         (SET_BND_TO): New function, for use where BND_TO is used as an
14535         lvalue.
14536
14537         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
14538         SET_BND_TO.
14539         (BND_TO): New function, adding a checked cast.
14540         (SET_BND_TO): New function.
14541
14542         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
14543         SET_BND_TO.
14544         (compute_av_set_on_boundaries): Likewise.
14545
14546 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
14547
14548         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
14549         destination if it is used in source.
14550         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
14551         (*popcount<mode>2_falsedep_1): Likewise.
14552
14553 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
14554
14555         PR other/62168
14556         * configure.ac: Set install_gold_as_default to no first.
14557         * configure: Regenerated.
14558
14559 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14560
14561         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
14562         "note_list" field will eventually be an rtx_insn *.  To help with
14563         transition, for now, convert from an access macro into a pair of
14564         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
14565         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
14566         used as an lvalue.
14567
14568         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
14569         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
14570
14571         * sel-sched-ir.c (init_bb): Likewise.
14572         (sel_restore_notes): Likewise.
14573         (move_bb_info): Likewise.
14574         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
14575         (SET_BB_NOTE_LIST): New function.
14576
14577 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14578
14579         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
14580         field will eventually be an rtx_insn *.  To help with transition,
14581         for now, convert from an access macro into a pair of functions:
14582         VINSN_INSN_RTX, returning an rtx_insn *, and...
14583         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
14584         is used as an lvalue.
14585
14586         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
14587         SET_VINSN_INSN_RTX where it's used as an lvalue.
14588         (VINSN_INSN_RTX): New function.
14589         (SET_VINSN_INSN_RTX): New function.
14590
14591 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14592
14593         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
14594         eventually be rtx_insn *, but to help with transition, for now,
14595         convert from an access macro into a pair of functions: DEP_PRO
14596         returning an rtx_insn * and...
14597         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
14598         lvalue, returning an rtx&.
14599         (DEP_CON): Analogous changes to DEP_PRO above.
14600         (SET_DEP_CON): Likewise.
14601
14602         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14603         an lvalue to SET_DEP_CON.
14604         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14605         (sd_copy_back_deps): Likewise for DEP_CON.
14606         (DEP_PRO): New function, adding a checked cast for now.
14607         (DEP_CON): Likewise.
14608         (SET_DEP_PRO): New function.
14609         (SET_DEP_CON): Likewise.
14610
14611 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
14612
14613         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14614         (extra_options): Add i386/cygwin.opt.
14615         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14616         (CPP_SPEC): Accept -pthread.
14617         (LINK_SPEC): Ditto.
14618         (GOMP_SELF_SPECS): Update comment.
14619         * config/i386/cygwin.opt: New file for -pthread flag.
14620
14621 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14622
14623         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14624         * df.h (DF_REF_INSN): Convert from a macro to a function, so
14625         that we can return an rtx_insn *.
14626
14627 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
14628
14629         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14630         when building executables, not DLLs.  Add --large-address-aware
14631         under the same conditions.
14632         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14633         when building executables, not DLLs.  Add --large-address-aware
14634         under the same conditions when using -m32.
14635
14636         * config/i386/cygwin-stdint.h: Throughout, make type
14637         definitions dependent on target architecture, not host.
14638
14639 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14640
14641         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
14642         the return type from rtx to rtx_insn *,  which will enable various
14643         conversions in followup patches.  For now this is is done by a
14644         checked cast.
14645         (NEXT_INSN): Likewise.
14646         (SET_PREV_INSN): Convert to an inline function.  This is intended
14647         for use as an lvalue, and so returns an rtx& to allow in-place
14648         modification.
14649         (SET_NEXT_INSN): Likewise.
14650
14651 2014-07-08  Mark Wielaard  <mjw@redhat.com>
14652
14653         PR debug/59051
14654         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14655
14656 2014-08-19  Marek Polacek  <polacek@redhat.com>
14657
14658         PR c/61271
14659         * cgraphunit.c (handle_alias_pairs): Fix condition.
14660
14661 2014-08-19  Richard Biener  <rguenther@suse.de>
14662
14663         * gimple-fold.c (fold_gimple_assign): Properly build a
14664         null-pointer constant when devirtualizing addresses.
14665
14666 2014-07-07  Mark Wielaard  <mjw@redhat.com>
14667
14668         * dwarf2out.c (decl_quals): New function.
14669         (modified_type_die): Take one cv_quals argument instead of two,
14670         one for const and one for volatile.
14671         (add_type_attribute): Likewise.
14672         (generic_parameter_die): Call add_type_attribute with one modifier
14673         argument.
14674         (base_type_for_mode): Likewise.
14675         (add_bounds_info): Likewise.
14676         (add_subscript_info): Likewise.
14677         (gen_array_type_die): Likewise.
14678         (gen_descr_array_type_die): Likewise.
14679         (gen_entry_point_die): Likewise.
14680         (gen_enumeration_type_die): Likewise.
14681         (gen_formal_parameter_die): Likewise.
14682         (gen_subprogram_die): Likewise.
14683         (gen_variable_die): Likewise.
14684         (gen_const_die): Likewise.
14685         (gen_field_die): Likewise.
14686         (gen_pointer_type_die): Likewise.
14687         (gen_reference_type_die): Likewise.
14688         (gen_ptr_to_mbr_type_die): Likewise.
14689         (gen_inheritance_die): Likewise.
14690         (gen_subroutine_type_die): Likewise.
14691         (gen_typedef_die): Likewise.
14692         (force_type_die): Likewise.
14693
14694 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14695
14696         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
14697         if unset.
14698         * configure: Regenerate.
14699
14700 2014-08-19  Richard Biener  <rguenther@suse.de>
14701
14702         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
14703         DECL_EXTERNALs in BLOCKs as non-references.
14704         * tree-streamer-out.c (streamer_write_chain): Likewise.
14705
14706 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14707             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14708             Anna Tikhonova  <anna.tikhonova@intel.com>
14709             Ilya Tocar  <ilya.tocar@intel.com>
14710             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14711             Ilya Verbin  <ilya.verbin@intel.com>
14712             Kirill Yukhin  <kirill.yukhin@intel.com>
14713             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14714
14715         * config/i386/sse.md
14716         (define_mode_iterator VI48_AVX512F): Delete.
14717         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14718         (define_mode_iterator VI2_AVX512VL): Ditto.
14719         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14720         Delete.
14721         (define_insn
14722         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14723         New.
14724         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14725         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14726         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14727         with VI48_AVX512F_AVX512VL): New.
14728         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14729         with VI2_AVX512VL): Ditto.
14730
14731 2014-08-19  Marek Polacek  <polacek@redhat.com>
14732
14733         * doc/invoke.texi: Document -Wc99-c11-compat.
14734
14735 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14736
14737         * rtl.h (PREV_INSN): Split macro in two: the existing one,
14738         for rvalues, and...
14739         (SET_PREV_INSN): New macro, for use as an lvalue.
14740         (NEXT_INSN, SET_NEXT_INSN): Likewise.
14741
14742         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14743         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14744         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14745         (fixup_abnormal_edges): Likewise.
14746         (unlink_insn_chain): Likewise.
14747         (fixup_reorder_chain): Likewise.
14748         (cfg_layout_delete_block): Likewise.
14749         (cfg_layout_merge_blocks): Likewise.
14750         * combine.c (update_cfg_for_uncondjump): Likewise.
14751         * emit-rtl.c (link_insn_into_chain): Likewise.
14752         (remove_insn): Likewise.
14753         (delete_insns_since): Likewise.
14754         (reorder_insns_nobb): Likewise.
14755         (emit_insn_after_1): Likewise.
14756         * final.c (rest_of_clean_state): Likewise.
14757         (final_scan_insn): Likewise.
14758         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
14759         * haifa-sched.c (concat_note_lists): Likewise.
14760         (remove_notes): Likewise.
14761         (restore_other_notes): Likewise.
14762         (move_insn): Likewise.
14763         (unlink_bb_notes): Likewise.
14764         (restore_bb_notes): Likewise.
14765         * jump.c (delete_for_peephole): Likewise.
14766         * optabs.c (emit_libcall_block_1): Likewise.
14767         * reorg.c (emit_delay_sequence): Likewise.
14768         (fill_simple_delay_slots): Likewise.
14769         * sel-sched-ir.c (sel_move_insn): Likewise.
14770         (sel_remove_insn): Likewise.
14771         (get_bb_note_from_pool): Likewise.
14772         * sel-sched.c (move_nop_to_previous_block): Likewise.
14773
14774         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
14775         * config/c6x/c6x.c (gen_one_bundle): Likewise.
14776         (c6x_gen_bundles): Likewise.
14777         (hwloop_optimize): Likewise.
14778         * config/frv/frv.c (frv_function_prologue): Likewise.
14779         (frv_register_nop): Likewise.
14780         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
14781         (ia64_reorg): Likewise.
14782         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
14783         (mep_make_bundle): Likewise.
14784         (mep_bundle_insns): Likewise.
14785         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
14786         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
14787         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
14788
14789 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14790
14791         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
14792         return type from rtx to rtx_insn *.
14793         (BB_END): Likewise.
14794         (BB_HEADER): Likewise.
14795         (BB_FOOTER): Likewise.
14796         (SET_BB_HEAD): Convert to a function.
14797         (SET_BB_END): Likewise.
14798         (SET_BB_HEADER): Likewise.
14799         (SET_BB_FOOTER): Likewise.
14800
14801         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
14802         Strengthen the return type from rtx to rtx_insn *.  For now, this
14803         is done by adding a checked cast, but this will eventually
14804         become a field lookup.
14805         (BB_END): Likewise.
14806         (BB_HEADER): Likewise.
14807         (BB_FOOTER): Likewise.
14808         (SET_BB_HEAD): New function, from macro of same name.  This is
14809         intended for use as an lvalue, and so returns an rtx& to allow
14810         in-place modification.
14811         (SET_BB_END): Likewise.
14812         (SET_BB_HEADER): Likewise.
14813         (SET_BB_FOOTER): Likewise.
14814
14815 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14816
14817         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
14818         for rvalues, and...
14819         (SET_BB_HEAD): New macro, for use as a lvalue.
14820         (BB_END, SET_BB_END): Likewise.
14821         (BB_HEADER, SET_BB_HEADER): Likewise.
14822         (BB_FOOTER, SET_BB_FOOTER): Likewise.
14823
14824         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
14825         of BB_* macros into SET_BB_* macros.
14826         (fix_crossing_unconditional_branches): Likewise.
14827         * caller-save.c (save_call_clobbered_regs): Likewise.
14828         (insert_one_insn): Likewise.
14829         * cfgbuild.c (find_bb_boundaries): Likewise.
14830         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14831         (outgoing_edges_match): Likewise.
14832         (try_optimize_cfg): Likewise.
14833         * cfgexpand.c (expand_gimple_cond): Likewise.
14834         (expand_gimple_tailcall): Likewise.
14835         (expand_gimple_basic_block): Likewise.
14836         (construct_exit_block): Likewise.
14837         * cfgrtl.c (delete_insn): Likewise.
14838         (create_basic_block_structure): Likewise.
14839         (rtl_delete_block): Likewise.
14840         (rtl_split_block): Likewise.
14841         (emit_nop_for_unique_locus_between): Likewise.
14842         (rtl_merge_blocks): Likewise.
14843         (block_label): Likewise.
14844         (try_redirect_by_replacing_jump): Likewise.
14845         (emit_barrier_after_bb): Likewise.
14846         (fixup_abnormal_edges): Likewise.
14847         (record_effective_endpoints): Likewise.
14848         (relink_block_chain): Likewise.
14849         (fixup_reorder_chain): Likewise.
14850         (fixup_fallthru_exit_predecessor): Likewise.
14851         (cfg_layout_duplicate_bb): Likewise.
14852         (cfg_layout_split_block): Likewise.
14853         (cfg_layout_delete_block): Likewise.
14854         (cfg_layout_merge_blocks): Likewise.
14855         * combine.c (update_cfg_for_uncondjump): Likewise.
14856         * emit-rtl.c (add_insn_after): Likewise.
14857         (remove_insn): Likewise.
14858         (reorder_insns): Likewise.
14859         (emit_insn_after_1): Likewise.
14860         * haifa-sched.c (get_ebb_head_tail): Likewise.
14861         (restore_other_notes): Likewise.
14862         (move_insn): Likewise.
14863         (sched_extend_bb): Likewise.
14864         (fix_jump_move): Likewise.
14865         * ifcvt.c (noce_process_if_block): Likewise.
14866         (dead_or_predicable): Likewise.
14867         * ira.c (update_equiv_regs): Likewise.
14868         * reg-stack.c (change_stack): Likewise.
14869         * sel-sched-ir.c (sel_move_insn): Likewise.
14870         * sel-sched.c (move_nop_to_previous_block): Likewise.
14871
14872         * config/c6x/c6x.c (hwloop_optimize): Likewise.
14873         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
14874
14875 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14876
14877         * rtl.h (for_each_rtx_in_insn): New function.
14878         * rtlanal.c (for_each_rtx_in_insn): Likewise.
14879
14880 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14881
14882         * coretypes.h (class rtx_insn): Add forward declaration.
14883
14884         * rtl.h: Include is-a.h.
14885         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
14886         workaround to ensure gengtype knows inheritance is occurring,
14887         whilst continuing to use the pre-existing special-casing for
14888         rtx_def.
14889         (class rtx_insn): New subclass of rtx_def, adding the
14890         invariant that we're dealing with something we can sanely use
14891         INSN_UID, NEXT_INSN, PREV_INSN on.
14892         (is_a_helper <rtx_insn *>::test): New.
14893         (is_a_helper <const rtx_insn *>::test): New.
14894
14895 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
14896
14897         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
14898
14899 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
14900
14901         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
14902         comdats as extern.
14903
14904 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
14905
14906         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
14907         to BUILT_IN_UNREACHABLE.
14908
14909 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
14910
14911         PR target/62011
14912         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
14913         New tune flag.
14914         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
14915         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
14916         (ffs<mode>2): Do not expand with tzcnt for
14917         TARGET_AVOID_FALSE_DEP_FOR_BMI.
14918         (ffssi2_no_cmove): Ditto.
14919         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
14920         (ctz<mode>2): New expander.
14921         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
14922         (*ctz<mode>2_falsedep): New insn.
14923         (*ctz<mode>2): Rename from ctz<mode>2.
14924         (clz<mode>2_lzcnt): New expander.
14925         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
14926         (*clz<mode>2_lzcnt_falsedep): New insn.
14927         (*clz<mode>2): Rename from ctz<mode>2.
14928         (popcount<mode>2): New expander.
14929         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
14930         (*popcount<mode>2_falsedep): New insn.
14931         (*popcount<mode>2): Rename from ctz<mode>2.
14932         (*popcount<mode>2_cmp): Remove.
14933         (*popcountsi2_cmp_zext): Ditto.
14934
14935 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
14936
14937         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
14938         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
14939         * config/microblaze/microblaze.h
14940         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
14941
14942 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
14943
14944         PR other/62168
14945         * configure.ac: Set install_gold_as_default to no for
14946         --enable-gold=no.
14947         * configure: Regenerated.
14948
14949 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
14950
14951         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
14952         * config.in: Add undef of HAVE_isl.
14953         * configure: Regenerate.
14954         * configure.ac: Add definition of HAVE_isl.
14955         * graphite-blocking.c: Add checking of HAVE_isl.
14956         * graphite-dependences.c: Likewise.
14957         * graphite-interchange.c: Likewise.
14958         * graphite-isl-ast-to-gimple.c: Likewise.
14959         * graphite-optimize-isl.c: Likewise.
14960         * graphite-poly.c: Likewise.
14961         * graphite-scop-detection.c: Likewise.
14962         * graphite-sese-to-poly.c: Likewise.
14963         * graphite.c: Likewise.
14964         * toplev.c: Replace the checking of HAVE_cloog with the checking
14965         of HAVE_isl.
14966
14967 2014-08-18  Richard Biener  <rguenther@suse.de>
14968
14969         PR tree-optimization/62090
14970         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
14971         (fold_builtin_3): Do not fold snprintf.
14972         (fold_builtin_4): Likewise.
14973         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
14974         moved from builtins.c.
14975         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
14976         (gimple_fold_builtin): Do not fold sprintf here.
14977
14978 2014-08-18  Richard Biener  <rguenther@suse.de>
14979
14980         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
14981         code to ...
14982         (maybe_canonicalize_mem_ref_addr): ... this function.
14983         (fold_stmt_1): Apply it here before all simplification.
14984
14985 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
14986
14987         PR ipa/61800
14988         * cgraph.h (cgraph_node::create_indirect_edge): Add
14989         compute_indirect_info param.
14990         * cgraph.c (cgraph_node::create_indirect_edge): Compute
14991         indirect_info only when it is required.
14992         * cgraphclones.c (cgraph_clone_edge): Do not recompute
14993         indirect_info fore cloned indirect edge.
14994
14995 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14996             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14997             Anna Tikhonova  <anna.tikhonova@intel.com>
14998             Ilya Tocar  <ilya.tocar@intel.com>
14999             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15000             Ilya Verbin  <ilya.verbin@intel.com>
15001             Kirill Yukhin  <kirill.yukhin@intel.com>
15002             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15003
15004         * config/i386/sse.md
15005         (define_mode_iterator VI8_AVX2_AVX512BW): New.
15006         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
15007
15008 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15009             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15010             Anna Tikhonova  <anna.tikhonova@intel.com>
15011             Ilya Tocar  <ilya.tocar@intel.com>
15012             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15013             Ilya Verbin  <ilya.verbin@intel.com>
15014             Kirill Yukhin  <kirill.yukhin@intel.com>
15015             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15016
15017         * config/i386/sse.md
15018         (define_mode_iterator VF1_AVX512VL): New.
15019         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15020         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15021         New.
15022
15023 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15024             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15025             Anna Tikhonova  <anna.tikhonova@intel.com>
15026             Ilya Tocar  <ilya.tocar@intel.com>
15027             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15028             Ilya Verbin  <ilya.verbin@intel.com>
15029             Kirill Yukhin  <kirill.yukhin@intel.com>
15030             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15031
15032         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15033         * config/i386/i386.md
15034         (define_code_iterator any_float): New.
15035         (define_code_attr floatsuffix): New.
15036         * config/i386/sse.md
15037         (define_mode_iterator VF1_128_256VL): New.
15038         (define_mode_iterator VF2_512_256VL): New.
15039         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15040         TARGET check.
15041         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15042         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15043         New.
15044         (define_mode_attr qq2pssuff): New.
15045         (define_mode_attr sselongvecmode): New.
15046         (define_mode_attr sselongvecmodelower): New.
15047         (define_mode_attr sseintvecmode3): New.
15048         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15049         New.
15050         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15051         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15052         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15053         (define_insn "ufloatv2siv2df2<mask_name>"): New.
15054
15055 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15056             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15057             Anna Tikhonova  <anna.tikhonova@intel.com>
15058             Ilya Tocar  <ilya.tocar@intel.com>
15059             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15060             Ilya Verbin  <ilya.verbin@intel.com>
15061             Kirill Yukhin  <kirill.yukhin@intel.com>
15062             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15063
15064         * config/i386/sse.md
15065         (define_mode_iterator VF2_AVX512VL): New.
15066         (define_mode_attr sseintvecmode2): New.
15067         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15068         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15069         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15070         (define_insn
15071         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15072         Ditto.
15073         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15074         Ditto.
15075         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15076         Ditto.
15077
15078 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15079             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15080             Anna Tikhonova  <anna.tikhonova@intel.com>
15081             Ilya Tocar  <ilya.tocar@intel.com>
15082             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15083             Ilya Verbin  <ilya.verbin@intel.com>
15084             Kirill Yukhin  <kirill.yukhin@intel.com>
15085             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15086
15087         * config/i386/i386.md
15088         (define_insn "*movoi_internal_avx"): Add evex version.
15089         (define_insn "*movti_internal"): Ditto.
15090
15091 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15092             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15093             Anna Tikhonova  <anna.tikhonova@intel.com>
15094             Ilya Tocar  <ilya.tocar@intel.com>
15095             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15096             Ilya Verbin  <ilya.verbin@intel.com>
15097             Kirill Yukhin  <kirill.yukhin@intel.com>
15098             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15099
15100         * config/i386/i386.md
15101         (define_attr "isa"): Add avx512dq, noavx512dq.
15102         (define_attr "enabled"): Ditto.
15103         * config/i386/sse.md
15104         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15105
15106 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15107             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15108             Anna Tikhonova  <anna.tikhonova@intel.com>
15109             Ilya Tocar  <ilya.tocar@intel.com>
15110             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15111             Ilya Verbin  <ilya.verbin@intel.com>
15112             Kirill Yukhin  <kirill.yukhin@intel.com>
15113             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15114
15115         * config/i386/i386.c
15116         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15117         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15118         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15119         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15120         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15121         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15122         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15123         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15124         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15125         * config/i386/sse.md
15126         (define_mode_iterator VMOVE): Allow V4TI mode.
15127         (define_mode_iterator V_AVX512VL): New.
15128         (define_mode_iterator V): New handling for AVX512VL.
15129         (define_insn "avx512f_load<mode>_mask"): Delete.
15130         (define_insn "<avx512>_load<mode>_mask"): New.
15131         (define_insn "avx512f_store<mode>_mask"): Delete.
15132         (define_insn "<avx512>_store<mode>_mask"): New.
15133
15134
15135 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
15136
15137         PR sanitizer/62089
15138         * asan.c (instrument_derefs): Fix bitfield check.
15139
15140 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15141
15142         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15143         * config/rs6000/htm.md (ttest): Remove clobber.
15144         * config/rs6000/predicates.md (any_mask_operand): New predicate.
15145         (and_operand): Reformat.
15146         (and_2rld_operand): New predicate.
15147         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15148         parameter.
15149         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15150         parameter.  Handle AND directly.
15151         (rs6000_split_logical_di): Remove last parameter.
15152         (rs6000_split_logical): Remove last parameter.  Remove obsolete
15153         comment.
15154         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15155         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15156         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
15157         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15158         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15159         and 5 anonymous splitters):  Delete.
15160         (and<mode>3): New expander.
15161         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15162         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15163         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15164         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15165         (floatdisf2_internal1): Remove clobbers.
15166         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15167         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15168         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15169         (and<mode>3 for BOOL_128): Remove clobber.
15170         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
15171         rs6000_split_logical.
15172         (*bool<mode>3_internal for BOOL_128): Adjust call of
15173         rs6000_split_logical.
15174         (*boolc<mode>3_internal1 for BOOL_128,
15175         *boolc<mode>3_internal2 for BOOL_128,
15176         *boolcc<mode>3_internal1 for BOOL_128,
15177         *boolcc<mode>3_internal2 for BOOL_128,
15178         *eqv<mode>3_internal1 for BOOL_128,
15179         *eqv<mode>3_internal2 for BOOL_128,
15180         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15181         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15182         clobber.
15183         (*vec_reload_and_reg_<mptrsize>): Delete.
15184
15185 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15186
15187         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15188         and split, *boolccsi3_internal3 and split): Delete.
15189         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15190         *boolccdi3_internal3 and split): Delete.
15191         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15192         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
15193
15194 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15195
15196         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15197         and split, *boolcsi3_internal3 and split): Delete.
15198         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15199         *boolcdi3_internal3 and split): Delete.
15200         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15201
15202 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15203
15204         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15205         <'u'>: Also support printing the low-order 16 bits.
15206         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15207         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15208         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15209         *booldi3_internal3 and split): Delete.
15210         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15211         *bool<mode>3_dot2): New.
15212         (two anonymous define_splits for non_logical_cint_operand): Merge.
15213
15214 2014-08-17  Marek Polacek  <polacek@redhat.com>
15215             Manuel López-Ibáñez  <manu@gcc.gnu.org>
15216
15217         PR c/62059
15218         * diagnostic.c (adjust_line): Add gcc_checking_assert.
15219         (diagnostic_show_locus): Don't print caret diagnostic
15220         if a column is larger than the line_width.
15221
15222 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
15223
15224         * common.opt: Make the ISL AST generator to be the main code generator
15225         of Graphite.
15226
15227 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
15228
15229         * wide-int.h (generic_wide_int): Declare as class instead of struct.
15230
15231 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
15232
15233         PR target/61641
15234         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
15235         Declare.
15236         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
15237         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
15238         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
15239         Define.
15240         * config/pa/pa.md (begin_brtab): Delete insn.
15241         (end_brtab): Likewise.
15242
15243 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15244
15245         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
15246
15247 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
15248
15249         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15250         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15251         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15252         (get_dynamic_type): Remove.
15253         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15254         (clear_speculation): Bring to ipa-deivrt.h
15255         (get_class_context): Rename to ...
15256         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15257         (contains_type_p): Update.
15258         (get_dynamic_type): Rename to ...
15259         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15260         (possible_polymorphic_call_targets): UPdate.
15261         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15262         * ipa-prop.c (ipa_analyze_call_uses): Update.
15263
15264 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
15265
15266         * doc/invoke.texi (SH options): Document missing processor variant
15267         options.  Remove references to Hitachi.  Undocument deprecated mspace
15268         option.
15269
15270 2014-08-15  Jason Merrill  <jason@redhat.com>
15271
15272         * tree.c (type_hash_canon): Uncomment assert.
15273
15274 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15275
15276         * input.h (in_system_header_at): Add comment.
15277
15278 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15279
15280         PR fortran/44054
15281         * diagnostic.c (build_message_string): Make it extern.
15282         * diagnostic.h (build_message_string): Make it extern.
15283
15284 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
15285
15286         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15287         load/store from/to non-floating class pseudo.
15288
15289 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15290
15291         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15292
15293 2014-08-15  Richard Biener  <rguenther@suse.de>
15294
15295         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15296         (get_constraint_for_ssa_var): Remove dead code.
15297         (get_constraint_for_1): Adjust.
15298         (find_what_var_points_to): Likewise.
15299         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
15300
15301 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
15302
15303         PR target/61878
15304         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15305         (_mm512_mask_cmpge_epu32_mask): Ditto.
15306         (_mm512_cmpge_epu32_mask): Ditto.
15307         (_mm512_mask_cmpge_epi64_mask): Ditto.
15308         (_mm512_cmpge_epi64_mask): Ditto.
15309         (_mm512_mask_cmpge_epu64_mask): Ditto.
15310         (_mm512_cmpge_epu64_mask): Ditto.
15311         (_mm512_mask_cmple_epi32_mask): Ditto.
15312         (_mm512_cmple_epi32_mask): Ditto.
15313         (_mm512_mask_cmple_epu32_mask): Ditto.
15314         (_mm512_cmple_epu32_mask): Ditto.
15315         (_mm512_mask_cmple_epi64_mask): Ditto.
15316         (_mm512_cmple_epi64_mask): Ditto.
15317         (_mm512_mask_cmple_epu64_mask): Ditto.
15318         (_mm512_cmple_epu64_mask): Ditto.
15319         (_mm512_mask_cmplt_epi32_mask): Ditto.
15320         (_mm512_cmplt_epi32_mask): Ditto.
15321         (_mm512_mask_cmplt_epu32_mask): Ditto.
15322         (_mm512_cmplt_epu32_mask): Ditto.
15323         (_mm512_mask_cmplt_epi64_mask): Ditto.
15324         (_mm512_cmplt_epi64_mask): Ditto.
15325         (_mm512_mask_cmplt_epu64_mask): Ditto.
15326         (_mm512_cmplt_epu64_mask): Ditto.
15327         (_mm512_mask_cmpneq_epi32_mask): Ditto.
15328         (_mm512_mask_cmpneq_epu32_mask): Ditto.
15329         (_mm512_cmpneq_epu32_mask): Ditto.
15330         (_mm512_mask_cmpneq_epi64_mask): Ditto.
15331         (_mm512_cmpneq_epi64_mask): Ditto.
15332         (_mm512_mask_cmpneq_epu64_mask): Ditto.
15333         (_mm512_cmpneq_epu64_mask): Ditto.
15334         (_mm512_castpd_ps): Ditto.
15335         (_mm512_castpd_si512): Ditto.
15336         (_mm512_castps_pd): Ditto.
15337         (_mm512_castps_si512): Ditto.
15338         (_mm512_castsi512_ps): Ditto.
15339         (_mm512_castsi512_pd): Ditto.
15340         (_mm512_castpd512_pd128): Ditto.
15341         (_mm512_castps512_ps128): Ditto.
15342         (_mm512_castsi512_si128): Ditto.
15343         (_mm512_castpd512_pd256): Ditto.
15344         (_mm512_castps512_ps256): Ditto.
15345         (_mm512_castsi512_si256): Ditto.
15346         (_mm512_castpd128_pd512): Ditto.
15347         (_mm512_castps128_ps512): Ditto.
15348         (_mm512_castsi128_si512): Ditto.
15349         (_mm512_castpd256_pd512): Ditto.
15350         (_mm512_castps256_ps512): Ditto.
15351         (_mm512_castsi256_si512): Ditto.
15352         (_mm512_cmpeq_epu32_mask): Ditto.
15353         (_mm512_mask_cmpeq_epu32_mask): Ditto.
15354         (_mm512_mask_cmpeq_epu64_mask): Ditto.
15355         (_mm512_cmpeq_epu64_mask): Ditto.
15356         (_mm512_cmpgt_epu32_mask): Ditto.
15357         (_mm512_mask_cmpgt_epu32_mask): Ditto.
15358         (_mm512_mask_cmpgt_epu64_mask): Ditto.
15359         (_mm512_cmpgt_epu64_mask): Ditto.
15360         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
15361         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
15362         * config/i386/i386.c (enum ix86_builtins): Add
15363         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
15364         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
15365         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
15366         (bdesc_args): Add __builtin_ia32_si512_256si,
15367         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
15368         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
15369         __builtin_ia32_pd512_pd.
15370         (ix86_expand_args_builtin): Handle new FTYPEs.
15371         * config/i386/sse.md (castmode): Add 512-bit modes.
15372         (AVX512MODE2P): New.
15373         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
15374         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
15375
15376 2014-08-15  Richard Biener  <rguenther@suse.de>
15377
15378         * fold-const.c (tree_swap_operands_p): Put all constants
15379         last, also strip sign-changing NOPs when considering further
15380         canonicalization.  Canonicalize also when optimizing for size.
15381
15382 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15383
15384         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
15385         one_match > zero_match case to just before simple_sequence.
15386
15387 2014-08-15  Richard Biener  <rguenther@suse.de>
15388
15389         * data-streamer.h (streamer_string_index, string_for_index):
15390         Remove.
15391         * data-streamer-out.c (streamer_string_index): Make static.
15392         * data-streamer-in.c (string_for_index): Likewise.
15393         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
15394         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
15395
15396 2014-08-15  Richard Biener  <rguenther@suse.de>
15397
15398         PR tree-optimization/62031
15399         * tree-data-ref.c (dr_analyze_indices): Do not set
15400         DR_UNCONSTRAINED_BASE.
15401         (dr_may_alias_p): All indirect accesses have to go the
15402         formerly DR_UNCONSTRAINED_BASE path.
15403         * tree-data-ref.h (struct indices): Remove
15404         unconstrained_base member.
15405         (DR_UNCONSTRAINED_BASE): Remove.
15406
15407 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
15408
15409         PR middle-end/62092
15410         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
15411         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
15412         in OMP_CLAUSE_MAP in some outer target region.
15413
15414 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
15415
15416         * tree-ssa-loop-ivopts.c (ivopts_data): New field
15417         name_expansion_cache.
15418         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
15419         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
15420         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
15421         (difference_cannot_overflow_p): New parameter.  Use affine
15422         expansion for equality check.
15423         (iv_elimination_compare_lt): Pass new argument.
15424
15425 2014-08-14  DJ Delorie  <dj@redhat.com>
15426
15427         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
15428         variables to the accumulator.
15429
15430         * config/rl78/predicates.md (rl78_near_mem_operand): New.
15431         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
15432         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
15433         with far-far moves.
15434
15435         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
15436         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
15437         (umulqihi3_virt): Likewise.
15438         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
15439         (umulqihi3_real): Likewise.
15440
15441         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
15442
15443 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
15444
15445         PR tree-optimization/62091
15446         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
15447         function_entry_reached.
15448         (walk_aliased_vdefs): Clear it here.
15449         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
15450
15451 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
15452
15453         * ipa-utils.h (compare_virtual_tables): Declare.
15454         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
15455
15456 2014-08-14  Marek Polacek  <polacek@redhat.com>
15457
15458         DR 458
15459         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
15460         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
15461
15462 2014-08-14  Tom de Vries  <tom@codesourcery.com>
15463
15464         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
15465
15466 2014-08-14  Tom de Vries  <tom@codesourcery.com>
15467
15468         PR rtl-optimization/62004
15469         PR rtl-optimization/62030
15470         * ifcvt.c (rtx_interchangeable_p): New function.
15471         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
15472         * emit-rtl.h (mem_attrs_eq_p): Declare.
15473
15474 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
15475
15476         * graphite-scop-detection.c:
15477         Add inclusion of cp-tree.h.
15478         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
15479         in case they are pointers to object types
15480
15481 2014-08-14  Richard Biener  <rguenther@suse.de>
15482
15483         * BASE-VER: Change to 5.0.0
15484
15485 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15486             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15487             Anna Tikhonova  <anna.tikhonova@intel.com>
15488             Ilya Tocar  <ilya.tocar@intel.com>
15489             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15490             Ilya Verbin  <ilya.verbin@intel.com>
15491             Kirill Yukhin  <kirill.yukhin@intel.com>
15492             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15493
15494         * config/i386/sse.md (define_mode_attr avx512): New.
15495         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
15496         V4DI modes.
15497         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
15498         (define_mode_attr ssse3_avx2): Ditto.
15499         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
15500         (define_mode_attr avx2_avx512bw): New.
15501         (define_mode_attr ssedoublemodelower): New.
15502         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
15503         V32HI, V64QI modes.
15504         (define_mode_attr ssebytemode): Allow V8DI modes.
15505         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
15506         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
15507         (define_mode_attr ssePSmode2): New.
15508         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
15509         V16HI, V32HI modes.
15510         (define_mode_attr dbpsadbwmode): New.
15511         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
15512         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
15513         (vi8_sse4_1_avx2_avx512): New.
15514         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
15515         mode attribute.
15516         (define_mode_attr blendbits): Move before its immediate use.
15517
15518 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15519             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15520             Anna Tikhonova  <anna.tikhonova@intel.com>
15521             Ilya Tocar  <ilya.tocar@intel.com>
15522             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15523             Ilya Verbin  <ilya.verbin@intel.com>
15524             Kirill Yukhin  <kirill.yukhin@intel.com>
15525             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15526
15527         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
15528         * config/i386/subst.md
15529         (define_mode_iterator SUBST_V): Update.
15530         (define_mode_iterator SUBST_A): Ditto.
15531         (define_subst_attr "mask_operand7"): New.
15532         (define_subst_attr "mask_operand10"): New.
15533         (define_subst_attr "mask_operand_arg34") : New.
15534         (define_subst_attr "mask_expand_op3"): New.
15535         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
15536         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
15537         (define_subst_attr "mask_avx512vl_condition"): New.
15538         (define_subst_attr "round_mask_operand4"): Ditto.
15539         (define_subst_attr "round_mask_scalar_op3"): Delete.
15540         (define_subst_attr "round_mask_op4"): New.
15541         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
15542         V16SImode.
15543         (define_subst_attr "round_modev8sf_condition"): New.
15544         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
15545         <MODE>mode.
15546         (define_subst_attr "round_saeonly_mask_operand4"): New.
15547         (define_subst_attr "round_saeonly_mask_op4"): New.
15548         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
15549         V8DImode, V16SImode.
15550         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
15551         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
15552         (define_subst_attr "mask_expand4_args"): New.
15553         (define_subst "mask_expand4"): New.
15554
15555 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15556             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15557             Anna Tikhonova  <anna.tikhonova@intel.com>
15558             Ilya Tocar  <ilya.tocar@intel.com>
15559             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15560             Ilya Verbin  <ilya.verbin@intel.com>
15561             Kirill Yukhin  <kirill.yukhin@intel.com>
15562             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15563
15564         * config/i386/i386.md
15565         (define_attr "isa"): Add avx512bw,noavx512bw.
15566         (define_attr "enabled"): Ditto.
15567         (define_split): Add 32/64-bit mask logic.
15568         (define_insn "*k<logic>qi"): New.
15569         (define_insn "*k<logic>hi"): New.
15570         (define_insn "*anddi_1"): Add mask version.
15571         (define_insn "*andsi_1"): Ditto.
15572         (define_insn "*<code><mode>_1"): Ditto.
15573         (define_insn "*<code>hi_1"): Ditto.
15574         (define_insn "kxnor<mode>"): New.
15575         (define_insn "kunpcksi"): New.
15576         (define_insn "kunpckdi"): New.
15577         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
15578         (define_insn "*one_cmplhi2_1"): Ditto.
15579
15580 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15581             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15582             Anna Tikhonova  <anna.tikhonova@intel.com>
15583             Ilya Tocar  <ilya.tocar@intel.com>
15584             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15585             Ilya Verbin  <ilya.verbin@intel.com>
15586             Kirill Yukhin  <kirill.yukhin@intel.com>
15587             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15588
15589         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
15590         V32HImode.
15591
15592 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15593             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15594             Anna Tikhonova  <anna.tikhonova@intel.com>
15595             Ilya Tocar  <ilya.tocar@intel.com>
15596             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15597             Ilya Verbin  <ilya.verbin@intel.com>
15598             Kirill Yukhin  <kirill.yukhin@intel.com>
15599             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15600
15601         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
15602         registers.
15603         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15604         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15605         xmm/ymm16+ when availble.
15606         * config/i386/i386.h
15607         (HARD_REGNO_NREGS): Add mask regs.
15608         (VALID_AVX512F_REG_MODE): Ditto.
15609         (VALID_AVX512F_REG_MODE) : Define.
15610         (VALID_MASK_AVX512BW_MODE): Ditto.
15611         (reg_class) (MASK_REG_P(X)): Define.
15612         * config/i386/i386.md: Do not split long moves with mask register,
15613         use kmovb if avx512bw is availible.
15614         (movdi_internal): Handle mask registers.
15615
15616 2014-08-14  Richard Biener  <rguenther@suse.de>
15617
15618         PR tree-optimization/62081
15619         * tree-ssa-loop.c (pass_fix_loops): New pass.
15620         (pass_tree_loop::gate):  Do not fixup loops here.
15621         * tree-pass.h (make_pass_fix_loops): Declare.
15622         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15623
15624 2014-08-14  Richard Biener  <rguenther@suse.de>
15625
15626         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15627         (type_hash_canon): ... this and avoid 2nd lookup for the add.
15628
15629 2014-08-14  Richard Biener  <rguenther@suse.de>
15630
15631         PR tree-optimization/62090
15632         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15633         (fold_builtin_2): Do not fold sprintf.
15634         (fold_builtin_3): Likewise.
15635         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15636         moved from builtins.c.
15637         (gimple_fold_builtin): Fold sprintf.
15638
15639 2014-08-14  Richard Biener  <rguenther@suse.de>
15640
15641         PR rtl-optimization/62079
15642         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15643         run cleanup_cfg.
15644
15645 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
15646
15647         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15648         current_function_decl.
15649
15650 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
15651
15652         * cgraph.c (cgraph_node::function_symbol): Fix wrong
15653         cgraph_function_node to cgraph_node::function_symbol
15654         refactoring.
15655
15656 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
15657
15658         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15659         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15660
15661 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
15662
15663         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15664         warning.
15665
15666 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
15667
15668         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15669         generator.
15670
15671 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
15672
15673         PR target/62025
15674         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15675         any registers that are used in mem_insn.
15676
15677 2014-08-12  Steve Ellcey  <sellcey@mips.com>
15678
15679         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15680
15681 2014-08-12  Steve Ellcey  <sellcey@mips.com>
15682
15683         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15684         (MULTILIB_DIRNAMES): Ditto.
15685         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15686         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15687         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15688         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15689         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15690         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15691
15692 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15693
15694         PR target/61413
15695         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15696         of __ARM_SIZEOF_WCHAR_T.
15697
15698 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15699
15700         PR target/62098
15701         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
15702         Remove unnecessary attributes.
15703
15704 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
15705
15706         * internal-fn.c (init_internal_fns): Fix off-by-one.
15707
15708 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15709             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15710             Anna Tikhonova  <anna.tikhonova@intel.com>
15711             Ilya Tocar  <ilya.tocar@intel.com>
15712             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15713             Ilya Verbin  <ilya.verbin@intel.com>
15714             Kirill Yukhin  <kirill.yukhin@intel.com>
15715             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15716
15717         * config/i386/i386.c (standard_sse_constant_opcode): Use
15718         vpxord/vpternlog if avx512 is availible.
15719
15720 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15721
15722         PR middle-end/62103
15723         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15724         bitfields, that is when size doesn't match the size of type or the
15725         size of the constructor.
15726
15727 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
15728
15729         * config/rs6000/constraints.md (wh constraint): New constraint,
15730         for FP registers if direct move is available.
15731         (wi constraint): New constraint, for VSX/FP registers that can
15732         handle 64-bit integers.
15733         (wj constraint): New constraint for VSX/FP registers that can
15734         handle 64-bit integers for direct moves.
15735         (wk constraint): New constraint for VSX/FP registers that can
15736         handle 64-bit doubles for direct moves.
15737         (wy constraint): Make documentation match implementation.
15738
15739         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15740         scalar_in_vmx_p field to simplify tests of whether SFmode or
15741         DFmode can go in the Altivec registers.
15742         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15743         (rs6000_setup_reg_addr_masks): Likewise.
15744         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
15745         field, and wh/wi/wj/wk constraints.
15746         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
15747         the wh/wi/wj/wk constraints.
15748         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
15749         upper registers, prefer VSX registers unless the operation is a
15750         memory operation with REG+OFFSET addressing.
15751
15752         * config/rs6000/vsx.md (VSr mode attribute): Add support for
15753         DImode.  Change SFmode to use ww constraint instead of d to allow
15754         SF registers in the upper registers.
15755         (VSr2): Likewise.
15756         (VSr3): Likewise.
15757         (VSr5): Fix thinko in comment.
15758         (VSa): New mode attribute that is an alternative to wa, that
15759         returns the VSX register class that a mode can go in, but may not
15760         be the preferred register class.
15761         (VS_64dm): New mode attribute for appropriate register classes for
15762         referencing 64-bit elements of vectors for direct moves and normal
15763         moves.
15764         (VS_64reg): Likewise.
15765         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
15766         register allocator to only registers the data type can handle.
15767         (vsx_le_perm_load_<mode>): Likewise.
15768         (vsx_le_perm_store_<mode>): Likewise.
15769         (vsx_xxpermdi2_le_<mode>): Likewise.
15770         (vsx_xxpermdi4_le_<mode>): Likewise.
15771         (vsx_lxvd2x2_le_<mode>): Likewise.
15772         (vsx_lxvd2x4_le_<mode>): Likewise.
15773         (vsx_stxvd2x2_le_<mode>): Likewise.
15774         (vsx_add<mode>3): Likewise.
15775         (vsx_sub<mode>3): Likewise.
15776         (vsx_mul<mode>3): Likewise.
15777         (vsx_div<mode>3): Likewise.
15778         (vsx_tdiv<mode>3_internal): Likewise.
15779         (vsx_fre<mode>2): Likewise.
15780         (vsx_neg<mode>2): Likewise.
15781         (vsx_abs<mode>2): Likewise.
15782         (vsx_nabs<mode>2): Likewise.
15783         (vsx_smax<mode>3): Likewise.
15784         (vsx_smin<mode>3): Likewise.
15785         (vsx_sqrt<mode>2): Likewise.
15786         (vsx_rsqrte<mode>2): Likewise.
15787         (vsx_tsqrt<mode>2_internal): Likewise.
15788         (vsx_fms<mode>4): Likewise.
15789         (vsx_nfma<mode>4): Likewise.
15790         (vsx_eq<mode>): Likewise.
15791         (vsx_gt<mode>): Likewise.
15792         (vsx_ge<mode>): Likewise.
15793         (vsx_eq<mode>_p): Likewise.
15794         (vsx_gt<mode>_p): Likewise.
15795         (vsx_ge<mode>_p): Likewise.
15796         (vsx_xxsel<mode>): Likewise.
15797         (vsx_xxsel<mode>_uns): Likewise.
15798         (vsx_copysign<mode>3): Likewise.
15799         (vsx_float<VSi><mode>2): Likewise.
15800         (vsx_floatuns<VSi><mode>2): Likewise.
15801         (vsx_fix_trunc<mode><VSi>2): Likewise.
15802         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
15803         (vsx_x<VSv>r<VSs>i): Likewise.
15804         (vsx_x<VSv>r<VSs>ic): Likewise.
15805         (vsx_btrunc<mode>2): Likewise.
15806         (vsx_b2trunc<mode>2): Likewise.
15807         (vsx_floor<mode>2): Likewise.
15808         (vsx_ceil<mode>2): Likewise.
15809         (vsx_<VS_spdp_insn>): Likewise.
15810         (vsx_xscvspdp): Likewise.
15811         (vsx_xvcvspuxds): Likewise.
15812         (vsx_float_fix_<mode>2): Likewise.
15813         (vsx_set_<mode>): Likewise.
15814         (vsx_extract_<mode>_internal1): Likewise.
15815         (vsx_extract_<mode>_internal2): Likewise.
15816         (vsx_extract_<mode>_load): Likewise.
15817         (vsx_extract_<mode>_store): Likewise.
15818         (vsx_splat_<mode>): Likewise.
15819         (vsx_xxspltw_<mode>): Likewise.
15820         (vsx_xxspltw_<mode>_direct): Likewise.
15821         (vsx_xxmrghw_<mode>): Likewise.
15822         (vsx_xxmrglw_<mode>): Likewise.
15823         (vsx_xxsldwi_<mode>): Likewise.
15824         (vsx_xscvdpspn): Tighten constraints to only use register classes
15825         the types use.
15826         (vsx_xscvspdpn): Likewise.
15827         (vsx_xscvdpspn_scalar): Likewise.
15828
15829         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
15830         wj, and wk constraints.
15831         (GPR_REG_CLASS_P): New helper macro for register classes targeting
15832         general purpose registers.
15833
15834         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
15835         direct moves.
15836         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
15837         DImode instead of wm.  Use wk constraint for direct move of DFmode
15838         instead of wm.
15839         (extendsidi2_lfiwax): Likewise.
15840         (lfiwax): Likewise.
15841         (lfiwzx): Likewise.
15842         (movdi_internal64): Likewise.
15843
15844         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
15845         wk constraints. Make the wy constraint documentation match them
15846         implementation.
15847
15848 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
15849
15850         Replacement of isl_int by isl_val
15851         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
15852         (compute_bounds_for_param): use isl_val instead of isl_int
15853         (compute_bounds_for_loop): likewise
15854         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
15855         (build_linearized_memory_access): use isl_val instead of isl_int
15856         (pdr_stride_in_loop): likewise
15857         * graphite-optimize-isl.c:
15858         (getPrevectorMap): use isl_val instead of isl_int
15859         * graphite-poly.c:
15860         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
15861         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
15862         (extern the_isl_ctx): declare
15863         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
15864         (extract_affine_gmp): likewise
15865         (wrap): likewise
15866         (build_loop_iteration_domains): likewise
15867         (add_param_constraints): likewise
15868
15869 2014-08-11  Richard Biener  <rguenther@suse.de>
15870
15871         PR tree-optimization/62075
15872         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
15873         handle uses in patterns.
15874
15875 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15876             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15877             Anna Tikhonova  <anna.tikhonova@intel.com>
15878             Ilya Tocar  <ilya.tocar@intel.com>
15879             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15880             Ilya Verbin  <ilya.verbin@intel.com>
15881             Kirill Yukhin  <kirill.yukhin@intel.com>
15882             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15883
15884         * common/config/i386/i386-common.c
15885         (OPTION_MASK_ISA_AVX512VL_SET): Define.
15886         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
15887         (ix86_handle_option): Handle OPT_mavx512vl.
15888         * config/i386/cpuid.h (bit_AVX512VL): Define.
15889         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
15890         set -mavx512vl accordingly.
15891         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15892         OPTION_MASK_ISA_AVX512VL.
15893         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
15894         (ix86_option_override_internal): Define PTA_AVX512VL, handle
15895         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
15896         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
15897         * config/i386/i386.h (TARGET_AVX512VL): Define.
15898         (TARGET_AVX512VL_P(x)): Ditto.
15899         * config/i386/i386.opt: Add mavx512vl.
15900
15901 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
15902
15903         PR tree-optimization/62073
15904         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
15905         a basic block.
15906
15907 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15908             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15909             Anna Tikhonova  <anna.tikhonova@intel.com>
15910             Ilya Tocar  <ilya.tocar@intel.com>
15911             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15912             Ilya Verbin  <ilya.verbin@intel.com>
15913             Kirill Yukhin  <kirill.yukhin@intel.com>
15914             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15915
15916         * common/config/i386/i386-common.c
15917         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
15918         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
15919         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
15920         (ix86_handle_option): Handle OPT_mavx512bw.
15921         * config/i386/cpuid.h (bit_AVX512BW): Define.
15922         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
15923         set -mavx512bw accordingly.
15924         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15925         OPTION_MASK_ISA_AVX512BW.
15926         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
15927         (ix86_option_override_internal): Define PTA_AVX512BW, handle
15928         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
15929         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
15930         * config/i386/i386.h (TARGET_AVX512BW): Define.
15931         (TARGET_AVX512BW_P(x)): Ditto.
15932         * config/i386/i386.opt: Add mavx512bw.
15933
15934 2014-08-11  Richard Biener  <rguenther@suse.de>
15935
15936         PR tree-optimization/62070
15937         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
15938         Remove SSA checking.
15939
15940 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
15941
15942         * asan.c (asan_check_flags): New enum.
15943         (build_check_stmt_with_calls): Removed function.
15944         (build_check_stmt): Split inlining logic to
15945         asan_expand_check_ifn.
15946         (instrument_derefs): Rename parameter.
15947         (instrument_mem_region_access): Rename parameter.
15948         (instrument_strlen_call): Likewise.
15949         (asan_expand_check_ifn): New function.
15950         (asan_instrument): Remove old code.
15951         (pass_sanopt::execute): Change handling of
15952         asan-instrumentation-with-call-threshold.
15953         (asan_clear_shadow): Fix formatting.
15954         (asan_function_start): Likewise.
15955         (asan_emit_stack_protection): Likewise.
15956         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
15957         Update description.
15958         * internal-fn.c (expand_ASAN_CHECK): New function.
15959         * internal-fn.def (ASAN_CHECK): New internal function.
15960         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
15961         Update description.
15962         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
15963         * tree.c: Small comment fix.
15964
15965 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
15966
15967         * gimple.c (gimple_call_fnspec): Support internal functions.
15968         (gimple_call_return_flags): Use const.
15969         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
15970         * internal-fn.def: Add fnspec information.
15971         * internal-fn.h (internal_fn_fnspec): New function.
15972         (init_internal_fns): Declare new function.
15973         * internal-fn.c (internal_fn_fnspec_array): New global variable.
15974         (init_internal_fns): New function.
15975         * tree-core.h: Update macro call.
15976         * tree.c (build_common_builtin_nodes): Initialize internal fns.
15977
15978 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
15979
15980         * lto-streamer.h (struct output_block::symbol): Change from
15981         struct symtab_node to plain symtab_node.
15982         (referenced_from_this_partition_p): Change first parameter
15983         from struct symtab_node to plain symtab_node.
15984
15985 2014-08-10  Marek Polacek  <polacek@redhat.com>
15986
15987         PR c/51849
15988         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
15989
15990 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
15991
15992         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
15993         DECL correctly; do not give up on types in static storage.
15994
15995 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
15996
15997         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
15998
15999 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
16000
16001         * graphite-isl-ast-to-gimple.c:
16002         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16003
16004         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16005
16006 2014-08-08  Guozhi Wei  <carrot@google.com>
16007
16008         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16009
16010 2014-08-08  Cary Coutant  <ccoutant@google.com>
16011
16012         * dwarf2out.c (get_skeleton_type_unit): Remove.
16013         (output_skeleton_debug_sections): Remove skeleton type units.
16014         (output_comdat_type_unit): Likewise.
16015         (dwarf2out_finish): Likewise.
16016
16017 2014-08-07  Yi Yang  <ahyangyi@google.com>
16018
16019         * predict.c (expr_expected_value_1): Remove the redundant assignment.
16020
16021 2014-08-08  Richard Biener  <rguenther@suse.de>
16022
16023         * lto-streamer.h (struct lto_input_block): Make it a class
16024         with a constructor.
16025         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16026         (struct lto_function_header, struct lto_simple_header,
16027         struct lto_simple_header_with_strings,
16028         struct lto_decl_header, struct lto_function_header): Make
16029         a simple inheritance hieararchy.  Remove unused fields.
16030         (struct lto_asm_header): Remove.
16031         * lto-streamer-out.c (produce_asm): Adjust.
16032         (lto_output_toplevel_asms): Likewise.
16033         (produce_asm_for_decls): Likewise.
16034         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16035         * data-streamer-in.c (string_for_index): Likewise.
16036         * ipa-inline-analysis.c (inline_read_section): Likewise.
16037         * ipa-prop.c (ipa_prop_read_section): Likewise.
16038         (read_replacements_section): Likewise.
16039         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16040         * lto-section-in.c (lto_create_simple_input_block): Likewise.
16041         (lto_destroy_simple_input_block): Likewise.
16042         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16043         (lto_input_toplevel_asms): Likewise.
16044
16045 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16046             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16047             Anna Tikhonova  <anna.tikhonova@intel.com>
16048             Ilya Tocar  <ilya.tocar@intel.com>
16049             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16050             Ilya Verbin  <ilya.verbin@intel.com>
16051             Kirill Yukhin  <kirill.yukhin@intel.com>
16052             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16053
16054         * common/config/i386/i386-common.c
16055         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16056         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16057         (ix86_handle_option): Handle OPT_mavx512dq.
16058         * config/i386/cpuid.h (bit_AVX512DQ): Define.
16059         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16060         set -mavx512dq accordingly.
16061         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16062         OPTION_MASK_ISA_AVX512DQ.
16063         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16064         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16065         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16066         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16067         * config/i386/i386.h (TARGET_AVX512DQ): Define.
16068         (TARGET_AVX512DQ_P(x)): Ditto.
16069         * config/i386/i386.opt: Add mavx512dq.
16070
16071 2014-08-08  Richard Biener  <rguenther@suse.de>
16072
16073         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16074         target_percent, target_percent_s): Export.
16075         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16076         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16077         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16078         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16079         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16080         Move to gimple-fold.c.
16081         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16082         strcat and strcpy.
16083         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16084         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16085         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16086         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16087         (rewrite_call_expr_array): Remove.
16088         (fold_builtin_sprintf_chk): Likewise.
16089         (fold_builtin_snprintf_chk): Likewise.
16090         (fold_builtin_varargs): Remove handling of sprintf_chk,
16091         vsprintf_chk, snprintf_chk and vsnprintf_chk.
16092         (gimple_fold_builtin_sprintf_chk): Remove.
16093         (gimple_fold_builtin_snprintf_chk): Likewise.
16094         (gimple_fold_builtin_varargs): Likewise.
16095         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16096         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16097         * gimple.c (gimple_seq_add_seq_without_update): New function.
16098         * gimple.h (gimple_seq_add_seq_without_update): Declare.
16099         * gimple-fold.c: Include output.h.
16100         (gsi_replace_with_seq_vops): New function, split out from ...
16101         (gimplify_and_update_call_from_tree): ... here.
16102         (replace_call_with_value): New function.
16103         (replace_call_with_call_and_fold): Likewise.
16104         (var_decl_component_p): Moved from builtins.c.
16105         (gimple_fold_builtin_memory_op): Moved from builtins.c
16106         fold_builtin_memory_op and rewritten to GIMPLE.
16107         (gimple_fold_builtin_memset): Likewise.
16108         (gimple_fold_builtin_strcpy): Likewise.
16109         (gimple_fold_builtin_strncpy): Likewise.
16110         (gimple_fold_builtin_strcat): Likewise.
16111         (gimple_fold_builtin_fputs): Likewise.
16112         (gimple_fold_builtin_memory_chk): Likewise.
16113         (gimple_fold_builtin_stxcpy_chk): Likewise.
16114         (gimple_fold_builtin_stxncpy_chk): Likewise.
16115         (gimple_fold_builtin_snprintf_chk): Likewise.
16116         (gimple_fold_builtin_sprintf_chk): Likewise.
16117         (gimple_fold_builtin_strlen): New function.
16118         (gimple_fold_builtin_with_strlen): New function split out from
16119         gimple_fold_builtin.
16120         (gimple_fold_builtin): Change signature and handle
16121         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16122         here.  Call gimple_fold_builtin_with_strlen.
16123         (gimple_fold_call): Adjust.
16124
16125 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
16126
16127         * calls.c (precompute_arguments): Check
16128         promoted_for_signed_and_unsigned_p and set the promoted mode.
16129         (promoted_for_signed_and_unsigned_p): New function.
16130         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16131         and set the promoted mode.
16132         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16133         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16134         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16135
16136
16137 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
16138
16139         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16140         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16141         (expand_call): Likewise.
16142         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16143         to get promoted mode.
16144         * combine.c (record_promoted_value): Skip > 0 comparison with
16145         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16146         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16147         of SUBREG_PROMOTED_UNSIGNED_P.
16148         (convert_modes): Likewise.
16149         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16150         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16151         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16152         SUBREG_PROMOTED_UNSIGNED_SET.
16153         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16154         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16155         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16156         SUBREG_PROMOTED_SET.
16157         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16158         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16159         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16160         of SUBREG_PROMOTED_UNSIGNED_P.
16161         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16162         (SUBREG_PROMOTED_SET): New define.
16163         (SUBREG_PROMOTED_GET): Likewise.
16164         (SUBREG_PROMOTED_SIGN): Likewise.
16165         (SUBREG_PROMOTED_SIGNED_P): Likewise.
16166         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16167         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16168         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16169         instead of SUBREG_PROMOTED_UNSIGNED_GET.
16170         (nonzero_bits1): Skip > 0 comparison with the results as
16171         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16172         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16173         of !SUBREG_PROMOTED_UNSIGNED_P.
16174         * simplify-rtx.c (simplify_unary_operation_1): Use new
16175         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16176         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16177         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16178         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16179
16180 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
16181
16182         * ipa-devirt.c: Include gimple-pretty-print.h
16183         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16184         further tests.
16185         (decl_maybe_in_construction_p): Fix conditional on cdtor check
16186         (get_polymorphic_call_info): Fix return value
16187         (type_change_info): New sturcture based on ipa-prop
16188         variant.
16189         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16190         based on ipa-prop variant.
16191         (extr_type_from_vtbl_ptr_store): New function
16192         based on ipa-prop variant.
16193         (record_known_type): New function.
16194         (check_stmt_for_type_change): New function.
16195         (get_dynamic_type): New function.
16196         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16197         * tree-ssa-pre.c: ipa-utils.h
16198         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16199         machinery; sanity check with ipa-prop devirtualization.
16200         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16201         polymorphic flag.
16202
16203 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
16204
16205         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16206         * alias.c, cfgexpand.c, cgraphbuild.c,
16207         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16208         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16209         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16210         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16211         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16212         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16213         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16214         dse.c, except.c, gengtype.c, gimple-expr.c,
16215         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16216         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
16217         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
16218         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
16219         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
16220         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
16221         pointer-set.h.
16222         * pointer-set.c: Remove file.
16223         * pointer-set.h: Remove file.
16224
16225 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16226
16227         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
16228         * config/arm/types.md (f_sels, f_seld): Delete.
16229
16230 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16231
16232         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
16233         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
16234         (aarch64_movdi_<mode>high): Likewise.
16235         (aarch64_mov<mode>high_di): Likewise.
16236         (aarch64_movdi_<mode>low): Likewise.
16237         (aarch64_mov<mode>low_di): Likewise.
16238         (aarch64_movtilow_tilow): Likewise.
16239         Add comment explaining usage of fp,simd attributes and of
16240         TARGET_FLOAT and TARGET_SIMD.
16241
16242 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
16243             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16244
16245         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
16246         Use MOVN when one of the half-words is 0xffff.
16247
16248 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
16249
16250         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
16251
16252 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16253
16254         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
16255         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16256         (rfs_str): String corresponding to RFS_* constants.
16257         (rank_for_schedule_stats_t): New typedef.
16258         (rank_for_schedule_stats): New static variable.
16259         (rfs_result): New static function.
16260         (rank_for_schedule): Track statistics for deciding heuristics.
16261         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16262         static functions.
16263         (ready_sort): Use them for debug printouts.
16264         (schedule_block): Init statistics state.  Print statistics on
16265         rank_for_schedule decisions.
16266
16267 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16268
16269         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16270
16271 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
16272
16273         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16274         constraint.
16275
16276 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
16277
16278         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16279         function to not conflict.
16280         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16281         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16282         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16283         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16284         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16285         of pointer_map.
16286
16287 2014-08-07  Marek Polacek  <polacek@redhat.com>
16288
16289         * fold-const.c (fold_binary_loc): Add folding of
16290         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16291
16292 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
16293
16294         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16295         instead of type size.
16296         (ASM_FINISH_DECLARE_OBJECT): Likewise.
16297
16298 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
16299
16300         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16301         (*thumb1_movqi_insn): Likewise.
16302         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16303
16304 2014-08-07  Tom de Vries  <tom@codesourcery.com>
16305
16306         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16307         (glibc_2_11_or_earlier): Remove effective-target keywords.
16308
16309 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
16310
16311         * config/arm/arm.c (bdesc_2arg): Fix typo.
16312         (arm_atomic_assign_expand_fenv): Remove The default implementation.
16313
16314 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16315
16316         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16317
16318 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
16319
16320         PR debug/61923
16321         * haifa-sched.c (advance_one_cycle): Fix dump.
16322         (schedule_block): Don't advance cycle if we are already at the
16323         beginning of the cycle.
16324
16325 2014-08-06  Martin Jambor  <mjambor@suse.cz>
16326
16327         PR ipa/61393
16328         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16329
16330 2014-08-06  Richard Biener  <rguenther@suse.de>
16331
16332         PR lto/62034
16333         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16334         SCCs here.
16335         (lto_input_tree): Pop SCCs here.
16336
16337 2014-08-06  Richard Biener  <rguenther@suse.de>
16338
16339         PR tree-optimization/61320
16340         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16341         handle misaligned loads.
16342
16343 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
16344
16345         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16346         (aarch64_expand_vec_perm_const): Check for dup before zip.
16347
16348 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16349
16350         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16351         CONST_INT_P instead of GET_CODE and compare.
16352         (aarch64_select_cc_mode): Likewise.
16353         (aarch64_print_operand): Likewise.
16354         (aarch64_rtx_costs): Likewise.
16355         (aarch64_simd_valid_immediate): Likewise.
16356         (aarch64_simd_check_vect_par_cnst_half): Likewise.
16357         (aarch64_simd_emit_pair_result_insn): Likewise.
16358
16359 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
16360
16361         * gdbhooks.py (find_gcc_source_dir): New helper function.
16362         (class PassNames): New class, locating and parsing passes.def.
16363         (class BreakOnPass): New command "break-on-pass".
16364
16365 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
16366
16367         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
16368         getting olde.
16369
16370 2014-08-05  Richard Biener  <rguenther@suse.de>
16371
16372         PR rtl-optimization/61672
16373         * emit-rtl.h (mem_attrs_eq_p): Declare.
16374         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
16375         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
16376         * cfgcleanup.c (merge_memattrs): Likewise.
16377         Include emit-rtl.h.
16378
16379 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16380
16381         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
16382         rather than singleton vectors.
16383         (vqdmlsls_lane_s32): Likewise.
16384
16385 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16386
16387         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
16388         Use VSDQ_HSI mode iterator.
16389         (aarch64_sqrdmulh_laneq<mode>): Likewise.
16390         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
16391         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
16392         Use BUILTIN_VDQHS macro.
16393         (sqrdmulh_laneq): Likewise.
16394         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
16395         (vqdmlals_laneq_s32): Likewise.
16396         (vqdmlslh_laneq_s16): Likewise.
16397         (vqdmlsls_laneq_s32): Likewise.
16398         (vqdmulhh_laneq_s16): Likewise.
16399         (vqdmulhs_laneq_s32): Likewise.
16400         (vqrdmulhh_laneq_s16): Likewise.
16401         (vqrdmulhs_laneq_s32): Likewise.
16402
16403 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16404
16405         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
16406         (vmuld_laneq_f64): Likewise.
16407         (vmuls_laneq_f32): Likewise.
16408         (vmul_n_f64): Likewise.
16409         (vmuld_lane_f64): Reimplement in C.
16410         (vmuls_lane_f32): Likewise.
16411
16412 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16413
16414         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
16415         to reservation.
16416         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
16417
16418 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16419
16420         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
16421         (rbitsi2): Likewise.
16422         (*arm_rev): Set predicable and predicable_short_it attributes.
16423
16424 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16425
16426         * convert.c (convert_to_integer): Guard transformation to lrint by
16427         -fno-math-errno.
16428
16429 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
16430
16431         * config/aarch64/aarch64-builtins.c
16432         (aarch64_simd_builtin_type_mode): Delete.
16433         (v8qi_UP): Remap to V8QImode.
16434         (v4hi_UP): Remap to V4HImode.
16435         (v2si_UP): Remap to V2SImode.
16436         (v2sf_UP): Remap to V2SFmode.
16437         (v1df_UP): Remap to V1DFmode.
16438         (di_UP): Remap to DImode.
16439         (df_UP): Remap to DFmode.
16440         (v16qi_UP):V16QImode.
16441         (v8hi_UP): Remap to V8HImode.
16442         (v4si_UP): Remap to V4SImode.
16443         (v4sf_UP): Remap to V4SFmode.
16444         (v2di_UP): Remap to V2DImode.
16445         (v2df_UP): Remap to V2DFmode.
16446         (ti_UP): Remap to TImode.
16447         (ei_UP): Remap to EImode.
16448         (oi_UP): Remap to OImode.
16449         (ci_UP): Map to CImode.
16450         (xi_UP): Remap to XImode.
16451         (si_UP): Remap to SImode.
16452         (sf_UP): Remap to SFmode.
16453         (hi_UP): Remap to HImode.
16454         (qi_UP): Remap to QImode.
16455         (aarch64_simd_builtin_datum): Make mode a machine_mode.
16456         (VAR1): Build builtin name.
16457         (aarch64_init_simd_builtins): Remove dead code.
16458
16459 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
16460
16461         * graphite-isl-ast-to-gimple.c:
16462         (set_options): New function.
16463         (scop_to_isl_ast): Add calling of set_options.
16464
16465 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
16466
16467         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
16468         (analyze_iv_to_split_insn): Don't initialize them.
16469         (get_ivts_expr): Removed.
16470         (allocate_basic_variable, insert_base_initialization): Use
16471         SET_SRC instead of *get_ivts_expr.
16472         (split_iv): Use &SET_SRC instead of get_ivts_expr.
16473
16474 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
16475
16476         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
16477         (translate_isl_ast_for_loop): Add checking of the
16478         flag_loop_parallelize_all.
16479         (ast_build_before_for): New function.
16480         (scop_to_isl_ast): Add checking of the
16481         flag_loop_parallelize_all.
16482         * graphite-dependences.c: Move the defenition of the
16483         scop_get_dependences from graphite-optimize-isl.c to this file.
16484         (apply_schedule_on_deps): Add checking of the ux's emptiness.
16485         (carries_deps): Add checking of the x's value.
16486         * graphite-optimize-isl.c: Move the defenition of the
16487         scop_get_dependences to graphite-dependences.c.
16488         * graphite-poly.h: Add declarations of scop_get_dependences
16489         and carries_deps.
16490
16491 2014-08-04  Rohit  <rohitarulraj@freescale.com>
16492
16493         PR target/60102
16494         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
16495         names.
16496         (alt_reg_names): Likewise.
16497         (rs6000_dwarf_register_span): For SPE high registers, replace
16498         dwarf register numbers with GCC hard register numbers.
16499         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
16500         (rs6000_dbx_register_number): For SPE high registers, return dwarf
16501         register number for the corresponding GCC hard register number.
16502         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
16503         newly added GCC hard register numbers for SPE high registers.
16504         (DWARF_FRAME_REGISTERS):  Likewise.
16505         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
16506         (DWARF_FRAME_REGNUM): Likewise.
16507         (FIXED_REGISTERS): Likewise.
16508         (CALL_USED_REGISTERS): Likewise.
16509         (CALL_REALLY_USED_REGISTERS): Likewise.
16510         (REG_ALLOC_ORDER): Likewise.
16511         (enum reg_class): Likewise.
16512         (REG_CLASS_NAMES): Likewise.
16513         (REG_CLASS_CONTENTS): Likewise.
16514         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
16515
16516 2014-08-04  Richard Biener  <rguenther@suse.de>
16517
16518         * gimple-fold.h (gimple_fold_builtin): Remove.
16519         * gimple-fold.c (gimple_fold_builtin): Make static.
16520         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
16521         fold_stmt, not gimple_fold_builtin.
16522
16523 2014-08-04  Martin Liska <mliska@suse.cz>
16524
16525         * cgraph.h (csi_end_p): Removed.
16526         (csi_next): Likewise.
16527         (csi_node): Likewise.
16528         (csi_start): Likewise.
16529         (cgraph_node_in_set_p): Likewise.
16530         (cgraph_node_set_size): Likewise.
16531         (vsi_end_p): Likewise.
16532         (vsi_next): Likewise.
16533         (vsi_node): Likewise.
16534         (vsi_start): Likewise.
16535         (varpool_node_set_size): Likewise.
16536         (cgraph_node_set_nonempty_p): Likewise.
16537         (varpool_node_set_nonempty_p): Likewise.
16538         * cgraphunit.c (cgraph_process_new_functions): vec replaces
16539         cgraph_node_set.
16540         * ipa-inline-transform.c: Likewise.
16541         * ipa-utils.c (cgraph_node_set_new): Removed.
16542         (cgraph_node_set_add): Likewise.
16543         (cgraph_node_set_remove): Likewise.
16544         (cgraph_node_set_find): Likewise.
16545         (dump_cgraph_node_set): Likewise.
16546         (debug_cgraph_node_set): Likewise.
16547         (free_cgraph_node_set): Likewise.
16548         (varpool_node_set_new): Likewise.
16549         (varpool_node_set_add): Likewise.
16550         (varpool_node_set_remove): Likewise.
16551         (varpool_node_set_find): Likewise.
16552         (dump_varpool_node_set): Likewise.
16553         (free_varpool_node_set): Likewise.
16554         (debug_varpool_node_set): Likewise.
16555         * tree-emutls.c (struct tls_var_data):
16556         (emutls_index): Removed.
16557         (emutls_decl): Likewise.
16558         (gen_emutls_addr): Function implementation uses newly added
16559         hash_map<varpool_node *, tls_var_data>.
16560         (clear_access_vars): Likewise.
16561         (create_emultls_var): Likewise.
16562         (ipa_lower_emutls): Likewise.
16563         (reset_access): New function.
16564
16565 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
16566
16567         * config/i386/i386.c (ix86_option_override_internal): Add
16568         PTA_RDRND and PTA_MOVBE for bdver4.
16569
16570 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16571             James Greenhalgh  <james.greenhalgh@arm.com>
16572
16573         * doc/md.texi (clrsb): Document.
16574         (clz): Change reference to x into operand 1.
16575         (ctz): Likewise.
16576         (popcount): Likewise.
16577
16578 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16579
16580         PR target/61713
16581         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
16582         move to subtarget in serial version if result is ignored.
16583
16584 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16585             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16586
16587         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
16588         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
16589         (sched_analyze_insn): Update use of try_group_insn to
16590         sched_macro_fuse_insns.
16591         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
16592         arguments that are not conditional jumps.
16593
16594 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
16595
16596         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
16597         family information. Handle BTVER2 cpu with cpuid family value.
16598
16599 2014-08-04  Tom de Vries  <tom@codesourcery.com>
16600
16601         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16602         (glibc_2_11_or_earlier): Document effective-target keywords.
16603
16604 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
16605
16606         * ipa-devirt.c (odr_type_warn_count): Add type.
16607         (possible_polymorphic_call_targets): Set it.
16608         (ipa_devirt): Use it.
16609
16610 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
16611
16612         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16613         Document.
16614         * ipa-devirt.c: Include hash-map.h
16615         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16616         (clear_speculation): Break out of ...
16617         (get_class_context): ... here; speed up handling obviously useless
16618         speculations.
16619         (odr_type_warn_count, decl_warn_count): New structures.
16620         (final_warning_record): New structure.
16621         (final_warning_records): New static variable.
16622         (possible_polymorphic_call_targets): Cleanup handling of
16623         speculative info; do not build speculation when user do not care;
16624         record info about warnings when asked for.
16625         (add_decl_warning): New function.
16626         (type_warning_cmp): New function.
16627         (decl_warning_cmp): New function.
16628         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16629         (gate): Enable pass when warnings are requested.
16630         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16631         options.
16632
16633 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
16634
16635         * hash-map.h (default_hashmap_traits::mark_key_deleted):
16636         Fix cast.
16637         (hash_map::remove): New method.
16638         (hash_map::traverse): New method.
16639         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16640         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16641         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16642         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16643         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16644         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16645         pointer_map.
16646
16647 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
16648
16649         * hash-set.h: new File.
16650         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16651         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16652         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16653         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16654         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16655         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16656         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16657         varpool.c: Use hash_set instead of pointer_set.
16658
16659 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
16660
16661         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16662
16663 2014-08-01  Jiong Wang <jiong.wang@arm.com>
16664
16665         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16666         for frame access when strict_p is false.
16667
16668 2014-08-01  Renlin Li <renlin.li@arm.com>
16669 2014-08-01  Jiong Wang <jiong.wang@arm.com>
16670
16671         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16672         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16673         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16674         Declaration.
16675         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16676         predicate.
16677         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16678         aarch64_mem_pair_offset.
16679
16680 2014-08-01  Jiong Wang <jiong.wang@arm.com>
16681
16682         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16683         offset.
16684         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16685         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16686
16687 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
16688
16689         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16690
16691 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
16692
16693         PR regression/61510
16694         * cgraphunit.c (analyze_functions): Use get_create rather than get
16695         for decls which are clones of abstract functions.
16696
16697 2014-08-01  Martin Liska  <mliska@suse.cz>
16698
16699         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
16700         * ipa-prop.h (count_formal_params): Global function created from static.
16701         * ipa-prop.c (count_formal_params): Likewise.
16702         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
16703         profiles for semantically equivalent functions.
16704         * passes.c (do_per_function): If we load body of a function
16705         during WPA, this condition should behave same.
16706         * varpool.c (ctor_for_folding): More tolerant assert for variable
16707         aliases created during WPA.
16708
16709 2014-08-01  Martin Liska  <mliska@suse.cz>
16710
16711         * doc/invoke.texi (Options That Control Optimization): Documentation
16712         for -foptimize-strlen introduced. Optimization levels default options
16713         fixed.
16714
16715 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
16716
16717         * opts.c (common_handle_option): Handle -fsanitize=alignment.
16718         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16719         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16720         type to bool.
16721         * stor-layout.h (min_align_of_type): New prototype.
16722         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16723         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
16724         check.
16725         * ubsan.c: Include builtins.h.
16726         (ubsan_expand_bounds_ifn): Change return type to bool,
16727         always return true.
16728         (ubsan_expand_null_ifn): Change return type to bool, change
16729         argument to gimple_stmt_iterator *.  Handle both null and alignment
16730         sanitization, take type from ckind argument's type rather than
16731         first argument.
16732         (instrument_member_call): Removed.
16733         (instrument_mem_ref): Remove t argument, add mem and base arguments.
16734         Handle both null and alignment sanitization, don't say whole
16735         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
16736         call instead of 2 argument.
16737         (instrument_null): Adjust instrument_mem_ref caller.  Don't
16738         instrument calls here.
16739         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16740         like SANITIZE_NULL.
16741         * stor-layout.c (min_align_of_type): New function.
16742         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16743         Or it into SANITIZE_UNDEFINED.
16744         * doc/invoke.texi (-fsanitize=alignment): Document.
16745
16746 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16747
16748         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
16749
16750 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16751
16752         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
16753         inchash.
16754         (vn_reference_compute_hash): Dito.
16755         (vn_nary_op_compute_hash): Dito.
16756         (vn_phi_compute_hash): Dito.
16757         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
16758
16759 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16760
16761         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
16762         Rename to inchash:add_expr_commutative. Convert to inchash.
16763         (iterative_hash_hashable_expr): Rename to
16764         inchash:add_hashable_expr. Convert to inchash.
16765         (avail_expr_hash): Dito.
16766
16767 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16768
16769         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
16770         Convert to inchash.
16771
16772 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16773
16774         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
16775
16776 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16777
16778         * Makefile.in (OBJS): Add rtlhash.o
16779         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
16780         (loc_checksum): Dito.
16781         (loc_checksum_ordered): Dito.
16782         (hash_loc_operands): Dito.
16783         (hash_locs): Dito.
16784         (hash_loc_list): Dito.
16785         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
16786         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
16787         * rtlhash.c: New file.
16788         * rtlhash.h: New file.
16789
16790 2014-07-31  Andi Kleen  <ak@linux.intel.com>
16791
16792         * inchash.h (inchash): Change inchash class to namespace.
16793         (class hash): ... Rename from inchash.
16794         (add_object): Move from macro to class template.
16795         * lto-streamer-out.c (hash_tree): Change inchash
16796         to inchash::hash.
16797         * tree.c (build_type_attribute_qual_variant): Dito.
16798         (type_hash_list): Dito.
16799         (attribute_hash_list): Dito.
16800         (iterative_hstate_expr): Rename to inchash::add_expr
16801         (build_range_type_1): Change inchash to inchash::hash
16802         and use hash::add_expr.
16803         (build_array_type_1): Dito.
16804         (build_function_type): Dito
16805         (build_method_type_directly): Dito.
16806         (build_offset_type): Dito.
16807         (build_complex_type): Dito.
16808         (make_vector_type): Dito.
16809         * tree.h (iterative_hash_expr): Dito.
16810
16811 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
16812
16813         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
16814
16815 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
16816
16817         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
16818         correct alphabetical position.
16819         (vpaddd_f64): Rewrite using builtins.
16820         (vpaddd_s64): Move to correct alphabetical position.
16821         (vpaddd_u64): New.
16822
16823 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
16824
16825         PR target/61844
16826         * config/sh/sh.c (sh_legitimate_address_p,
16827         sh_legitimize_reload_address): Handle reg+reg address modes when
16828         ALLOW_INDEXED_ADDRESS is false.
16829         * config/sh/predicates.md (general_movsrc_operand,
16830         general_movdst_operand): Likewise.
16831
16832 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
16833
16834         * config/aarch64/aarch64-builtins.c
16835         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
16836         BYTES_BIG_ENDIAN.
16837
16838 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
16839
16840         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
16841         the generated mask based on BYTES_BIG_ENDIAN.
16842         (aarch64_simd_check_vect_par_cnst_half): New.
16843         * config/aarch64/aarch64-protos.h
16844         (aarch64_simd_check_vect_par_cnst_half): New.
16845         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
16846         the check out to aarch64_simd_check_vect_par_cnst_half.
16847         (vect_par_cnst_lo_half): Likewise.
16848         * config/aarch64/aarch64-simd.md
16849         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
16850         (move_hi_quad_<mode>): Always generate a low mask.
16851
16852 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16853
16854         * doc/invoke.texi (AVR Options): Add documentation about
16855         __AVR_DEVICE_NAME__ built-in macro.
16856
16857 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
16858
16859         PR target/61948
16860         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
16861         constraints are satisfied.
16862         (<shift>di3_neon): Likewise.
16863
16864 2014-07-31  Richard Biener  <rguenther@suse.de>
16865
16866         PR tree-optimization/61964
16867         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
16868         by structural equality.
16869
16870 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
16871
16872         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
16873         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
16874         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
16875         New enums.
16876         * gcc.c (sanitize_spec_function): Support new option.
16877         (SANITIZER_SPEC): Remove now redundant check.
16878         * opts.c (common_handle_option): Support new option.
16879         (finish_options): Check for incompatibilities.
16880         * toplev.c (process_options): Split userspace-specific checks.
16881
16882 2014-07-31  Richard Biener  <rguenther@suse.de>
16883
16884         * lto-streamer.h (struct output_block): Remove global.
16885         (struct data_in): Remove labels, num_named_labels and
16886         num_unnamed_labels.
16887         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
16888         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
16889
16890 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
16891
16892         PR c++/60517
16893         * common.opt (-Wreturn-local-addr): Moved from c.opt.
16894         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
16895         (isolate_path): New argument to avoid inserting a trap.
16896         (find_implicit_erroneous_behaviour): Handle returning the address
16897         of a local variable.
16898         (find_explicit_erroneous_behaviour): Likewise.
16899
16900 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
16901
16902         PR lto/61868
16903         * toplev.c (init_random_seed): Move piece of code never called to
16904         set_random_seed.
16905         (set_random_seed): see above.
16906
16907 2014-07-31  Tom de Vries  <tom@codesourcery.com>
16908
16909         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
16910
16911 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
16912
16913         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
16914         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
16915
16916 2014-07-31  Richard Biener  <rguenther@suse.de>
16917
16918         * data-streamer.h (streamer_write_data_stream): Declare here,
16919         renamed from ...
16920         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
16921         * lto-cgraph.c (lto_output_node): Adjust.
16922         (lto_output_varpool_node): Likewise.
16923         * data-streamer-out.c (streamer_string_index): Likewise.
16924         (streamer_write_data_stream, lto_append_block): Move from ...
16925         * lto-section-out.c (lto_output_data_stream,
16926         lto_append_block): ... here.
16927
16928 2014-07-30  Mike Stump  <mikestump@comcast.net>
16929
16930         * configure.ac: Also check for popen.
16931         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
16932         * configure: Regenerate.
16933         * config.in:  Regenerate.
16934
16935 2014-07-30  Martin Jambor  <mjambor@suse.cz>
16936
16937         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
16938         parameter to gimple.
16939
16940 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16941
16942         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
16943         address as second parameter to __tpf_eh_return routine.
16944
16945 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
16946
16947         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
16948         Thumb2.
16949
16950 2014-07-30  Tom Tromey  <tromey@redhat.com>
16951
16952         PR c/59855
16953         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
16954         * doc/extend.texi (Type Attributes): Document designated_init
16955         attribute.
16956
16957 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
16958
16959         * graphite-isl-ast-to-gimple.c:
16960         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
16961         (gcc_expression_from_isl_expression): Pass type to
16962         gcc_expression_from_isl_ast_expr_id.
16963
16964 2014-07-30  Richard Biener  <rguenther@suse.de>
16965
16966         * lto-streamer.h (lto_write_data): New function.
16967         * langhooks.c (lhd_append_data): Do not free block.
16968         * lto-section-out.c (lto_write_data): New function writing
16969         raw data to the current section.
16970         (lto_write_stream): Adjust for langhook semantic change.
16971         (lto_destroy_simple_output_block): Write header directly.
16972         * lto-opts.c (lto_write_options): Write options directly.
16973         * lto-streamer-out.c (produce_asm): Write heaeder directly.
16974         (lto_output_toplevel_asms): Likewise.
16975         (copy_function_or_variable): Copy data directly.
16976         (write_global_references): Output index table directly.
16977         (lto_output_decl_state_refs): Likewise.
16978         (write_symbol): Write data directly.
16979         (produce_symtab): Adjust.
16980         (produce_asm_for_decls): Output header and refs directly.
16981
16982 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
16983
16984         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
16985         to speculative_targets
16986         (get_class_context): Fix handling of contextes without outer type;
16987         avoid matching non-polymorphic types in LTO.
16988         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
16989         parameter to speculative_targetsp; handle speculation.
16990         (dump_possible_polymorphic_call_targets): Update dumping.
16991
16992 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
16993
16994         * common.opt (Wodr): Enable by default.
16995
16996 2014-07-29  Olivier Hainque  <hainque@adacore.com>
16997
16998         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
16999
17000 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17001
17002         PR bootstrap/61914
17003         * gengtype.c (strtoken): New function.
17004         (create_user_defined_type): Replace strtok with strtoken.
17005
17006 2014-07-29  Nathan Sidwell  <nathan@acm.org>
17007
17008         * gcov-io.c (gcov_var): Make hidden.
17009         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17010         (gcov_do_dump): Declare.
17011         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17012
17013 2014-07-29  Martin Jambor  <mjambor@suse.cz>
17014
17015         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17016         parameter to gimple.
17017         (sra_modify_assign): Likewise.
17018
17019 2014-07-29  Richard Biener  <rguenther@suse.de>
17020
17021         PR middle-end/52478
17022         * expr.c (expand_expr_real_2): Revert last change.
17023
17024 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17025
17026         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17027         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17028         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17029         call.
17030         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17031         (contains_type_p): Forward declare.
17032         (polymorphic_call_target_hasher::hash): Hash speculative info.
17033         (polymorphic_call_target_hasher::equal): Compare speculative info.
17034         (get_class_context): Handle speuclation.
17035         (contains_type_p): Update.
17036         (get_polymorphic_call_info_for_decl): Update.
17037         (walk_ssa_copies): Break out from ...
17038         (get_polymorphic_call_info): ... here; set speculative context
17039         before giving up.
17040         * ipa-prop.c (ipa_write_indirect_edge_info,
17041         ipa_read_indirect_edge_info): Stream speculative context.
17042         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17043         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17044         SPECULATIVE_MAYBE_DERIVED_TYPE).
17045         (possible_polymorphic_call_targets overriders): Update.
17046         (dump_possible_polymorphic_call_targets overriders): Update.
17047         (dump_possible_polymorphic_call_target_p overriders): Update.
17048
17049 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17050
17051         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17052         ipa-devirt path; fix thinko there.
17053
17054 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
17055
17056         * config/i386/i386.c (ix86_return_in_memory): Replace one
17057         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17058
17059 2014-07-28  Marek Polacek  <polacek@redhat.com>
17060
17061         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
17062
17063 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
17064
17065         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17066         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17067         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17068         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17069         (USE_LD_AS_NEEDED): Likewise.
17070         (ASM_APP_ON): Likewise.
17071         (ASM_APP_OFF): Likewise.
17072         (TARGET_POSIX_IO): Likewise.
17073         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17074         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17075         (USE_LD_AS_NEEDED): Likewise.
17076         (ASM_APP_ON): Likewise.
17077         (ASM_APP_OFF): Likewise.
17078         (TARGET_POSIX_IO): Likewise.
17079
17080 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17081
17082         PR middle-end/61734
17083         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17084         operators other than the equality operators.
17085
17086 2014-07-28  Richard Biener  <rguenther@suse.de>
17087
17088         PR middle-end/52478
17089         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17090         sure to register SImode ones, not only >= word_mode ones.
17091         * expr.c (expand_expr_real_2): When expanding -ftrapv
17092         binops do not use OPTAB_LIB_WIDEN.
17093
17094 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
17095
17096         PR middle-end/61919
17097         * tree-outof-ssa.c (insert_partition_copy_on_edge)
17098         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17099         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17100         inserting them in the insn stream.
17101
17102 2014-07-28  Marek Polacek  <polacek@redhat.com>
17103
17104         PR middle-end/61913
17105         * common.opt (Wodr): Add Var.
17106
17107 2014-07-28  Richard Biener  <rguenther@suse.de>
17108
17109         PR tree-optimization/61921
17110         * tree-ssa-structalias.c (create_variable_info_for_1): Check
17111         if there is a varpool node before dereferencing it.
17112
17113 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
17114
17115         * graphite-sese-to-poly.c:
17116         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17117         id of the pbb), which contains pointer to the pbb1.
17118
17119         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17120
17121 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
17122
17123         * graphite-isl-ast-to-gimple.c:
17124         (graphite_create_new_guard): New function.
17125         (translate_isl_ast_node_if): New function.
17126         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17127
17128         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17129
17130 2014-07-27  Anthony Green  <green@moxielogic.com>
17131
17132         * config.gcc: Add moxie-*-moxiebox* configuration.
17133         * config/moxie/moxiebox.h: New file.
17134
17135 2014-07-26  Andrew Pinski  <apinski@cavium.com>
17136
17137         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17138         from the read only register.
17139
17140 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17141
17142         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17143         as the allocation class if it isn't likely to be spilled.
17144
17145 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17146
17147         * rtl.h (tls_referenced_p): Declare.
17148         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17149         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17150         (mips_cannot_force_const_mem): Use tls_referenced_p.
17151         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17152         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17153         instead of pa_tls_referenced_p.
17154         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17155         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17156         (pa_legitimate_constant_p): Likewise.
17157         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17158         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17159         (rs6000_cannot_force_const_mem, rs6000_emit_move)
17160         (rs6000_address_for_altivec): Use tls_referenced_p instead of
17161         rs6000_tls_referenced_p.
17162         (rs6000_tls_symbol_ref_1): Delete.
17163
17164 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
17165
17166         PR target/44551
17167         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17168         Optimize inverse of a VEC_CONCAT.
17169
17170 2014-07-25  Xinliang David Li  <davidxl@google.com>
17171
17172         * params.def: New parameter.
17173         * coverage.c (get_coverage_counts): Check new flag.
17174         (coverage_compute_profile_id): Check new flag.
17175         (coverage_begin_function): Check new flag.
17176         (coverage_end_function): Check new flag.
17177         * value-prof.c (coverage_node_map_initialized_p): New function.
17178         (init_node_map): Populate map with all functions.
17179         * doc/invoke.texi: Document new parameter.
17180
17181 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
17182             Richard Biener <rguenther@suse.de>
17183
17184         * lto-streamer-out.c (struct sccs): Turn to ...
17185         (class DFS): ... this one; refactor the DFS walk so it can
17186         be re-done on per-SCC basis.
17187         (DFS::DFS): New constructor.
17188         (DFS::~DFS): New destructor.
17189         (hash_tree): Add new MAP argument holding in-SCC hash values;
17190         remove POINTER_TYPE hashing hack.
17191         (scc_entry_compare): Rename to ...
17192         (DFS::scc_entry_compare): ... this one.
17193         (hash_scc): Rename to ...
17194         (DFS::hash_scc): ... this one; pass output_block instead
17195         of streamer_cache; work harder to get unique and stable SCC
17196         hashes.
17197         (DFS_write_tree): Rename to ...
17198         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17199         (lto_output_tree): Update.
17200
17201 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17202
17203         * lto-streamer-out.c (hash_tree): Convert to inchash.
17204
17205 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17206
17207         * tree.c (build_type_attribute_qual_variant): Use inchash.
17208         (type_hash_list): Dito.
17209         (attribute_hash_list): Dito
17210         (iterative_hstate_expr): Dito.
17211         (iterative_hash_expr): Dito.
17212         (build_range_type_1): Dito.
17213         (build_array_type_1): Dito.
17214         (build_function_type): Dito.
17215         (build_method_type_directly): Dito.
17216         (build_offset_type): Dito.
17217         (build_complex_type): Dito.
17218         (make_vector_type): Dito.
17219         * tree.h (iterative_hash_expr): Add compat wrapper.
17220         (iterative_hstate_expr): Add.
17221
17222 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17223
17224         * Makefile.in (OBJS): Add inchash.o.
17225         (PLUGIN_HEADERS): Add inchash.h.
17226         * ipa-devirt.c: Include inchash.h.
17227         * lto-streamer-out.c: Dito.
17228         * tree-ssa-dom.c: Dito.
17229         * tree-ssa-pre.c: Dito.
17230         * tree-ssa-sccvn.c: Dito.
17231         * tree-ssa-tail-merge.c: Dito.
17232         * asan.c: Dito.
17233         * tree.c (iterative_hash_hashval_t): Move to ...
17234         (iterative_hash_host_wide_int): Move to ...
17235         * inchash.c: Here. New file.
17236         * tree.h (iterative_hash_hashval_t): Move to ...
17237         (iterative_hash_host_wide_int): Move to ...
17238         * inchash.h: Here. New file.
17239
17240 2014-07-25  Richard Biener  <rguenther@suse.de>
17241
17242         PR middle-end/61762
17243         PR middle-end/61894
17244         * fold-const.c (native_encode_int): Add and handle offset
17245         parameter to do partial encodings of expr.
17246         (native_encode_fixed): Likewise.
17247         (native_encode_real): Likewise.
17248         (native_encode_complex): Likewise.
17249         (native_encode_vector): Likewise.
17250         (native_encode_string): Likewise.
17251         (native_encode_expr): Likewise.
17252         * fold-const.c (native_encode_expr): Add offset parameter
17253         defaulting to -1.
17254         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17255         (fold_ctor_reference): Handle all reads from tcc_constant
17256         ctors.
17257
17258 2014-07-25  Richard Biener  <rguenther@suse.de>
17259
17260         * tree-inline.c (estimate_move_cost): Mark speed_p argument
17261         as possibly unused.
17262
17263 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17264
17265         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17266
17267 2014-07-24  Kyle McMartin  <kyle@redhat.com>
17268
17269         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17270
17271 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17272
17273         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17274         Add prototype.
17275         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17276         function.
17277         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17278         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17279         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17280
17281 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17282
17283         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17284         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17285         aggregate types.  Instead, *all* aggregate types, except for single-
17286         element or homogeneous float/vector aggregates, are quadword-aligned
17287         if required by their type alignment.  Issue -Wpsabi note when a type
17288         is now treated differently than before.
17289
17290 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17291
17292         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17293         does not fit fully into floating-point registers, and there is still
17294         space in the register parameter area, use GPRs to pass those parts
17295         of the argument.  Issue -Wpsabi note if any parameter is now treated
17296         differently than before.
17297         (rs6000_arg_partial_bytes): Update.
17298
17299 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
17300
17301         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17302
17303 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17304
17305         * rtl.h (target_rtl): Remove lang_dependent_initialized.
17306         * toplev.c (initialize_rtl): Don't use it.  Move previously
17307         "language-dependent" calls to...
17308         (backend_init): ...here.
17309         (lang_dependent_init_target): Don't set lang_dependent_initialized.
17310         Assert that RTL initialization hasn't happend yet.
17311
17312 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17313
17314         PR rtl-optimization/61629
17315         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17316         they have already been initialized.
17317
17318 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17319
17320         PR middle-end/61268
17321         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17322         DECL_INCOMING_RTL and entry_parm.
17323         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17324         * calls.c (load_register_parameters): Likewise argument values.
17325         (emit_library_call_value_1, store_one_arg): Likewise argument
17326         save areas.
17327         * config/i386/i386.c (assign_386_stack_local): Likewise the local
17328         stack slot.
17329         * explow.c (validize_mem): Modify the argument in-place.
17330
17331 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17332
17333         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17334         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17335
17336 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17337
17338         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17339         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17340
17341 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17342
17343         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17344         (aarch64_save_callee_saves): New parameter "skip_wb".
17345         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17346
17347 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17348
17349         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17350         "wb_candidate2".
17351         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
17352
17353 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
17354
17355         * graphite-isl-ast-to-gimple.c:
17356         (graphite_create_new_loop): Add calling of isl_id_free to properly
17357         decrement reference counts.
17358
17359         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
17360
17361 2014-07-24  Martin Liska  <mliska@suse.cz>
17362         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
17363         function used.
17364         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
17365         (rs6000_code_end): Likewise.
17366
17367 2014-07-24  Martin Liska  <mliska@suse.cz>
17368
17369         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
17370         symtab_node funtion used.
17371         (rs6000_xcoff_declare_object_name): Likewise.
17372
17373 2014-07-24  Martin Liska  <mliska@suse.cz>
17374
17375         * cgraphunit.c (compile): Correct function used.
17376
17377 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
17378
17379         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
17380         as non-indexable.
17381
17382 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
17383
17384         PR lto/61802
17385         * varasm.c (bss_initializer_p): Handle offlined ctors.
17386         (align_variable, get_variable_align): Likewise.
17387         (make_decl_one_only): Likewise.
17388         (default_binds_local_p_1): Likewise.
17389         (decl_binds_to_current_def_p): Likewise.
17390         (get_variable_section): Get constructor if it is offlined.
17391         (assemble_variable_contents): Sanity check that the caller
17392         streamed in the ctor in LTO.
17393
17394 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
17395
17396         * graphite-isl-ast-to-gimple.c:
17397         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
17398         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
17399         isl_ast_op_pdiv_r to the different case.
17400
17401         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
17402
17403 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17404
17405         PR middle-end/61876
17406         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
17407         when flag_errno_math is on.
17408
17409 2014-07-24  Martin Liska  <mliska@suse.cz>
17410
17411         * cgraph.h (varpool_node):
17412         (availability get_availability (void)):
17413         created from cgraph_variable_initializer_availability
17414         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
17415         created from: cgraph_variable_initializer_availability
17416         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
17417         (void finalize_named_section_flags (void)):
17418         created from varpool_finalize_named_section_flags
17419         (bool assemble_decl (void)): created from varpool_assemble_decl
17420         (void analyze (void)): created from varpool_analyze_node
17421         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
17422         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
17423         (void remove_initializer (void)): created from varpool_remove_initializer
17424         (tree get_constructor (void)): created from varpool_get_constructor
17425         (bool externally_visible_p (void)): created from varpool_externally_visible_p
17426         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
17427         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
17428         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
17429         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
17430         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
17431         (static bool output_variables (void)): created from varpool_output_variables
17432         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
17433         created from varpool_extra_name_alias
17434         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
17435         (static void dump_varpool (FILE *f)): created from dump_varpool
17436         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
17437         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
17438         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
17439         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
17440         (void assemble_aliases (void)): created from assemble_aliases
17441
17442 2014-07-24  Martin Liska  <mliska@suse.cz>
17443
17444         * cgraph.h (symtab_node):
17445         (void register_symbol (void)): created from symtab_register_node
17446         (void remove (void)): created from symtab_remove_node
17447         (void dump (FILE *f)): created from dump_symtab_node
17448         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
17449         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
17450         (struct ipa_ref *add_reference (symtab_node *referred_node,
17451         enum ipa_ref_use use_type)): created from add_reference
17452         (struct ipa_ref *add_reference (symtab_node *referred_node,
17453         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
17454         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
17455         gimple stmt)): created from maybe_add_reference
17456         (bool semantically_equivalent_p (symtab_node *target)): created from
17457         symtab_semantically_equivalent_p
17458         (void remove_from_same_comdat_group (void)): created from
17459         remove_from_same_comdat_group
17460         (void add_to_same_comdat_group (symtab_node *old_node)): created from
17461         symtab_add_to_same_comdat_group
17462         (void dissolve_same_comdat_group_list (void)): created from
17463         symtab_dissolve_same_comdat_group_list
17464         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
17465         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
17466         created from symtab_alias_ultimate_target
17467         (inline symtab_node *next_defined_symbol (void)): created from
17468         symtab_next_defined_symbol
17469         (bool resolve_alias (symtab_node *target)): created from
17470         symtab_resolve_alias
17471         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
17472         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
17473         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
17474         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
17475         (void set_section (const char *section)): created from set_section_1
17476         (enum availability get_availability (void)): created from symtab_node_availability
17477         (void make_decl_local (void)): created from symtab_make_decl_local
17478         (bool real_symbol_p (void)): created from symtab_read_node
17479         (can_be_discarded_p (void)): created from symtab_can_be_discarded
17480         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
17481         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
17482         symtab_in_same_comdat_p;
17483         (bool address_taken_from_non_vtable_p (void)): created from
17484         address_taken_from_non_vtable_p
17485         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
17486         (static void dump_table (FILE *)): created from dump_symtab
17487         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
17488         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
17489         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
17490         symtab_used_from_object_file_p
17491         (void dump_base (FILE *)): created from dump_symtab_base
17492         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
17493         (void unregister (void)): created from symtab_unregister_node
17494         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
17495         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
17496         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
17497         symtab_nonoverwritable_alias_1
17498         * cgraph.h (cgraph_node):
17499         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
17500         created from cgraph_remove_node_and_inline_clones
17501         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
17502         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
17503         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
17504         (cgraph_node *function_symbol (enum availability *avail = NULL)):
17505         created from cgraph_function_node
17506         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
17507         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
17508         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
17509         created from cgraph_create_clone
17510         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
17511         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
17512         created from cgraph_create_virtual_clone
17513         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
17514         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
17515         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
17516         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
17517         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
17518         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
17519         created from cgraph_function_version_info
17520         (struct cgraph_function_version_info *insert_new_function_version (void)):
17521         created from insert_new_cgraph_node_version
17522         (struct cgraph_function_version_info *function_version (void)): created from
17523         get_cgraph_node_version
17524         (void analyze (void)): created from analyze_function
17525         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
17526         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
17527         tree real_alias) cgraph_add_thunk
17528         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
17529         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
17530         created from cgraph_function_or_thunk_node
17531         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
17532         created from expand_thunk
17533         (void reset (void)): created from cgraph_reset_node
17534         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
17535         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
17536         (void remove (void)): created from cgraph_remove_node
17537         (void dump (FILE *f)): created from dump_cgraph_node
17538         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
17539         (bool get_body (void)): created from cgraph_get_body
17540         (void release_body (void)): created from cgraph_release_function_body
17541         (void unnest (void)): created from cgraph_unnest_node
17542         (void make_local (void)): created from cgraph_make_node_local
17543         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
17544         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
17545         gcov_type count, int freq)): created from cgraph_create_edge
17546         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
17547         gcov_type count, int freq)): created from cgraph_create_indirect_edge
17548         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
17549         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
17550         created from cgraph_create_edge_including_clones
17551         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
17552         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
17553         (void remove_callers (void)): created from cgraph_node_remove_callers
17554         (void remove_callees (void)): created from cgraph_node_remove_callees
17555         (enum availability get_availability (void)): created from cgraph_function_body_availability
17556         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
17557         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
17558         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
17559         (void call_duplication_hooks (cgraph_node *node2)): created from
17560         cgraph_call_node_duplication_hooks
17561         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
17562         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
17563         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
17564         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
17565         (void call_function_insertion_hooks (void)):
17566         created from cgraph_call_function_insertion_hooks
17567         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
17568         (bool local_p (void)): created from cgraph_local_node
17569         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
17570         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
17571         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
17572         (inline bool only_called_directly_or_aliased_p (void)):
17573         created from cgraph_only_called_directly_or_aliased_p
17574         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
17575         created from cgraph_will_be_removed_from_program_if_no_direct_calls
17576         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
17577         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
17578         (bool can_remove_if_no_direct_calls_p (void)):
17579         created from cgraph_can_remove_if_no_direct_calls_p
17580         (inline bool has_gimple_body_p (void)):
17581         created from cgraph_function_with_gimple_body_p
17582         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
17583         (static void dump_cgraph (FILE *f)): created from dump_cgraph
17584         (static inline void debug_cgraph (void)): created from debug_cgraph
17585         (static void record_function_versions (tree decl1, tree decl2)):
17586         created from record_function_versions
17587         (static void delete_function_version (tree decl)):
17588         created from delete_function_version
17589         (static void add_new_function (tree fndecl, bool lowered)):
17590         created from cgraph_add_new_function
17591         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
17592         (static cgraph_node * create (tree decl)): created from cgraph_create_node
17593         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
17594         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
17595         (static cgraph_node *get_for_asmname (tree asmname)):
17596         created from cgraph_node_for_asm
17597         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
17598         created from cgraph_same_body_alias
17599         (static bool used_from_object_file_p_worker (cgraph_node *node,
17600         void *): new function
17601         (static bool non_local_p (cgraph_node *node, void *)):
17602         created from cgraph_non_local_node_p_1
17603         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17604         created from verify_cgraph
17605         (static bool make_local (cgraph_node *node, void *)):
17606         created from cgraph_make_node_local
17607         (static cgraph_node *create_alias (tree alias, tree target)):
17608         created from cgraph_create_function_alias
17609         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17610         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17611         created from cgraph_create_edge_1
17612         * cgraph.h (varpool_node):
17613         (void remove (void)): created from varpool_remove_node
17614         (void dump (FILE *f)): created from dump_varpool_node
17615
17616 2014-07-24  Richard Biener  <rguenther@suse.de>
17617
17618         PR ipa/61823
17619         * tree-ssa-structalias.c (create_variable_info_for_1):
17620         Use varpool_get_constructor.
17621         (create_variable_info_for): Likewise.
17622
17623 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17624
17625         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17626         subtract outgoing area size when restoring stack_pointer_rtx.
17627
17628 2014-07-24  Nick Clifton  <nickc@redhat.com>
17629
17630         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17631         that operations are taking place in parallel.
17632         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17633
17634 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
17635
17636         * omp-low.c (extract_omp_for_data): Add missing break statement.
17637
17638 2014-07-24  Richard Biener  <rguenther@suse.de>
17639
17640         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17641         * tree-inline.c (estimate_move_cost): Add speed_p parameter
17642         and adjust MOVE_RATIO query accordingly.
17643         (estimate_num_insns): Adjust callers.
17644         * ipa-prop.c (ipa_populate_param_decls): Likewise.
17645         * ipa-cp.c (gather_context_independent_values,
17646         estimate_local_effects): Likewise.
17647         * ipa-split.c (consider_split): Likewise.
17648
17649 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
17650
17651         * config/i386/driver-i386.c: Remove names of unused arguments and
17652         unnecessary unused attributes.
17653         * config/i386/host-mingw32.c: Likewise.
17654         * config/i386/i386.c: Likewise.
17655         * config/i386/winnt-stubs.c: Likewise.
17656         * config/i386/winnt.c: Likewise.
17657
17658 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17659
17660         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17661         (aarch64_gen_loadwb_pair): New helper function.
17662         (aarch64_expand_epilogue): Simplify code using new helper functions.
17663         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17664
17665 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17666
17667         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17668         (aarch64_gen_storewb_pair): New helper function.
17669         (aarch64_expand_prologue): Simplify code using new helper functions.
17670         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17671
17672 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17673
17674         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17675         Rename to aarch64_save_callee_saves, remove restore code.
17676         (aarch64_restore_callee_saves): New function.
17677
17678 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17679
17680         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17681         (aarch64_save_callee_saves): New function to handle reg save
17682         for both core and vectore regs.
17683
17684 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17685
17686         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17687         (aarch64_gen_store_pair): New helper function.
17688         (aarch64_save_or_restore_callee_save_registers)
17689         (aarch64_save_or_restore_fprs): Use new helper functions.
17690
17691 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17692
17693         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17694         (aarch64_save_or_restore_callee_save_registers)
17695         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
17696
17697 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17698
17699         * config/aarch64/aarch64.c
17700         (aarch64_save_or_restore_callee_save_registers)
17701         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
17702
17703 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17704
17705         * config/aarch64/aarch64.c
17706         (aarch64_save_or_restore_callee_save_registers)
17707         (aarch64_save_or_restore_fprs): Remove 'increment'.
17708
17709 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17710
17711         * config/aarch64/aarch64.c
17712         (aarch64_save_or_restore_callee_save_registers)
17713         (aarch64_save_or_restore_fprs): Use register offset in
17714         cfun->machine->frame.reg_offset.
17715
17716 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17717
17718         * config/aarch64/aarch64.c
17719         (aarch64_save_or_restore_callee_save_registers)
17720         (aarch64_save_or_restore_fprs): Remove base_rtx.
17721
17722 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17723
17724         * config/aarch64/aarch64.c
17725         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17726         to 'start_offset'.  Remove local variable 'start_offset'.
17727
17728 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17729
17730         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17731         type to HOST_WIDE_INT.
17732
17733 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17734
17735         * config/aarch64/aarch64.c (aarch64_expand_prologue)
17736         (aarch64_save_or_restore_fprs)
17737         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17738
17739 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17740
17741         * config/arm/t-rtems-eabi: Add
17742         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17743         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17744         mbig-endian/mthumb/march=armv7-r, and
17745         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
17746         multilibs.
17747
17748 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17749             Chris Johns <chrisj@rtems.org>
17750             Joel Sherrill <joel.sherrill@oarcorp.com>
17751
17752         * config.gcc: Add nios2-*-rtems*.
17753         * config/nios2/rtems.h: New file.
17754         * gcc/config/nios2/t-rtems: New file.
17755
17756 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
17757
17758         PR target/61396
17759         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
17760         constant numbers, not general constants.
17761         (rs6000_expand_vector_init): Ditto.
17762
17763 2014-07-23  Nathan Sidwell  <nathan@acm.org>
17764
17765         * gcov-tool.c (gcov_list): Declare here.
17766         (set_gcov_list): Remove.
17767         (gcov_output_files): Set gcov_list directly.
17768
17769 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
17770
17771         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
17772
17773 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
17774
17775         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
17776         callee-saved registers are available for padding purpose
17777         and r3 is not mandatory, then prefer use those callee-saved
17778         instead of r3.
17779
17780 2014-07-23  Richard Biener  <rguenther@suse.de>
17781
17782         * params.def (PARAM_MAX_COMBINE_INSNS): New.
17783         * combine.c: Include statistics.h and params.h.
17784         (combine_instructions): Guard three and four insn combines
17785         with max-combine-insns value.  Record statistics for combines
17786         performed.
17787         * doc/invoke.texi (max-combine-insns): Document new param.
17788
17789 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
17790
17791         * graphite-isl-ast-to-gimple.c:
17792         (translate_isl_ast_node_block): New function.
17793         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
17794
17795         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
17796         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
17797
17798 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
17799
17800         * graphite-isl-ast-to-gimple.c:
17801         (get_max_schedule_dimensions): New function.
17802         (extend_schedule): Likewise.
17803         (generate_isl_schedule): Add calling of extend_schedule and
17804         get_max_schedule_dimensions.
17805
17806 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17807
17808         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
17809         (case UNSPEC): Handle UNSPEC_RBIT.
17810
17811 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17812
17813         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
17814         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
17815
17816 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17817
17818         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
17819
17820 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
17821
17822         * graphite-isl-ast-to-gimple.c:
17823         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
17824         (ivs_params_clear):
17825         (build_iv_mapping): New function.
17826         (translate_isl_ast_node_user): Likewise.
17827         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
17828
17829         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
17830         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
17831         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
17832
17833 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
17834
17835         PR target/55701
17836         * config/arm/arm.md (setmem): New pattern.
17837         * config/arm/arm-protos.h (struct tune_params): New fields.
17838         (arm_gen_setmem): New prototype.
17839         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17840         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17841         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17842         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17843         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17844         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17845         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17846         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17847         (arm_const_inline_cost): New function.
17848         (arm_block_set_max_insns): New function.
17849         (arm_block_set_non_vect_profit_p): New function.
17850         (arm_block_set_vect_profit_p): New function.
17851         (arm_block_set_unaligned_vect): New function.
17852         (arm_block_set_aligned_vect): New function.
17853         (arm_block_set_unaligned_non_vect): New function.
17854         (arm_block_set_aligned_non_vect): New function.
17855         (arm_block_set_vect, arm_gen_setmem): New functions.
17856
17857 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
17858
17859         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
17860
17861 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
17862
17863         PR target/61855
17864         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
17865         out of #ifdef __OPTIMIZE__.
17866
17867 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
17868
17869         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
17870         different trapping status if -fnon-call-exceptions is enabled.
17871
17872 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
17873
17874         * expr.c (store_field): Handle VOIDmode for calls that return values
17875         in multiple locations.
17876
17877 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17878
17879         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
17880         (altivec_vsldoi_<mode>): Likewise.
17881
17882 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
17883
17884         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
17885         to the number of characters in the line.
17886
17887 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
17888
17889         * graphite-isl-ast-to-gimple.c: Add using of
17890         build_nonstandard_integer_type instead of int128_integer_type_node.
17891
17892 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
17893
17894         * toplev.c (output_stack_usage): Adjust the location of the warning.
17895
17896 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
17897
17898         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
17899         (*membar_storeload): Disable for LEON3.
17900
17901 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17902
17903         PR rtl-optimization/61461
17904         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
17905
17906 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
17907
17908         PR target/61794
17909         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
17910         Fix instruction constraint.
17911         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
17912
17913 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
17914
17915         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
17916
17917 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
17918
17919         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
17920         GNU coding standards.
17921         (nds32_register_move_cost): Likewise.
17922         (nds32_memory_move_cost): Likewise.
17923         (nds32_address_cost): Likewise.
17924
17925 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17926
17927         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
17928
17929 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
17930
17931         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
17932         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
17933         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17934         (HAVE_sync_compare_and_swapqi): Define.
17935         (HAVE_sync_compare_and_swaphi): Likewise.
17936         (HAVE_sync_compare_and_swapsi): Likewise.
17937
17938 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
17939
17940         * config/mips/p5600.md: Add missing cpu tests.
17941
17942 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17943
17944         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
17945         (vmla_f64): Likewise.
17946         (vfms_f64): Likewise.
17947         (vmls_f64): Likewise.
17948
17949 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17950
17951         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
17952         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
17953
17954 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17955
17956         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
17957         (vmlal_high_lane_s32): Likewise.
17958         (vmlal_high_lane_u16): Likewise.
17959         (vmlal_high_lane_u32): Likewise.
17960         (vmlsl_high_lane_s16): Likewise.
17961         (vmlsl_high_lane_s32): Likewise.
17962         (vmlsl_high_lane_u16): Likewise.
17963         (vmlsl_high_lane_u32): Likewise.
17964
17965 2014-07-17  Terry Guo  <terry.guo@arm.com>
17966
17967         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
17968         (alus_reg): Renamed to alus_sreg.
17969         * config/arm/arm-fixed.md: Change type of non-dsp instructions
17970         from alu_reg to alu_sreg.  Change type of dsp instructions from
17971         alu_reg to alu_dsp_reg.
17972         * config/arm/thumb1.md: Likewise.
17973         * config/arm/thumb2.md: Likewise.
17974         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
17975         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
17976         with alu_sreg and alus_sreg.
17977         * config/arm/arm1026ejs.md (alu_op): Likewise.
17978         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
17979         * config/arm/arm926ejs.md (9_alu_op): Likewise.
17980         * config/arm/fa526.md (526_alu_op): Likewise.
17981         * config/arm/fa606te.md (606te_alu_op): Likewise.
17982         * config/arm/fa626te.md (626te_alu_op): Likewise.
17983         * config/arm/fa726te.md (726te_alu_op): Likewise.
17984         * config/arm/fmp626.md (mp626_alu_op): Likewise.
17985         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
17986         alu_sreg, alu_dsp_reg and alus_sreg.
17987         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
17988         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17989         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17990         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
17991         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
17992         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17993         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17994         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17995         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
17996         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
17997         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
17998         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
17999         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18000         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18001         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18002         alus_reg to alus_sreg.
18003
18004 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
18005
18006         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18007         infinity format.
18008
18009 2014-07-17  Richard Biener  <rguenther@suse.de>
18010
18011         PR rtl-optimization/61801
18012         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18013         don't set reg_pending_barrier if it appears in a debug-insn.
18014
18015 2014-07-16  DJ Delorie  <dj@redhat.com>
18016
18017         * config/rx/rx.c (rx_option_override): Fix alignment values.
18018         (rx_align_for_label): Likewise.
18019
18020 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
18021
18022         PR target/61737.
18023         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18024         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18025         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18026         functions.
18027         (cris_print_index, cris_print_operand, cris_constant_index_p)
18028         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18029         (cris_address_cost): Ditto last CONSTANT_P.
18030         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
18031         callers changed.  Yield cris_offsettable_symbol for non-PIC
18032         constant symbolic expressions including labels.  Yield cris_unspec
18033         for all unspecs.
18034         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
18035         target to pic_offset_table_rtx for calls that will likely go
18036         through PLT, const0_rtx when they can't.  All callers changed.
18037         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18038         symbolic expressions to be PICified.  Remove second, redundant,
18039         assert on can_create_pseudo_p returning non-zero.  Use
18040         replace_equiv_address_nv, not replace_equiv_address, for final
18041         operand update.
18042         * config/cris/cris.md ("movsi"): Move variable t to pattern
18043         toplevel. Adjust assert for new cris_symbol_type member.  Use
18044         CONSTANT_P instead of CONSTANT_ADDRESS_P.
18045         ("*movsi_internal") <case 9>: Make check for valid unspec operands
18046         for lapc stricter.
18047         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18048         ("call", "call_value"): Use second incoming operand as a marker
18049         for pic-offset-table-register being used.
18050         ("*expanded_call_non_v32", "*expanded_call_v32")
18051         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18052         second incoming operand to CALL, match cris_call_type_marker.
18053         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
18054         ("*expanded_call_side"): Ditto.  Fix typo in comment.
18055         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18056         CONSTANT_P.
18057         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18058         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18059         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
18060         users changed.  Add members cris_offsettable_symbol and cris_unspec.
18061         (cris_symbol_type): Rename from cris_pic_symbol_type.
18062         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18063         just CONSTANT_P.
18064         * config/cris/cris-protos.h (cris_symbol_type_of,
18065         cris_expand_pic_call_address): Adjust prototypes.
18066         (cris_legitimate_constant_p): New prototype.
18067
18068         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18069         an existing tmake_file.  Don't add t-slibgcc and t-linux.
18070
18071 2014-07-17  Jason Merrill  <jason@redhat.com>
18072
18073         PR c++/61623
18074         * symtab.c (symtab_remove_from_same_comdat_group): Also
18075         set_comdat_group to NULL_TREE.
18076         (verify_symtab): Fix diagnostic.
18077
18078 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
18079
18080         PR target/61662
18081         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18082
18083 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
18084
18085         Support location tracking for built-in macro tokens
18086         * input.h (is_location_from_builtin_token): New function declaration.
18087         * input.c (is_location_from_builtin_token): New function definition.
18088         * toplev.c (general_init): Tell libcpp what the pre-defined
18089         spelling location for built-in tokens is.
18090
18091 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
18092
18093         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18094         on the FUNCTION_DECL.
18095
18096 2014-07-16  Richard Biener  <rguenther@suse.de>
18097
18098         PR other/61782
18099         * doc/extend.texi (always_inline): Clarify.
18100
18101 2014-07-15  Eric Christopher  <echristo@gmail.com>
18102
18103         * doc/invoke.texi (Link Options): Document -z option.
18104
18105 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
18106
18107         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18108         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18109
18110 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
18111
18112         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18113
18114 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
18115
18116         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18117         varpool_assemble_decl.
18118         * varpool.c (varpool_assemble_decl): Assert that node->definition is
18119         true.
18120
18121 2014-07-15  Michael Matz  <matz@suse.de>
18122
18123         PR rtl-optimization/61772
18124         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18125
18126 2014-07-15  Richard Biener  <rguenther@suse.de>
18127
18128         * opts.c (default_options_table): Disable bit-ccp at -Og.
18129
18130 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18131
18132         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18133
18134 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18135
18136         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18137         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18138         call langhook for unknown declaration.
18139         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18140         * tree.h (DECL_ARGUMENTS): Update.
18141         * print-tree.c (print_node): Update.
18142         * tree-core.h (tree_decl_non_common): Remove arguments.
18143         (tree_function_decl): Add arguments.
18144
18145 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
18146
18147         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18148
18149 2014-07-14  Richard Biener  <rguenther@suse.de>
18150
18151         PR tree-optimization/61779
18152         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18153         simplifying a condition.
18154
18155 2014-07-14  Richard Biener  <rguenther@suse.de>
18156
18157         * builtins.c (c_strlen): Make only_value == 2 really only
18158         affect warning generation.
18159
18160 2014-07-14  Richard Biener  <rguenther@suse.de>
18161
18162         PR tree-optimization/61757
18163         PR tree-optimization/61783
18164         PR tree-optimization/61787
18165         * tree-ssa-dom.c (record_equality): Revert canonicalization
18166         change and add comment.
18167         (propagate_rhs_into_lhs): Revert previous fix, removing
18168         loop depth restriction again.
18169
18170 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18171
18172         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18173         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18174         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18175         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18176         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18177         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18178         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18179
18180 2014-07-14  Richard Biener  <rguenther@suse.de>
18181
18182         * cgraph.h (decl_in_symtab_p): Make inline.
18183
18184 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
18185
18186         PR middle-end/61294
18187         * doc/invoke.texi (-Wmemset-transposed-args): Document.
18188
18189         PR target/61656
18190         * config/i386/i386.c (classify_argument): Don't merge classes above
18191         number of words.
18192
18193 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
18194
18195         * cgraph.h (symtab_node): Add nonzero_address.
18196         (decl_in_symtab_p): Break out from ...
18197         (symtab_get_node): ... here.
18198         * fold-const.c: Include cgraph.h
18199         (tree_single_nonzero_warnv_p): Use symtab to determine
18200         if symbol is non-zero.
18201         * symtab.c (symtab_node::nonzero_address): New method.
18202
18203 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18204
18205         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18206         forgotten in previous commit.
18207
18208 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18209
18210         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18211         on builtin types.
18212         * ipa-devirt.c: Include stor-layout.h and intl.h
18213         (odr_subtypes_equivalent_p): New function.
18214         (warn_odr): New function.
18215         (warn_type_mismatch): New function.
18216         (odr_types_equivalent_p): New function.
18217         (add_type_duplicate): Use it.
18218         * common.opt (Wodr): New flag.
18219         * doc/invoke.texi (Wodr): Document new warning.
18220
18221 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18222
18223         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
18224         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18225         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
18226         (varpool_get_constructor): Push CTORS_IN timevar.
18227         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
18228
18229 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
18230
18231         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
18232         Remove VOID_FTYPE_PUSHORT.
18233         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
18234         Change code to USHORT_FTYPE_VOID.
18235         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
18236         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
18237         (ix86_atomic_assign_expand_fenv): Update for
18238         __builtin_ia32_fnstsw changes.
18239         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
18240         (fnstsw): Change operand 0 to nonimmediate operand.
18241
18242 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18243
18244         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
18245         (varpool_get_constructor): New function.
18246         (varpool_ctor_useable_for_folding_p): Break out from ...
18247         (ctor_for_folding): ... here; use varpool_get_constructor.
18248         (varpool_assemble_decl): Likewise.
18249         * lto-streamer.h (struct output_block): Turn cgraph_node
18250         to symbol filed.
18251         (lto_input_variable_constructor): Declare.
18252         * ipa-visibility.c (function_and_variable_visibility): Use
18253         varpool_get_constructor.
18254         * cgraph.h (varpool_get_constructor): Declare.
18255         (varpool_ctor_useable_for_folding_p): New function.
18256         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18257         parameter; return error_mark_node for non-trivial constructors.
18258         (lto_write_tree_1, DFS_write_tree): Update use of
18259         get_symbol_initial_value.
18260         (output_function): Update initialization of symbol.
18261         (output_constructor): New function.
18262         (copy_function): Rename to ..
18263         (copy_function_or_variable): ... this one; handle vars too.
18264         (lto_output): Output variable sections.
18265         * lto-streamer-in.c (input_constructor): New function.
18266         (lto_read_body): Rename from ...
18267         (lto_read_body_or_constructor): ... this one; handle vars too.
18268         (lto_input_variable_constructor): New function.
18269         * ipa-prop.c (ipa_prop_write_jump_functions,
18270         ipa_prop_write_all_agg_replacement): Update.
18271         * lto-cgraph.c (compute_ltrans_boundary): Use it.
18272         (output_cgraph_opt_summary): Set symbol to NULL.
18273
18274 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18275
18276         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18277         non-polymorphic types.
18278         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18279         * ipa-devirt.c (types_same_for_odr): Do not explode when one
18280         of types is not polymorphic.
18281
18282 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
18283
18284         * lra-constraints.c (remove_inheritance_pseudos): Process
18285         destination pseudo too.
18286
18287 2014-07-11  Rong Xu  <xur@google.com>
18288
18289         * gcov-tool.c (gcov_output_files): Fix build error introduced in
18290         commit r212448.
18291
18292 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
18293
18294         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18295         * config/avr/avr-devices.c (AVR_MCU): Same.
18296         (avr_mcu_types): add text start value to end of device list.
18297         * config/avr/avr-mcus.def: Add text section start for all devices.
18298         (ata5782): Add new avr5 device.
18299         (ata5831): Same.
18300         * config/avr/avr-tables.opt: Regenerate.
18301         * config/avr/avr.h: Add declaration for text section start handler.
18302         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18303         SPEC functions.
18304         (LINK_SPEC): Include text section start handler to linker spec.
18305         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18306         pass -Ttext option to linker if the text section start for the device
18307         is not zero.
18308         * config/avr/t-multilib: Regenerate.
18309         * doc/avr-mmcu.texi: Regenerate.
18310
18311 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
18312
18313         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18314         * config/rs6000/aix52.h (LINK_SPEC): Same.
18315         * config/rs6000/aix53.h (LINK_SPEC): Same.
18316         * config/rs6000/aix61.h (LINK_SPEC): Same.
18317         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18318
18319 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
18320
18321         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18322         (graphite_verify): New function.
18323         (ivs_params_clear): New function.
18324         (gcc_expression_from_isl_ast_expr_id): New function.
18325         (gcc_expression_from_isl_expr_int): New function.
18326         (binary_op_to_tree): New function.
18327         (ternary_op_to_tree): New function.
18328         (unary_op_to_tree): New function.
18329         (nary_op_to_tree): New function.
18330         (gcc_expression_from_isl_expr_op): New function.
18331         (gcc_expression_from_isl_expression): New function.
18332         (graphite_create_new_loop): New function.
18333         (translate_isl_ast_for_loop): New function.
18334         (get_upper_bound): New function.
18335         (graphite_create_new_loop_guard): New function.
18336         (translate_isl_ast_node_for): New function.
18337         (translate_isl_ast): New function.
18338         (add_parameters_to_ivs_params): New function.
18339         (scop_to_isl_ast): New parameter ip.
18340         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18341
18342 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18343
18344         * config/xtensa/predicates.md (call expander): Update for
18345         DECL_SECTION_NAME being string.
18346
18347 2014-07-11  Richard Biener  <rguenther@suse.de>
18348
18349         PR middle-end/61473
18350         * builtins.c (fold_builtin_memory_op): Inline memory moves that
18351         can be implemented with a single load followed by a single store.
18352         (c_strlen): Only warn when only_value is not 2.
18353
18354 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
18355
18356         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
18357
18358 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
18359
18360         PR target/61561
18361         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
18362         (*movhi_bytes): Likewise.
18363         (*arm_movqi_insn): Likewise.
18364
18365 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
18366
18367         PR target/56858
18368         * config/alpha/alpha.c: Include tree-pass.h, context.h
18369         and pass_manager.h.
18370         (pass_data_handle_trap_shadows): New pass.
18371         (pass_handle_trap_shadows::gate): New pass gate function.
18372         (make_pass_handle_trap_shadows): New function.
18373         (rest_of_handle_trap_shadows): Ditto.
18374
18375         (alpha_align_insns_1): Rename from alpha_align_insns.
18376         (pass_data_align_insns): New pass.
18377         (pass_align_insns::gate): New pass gate function.
18378         (make_pass_aling_insns): New function.
18379         (rest_of_align_insns): Ditto.
18380         (alpha_align_insns): Ditto.
18381
18382         (alpha_option_override): Declare handle_trap_shadows info
18383         and align_insns_info.  Register handle_trap_shadows and align_insns
18384         passes here.
18385         (alpha_reorg): Do not call alpha_trap_shadows and
18386         alpha_align_insn from here.
18387
18388         (alpha_pad_function_end): Do not skip BARRIERs.
18389
18390 2014-07-10  Rong Xu  <xur@google.com>
18391
18392         Add gcov-tool: an offline gcda profile processing tool support.
18393         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
18394         (gcov_is_error): Ditto.
18395         (gcov_read_string): Ditto.
18396         (gcov_read_sync): Ditto.
18397         * gcov-io.h: Move counter defines to gcov-counter.def.
18398         * gcov-dump.c (tag_counters): Use gcov-counter.def.
18399         * coverage.c: Ditto.
18400         * gcov-tool.c: Offline gcda profile processing tool.
18401         (unlink_gcda_file): Remove one gcda file.
18402         (unlink_profile_dir): Remove gcda files from the profile path.
18403         (gcov_output_files): Output gcda files to an output dir.
18404         (profile_merge): Merge two profiles in directory.
18405         (print_merge_usage_message): Print merge usage.
18406         (merge_usage): Print merge usage and exit.
18407         (do_merge): Driver for profile merge sub-command.
18408         (profile_rewrite): Rewrite profile.
18409         (print_rewrite_usage_message): Print rewrite usage.
18410         (rewrite_usage): Print rewrite usage and exit.
18411         (do_rewrite): Driver for profile rewrite sub-command.
18412         (print_usage): Print gcov-info usage and exit.
18413         (print_version): Print gcov-info version.
18414         (process_args): Process arguments.
18415         (main): Main routine for gcov-tool.
18416         * Makefile.in: Build and install gcov-tool.
18417         * gcov-counter.def: New file split from gcov-io.h.
18418         * doc/gcc.texi: Include gcov-tool.texi.
18419         * doc/gcov-tool.texi: Document for gcov-tool.
18420
18421 2014-07-10  Richard Biener  <rguenther@suse.de>
18422
18423         PR tree-optimization/61757
18424         * tree-ssa-dom.c (loop_depth_of_name): Restore.
18425         (propagate_rhs_into_lhs): Revert part of last change.
18426
18427 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
18428
18429         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
18430         FUNCTION_DECLs.
18431
18432 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
18433
18434         PR middle-end/53590
18435         * function.c (allocate_struct_function): Revert r188667 change.
18436
18437         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
18438
18439 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
18440
18441         * doc/install.texi: Remove links to defunct package providers for
18442         Solaris.
18443
18444 2014-07-09  Tom de Vries  <tom@codesourcery.com>
18445
18446         * final.c (get_call_fndecl): Declare.
18447         (self_recursive_call_p): New function.
18448         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
18449
18450 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18451
18452         * ipa-devirt.c (record_node): Walk through aliases.
18453
18454 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18455
18456         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
18457
18458 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18459
18460         Revert:
18461         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18462
18463 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18464
18465         * ipa-visibility.c (function_and_variable_visibility): Remove
18466         temporary hack disabling local aliases on AIX.
18467
18468 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18469
18470         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
18471         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
18472
18473 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18474
18475         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
18476         * rs6000/rs6000.c: Inline output of .set instruction.
18477         (declare_alias_data): New struct.
18478         (rs6000_declare_alias): New function.
18479         (rs6000_xcoff_declare_function_name): Use it.
18480         (rs6000_xcoff_declare_object_name): New function.
18481         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
18482         (ASM_OUTPUT_DEF): Turn to empty definition.
18483
18484 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
18485
18486         PR bootstrap/61679
18487         * hash-table.h: use hash_table::value_type instead of
18488         Descriptor::value_type in the return types of several methods.
18489
18490 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
18491
18492         * tree-pass.h (pass_data): Remove has_execute member.
18493         * passes.c (execute_one_pass): Don't check pass->has_execute.
18494         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18495         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18496         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18497         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18498         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18499         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18500         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18501         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18502         gimple-low.c, gimple-ssa-isolate-paths.c,
18503         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18504         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
18505         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
18506         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
18507         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
18508         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18509         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
18510         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
18511         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
18512         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
18513         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
18514         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18515         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18516         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18517         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18518         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18519         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18520         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18521         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18522         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18523         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18524         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18525         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
18526         web.c: Remove initializer for pass_data::has_execute.
18527
18528 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
18529
18530         * graphite-htab.h: Use hash_map instead of hash_table.
18531         * graphite-clast-to-gimple.c: Adjust.
18532         * passes.c: Use hash_map instead of hash_table.
18533         * sese.c: Likewise.
18534         * sese.h: Remove now unused code.
18535
18536 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
18537
18538         PR target/61599
18539         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
18540         than zero.
18541
18542 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
18543
18544         PR rtl-optimization/61673
18545         * combine.c (simplify_comparison): Test just mode's sign bit
18546         in tmode rather than the sign bit and any bits above it.
18547
18548 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
18549
18550         * graphite-isl-ast-to-gimple.c (generate_isl_context):
18551         Add __isl_give to the declaration.
18552         (generate_isl_schedule): Likewise.
18553         (scop_to_isl_ast): Likewise.
18554
18555 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18556
18557         * config/arm/arm.c (cortexa5_extra_costs): New table.
18558         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
18559
18560 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
18561
18562         PR tree-optimization/61725
18563         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
18564         range, use range_includes_zerop_p instead of integer_zerop on
18565         vr0->min, only use log2 of max if min is not negative.
18566
18567 2014-07-08  Richard Biener  <rguenther@suse.de>
18568
18569         * tree-ssa-dom.h (loop_depth_of_name): Remove.
18570         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
18571         restriction on loop depth difference.
18572         (record_equality): Likewise.
18573         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
18574         (loop_depth_of_name): Remove.
18575         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
18576         restriction on loop depth difference.
18577         (init_copy_prop): Likewise.
18578
18579 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
18580
18581         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
18582         parameter.
18583         (walk_aliased_vdefs): Likewise.
18584         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
18585         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
18586         (detect_type_change_from_memory_writes): Check if entry was reached.
18587
18588 2014-07-08  Richard Biener  <rguenther@suse.de>
18589
18590         PR tree-optimization/61681
18591         * tree-ssa-structalias.c (find_what_var_points_to): Expand
18592         NONLOCAL inside ESCAPED.
18593
18594 2014-07-08  Richard Biener  <rguenther@suse.de>
18595
18596         PR tree-optimization/61680
18597         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18598         Handle properly all read-write dependences with group accesses.
18599
18600 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
18601
18602         PR tree-optimization/61576
18603         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18604         block containing reduction statement is predecessor of phi basi block.
18605
18606 2014-07-08  Marek Polacek  <polacek@redhat.com>
18607
18608         PR c/60226
18609         * fold-const.c (round_up_loc): Change the parameter type.
18610         Remove assert.
18611         * fold-const.h (round_up_loc): Adjust declaration.
18612         * stor-layout.c (finalize_record_size): Check for too large types.
18613
18614 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
18615
18616         * symtab.c: Include calls.h.
18617         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18618
18619 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
18620
18621         * config/rs6000/rs6000.c (output_vec_const_move): Handle
18622         little-endian code generation.
18623         * config/rs6000/spe.md (spe_evmergehi): Rename to...
18624         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
18625         (spe_evmergehilo): Rename to...
18626         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
18627         (spe_evmergelo): Rename to...
18628         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
18629         (spe_evmergelohi): Rename to...
18630         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
18631         (spe_evmergehi, spe_evmergehilo): New expanders.
18632         (spe_evmergelo, spe_evmergelohi): Likewise.
18633         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18634         (*frob_tf_ti): Likewise.
18635         (*frob_<mode>_di_2): Likewise.
18636         (*frob_tf_di_8_2): Likewise.
18637         (*frob_di_<mode>): Likewise.
18638         (*frob_ti_tf): Likewise.
18639         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18640         (*frob_ti_<mode>_8_2): Likewise.
18641         (*frob_ti_tf_2): Likewise.
18642         (mov_si<mode>_e500_subreg0): Rename to...
18643         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
18644         endianness only.
18645         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18646         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18647         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
18648         the big endianness only.
18649         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18650         (*mov_si<mode>_e500_subreg0_2): Rename to...
18651         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
18652         big big endianness only.
18653         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18654         (*mov_si<mode>_e500_subreg4): Rename to...
18655         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
18656         endianness only.
18657         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18658         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18659         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
18660         the big endianness only.
18661         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18662         pattern.
18663         (*mov_si<mode>_e500_subreg4_2): Rename to...
18664         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
18665         endianness only.
18666         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18667         (*mov_sitf_e500_subreg8): Rename to...
18668         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
18669         endianness only.
18670         (*mov_sitf_e500_subreg8_le): New instruction pattern.
18671         (*mov_sitf_e500_subreg8_2): Rename to...
18672         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
18673         endianness only.
18674         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18675         (*mov_sitf_e500_subreg12): Rename to...
18676         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
18677         endianness only.
18678         (*mov_sitf_e500_subreg12_le): New instruction pattern.
18679         (*mov_sitf_e500_subreg12_2): Rename to...
18680         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
18681         endianness only.
18682         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18683
18684 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
18685
18686         * asan.c (instrument_strlen_call): Do not instrument first byte
18687         in strlen if already instrumented.
18688
18689 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18690
18691         * config/arm/arm.opt (mwords-little-endian): Delete.
18692         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18693         of TARGET_LITTLE_WORDS.
18694         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18695         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
18696         warning.
18697         * doc/invoke.texi: Remove references to -mwords-little-endian.
18698
18699 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
18700
18701         * expmed.c (struct init_expmed_rtl): Change all fields but
18702         pow2 and cint from struct rtx_def to rtx.
18703         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
18704         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
18705         at the end again.
18706
18707 2014-07-06  Marek Polacek  <polacek@redhat.com>
18708
18709         PR c/6940
18710         * doc/invoke.texi: Document -Wsizeof-array-argument.
18711
18712 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
18713
18714         * wide-int.h (wide_int_storage): Change declaration from struct
18715         to class.
18716
18717 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
18718
18719         * cgraph.c (cgraph_create_indirect_edge): Update call of
18720         get_polymorphic_call_info.
18721         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18722         (possible_polymorphic_call_targets): Add parameter call.
18723         (decl_maybe_in_construction_p): New predicate.
18724         (get_polymorphic_call_info): Add parameter call;
18725         use decl_maybe_in_construction_p.
18726         * gimple-fold.c (fold_gimple_assign): Update use of
18727         possible_polymorphic_call_targets.
18728         (gimple_fold_call): Likewise.
18729         * ipa-prop.c: Inlcude calls.h
18730         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18731         (param_type_may_change_p): New predicate.
18732         (detect_type_change_from_memory_writes): Break out from ...
18733         (detect_type_change): ... this one; use param_type_may_change_p.
18734         (detect_type_change_ssa): Use param_type_may_change_p.
18735         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18736
18737 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
18738
18739         PR target/49423
18740         * config/arm/arm-protos.h (arm_legitimate_address_p,
18741         arm_is_constant_pool_ref): Add prototypes.
18742         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18743         (arm_is_constant_pool_ref) New function.
18744         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
18745         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
18746         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
18747         operand. Remove pool_range and neg_pool_range attributes.
18748         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
18749         pool_range and neg_pool_range attributes.
18750         * config/arm/constraints.md (Uh): New constraint.
18751         (Uq): Don't allow constant pool references.
18752
18753 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
18754
18755         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
18756         (move_lo_quad_internal_be_<mode>): Likewise.
18757         (move_lo_quad_<mode>): Convert to define_expand.
18758         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
18759         (aarch64_simd_move_hi_quad_be_<mode>): New.
18760         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
18761         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
18762         (aarch64_combinez_be<mode>): New.
18763         (aarch64_combine<mode>): Convert to define_expand.
18764         (aarch64_combine_internal<mode>): New.
18765         (aarch64_simd_combine<mode>): Remove bogus RTL description.
18766
18767 2014-07-04  Tom de Vries  <tom@codesourcery.com>
18768
18769         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
18770         combination of earlyclobber and read/write modifiers.
18771
18772 2014-07-04  Tom de Vries  <tom@codesourcery.com>
18773
18774         * config/aarch64/aarch64-simd.md
18775         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
18776
18777 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
18778
18779         PR target/61714
18780         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
18781
18782 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
18783
18784         PR middle-end/61654
18785         * cgraphunit.c (expand_thunk): Call free_dominance_info.
18786
18787         PR tree-optimization/61684
18788         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
18789         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
18790
18791 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18792             Kito Cheng  <kito@0xlab.org>
18793             Monk Chiang  <sh.chiang04@gmail.com>
18794
18795         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
18796         (nds32_symbol_load_store_p): Move to ...
18797         (nds32_fp_as_gp_check_available): Move to ...
18798         * config/nds32/nds32-fp-as-gp.c: ... here.
18799         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
18800         extern declaration.
18801
18802 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18803             Kito Cheng  <kito@0xlab.org>
18804             Monk Chiang  <sh.chiang04@gmail.com>
18805
18806         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
18807         (nds32_expand_store_multiple): Move to ...
18808         (nds32_expand_movmemqi): Move to ...
18809         * config/nds32/nds32-memory-manipulation.c: ... here.
18810
18811 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18812             Kito Cheng  <kito@0xlab.org>
18813             Monk Chiang  <sh.chiang04@gmail.com>
18814
18815         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
18816         (nds32_output_casesi_pc_relative): Move to ...
18817         (nds32_output_casesi): Move to ...
18818         (nds32_mem_format): Move to ...
18819         (nds32_output_16bit_store): Move to ...
18820         (nds32_output_16bit_load): Move to ...
18821         (nds32_output_32bit_store): Move to ...
18822         (nds32_output_32bit_load): Move to ...
18823         (nds32_output_32bit_load_s): Move to ...
18824         (nds32_output_stack_push): Move to ...
18825         (nds32_output_stack_pop): Move to ...
18826         * config/nds32/nds32-md-auxiliary.c: ... here.
18827
18828 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18829             Ling-Hua Tseng  <uranus@tinlans.org>
18830
18831         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
18832         the purpose of this file.
18833
18834 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18835             Kito Cheng  <kito@0xlab.org>
18836             Monk Chiang  <sh.chiang04@gmail.com>
18837
18838         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
18839         (nds32_address_cost): Move implementation to ...
18840         * config/nds32/nds32-cost.c: ... here.
18841         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
18842         (nds32_address_cost_impl): Declare.
18843
18844 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18845             Kito Cheng  <kito@0xlab.org>
18846             Monk Chiang  <sh.chiang04@gmail.com>
18847
18848         * config/nds32/nds32.c
18849         (nds32_consecutive_registers_load_store_p): Move to ...
18850         (nds32_valid_multiple_load_store): Move to ...
18851         (nds32_valid_stack_push_pop): Move to ...
18852         (nds32_can_use_bclr_p): Move to ...
18853         (nds32_can_use_bset_p): Move to ...
18854         (nds32_can_use_btgl_p): Move to ...
18855         (nds32_can_use_bitci_p): Move to ...
18856         * config/nds32/nds32-predicates.c: ... here.
18857
18858 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18859             Kito Cheng  <kito@0xlab.org>
18860             Monk Chiang  <sh.chiang04@gmail.com>
18861
18862         * config/nds32/nds32.c
18863         (nds32_expand_builtin_null_ftype_reg): Move to ...
18864         (nds32_expand_builtin_reg_ftype_imm): Move to ...
18865         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
18866         (nds32_init_builtins): Move implementation to ...
18867         (nds32_expand_builtin): Move implementation to ...
18868         * config/nds32/nds32-intrinsic.c: ... here.
18869         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
18870         (nds32_expand_builtin_impl): Declare.
18871
18872 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18873             Kito Cheng  <kito@0xlab.org>
18874             Monk Chiang  <sh.chiang04@gmail.com>
18875
18876         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
18877         (nds32_emit_section_tail_template): Move to ...
18878         (nds32_emit_isr_jmptbl_section): Move to ...
18879         (nds32_emit_isr_vector_section): Move to ...
18880         (nds32_emit_isr_reset_conten): Move to ...
18881         (nds32_check_isr_attrs_conflict): Move to ...
18882         (nds32_construct_isr_vectors_information): Move to ...
18883         (nds32_asm_file_start): Move implementation to ...
18884         (nds32_asm_file_end): Move implementation to ...
18885         * config/nds32/nds32-isr.c: ... here.
18886         * config/nds32/nds32-protos.h
18887         (nds32_check_isr_attrs_conflict): Declare.
18888         (nds32_construct_isr_vectors_information): Declare.
18889         (nds32_asm_file_start_for_isr): Declare.
18890         (nds32_asm_file_end_for_isr): Declare.
18891
18892 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
18893             Kito Cheng  <kito@0xlab.org>
18894             Monk Chiang  <sh.chiang04@gmail.com>
18895
18896         * config.gcc (nds32*): Add new modules to extra_objs.
18897         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
18898         (nds32be-*-*): Likewise.
18899         * config/nds32/nds32-cost.c: New file.
18900         * config/nds32/nds32-fp-as-gp.c: New file.
18901         * config/nds32/nds32-intrinsic.c: New file.
18902         * config/nds32/nds32-isr.c: New file.
18903         * config/nds32/nds32-md-auxiliary.c: New file.
18904         * config/nds32/nds32-memory-manipulation.c: New file.
18905         * config/nds32/nds32-pipelines-auxiliary.c: New file.
18906         * config/nds32/nds32-predicates.c: New file.
18907         * config/nds32/t-nds32: New file.
18908
18909 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
18910
18911         PR tree-optimization/61682
18912         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
18913         using cases and when one of the operands is equal to 1.
18914
18915 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
18916
18917         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
18918         ashr<mode>3): Correct mode of operands[2].
18919         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
18920         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
18921         Correct mode of operands[2].  Fix split condition.
18922
18923 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
18924
18925         * arm.md (arch): Add armv6_or_vfpv3.
18926         (arch_enabled): Add test for the above.
18927         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
18928         on VFP9.
18929         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
18930
18931 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
18932
18933         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
18934         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
18935         HWI 1 and negate the unsigned value.
18936         * expmed.c (expand_sdiv_pow2): For modes wider than word always
18937         use AND instead of shift.
18938         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
18939
18940 2014-07-03  Marek Polacek  <polacek@redhat.com>
18941
18942         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
18943         (-fsanitize=float-divide-by-zero): Move to the table with
18944         -fsanitize=undefined suboptions.
18945         (-fsanitize=float-cast-overflow): Likewise.
18946
18947 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
18948
18949         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
18950         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
18951         endianness.
18952
18953 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18954
18955         * loop-invariant.c (struct invariant): Add a new member: eqno;
18956         (find_identical_invariants): Update eqno;
18957         (create_new_invariant): Init eqno;
18958         (get_inv_cost): Compute comp_cost with eqno;
18959
18960 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
18961
18962         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
18963         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
18964         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
18965         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
18966         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
18967
18968 2014-07-02  Christian Bruel  <christian.bruel@st.com>
18969
18970         PR target/29349
18971         PR target/53513
18972         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
18973         (make_preds_opaque): Delete.
18974         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
18975         (commit_mode_sets): New function.
18976         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
18977         Process all modes at once.
18978         * basic-block.h (pre_edge_lcm_avs): Declare.
18979         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
18980         Call clear_aux_for_edges. Fix comments.
18981         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
18982         (pre_edge_rev_lcm): Idem.
18983         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
18984         parameter.
18985         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
18986         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
18987         Idem.
18988         * config/i386/i386.c (x96_emit_mode_set): Idem.
18989         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
18990         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
18991         (fpscr_toggle) Disallow from delay slot.
18992         * target.def (emit_mode_set): Add prev_mode parameter.
18993         * doc/tm.texi: Regenerate.
18994
18995 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18996
18997         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
18998         variable i.
18999
19000 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19001
19002         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19003         vtable_pointer_value_to_vtable): Constify.
19004         (contains_polymorphic_type_p): Declare.
19005         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19006         vtable_pointer_value_to_vtable): Constify.
19007         (contains_polymorphic_type_p): New predicate.
19008         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19009         polymorphic types.
19010         (ipa_set_ancestor_jf): Likewise.
19011         (detect_type_change): Return false in easy cases.
19012         (compute_complex_assign_jump_func): Require type to contain
19013         polymorphic type.
19014         (compute_known_type_jump_func): Likewise.
19015
19016 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19017
19018         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19019         Remove.
19020         (type_in_anonymous_namespace_p): Constify argument.
19021         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19022         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19023         (main_odr_variant): New function.
19024         (hash_type_name): Make static; update assert; do not ICE on
19025         non-records.
19026         (types_same_for_odr): Bring here from tree.c; simplify and remove
19027         old structural comparing code that doesn't work for templates.
19028         (odr_hasher::equal): Update assert.
19029         (add_type_duplicate): Return true when bases should be computed;
19030         replace incomplete loader by complete; do not output duplicated
19031         warnings; do not ICE on non-records; set odr_violated flag.
19032         (get_odr_type): Be ready to replace incomplete type by complete
19033         one; work on ODR variants instead of main variants; reorder item
19034         in array so bases have still smaller indexes.
19035         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19036         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19037
19038 2014-07-01  Cary Coutant  <ccoutant@google.com>
19039
19040         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19041         lookup.
19042         (resolve_addr_in_expr): When replacing the rtx in a location list
19043         entry, get a new address table entry.
19044         (dwarf2out_finish): Call index_location_lists even if there are no
19045         addr_index_table entries yet.
19046
19047 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19048
19049         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19050         change for not being obvious.
19051
19052 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19053
19054         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19055         unused argument.
19056
19057 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19058
19059         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19060         (vcagt_f64): Likewise.
19061         (vcale_f64): Likewise.
19062         (vcaled_f64): Likewise.
19063         (vcales_f32): Likewise.
19064         (vcalt_f64): Likewise.
19065         (vcaltd_f64): Likewise.
19066         (vcalts_f32): Likewise.
19067
19068 2014-07-01  Marek Polacek  <polacek@redhat.com>
19069
19070         * doc/invoke.texi: Document -Wint-conversion.
19071
19072 2014-07-01  Marek Polacek  <polacek@redhat.com>
19073
19074         PR c/58286
19075         * doc/invoke.texi: Document -Wincompatible-pointer-types.
19076
19077 2014-07-01  Martin Liska  <mliska@suse.cz>
19078
19079         IPA REF alias refactoring
19080         * cgraph.h (iterate_direct_aliases): New function.
19081         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19082         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19083         FOR_EACH_ALIAS added.
19084         (cgraph_for_node_and_aliases): Likewise.
19085         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19086         * ipa-inline.c (reset_edge_caches): Likewise.
19087         (update_caller_keys): Likewise.
19088         * trans-mem.c (ipa_tm_execute): Likewise.
19089         *varpool.c (varpool_analyze_node): Likewise.
19090         (varpool_for_node_and_aliases): Likewise.
19091         * ipa-ref.h (first_alias): New function.
19092         (last_alias): Likewise.
19093         (has_aliases_p): Likewise.
19094         * ipa-ref.c (ipa_ref::remove_reference): Removal function
19095         is sensitive to IPA_REF_ALIASes.
19096         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19097         are put at the beginning of the list.
19098         (symtab_node::iterate_direct_aliases): New function.
19099
19100 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19101
19102         Revert:
19103         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19104         type is complete.
19105         (write_ts_type_common_tree_pointers): Do not stream fields not set
19106         for incomplete types; do not stream duplicated fields for variants;
19107         sanity check that variant and type match.
19108         (write_ts_type_non_common_tree_pointers): Likewise.
19109         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19110         TYPE_SIZE whether type is complete.
19111         (lto_input_ts_type_common_tree_pointers): Do same changes as in
19112         write_ts_type_common_tree_pointers
19113         (lto_input_ts_type_non_common_tree_pointers): Likewise.
19114
19115 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
19116
19117         * var-tracking.c (add_stores): Return instead of asserting if old
19118         and new values for conditional store are the same.
19119
19120 2014-06-30  Richard Henderson  <rth@redhat.com>
19121
19122         PR rtl-opt/61608
19123         PR target/39284
19124         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19125         the cfg if there were any changes.
19126         * passes.def: Revert move of peephole2 after reorder_blocks;
19127         move duplicate_computed_gotos before peephole2.
19128
19129 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
19130
19131         * except.c (emit_note_eh_region_end): New helper function.
19132         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19133         emit EH_REGION_END note.
19134         * jump.c (cleanup_barriers): Do not split a call and its
19135         corresponding CALL_ARG_LOCATION note.
19136
19137 2014-06-30  Jeff Law  <law@redhat.com>
19138
19139         PR tree-optimization/61607
19140         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19141         deeper into the SSA_NAME_VALUE chain.
19142
19143 2014-06-30  Marek Polacek  <polacek@redhat.com>
19144
19145         * convert.c (convert_to_integer): Don't instrument conversions if the
19146         function has no_sanitize_undefined attribute.
19147         * ubsan.c: Don't run the ubsan pass if the function has
19148         no_sanitize_undefined attribute.
19149
19150 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19151
19152         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19153         -fsanitize=undefined suboptions.
19154
19155 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
19156
19157         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19158         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19159         against bigendian and adjust indices.
19160
19161 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19162
19163         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
19164
19165 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19166
19167         PR target/61633
19168         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19169         Add alternative; make early clobber.  Adjust both split patterns
19170         to use operand 0 as the working register.
19171
19172 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19173
19174         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19175         as ira_object_id_map might be NULL, or 1.
19176
19177 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19178
19179         * loop-invariant.c (get_inv_cost): Handle register class.
19180         (gain_for_invariant): Check the register pressure of the inv
19181         and its overlapped register class, other than all.
19182
19183 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19184
19185         * doc/invoke.texi (Optimize Options): Fix descriptions of
19186         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19187
19188 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
19189
19190         * doc/extend.texi (Function Attributes): Update 'naked' attribute
19191         documentation.
19192
19193 2014-06-29  Tobias Grosser <tobias@grosser.es>
19194
19195         PR bootstrap/61650
19196         * graphite-isl-ast-to-gimple.c: Add missing guards.
19197
19198 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19199
19200         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19201         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19202         * flag-types.h: Add new enum fgraphite_generator.
19203         * graphite-isl-ast-to-gimple.c: New.
19204         * graphite-isl-ast-to-gimple.h: New.
19205         * graphite.c (graphite_transform_loops): Add choice of Graphite
19206         code generator, which depends on flag_graphite_code_gen.
19207
19208 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19209
19210         * graphite-dependences.c (subtract_commutative_associative_deps):
19211         Add NULL checking of the following variables: must_raw_no_source,
19212         may_raw_no_source, must_war_no_source, may_war_no_source,
19213         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19214         must_war, may_war, must_waw, may_waw.
19215
19216 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19217
19218         * graphite-clast-to-gimple.c: gloog is renamed to
19219         graphite_regenerate_ast_cloog.  gloog_error is renamed to
19220         graphite_regenerate_error.
19221         * graphite-clast-to-gimple.h: The definition of the struct
19222         bb_pbb_def is moved to graphite-htab.h.
19223         Add inclusion of the hash-table.h.
19224         * graphite-htab.h: The declaration of the function gloog is moved
19225         to graphite-clast-to-gimple.h and renamed to
19226         graphite_regenerate_ast_cloog.
19227         * graphite.c (graphite_transform_loops): gloog is renamed
19228         to graphite_regenerate_ast_cloog.
19229
19230 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19231
19232         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19233         type is complete.
19234         (write_ts_type_common_tree_pointers): Do not stream fields not set
19235         for incomplete types; do not stream duplicated fields for variants;
19236         sanity check that variant and type match.
19237         (write_ts_type_non_common_tree_pointers): Likewise.
19238         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19239         TYPE_SIZE whether type is complete.
19240         (lto_input_ts_type_common_tree_pointers): Do same changes as in
19241         write_ts_type_common_tree_pointers
19242         (lto_input_ts_type_non_common_tree_pointers): Likewise.
19243
19244 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19245
19246         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
19247
19248 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19249
19250         * tree-inline.c (remap_type_1): Do not duplicate fields
19251         that are shared in between type and its main variant.
19252
19253 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19254
19255         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19256         of the type.
19257         (ipa_set_ancestor_jf) Likewise.
19258         (check_stmt_for_type_change): Check that we work on main variant.
19259         (detect_type_change): Look into main variant.
19260         (compute_known_type_jump_func): Check that main variant has BINFO.
19261
19262 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19263
19264         * ipa-devirt.c (set_type_binfo): New function.
19265         (add_type_duplicate): Use it.
19266         (get_odr_type): Sanity check that binfos points to main variants.
19267         (get_class_context): Be sure the context's outer_type is main variant.
19268         (contains_type_p): Walk main variant.
19269         (get_polymorphic_call_info_for_decl): Set outer_type to be
19270         main variant.
19271         (get_polymorphic_call_info): Likewise.
19272         (possible_polymorphic_call_targets): Sanity check that we operate
19273         on main variant.
19274
19275 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19276
19277         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19278
19279 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19280
19281         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19282         accidental change due to wide-int branch merge.
19283
19284 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19285
19286         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19287         compressed debug support.
19288         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19289         * configure: Regenerate.
19290         * config.in: Regenerate.
19291         * common.opt (compressed_debug_sections): New enum.
19292         (gz, gz=): New options.
19293         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19294         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19295         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19296         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19297         LINK_COMPRESS_DEBUG_SPEC.
19298         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19299         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19300         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19301         (Debugging Options): Document -gz[=type].
19302
19303 2014-06-27  Martin Jambor  <mjambor@suse.cz>
19304
19305         PR ipa/61160
19306         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19307         args_to_skip, use those from node instead.  Copy args_to_skip and
19308         combined_args_to_skip from node to the new thunk.
19309         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19310         (cgraph_create_virtual_clone): Moved computation of
19311         combined_args_to_skip...
19312         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19313
19314 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
19315
19316         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19317         redundant diagnostic machinary.
19318
19319 2014-06-27  Richard Biener  <rguenther@suse.de>
19320
19321         * tree-ssa-math-opts.c (bswap_replace): Fix
19322         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19323
19324 2014-06-27  Martin Liska  <mliska@suse.cz>
19325
19326         * gimple.h (gimple_location_safe): New function introduced.
19327         * cgraphunit.c (walk_polymorphic_call_targets): Usage
19328         of gimple_location_safe replaces gimple_location.
19329         (gimple_fold_call): Likewise.
19330         * ipa-devirt.c (ipa_devirt): Likewise.
19331         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19332         * ipa.c (walk_polymorphic_call_targets): Likewise.
19333         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19334
19335 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
19336
19337         PR tree-optimization/57233
19338         PR tree-optimization/61299
19339         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19340         functions.
19341         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
19342         would be lowered to scalar shifts, check if corresponding
19343         shifts and vector BIT_IOR_EXPR are supported and don't lower
19344         or lower just to narrower vector type in that case.
19345         * expmed.c (expand_shift_1): Fix up handling of vector
19346         shifts and rotates.
19347
19348 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
19349
19350         PR target/61586
19351         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
19352
19353 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
19354
19355         * doc/invoke.texi (-fsemantic-interposition): Document.
19356         * common.opt (fsemantic-interposition): New flag.
19357         * varasm.c (decl_replaceable_p): Use it.
19358
19359 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19360
19361         PR target/61542
19362         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
19363         extraction other than index 3.
19364
19365 2014-06-26  Teresa Johnson  <tejohnson@google.com>
19366
19367         * doc/invoke.texi: Fix typo.
19368         * dumpfile.c: Add support for documented -fdump-* options
19369         optimized/missed/note/optall.
19370
19371 2014-06-26  Martin Jambor  <mjambor@suse.cz>
19372
19373         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
19374         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
19375         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
19376         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
19377         * opts.c (default_options_optimization): Set
19378         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
19379         * doc/invoke.texi (allow-load-data-races)
19380         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
19381         (allow-store-data-races): Document the new default.
19382
19383 2014-06-26  Martin Jambor  <mjambor@suse.cz>
19384
19385         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
19386         renamed to ipa_impossible_devirt_target.  Fix typo.
19387         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
19388         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
19389         ipa_impossible_devirt_target.
19390
19391 2014-06-26  Richard Biener  <rguenther@suse.de>
19392
19393         PR tree-optimization/61607
19394         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
19395         explaining why we restrict copies on loop depth.
19396         * tree-ssa-dom.c (cprop_operand): Remove restriction on
19397         on loop depth.
19398         (record_equivalences_from_phis): Instead add it here.
19399
19400 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
19401
19402         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
19403         (LTO_WRAPPER_OBJS): New variable.
19404         (lto-wrapper$(exeext)): Use it.
19405         * collect2.c: Include "collect-utils.h".
19406         (verbose, debug): Remove variables.
19407         (at_file_supplied): No longer static.
19408         (tool_name): New variable.
19409         (do_wait, fork_execute, maybe_unlink): Don't declare.
19410         (tool_cleanup): No longer static.
19411         (notice): Remove function.
19412         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
19413         fork_execute calls.
19414         (collect_wait, do_wait, collect_execute): Remove functions.
19415         (maybe_unlink): No longer static.
19416         * collect2.h (verbose, debug): Don't declare.
19417         (at_file_supplied): Declare.
19418         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
19419         changed.
19420         (collect_execute): Replace with implementation from collect2, plus a
19421         new arg use_atfile.  All callers changed.
19422         (collect_wait): Replace with implementation from collect2.
19423         (maybe_unlink_file): Remove function.
19424         (fork_execute): Replace with implementation from collect2, plus a
19425         new arg use_atfile.  All callers changed.
19426         (do_wait): Add call to utils_cleanup to the error path.
19427         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
19428         (tool_cleanup): Adjust declarations.
19429         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
19430         * tlink.c: Include "collect-utils.h".
19431         (tlink_execute): New arg use_atfile.  All callers changed.
19432         (tlink_init, tlink_execute): Remove declarations.
19433
19434         * collect-utils.c (save_temps): New variable.
19435         (do_wait): Use it instead of debug.  Use fatal_error.
19436         * collect-utils.h (save_temps): Declare.
19437         * collect2.c (verbose): Rename from vflag.  All uses changed.
19438         (tool_cleanup): New function, copied from collect_atexit.
19439         (collect_atexit, handler): Just call it.
19440         * collect2.h (verbose): Declaration renamed from vflag.
19441         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
19442         debug.
19443
19444         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
19445         (lto-wrapper$(exeext)): Link with collect-utils.o.
19446         * collect-utils.c: New file.
19447         * collect-utils.h: New file.
19448         * lto-wrapper.c: Include "collect-utils.h".
19449         (args_name): Delete variable.
19450         (tool_name): New variable.
19451         (tool_cleanup): New function.
19452         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
19453         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
19454         (fork_execute): Remove functions.
19455
19456 2014-06-26  Nick Clifton  <nickc@redhat.com>
19457
19458         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
19459
19460         * doc/extend.texi (Function Attributes): Fix typo in description
19461         of RX vector attribute.
19462
19463 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
19464
19465         * config.gcc (supported_defaults): Error when passing either
19466         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
19467
19468 2014-06-26  Richard Biener  <rguenther@suse.de>
19469
19470         * tree-ssa-dom.c (cprop_operand): Remove restriction on
19471         propagating volatile pointers.
19472
19473 2014-06-26  Richard Biener  <rguenther@suse.de>
19474
19475         PR tree-optimization/61607
19476         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
19477         loop if we redirected its latch edge.
19478         (thread_block_1): Do not cancel loops prematurely.
19479
19480 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
19481
19482         * toplev.c (backend_init_target): Move init_emit_regs and
19483         init_regs to...
19484         (backend_init) ... here; skip ira_init_once and backend_init_target.
19485         (target_reinit) ... and here; clear
19486         this_target_rtl->lang_dependent_initialized.
19487         (lang_dependent_init_target): Clear
19488         this_target_rtl->lang_dependent_initialized;
19489         break out rtl initialization to ...
19490         (initialize_rtl): ... here; call also backend_init_target
19491         and ira_init_once.
19492         * toplev.h (initialize_rtl): New function.
19493         * function.c: Include toplev.h
19494         (init_function_start): Call initialize_rtl.
19495         * rtl.h (target_rtl): Add target_specific_initialized,
19496         lang_dependent_initialized.
19497
19498 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
19499             Jakub Jelinek  <jakub@redhat.com>
19500
19501         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
19502
19503 2014-06-25  Tom de Vries  <tom@codesourcery.com>
19504
19505         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
19506
19507 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19508
19509         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
19510         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
19511         Issue a strict overflow warning if appropriate.
19512
19513 2014-06-25  Martin Liska  <mliska@suse.cz>
19514
19515         IPA REF refactoring
19516         * Makefile.in: Removed header file (ipa-ref-inline.h).
19517         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
19518         called.
19519         (cgraph_speculative_call_info): Likewise.
19520         (cgraph_for_node_thunks_and_aliases): Likewise.
19521         (cgraph_for_node_and_aliases): Likewise.
19522         (verify_cgraph_node): Likewise.
19523         * cgraph.h: Batch of IPA REF functions become member functions of
19524         symtab_node: add_reference, maybe_add_reference, clone_references,
19525         clone_referring, clone_reference, find_reference,
19526         remove_stmt_references, remove_all_references,
19527         remove_all_referring, dump_references, dump_referring,
19528         has_alias_p, iterate_reference, iterate_referring.
19529         * cgraphbuild.c (record_reference): New IPA REF function used.
19530         (record_type_list): Likewise.
19531         (record_eh_tables): Likewise.
19532         (mark_address): Likewise.
19533         (mark_load): Likewise.
19534         (mark_store): Likewise.
19535         (pass_build_cgraph_edges): Likewise.
19536         (rebuild_cgraph_edge): Likewise.
19537         (cgraph_rebuild_references): Likewise.
19538         (pass_remove_cgraph_callee_edges): Likewise.
19539         * cgraphclones.c (cgraph_clone_node): Likewise.
19540         (cgraph_create_virtual_clone): Likewise.
19541         (cgraph_materialize_clone): Likewise.
19542         (cgraph_materialize_all_clones): Likewise.
19543         * cgraphunit.c (cgraph_reset_node): Likewise.
19544         (cgraph_reset_node): Likewise.
19545         (analyze_function): Likewise.
19546         (assemble_thunks_and_aliases): Likewise.
19547         (expand_function): Likewise.
19548         * ipa-comdats.c (propagate_comdat_group): Likewise.
19549         (enqueue_references): Likewise.
19550         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
19551         (create_specialized_node): Likewise.
19552         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
19553         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
19554         * ipa-inline.c (reset_edge_caches): Likewise.
19555         (update_caller_keys): Likewise.
19556         (execute): Likewise.
19557         * ipa-prop.c (remove_described_reference): Likewise.
19558         (propagate_controlled_uses): Likewise.
19559         (ipa_edge_duplication_hook): Likewise.
19560         (ipa_modify_call_arguments): Likewise.
19561         * ipa-pure-const.c (propagate_pure_const): Likewise.
19562         * ipa-ref-inline.h: Header file removed, functions moved
19563         to symtab_node class.
19564         * ipa-ref.c (remove_reference): New class member function.
19565         (cannot_lead_to_return): New class member function.
19566         (referring_ref_list): Likewise.
19567         (referred_ref_list): Likewise.
19568         Rest of functions moved to symtab_node class.
19569         * ipa-ref.h: New member functions remove_reference,
19570         cannot_lead_to_return, referring_ref_list, referred_ref_list added
19571         to ipa_ref class.
19572         ipa_ref_list class has new member functions: first_reference,
19573         first_referring, clear, nreferences.
19574         * ipa-reference.c (analyze_function): New IPA REF function used.
19575         (write_node_summary_p): Likewise.
19576         (ipa_reference_write_optimization_summary): Likewise.
19577         * ipa-split.c (split_function): Likewise.
19578         * ipa-utils.c (ipa_reverse_postorder): Likewise.
19579         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
19580         (function_and_variable_visibility): Likewise.
19581         * ipa.c (has_addr_references_p): Likewise.
19582         (process_references): Argument type changed.
19583         (symtab_remove_unreachable_nodes): New IPA REF function used.
19584         (process_references): Likewise.
19585         (set_writeonly_bit): Likewise.
19586         * lto-cgraph.c: Implementation of new symtab_node member functions
19587         that uses new IPA REF functions.
19588         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
19589         function used.
19590         * lto-streamer-out.c (output_symbol_p): Likewise.
19591         * lto-streamer.h (referenced_from_this_partition_p): Argument type
19592         changed.
19593         * symtab.c: Implementation of new IPA REF API.
19594         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
19595         (ipa_tm_create_version): Likewise.
19596         (ipa_tm_execute): Likewise.
19597         * tree-emutls.c (gen_emutls_addr): Likewise.
19598         * tree-inline.c (copy_bb): Likewise.
19599         (delete_unreachable_blocks_update_callgraph): Likewise.
19600         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19601         (varpool_for_node_and_aliases): Likewise.
19602
19603 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
19604
19605         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19606
19607 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
19608
19609         PR bootstrap/61598
19610         * fold-const.c (fold_checksum_tree): Use a hash_table of const
19611         tree_node * instead of tree_node *.
19612         (fold): Adjust.
19613         (print_fold_checksum): Likewise.
19614         (fold_check_failed): Likewise.
19615         (debug_fold_checksum): Likewise.
19616         (fold_build1_stat_loc): Likewise.
19617         (fold_build2_stat_loc): Likewise.
19618         (fold_build3_stat_loc): Likewise.
19619         (fold_build_call_array_loc): Likewise.
19620
19621 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
19622
19623         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19624         implementation with call to...
19625         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19626         function.
19627         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19628         Declare.
19629
19630 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
19631
19632         PR tree-optimization/57742
19633         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19634         after replacing the statement.
19635
19636 2014-06-25  Nick Clifton  <nickc@redhat.com>
19637
19638         * config/v850/v850.c (GHS_default_section_names): Change to const
19639         char * type.
19640         (GHS_current_section_names): Likewise.
19641         (v850_insert_attributes): Do not build strings, just assign the
19642         names directly.  Change the type of 'chosen_section' to const
19643         char*.
19644         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19645         directly to the array entry.
19646         * config/v850/v850.h (GHS_default_section_names): Change to const
19647         char * type.
19648         (GHS_current_section_names): Likewise.
19649
19650 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
19651
19652         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19653         (LANG_HOOKS_DECLS): Add it.
19654         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19655         has correct type.
19656         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19657         * langhooks.h (struct lang_hooks_for_decls): Add
19658         omp_clause_linear_ctor hook.
19659         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19660         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
19661         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
19662         combined simd loop use omp_clause_linear_ctor hook.
19663
19664 2014-06-24  Cong Hou  <congh@google.com>
19665
19666         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19667         pattern recognition.
19668         (type_conversion_p): PROMOTION is true if it's a type promotion
19669         conversion, and false otherwise.  Return true if the given expression
19670         is a type conversion one.
19671         * tree-vectorizer.h: Adjust the number of patterns.
19672         * tree.def: Add SAD_EXPR.
19673         * optabs.def: Add sad_optab.
19674         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19675         * expr.c (expand_expr_real_2): Likewise.
19676         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19677         * gimple.c (get_gimple_rhs_num_ops): Likewise.
19678         * optabs.c (optab_for_tree_code): Likewise.
19679         * tree-cfg.c (estimate_operator_cost): Likewise.
19680         * tree-ssa-operands.c (get_expr_operands): Likewise.
19681         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19682         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19683         * doc/generic.texi: Add document for SAD_EXPR.
19684         * doc/md.texi: Add document for ssad and usad.
19685
19686 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19687
19688         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19689         qualification in cast.
19690
19691 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
19692
19693         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19694         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19695         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19696         (tree_function_decl): ... here.
19697         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
19698         streaming of vindex to ...
19699         (write_ts_function_decl_tree_pointers): ... here.
19700         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19701         Do not stream DECL_VINDEX.
19702         (lto_input_ts_function_decl_tree_pointers): Stream it here.
19703
19704 2014-06-24  Catherine Moore  <clm@codesourcery.com>
19705             Sandra Loosemore  <sandra@codesourcery.com>
19706
19707         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
19708         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
19709         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
19710
19711 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
19712
19713         * doc/invoke.texi (Warning Options): Remove duplicated
19714         -Wmaybe-uninitialized.
19715
19716 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
19717
19718         PR tree-optimization/57742
19719         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19720         (handle_builtin_malloc, handle_builtin_memset): New functions.
19721         (strlen_optimize_stmt): Call them.
19722         * passes.def: Move strlen after loop+dom but before vrp.
19723
19724 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
19725
19726         PR target/61570
19727         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19728         model family 6 CPU with has_longmode never use a CPU without
19729         64-bit support.
19730
19731 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19732
19733         PR target/61570
19734         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19735         the last change.
19736
19737 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19738
19739         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19740         * dominance.c (iterate_fix_dominators): Use hash_map instead of
19741         pointer_map.
19742         * hash-map.h: New file.
19743         * ipa-comdats.c: Use hash_map instead of pointer_map.
19744         * ipa.c: Likewise.
19745         * lto-section-out.c: Adjust.
19746         * lto-streamer.h: Replace pointer_map with hash_map.
19747         * symtab.c (verify_symtab): Likewise.
19748         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
19749         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
19750         * tree-streamer.h: Likewise.
19751         * tree-streamer.c: Adjust.
19752         * pointer-set.h: Remove pointer_map.
19753
19754 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19755
19756         * hash-table.h: Add a template arg to choose between storing values
19757         and storing pointers to values, and then provide partial
19758         specializations for both.
19759         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
19760         should store, not the type values should point to.
19761         * tree-into-ssa.c (var_info_hasher): Likewise.
19762         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19763         * tree-complex.c: Adjust.
19764         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
19765         table instead of int_tree_map *.
19766         * tree-parloops.c: Adjust.
19767         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
19768         type is being stored.
19769         * tree-vectorizer.c: Adjust.
19770
19771 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
19772
19773         * hash-table.h: Remove a layer of indirection from hash_table so that
19774         it contains the hash table's data instead of a pointer to the data.
19775         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
19776         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
19777         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
19778         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
19779         fold-const.c, gcse.c, ggc-common.c,
19780         gimple-ssa-strength-reduction.c, gimplify.c,
19781         graphite-clast-to-gimple.c, graphite-dependences.c,
19782         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
19783         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19784         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
19785         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
19786         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
19787         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
19788         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
19789         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
19790         tree-ssa-live.c, tree-ssa-loop-im.c,
19791         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
19792         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
19793         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19794         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
19795         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
19796         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
19797         vtable-verify.c, vtable-verify.h: Adjust.
19798
19799 2014-06-24  Richard Biener  <rguenther@suse.de>
19800
19801         PR tree-optimization/61572
19802         * tree-ssa-sink.c (statement_sink_location): Do not sink
19803         loads from hard registers.
19804
19805 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
19806
19807         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
19808         not mentioned in clauses use private clause if the iterator is
19809         declared in #pragma omp for simd, and when adding lastprivate
19810         instead, add it to the outer #pragma omp for too.  Diagnose
19811         if the variable is private in outer context.  For simd collapse > 1
19812         loops, replace all iterators with temporaries.
19813         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
19814         same even in collapse > 1 loops.
19815
19816         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
19817         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
19818         non-NULL.
19819         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
19820         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
19821         non-NULL.
19822         (gimplify_adjust_omp_clauses): Likewise.
19823         * omp-low.c (lower_rec_simd_input_clauses,
19824         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
19825         safelen the same as safelen(1).
19826         * tree-nested.c (convert_nonlocal_omp_clauses,
19827         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
19828         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
19829         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
19830         Fixup handling of GIMPLE_OMP_TARGET.
19831         (convert_tramp_reference_stmt, convert_gimple_call): Handle
19832         GIMPLE_OMP_TARGET.
19833
19834 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
19835
19836         PR tree-optimization/61554
19837         * tree-ssa-propagate.c: Include "bitmap.h".
19838         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
19839         properly update constructor/destructor.
19840         (substitute_and_fold_dom_walker::before_dom_children):
19841         Remove call to gimple_purge_dead_eh_edges, add bb->index to
19842         need_eh_cleaup instead.
19843         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
19844         need_eh_cleanup.
19845
19846 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
19847
19848         * varpool.c (dump_varpool_node): Dump used_by_single_function.
19849         * tree-pass.h (make_pass_ipa_single_use): New pass.
19850         * cgraph.h (used_by_single_function): New flag.
19851         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
19852         Stream it.
19853         * passes.def (pass_ipa_single_use): Scedule.
19854         * ipa.c (BOTTOM): New macro.
19855         (meet): New function
19856         (propagate_single_user): New function.
19857         (ipa_single_use): New function.
19858         (pass_data_ipa_single_use): New pass.
19859         (pass_ipa_single_use): New pass.
19860         (pass_ipa_single_use::gate): New gate.
19861         (make_pass_ipa_single_use): New function.
19862
19863 2014-06-23  Kai Tietz  <ktietz@redhat.com>
19864
19865         PR target/39284
19866         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
19867         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
19868
19869 2014-06-23  Richard Biener  <rguenther@suse.de>
19870
19871         * tree-ssa-loop.c (gate_loop): New function.
19872         (pass_tree_loop::gate): Call it.
19873         (pass_data_tree_no_loop, pass_tree_no_loop,
19874         make_pass_tree_no_loop): New.
19875         * tree-vectorizer.c: Include tree-scalar-evolution.c
19876         (pass_slp_vectorize::execute): Initialize loops and SCEV if
19877         required.
19878         (pass_slp_vectorize::clone): New method.
19879         * timevar.def (TV_TREE_NOLOOP): New.
19880         * tree-pass.h (make_pass_tree_no_loop): Declare.
19881         * passes.def (pass_tree_no_loop): New pass group with
19882         SLP vectorizer.
19883
19884 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19885
19886         PR target/61570
19887         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
19888         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
19889
19890 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
19891
19892         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
19893         "yes" where needed.
19894
19895 2014-06-23  Alan Modra  <amodra@gmail.com>
19896
19897         PR bootstrap/61583
19898         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
19899         to zero on debug statements.
19900
19901 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
19902
19903         PR target/60825
19904         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
19905         Ignore third operand if present by marking qualifier_internal.
19906
19907         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
19908
19909         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
19910         vector extension.
19911         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
19912         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
19913         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
19914         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
19915         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
19916         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
19917         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
19918         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
19919         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
19920         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
19921         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
19922         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
19923         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
19924         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
19925         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
19926         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
19927         logic in GCC vector extensions
19928
19929         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
19930         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
19931         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
19932         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
19933         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
19934         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
19935         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
19936         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
19937         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
19938         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
19939
19940         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
19941
19942         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
19943         extensions.
19944
19945         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
19946         (vget_low_s64): Use __GET_LOW macro.
19947         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
19948         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
19949         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
19950         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
19951         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
19952
19953         (vcombine_s64): Use GCC vector extensions; remove cast.
19954         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
19955         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
19956         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
19957         Fix type signature; remove cast.
19958
19959 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
19960
19961         PR target/60825
19962         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
19963         V1DFmode.
19964         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
19965         add V1DFmode
19966         (BUILTIN_VD1): New.
19967         (BUILTIN_VD_RE): Remove.
19968         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
19969         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
19970         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
19971         variant but not df.
19972         (vreinterpretv1df*, vreinterpret*v1df): New.
19973         (vreinterpretdf*, vreinterpret*df): Remove.
19974         * config/aarch64/aarch64-simd.md (aarch64_create,
19975         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
19976         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
19977         (VD1): New.
19978         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
19979         (vcreate_f64): Remove cast, use v1df builtin.
19980         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
19981         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
19982         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
19983         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
19984         vmov_n_f64, vst1_f64): Use gcc vector extensions.
19985         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
19986         add range check using __builtin_aarch64_im_lane_boundsi.
19987         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
19988         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
19989         type signature, use gcc vector extensions.
19990         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
19991         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
19992         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
19993         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
19994         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
19995         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
19996         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
19997         vreinterpret_u64_f64): Use v1df builtin not df.
19998
19999 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
20000
20001         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20002         vector registers.
20003
20004 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
20005
20006         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20007         priority directly.
20008
20009 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20010
20011         * loop-invariant.c (pre_check_invariant_p): New function.
20012         (find_invariant_insn): Call pre_check_invariant_p.
20013
20014 2014-06-22  Richard Henderson  <rth@redhat.com>
20015
20016         PR target/61565
20017         * compare-elim.c (struct comparison): Add eh_note.
20018         (find_comparison_dom_walker::before_dom_children): Don't eliminate
20019         a redundant comparison in a different EH region.  Purge EH edges if
20020         necessary.
20021
20022 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20023
20024         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20025         (var_shift): Use it.
20026         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20027         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20028         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20029         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20030         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20031         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20032         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20033         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20034         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20035         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20036         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20037         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20038         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20039         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20040         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20041         *rotldi3_internal15be): Use the new attribute.  Merge register and
20042         integer alternatives.
20043
20044 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20045
20046         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20047         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20048         split, *ashrdi3_internal3 and split): Delete, merge into...
20049         (ashr<mode>3): New expander.
20050         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20051         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
20052
20053 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20054
20055         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20056         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20057         *rotldi3_internal3 and split): Delete, merge into...
20058         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20059         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
20060         Use "rotlw" extended mnemonic.
20061
20062 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20063
20064         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20065         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20066         and split, *ashldi3_internal3 and split): Delete, merge into...
20067         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20068         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
20069
20070 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20071
20072         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20073         (lshrsi3, two anonymous define_insns and define_splits,
20074         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20075         *lshrdi3_internal3 and split): Delete, merge into...
20076         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20077         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
20078
20079 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20080
20081         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20082         Remove "O" alternative.
20083
20084 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
20085
20086         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20087         (mips_move_from_gpr_cost): Likewise.
20088         (mips_register_move_cost): Update accordingly.
20089         (mips_secondary_reload_class): Remove name of in_p.
20090
20091 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
20092
20093         PR target/61503
20094         * config/i386/i386.md (x86_64_shrd, x86_shrd,
20095         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20096
20097 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20098
20099         * config/nios2/nios2.c: Include "builtins.h".
20100
20101 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20102
20103         * cgraph.h (tls_model_names): New variable.
20104         * print-tree.c (print_node): Simplify.
20105         * varpool.c (tls_model_names): New variable.
20106         (dump_varpool_node): Output tls model.
20107
20108 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20109
20110         * ipa-visibility.c (function_and_variable_visibility): Disable
20111         temporarily local aliases for some targets.
20112
20113 2014-06-20  Marek Polacek  <polacek@redhat.com>
20114
20115         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20116         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20117         into SANITIZE_UNDEFINED.
20118         * doc/invoke.texi: Describe -fsanitize=bounds.
20119         * gimplify.c (gimplify_call_expr): Add gimplification of internal
20120         functions created in the FEs.
20121         * internal-fn.c: Move "internal-fn.h" after "tree.h".
20122         (expand_UBSAN_BOUNDS): New function.
20123         * internal-fn.def (UBSAN_BOUNDS): New internal function.
20124         * internal-fn.h: Don't define internal functions here.
20125         * opts.c (common_handle_option): Add -fsanitize=bounds.
20126         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20127         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20128         * tree-core.h: Define internal functions here.
20129         (struct tree_base): Add ifn field.
20130         * tree-pretty-print.c: Include "internal-fn.h".
20131         (dump_generic_node): Handle functions without CALL_EXPR_FN.
20132         * tree.c (get_callee_fndecl): Likewise.
20133         (build_call_expr_internal_loc): New function.
20134         * tree.def (CALL_EXPR): Update description.
20135         * tree.h (CALL_EXPR_IFN): Define.
20136         (build_call_expr_internal_loc): Declare.
20137         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20138         types.
20139         (ubsan_type_descriptor): Change bool parameter to enum
20140         ubsan_print_style.  Adjust the code.  Add handling of
20141         UBSAN_PRINT_ARRAY.
20142         (ubsan_expand_bounds_ifn): New function.
20143         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20144         (ubsan_build_overflow_builtin): Likewise.
20145         (instrument_bool_enum_load): Likewise.
20146         (ubsan_instrument_float_cast): Likewise.
20147         * ubsan.h (enum ubsan_print_style): New enum.
20148         (ubsan_expand_bounds_ifn): Declare.
20149         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
20150
20151 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
20152
20153         * config/rs6000/rs6000.md: Append `DONE' to preparation
20154         statements of `bswap' pattern splitters.
20155
20156 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20157
20158         * target.def (call_fusage_contains_non_callee_clobbers): Update
20159         definition.
20160         * doc/tm.texi: Regenerate.
20161
20162 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20163             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20164
20165         PR sanitizer/61547
20166         * asan.c (instrument_strlen_call): Fixed instrumentation of
20167         trailing byte.
20168
20169 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20170
20171         PR ipa/61540
20172         * ipa-prop.c (impossible_devirt_target): New function.
20173         (try_make_edge_direct_virtual_call): Use it, also instead of
20174         asserting.
20175
20176 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20177             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20178
20179         PR sanitizer/61530
20180         * asan.c (build_check_stmt): Add condition.
20181
20182 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20183
20184         PR ipa/61211
20185         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20186         expanded clones.
20187
20188 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20189
20190         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20191         Update comments.
20192         (VCONQ): Make comment more helpful.
20193         (VCON): Delete.
20194         * config/aarch64/aarch64-simd.md
20195         (aarch64_sqdmulh_lane<mode>):
20196         Use VCOND for operands 2.  Update lane checking and flipping logic.
20197         (aarch64_sqrdmulh_lane<mode>): Likewise.
20198         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20199         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20200         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20201         attribute of operand 3 to VCOND.
20202         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20203         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20204         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20205         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20206         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20207         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20208         define_insn.
20209         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20210         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20211         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20212         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20213         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20214         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20215         operand to VCOND.  Update lane flipping and bounds checking logic.
20216         (aarch64_sqdmlal2_lane<mode>): Likewise.
20217         (aarch64_sqdmlsl_lane<mode>): Likewise.
20218         (aarch64_sqdmull_lane<mode>): Likewise.
20219         (aarch64_sqdmull2_lane<mode>): Likewise.
20220         (aarch64_sqdmlal_laneq<mode>):
20221         Replace VCON usage with VCONQ.
20222         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
20223         (aarch64_sqdmlal2_laneq<mode>): Emit
20224         aarch64_sqdmlal2_laneq<mode>_internal insn.
20225         Replace VCON with VCONQ.
20226         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
20227         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20228         (aarch64_sqdmull_laneq<mode>): Emit
20229         aarch64_sqdmull_laneq<mode>_internal insn.
20230         Replace VCON with VCONQ.
20231         (aarch64_sqdmull2_laneq<mode>): Emit
20232         aarch64_sqdmull2_laneq<mode>_internal insn.
20233         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
20234         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
20235         of 3rd argument to int16x4_t.
20236         (vqdmlalh_lane_s16): Likewise.
20237         (vqdmlslh_lane_s16): Likewise.
20238         (vqdmull_high_lane_s16): Likewise.
20239         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
20240         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
20241         (vqdmlsl_lane_s16): Likewise.
20242         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
20243         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
20244         (vqdmlals_lane_s32): Likewise.
20245         (vqdmlsls_lane_s32): Likewise.
20246         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
20247         (vqdmulls_lane_s32): Likewise.
20248         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
20249         (vqdmlsl_lane_s32): Likewise.
20250         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
20251         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
20252         (vqrdmulhh_lane_s16): Likewise.
20253         (vqdmlsl_high_lane_s16): Likewise.
20254         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20255         (vqdmlsl_high_lane_s32): Likewise.
20256         (vqrdmulhs_lane_s32): Likewise.
20257
20258 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20259
20260         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20261         get_call_reg_set_usage.
20262
20263 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20264
20265         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20266         it contains all call_used_regs.
20267
20268 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20269
20270         * final.c (collect_fn_hard_reg_usage): Add and use variable
20271         function_used_regs.
20272
20273 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20274
20275         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20276         (set_init_priority, get_init_priority, set_fini_priority,
20277         get_fini_priority): New methods.
20278         * tree.c (init_priority_for_decl): Remove.
20279         (init_ttree): Do not initialize init priority.
20280         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20281         (decl_priority_info): Remove.
20282         (decl_init_priority_insert): Rewrite.
20283         (decl_fini_priority_insert): Rewrite.
20284         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20285         tree_priority_map_marked_p): Remove.
20286         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20287         * lto-streamer-out.c (hash_tree): Do not hash priorities.
20288         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20289         not output priorities.
20290         (pack_ts_function_decl_value_fields): Likewise.
20291         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20292         not input priorities.
20293         (unpack_ts_function_decl_value_fields): Likewise.
20294         * symtab.c (symbol_priority_map): Declare.
20295         (init_priority_hash): Declare.
20296         (symtab_unregister_node): Unregister from priority hash, too.
20297         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20298         New methods.
20299         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20300         (symbol_priority_info): New function.
20301         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20302         New methods.
20303         * tree-core.h (tree_priority_map): Remove.
20304
20305 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
20306
20307         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20308         0xff to uint64_t before shifting it up.
20309
20310 2014-06-20  Julian Brown  <julian@codesourcery.com>
20311             Chung-Lin Tang  <cltang@codesourcery.com>
20312
20313         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20314         TARGET_THUMB1_ONLY. Add comments.
20315
20316 2014-06-19  Tom de Vries  <tom@codesourcery.com>
20317
20318         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20319         return type to void.
20320         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20321
20322 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20323
20324         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20325         as "move", from depends_on.
20326
20327 2014-06-19  Terry Guo  <terry.guo@arm.com>
20328
20329         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20330         stage.
20331
20332 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
20333
20334         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20335         Remove cr5.
20336         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
20337
20338 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
20339
20340         PR target/61550
20341         * config/sh/sh.c (prepare_move_operands): Don't process TLS
20342         addresses here if reload in progress or completed.
20343
20344 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
20345
20346         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20347         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20348         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20349         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20350         (mips_register_priority): New function that implements the target
20351         hook TARGET_REGISTER_PRIORITY.
20352         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
20353         (mips_lra_p): Likewise for TARGET_LRA_P.
20354         (TARGET_REGISTER_PRIORITY): Define macro.
20355         (TARGET_SPILL_CLASS): Likewise.
20356         (TARGET_LRA_P): Likewise.
20357         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
20358         classes.
20359         (REG_CLASS_NAMES): Likewise.
20360         (REG_CLASS_CONTENTS): Likewise.
20361         (BASE_REG_CLASS): Use M16_SP_REGS.
20362         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
20363         New set attribute to enable alternatives depending on the register
20364         allocator used.
20365         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
20366         (*lea64): Disable pattern for MIPS16.
20367         * config/mips/mips.opt (mlra): New option.
20368
20369 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
20370
20371         * lra-constraints.c (base_to_reg): New function.
20372         (process_address): Use new function.
20373
20374 2014-06-18  Tom de Vries  <tom@codesourcery.com>
20375
20376         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
20377         * config/aarch64/aarch64.c
20378         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
20379         (aarch64_emit_call_insn): New function.
20380         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
20381         of emit_call_insn.
20382         * config/aarch64/aarch64.md (define_expand "call_internal")
20383         (define_expand "call_value_internal", define_expand "sibcall_internal")
20384         (define_expand "sibcall_value_internal"): New.
20385         (define_expand "call", define_expand "call_value")
20386         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
20387         expand variant and aarch64_emit_call_insn.
20388
20389 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
20390             Tom de Vries  <tom@codesourcery.com>
20391
20392         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
20393         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20394         Redefine to true.
20395         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
20396         clobbers to CALL_INSN_FUNCTION_USAGE.
20397         (define_expand "sibcall_internal")
20398         (define_expand "sibcall_value_internal"): New.
20399         (define_expand "call", define_expand "call_value"): Add argument to
20400         arm_emit_call_insn.
20401         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
20402         (define_expand "sibcall_value"): Use sibcall_value_internal and
20403         arm_emit_call_insn.
20404
20405 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20406
20407         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
20408
20409 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20410
20411         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
20412         __udivmoddi4.
20413
20414 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20415
20416         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
20417         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
20418         annotations. Fix DWARF information.
20419
20420 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20421
20422         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
20423         __udivmoddi4, and fixups for negative operands.
20424
20425 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20426
20427         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
20428
20429 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20430
20431         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
20432         to __udivmoddi4.
20433
20434 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20435
20436         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
20437         manipulation.
20438
20439 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20440
20441         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
20442         describing register usage on function entry and exit.
20443
20444 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20445
20446         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
20447         (__aeabi_ldivmod): Fix whitespace.
20448
20449 2014-06-18  Andreas Schwab  <schwab@suse.de>
20450
20451         * doc/md.texi (Standard Names): Use @itemx for grouped items.
20452         Remove blank line after @item.
20453
20454 2014-06-18  Richard Henderson  <rth@redhat.com>
20455
20456         PR target/61545
20457         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
20458
20459 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
20460
20461         * config/arm/arm.c (neon_vector_mem_operand): Allow register
20462         POST_MODIFY for neon loads and stores.
20463         (arm_print_operand): Output post-index register for neon loads and
20464         stores.
20465
20466 2014-06-18  Richard Biener  <rguenther@suse.de>
20467
20468         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
20469
20470 2014-06-18  Richard Biener  <rguenther@suse.de>
20471
20472         * tree-pass.h (make_pass_dce_loop): Remove.
20473         * passes.def: Replace pass_dce_loop with pass_dce.
20474         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
20475         changed free niter estimates and reset the scev cache.
20476         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
20477         make_pass_dce_loop): Remove.
20478         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
20479         (fini_copy_prop): Return whether something changed.  Always
20480         let substitute_and_fold perform DCE and free niter estimates
20481         and reset the scev cache if so.
20482         (execute_copy_prop): If sth changed schedule cleanup-cfg.
20483         (pass_data_copy_prop): Do not unconditionally schedule
20484         cleanup-cfg or update-ssa.
20485
20486 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
20487
20488         PR tree-optimization/61518
20489         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20490         reduction var is used in reduction stmt or phi-function only.
20491
20492 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20493
20494         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
20495
20496 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20497
20498         PR tree-optimization/61517
20499         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
20500         whose rhs's first tree is the source expression instead of the
20501         expression itself.
20502         (find_bswap_or_nop): Likewise.
20503         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
20504         gimple stmt whose rhs's first tree is the source. In the memory source
20505         case, move the stmt to be replaced close to one of the original load to
20506         avoid the problem of a store between the load and the stmt's original
20507         location.
20508         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
20509         signature.
20510
20511 2014-06-18  Andreas Schwab  <schwab@suse.de>
20512
20513         PR rtl-optimization/54555
20514         * postreload.c (move2add_use_add2_insn): Substitute
20515         STRICT_LOW_PART only if it is cheaper.
20516
20517 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
20518
20519         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
20520         Do not use unspec as call operand.  Use memory_operand instead of
20521         memory_nox32_operand and add "m" operand constraint.  Disable
20522         pattern for TARGET_X32.
20523         (*sibcall_pop_memory): Ditto.
20524         (*sibcall_value_memory): Ditto.
20525         (*sibcall_value_pop_memory): Ditto.
20526         (sibcall peepholes): Merge SImode and DImode patterns using
20527         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
20528         Disable pattern for TARGET_X32.  Check if eliminated register is
20529         really dead after call insn.  Generate call RTX without unspec operand.
20530         (sibcall_value peepholes): Ditto.
20531         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
20532         instead of memory_nox32_operand.  Check if eliminated register is
20533         really dead after call insn. Generate call RTX without unspec operand.
20534         (sibcall_value_pop peepholes): Ditto.
20535         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
20536
20537 2014-06-18  Terry Guo  <terry.guo@arm.com>
20538
20539         PR target/61544
20540         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
20541         reach the head.
20542
20543 2014-06-18  Olivier Hainque  <hainque@adacore.com>
20544
20545         * tree-core.h (tree_block): Add an "end_locus" field, allowing
20546         memorization of the end of block source location.
20547         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
20548         * gimplify.c (gimplify_bind_expr): Propagate the block start and
20549         end source location info we have on the block entry/exit code we
20550         generate.
20551
20552 2014-06-18  Richard Biener  <rguenther@suse.de>
20553
20554         * common.opt (fssa-phiopt): New option.
20555         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
20556         but not with -Og.
20557         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
20558         * doc/invoke.texi (-fssa-phiopt): Document.
20559
20560 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20561
20562         * genattrtab.c (n_bypassed): New variable.
20563         (process_bypasses): Initialise n_bypassed.
20564         Count number of bypassed reservations.
20565         (make_automaton_attrs): Allocate space for bypassed reservations
20566         rather than number of bypasses.
20567
20568 2014-06-18  Richard Biener  <rguenther@suse.de>
20569
20570         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
20571         we propagated anything.
20572         (substitute_and_fold_dom_walker::before_dom_children): Something
20573         changed if we propagated into PHI arguments.
20574         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
20575         we removed a stmt.
20576
20577 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
20578
20579         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
20580         vector case.
20581         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
20582         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
20583         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
20584         Introduces alternative way of loads group permutaions.
20585         (vect_transform_grouped_load): Try alternative way of permutations.
20586
20587 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
20588
20589         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
20590         changed in ORT_TARGET region, don't jump to do_outer.
20591         (struct gimplify_adjust_omp_clauses_data): New type.
20592         (gimplify_adjust_omp_clauses_1): Adjust for data being
20593         a struct gimplify_adjust_omp_clauses_data pointer instead
20594         of tree *.  Pass pre_p as a new argument to
20595         lang_hooks.decls.omp_finish_clause hook.
20596         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
20597         splay_tree_foreach to pass both list_p and pre_p.
20598         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
20599         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
20600         gimplify_adjust_omp_clauses callers.
20601         * langhooks.c (lhd_omp_finish_clause): New function.
20602         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20603         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20604         * langhooks.h (struct lang_hooks_for_decls): Add a new
20605         gimple_seq * argument to omp_finish_clause hook.
20606         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20607         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20608         (scan_omp_parallel, lower_omp_for): When adding
20609         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20610         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20611         * tree-nested.c (convert_nonlocal_omp_clauses,
20612         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20613         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20614
20615 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
20616
20617         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20618         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20619
20620 2014-06-17  Xinliang David Li  <davidxl@google.com>
20621
20622         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20623         * passes.c (pass_init_dump_file): Do not set initialize
20624         flag to false unconditionally.
20625
20626 2014-06-17  Richard Biener  <rguenther@suse.de>
20627
20628         * genopinit.c (main): Use vec<>::qsort method.
20629         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20630         Likewise.
20631         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20632
20633 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
20634
20635         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20636         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20637         (mips_move_to_gpr_cost): Remove ST_REGS case.
20638         (mips_move_from_gpr_cost): Likewise.
20639         (mips_register_move_cost): Likewise.
20640         (mips_secondary_reload_class): Likewise.
20641
20642 2014-06-17  Richard Biener  <rguenther@suse.de>
20643
20644         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20645         (pass_all_optimizations): Move 3rd copy-prop pass from after
20646         fre to before ifcombine/phiopt.
20647
20648 2014-06-17  Richard Biener  <rguenther@suse.de>
20649
20650         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20651         and allow all blocks to be forwarders.
20652
20653 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
20654
20655         PR target/61483
20656         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20657         variable 'size'; calculate 'size' right in the front; use
20658         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20659         pcum->aapcs_stack_words.
20660
20661 2014-06-17  Nick Clifton  <nickc@redhat.com>
20662
20663         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20664         (umulhi3, mulsidi3, umulsidi3): Likewise.
20665
20666 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
20667
20668         PR middle-end/61508
20669         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20670         check for section name.
20671
20672 2014-06-17  Richard Biener  <rguenther@suse.de>
20673
20674         * tree-ssa-propagate.c: Include domwalk.h.
20675         (substitute_and_fold): Outline main worker into a domwalker ...
20676         (substitute_and_fold_dom_walker::before_dom_children): ... here.
20677         Schedule stmts we can fully propagate for removal.  Remove
20678         poor-mans DCE.
20679         (substitute_and_fold): Apply a dominator walk to perform
20680         substitution.  Process stmts scheduled for removal here.
20681
20682 2014-06-17  Richard Biener  <rguenther@suse.de>
20683
20684         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20685         of PHI node moving.
20686
20687 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
20688
20689         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20690         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20691         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20692         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20693         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20694         TARGET_HARD_FLOAT.
20695         (get_fpscr) : Likewise.
20696
20697 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
20698
20699         PR rtl-optimization/61325
20700         * lra-constraints.c (valid_address_p): Add forward declaration.
20701         (simplify_operand_subreg): Check address validity before and after
20702         alter_reg of memory subreg.
20703
20704 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
20705
20706         * config/i386/i386.c (decide_alg): Correctly handle
20707         maximum size of stringop algorithm.
20708
20709 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
20710
20711         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
20712
20713 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
20714
20715         PR rtl-optimization/61522
20716         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20717
20718 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
20719
20720         Revert:
20721         * symtab.c (symtab_node::reset_section): New method.
20722         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20723         for localization.
20724         * cgraph.h (reset_section): Declare.
20725         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20726         do not consider comdat locals.
20727         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20728         for new symbol.
20729         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20730         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20731         reset sections of symbols dragged out of the comdats.
20732         (function_and_variable_visibility): Reset sections of
20733         localized symbols.
20734
20735 2014-06-16  Richard Biener  <rguenther@suse.de>
20736
20737         PR tree-optimization/61482
20738         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20739         [-INF(OVF), +INF(OVF)] range.
20740
20741 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20742
20743         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20744         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
20745         handling 32-bit multiplication.
20746
20747 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
20748
20749         PR middle-end/61430
20750         * lra-lives.c (process_bb_lives): Skip creating copy during
20751         insn scan when src/dest has constrained to same regno.
20752
20753 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
20754
20755         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
20756         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
20757
20758 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
20759
20760         * asan.c (check_func): New function.
20761         (maybe_create_ssa_name): Likewise.
20762         (build_check_stmt_with_calls): Likewise.
20763         (use_calls_p): Likewise.
20764         (report_error_func): Change interface.
20765         (build_check_stmt): Allow non-integer lengths; add support
20766         for new parameter.
20767         (asan_instrument): Likewise.
20768         (instrument_mem_region_access): Moved code to build_check_stmt.
20769         (instrument_derefs): Likewise.
20770         (instrument_strlen_call): Likewise.
20771         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
20772         * doc/invoke.texi: Describe new parameter.
20773         * params.def: Define new parameter.
20774         * params.h: Likewise.
20775         * sanitizer.def: Describe new builtins.
20776
20777 2014-06-16  Richard Biener  <rguenther@suse.de>
20778
20779         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20780         Make all defs available at the end.
20781         (eliminate): If we remove a PHI node schedule cfg-cleanup.
20782
20783 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
20784
20785         PR plugins/45078
20786         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
20787
20788 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
20789
20790         PR bootstrap/61516
20791         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
20792         initialization.  Replace remaining use of uid.
20793
20794 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
20795
20796         * c-family/c-common.c (handle_tls_model_attribute): Use
20797         set_decl_tls_model.
20798         * c-family/c-common.c (handle_tls_model_attribute): Use
20799         set_decl_tls_model.
20800         * cgraph.h (struct varpool_node): Add tls_model.
20801         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
20802         * tree.h (DECL_TLS_MODEL): Update.
20803         (DECL_THREAD_LOCAL_P): Check that variable is static.
20804         (decl_tls_model): Declare.
20805         (set_decl_tls_model): Declare.
20806         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
20807         set symbol prorperties.
20808         (get_emutls_init_templ_addr): Cleanup.
20809         (new_emutls_decl): Update.
20810         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
20811         (lto_input_varpool_node): Likewise.
20812         * lto-streamer-out.c (hash_tree): Likewise.
20813         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20814         not stream DECL_TLS_MODEL.
20815         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
20816         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
20817
20818 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20819
20820         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
20821
20822 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20823
20824         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
20825         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
20826         lists.
20827         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
20828         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
20829         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
20830         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
20831         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
20832         (df_get_artificial_defs, df_get_artificial_uses)
20833         (df_single_def, df_single_use): Update accordingly.
20834         (df_refs_chain_dump): Take the first element in a linked list as
20835         parameter, rather than a pointer to an array of pointers.
20836         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
20837         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
20838         (df_chain_create_bb_process_use): Likewise.
20839         (df_md_bb_local_compute_process_def): Likewise.
20840         * fwprop.c (process_defs, process_uses): Likewise.
20841         (register_active_defs, update_uses): Likewise.
20842         (forward_propagate_asm): Update for new df_ref linking.
20843         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
20844         (df_null_ref_rec, df_null_mw_rec): Likewise.
20845         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
20846         explicitly.
20847         (df_scan_free_bb_info): Remove check for null artificial_defs.
20848         (df_install_ref_incremental): Adjust for new df_ref linking.
20849         Use a single-element insertion rather than a full sort.
20850         (df_ref_chain_delete_du_chain): Take the first element
20851         in a linked list as parameter, rather than a pointer to an array of
20852         pointers.
20853         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
20854         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
20855         (df_insn_info_delete): Remove check for null defs and call to
20856         df_scan_free_mws_vec.
20857         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
20858         null rather than df_null_*_rec.
20859         (df_insn_rescan_debug_internal): Likewise, and update null
20860         checks in the same way.  Remove check for null defs.
20861         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
20862         Move a single element rather doing a full sort.
20863         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
20864         linking.
20865         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
20866         Initialize df_ref and df_mw_hardreg lists to null rather than
20867         df_null_*_rec.
20868         (df_ref_compare): Take df_refs as parameter, transferring the
20869         old interface to...
20870         (df_ref_ptr_compare): ...this new function.
20871         (df_sort_and_compress_refs): Update accordingly.
20872         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
20873         old interface to...
20874         (df_mw_ptr_compare): ...this new function.
20875         (df_sort_and_compress_mws): Update accordingly.
20876         (df_install_refs, df_install_mws): Return a linked list rather than
20877         an array of pointers.
20878         (df_refs_add_to_chains): Assert that old lists are empty rather
20879         than freeing them.
20880         (df_insn_refs_verify): Don't handle null defs speciailly.
20881         * web.c (union_match_dups): Update for new df_ref linking.
20882
20883 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20884
20885         * df.h (df_ref_create, df_ref_remove): Delete.
20886         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
20887         (df_ref_remove): Likewise.
20888
20889 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20890
20891         * df.h (df_single_def, df_single_use): New functions.
20892         * ira.c (find_moveable_pseudos): Use them.
20893
20894 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20895
20896         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
20897         * df-problems.c (df_note_bb_compute): Use it.
20898         * regstat.c (regstat_bb_compute_ri): Likewise.
20899
20900 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20901
20902         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
20903         * cse.c (cse_extended_basic_block): Use them.
20904         * dce.c (mark_artificial_use): Likewise.
20905         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
20906         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20907         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
20908         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
20909         (df_simulate_initialize_backwards): Likewise.
20910         (df_simulate_finalize_backwards): Likewise.
20911         (df_simulate_initialize_forwards): Likewise.
20912         (df_md_simulate_artificial_defs_at_top): Likewise.
20913         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20914         * regrename.c (init_rename_info): Likewise.
20915         * regstat.c (regstat_bb_compute_ri): Likewise.
20916         (regstat_bb_compute_calls_crossed): Likewise.
20917
20918 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
20919
20920         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
20921         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
20922         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
20923         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
20924         * combine.c (create_log_links): Likewise.
20925         * compare-elim.c (find_flags_uses_in_insn): Likewise.
20926         (try_eliminate_compare): Likewise.
20927         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
20928         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
20929         (remove_reg_equal_equiv_notes_for_defs): Likewise.
20930         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
20931         (word_dce_process_block, dce_process_block): Likewise.
20932         * ddg.c (def_has_ccmode_p): Likewise.
20933         * df-core.c (df_bb_regno_first_def_find): Likewise.
20934         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
20935         * df-problems.c (df_rd_simulate_one_insn): Likewise.
20936         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20937         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
20938         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
20939         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
20940         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
20941         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
20942         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
20943         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
20944         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20945         * fwprop.c (local_ref_killed_between_p): Likewise.
20946         (all_uses_available_at, free_load_extend): Likewise.
20947         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
20948         * hw-doloop.c (scan_loop): Likewise.
20949         * ifcvt.c (dead_or_predicable): Likewise.
20950         * init-regs.c (initialize_uninitialized_regs): Likewise.
20951         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
20952         (process_bb_node_lives): Likewise.
20953         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
20954         (find_moveable_pseudos): Likewise.
20955         * loop-invariant.c (check_dependencies, record_uses): Likewise.
20956         * recog.c (peep2_find_free_register): Likewise.
20957         * ree.c (get_defs): Likewise.
20958         * regstat.c (regstat_bb_compute_ri): Likewise.
20959         (regstat_bb_compute_calls_crossed): Likewise.
20960         * sched-deps.c (find_inc, find_mem): Likewise.
20961         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
20962         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
20963         * shrink-wrap.c (requires_stack_frame_p): Likewise.
20964         (prepare_shrink_wrap): Likewise.
20965         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
20966         * web.c (union_defs, pass_web::execute): Likewise.
20967         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
20968         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
20969
20970 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
20971
20972         * lra-assign.c (assign_by_spills): Add code to assign vector regs
20973         to inheritance pseudos.
20974         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
20975
20976 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
20977
20978         PR target/61415
20979         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
20980         (BU_MISC_2): Rename to ...
20981         (BU_LDBL128_2): ... this.
20982         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
20983         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
20984         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20985         RS6000_BTM_LDBL128.
20986         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
20987         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
20988         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
20989         (unpacktf_1): Likewise.
20990         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
20991         (__builtin_longdouble_dw1): Likewise.
20992         * doc/sourcebuild.texi (longdouble128): Document.
20993
20994 2014-06-13  Jeff Law  <law@redhat.com>
20995
20996         PR rtl-optimization/61094
20997         PR rtl-optimization/61446
20998         * ree.c (combine_reaching_defs): Get the mode for the copy from
20999         the extension insn rather than the defining insn.
21000
21001 2014-06-13  Dehao Chen  <dehao@google.com>
21002
21003         * dwarf2out.c (add_linkage_name): Emit more linkage name.
21004
21005 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
21006
21007         * doc/install.texi (--enable-linker-plugin-configure-flags)
21008         (--enable-linker-plugin-flags): Document new flags.
21009
21010 2014-06-13  Martin Jambor  <mjambor@suse.cz>
21011
21012         PR ipa/61186
21013         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21014         cache_token if returning early.
21015
21016 2014-06-13  Nick Clifton  <nickc@redhat.com>
21017
21018         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21019         requested alignment is active.
21020         (LABEL_ALIGN): Likewise.
21021         (LOOP_ALIGN): Likewise.
21022
21023 2014-06-13  Richard Biener  <rguenther@suse.de>
21024
21025         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21026         Rewrite to propagate the VN result into all uses where
21027         possible and to remove stmts becoming dead because of that.
21028         (eliminate): Generalize stmt removal handling, remove in
21029         reverse dominator order to support proper debug stmt
21030         generation.  Update stmts before removing stmts.
21031         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21032
21033 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21034
21035         PR tree-optimization/61375
21036         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21037         symbolic number cannot be represented in an uint64_t.
21038         (find_bswap_or_nop_1): Likewise.
21039
21040 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21041
21042         * symtab.c (symtab_node::reset_section): New method.
21043         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21044         for localization.
21045         * cgraph.h (reset_section): Declare.
21046         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21047         do not consider comdat locals.
21048         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21049         for new symbol.
21050         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21051         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21052         reset sections of symbols dragged out of the comdats.
21053         (function_and_variable_visibility): Reset sections of
21054         localized symbols.
21055
21056 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21057
21058         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21059         to use symtab and decl_binds_to_current_def_p
21060         * tree-vectorizer.c (increase_alignment): Increase alignment
21061         of alias target, too.
21062
21063 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
21064
21065         PR middle-end/61486
21066         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21067         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21068         if outer combined construct is distribute.
21069         (gimplify_omp_for): For OMP_DISTRIBUTE set
21070         gimplify_omp_ctxp->distribute.
21071         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21072         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21073         mapping into decl map.
21074
21075 2014-06-12  Jason Merrill  <jason@redhat.com>
21076
21077         * common.opt (fabi-version): Change default to 0.
21078
21079 2014-06-12  Jason Merrill  <jason@redhat.com>
21080
21081         * toplev.c (process_options): Reject -fabi-version=1.
21082
21083 2014-06-12  Jeff Law  <law@redhat.com>
21084
21085         PR tree-optimization/61009
21086         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21087         value when we stop processing a block due to problematic PHIs.
21088
21089 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
21090
21091         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21092         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21093         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21094         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21095         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21096         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21097         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21098         are not in the spec.
21099
21100 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
21101
21102         PR target/59843
21103         * config/aarch64/aarch64-modes.def: Add V1DFmode.
21104         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21105         Support V1DFmode.
21106
21107 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
21108
21109         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21110
21111 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
21112
21113         PR target/61443
21114         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21115         loading from address spaces.
21116
21117 2014-06-12  Martin Liska  <mliska@suse.cz>
21118
21119         PR ipa/61462
21120         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21121         statement is reachable.
21122
21123 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
21124
21125         * symtab.c (section_hash): New hash.
21126         (symtab_unregister_node): Clear section before freeing.
21127         (hash_section_hash_entry): New haser.
21128         (eq_sections): New function.
21129         (symtab_node::set_section_for_node): New method.
21130         (set_section_1): Update.
21131         (symtab_node::set_section): Take string instead of tree as parameter.
21132         (symtab_resolve_alias): Update.
21133         * cgraph.h (section_hash_entry_d): New structure.
21134         (section_hash_entry): New typedef.
21135         (cgraph_node): Change comdat_group_ to x_comdat_group,
21136         change section_ to x_section and turn into section_hash_entry;
21137         update accestors; put set_section_for_node offline.
21138         * tree.c (decl_section_name): Turn into string.
21139         (set_decl_section_name): Change parameter to be string.
21140         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21141         * sdbout.c (sdbout_one_type): Update.
21142         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21143         * varasm.c (IN_NAMED_SECTION, get_named_section,
21144         resolve_unique_section, hot_function_section, get_named_text_section,
21145         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21146         make_decl_rtl, default_unique_section): Update.
21147         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21148         (c6x_elf_unique_section): Update.
21149         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21150         * config/pa/pa.c (pa_function_section): Update.
21151         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21152         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21153         * config/arc/arc.c (arc_in_small_data_p): Update.
21154         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21155         * config/mcore/mcore.c (mcore_unique_section): Update.
21156         * config/mips/mips.c (mips16_build_function_stub): Update.
21157         (mips16_build_call_stub): Update.
21158         (mips_function_rodata_section): Update.
21159         (mips_in_small_data_p): Update.
21160         * config/score/score.c (score_in_small_data_p): Update.
21161         * config/rx/rx.c (rx_in_small_data): Update.
21162         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21163         (rs6000_xcoff_asm_named_section): Update.
21164         (rs6000_xcoff_unique_section): Update.
21165         * config/frv/frv.c (frv_string_begins_with): Update.
21166         (frv_in_small_data_p): Update.
21167         * config/v850/v850.c (v850_encode_data_area): Update.
21168         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21169         (bfin_handle_l1_data_attribute): Update.
21170         (bfin_handle_l2_attribute): Update.
21171         * config/mep/mep.c (mep_unique_section): Update.
21172         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21173         Update.
21174         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21175         (h8300_handle_tiny_data_attribute): Update.
21176         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21177         (m32r_in_small_data_p): Update.
21178         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21179         * config/i386/i386.c (ix86_in_large_data_p): Update.
21180         * config/i386/winnt.c (i386_pe_unique_section): Update.
21181         * config/darwin.c (darwin_function_section): Update.
21182         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21183         * tree-emutls.c (get_emutls_init_templ_addr): Update.
21184         (new_emutls_decl): Update.
21185         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21186         input_varpool_node): Update.
21187         (ead_string_cst): Turn to ...
21188         (read_string): ... this one.
21189         * dwarf2out.c (secname_for_decl): Update.
21190         * asan.c (asan_protect_global): Update.
21191
21192 2014-06-11  DJ Delorie  <dj@redhat.com>
21193
21194         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21195         cache lines.
21196         * config/rx/rx.c (rx_option_override): Likewise.
21197         (rx_align_for_label): Likewise.
21198
21199         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21200
21201 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
21202
21203         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21204         prototype.
21205
21206 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21207
21208         * common.md: New file.
21209         * doc/md.texi: Update description of generic, machine-independent
21210         constraints.
21211         * config/s390/constraints.md (e): Delete.
21212         * Makefile.in (md_file): Include common.md.
21213         * config/m32c/t-m32c (md_file): Likewise.
21214         * genpreds.c (general_mem): New array.
21215         (generic_constraint_letters): Remove constraints now defined by
21216         common.md.
21217         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21218         Allow the first character to be '<' or '>' as well.
21219         * genoutput.c (general_mem): New array.
21220         (indep_constraints): Remove constraints now defined by common.md.
21221         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21222         Remove special handling of 'm'.
21223         * ira-costs.c (record_reg_classes): Remove special handling of
21224         constraints now defined by common.md.
21225         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21226         * ira-lives.c (single_reg_class): Likewise.
21227         (ira_implicitly_set_insn_hard_regs): Likewise.
21228         * lra-constraints.c (reg_class_from_constraints): Likewise.
21229         (process_alt_operands, process_address, curr_insn_transform): Likewise.
21230         * postreload.c (reload_cse_simplify_operands): Likewise.
21231         * reload.c (push_secondary_reload, scratch_reload_class)
21232         (find_reloads, alternative_allows_const_pool_ref): Likewise.
21233         * reload1.c (maybe_fix_stack_asms): Likewise.
21234         * targhooks.c (default_secondary_reload): Likewise.
21235         * stmt.c (parse_output_constraint): Likewise.
21236         * recog.c (preprocess_constraints): Likewise.
21237         (constrain_operands, peep2_find_free_register): Likewise.
21238         (asm_operand_ok): Likewise, but add a comment saying why 'o'
21239         must be handled specially.
21240
21241 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21242
21243         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
21244         * genpreds.c (have_const_dbl_constraints): Delete.
21245         (add_constraint): Don't set it.
21246         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
21247         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
21248         constraints using the lookup_constraint logic.
21249         * ira-lives.c (single_reg_class): Likewise.
21250         * ira.c (ira_setup_alts): Likewise.
21251         * lra-constraints.c (process_alt_operands): Likewise.
21252         * recog.c (asm_operand_ok, constrain_operands): Likewise.
21253         * reload.c (find_reloads): Likewise.
21254
21255 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21256
21257         * genpreds.c (const_int_start, const_int_end): New variables.
21258         (choose_enum_order): Output CONST_INT constraints before memory
21259         constraints.
21260         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21261         Add CT_CONST_INT.
21262         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21263         * ira.c (ira_setup_alts): Likewise.
21264         * lra-constraints.c (process_alt_operands): Likewise.
21265         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21266         * reload.c (find_reloads): Likewise.
21267
21268 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21269
21270         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21271         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
21272         * recog.c (preprocess_constraints): Update accordingly.
21273
21274 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21275
21276         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21277         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21278         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21279         * genpreds.c (print_type_tree): New function.
21280         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21281         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21282         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21283         Write out enum constraint_type and get_constraint_type.
21284         * lra-constraints.c (satisfies_memory_constraint_p): Take a
21285         constraint_num rather than a constraint string.
21286         (satisfies_address_constraint_p): Likewise.
21287         (reg_class_from_constraints): Avoid old constraint macros.
21288         (process_alt_operands, process_address_1): Likewise.
21289         (curr_insn_transform): Likewise.
21290         * ira-costs.c (record_reg_classes): Likewise.
21291         (record_operand_costs): Likewise.
21292         * ira-lives.c (single_reg_class): Likewise.
21293         (ira_implicitly_set_insn_hard_regs): Likewise.
21294         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21295         * postreload.c (reload_cse_simplify_operands): Likewise.
21296         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21297         (constrain_operands, peep2_find_free_register): Likewise.
21298         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21299         (find_reloads, alternative_allows_const_pool_ref): Likewise.
21300         * reload1.c (maybe_fix_stack_asms): Likewise.
21301         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21302         * targhooks.c (default_secondary_reload): Likewise.
21303         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21304         to EXTRA_CONSTRAINT_STR.
21305         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21306
21307 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21308
21309         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21310         (write_constraint_satisfied_p_array): ...this new function.
21311         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21312         an array.
21313         (write_insn_preds_c): Update accordingly.
21314
21315 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21316
21317         * genpreds.c (write_lookup_constraint): Rename to...
21318         (write_lookup_constraint_1): ...this.
21319         (write_lookup_constraint_array): New function.
21320         (write_tm_preds_h): Define lookup_constraint as an inline function
21321         that uses write_lookup_constraint_array where possible.
21322         (write_insn_preds_c): Update for the changes above.
21323
21324 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21325
21326         * doc/md.texi (regclass_for_constraint): Rename to...
21327         (reg_class_for_constraint): ...this.
21328         * genpreds.c (num_constraints, enum_order, register_start)
21329         (register_end, satisfied_start, memory_start, memory_end)
21330         (address_start, address_end): New variables.
21331         (add_constraint): Count the number of constraints.
21332         (choose_enum_order): New function.
21333         (write_enum_constraint_num): Iterate over enum_order.
21334         (write_regclass_for_constraint): Rename to...
21335         (write_reg_class_for_constraint_1): ...this and update output
21336         accordingly.
21337         (write_constraint_satisfied_p): Rename to...
21338         (write_constraint_satisfied_p_1): ...this and update output
21339         accordingly.  Do nothing if all extra constraints are register
21340         constraints.
21341         (write_insn_extra_memory_constraint): Delete.
21342         (write_insn_extra_address_constraint): Delete.
21343         (write_range_function): New function.
21344         (write_tm_preds_h): Define constraint_satisfied_p and
21345         reg_class_for_constraint as inline functions that do a range check
21346         before calling the out-of-line function.  Use write_range_function
21347         to implement insn_extra_{register,memory,address}_constraint,
21348         the first of which is new.
21349         (write_insn_preds_c): Update after above changes to write_* functions.
21350         (main): Call choose_enum_order.
21351
21352 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21353
21354         PR tree-optimization/61306
21355         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
21356         expression instead of its size.
21357         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
21358         false to prevent optimization when the result is unpredictable due to
21359         arithmetic right shift of signed type with highest byte is set.
21360         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
21361         (init_symbolic_number): Likewise.
21362         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
21363         when the result is unpredictable due to sign extension.
21364
21365 2014-06-11  Terry Guo  <terry.guo@arm.com>
21366
21367         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
21368         (*thumb1_addsi3): Ditto.
21369         (*thumb_subdi3): Ditto.
21370         (thumb1_subsi3_insn): Ditto.
21371         (*thumb_mulsi3): Ditto.
21372         (*thumb_mulsi3_v6): Ditto.
21373         (*thumb1_andsi3_insn): Ditto.
21374         (thumb1_bicsi3): Ditto.
21375         (*thumb1_iorsi3_insn): Ditto.
21376         (*thumb1_xorsi3_insn): Ditto.
21377         (*thumb1_ashlsi3): Ditto.
21378         (*thumb1_ashrsi3): Ditto.
21379         (*thumb1_lshrsi3): Ditto.
21380         (*thumb1_rotrsi3): Ditto.
21381         (*thumb1_negdi2): Ditto.
21382         (*thumb1_negsi2): Ditto.
21383         (*thumb1_abssi2): Ditto.
21384         (*thumb1_neg_abssi2): Ditto.
21385         (*thumb1_one_cmplsi2): Ditto.
21386         (*thumb1_zero_extendhisi2): Ditto.
21387         (*thumb1_zero_extendqisi2): Ditto.
21388         (*thumb1_zero_extendqisi2_v6): Ditto.
21389         (thumb1_extendhisi2): Ditto.
21390         (thumb1_extendqisi2): Ditto.
21391         (*thumb1_movdi_insn): Ditto.
21392         (*thumb1_movsi_insn): Ditto.
21393         (*thumb1_movhi_insn): Ditto.
21394         (thumb_movhi_clobber): Ditto.
21395         (*thumb1_movqi_insn): Ditto.
21396         (*thumb1_movhf): Ditto.
21397         (*thumb1_movsf_insn): Ditto.
21398         (*thumb_movdf_insn): Ditto.
21399         (movmem12b): Ditto.
21400         (movmem8b): Ditto.
21401         (cbranchqi4): Ditto.
21402         (cbranchsi4_insn): Ditto.
21403         (cbranchsi4_scratch): Ditto.
21404         (*negated_cbranchsi4): Ditto.
21405         (*tbit_cbranch): Ditto.
21406         (*tlobits_cbranch): Ditto.
21407         (*tstsi3_cbranch): Ditto.
21408         (*cbranchne_decr1): Ditto.
21409         (*addsi3_cbranch): Ditto.
21410         (*addsi3_cbranch_scratch): Ditto.
21411         (*thumb_cmpdi_zero): Ditto.
21412         (cstoresi_eq0_thumb1): Ditto.
21413         (cstoresi_ne0_thumb1): Ditto.
21414         (*cstoresi_eq0_thumb1_insn): Ditto.
21415         (*cstoresi_ne0_thumb1_insn): Ditto.
21416         (cstoresi_nltu_thumb1): Ditto.
21417         (cstoresi_ltu_thumb1): Ditto.
21418         (thumb1_addsi3_addgeu): Ditto.
21419         (*thumb_jump): Ditto.
21420         (*call_reg_thumb1_v5): Ditto.
21421         (*call_reg_thumb1): Ditto.
21422         (*call_value_reg_thumb1_v5): Ditto.
21423         (*call_value_reg_thumb1): Ditto.
21424         (*call_insn): Ditto.
21425         (*call_value_insn): Ditto.
21426         (thumb1_casesi_internal_pic): Ditto.
21427         (thumb1_casesi_dispatch): Ditto.
21428         (*thumb1_indirect_jump): Ditto.
21429         (prologue_thumb1_interwork): Ditto.
21430         (*epilogue_insns): Ditto.
21431         (consttable_1): Ditto.
21432         (consttable_2): Ditto.
21433         (tablejump): Ditto.
21434         (*thumb1_tablejump): Ditto.
21435         (thumb_eh_return): Ditto.
21436         (define_peephole2): Two of them are thumb1 only and got moved into
21437         new file thumb1.md.
21438         (define_split): Six of them are thumb1 only and got moved into new
21439         file thumb1.md.
21440         * config/arm/thumb1.md: New file comprised of above thumb1 only
21441         patterns.
21442
21443 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21444
21445         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
21446         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
21447         dependencies.
21448         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
21449         (aarch64_crc_builtin_datum): New struct.
21450         (aarch64_crc_builtin_data): New.
21451         (aarch64_init_crc32_builtins): New function.
21452         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
21453         (aarch64_crc32_expand_builtin): New.
21454         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
21455         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21456         __ARM_FEATURE_CRC32 when appropriate.
21457         (TARGET_CRC32): Define.
21458         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
21459         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
21460         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
21461         (aarch64_<crc_variant>): New pattern.
21462         * config/aarch64/arm_acle.h: New file.
21463         * config/aarch64/iterators.md (CRC): New int iterator.
21464         (crc_variant, crc_mode): New int attributes.
21465         * doc/aarch64-acle-intrinsics.texi: New file.
21466         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
21467         Include aarch64-acle-intrinsics.texi.
21468
21469 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
21470
21471         * tree-vect-data-refs.c (vect_grouped_store_supported): New
21472         check for stores group of length 3.
21473         (vect_permute_store_chain): New permutations for stores group of
21474         length 3.
21475         * tree-vect-stmts.c (vect_model_store_cost): Change cost
21476         of vec_perm_shuffle for the new permutations.
21477
21478 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
21479
21480         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
21481         table rewriting temporarily on targets not supporting ONE_ONLY.
21482
21483 2014-06-11  Richard Biener  <rguenther@suse.de>
21484
21485         PR middle-end/61437
21486         Revert
21487         2014-06-04  Richard Biener  <rguenther@suse.de>
21488
21489         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21490         TREE_PUBLIC and DECL_EXTERNAL decls.
21491
21492 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
21493
21494         * varasm.c (set_implicit_section): New function.
21495         (resolve_unique_section): Use it to set implicit section
21496         for aliases, too.
21497         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
21498         (default_function_section): Likewise.
21499         (decl_binds_to_current_def_p): Constify argument.
21500         * varasm.h (decl_binds_to_current_def_p): Update prototype.
21501         * asan.c (asan_protect_global): Use
21502         symtab_get_node (decl)->implicit_section.
21503         * symtab.c (dump_symtab_base): Dump implicit sections.
21504         (verify_symtab_base): Verify sanity of sectoins and comdats.
21505         (symtab_resolve_alias): Alias share the section of its target.
21506         (set_section_1): New function.
21507         (symtab_node::set_section): Move here, recurse to aliases.
21508         (verify_symtab): Check for duplicated symtab lists.
21509         * tree-core.h (implicit_section_name_p): Remove.
21510         * tree-vect-data-refs.c: Include varasm.h.
21511         (vect_can_force_dr_alignment_p): Fix conditional on when
21512         decl bints to current definition; use
21513         symtab_get_node (decl)->implicit_section.
21514         * cgraph.c (cgraph_make_node_local_1): Fix section set.
21515         * cgraph.h (struct symtab_node): Add implicit_section.
21516         (set_section): Rename to ...
21517         (set_section_for_node): ... this one.
21518         (set_section): Declare.
21519         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
21520         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21521         input_overwrite_node, input_varpool_node): Stream implicit_section.
21522         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
21523         removal; it will fail in LTO.
21524
21525 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21526
21527         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
21528         Change second alternative type to f_mcr.
21529         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
21530         and 12th alternatives' types to f_mcr and f_mrc.
21531         (*movdi_aarch64): Same for 12th and 13th alternatives.
21532         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
21533         (aarch64_movtilow_tilow): Change type to fmov.
21534
21535 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
21536
21537         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
21538         (aarch64_save_or_restore_callee_save_registers): Fix layout.
21539
21540 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21541
21542         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
21543         New expander.
21544         (aarch64_sqrdmulh_lane<mode>): Likewise.
21545         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21546         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21547         (aarch64_sqdmulh_laneq<mode>): New expander.
21548         (aarch64_sqrdmulh_laneq<mode>): Likewise.
21549         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
21550         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
21551         (aarch64_sqdmulh_lane<mode>): New expander.
21552         (aarch64_sqrdmulh_lane<mode>): Likewise.
21553         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21554         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21555         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
21556         (aarch64_sqdmlal_laneq<mode>): Likewise.
21557         (aarch64_sqdmlsl_lane<mode>): Likewise.
21558         (aarch64_sqdmlsl_laneq<mode>): Likewise.
21559         (aarch64_sqdmlal2_lane<mode>): Likewise.
21560         (aarch64_sqdmlal2_laneq<mode>): Likewise.
21561         (aarch64_sqdmlsl2_lane<mode>): Likewise.
21562         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21563         (aarch64_sqdmull_lane<mode>): Likewise.
21564         (aarch64_sqdmull_laneq<mode>): Likewise.
21565         (aarch64_sqdmull2_lane<mode>): Likewise.
21566         (aarch64_sqdmull2_laneq<mode>): Likewise.
21567
21568 2014-06-10  Richard Biener  <rguenther@suse.de>
21569
21570         PR tree-optimization/61438
21571         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
21572         (eliminate_dom_walker::before_dom_children): Only try to inhibit
21573         insertion of IVs if running PRE.
21574         (eliminate): Adjust.
21575         (pass_pre::execute): Likewise.
21576         (pass_fre::execute): Likewise.
21577
21578 2014-06-10  Richard Biener  <rguenther@suse.de>
21579
21580         PR middle-end/61456
21581         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21582         Do not use the main variant for the type comparison.
21583         (ncr_compar): Likewise.
21584         (nonoverlapping_component_refs_p): Likewise.
21585
21586 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21587
21588         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
21589         REG_CFA_RESTORE mode.
21590
21591 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
21592
21593         * config/i386/i386.c (expand_vec_perm_pblendv): New.
21594         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
21595         expand_vec_perm_pblendv.
21596
21597 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21598
21599         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21600         available.
21601         Simplify description of __crc32d and __crc32cd intrinsics.
21602         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21603         availability.
21604
21605 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
21606
21607         PR lto/61334
21608         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21609         * config.in: Regenerate.
21610         * configure: Likewise.
21611
21612 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
21613
21614         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21615         and public vars.
21616         (intersect_static_var_sets): Remove.
21617         (propagate): Do not prune local statics.
21618
21619 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
21620
21621         PR fortran/60928
21622         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21623         Set lastprivate_firstprivate even if omp_private_outer_ref
21624         langhook returns true.
21625         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21626         langhook, call unshare_expr on new_var and call
21627         build_outer_var_ref to get the last argument.
21628
21629 2014-06-10  Marek Polacek  <polacek@redhat.com>
21630
21631         PR c/60988
21632         * doc/extend.texi: Add cindex for transparent_union.
21633
21634 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21635
21636         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21637         init_symbolic_number ().
21638
21639 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
21640
21641         PR middle-end/61141
21642         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21643         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21644         (verify_rtl_sharing): Likewise.
21645
21646 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
21647
21648         PR c++/54442
21649         * tree.c (build_qualified_type): Use a canonical type for
21650         TYPE_CANONICAL.
21651
21652 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21653
21654         * config/arm/arm-modes.def: Remove XFmode.
21655
21656 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
21657
21658         PR target/61062
21659         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21660         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21661         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21662         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21663         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21664         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21665         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21666         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21667         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21668
21669 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
21670
21671         * tree-core.h (tree_decl_with_vis): Remove section_name.
21672
21673 2014-06-09  Kito Cheng  <kito@0xlab.org>
21674
21675         * ira.c (ira): Don't call init_caller_save if LRA enabled
21676         since LRA use its own infrastructure to handle that.
21677
21678 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21679
21680         * symtab.c (dump_symtab_base): Update dumping.
21681         (symtab_make_decl_local): Clear only DECL_COMDAT.
21682         * tree-vect-data-refs.c (Check that variable is static before
21683         tampering with sections.
21684         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21685         (cgraph_create_virtual_clone): Likewise.
21686         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21687         (decl_section_name, set_decl_section_name): New accessors.
21688         (find_decls_types_r): Do not walk section name
21689         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21690         (decl_comdat_group, decl_comdat_group_id): Constify.
21691         (decl_section_name, set_decl_section_name): Update.
21692         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21693         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21694         (cgraph_make_node_local_1): Clear section and comdat group.
21695         * cgraph.h (set_comdat_group): Sanity check.
21696         (get_section, set_section): New.
21697         * ipa-comdats.c (ipa_comdats): Use get_section.
21698         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
21699         * lto-streamer-out.c: Do not follow section names.
21700         * c-family/c-common.c (handle_section_attribute): Update.
21701         * lto-cgraph.c (lto_output_node): Output section.
21702         (lto_output_varpool_node): Likewise.
21703         (read_comdat_group): Rename to ...
21704         (read_identifier): ... this one.
21705         (read_string_cst): New function.
21706         (input_node, input_varpool_node): Input section names.
21707         * tree-emutls.c (get_emutls_init_templ_addr): Update.
21708         (new_emutls_decl): Update.
21709         (secname_for_decl): Check section names only of static vars.
21710         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
21711         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
21712         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21713         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21714         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
21715         * config/mcore/mcore.c (mcore_unique_section): Likewise.
21716         * config/mips/mips.c (mips16_build_function_stub): Likewise.
21717         * config/v850/v850.c (v850_insert_attributes): Likewise.
21718         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21719         Likewise.
21720         (h8300_handle_tiny_data_attribute): Likewise.
21721         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21722         (bfin_handle_l2_attribute): Likewise.
21723
21724 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21725
21726         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21727         remove static initializer.
21728
21729 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21730
21731         * varasm.c (use_blocks_for_decl_p): Check symbol table
21732         instead of alias attribute.
21733         (place_block_symbol): Recurse on aliases.
21734
21735 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21736
21737         * ipa-visibility.c: Include varasm.h
21738         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21739
21740 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
21741
21742         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21743         outputting aliases.
21744
21745 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
21746
21747         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
21748         from test_insn into GGC space escape via SET_SRC.
21749
21750 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
21751
21752         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
21753         call statement, if any.
21754         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
21755         statements, if any.  Tidy up.
21756
21757 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
21758
21759         PR target/61431
21760         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
21761         iterators, VSX_D that handles 64-bit types, and VSX_LE that
21762         handles swapping the two 64-bit double words on little endian
21763         systems.  Include V1TImode and optionally TImode in VSX_LE so that
21764         these types are properly swapped.  Change all of the insns and
21765         splits that do the 64-bit swaps to use VSX_LE.
21766         (vsx_le_perm_load_<mode>): Likewise.
21767         (vsx_le_perm_store_<mode>): Likewise.
21768         (splitters for little endian memory operations): Likewise.
21769         (vsx_xxpermdi2_le_<mode>): Likewise.
21770         (vsx_lxvd2x2_le_<mode>): Likewise.
21771         (vsx_stxvd2x2_le_<mode>): Likewise.
21772
21773 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
21774
21775         PR target/61423
21776         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
21777         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
21778         and corresponding splitters.  Zero extend general register
21779         or memory input operand to XMM temporary.  Enable for
21780         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
21781         (floatunssi<mode>2): Update expander predicate.
21782
21783 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
21784
21785         PR rtl-optimization/61325
21786         * lra-constraints.c (process_address_1): Check scale equal to one
21787         to prevent transformation: base + scale * index => base + new_reg.
21788
21789 2014-06-06  Richard Biener  <rguenther@suse.de>
21790
21791         PR tree-optimization/59299
21792         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
21793         a def operand.
21794         (nearest_common_dominator_of_uses): Likewise.
21795         (statement_sink_location): Adjust.  Support sinking loads.
21796
21797 2014-06-06  Martin Jambor  <mjambor@suse.cz>
21798
21799         * ipa-prop.c (get_place_in_agg_contents_list): New function.
21800         (build_agg_jump_func_from_list): Likewise.
21801         (determine_known_aggregate_parts): Renamed to
21802         determine_locally_known_aggregate_parts.  Moved some functionality
21803         to the two functions above, removed bound checks.
21804
21805 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
21806
21807         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
21808         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
21809         (aarch64_progress_pointer): Likewise.
21810         (aarch64_copy_one_part_and_move_pointers): Likewise.
21811         (aarch64_expand_movmen): Likewise.
21812         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
21813         * config/aarch64/aarch64.md (movmem<mode>): New.
21814
21815 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
21816
21817         * targhooks.c (default_add_stmt_cost): Call target specific
21818         hook instead of default one.
21819
21820 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21821
21822         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
21823         endianness instead of host endianness.
21824         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
21825         comments.
21826
21827 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21828
21829         PR debug/53927
21830         * function.c (instantiate_decls): Process the saved static chain.
21831         (expand_function_start): If not optimizing, save the static chain
21832         onto the stack.
21833         * tree-nested.c (convert_all_function_calls): Always create the static
21834         chain for nested functions if not optimizing.
21835
21836 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21837
21838         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
21839
21840 2014-06-06  Richard Biener  <rguenther@suse.de>
21841
21842         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
21843         (construct_init_block): Likewise.
21844         (construct_exit_block): Likewise.
21845         (pass_expand::execute): Likewise.
21846         * graphite.c (graphite_transforms): Replace check for current_loops
21847         with a check for > 1 loops.
21848         (pass_graphite_transforms::execute): Adjust.
21849         * ipa-split.c (split_function): Remove check for current_loops.
21850         * omp-low.c (expand_parallel_call): Likewise.
21851         (expand_omp_for_init_counts): Likewise.
21852         (extract_omp_for_update_vars): Likewise.
21853         (expand_omp_for_generic): Likewise.
21854         (expand_omp_sections): Likewise.
21855         (expand_omp_target): Likewise.
21856         * tracer.c (tail_duplicate): Likewise.
21857         (pass_tracer::execute): Likewise.
21858         * trans-mem.c (expand_transaction): Likewise.
21859         * tree-complex.c (expand_complex_div_wide): Likewise.
21860         * tree-eh.c (lower_resx): Likewise.
21861         (cleanup_empty_eh_merge_phis): Likewise.
21862         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
21863         current_loops with a check for > 1 loops.
21864         (pass_predcom::execute): Adjust.
21865         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
21866         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
21867         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
21868         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
21869         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
21870         * tree-switch-conversion.c (process_switch): Likewise.
21871         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
21872         * tree-vrp.c (vrp_visit_phi_node): Likewise.
21873         (execute_vrp): Likewise.
21874         * ubsan.c (ubsan_expand_null_ifn): Likewise.
21875
21876 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21877
21878         * rtl.h (insn_location): Declare.
21879         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
21880         with UNKNOWN_LOCATION.
21881         * emit-rtl.c (insn_location): New function.
21882         * final.c (notice_source_line): Check that the instruction has a
21883         location before retrieving it and use insn_location.
21884         * modulo-sched.c (loop_single_full_bb_p): Likewise.
21885         * print-rtl.c (print_rtx): Likewise.
21886
21887 2014-06-06  Richard Biener  <rguenther@suse.de>
21888
21889         * passes.def: Move 2nd VRP pass before phi-only-cprop.
21890
21891 2014-06-06  Christian Bruel  <christian.bruel@st.com>
21892
21893         PR tree-optimization/43934
21894         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
21895         cost.
21896
21897 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
21898
21899         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
21900         return NO_REGS for extra address and memory constraints.  Handle
21901         operands that match (or are equivalent to something that matches)
21902         extra constant constraints.  Ignore other non-register operands.
21903
21904 2014-06-06  Alan Modra  <amodra@gmail.com>
21905
21906         PR target/61300
21907         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
21908         * doc/tm.texi: Regenerate.
21909         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
21910         Use throughout in place of REG_PARM_STACK_SPACE.
21911         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
21912         "incoming" param.  Pass to rs6000_function_parms_need_stack.
21913         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
21914         prototype_p when incoming.  Use function decl when incoming
21915         to handle K&R style functions.
21916         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
21917         (INCOMING_REG_PARM_STACK_SPACE): Define.
21918
21919 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21920
21921         PR target/52472
21922         * cfgexpand.c (expand_debug_expr): Use address space of nested
21923         TREE_TYPE for ADDR_EXPR and MEM_REF.
21924
21925 2014-06-05  Jeff Law  <law@redhat.com>
21926
21927         PR tree-optimization/61289
21928         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
21929         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
21930         looking for those which match LHS.  All callers changed.
21931         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
21932         parameters and code which manipulated them.  All callers changed.
21933         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
21934         and DST_MAP parameters.  Simplify invalidation code by just calling
21935         invalidate_equivalences.  All callers changed.
21936         (thread_across_edge): Simplify now that we don't need to maintain
21937         the map of equivalences to invalidate.
21938
21939 2014-06-05  Kai Tietz  <ktietz@redhat.com>
21940             Richard Henderson  <rth@redhat.com>
21941
21942         PR target/46219
21943         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
21944         checking for !TARGET_X32.
21945         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
21946         (sibcall_intern): New define_insn, plus required peepholes.
21947         (sibcall_pop_intern): Likewise.
21948         (sibcall_value_intern): Likewise.
21949         (sibcall_value_pop_intern): Likewise.
21950
21951 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
21952
21953         * tree-inline.c (tree_function_versioning): Check DF info existence
21954         before accessing it.
21955
21956 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21957
21958         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
21959         frame_size.
21960         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
21961         aarch64_frame hard_fp_offset and frame_size.
21962         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
21963         frame_size; remove original_frame_size.
21964         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
21965         (aarch64_initial_elimination_offset): Remove frame_size and
21966         offset.  Use aarch64_frame frame_size.
21967
21968 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21969             Jiong Wang  <jiong.wang@arm.com>
21970             Renlin  <renlin.li@arm.com>
21971
21972         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
21973         initialization of R30 offset.  Update offset.  Iterate core
21974         regisers upto X30.  Remove X29, X30 specific code.
21975
21976 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21977             Jiong Wang  <jiong.wang@arm.com>
21978
21979         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
21980         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
21981         (aarch64_register_saved_on_entry): Adjust test.
21982
21983 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21984
21985         * config/aarch64/aarch64.h (machine_function): Move
21986         saved_varargs_size from here...
21987         (aarch64_frame): ... to here.
21988
21989         * config/aarch64/aarch64.c (aarch64_expand_prologue)
21990         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
21991         (aarch64_initial_elimination_offset)
21992         (aarch64_setup_incoming_varargs): Adjust location of
21993         saved_varargs_size.
21994
21995 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21996
21997         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
21998         layout comment.
21999
22000 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
22001             Prachi Godbole  <Prachi.Godbole@imgtec.com>
22002
22003         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
22004         mips32r5 entry to use PROCESSOR_P5600.
22005         * config/mips/mips-tables.opt: Regenerate.
22006         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22007         * config/mips/mips.c (mips_fmadd_bypass): New function.
22008         (mips_rtx_cost_data): Add costs for p5600.
22009         (mips_issue_rate): Add support for p5600.
22010         (mips_multipass_dfa_lookahead): Likewise.
22011         * config/mips/mips.h (TUNE_P5600): New define.
22012         (TUNE_MACC_CHAINS): Add TUNE_P5600.
22013         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22014         * config/mips/mips.md: Include p5600.md.
22015         (processor): Add p5600.
22016         * config/mips/p5600.md: New file.
22017
22018 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
22019
22020         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22021         * config/i386/predicates.md (palignr_operand): New.
22022         Indicates if permutation is suitable for palignr instruction.
22023
22024 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
22025
22026         PR tree-optimization/61319
22027         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22028         stmt belongs to loop.
22029
22030 2014-06-05  Richard Biener  <rguenther@suse.de>
22031
22032         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22033         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22034         (lookup_tmp_var): Adjust.
22035         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22036
22037 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22038
22039         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22040
22041 2014-06-05  Marek Polacek  <polacek@redhat.com>
22042
22043         PR c/49706
22044         * doc/invoke.texi: Document -Wlogical-not-parentheses.
22045
22046 2014-06-04  Tom de Vries  <tom@codesourcery.com>
22047
22048         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22049         CONST_INT.
22050
22051 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
22052
22053         PR tree-optimization/61385
22054         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22055
22056 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
22057
22058         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
22059         changed to use fatal_error.
22060         (main): Ensure lto_wrapper_cleanup is run atexit.
22061
22062 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22063
22064         * lra-constraints.c (valid_address_p): Move earlier in file.
22065         (address_eliminator): New structure.
22066         (satisfies_memory_constraint_p): New function.
22067         (satisfies_address_constraint_p): Likewise.
22068         (process_alt_operands, process_address, curr_insn_transform): Use them.
22069
22070 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22071
22072         * lra-int.h (lra_static_insn_data): Make operand_alternative a
22073         const pointer.
22074         (target_lra_int, default_target_lra_int, this_target_lra_int)
22075         (op_alt_data): Delete.
22076         * lra.h (lra_init): Delete.
22077         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22078         (init_insn_code_data_once): Remove op_alt_data handling.
22079         (finish_insn_code_data_once): Likewise.
22080         (init_op_alt_data): Delete.
22081         (get_static_insn_data): Initialize operand_alternative to null.
22082         (free_insn_recog_data): Cast operand_alternative before freeing it.
22083         (setup_operand_alternative): Take the operand_alternative as
22084         parameter and assume it isn't already cached in the static
22085         insn data.
22086         (lra_set_insn_recog_data): Update accordingly.
22087         (lra_init): Delete.
22088         * ira.c (ira_init): Don't call lra_init.
22089         * target-globals.h (this_target_lra_int): Declare.
22090         (target_globals): Remove lra_int.
22091         (restore_target_globals): Update accordingly.
22092         * target-globals.c: Don't include lra-int.h.
22093         (default_target_globals, save_target_globals): Remove lra_int.
22094
22095 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22096
22097         * recog.h (operand_alternative): Convert reg_class, reject,
22098         matched and matches into bitfields.
22099         (preprocess_constraints): New overload.
22100         (preprocess_insn_constraints): New function.
22101         (preprocess_constraints): Take the insn as parameter.
22102         (recog_op_alt): Change into a pointer.
22103         (target_recog): Add x_op_alt.
22104         * recog.c (asm_op_alt): New variable.
22105         (recog_op_alt): Change into a pointer.
22106         (preprocess_constraints): New overload, replacing the old function
22107         definition with one that doesn't use global state.
22108         (preprocess_insn_constraints): New function.
22109         (preprocess_constraints): Use them.  Take the insn as parameter.
22110         Use asm_op_alt for asms.
22111         (recog_init): Free existing x_op_alt entries.
22112         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22113         pointer const.
22114         (make_early_clobber_and_input_conflicts): Likewise.
22115         (process_bb_node_lives): Pass the insn to process_constraints.
22116         * reg-stack.c (check_asm_stack_operands): Likewise.
22117         (subst_asm_stack_regs): Likewise.
22118         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22119         * regrename.c (build_def_use): Likewise.
22120         * sched-deps.c (sched_analyze_insn): Likewise.
22121         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22122         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22123         (note_invalid_constants): Likewise.
22124         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22125         (ix86_legitimate_combined_insn): Make operand_alternative pointer
22126         const.
22127
22128 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22129
22130         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22131         * ira-lives.c (check_and_make_def_conflict): Check for disabled
22132         alternatives.
22133         (make_early_clobber_and_input_conflicts): Likewise.
22134         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22135
22136 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22137
22138         * recog.h (alternative_class): New function.
22139         (which_op_alt): Return a const recog_op_alt.
22140         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22141         (subst_asm_stack_regs): Likewise.
22142         * config/arm/arm.c (note_invalid_constants): Likewise.
22143         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
22144         the operand_alternative; use alternative class instead.
22145         * sel-sched.c (get_reg_class): Likewise.
22146         * regrename.c (build_def_use): Likewise.
22147         (hide_operands, restore_operands, record_out_operands): Update type
22148         accordingly.
22149
22150 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22151
22152         * recog.h (recog_op_alt): Convert to a flat array.
22153         (which_op_alt): New function.
22154         * recog.c (recog_op_alt): Convert to a flat array.
22155         (preprocess_constraints): Update accordingly, grouping all
22156         operands of the same alternative together, rather than the
22157         other way around.
22158         * ira-lives.c (check_and_make_def_conflict): Likewise.
22159         (make_early_clobber_and_input_conflicts): Likewise.
22160         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22161         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22162         (subst_asm_stack_regs): Likewise.
22163         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22164         * regrename.c (hide_operands, record_out_operands): Likewise.
22165         (build_def_use): Likewise.
22166         * sel-sched.c (get_reg_class): Likewise.
22167         * config/arm/arm.c (note_invalid_constants): Likewise.
22168
22169 2014-06-04  Jason Merrill  <jason@redhat.com>
22170
22171         PR c++/51253
22172         PR c++/61382
22173         * gimplify.c (gimplify_arg): Non-static.
22174         * gimplify.h: Declare it.
22175
22176 2014-06-04  Richard Biener  <rguenther@suse.de>
22177
22178         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22179         TREE_PUBLIC and DECL_EXTERNAL decls.
22180
22181 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
22182
22183         * regcprop.c (copyprop_hardreg_forward_1): Account for
22184         HARD_REGNO_CALL_PART_CLOBBERED.
22185
22186 2014-06-04  Richard Biener  <rguenther@suse.de>
22187
22188         * configure.ac: Check whether the underlying type of int64_t
22189         is long or long long.
22190         * configure: Regenerate.
22191         * config.in: Likewise.
22192         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22193         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22194
22195 2014-06-04  Richard Biener  <rguenther@suse.de>
22196
22197         PR tree-optimization/60098
22198         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22199         we hit a kill.
22200         (dse_optimize_stmt): Simplify, now that we found a kill
22201         earlier.
22202
22203 2014-06-04  Richard Biener  <rguenther@suse.de>
22204
22205         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22206         of accesses with non-invariant address.
22207
22208 2014-06-04  Martin Liska  <mliska@suse.cz>
22209
22210         * cgraph.h (cgraph_make_wrapper): New function introduced.
22211         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22212         * ipa-inline.h (inline_analyze_function): The function is global.
22213         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22214
22215 2014-06-04  Martin Liska  <mliska@suse.cz>
22216
22217         * tree.h (private_lookup_attribute_starting): New function.
22218         (lookup_attribute_starting): Likewise.
22219         * tree.c (private_lookup_attribute_starting): Likewise.
22220
22221 2014-06-04  Martin Liska  <mliska@suse.cz>
22222
22223         * cgraph.h (expand_thunk): New argument added.
22224         (address_taken_from_non_vtable_p): New global function.
22225         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
22226         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
22227         * cgraphunit.c (analyze_function): Likewise.
22228         (assemble_thunks_and_aliases): Argument added to call.
22229         (expand_thunk): New argument forces to produce GIMPLE thunk.
22230
22231 2014-06-04  Martin Liska  <mliska@suse.cz>
22232
22233         * coverage.h (coverage_compute_cfg_checksum): Argument added.
22234         * coverage.c (coverage_compute_cfg_checksum): Likewise.
22235         * profile.c (branch_prob): Likewise.
22236
22237 2014-06-04  Martin Jambor  <mjambor@suse.cz>
22238
22239         PR ipa/61340
22240         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
22241         handler for switch on an ipa_ref_use enum.
22242         * ipa-reference.c (analyze_function): Likewise.
22243
22244 2014-06-04  Kai Tietz  <ktietz@redhat.com>
22245
22246         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
22247         from old call-instruction.
22248
22249 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
22250
22251         * config/aarch64/aarch64.c (aarch64_classify_address)
22252         (aarch64_legitimize_reload_address): Support full addressing modes
22253         for vector modes.
22254         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22255         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22256
22257 2014-06-03  Andrew Pinski  <apinski@cavium.com>
22258
22259         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22260         for OP0.
22261
22262 2014-06-03  Andrew Pinski  <apinski@cavium.com>
22263
22264         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22265         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22266
22267 2014-06-03  Kai Tietz  <ktietz@redhat.com>
22268
22269         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22270         for 64-bit ms-abi.
22271
22272 2014-06-03  Dehao Chen  <dehao@google.com>
22273
22274         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22275         the same loop.
22276
22277 2014-06-03  Marek Polacek  <polacek@redhat.com>
22278
22279         PR c/60439
22280         * doc/invoke.texi: Document -Wswitch-bool.
22281         * function.c (stack_protect_epilogue): Cast controlling expression of
22282         the switch to int.
22283         * gengtype.c (walk_type): Generate switch expression with its
22284         controlling expression cast to int.
22285
22286 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
22287
22288         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22289         and attiny841.
22290         * config/avr/avr-tables.opt: Regenerate.
22291         * config/avr/t-multilib: Regenerate.
22292         * doc/avr-mmcu.texi: Regenerate.
22293
22294 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
22295             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22296
22297         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22298         (ata6617c, ata664251): Add new avr35 devices.
22299         (ata6612c): Add new avr4 device.
22300         (ata6613c, ata6614q): Add new avr5 devices.
22301         * config/avr/avr-tables.opt: Regenerate.
22302         * config/avr/t-multilib: Regenerate.
22303         * doc/avr-mmcu.texi: Regenerate.
22304
22305 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22306
22307         * gcc/config/aarch64/aarch64-builtins.c
22308         (aarch64_types_binop_ssu_qualifiers): New static data.
22309         (TYPES_BINOP_SSU): Define.
22310         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22311         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22312         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22313         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22314         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22315         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22316         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22317         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22318         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22319         suffix to builtin function name, remove cast.
22320         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22321         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22322         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22323
22324 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22325
22326         * gcc/config/aarch64/aarch64-builtins.c
22327         (aarch64_types_binop_uus_qualifiers,
22328         aarch64_types_shift_to_unsigned_qualifiers,
22329         aarch64_types_unsigned_shiftacc_qualifiers): Define.
22330         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22331         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22332         sqshlu_n, uqshl_n): Update qualifiers.
22333         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22334         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22335         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22336         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22337         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22338         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22339         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22340         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22341         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22342         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22343         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22344         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22345         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22346         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22347         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22348         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22349         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22350         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22351         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
22352         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
22353         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
22354         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
22355         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
22356         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
22357         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
22358         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
22359         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
22360
22361 2014-06-03  Teresa Johnson  <tejohnson@google.com>
22362
22363         * tree-sra.c (modify_function): Record caller nodes after rebuild.
22364
22365 2014-06-02  Jason Merrill  <jason@redhat.com>
22366
22367         PR c++/61020
22368         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
22369
22370 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22371
22372         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
22373         location == 0.
22374
22375 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22376
22377         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
22378         New pattern.
22379         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
22380         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
22381         * config/aarch64/iterators.md (REVERSE): New iterator.
22382         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
22383         (rev_op): New int_attribute.
22384         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
22385         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
22386         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
22387         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
22388         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
22389         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
22390         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
22391         Replace temporary __asm__ with __builtin_shuffle.
22392
22393 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
22394
22395         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
22396         mips64r5.
22397         * config/mips/mips-tables.opt: Regenerate.
22398         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
22399         to use mips_isa_rev rather than ISA_MIPS32R2.
22400         * config/mips/mips.h (ISA_MIPS32R3): New define.
22401         (ISA_MIPS32R5): New define.
22402         (ISA_MIPS64R3): New define.
22403         (ISA_MIPS64R5): New define.
22404         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
22405         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
22406         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
22407         and mips64r5.
22408         (MIPS_ISA_SYNCI_SPEC): Likewise.
22409         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
22410         (LINK_SPEC): Added mips32r3 and mips32r5.
22411         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
22412         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
22413         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
22414         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
22415         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
22416         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
22417         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
22418
22419 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
22420
22421         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
22422         options.
22423         * config/mips/mips.opt (mxpa): New option.
22424         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
22425         assembler.
22426
22427 2014-06-03  Martin Jambor  <mjambor@suse.cz>
22428
22429         PR ipa/61160
22430         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
22431         thunks.
22432
22433 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22434
22435         PR tree-optimization/61328
22436         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
22437         initialization from find_bswap_or_nop_1.
22438         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
22439         in source_expr2 before using the size value the function sets. Also
22440         make use of init_symbolic_number () in both the old place and
22441         find_bswap_or_nop_load () to avoid reading uninitialized memory when
22442         doing recursion in the GIMPLE_BINARY_RHS case.
22443
22444 2014-06-03  Richard Biener  <rguenther@suse.de>
22445
22446         PR tree-optimization/61383
22447         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
22448         stmts can't trap.
22449
22450 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
22451
22452         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
22453         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
22454         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
22455         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
22456         in this file.
22457         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
22458         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
22459         * system.h: ...here and make it unconditional.
22460         * target.def (conditional_register_usage): Mention
22461         define_register_constraint instead of old-style constraint macros.
22462         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
22463         * doc/tm.texi: Regenerate.
22464         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
22465         protected by !USE_MD_CONSTRAINTS.
22466         * config/frv/frv.md: Remove quote from old version of documentation.
22467         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
22468         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
22469         CONST_DOUBLE_OK_FOR_LETTER.
22470         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
22471
22472 2014-06-02  Andrew Pinski  <apinski@cavium.com>
22473
22474         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
22475         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
22476         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
22477         file whose name depends on -mabi= and -mbig-endian.
22478         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
22479         Handle LP64 better and handle ilp32 too.
22480         (MULTILIB_OPTIONS): Delete.
22481         (MULTILIB_DIRNAMES): Delete.
22482
22483 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
22484
22485         * expr.h: Remove prototypes of functions defined in builtins.c.
22486         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
22487         Remove prototypes of functions defined in builtins.c.
22488         * builtins.h: Update prototype list to include all exported functions.
22489         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
22490         no_c99_libc_has_function): Move to targhooks.c
22491         (build_string_literal, build_call_expr_loc_array,
22492         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
22493         to tree.c.
22494         (expand_builtin_object_size, fold_builtin_object_size): Make static.
22495         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
22496         no_c99_libc_has_function): Relocate from builtins.c.
22497         * tree.c: Include builtins.h.
22498         (build_call_expr_loc_array, build_call_expr_loc_vec,
22499         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
22500         from builtins.c.
22501         * fold-const.h (fold_fma): Move prototype to builtins.h.
22502         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
22503         * asan.c: Include builtins.h.
22504         * cfgexpand.c: Likewise.
22505         * convert.c: Likewise.
22506         * emit-rtl.c: Likewise.
22507         * except.c: Likewise.
22508         * expr.c: Likewise.
22509         * fold-const.c: Likewise.
22510         * gimple-fold.c: Likewise.
22511         * gimple-ssa-strength-reduction.c: Likewise.
22512         * gimplify.c: Likewise.
22513         * ipa-inline.c: Likewise.
22514         * ipa-prop.c: Likewise.
22515         * lto-streamer-out.c: Likewise.
22516         * stmt.c: Likewise.
22517         * tree-inline.c: Likewise.
22518         * tree-object-size.c: Likewise.
22519         * tree-sra.c: Likewise.
22520         * tree-ssa-ccp.c: Likewise.
22521         * tree-ssa-forwprop.c: Likewise.
22522         * tree-ssa-loop-ivcanon.c: Likewise.
22523         * tree-ssa-loop-ivopts.c: Likewise.
22524         * tree-ssa-math-opts.c: Likewise.
22525         * tree-ssa-reassoc.c: Likewise.
22526         * tree-ssa-threadedge.c: Likewise.
22527         * tree-streamer-in.c: Likewise.
22528         * tree-vect-data-refs.c: Likewise.
22529         * tree-vect-patterns.c: Likewise.
22530         * tree-vect-stmts.c: Likewise.
22531         * config/aarch64/aarch64.c: Likewise.
22532         * config/alpha/alpha.c: Likewise.
22533         * config/arc/arc.c: Likewise.
22534         * config/arm/arm.c: Likewise.
22535         * config/avr/avr.c: Likewise.
22536         * config/bfin/bfin.c: Likewise.
22537         * config/c6x/c6x.c: Likewise.
22538         * config/cr16/cr16.c: Likewise.
22539         * config/cris/cris.c: Likewise.
22540         * config/epiphany/epiphany.c: Likewise.
22541         * config/fr30/fr30.c: Likewise.
22542         * config/frv/frv.c: Likewise.
22543         * config/h8300/h8300.c: Likewise.
22544         * config/i386/i386.c: Likewise.
22545         * config/i386/winnt.c: Likewise.
22546         * config/ia64/ia64.c: Likewise.
22547         * config/iq2000/iq2000.c: Likewise.
22548         * config/lm32/lm32.c: Likewise.
22549         * config/m32c/m32c.c: Likewise.
22550         * config/m32r/m32r.c: Likewise.
22551         * config/m68k/m68k.c: Likewise.
22552         * config/mcore/mcore.c: Likewise.
22553         * config/mep/mep.c: Likewise.
22554         * config/microblaze/microblaze.c: Likewise.
22555         * config/mips/mips.c: Likewise.
22556         * config/mmix/mmix.c: Likewise.
22557         * config/mn10300/mn10300.c: Likewise.
22558         * config/moxie/moxie.c: Likewise.
22559         * config/msp430/msp430.c: Likewise.
22560         * config/nds32/nds32.c: Likewise.
22561         * config/pa/pa.c: Likewise.
22562         * config/pdp11/pdp11.c: Likewise.
22563         * config/picochip/picochip.c: Likewise.
22564         * config/rl78/rl78.c: Likewise.
22565         * config/rs6000/rs6000.c: Likewise.
22566         * config/rx/rx.c: Likewise.
22567         * config/s390/s390.c: Likewise.
22568         * config/score/score.c: Likewise.
22569         * config/sh/sh.c: Likewise.
22570         * config/sparc/sparc.c: Likewise.
22571         * config/spu/spu.c: Likewise.
22572         * config/stormy16/stormy16.c: Likewise.
22573         * config/tilegx/tilegx.c: Likewise.
22574         * config/tilepro/tilepro.c: Likewise.
22575         * config/v850/v850.c: Likewise.
22576         * config/vax/vax.c: Likewise.
22577         * config/xtensa/xtensa.c: Likewise.
22578
22579 2014-06-02  Jeff Law  <law@redhat.com>
22580
22581         PR rtl-optimization/61094
22582         * ree.c (combine_reaching_defs): Do not reextend an insn if it
22583         was marked as do_no_reextend.  If a copy is needed to eliminate
22584         an extension, then mark it as do_not_reextend.
22585
22586 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22587
22588         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
22589
22590 2014-06-02  Richard Henderson  <rth@redhat.com>
22591
22592         PR target/61336
22593         * config/alpha/alpha.c (print_operand_address): Allow symbolic
22594         addresses inside asms.  Use output_operand_lossage instead of
22595         gcc_unreachable.
22596
22597 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
22598
22599         PR target/61239
22600         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22601         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22602
22603 2014-06-02  Tom de Vries  <tom@codesourcery.com>
22604
22605         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22606         case that x has VOIDmode.
22607
22608 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
22609
22610         * varasm.c (copy_constant): Delete function.
22611         (build_constant_desc): Don't call it.
22612
22613 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22614
22615         PR target/61154
22616         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22617         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22618         with immediate_operand.
22619
22620 2014-06-02  Andreas Schwab  <schwab@suse.de>
22621
22622         * config/ia64/ia64.c
22623         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22624         pending_data_specs first.
22625
22626 2014-06-02  Richard Biener  <rguenther@suse.de>
22627
22628         PR tree-optimization/61378
22629         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22630         valueized_anything.
22631
22632 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
22633
22634         * config/i386/constraints.md (Bw): Rename from 'w'.
22635         (Bz): Rename from 'z'.
22636         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22637
22638 2014-06-01  Kai Tietz  <ktietz@redhat.com>
22639
22640         PR target/61377
22641         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22642         * config/i386/i386.md (sibcall_insn_operand): Use Bs
22643         instead of m constraint.
22644
22645 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
22646
22647         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22648         a separate alternative where the scratch operand 2 is marked as
22649         early clobber.
22650
22651 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
22652
22653         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22654         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22655         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22656         and __builtins_arm_get_fpscr.
22657         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22658         __builtins_arm_get_fpscr.
22659         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22660         __builtins_arm_ldfpscr.
22661         (arm_atomic_assign_expand_fenv): New function.
22662         * config/arm/vfp.md (set_fpscr): New pattern.
22663         (get_fpscr) : Likewise.
22664         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22665         VUNSPEC_SET_FPSCR.
22666         * doc/extend.texi (AARCH64 Built-in Functions) : Document
22667         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22668
22669 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
22670
22671         * asan.c (report_error_func): Add SLOW_P argument, use
22672         BUILT_IN_ASAN_*_N if set.
22673         (build_check_stmt): Likewise.
22674         (instrument_derefs): If T has insufficient alignment,
22675         force same handling as for odd sizes.
22676
22677         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22678         BUILT_IN_ASAN_REPORT_STORE_N): New.
22679         * asan.c (struct asan_mem_ref): Change access_size type to
22680         HOST_WIDE_INT.
22681         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22682         update_mem_ref_hash_table): Likewise.
22683         (asan_mem_ref_hasher::hash): Hash in a HWI.
22684         (report_error_func): Change size_in_bytes argument to HWI.
22685         Use *_N builtins if size_in_bytes is larger than 16 or not power of
22686         two.
22687         (build_shadow_mem_access): New function.
22688         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
22689         Handle size_in_bytes not power of two or larger than 16.
22690         (instrument_derefs): Don't give up if size_in_bytes is not
22691         power of two or is larger than 16.
22692
22693 2014-05-30  Kai Tietz  <ktietz@redhat.com>
22694
22695         PR target/60104
22696         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
22697         for sibling-tail-calls.
22698         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
22699         to its use.
22700         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
22701         (sibcall_insn_operand): Add check for sibcall_memory_operand.
22702
22703 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22704
22705         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
22706         * config/avr/avr-tables.opt: Regenerate.
22707         * config/avr/t-multilib: Regenerate.
22708         * doc/avr-mmcu.texi: Regenerate.
22709
22710 2014-05-30  Ian Lance Taylor  <iant@google.com>
22711
22712         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
22713         target("sse").
22714
22715 2014-05-30  Tom de Vries  <tom@codesourcery.com>
22716
22717         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22718         Redefine as true.
22719
22720 2014-05-30  Tom de Vries  <tom@codesourcery.com>
22721
22722         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22723         * lra.c (initialize_lra_reg_info_element): Add init of
22724         actual_call_used_reg_set field.
22725         (lra): Call lra_create_live_ranges before lra_inheritance for
22726         -fuse-caller-save.
22727         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22728         -fuse-caller-save.
22729         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22730         instead of call_used_reg_set for -fuse-caller-save.
22731         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22732
22733 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22734
22735         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22736         to mov_imm.
22737         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22738
22739 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
22740
22741         * ira.c (ira_get_dup_out_num): Check for output operands at
22742         the start of the loop.  Handle cases where an included alternative
22743         follows an excluded one.
22744
22745 2014-05-29  Mike Stump  <mikestump@comcast.net>
22746
22747         PR debug/61352
22748         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
22749         post ld passes when lto is used.
22750
22751 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
22752
22753         PR rtl-optimization/61325
22754         * lra-constraints.c (process_address): Rename to process_address_1.
22755         (process_address): New function.
22756
22757 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
22758
22759         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
22760         TYPES_BINOPV): New static data.
22761         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
22762         New builtin.
22763         * config/aarch64/aarch64-simd.md (aarch64_ext,
22764         aarch64_im_lane_boundsi): New patterns.
22765         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
22766         patterns for EXT.
22767         (aarch64_evpc_ext): New function.
22768
22769         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
22770
22771         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
22772         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
22773         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
22774         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
22775         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
22776
22777 2014-05-29  Tom de Vries  <tom@codesourcery.com>
22778
22779         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
22780
22781 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
22782             Richard Sandiford  <rdsandiford@googlemail.com>
22783
22784         * arm/iterators.md (shiftable_ops): New code iterator.
22785         (t2_binop0, arith_shift_insn): New code attributes.
22786         * arm/predicates.md (shift_nomul_operator): New predicate.
22787         * arm/arm.md (insn_enabled): Delete.
22788         (enabled): Remove insn_enabled test.
22789         (*arith_shiftsi): Delete.  Replace with ...
22790         (*<arith_shift_insn>_multsi): ... new pattern.
22791         (*<arith_shift_insn>_shiftsi): ... new pattern.
22792         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
22793
22794 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
22795             Tom de Vries  <tom@codesourcery.com>
22796
22797         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
22798         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
22799         clobber.
22800         (mips_split_call): Use POST_CALL_TMP_REG.
22801         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
22802
22803 2014-05-29  Tom de Vries  <tom@codesourcery.com>
22804
22805         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
22806         with #ifdef STACK_REGS.
22807
22808 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
22809
22810         * varasm.c (get_variable_section): Walk aliases.
22811         (place_block_symbol): Walk aliases.
22812
22813 2014-05-28  Tom de Vries  <tom@codesourcery.com>
22814
22815         Revert:
22816         2014-05-28  Tom de Vries  <tom@codesourcery.com>
22817
22818         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22819         * lra.c (initialize_lra_reg_info_element): Add init of
22820         actual_call_used_reg_set field.
22821         (lra): Call lra_create_live_ranges before lra_inheritance for
22822         -fuse-caller-save.
22823         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22824         -fuse-caller-save.
22825         * lra-constraints.c (need_for_call_save_p): Use
22826         actual_call_used_reg_set instead of call_used_reg_set for
22827         -fuse-caller-save.
22828         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22829
22830 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
22831
22832         * doc/md.texi: Document that the % constraint character must
22833         be at the beginning of the string.
22834         * genoutput.c (validate_insn_alternatives): Check that '=',
22835         '+' and '%' only appear at the beginning of a constraint.
22836         * ira.c (commutative_constraint_p): Delete.
22837         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
22838         at the start of the string.
22839         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
22840         duplicate '='s.
22841         * config/arm/neon.md (bicdi3_neon): Likewise.
22842         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
22843         (slt_si, sltu_si): Likewise.
22844         * config/vax/vax.md (sbcdi3): Likewise.
22845         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
22846         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
22847         (mul64): Move '%' to beginning of constraint.
22848         * config/arm/arm.md (*xordi3_insn): Likewise.
22849         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
22850         (xorsi3): Likewise.
22851
22852 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
22853
22854         * doc/md.texi: Document the restrictions on the "enabled" attribute.
22855
22856 2014-05-28  Jason Merrill  <jason@redhat.com>
22857
22858         PR c++/47202
22859         * cgraph.h (symtab_node::get_comdat_group_id): New.
22860         * cgraphunit.c (analyze_functions): Call it.
22861         * symtab.c (dump_symtab_node): Likewise.
22862         * tree.c (decl_comdat_group_id): New.
22863         * tree.h: Declare it.
22864         * lto-streamer-out.c (write_symbol): Use it.
22865         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
22866
22867 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
22868
22869         PR bootstrap/PR61146
22870         * wide-int.cc: Do not include longlong.h when compiling with clang.
22871
22872 2014-05-28  Richard Biener  <rguenther@suse.de>
22873
22874         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
22875         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
22876         (vrp_visit_assignment_or_call): Print less vertical space.
22877         (vrp_visit_stmt): Likewise.
22878         (vrp_visit_phi_node): Likewise.  For a PHI argument with
22879         VR_VARYING range consider recording it as copy.
22880
22881 2014-05-28  Richard Biener  <rguenther@suse.de>
22882
22883         Revert
22884         2014-05-28  Richard Biener  <rguenther@suse.de>
22885
22886         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22887
22888 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22889
22890         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
22891         sufficiently aligned and an offset is used at the same time.
22892         (expand_expr_real_1): Likewise.
22893
22894 2014-05-28  Richard Biener  <rguenther@suse.de>
22895
22896         PR middle-end/61045
22897         * fold-const.c (fold_comparison): When folding
22898         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
22899         the sign of the remaining constant operand stays the same.
22900
22901 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
22902
22903         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
22904         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
22905         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
22906         to the assembler.
22907         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
22908         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
22909         (m32bit-doubles) Likewise.
22910         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
22911         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
22912         option for RL78.
22913
22914 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22915
22916         * configure.ac ($gcc_cv_ld_clearcap): New test.
22917         * configure: Regenerate.
22918         * config.in: Regenerate.
22919         * config/sol2.opt (mclear-hwcap): New option.
22920         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
22921         * config/sol2-clearcap.map: Moved here from
22922         testsuite/gcc.target/i386/clearcap.map.
22923         * config/sol2-clearcapv2.map: Move here from
22924         gcc.target/i386/clearcapv2.map.
22925         * config/t-sol2 (install): Depend on install-clearcap-map.
22926         (install-clearcap-map): New target.
22927         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
22928         -mclear-hwcap.
22929
22930 2014-05-28  Richard Biener  <rguenther@suse.de>
22931
22932         * hwint.h (*_HALF_WIDE_INT*): Move to ...
22933         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
22934         ... here and remove the rest.
22935         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22936
22937 2014-05-28  Richard Biener  <rguenther@suse.de>
22938
22939         PR tree-optimization/61335
22940         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
22941         new range fails, drop to varying.
22942
22943 2014-05-28  Olivier Hainque  <hainque@adacore.com>
22944
22945         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
22946         (CPP_SPEC): Add entry for -mcpu=8548.
22947         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
22948         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
22949
22950 2014-05-28  Tom de Vries  <tom@codesourcery.com>
22951
22952         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22953         * lra.c (initialize_lra_reg_info_element): Add init of
22954         actual_call_used_reg_set field.
22955         (lra): Call lra_create_live_ranges before lra_inheritance for
22956         -fuse-caller-save.
22957         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22958         -fuse-caller-save.
22959         * lra-constraints.c (need_for_call_save_p): Use
22960         actual_call_used_reg_set instead of call_used_reg_set for
22961         -fuse-caller-save.
22962         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22963
22964 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22965             Tom de Vries  <tom@codesourcery.com>
22966
22967         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
22968         to gccoptlist.
22969         (@item -fuse-caller-save): New item.
22970
22971 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22972             Tom de Vries  <tom@codesourcery.com>
22973
22974         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
22975         OPT_fuse_caller_save.
22976
22977 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
22978             Tom de Vries  <tom@codesourcery.com>
22979
22980         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
22981         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
22982         get_call_reg_set_usage.
22983         * resource.c (mark_set_resources, mark_target_live_regs): Use
22984         get_call_reg_set_usage.
22985         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
22986         field.
22987         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
22988         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
22989         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22990         * ira-build.c (ira_create_allocno): Init
22991         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22992         (create_cap_allocno, propagate_allocno_info)
22993         (propagate_some_info_from_allocno)
22994         (copy_info_to_removed_store_destinations): Handle
22995         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22996         * ira-costs.c (ira_tune_allocno_costs): Use
22997         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
22998
22999 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23000             Tom de Vries  <tom@codesourcery.com>
23001
23002         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23003         and function_used_regs_valid fields.
23004         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23005         find_all_hard_reg_sets.
23006         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23007         (get_call_reg_set_usage): New function.
23008         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23009         * regs.h (get_call_reg_set_usage): Declare.
23010
23011 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23012
23013         PR libgcc/61152
23014         * config/dbx.h (License): Add Runtime Library Exception.
23015         * config/newlib-stdint.h (License): Same.
23016         * config/rtems.h (License): Same
23017         * config/initfini-array.h (License): Same
23018         * config/v850/v850.h (License): Same.
23019         * config/v850/v850-opts.h (License): Same
23020         * config/v850/rtems.h (License): Same.
23021
23022 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23023
23024         PR target/61044
23025         * doc/extend.texi (Local Labels): Note that label differences are
23026         not supported for AVR.
23027
23028 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23029             Olivier Hainque  <hainque@adacore.com>
23030
23031         * rtl.h (set_for_reg_notes): Declare.
23032         * emit-rtl.c (set_for_reg_notes): New function.
23033         (set_unique_reg_note): Use it.
23034         * optabs.c (add_equal_note): Likewise
23035
23036 2014-05-27  Andrew Pinski  <apinski@cavium.com>
23037
23038         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23039         Use <w> for the register in assembly template.
23040         (stack_protect_test): Use the mode of operands[0] for the result.
23041         (stack_protect_test_<mode>): Use <w> for the register
23042         in assembly template.
23043
23044 2014-05-27  DJ Delorie  <dj@redhat.com>
23045
23046         * config/rx/rx.c (add_vector_labels): New.
23047         (rx_output_function_prologue): Call it.
23048         (rx_handle_func_attribute): Don't require empty arguments.
23049         (rx_handle_vector_attribute): New.
23050         (rx_attribute_table): Add "vector" attribute.
23051         * doc/extend.texi (interrupt, vector): Document new/changed
23052         RX-specific attributes.
23053
23054         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23055
23056 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23057
23058         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23059         predicate to detect a negative quotient.
23060
23061 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23062
23063         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23064         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23065         Add X - Y CMP 0 to X CMP Y transformation.
23066         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23067
23068 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
23069
23070         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23071         before printing.
23072
23073 2014-05-27  Steve Ellcey  <sellcey@mips.com>
23074
23075         * config/mips/mips.c: Add include of cgraph.h.
23076
23077 2014-05-27  Richard Biener  <rguenther@suse.de>
23078
23079         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23080
23081 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23082
23083         PR libgcc/61152
23084         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23085         * config/arm/arm-cores.def (License): Same.
23086         * config/arm/arm-opts.h (License): Same.
23087         * config/arm/aout.h (License): Same.
23088         * config/arm/bpabi.h (License): Same.
23089         * config/arm/elf.h (License): Same.
23090         * config/arm/linux-elf.h (License): Same.
23091         * config/arm/linux-gas.h (License): Same.
23092         * config/arm/netbsd-elf.h (License): Same.
23093         * config/arm/uclinux-eabi.h (License): Same.
23094         * config/arm/uclinux-elf.h (License): Same.
23095         * config/arm/vxworks.h (License): Same.
23096
23097 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23098
23099         * config/arm/neon.md (neon_bswap<mode>): New pattern.
23100         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23101         (arm_init_neon_builtins): Handle NEON_BSWAP.
23102         Define required type nodes.
23103         (arm_expand_neon_builtin): Handle NEON_BSWAP.
23104         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23105         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23106         * config/arm/iterators.md (VDQHSD): New mode iterator.
23107
23108 2014-05-27  Richard Biener  <rguenther@suse.de>
23109
23110         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23111         Try using literal operands when comparing value-ranges failed.
23112
23113 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23114
23115         * ira.c (commutative_operand): Adjust for change to recog_data.
23116         [Missing from previous commit.]
23117
23118 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23119
23120         * system.h (TEST_BIT): New macro.
23121         * recog.h (alternative_mask): New type.
23122         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23123         (recog_data_d): Replace alternative_enabled_p array with
23124         enabled_alternatives.
23125         (target_recog): New structure.
23126         (default_target_recog, this_target_recog): Declare.
23127         (get_enabled_alternatives, recog_init): Likewise.
23128         * recog.c (default_target_recog, this_target_recog): New variables.
23129         (get_enabled_alternatives): New function.
23130         (extract_insn): Use it.
23131         (recog_init): New function.
23132         (preprocess_constraints, constrain_operands): Adjust for change to
23133         recog_data.
23134         * postreload.c (reload_cse_simplify_operands): Likewise.
23135         * reload.c (find_reloads): Likewise.
23136         * ira-costs.c (record_reg_classes): Likewise.
23137         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
23138         all alternatives after a disabled one would be skipped.
23139         (ira_implicitly_set_insn_hard_regs): Likewise.
23140         * ira.c (ira_setup_alts): Adjust for change to recog_data.
23141         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23142         with enabled_alternatives.
23143         * lra.c (free_insn_recog_data): Update accordingly.
23144         (lra_update_insn_recog_data): Likewise.
23145         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
23146         * lra-constraints.c (process_alt_operands): Likewise.  Handle
23147         only_alternative as part of the enabled mask.
23148         * target-globals.h (this_target_recog): Declare.
23149         (target_globals): Add a recog field.
23150         (restore_target_globals): Restore this_target_recog.
23151         * target-globals.c: Include recog.h.
23152         (default_target_globals): Initialize recog field.
23153         (save_target_globals): Likewise.
23154         * reginfo.c (reinit_regs): Call recog_init.
23155         * toplev.c (backend_init_target): Likewise.
23156
23157 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23158
23159         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23160         rather than any named insn's code.
23161
23162 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23163
23164         PR libgcc/61152
23165         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23166         * config/arm/arm-cores.def (License): Same.
23167
23168 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
23169
23170         * tree.h (decl_comdat_group): Declare.
23171         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23172         * tree.c (decl_comdat_group): Here.
23173
23174 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
23175
23176         PR rtl-optimization/61222
23177         * combine.c (simplify_shift_const_1): When moving a PLUS outside
23178         the shift, truncate the PLUS operand to the result mode.
23179
23180 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
23181
23182         PR target/61271
23183         * config/i386/i386.c (ix86_rtx_costs)
23184         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23185         Fix condition.
23186
23187 2014-05-26  Martin Jambor  <mjambor@suse.cz>
23188
23189         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23190         subreg uses.
23191
23192 2014-05-26  Richard Biener  <rguenther@suse.de>
23193
23194         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23195         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23196         Provide specializations.
23197         (wi::int_traits <HOST_WIDE_INT>,
23198         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23199
23200 2014-05-26  Alan Modra  <amodra@gmail.com>
23201
23202         PR target/61098
23203         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23204         params and return a bool.  Remove dead code.  Update comment.
23205         Assert we have a const_int source.  Remove bogus code from
23206         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
23207         handling of constants > 2G and reg_equal note, from..
23208         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
23209         return value.  Update comment.  If we can, use a new pseudo
23210         for intermediate calculations.
23211         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23212         prototype.
23213         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23214         call to rs6000_emit_set_const in splitter.
23215         (movdi_internal64+2, +3): Likewise.
23216
23217 2014-05-26  Richard Biener  <rguenther@suse.de>
23218
23219         * system.h: Define __STDC_FORMAT_MACROS before
23220         including inttypes.h.
23221         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
23222         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
23223         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
23224         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
23225         HOST_WIDEST_INT_C): Remove.
23226         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
23227         if C99 inttypes.h is not available.
23228         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
23229         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
23230         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
23231         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
23232         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
23233         (struct output_info): Likewise.
23234         (print_statistics): Adjust.
23235         (dump_bitmap_statistics): Likewise.
23236         * bt-load.c (migrate_btr_defs): Print with PRId64.
23237         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
23238         (MAX_SAFE_MULTIPLIER): Adjust.
23239         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
23240         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
23241         dump_cgraph_node): Likewise.
23242         * final.c (dump_basic_block_info): Likewise.
23243         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
23244         * gcov.c (format_gcov): Likewise.
23245         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
23246         for calculation.
23247         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
23248         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
23249         (inline_small_functions, dump_overall_stats, dump_inline_stats):
23250         Use PRId64 for dumping.
23251         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
23252         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23253         (add_allocno_hard_regs): Adjust.
23254         * loop-doloop.c (doloop_modify): Print using PRId64.
23255         * loop-iv.c (inverse): Compute in uint64_t.
23256         (determine_max_iter, iv_number_of_iterations): Likewise.
23257         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23258         Print using PRId64.
23259         * lto-streamer-out.c (write_symbol): Use uint64_t.
23260         * mcf.c (CAP_INFINITY): Use int64_t maximum.
23261         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23262         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23263         * modulo-sched.c (const_iteration_count): Use int64_t.
23264         (sms_schedule): Dump using PRId64.
23265         * predict.c (dump_prediction): Likewise.
23266         * pretty-print.h (pp_widest_integer): Remove.
23267         * profile.c (get_working_sets, is_edge_inconsistent,
23268         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23269         * tree-pretty-print.c (pp_double_int): Remove case handling
23270         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23271         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23272         and adjust users.
23273         (pass_optimize_bswap::execute): Remove restriction on hosts.
23274         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23275         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23276         * tree.c (widest_int_cst_value): Remove.
23277         * tree.h (widest_int_cst_value): Likewise.
23278         * value-prof.c (dump_histogram_value): Print using PRId64.
23279         * gengtype.c (main): Also inject int64_t.
23280         * ggc-page.c (struct max_alignment): Use int64_t.
23281         * alloc-pool.c (struct allocation_object_def): Likewise.
23282         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23283         for computation.
23284         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23285         * doc/tm.texi: Regenerated.
23286         * gengtype-lex.l (IWORD): Handle [u]int64_t.
23287         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23288         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23289         mmix_output_register_setting): Use [u]int64_t in prototypes.
23290         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23291         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23292         mmix_output_octa, mmix_output_shifted_value): Adjust.
23293         (mmix_intval): Adjust.  Remove unreachable case.
23294         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23295
23296 2014-05-26  Richard Biener  <rguenther@suse.de>
23297
23298         * configure.ac: Drop __int64 type check.  Insist that we
23299         found uint64_t and int64_t.
23300         * hwint.h (HOST_BITS_PER___INT64): Remove.
23301         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23302         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23303         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23304         (HOST_WIDEST_FAST_INT): Remove __int64 case.
23305         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23306         for dst_q_src_df_rms_cdt.
23307         * configure: Regenerate.
23308         * config.in: Likewise.
23309
23310 2014-05-26  Michael Tautschnig  <mt@debian.org>
23311
23312         PR target/61249
23313         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23314         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23315
23316 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23317
23318         PR rtl-optimization/61278
23319         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23320
23321 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23322
23323         PR rtl-optimization/61220
23324         Part of PR rtl-optimization/61225
23325         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23326         insn; skip split_edge for a block with only one successor.
23327
23328 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23329
23330         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23331         for variables.
23332
23333 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23334
23335         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23336         (update_vtable_references): New function.
23337         (function_and_variable_visibility): Rewrite also vtable initializers.
23338         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23339
23340 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23341
23342         * ggc.h (ggc_grow): New function.
23343         * ggc-none.c (ggc_grow): New function.
23344         * ggc-page.c (ggc_grow): Likewise.
23345
23346 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23347
23348         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23349         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23350         comdat_can_be_unshared_p, cgraph_externally_visible_p,
23351         varpool_externally_visible_p, can_replace_by_local_alias,
23352         update_visibility_by_resolution_info, function_and_variable_visibility,
23353         pass_data_ipa_function_and_variable_visibility,
23354         make_pass_ipa_function_and_variable_visibility,
23355         whole_program_function_and_variable_visibility,
23356         pass_data_ipa_whole_program_visibility,
23357         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
23358         * cgraph.h (cgraph_local_node_p): Declare.
23359         * ipa-visibility.c: New file.
23360         * Makefile.in (OBJS): Add ipa-visiblity.o
23361
23362 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23363
23364         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
23365         that var decl is available.
23366
23367 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23368
23369         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
23370         symtab_node pointer.
23371         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
23372         (find_decls_types_r): Do not walk COMDAT_GROUP.
23373         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
23374         * varasm.c (make_decl_one_only): Use set_comdat_group;
23375         create node if needed.
23376         * ipa-inline-transform.c (save_inline_function_body): Update
23377         way we decl->symtab mapping.
23378         * symtab.c (symtab_hash, hash_node, eq_node
23379         symtab_insert_node_to_hashtable): Remove.
23380         (symtab_register_node): Update.
23381         (symtab_unregister_node): Update.
23382         (symtab_get_node): Reimplement as inline function.
23383         (symtab_add_to_same_comdat_group): Update.
23384         (symtab_dissolve_same_comdat_group_list): Update.
23385         (dump_symtab_base): Update.
23386         (verify_symtab_base): Update.
23387         (symtab_make_decl_local): Update.
23388         (fixup_same_cpp_alias_visibility): Update.
23389         (symtab_nonoverwritable_alias): Update.
23390         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
23391         * ipa.c (update_visibility_by_resolution_info): UPdate.
23392         * bb-reorder.c: Include cgraph.h
23393         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
23394         with comdat groups.
23395         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
23396         * cgraph.c (cgraph_get_create_node): Update.
23397         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
23398         and comdat_group_.
23399         (symtab_get_node): Make inline.
23400         (symtab_insert_node_to_hashtable): Remove.
23401         (symtab_can_be_discarded): Update.
23402         (decl_comdat_group): New function.
23403         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
23404         Update.
23405         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
23406         comdat group name.
23407         (read_comdat_group): New function.
23408         (input_node, input_varpool_node): Use it.
23409         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
23410         comdat groups.
23411         * mips.c (mips_start_unique_function): Likewise.
23412         (ix86_code_end): Likewise.
23413         (rs6000_code_end): Likweise.
23414         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
23415
23416 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23417
23418         * gengtype-state.c (fatal_reading_state): Bring offline.
23419         * optabs.c (widening_optab_handler): Bring offline.
23420         * optabs.h (widening_optab_handler): Likewise.
23421         * final.c (get_attr_length_1): Likewise.
23422
23423 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23424
23425         * sched-int.h (sd_iterator_cond): Manually tail recurse.
23426
23427 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23428
23429         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
23430         (ppc440-compare): Include shift with dot.
23431         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
23432         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
23433         without dot.
23434         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
23435         without dot.
23436         (e6500_sfx2): Include it.
23437         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
23438         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
23439         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
23440         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
23441         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
23442         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
23443         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
23444         *lshiftrt_internal1le, *lshiftrt_internal1be,
23445         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
23446         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
23447         *rotldi3_internal10le, *rotldi3_internal10be,
23448         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
23449         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
23450         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
23451         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
23452         define_insns): Use type "shift" in the appropriate alternatives.
23453
23454 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23455
23456         * config/rs6000/rs6000.md (type): Add "logical".  Delete
23457         "fast_compare".
23458         (dot): Adjust comment.
23459         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
23460         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
23461         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
23462         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
23463         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
23464         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
23465         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
23466         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23467
23468         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23469         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23470         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23471         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23472         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23473         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23474         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23475         * config/rs6000/8540.md (ppc8540_su): Adjust.
23476         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23477         cell-cmp-microcoded): Adjust.
23478         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23479         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23480         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23481         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23482         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23483         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23484         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23485         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23486         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23487         Adjust.
23488         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23489         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
23490         Adjust.  Adjust comment.
23491         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23492         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23493
23494 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23495
23496         * config/rs6000/rs6000.md (type): Add "add".
23497         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
23498         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
23499         define_insns): Use it.
23500         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23501
23502         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23503         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23504         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23505         * config/rs6000/601.md (ppc601-integer): Adjust.
23506         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23507         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23508         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23509         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23510         * config/rs6000/8540.md (ppc8540_su): Adjust.
23511         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23512         cell-cmp-microcoded): Adjust.
23513         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23514         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23515         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23516         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23517         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23518         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23519         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23520         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23521         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23522         Adjust.
23523         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23524         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
23525         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23526         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23527
23528 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23529
23530         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
23531         "delayed_compare", "var_delayed_compare".
23532         (var_shift): New attribute.
23533         (cell_micro): Adjust.
23534         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
23535         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
23536         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
23537         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23538         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23539         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23540         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23541         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
23542         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
23543         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23544         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
23545         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
23546         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
23547         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
23548         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
23549         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
23550         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
23551         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
23552         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
23553         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
23554         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
23555         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
23556         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
23557         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23558         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23559
23560         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23561         * config/rs6000/440.md (ppc440-integer): Adjust.
23562         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23563         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
23564         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23565         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23566         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23567         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23568         * config/rs6000/8540.md (ppc8540_su): Adjust.
23569         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23570         cell-cmp-microcoded): Adjust.
23571         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
23572         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23573         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
23574         e500mc64_delayed): Adjust.
23575         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
23576         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
23577         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23578         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
23579         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
23580         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
23581         power6-delayed-compare, power6-var-delayed-compare): Adjust.
23582         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
23583         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
23584         Adjust comment.
23585         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23586         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23587
23588 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23589
23590         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
23591         (bits): New mode_attr.
23592         (idiv_ldiv): Delete mode_attr.
23593         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
23594         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23595         rs6000_adjust_priority, is_nonpipeline_insn,
23596         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23597
23598         * config/rs6000/40x.md (ppc403-idiv): Adjust.
23599         * config/rs6000/440.md (ppc440-idiv): Adjust.
23600         * config/rs6000/476.md (ppc476-idiv): Adjust.
23601         * config/rs6000/601.md (ppc601-idiv): Adjust.
23602         * config/rs6000/603.md (ppc603-idiv): Adjust.
23603         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23604         ppc620-ldiv): Adjust.
23605         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23606         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23607         * config/rs6000/8540.md (ppc8540_divide): Adjust.
23608         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23609         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23610         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23611         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23612         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23613         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23614         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23615         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23616         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23617         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23618         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23619         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23620         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23621         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23622         * config/rs6000/titan.md (titan_fxu_div): Adjust.
23623
23624 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23625
23626         * config/rs6000/rs6000.md (type): Delete "insert_word",
23627         "insert_dword".  Add "insert".
23628         (size): Update comment.
23629         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23630         insn_must_be_first_in_group): Adjust.
23631         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23632         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23633         *insvsi_internal6, insvdi_internal): Adjust.
23634
23635         * config/rs6000/40x.md (ppc403-integer): Adjust.
23636         * config/rs6000/440.md (ppc440-integer): Adjust.
23637         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23638         * config/rs6000/601.md (ppc601-integer): Adjust.
23639         * config/rs6000/603.md (ppc603-integer): Adjust.
23640         * config/rs6000/6xx.md (ppc604-integer): Adjust.
23641         * config/rs6000/7450.md (ppc7450-integer): Adjust.
23642         * config/rs6000/7xx.md (ppc750-integer): Adjust.
23643         * config/rs6000/8540.md (ppc8540_su): Adjust.
23644         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23645         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23646         * config/rs6000/e500mc.md (e500mc_su): Adjust.
23647         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23648         * config/rs6000/e5500.md (e5500_sfx): Adjust.
23649         * config/rs6000/e6500.md (e6500_sfx): Adjust.
23650         * config/rs6000/mpc.md (mpccore-integer): Adjust.
23651         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23652         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23653         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23654         * config/rs6000/power7.md (power7-integer): Adjust.
23655         * config/rs6000/power8.md (power8-1cyc): Adjust.
23656         * config/rs6000/rs64.md (rs64a-integer): Adjust.
23657         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23658
23659 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23660
23661         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
23662         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23663         (size): New attribute.
23664         (dot): New attribute.
23665         (cell_micro): Adjust.
23666         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23667         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23668         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23669         umuldi3_highpart): Adjust.
23670         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23671         rs6000_adjust_priority, is_nonpipeline_insn,
23672         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23673
23674         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23675         ppc405-imul3): Adjust.
23676         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23677         * config/rs6000/476.md (ppc476-imul): Adjust.
23678         * config/rs6000/601.md (ppc601-imul): Adjust.
23679         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23680         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23681         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23682         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23683         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23684         Adjust.
23685         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23686         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23687         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23688         cell-imul): Adjust.
23689         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23690         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23691         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23692         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23693         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23694         * config/rs6000/mpc.md (mpccore-imul): Adjust.
23695         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23696         power4-lmul, power4-imul, power4-imul3): Adjust.
23697         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
23698         power5-lmul, power5-imul, power5-imul3): Adjust.
23699         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
23700         power6-lmul, power6-imul, power6-imul3): Adjust.
23701         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
23702         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
23703
23704         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
23705         rs64a-lmul): Adjust.
23706         * config/rs6000/titan.md (titan_imul): Adjust.
23707
23708 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23709
23710         * config/rs6000/rs6000.md (type): Add new value "halfmul".
23711         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
23712         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
23713         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
23714         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
23715         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23716         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23717         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23718         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23719         * config/rs6000/titan.md: Delete nonsensical comment.
23720         (titan_imul): Add type imul3.
23721         (titan_mulhw): Remove type imul3; add type halfmul.
23722
23723 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
23724
23725         * config/rs6000/rs6000.md (type): Reorder, reformat.
23726
23727 2014-05-23  Martin Jambor  <mjambor@suse.cz>
23728
23729         PR tree-optimization/53787
23730         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23731         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23732         analysis_done, update all uses.
23733         * ipa-prop.c: Include domwalk.h
23734         (param_analysis_info): Removed.
23735         (param_aa_status): New type.
23736         (ipa_bb_info): Likewise.
23737         (func_body_info): Likewise.
23738         (ipa_get_bb_info): New function.
23739         (aa_overwalked): Likewise.
23740         (find_dominating_aa_status): Likewise.
23741         (parm_bb_aa_status_for_bb): Likewise.
23742         (parm_preserved_before_stmt_p): Changed to use new param AA info.
23743         (load_from_unmodified_param): Accept func_body_info as a parameter
23744         instead of parms_ainfo.
23745         (parm_ref_data_preserved_p): Changed to use new param AA info.
23746         (parm_ref_data_pass_through_p): Likewise.
23747         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
23748         (compute_complex_assign_jump_func): Changed to use new param AA info.
23749         (compute_complex_ancestor_jump_func): Likewise.
23750         (ipa_compute_jump_functions_for_edge): Likewise.
23751         (ipa_compute_jump_functions): Removed.
23752         (ipa_compute_jump_functions_for_bb): New function.
23753         (ipa_analyze_indirect_call_uses): Likewise, moved variable
23754         declarations down.
23755         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
23756         and info, moved variable declarations down.
23757         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
23758         node and info.
23759         (ipa_analyze_stmt_uses): Likewise.
23760         (ipa_analyze_params_uses): Removed.
23761         (ipa_analyze_params_uses_in_bb): New function.
23762         (ipa_analyze_controlled_uses): Likewise.
23763         (free_ipa_bb_info): Likewise.
23764         (analysis_dom_walker): New class.
23765         (ipa_analyze_node): Handle node-specific forbidden analysis,
23766         initialize and free func_body_info, use dominator walker.
23767         (ipcp_modif_dom_walker): New class.
23768         (ipcp_transform_function): Create and free func_body_info, use
23769         ipcp_modif_dom_walker, moved a lot of functionality there.
23770
23771 2014-05-23  Marek Polacek  <polacek@redhat.com>
23772             Jakub Jelinek  <jakub@redhat.com>
23773
23774         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
23775         * gcc.c (sanitize_spec_function): Likewise.
23776         * convert.c (convert_to_integer): Include "ubsan.h".  Add
23777         floating-point to integer instrumentation.
23778         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
23779         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
23780         SANITIZE_NONDEFAULT.
23781         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
23782         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
23783         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
23784         * ubsan.c: Include "realmpfr.h" and "dfp.h".
23785         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
23786         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
23787         float/double/long double.
23788         (ubsan_instrument_float_cast): New function.
23789         * ubsan.h (ubsan_instrument_float_cast): Declare.
23790
23791 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
23792
23793         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
23794         predicate.
23795         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
23796         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
23797         Adjust for tailcalling through registers.
23798         * config/aarch64/aarch64.h (enum reg_class): New caller save
23799         register class.
23800         (REG_CLASS_NAMES): Likewise.
23801         (REG_CLASS_CONTENTS): Likewise.
23802         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
23803         Allow tailcalling without decls.
23804
23805 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
23806
23807         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23808         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
23809
23810         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
23811         gsi, and variables v_* to v*.
23812
23813 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
23814
23815         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
23816
23817 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
23818
23819         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
23820         * omp-low.c: Update accordingly.
23821
23822         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
23823         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
23824         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
23825         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
23826         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
23827         GF_OMP_TARGET_KIND_UPDATE.
23828
23829         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23830         Explicitly enumerate the expected region types.
23831
23832 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23833
23834         PR other/56955
23835         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
23836         documentation; the old documentation didn't clearly state the
23837         constraints on the contents of the pointed-to storage.
23838
23839 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23840
23841         Fix bootstrap error on ia64
23842         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
23843         Return default value.
23844
23845 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23846
23847         PR tree-optimization/54733
23848         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
23849         (CMPNOP): Define.
23850         (find_bswap_or_nop_load): New.
23851         (find_bswap_1): Renamed to ...
23852         (find_bswap_or_nop_1): This. Also add support for memory source.
23853         (find_bswap): Renamed to ...
23854         (find_bswap_or_nop): This. Also add support for memory source and
23855         detection of bitwise operations equivalent to load in target
23856         endianness.
23857         (execute_optimize_bswap): Likewise. Also move its leading comment back
23858         in place and split statement transformation into ...
23859         (bswap_replace): This.
23860
23861 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
23862
23863         PR rtl-optimization/61215
23864         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
23865         simplify_gen_subreg until final substitution.
23866
23867 2014-05-23  Alan Modra  <amodra@gmail.com>
23868
23869         PR target/61231
23870         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
23871         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
23872         Use "Y" constraint rather than "m".
23873
23874 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
23875
23876         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
23877         define.
23878         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
23879         New function declaration.
23880         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
23881         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
23882         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
23883         (aarch64_init_builtins) : Initialize builtins
23884         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23885         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23886         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
23887         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
23888         and __builtins_aarch64_set_fpsr.
23889         (aarch64_atomic_assign_expand_fenv): New function.
23890         * config/aarch64/aarch64.md (set_fpcr): New pattern.
23891         (get_fpcr) : Likewise.
23892         (set_fpsr) : Likewise.
23893         (get_fpsr) : Likewise.
23894         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
23895         and UNSPECV_SET_FPSR.
23896         * doc/extend.texi (AARCH64 Built-in Functions) : Document
23897         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23898         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23899
23900 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
23901
23902         PR rtl-optimization/60969
23903         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
23904         constraints.  Set up mem cost for NO_REGS case.
23905
23906 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
23907
23908         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
23909
23910 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
23911
23912         * config/darwin.c: Include "lto-section-names.h".
23913         (LTO_SEGMENT_NAME): Don't define.
23914         * config/i386/winnt.c: Include "lto-section-names.h".
23915         * lto-streamer.c: Include "lto-section-names.h".
23916         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
23917         * lto-wrapper.c: Include "lto-section-names.h".
23918         (LTO_SECTION_NAME_PREFIX): Don't define.
23919         * lto-section-names.h: New file.
23920         * cgraphunit.c: Include "lto-section-names.h".
23921
23922 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
23923
23924         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
23925
23926 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
23927
23928         PR target/61208
23929         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
23930
23931 2014-05-22  Nick Clifton  <nickc@redhat.com>
23932
23933         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
23934
23935 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
23936
23937         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
23938         -> (T)A transformation to integer types.
23939
23940 2014-05-22  Teresa Johnson  <tejohnson@google.com>
23941
23942         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
23943         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
23944         (gcov_rewrite): Use gcov_nonruntime_assert.
23945         (gcov_open): Ditto.
23946         (gcov_write_words): Ditto.
23947         (gcov_write_length): Ditto.
23948         (gcov_read_words): Use gcov_nonruntime_assert, and remove
23949         gcc_assert from IN_LIBGCOV code.
23950         (gcov_read_summary): Use gcov_error to flag profile corruption.
23951         (gcov_sync): Use gcov_nonruntime_assert.
23952         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
23953         (gcov_histo_index): Use gcov_nonruntime_assert.
23954         (static void gcov_histogram_merge): Ditto.
23955         (compute_working_sets): Ditto.
23956         * gcov-io.h (gcov_nonruntime_assert): Define.
23957         (gcov_error): Define for !IN_LIBGCOV
23958
23959 2014-05-22  Richard Biener  <rguenther@suse.de>
23960
23961         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23962         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
23963         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
23964         and deallocation site.
23965         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23966         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
23967         passing through the incoming points-to set.
23968         (handle_lhs_call): Use flags argument instead of recomputing it.
23969         (find_func_aliases_for_call): Call handle_lhs_call with proper
23970         call return flags.
23971
23972 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
23973
23974         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
23975         all padding bits in REAL_VALUE_TYPE are cleared.
23976
23977 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23978
23979         Cleanup and improve multipass_dfa_lookahead_guard
23980         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
23981         (core2i7_first_cycle_multipass_begin,)
23982         (core2i7_first_cycle_multipass_issue,)
23983         (core2i7_first_cycle_multipass_backtrack): Update signature.
23984         * config/ia64/ia64.c
23985         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
23986         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
23987         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
23988         hook definition.
23989         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
23990         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
23991         values.
23992         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
23993         return values.
23994         * doc/tm.texi: Regenerate.
23995         * doc/tm.texi.in
23996         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
23997         * haifa-sched.c (ready_try): Make signed to allow negative values.
23998         (rebug_ready_list_1): Update.
23999         (choose_ready): Simplify.
24000         (sched_extend_ready_list): Update.
24001
24002 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24003
24004         Remove IA64 speculation tweaking flags
24005         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24006         speculation tuning flags.
24007         (msched-prefer-non-data-spec-insns,)
24008         (msched-prefer-non-control-spec-insns): Obsolete options.
24009         * haifa-sched.c (choose_ready): Remove handling of
24010         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24011         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24012         and PREFER_NON_DATA_SPEC.
24013         * sel-sched.c (process_spec_exprs): Remove handling of
24014         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24015
24016 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24017
24018         Improve scheduling debug output
24019         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24020         (advance_one_cycle): Update.
24021         (schedule_insn, queue_to_ready): Add debug printouts.
24022         (debug_ready_list_1): New static function.
24023         (debug_ready_list): Update.
24024         (max_issue): Add debug printouts.
24025         (dump_insn_stream): New static function.
24026         (schedule_block): Use it.  Also better indent printouts.
24027
24028 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24029
24030         Fix sched_insn debug counter
24031         * haifa-sched.c (schedule_insn): Update.
24032         (struct haifa_saved_data): Add nonscheduled_insns_begin.
24033         (save_backtrack_point, restore_backtrack_point): Update.
24034         (first_nonscheduled_insn): New static function.
24035         (queue_to_ready, choose_ready): Use it.
24036         (schedule_block): Init nonscheduled_insns_begin.
24037         (sched_emit_insn): Update.
24038
24039
24040 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
24041
24042         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24043         to GENERAL_REGS.
24044         (aarch64_secondary_reload) : LikeWise.
24045         (aarch64_class_max_nregs) : Remove CORE_REGS.
24046         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24047         (REG_CLASS_NAMES) : Likewise.
24048         (REG_CLASS_CONTENTS) : LikeWise.
24049         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24050
24051 2014-05-21  Guozhi Wei  <carrot@google.com>
24052
24053         PR target/61202
24054         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24055         constraint.
24056         (vqdmulhq_n_s16): Likewise.
24057
24058 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
24059
24060         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24061
24062 2014-05-21  Marek Polacek  <polacek@redhat.com>
24063
24064         PR sanitizer/61272
24065         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24066
24067 2014-05-21  Martin Jambor  <mjambor@suse.cz>
24068
24069         * doc/invoke.texi (Optimize Options): Document parameters
24070         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24071         ipa-cp-array-index-hint-bonus.
24072
24073 2014-05-21  Mark Wielaard  <mjw@redhat.com>
24074
24075         PR debug/16063
24076         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24077         version >= 3 or not strict DWARF.
24078         * langhooks.h (struct lang_hooks_for_types): Add
24079         enum_underlying_base_type.
24080         * langhooks.c (lhd_enum_underlying_base_type): New function.
24081         * gcc/langhooks.h (struct lang_hooks_for_types): Add
24082         enum_underlying_base_type.
24083         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24084         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24085         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24086
24087 2014-05-21  Richard Biener  <rguenther@suse.de>
24088
24089         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24090
24091 2014-05-21  John Marino  <gnugcc@marino.st>
24092
24093         * config.gcc (*-*-dragonfly*): New target.
24094         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24095         * configure: Regenerate.
24096         * config/dragonfly-stdint.h: New.
24097         * config/dragonfly.h: New.
24098         * config/dragonfly.opt: New.
24099         * config/i386/dragonfly.h: New.
24100         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24101
24102 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24103
24104         * tree.def (VOID_CST): New.
24105         * tree-core.h (TI_VOID): New.
24106         * tree.h (void_node): New.
24107         * tree.c (tree_node_structure_for_code, tree_code_size)
24108         (iterative_hash_expr): Handle VOID_CST.
24109         (build_common_tree_nodes): Initialize void_node.
24110
24111 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
24112
24113         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24114         functions.
24115         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24116
24117         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24118         more places.
24119
24120         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24121         flag_reorder_blocks_and_partition.
24122         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24123
24124 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
24125
24126         PR target/54236
24127         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
24128         constraints.
24129         (*addc_r_t): Add new insn_and_split.
24130
24131 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
24132
24133         PR middle-end/61252
24134         * omp-low.c (handle_simd_reference): New function.
24135         (lower_rec_input_clauses): Use it.  Defer adding reference
24136         initialization even for reduction without placeholder if in simd,
24137         handle it properly later on.
24138
24139 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24140
24141         PR tree-optimization/60899
24142         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24143         assume all static symbols will have definition wile parsing and
24144         check the do have definition later in compilation; check that
24145         variable referring symbol will be output before concluding that
24146         reference is safe; be conservative for referring local statics;
24147         be more precise about when comdat is output in other partition.
24148
24149 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24150
24151         PR bootstrap/60984
24152         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24153         parameter.
24154         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24155         (ipa_inline): Loop inline_to_all_callers until no more aliases
24156         are removed.
24157
24158 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24159
24160         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24161         set writeonly flag only for vars actually written to.
24162
24163 2014-05-20  Dehao Chen  <dehao@google.com>
24164
24165         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24166         and callee count to get clone count.
24167         * tree-inline.c (expand_call_inline): Use callee count instead of bb
24168         count in copy_body.
24169
24170 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
24171
24172         PR rtl-optimization/61243
24173         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24174
24175 2014-05-20  Xinliang David Li  <davidxl@google.com>
24176
24177         * cgraphunit.c (walk_polymorphic_call_targets): Add
24178         dbgcnt and fopt-info support.
24179         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24180         * ipa-devirt.c (ipa_devirt): Ditto.
24181         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24182         * ipa.c (walk_polymorphic_call_targets): Ditto.
24183         * gimple-fold.c (fold_gimple_assign): Ditto.
24184         (gimple_fold_call): Ditto.
24185         * dbgcnt.def: New counter.
24186
24187 2014-05-20  DJ Delorie  <dj@redhat.com>
24188
24189         * config/msp430/msp430.md (split): Don't allow subregs when
24190         splitting SImode adds.
24191         (andneghi): Fix subtraction logic.
24192         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24193
24194 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24195
24196         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24197         symbols.
24198         * except.c (switch_to_exception_section, resolve_unique_section,
24199         get_named_text_section, default_function_rodata_section,
24200         align_variable, get_block_for_decl, default_section_type_flags):
24201         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24202         * symtab.c (symtab_add_to_same_comdat_group,
24203         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24204         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24205         Likewise.
24206         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24207         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24208         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24209         (c6x_function_in_section_p): Likewise.
24210         * config/darwin.c (machopic_select_section): Likewise.
24211         * config/arm/arm.c (arm_function_in_section_p): Likewise.
24212         * config/mips/mips.c (mips_function_rodata_section): Likewise.
24213         * config/mep/mep.c (mep_select_section): LIkewise.
24214         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24215
24216 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
24217
24218         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
24219         EH region of calls to pure functions that can throw an exception.
24220         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
24221         (copy_reference_ops_from_call): Also copy the EH region of the call if
24222         it can throw an exception.
24223
24224 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24225
24226         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
24227         nested VEC_SELECTs that are inverses of each other.
24228
24229 2014-05-20  Richard Biener  <rguenther@suse.de>
24230
24231         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
24232         (extract_and_process_scc_for_name): not here.
24233         (cond_dom_walker::before_dom_children): Only process
24234         stmts that end the BB in interesting ways.
24235         (run_scc_vn): Mark param uses as visited.
24236
24237 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24238
24239         * config/arm/arm.md (arith_shiftsi): Do not predicate for
24240         arm_restrict_it.
24241
24242 2014-05-20  Nick Clifton  <nickc@redhat.com>
24243
24244         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
24245         (msp430_gimplify_va_arg_expr): New function.
24246         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
24247
24248         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
24249         operand 0 in order to prevent confusion about the number of
24250         registers involved.
24251
24252 2014-05-20  Richard Biener  <rguenther@suse.de>
24253
24254         PR tree-optimization/61221
24255         * tree-ssa-pre.c (el_to_update): Remove.
24256         (eliminate_dom_walker::before_dom_children): Handle released
24257         VDEFs by value-numbering them to the associated VUSE.  Update
24258         stmt immediately for substituted call address.
24259         (eliminate): Remove delayed stmt updating code.
24260         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24261         possibly late re-numbered vuses.
24262         (vn_reference_lookup_2): Adjust.
24263         (vn_reference_lookup_pieces): Likewise.
24264         (vn_reference_lookup): Likewise.
24265
24266 2014-05-20  Richard Biener  <rguenther@suse.de>
24267
24268         * config.gcc: Remove need_64bit_hwint.
24269         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24270         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24271         it to be true.
24272         * config.in: Regenerate.
24273         * configure: Likewise.
24274
24275 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
24276
24277         * doc/extend.texi: Create Label Attributes section,
24278         move all label attributes into it and reference it.
24279
24280 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
24281
24282         * arm.c (thumb1_reorg): When scanning backwards skip anything
24283         that's not a proper insn.
24284
24285 2014-05-19  Richard Biener  <rguenther@suse.de>
24286
24287         PR tree-optimization/61221
24288         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24289         Do nothing for unreachable blocks.
24290         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24291         Improve unreachability detection.
24292
24293 2014-05-19  Richard Biener  <rguenther@suse.de>
24294
24295         PR tree-optimization/61209
24296         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24297
24298 2014-05-19  Nick Clifton  <nickc@redhat.com>
24299
24300         * except.c (init_eh): Fix computation of builtin setjmp buffer
24301         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24302
24303 2014-05-19  Richard Biener  <rguenther@suse.de>
24304
24305         PR tree-optimization/61184
24306         * tree-vrp.c (is_negative_overflow_infinity): Use
24307         TREE_OVERFLOW_P and do that check first.
24308         (is_positive_overflow_infinity): Likewise.
24309         (is_overflow_infinity): Likewise.
24310         (vrp_operand_equal_p): Properly treat operands with
24311         differing overflow as not equal.
24312
24313 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
24314
24315         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24316         shift simplification where it was intended.
24317
24318 2014-05-19  Christian Bruel  <christian.bruel@st.com>
24319
24320         PR target/61195
24321         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24322
24323 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
24324
24325         PR target/61084
24326         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24327         than wide_int.
24328
24329 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24330
24331         * reg-notes.def (CROSSING_JUMP): Likewise.
24332         * rtl.h (rtx_def): Update comment for jump flag.
24333         (CROSSING_JUMP_P): Define.
24334         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24335         of a REG_CROSSING_JUMP note.
24336         * cfghooks.c (tidy_fallthru_edges): Likewise.
24337         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24338         * emit-rtl.c (try_split): Likewise.
24339         * haifa-sched.c (sched_create_recovery_edges): Likewise.
24340         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24341         * jump.c (redirect_jump_2): Likewise.
24342         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24343         (relax_delay_slots): Likewise.
24344         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24345         (bbit_di): Likewise.
24346         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24347         * config/sh/sh.md (jump_compact): Likewise.
24348         * bb-reorder.c (rotate_loop): Likewise.
24349         (pass_duplicate_computed_gotos::execute): Likewise.
24350         (add_reg_crossing_jump_notes): Rename to...
24351         (update_crossing_jump_flags): ...this.
24352         (pass_partition_blocks::execute): Update accordingly.
24353
24354 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24355
24356         * tree.h: Remove extraneous template <>.
24357
24358 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24359
24360         * ipa.c (symtab_remove_unreachable_nodes): Remove
24361         symbol from comdat group if its body was eliminated.
24362         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
24363         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
24364         (symtab_unregister_node): ... this one.
24365         (verify_symtab_base): More strict checking of comdats.
24366         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
24367
24368 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24369
24370         * tree-pass.h (make_pass_ipa_comdats): New pass.
24371         * timevar.def (TV_IPA_COMDATS): New timevar.
24372         * passes.def (pass_ipa_comdats): Add.
24373         * Makefile.in (OBJS): Add ipa-comdats.o
24374         * ipa-comdats.c: New file.
24375
24376 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24377
24378         * ipa.c (update_visibility_by_resolution_info): New function.
24379         (function_and_variable_visibility): Use it.
24380
24381 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
24382
24383         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
24384         New functions.
24385         (FOR_EACH_DEFINED_SYMBOL): New macro.
24386         (varpool_first_static_initializer, varpool_next_static_initializer,
24387         varpool_first_defined_variable, varpool_next_defined_variable):
24388         Fix comments.
24389         (symtab_in_same_comdat_p): Correctly deal with inline functions.
24390
24391 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24392
24393         * ggc-page.c (ggc_handle_finalizers): Add comment.
24394
24395 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24396
24397         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
24398         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
24399         (ggc_internal_cleared_alloc): Likewise.
24400         * ggc-page.c (finalizer): New class.
24401         (vec_finalizer): Likewise.
24402         (globals::finalizers): New member.
24403         (globals::vec_finalizers): Likewise.
24404         (ggc_internal_alloc): Record the finalizer if any for the block being
24405         allocated.
24406         (ggc_handle_finalizers): New function.
24407         (ggc_collect): Call ggc_handle_finalizers.
24408         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
24409         finalizer.
24410         (ggc_internal_cleared_alloc): Likewise.
24411         (finalize): New function.
24412         (need_finalization_p): Likewise.
24413         (ggc_alloc): Install the type's destructor as the finalizer if it
24414         might do something.
24415         (ggc_cleared_alloc): Likewise.
24416         (ggc_vec_alloc): Likewise.
24417         (ggc_cleared_vec_alloc): Likewise.
24418
24419 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24420
24421         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
24422
24423 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24424
24425         * alias.c (record_alias_subset): Adjust.
24426         * bitmap.c (bitmap_element_allocate): Likewise.
24427         (bitmap_gc_alloc_stat): Likewise.
24428         * cfg.c (init_flow): Likewise.
24429         (alloc_block): Likewise.
24430         (unchecked_make_edge): Likewise.
24431         * cfgloop.c (alloc_loop): Likewise.
24432         (flow_loops_find): Likewise.
24433         (rescan_loop_exit): Likewise.
24434         * cfgrtl.c (init_rtl_bb_info): Likewise.
24435         * cgraph.c (insert_new_cgraph_node_version): Likewise.
24436         (cgraph_allocate_node): Likewise.
24437         (cgraph_create_edge_1): Likewise.
24438         (cgraph_allocate_init_indirect_info): Likewise.
24439         * cgraphclones.c (cgraph_clone_edge): Likewise.
24440         * cgraphunit.c (add_asm_node): Likewise.
24441         (init_lowered_empty_function): Likewise.
24442         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
24443         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24444         (alpha_use_linkage): Likewise.
24445         * config/arc/arc.c (arc_init_machine_status): Likewise.
24446         * config/arm/arm.c (arm_init_machine_status): Likewise.
24447         * config/avr/avr.c (avr_init_machine_status): Likewise.
24448         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24449         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
24450         * config/cris/cris.c (cris_init_machine_status): Likewise.
24451         * config/darwin.c (machopic_indirection_name): Likewise.
24452         (darwin_build_constant_cfstring): Likewise.
24453         (darwin_enter_string_into_cfstring_table): Likewise.
24454         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
24455         * config/frv/frv.c (frv_init_machine_status): Likewise.
24456         * config/i386/i386.c (get_dllimport_decl): Likewise.
24457         (ix86_init_machine_status): Likewise.
24458         (assign_386_stack_local): Likewise.
24459         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24460         (i386_pe_maybe_record_exported_symbol): Likewise.
24461         (i386_pe_record_stub): Likewise.
24462         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24463         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24464         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24465         (m32c_note_pragma_address): Likewise.
24466         * config/mep/mep.c (mep_init_machine_status): Likewise.
24467         (mep_note_pragma_flag): Likewise.
24468         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24469         (mips16_local_alias): Likewise.
24470         (mips_init_machine_status): Likewise.
24471         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24472         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24473         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
24474         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
24475         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
24476         * config/pa/pa.c (pa_init_machine_status): Likewise.
24477         (pa_get_deferred_plabel): Likewise.
24478         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
24479         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24480         (rs6000_init_machine_status): Likewise.
24481         (output_toc): Likewise.
24482         * config/s390/s390.c (s390_init_machine_status): Likewise.
24483         * config/score/score.c (score_output_external): Likewise.
24484         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24485         * config/spu/spu.c (spu_init_machine_status): Likewise.
24486         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
24487         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
24488         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24489         * coverage.c (coverage_end_function): Likewise.
24490         * dbxout.c (dbxout_init): Likewise.
24491         * doc/gty.texi: Don't mention variable_size attribute.
24492         * dwarf2cfi.c (new_cfi): Adjust.
24493         (new_cfi_row): Likewise.
24494         (copy_cfi_row): Likewise.
24495         (create_cie_data): Likewise.
24496         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
24497         (new_loc_descr): Likewise.
24498         (find_AT_string_in_table): Likewise.
24499         (add_addr_table_entry): Likewise.
24500         (new_die): Likewise.
24501         (add_var_loc_to_decl): Likewise.
24502         (clone_die): Likewise.
24503         (clone_as_declaration): Likewise.
24504         (break_out_comdat_types): Likewise.
24505         (new_loc_list): Likewise.
24506         (add_loc_descr_to_each): Likewise.
24507         (add_location_or_const_value_attribute): Likewise.
24508         (add_linkage_name): Likewise.
24509         (lookup_filename): Likewise.
24510         (dwarf2out_var_location): Likewise.
24511         (new_line_info_table): Likewise.
24512         (dwarf2out_init): Likewise.
24513         (mem_loc_descriptor): Likewise.
24514         (loc_descriptor): Likewise.
24515         (add_const_value_attribute): Likewise.
24516         (tree_add_const_value_attribute): Likewise.
24517         (comp_dir_string): Likewise.
24518         (dwarf2out_vms_debug_main_pointer): Likewise.
24519         (string_cst_pool_decl): Likewise.
24520         * emit-rtl.c (set_mem_attrs): Likewise.
24521         (get_reg_attrs): Likewise.
24522         (start_sequence): Likewise.
24523         (init_emit): Likewise.
24524         (init_emit_regs): Likewise.
24525         * except.c (init_eh_for_function): Likewise.
24526         (gen_eh_region): Likewise.
24527         (gen_eh_region_catch): Likewise.
24528         (gen_eh_landing_pad): Likewise.
24529         (add_call_site): Likewise.
24530         * function.c (add_frame_space): Likewise.
24531         (insert_temp_slot_address): Likewise.
24532         (assign_stack_temp_for_type): Likewise.
24533         (get_hard_reg_initial_val): Likewise.
24534         (allocate_struct_function): Likewise.
24535         (prepare_function_start): Likewise.
24536         (types_used_by_var_decl_insert): Likewise.
24537         * gengtype.c (variable_size_p): Remove function.
24538         (enum alloc_quantity): Remove enum.
24539         (write_typed_alloc_def): Remove function.
24540         (write_typed_struct_alloc_def): Likewise.
24541         (write_typed_typedef_alloc_def): Likewise.
24542         (write_typed_alloc_defns): Likewise.
24543         (main): Adjust.
24544         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
24545         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
24546         * ggc.h (ggc_alloc): new function.
24547         (ggc_cleared_alloc): Likewise.
24548         (ggc_vec_alloc): Template on type of vector element, and remove
24549         element size argument.
24550         (ggc_cleared_vec_alloc): Likewise.
24551         * gimple.c (gimple_build_omp_for): Adjust.
24552         (gimple_copy): Likewise.
24553         * ipa-cp.c (get_replacement_map): Likewise.
24554         (find_aggregate_values_for_callers_subset): Likewise.
24555         (known_aggs_to_agg_replacement_list): Likewise.
24556         * ipa-devirt.c (get_odr_type): Likewise.
24557         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
24558         (read_agg_replacement_chain): Likewise.
24559         * loop-iv.c (get_simple_loop_desc): Likewise.
24560         * lto-cgraph.c (input_node_opt_summary): Likewise.
24561         * lto-section-in.c (lto_new_in_decl_state): Likewise.
24562         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24563         (input_eh_region): Likewise.
24564         (input_eh_lp): Likewise.
24565         (input_cfg): Likewise.
24566         * optabs.c (set_optab_libfunc): Likewise.
24567         (init_tree_optimization_optabs): Likewise.
24568         (set_conv_libfunc): Likewise.
24569         * passes.c (do_per_function_toporder): Likewise.
24570         * rtl.h: Don't use variable_size gty attribute.
24571         * sese.c (if_region_set_false_region): Adjust.
24572         * stringpool.c (gt_pch_save_stringpool): Likewise.
24573         * target-globals.c (save_target_globals): Likewise.
24574         * toplev.c (general_init): Likewise.
24575         * trans-mem.c (record_tm_replacement): Likewise.
24576         (split_bb_make_tm_edge): Likewise.
24577         * tree-cfg.c (move_sese_region_to_fn): Likewise.
24578         * tree-data-ref.h (lambda_vector_new): Likewise.
24579         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24580         * tree-iterator.c (tsi_link_before): Likewise.
24581         (tsi_link_after): Likewise.
24582         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24583         * tree-ssa-loop-niter.c (record_estimate): Likewise.
24584         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24585         * tree-ssa-operands.h: Don't use variable_size gty attribute.
24586         * tree-ssa.c (init_tree_ssa): Adjust.
24587         * tree-ssanames.c (set_range_info): Likewise.
24588         (get_ptr_info): Likewise.
24589         (duplicate_ssa_name_ptr_info): Likewise.
24590         (duplicate_ssa_name_range_info): Likewise.
24591         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
24592         (unpack_ts_fixed_cst_value_fields): Likewise.
24593         * tree.c (build_fixed): Likewise.
24594         (build_real): Likewise.
24595         (build_string): Likewise.
24596         (decl_priority_info): Likewise.
24597         (decl_debug_expr_insert): Likewise.
24598         (decl_value_expr_insert): Likewise.
24599         (decl_debug_args_insert): Likewise.
24600         (type_hash_add): Likewise.
24601         (build_omp_clause): Likewise.
24602         * ubsan.c (decl_for_type_insert): Likewise.
24603         * varasm.c (get_unnamed_section): Likewise.
24604         (get_noswitch_section): Likewise.
24605         (get_section): Likewise.
24606         (get_block_for_section): Likewise.
24607         (create_block_symbol): Likewise.
24608         (build_constant_desc): Likewise.
24609         (create_constant_pool): Likewise.
24610         (force_const_mem): Likewise.
24611         (record_tm_clone_pair): Likewise.
24612         * varpool.c (varpool_create_empty_node): Likewise.
24613
24614 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
24615
24616         * dwarf2out.c (tree_add_const_value_attribute): Call
24617         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24618         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24619         instead of ggc_internal_<x>alloc_stat.
24620         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24621         (ggc_realloc): Likewise.
24622         * ggc-none.c (ggc_internal_alloc): Likewise.
24623         (ggc_internal_cleared_alloc): Likewise.
24624         * ggc-page.c: Likewise.
24625         * ggc.h (ggc_internal_alloc_stat): Likewise.
24626         (ggc_internal_alloc): Remove macro.
24627         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24628         (ggc_internal_cleared_alloc): Remove macro.
24629         (GGC_RESIZEVEC): Adjust.
24630         (ggc_resizevar): Remove macro.
24631         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24632         (ggc_internal_cleared_vec_alloc_stat): Likewise.
24633         (ggc_internal_vec_cleared_alloc): Remove macro.
24634         (ggc_alloc_atomic_stat): Drop _stat suffix.
24635         (ggc_alloc_atomic): Remove macro.
24636         (ggc_alloc_cleared_atomic): Remove macro.
24637         (ggc_alloc_string_stat): Drop _stat suffix.
24638         (ggc_alloc_string): Remove macro.
24639         (ggc_alloc_rtx_def_stat): Adjust.
24640         (ggc_alloc_tree_node_stat): Likewise.
24641         (ggc_alloc_cleared_tree_node_stat): Likewise.
24642         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24643         (ggc_alloc_cleared_simd_clone_stat): Likewise.
24644         * gimple.c (gimple_build_omp_for): Likewise.
24645         (gimple_copy): Likewise.
24646         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24647         * toplev.c (realloc_for_line_map): Adjust.
24648         * tree-data-ref.h (lambda_vector_new): Likewise.
24649         * tree-phinodes.c (allocate_phi_node): Likewise.
24650         * tree.c (grow_tree_vec_stat): Likewise.
24651         * vec.h (va_gc::reserve): Adjust.
24652
24653 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
24654
24655         * config/microblaze/microblaze.c (break_handler): New Declaration.
24656         (microblaze_break_function_p,microblaze_is_break_handler): New.
24657         (compute_frame_size): Use microblaze_break_function_p.
24658         Add the test of break_handler.
24659         (microblaze_function_prologue) : Add the test of variable
24660         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
24661         (microblaze_function_epilogue) : Add the test of break_handler.
24662         (microblaze_globalize_label) : Add the test of break_handler.
24663         Check the name by BREAK_HANDLER_NAME.
24664
24665         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24666
24667         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24668         microblaze_is_break_handler test.
24669         (call_internal1,call_value_intern): Use microblaze_break_function_p.
24670         Use SYMBOL_REF_DECL.
24671
24672         * config/microblaze/microblaze-protos.h
24673         (microblaze_break_function_p,microblaze_is_break_handler):
24674         New Declaration.
24675
24676         * doc/extend.texi (MicroBlaze break_handler Functions): Document
24677         new MicroBlaze break_handler functions.
24678
24679 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
24680
24681         * doc/extend.texi (Size of an asm): Move node text according
24682         to its @menu entry position.
24683
24684 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
24685
24686         PR tree-optimization/61140
24687         PR tree-optimization/61150
24688         PR tree-optimization/61197
24689         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24690
24691 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
24692
24693         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
24694
24695 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
24696
24697         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
24698         __SIZEOF_INT128__ is defined.
24699
24700 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
24701
24702         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
24703         (rs6000_delegitimize_address): Use it.
24704
24705 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
24706
24707         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
24708         inplace argument.  Store the new address in the original MEM when true.
24709         * emit-rtl.c (change_address_1): Likewise.
24710         (adjust_address_1, adjust_automodify_address_1, offset_address):
24711         Update accordingly.
24712         * rtl.h (plus_constant): Add an inplace argument.
24713         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
24714         when true.  Avoid generating (plus X (const_int 0)).
24715         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24716         in-place.  Pass true to plus_constant.
24717         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24718
24719 2014-05-16  Dehao Chen  <dehao@google.com>
24720
24721         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24722
24723 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24724
24725         PR target/54089
24726         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24727         patterns.
24728         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24729
24730 2014-05-16  Dehao Chen  <dehao@google.com>
24731
24732         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24733         optimize_function_for_size_p.
24734         * regs.h (REG_FREQ_FROM_BB): Likewise.
24735
24736 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24737
24738         PR target/51244
24739         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24740         negt_reg_operand cases.
24741         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24742         predicate.
24743         * config/sh/predicates.md (cbranch_treg_value): Simplify.
24744
24745 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
24746
24747         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
24748         target variants.
24749
24750 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
24751
24752         Revert:
24753         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
24754
24755         * tree-cfg.c (dump_function_to_file): Dump the return type of
24756         functions, in a line to itself before the function body, mimicking
24757         the layout of a C function.
24758
24759 2014-05-16  Dehao Chen  <dehao@google.com>
24760
24761         * cfghooks.c (make_forwarder_block): Use direct computation to
24762         get fall-through edge's count and frequency.
24763
24764 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
24765
24766         * config/arc/arc.c (arc_init): Fix typo in error message.
24767         * config/i386/i386.c (ix86_expand_builtin): Likewise.
24768         (split_stack_prologue_scratch_regno): Likewise.
24769         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
24770         word from error message.
24771
24772 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24773
24774         * ira-costs.c: Fix typo in comment.
24775
24776 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
24777
24778         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
24779
24780 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
24781
24782         * varpool.c (dump_varpool_node): Dump write-only flag.
24783         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
24784         write-only flag.
24785         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
24786         write-only variables.
24787         * ipa.c (process_references): New function.
24788         (set_readonly_bit): New function.
24789         (set_writeonly_bit): New function.
24790         (clear_addressable_bit): New function.
24791         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
24792         fix handling of aliases.
24793         * cgraph.h (struct varpool_node): Add writeonly flag.
24794
24795 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
24796
24797         PR rtl-optimization/60969
24798         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
24799         Calculate costs for this case.
24800
24801 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
24802
24803         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
24804         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
24805
24806 2014-05-16  Richard Biener  <rguenther@suse.de>
24807
24808         PR tree-optimization/61194
24809         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
24810         bool patterns ending in a COND_EXPR.
24811
24812 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24813
24814         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
24815
24816 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24817
24818         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
24819         where we were unable to cost an RTX.
24820
24821 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24822
24823         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
24824         HIGH, LO_SUM.
24825
24826 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24827             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24828
24829         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
24830
24831 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24832             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24833
24834         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
24835         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
24836
24837 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24838             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24839
24840         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
24841         operators.
24842
24843 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24844             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24845
24846         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24847         DIV/MOD.
24848
24849 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24850             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24851
24852         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
24853         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
24854
24855 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24856             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24857
24858         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24859         rotates and shifts.
24860
24861 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24862             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24863
24864         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
24865         ZERO_EXTEND and SIGN_EXTEND better.
24866
24867 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24868             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24869
24870         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
24871         logical operations.
24872
24873 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24874             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24875
24876         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
24877         costs when costing loads and stores to memory.
24878
24879 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24880             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
24881
24882         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
24883         for SET RTX.
24884
24885 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24886
24887         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
24888
24889 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24890             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24891
24892         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
24893         to...
24894         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
24895         well formed.
24896         (aarch64_rtx_mult_cost): New.
24897         (aarch64_rtx_costs): Use it, refactor as appropriate.
24898
24899 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24900             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24901
24902         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
24903         emit instructions, return number of instructions which would
24904         be emitted.
24905         (aarch64_add_constant): Update call to aarch64_build_constant.
24906         (aarch64_output_mi_thunk): Likewise.
24907         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
24908         a CONST_DOUBLE.
24909
24910 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24911
24912         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
24913         (TARGET_RTX_COSTS): Call it.
24914
24915 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24916
24917         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
24918         (cortexa57_vector_cost): Likewise.
24919         (cortexa57_tunings): Use them.
24920
24921 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
24922
24923         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
24924         (cpu_addrcost_table): Use it.
24925         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
24926         (aarch64_address_cost): Rewrite using aarch64_classify_address,
24927         move it.
24928
24929 2014-05-16  Richard Biener  <rguenther@suse.de>
24930
24931         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
24932         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
24933         (visit_phi): Ignore edges marked as not executable.
24934         (class cond_dom_walker): New.
24935         (cond_dom_walker::before_dom_children): Value-number
24936         control statements and mark successor edges as not
24937         executable if possible.
24938         (run_scc_vn): First walk all control statements in
24939         dominator order, marking edges as not executable.
24940         * tree-inline.c (copy_edges_for_bb): Be not confused
24941         about random edge flags.
24942
24943 2014-05-16  Richard Biener  <rguenther@suse.de>
24944
24945         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
24946
24947 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
24948
24949         PR target/61193
24950         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
24951         (__TM_simple_begin): Use it.
24952         (__TM_begin): Likewise.
24953
24954 2014-05-15  Martin Jambor  <mjambor@suse.cz>
24955
24956         PR ipa/61085
24957         * ipa-prop.c (update_indirect_edges_after_inlining): Check
24958         type_preserved flag when the indirect edge is polymorphic.
24959
24960 2014-05-15  Martin Jambor  <mjambor@suse.cz>
24961
24962         PR tree-optimization/61090
24963         * tree-sra.c (sra_modify_expr): Pass the current gsi to
24964         build_ref_for_model.
24965
24966 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24967
24968         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
24969         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
24970
24971 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
24972
24973         PR tree-optimization/61158
24974         * fold-const.c (fold_binary_loc): If X is zero-extended and
24975         shiftc >= prec, make sure zerobits is all ones instead of
24976         invoking undefined behavior.
24977
24978 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24979
24980         * regcprop.h: New file.
24981         * regcprop.c (skip_debug_insn_p): New decl.
24982         (replace_oldest_value_reg): Check skip_debug_insn_p.
24983         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
24984         * shrink-wrap.c: Include regcprop.h.
24985         (prepare_shrink_wrap): Call
24986         copyprop_hardreg_forward_bb_without_debug_insn.
24987
24988 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24989
24990         * shrink-wrap.h: Update comment.
24991         * shrink-wrap.c: Update comment.
24992         (next_block_for_reg): Rename to live_edge_for_reg.
24993         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
24994         (move_insn_for_shrink_wrap): Split live_edge.
24995         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
24996
24997 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
24998
24999         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25000         Delete.
25001         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25002         * config/sparc/sparc.md (fptype_ut699): New attribute.
25003         (in_branch_delay): Return false if -mfix-ut699 is specified and
25004         fptype_ut699 is set to single.
25005         (truncdfsf2): Add fptype_ut699 attribute.
25006         (fix_truncdfsi2): Likewise.
25007         (floatsisf2): Change fptype attribute.
25008         (fix_truncsfsi2): Likewise.
25009         (negtf2_notv9): Delete.
25010         (negtf2_v9): Likewise.
25011         (negtf2_hq): New instruction.
25012         (negtf2): New instruction and splitter.
25013         (negdf2_notv9): Rewrite.
25014         (abstf2_notv9): Delete.
25015         (abstf2_hq_v9): Likewise.
25016         (abstf2_v9): Likewise.
25017         (abstf2_hq): New instruction.
25018         (abstf2): New instruction and splitter.
25019         (absdf2_notv9): Rewrite.
25020
25021 2014-05-14  Cary Coutant  <ccoutant@google.com>
25022
25023         PR debug/61013
25024         * opts.c (common_handle_option): Don't special-case "-g".
25025         (set_debug_level): Default to at least level 2 with "-g".
25026
25027 2014-05-14  DJ Delorie  <dj@redhat.com>
25028
25029         * config/msp430/msp430.c (msp430_builtin): Add
25030         MSP430_BUILTIN_DELAY_CYCLES.
25031         (msp430_init_builtins): Register void __delay_cycles(long long).
25032         (msp430_builtin_decl): Add it.
25033         (cg_magic_constant): New.
25034         (msp430_expand_delay_cycles): New.
25035         (msp430_expand_builtin): Call it.
25036         (msp430_print_operand_raw): Change integer printing from "int" to
25037         HOST_WIDE_INT.
25038         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25039         (delay_cycles_start): New.
25040         (delay_cycles_end): New.
25041         (delay_cycles_32): New.
25042         (delay_cycles_32x): New.
25043         (delay_cycles_16): New.
25044         (delay_cycles_16x): New.
25045         (delay_cycles_2): New.
25046         (delay_cycles_1): New.
25047         * doc/extend.texi: Document __delay_cycles().
25048
25049 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
25050
25051         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25052         length attribute computation.
25053
25054 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
25055
25056         PR debug/61188
25057         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25058
25059 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
25060
25061         PR target/61084
25062         * config/sparc/sparc.md: Fix types of low and high in DI constant
25063         splitter.  Use gen_int_mode in some other splitters.
25064
25065 2014-05-14  Martin Jambor  <mjambor@suse.cz>
25066
25067         PR ipa/60897
25068         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25069
25070 2014-05-14  James Norris  <jnorris@codesourcery.com>
25071
25072         * omp-low.c (expand_parallel_call): Remove shadow variable.
25073         (expand_omp_taskreg): Likewise.
25074
25075 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
25076
25077         * common/config/i386/i386-common.c
25078         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25079         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25080         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25081         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25082         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25083         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25084         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25085         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25086         xsavecintrin.h, xsavesintrin.h.
25087         (x86_64-*-*): Ditto.
25088         * config/i386/clflushoptintrin.h: New.
25089         * config/i386/xsavecintrin.h: Ditto.
25090         * config/i386/xsavesintrin.h: Ditto.
25091         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25092         (bit_XSAVES): Ditto.
25093         (bit_XSAVES): Ditto.
25094         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25095         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25096         -mno-clflushopt.
25097         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25098         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25099         OPTION_MASK_ISA_XSAVES.
25100         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25101         -mxsavec, -mxsaves.
25102         (PTA_CLFLUSHOPT) Define.
25103         (PTA_XSAVEC): Ditto.
25104         (PTA_XSAVES): Ditto.
25105         (ix86_option_override_internal): Handle new options.
25106         (ix86_valid_target_attribute_inner_p): Ditto.
25107         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25108         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25109         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25110         (bdesc_special_args): Add __builtin_ia32_xsaves,
25111         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25112         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25113         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25114         (ix86_expand_builtin): Handle new builtins.
25115         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25116         (TARGET_CLFLUSHOPT_P): Ditto.
25117         (TARGET_XSAVEC): Ditto.
25118         (TARGET_XSAVEC_P): Ditto.
25119         (TARGET_XSAVES): Ditto.
25120         (TARGET_XSAVES_P): Ditto.
25121         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25122         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25123         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25124         (ANY_XRSTOR): New.
25125         (ANY_XRSTOR64): Ditto.
25126         (xrstor): Ditto.
25127         (xrstor): Change into <xrstor>.
25128         (xrstor_rex64): Change into <xrstor>_rex64.
25129         (xrstor64): Change into <xrstor>64
25130         (clflushopt): New.
25131         * config/i386/i386.opt (mclflushopt): New.
25132         (mxsavec): Ditto.
25133         (mxsaves): Ditto.
25134         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25135         xsavecintrin.h.
25136         * doc/invoke.texi: Document new options.
25137
25138 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25139
25140         PR rtl-optimization/60866
25141         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25142         Default it to -1.  Pass it down to init_simplejump_data.
25143         (init_simplejump_data): New parameter old_seqno.  Pass it down
25144         to get_seqno_for_a_jump.
25145         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
25146         initializing new jump seqno as a last resort.  Add comment.
25147         (sel_redirect_edge_and_branch): Save old seqno of the conditional
25148         jump and pass it down to sel_init_new_insn.
25149         (sel_redirect_edge_and_branch_force): Likewise.
25150
25151 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
25152
25153         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25154         shifted values to avoid build warning.
25155
25156 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25157
25158         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25159         * cfgrtl.c (rtl_merge_blocks): Fix comment.
25160         (cfg_layout_merge_blocks): Likewise.
25161         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25162
25163 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25164
25165         PR rtl-optimization/60901
25166         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25167         bb predecessor belongs to the same scheduling region.  Adjust comment.
25168
25169 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
25170
25171         * doc/sourcebuild.texi: (dfp_hw): Document.
25172         (p8vector_hw): Likewise.
25173         (powerpc_eabi_ok): Likewise.
25174         (powerpc_elfv2): Likewise.
25175         (powerpc_htm_ok): Likewise.
25176         (ppc_recip_hw): Likewise.
25177         (vsx_hw): Likewise.
25178
25179 2014-05-13  Cary Coutant  <ccoutant@google.com>
25180
25181         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25182
25183 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
25184
25185         * gengtype-parse.c (require3): Eliminate in favor of...
25186         (require4): New.
25187         (require_template_declaration): Update to support optional single *
25188         on a type.
25189
25190         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25191         (create_user_defined_type): Handle a single level of explicit
25192         pointerness within template arguments.
25193         (struct write_types_data): Add field "kind".
25194         (filter_type_name): Handle "*" character.
25195         (write_user_func_for_structure_ptr): Require a write_types_data
25196         rather than just a prefix string, so that we can look up the kind
25197         of the wtd and use it as an index into wrote_user_func_for_ptr,
25198         ensuring that such functions are written at most once.  Support
25199         subclasses by invoking the marking function of the ultimate base class.
25200         (write_user_func_for_structure_body): Require a write_types_data
25201         rather than just a prefix string, so that we can pass this to
25202         write_user_func_for_structure_ptr.
25203         (write_func_for_structure): Likewise.
25204         (ggc_wtd): Add initializer of new "kind" field.
25205         (pch_wtd): Likewise.
25206
25207         * gengtype.h (enum write_types_kinds): New.
25208         (struct type): Add field wrote_user_func_for_ptr to the "s"
25209         union member.
25210
25211 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
25212
25213         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25214         instead of const_binop.
25215         (fold_binary_loc): Likewise.
25216
25217 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
25218
25219         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
25220         calculation to match get_ref_base_and_extent.
25221
25222 2014-05-13  Catherine Moore  <clm@codesourcery.com>
25223             Sandra Loosemore  <sandra@codesourcery.com>
25224
25225         * configure.ac: Fix assembly for explicit JALR relocation check.
25226         * configure: Regenerate.
25227
25228 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25229
25230         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
25231         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
25232         Remove associated type declarations and initialisations.
25233         (arm_expand_neon_builtin): Likewise.
25234         (neon_emit_pair_result_insn): Delete.
25235         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
25236         * config/arm/neon.md (neon_vtrn<mode>): Delete.
25237         (neon_vzip<mode>): Likewise.
25238         (neon_vuzp<mode>): Likewise.
25239
25240 2014-05-13  Richard Biener  <rguenther@suse.de>
25241
25242         PR ipa/60973
25243         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
25244         it needs revisiting whether the call still may be tail-called.
25245
25246 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25247
25248         * rtl.def (SYMBOL_REF): Remove middle "0" field.
25249         * rtl.h (block_symbol): Reduce number of fields to 2.
25250         (rtx_def): Add u2.symbol_ref_flags.
25251         (SYMBOL_REF_FLAGS): Use it.
25252         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25253         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25254         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25255         Lower index of SYMBOL_REF_DATA.
25256         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25257         Print SYMBOL_REF_FLAGS at the same time.
25258         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25259
25260 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25261
25262         * rtl.def (VAR_LOCATION): Remove "i" field.
25263         * rtl.h (rtx_def): Add u2.var_location_status.
25264         (PAT_VAR_LOCATION_STATUS): Use it.
25265         (gen_rtx_VAR_LOCATION): Declare.
25266         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25267         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25268         * var-tracking.c (emit_note_insn_var_location): Remove casts.
25269
25270 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25271
25272         * rtl.def (scratch): Fix outdated comment and remove "0" field.
25273         * gengtype.c (adjust_field_rtx_def): Update accordingly.
25274
25275 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25276
25277         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25278         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25279         * rtl.h (rtx_def): Add insn_uid to u2 field.
25280         (RTX_FLAG_CHECK8): Delete in favor of...
25281         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25282         (INSN_DELETED_P): Update accordingly.
25283         (INSN_UID): Use u2.insn_uid.
25284         (INSN_CHAIN_CODE_P): Define.
25285         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25286         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25287         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25288         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25289         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25290         indices accordingly.
25291         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25292         Update indices for insn-chain rtxes.
25293         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25294         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25295         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25296         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25297         * combine.c (try_combine): Likewise.
25298         * ira.c (setup_prohibited_mode_move_regs): Likewise.
25299
25300 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25301
25302         * rtl.def (REG): Remove middle field.
25303         * rtl.h (rtx_def): Add orignal_regno to u2.
25304         (ORIGINAL_REGNO): Use it instead of field 1.
25305         (REG_ATTRS): Lower field index accordingly.
25306         * gengtype.c (adjust_field_rtx_def): Remove handling of
25307         ORIGINAL_REGNO.  Move REG_ATTRS index down.
25308         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25309         code that prints the REGNO.
25310
25311 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25312
25313         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25314         GENERATOR_FILE.
25315
25316 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25317
25318         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25319
25320 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
25321
25322         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25323         (alloc_iv): Lower base expressions containing ADDR_EXPR.
25324
25325 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
25326
25327         * config/aarch64/aarch64-protos.h
25328         (aarch64_hard_regno_caller_save_mode): New prototype.
25329         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25330         New function.
25331         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25332
25333 2014-05-13  Christian Bruel  <christian.bruel@st.com>
25334
25335         * target.def (mode_switching): New hook vector.
25336         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25337         (mode_exit, modepriority_to_mode): Likewise.
25338         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25339         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25340         * target.h: Include tm.h and hard-reg-set.h.
25341         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25342         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25343         * doc/tm.texi Regenerate.
25344         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25345         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25346         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25347         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25348         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25349         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25350         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25351         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
25352         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
25353         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
25354         (ix86_emit_mode_set): Hookify.
25355         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
25356         Delete.
25357         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25358         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
25359         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
25360         (epiphany_mode_priority_to_mode): Remove declaration.
25361         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
25362         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
25363         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
25364         Likewise.
25365         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
25366         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
25367         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
25368
25369 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
25370
25371         PR target/61060
25372         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
25373         is const0_rtx, return immediately.  Don't test count == 0 when
25374         it is always true.
25375
25376 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25377
25378         * Makefile.in: add shrink-wrap.o.
25379         * config/i386/i386.c: include "shrink-wrap.h"
25380         * function.c: Likewise.
25381         (requires_stack_frame_p, next_block_for_reg,
25382         move_insn_for_shrink_wrap, prepare_shrink_wrap,
25383         dup_block_and_redirect): Move to shrink-wrap.c
25384         (thread_prologue_and_epilogue_insns): Extract three code segments
25385         as functions in shrink-wrap.c
25386         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
25387         shrink-wrap.h
25388         * shrink-wrap.c: New file.
25389         * shrink-wrap.h: New file.
25390
25391 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
25392
25393         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
25394         reference to Solaris.
25395
25396 2014-05-12  Mike Stump  <mikestump@comcast.net>
25397
25398         PR other/31778
25399         * genattrtab.c (filename): Add.
25400         (convert_set_attr_alternative): Improve error message.
25401         (check_defs): Restore read_md_filename for error messages.
25402         (gen_insn): Save filename.
25403
25404 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
25405
25406         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
25407         -fno-local-ivars and -fivar-visibility.
25408         * c-family/c.opt: Make -Wshadow also implicitly enable
25409         -Wshadow-ivar.
25410
25411 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
25412
25413         * doc/tm.texi: Remove reference to deleted macro.
25414         * doc/tm.texi.in: Likewise.
25415
25416 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
25417
25418         PR target/60991
25419         * config/avr/avr.c (avr_out_store_psi): Use correct constant
25420         to restore Y.
25421
25422 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
25423
25424         PR libgcc/61152
25425         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
25426         * config/arm/aout.h (License): Same.
25427         * config/arm/bpabi.h (License): Same.
25428         * config/arm/elf.h (License): Same.
25429         * config/arm/linux-elf.h (License): Same.
25430         * config/arm/linux-gas.h (License): Same.
25431         * config/arm/netbsd-elf.h (License): Same.
25432         * config/arm/uclinux-eabi.h (License): Same.
25433         * config/arm/uclinux-elf.h (License): Same.
25434         * config/arm/vxworks.h (License): Same.
25435
25436 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
25437
25438         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
25439         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
25440         number of operands to 3.
25441         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
25442         * tree-nested.c (convert_nonlocal_omp_clauses,
25443         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
25444         * gimplify.c (gimplify_scan_omp_clauses): Handle
25445         OMP_CLAUSE_LINEAR_STMT.
25446         * omp-low.c (lower_rec_input_clauses): Fix typo.
25447         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
25448         cast between Fortran boolean_type_node and C _Bool if
25449         needed.
25450
25451 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
25452
25453         PR tree-optimization/61136
25454         * wide-int.h (multiple_of_p): Define a version that doesn't return
25455         the quotient.
25456         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
25457         integer_zerop/const_binop pair.
25458         (multiple_of_p): Likewise, converting both operands to widest_int
25459         precision.
25460
25461 2014-05-09  Teresa Johnson  <tejohnson@google.com>
25462
25463         * cgraphunit.c (analyze_functions): Use correct dump file.
25464
25465 2014-05-09  Florian Weimer  <fweimer@redhat.com>
25466
25467         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
25468         expand_used_vars.
25469         (stack_protect_return_slot_p): New function.
25470         (expand_used_vars): Call stack_protect_decl_p and
25471         stack_protect_return_slot_p for -fstack-protector-strong.
25472
25473 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
25474         Andrew Haley <aph@redhat.com>
25475         Richard Sandiford <rdsandiford@googlemail.com>
25476
25477         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
25478         pages.
25479
25480 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
25481
25482         PR middle-end/61111
25483         * fold-const.c (fold_binary_loc): Changed width of mask.
25484
25485 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
25486
25487         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
25488         unsigned int initializers for regno_in, regno_out.
25489
25490 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
25491
25492         PR target/61055
25493         * config/avr/avr.md (cc): Add new attribute set_vzn.
25494         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
25495         Set cc insn attribute to set_vzn instead of set_zn for alternatives
25496         with INC, DEC or NEG.
25497         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
25498         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
25499         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
25500
25501 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25502
25503         Revert:
25504         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25505
25506         * wide-int.cc (UTItype): Define.
25507         (UDWtype): Define for appropriate W_TYPE_SIZE.
25508
25509 2014-05-09  Richard Biener  <rguenther@suse.de>
25510
25511         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
25512         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
25513         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
25514         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
25515         ssa_propagate): Adjust.
25516
25517 2014-05-08  Jeff Law  <law@redhat.com>
25518
25519         PR tree-optimization/61009
25520         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
25521         tri-state rather than a boolean.  When a block is too big to
25522         thread through, inform caller via negative return value.
25523         (thread_across_edge): If a block was too big for normal threading,
25524         then it's too big for a joiner too, so remove temporary equivalences
25525         and return immediately.
25526
25527 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25528             Matthias Klose  <doko@ubuntu.com>
25529
25530         PR driver/61106
25531         * optc-gen.awk: Fix option handling for -Wunused-parameter.
25532
25533 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
25534
25535         PR target/59952
25536         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
25537
25538 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
25539
25540         PR target/61092
25541         * config/alpha/alpha.c: Include gimple-iterator.h.
25542         (alpha_gimple_fold_builtin): New function.  Move
25543         ALPHA_BUILTIN_UMULH folding from ...
25544         (alpha_fold_builtin): ... here.
25545         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
25546
25547 2014-05-08  Wei Mi  <wmi@google.com>
25548
25549         PR target/58066
25550         * config/i386/i386.c (ix86_compute_frame_layout): Update
25551         preferred_stack_boundary for call, expanded from tls descriptor.
25552         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
25553         to depend on SP register.
25554         (*tls_local_dynamic_base_32_gnu): Ditto.
25555         (*tls_local_dynamic_32_once): Ditto.
25556         (tls_global_dynamic_64_<mode>): Set
25557         ix86_tls_descriptor_calls_expanded_in_cfun.
25558         (tls_local_dynamic_base_64_<mode>): Ditto.
25559         (tls_global_dynamic_32): Set
25560         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
25561         to depend on SP register.
25562         (tls_local_dynamic_base_32): Ditto.
25563
25564 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25565
25566         * config/arm/arm_neon.h: Update comment.
25567         * config/arm/neon-docgen.ml: Delete.
25568         * config/arm/neon-gen.ml: Delete.
25569         * doc/arm-neon-intrinsics.texi: Update comment.
25570
25571 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25572
25573         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
25574         and v4sf versions.
25575         (vand, vorr, veor, vorn, vbic): Remove.
25576         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
25577         iterator.
25578         (neon_vsub_unspec): Likewise.
25579         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
25580
25581 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25582
25583         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
25584         (vadd_s16): Likewise.
25585         (vadd_s32): Likewise.
25586         (vadd_f32): Likewise.
25587         (vadd_u8): Likewise.
25588         (vadd_u16): Likewise.
25589         (vadd_u32): Likewise.
25590         (vadd_s64): Likewise.
25591         (vadd_u64): Likewise.
25592         (vaddq_s8): Likewise.
25593         (vaddq_s16): Likewise.
25594         (vaddq_s32): Likewise.
25595         (vaddq_s64): Likewise.
25596         (vaddq_f32): Likewise.
25597         (vaddq_u8): Likewise.
25598         (vaddq_u16): Likewise.
25599         (vaddq_u32): Likewise.
25600         (vaddq_u64): Likewise.
25601         (vmul_s8): Likewise.
25602         (vmul_s16): Likewise.
25603         (vmul_s32): Likewise.
25604         (vmul_f32): Likewise.
25605         (vmul_u8): Likewise.
25606         (vmul_u16): Likewise.
25607         (vmul_u32): Likewise.
25608         (vmul_p8): Likewise.
25609         (vmulq_s8): Likewise.
25610         (vmulq_s16): Likewise.
25611         (vmulq_s32): Likewise.
25612         (vmulq_f32): Likewise.
25613         (vmulq_u8): Likewise.
25614         (vmulq_u16): Likewise.
25615         (vmulq_u32): Likewise.
25616         (vsub_s8): Likewise.
25617         (vsub_s16): Likewise.
25618         (vsub_s32): Likewise.
25619         (vsub_f32): Likewise.
25620         (vsub_u8): Likewise.
25621         (vsub_u16): Likewise.
25622         (vsub_u32): Likewise.
25623         (vsub_s64): Likewise.
25624         (vsub_u64): Likewise.
25625         (vsubq_s8): Likewise.
25626         (vsubq_s16): Likewise.
25627         (vsubq_s32): Likewise.
25628         (vsubq_s64): Likewise.
25629         (vsubq_f32): Likewise.
25630         (vsubq_u8): Likewise.
25631         (vsubq_u16): Likewise.
25632         (vsubq_u32): Likewise.
25633         (vsubq_u64): Likewise.
25634         (vand_s8): Likewise.
25635         (vand_s16): Likewise.
25636         (vand_s32): Likewise.
25637         (vand_u8): Likewise.
25638         (vand_u16): Likewise.
25639         (vand_u32): Likewise.
25640         (vand_s64): Likewise.
25641         (vand_u64): Likewise.
25642         (vandq_s8): Likewise.
25643         (vandq_s16): Likewise.
25644         (vandq_s32): Likewise.
25645         (vandq_s64): Likewise.
25646         (vandq_u8): Likewise.
25647         (vandq_u16): Likewise.
25648         (vandq_u32): Likewise.
25649         (vandq_u64): Likewise.
25650         (vorr_s8): Likewise.
25651         (vorr_s16): Likewise.
25652         (vorr_s32): Likewise.
25653         (vorr_u8): Likewise.
25654         (vorr_u16): Likewise.
25655         (vorr_u32): Likewise.
25656         (vorr_s64): Likewise.
25657         (vorr_u64): Likewise.
25658         (vorrq_s8): Likewise.
25659         (vorrq_s16): Likewise.
25660         (vorrq_s32): Likewise.
25661         (vorrq_s64): Likewise.
25662         (vorrq_u8): Likewise.
25663         (vorrq_u16): Likewise.
25664         (vorrq_u32): Likewise.
25665         (vorrq_u64): Likewise.
25666         (veor_s8): Likewise.
25667         (veor_s16): Likewise.
25668         (veor_s32): Likewise.
25669         (veor_u8): Likewise.
25670         (veor_u16): Likewise.
25671         (veor_u32): Likewise.
25672         (veor_s64): Likewise.
25673         (veor_u64): Likewise.
25674         (veorq_s8): Likewise.
25675         (veorq_s16): Likewise.
25676         (veorq_s32): Likewise.
25677         (veorq_s64): Likewise.
25678         (veorq_u8): Likewise.
25679         (veorq_u16): Likewise.
25680         (veorq_u32): Likewise.
25681         (veorq_u64): Likewise.
25682         (vbic_s8): Likewise.
25683         (vbic_s16): Likewise.
25684         (vbic_s32): Likewise.
25685         (vbic_u8): Likewise.
25686         (vbic_u16): Likewise.
25687         (vbic_u32): Likewise.
25688         (vbic_s64): Likewise.
25689         (vbic_u64): Likewise.
25690         (vbicq_s8): Likewise.
25691         (vbicq_s16): Likewise.
25692         (vbicq_s32): Likewise.
25693         (vbicq_s64): Likewise.
25694         (vbicq_u8): Likewise.
25695         (vbicq_u16): Likewise.
25696         (vbicq_u32): Likewise.
25697         (vbicq_u64): Likewise.
25698         (vorn_s8): Likewise.
25699         (vorn_s16): Likewise.
25700         (vorn_s32): Likewise.
25701         (vorn_u8): Likewise.
25702         (vorn_u16): Likewise.
25703         (vorn_u32): Likewise.
25704         (vorn_s64): Likewise.
25705         (vorn_u64): Likewise.
25706         (vornq_s8): Likewise.
25707         (vornq_s16): Likewise.
25708         (vornq_s32): Likewise.
25709         (vornq_s64): Likewise.
25710         (vornq_u8): Likewise.
25711         (vornq_u16): Likewise.
25712         (vornq_u32): Likewise.
25713         (vornq_u64): Likewise.
25714
25715 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25716
25717         * wide-int.cc (UTItype): Define.
25718         (UDWtype): Define for appropriate W_TYPE_SIZE.
25719
25720 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
25721
25722         PR tree-optimization/59100
25723         * tree-ssa-phiopt.c: Include tree-inline.h.
25724         (neutral_element_p, absorbing_element_p): New functions.
25725         (value_replacement): Handle conditional binary operations with a
25726         neutral or absorbing element.
25727
25728 2014-05-08  Richard Biener  <rguenther@suse.de>
25729
25730         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25731         folding the expression.
25732         (valueize_expr): Remove.
25733         (visit_reference_op_load): Do not valueize the result of
25734         vn_get_expr_for.
25735         (simplify_binary_expression): Likewise.
25736         (simplify_unary_expression): Likewise.
25737
25738 2014-05-08  Richard Biener  <rguenther@suse.de>
25739
25740         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25741         looking at TYPE_ARG_TYPES.
25742
25743 2014-05-08  Richard Biener  <rguenther@suse.de>
25744
25745         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
25746         pointer propagation special-case.
25747
25748 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
25749
25750         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
25751         core part of address expressions.
25752
25753 2014-05-08  Alan Modra  <amodra@gmail.com>
25754
25755         PR target/60737
25756         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
25757         loads and stores when -mno-strict-align at any alignment.
25758         (expand_block_clear): Similarly.  Also correct calculation of
25759         instruction count.
25760
25761 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25762
25763         PR middle-end/39246
25764         * tree-complex.c (expand_complex_move): Keep line info when expanding
25765         complex move.
25766         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
25767         of complex expression. Use new argument to display correct location
25768         for values coming from phi statement.
25769         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
25770         (warn_uninitialized_phi): Pass location of phi argument to
25771         warn_uninit.
25772         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
25773         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
25774
25775 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
25776
25777         * config/rs6000/predicates.md (indexed_address_mem): New.
25778         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
25779         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
25780         fpstore_ux, fpstore_u.
25781         (sign_extend, indexed, update): New.
25782         (cell_micro): Adjust.
25783         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
25784         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
25785         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
25786         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
25787         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
25788         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
25789         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
25790         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
25791         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
25792         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
25793         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
25794         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
25795         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
25796         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
25797         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
25798
25799         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
25800         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
25801         *vsx_extract_<mode>_store): Adjust.
25802         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
25803         is_cracked_insn, insn_must_be_first_in_group,
25804         insn_must_be_last_in_group): Adjust.
25805
25806         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
25807         Adjust.
25808         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
25809         ppc440-fpstore): Adjust.
25810         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
25811         ppc476-fpstore): Adjust.
25812         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
25813         ppc601-fpstore): Adjust.
25814         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
25815         Adjust.
25816         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
25817         Adjust.
25818         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
25819         ppc7450-fpstore): Adjust.
25820         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
25821         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
25822         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
25823         Adjust.
25824         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
25825         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
25826         cell-fpstore, cell-fpstore-update): Adjust.
25827         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
25828         ppce300c3_store, ppce300c3_fpstore): Adjust.
25829         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
25830         e500mc_fpstore): Adjust.
25831         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
25832         e500mc64_store, e500mc64_fpstore): Adjust.
25833         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
25834         e5500_fpstore): Adjust.
25835         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
25836         e6500_fpstore): Adjust.
25837         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
25838         Adjust.
25839         * config/rs6000/power4.md (power4-load, power4-load-ext,
25840         power4-load-ext-update, power4-load-ext-update-indexed,
25841         power4-load-update-indexed, power4-load-update, power4-fpload,
25842         power4-fpload-update, power4-store, power4-store-update,
25843         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
25844         Adjust.
25845         * config/rs6000/power5.md (power5-load, power5-load-ext,
25846         power5-load-ext-update, power5-load-ext-update-indexed,
25847         power5-load-update-indexed, power5-load-update, power5-fpload,
25848         power5-fpload-update, power5-store, power5-store-update,
25849         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
25850         Adjust.
25851         * config/rs6000/power6.md (power6-load, power6-load-ext,
25852         power6-load-update, power6-load-update-indexed,
25853         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
25854         power6-fpload-update, power6-store, power6-store-update,
25855         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
25856         Adjust.
25857         * config/rs6000/power7.md (power7-load, power7-load-ext,
25858         power7-load-update, power7-load-update-indexed,
25859         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
25860         power7-fpload-update, power7-store, power7-store-update,
25861         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
25862         Adjust.
25863         * config/rs6000/power8.md (power8-load, power8-load-update,
25864         power8-load-ext, power8-load-ext-update, power8-fpload,
25865         power8-fpload-update, power8-store, power8-store-update-indexed,
25866         power8-fpstore, power8-fpstore-update): Adjust.
25867         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
25868         Adjust.
25869         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
25870         titan_lsu_store, titan_lsu_fpstore): Adjust.
25871         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
25872
25873 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
25874
25875         PR target/60884
25876         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
25877         unrolled byte insns.  Emit address increments after move insns.
25878
25879 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
25880
25881         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
25882         const_gimple, rather than a gimple.
25883         (gimple_call_builtin_p): Likewise, for the three variants.
25884
25885         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
25886         (gimple_call_builtin_p): Likewise, for the three variants.
25887
25888 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25889
25890         PR tree-optimization/61095
25891         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
25892
25893 2014-05-07  Richard Biener  <rguenther@suse.de>
25894
25895         PR tree-optimization/61034
25896         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
25897         (maybe_skip_until): Use translate to take into account
25898         lattices when trying to do disambiguations.
25899         (get_continuation_for_phi_1): Likewise.
25900         (get_continuation_for_phi): Adjust for added translate arguments.
25901         (walk_non_aliased_vuses): Likewise.
25902         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
25903         (walk_non_aliased_vuses): Likewise.
25904         (call_may_clobber_ref_p_1): Declare.
25905         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
25906         calls.  Stop early if we are only supposed to disambiguate.
25907         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
25908
25909 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
25910
25911         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
25912         Emit an error when the function has arguments.
25913
25914 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
25915
25916         * cfgloop.h (unswitch_loops): Remove.
25917         * doc/passes.texi: Remove references to loop-unswitch.c
25918         * timevar.def (TV_LOOP_UNSWITCH): Remove.
25919
25920 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
25921
25922         * tree-vect-data-refs.c (vect_grouped_load_supported): New
25923         check for loads group of length 3.
25924         (vect_permute_load_chain): New permutations for loads group of
25925         length 3.
25926         * tree-vect-stmts.c (vect_model_load_cost): Change cost
25927         of vec_perm_shuffle for the new permutations.
25928
25929 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
25930
25931         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
25932         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
25933         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
25934         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
25935         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
25936         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
25937         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
25938         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
25939
25940 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
25941
25942         * loop-unswitch.c: Delete.
25943
25944 2014-05-07  Richard Biener  <rguenther@suse.de>
25945
25946         * config.gcc: Always set need_64bit_hwint to yes.
25947
25948 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
25949
25950         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
25951         of using optimize_size.
25952
25953 2014-05-06  Mike Stump  <mikestump@comcast.net>
25954
25955         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
25956
25957 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
25958
25959         * config/i386/sse.md (*mov<mode>_internal)
25960         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
25961         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
25962         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
25963         (*<code><mode>3, *andnot<mode>3<mask_name>)
25964         (<mask_codefor><code><mode>3<mask_name>): Only consider
25965         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
25966
25967 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
25968
25969         Revert:
25970         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
25971
25972         * lra-constraints.c (valid_address_p): Move earlier in file.
25973         Add a constraint argument to the address_info version.
25974         (satisfies_memory_constraint_p): New function.
25975         (satisfies_address_constraint_p): Likewise.
25976         (process_alt_operands, curr_insn_transform): Use them.
25977         (process_address): Pass the constraint to valid_address_p when
25978         checking address operands.
25979
25980 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
25981
25982         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
25983         to their respective blocks.  Fix inadvertent use of "node".
25984
25985 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
25986
25987         * emit-rtl.c (init_derived_machine_modes): New functionm, split
25988         out from...
25989         (init_emit_once): ...here.
25990         * rtl.h (init_derived_machine_modes): Declare.
25991         * toplev.c (do_compile): Call it even if no_backend.
25992
25993 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
25994             Mike Stump  <mikestump@comcast.net>
25995             Richard Sandiford  <rdsandiford@googlemail.com>
25996             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25997
25998         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
25999         (rtx_equal_for_memref_p): Update comment.
26000         (adjust_offset_for_component_ref): Use wide-int interfaces.
26001         * builtins.c (get_object_alignment_2): Likewise.
26002         (c_readstr): Likewise.
26003         (target_char_cast): Add comment.
26004         (determine_block_size): Use wide-int interfaces.
26005         (expand_builtin_signbit): Likewise.
26006         (fold_builtin_int_roundingfn): Likewise.
26007         (fold_builtin_bitop): Likewise.
26008         (fold_builtin_bswap): Likewise.
26009         (fold_builtin_logarithm): Use signop.
26010         (fold_builtin_pow): Likewise.
26011         (fold_builtin_memory_op): Use wide-int interfaces.
26012         (fold_builtin_object_size): Likewise.
26013         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26014         nb_iterations_estimate.
26015         (record_niter_bound): Use wide-int interfaces.
26016         (get_estimated_loop_iterations_int): Likewise.
26017         (get_estimated_loop_iterations): Likewise.
26018         (get_max_loop_iterations): Likewise.
26019         * cfgloop.h: Include wide-int.h.
26020         (struct nb_iter_bound): Change bound to widest_int.
26021         (struct loop): Change nb_iterations_upper_bound and
26022         nb_iterations_estimate to widest_int.
26023         (record_niter_bound): Switch to use widest_int.
26024         (get_estimated_loop_iterations): Likewise.
26025         (get_max_loop_iterations): Likewise.
26026         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26027         update for wide-int.
26028         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26029         * combine.c (try_combine): Likewise.
26030         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26031         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26032         interfaces.
26033         (aarch64_float_const_representable_p): Likewise.
26034         * config/arc/arc.c: Include wide-int.h.
26035         (arc_can_use_doloop_p): Use wide-int interfaces.
26036         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26037         (vfp3_const_double_index): Likewise.
26038         * config/avr/avr.c (avr_out_round): Likewise.
26039         (avr_fold_builtin): Likewise.
26040         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26041         (bfin_can_use_doloop_p): Likewise.
26042         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26043         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26044         * config/i386/i386.c: Include wide-int.h.
26045         (ix86_data_alignment): Use wide-int interfaces.
26046         (ix86_local_alignment): Likewise.
26047         (ix86_emit_swsqrtsf): Update real_from_integer.
26048         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26049         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26050         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26051         (zero_constant): Likewise.
26052         (input_operand): Likewise.
26053         (splat_input_operand): Likewise.
26054         (non_logical_cint_operand): Change const_double to const_wide_int.
26055         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26056         (easy_altivec_constant): Remove comment.
26057         (paired_expand_vector_init): Use CONSTANT_P.
26058         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26059         (rs6000_emit_move): Update checks.
26060         (rs6000_aggregate_candidate): Use wide-int interfaces.
26061         (rs6000_expand_ternop_builtin): Likewise.
26062         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26063         (rs6000_assemble_integer): Likewise.
26064         (rs6000_hash_constant): Likewise.
26065         (output_toc): Likewise.
26066         (rs6000_rtx_costs): Likewise.
26067         (rs6000_emit_swrsqrt); Update call to real_from_integer.
26068         * config/rs6000/rs6000-c.c: Include wide-int.h.
26069         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26070         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26071         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26072         Handle CONST_WIDE_INT.
26073         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26074         Use tree_fits_uhwi_p.
26075         * config/sparc/sparc.c: Include wide-int.h.
26076         (sparc_fold_builtin): Use wide-int interfaces.
26077         * config/vax/vax.c: Include wide-int.h.
26078         (vax_float_literal): Use real_from_integer.
26079         * coretypes.h (struct hwivec_def): New.
26080         (hwivec): New.
26081         (const_hwivec): New.
26082         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26083         (equiv_constant): Handle CONST_WIDE_INT.
26084         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26085         (cselib_hash_rtx): Handle CONST_WIDE_INT.
26086         * dbxout.c (stabstr_U): Use wide-int interfaces.
26087         (dbxout_type): Update to use cst_fits_shwi_p.
26088         * defaults.h (LOG2_BITS_PER_UNIT): Define.
26089         (TARGET_SUPPORTS_WIDE_INT): Add default.
26090         * dfp.c: Include wide-int.h.
26091         (decimal_real_to_integer2): Use wide-int interfaces and rename to
26092         decimal_real_to_integer.
26093         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26094         decimal_real_to_integer.
26095         * doc/generic.texi (Constant expressions): Update for wide_int.
26096         * doc/rtl.texi (const_double): Likewise.
26097         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26098         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26099         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26100         (REAL_VALUE_FROM_INT): Remove.
26101         (TARGET_SUPPORTS_WIDE_INT): New.
26102         * doc/tm.texi: Regenerate.
26103         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26104         * double-int.h: Include wide-int.h.
26105         (struct wi::int_traits): New.
26106         * dwarf2out.c (get_full_len): New.
26107         (dw_val_equal_p): Add case dw_val_class_wide_int.
26108         (size_of_loc_descr): Likewise.
26109         (output_loc_operands): Likewise.
26110         (insert_double): Remove.
26111         (insert_wide_int): New.
26112         (add_AT_wide): New.
26113         (print_die): Add case dw_val_class_wide_int.
26114         (attr_checksum): Likewise.
26115         (attr_checksum_ordered): Likewise.
26116         (same_dw_val_p): Likewise.
26117         (size_of_die): Likewise.
26118         (value_format): Likewise.
26119         (output_die): Likewise.
26120         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26121         Use wide-int.
26122         (clz_loc_descriptor): Use wide-int interfaces.
26123         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
26124         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
26125         (round_up_to_align): Use wide-int interfaces.
26126         (field_byte_offset): Likewise.
26127         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
26128         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
26129         CONST_DOUBLE handling.  Use wide-int interfaces.
26130         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
26131         (gen_enumeration_type_die): Use add_AT_wide.
26132         (hash_loc_operands): Add case dw_val_class_wide_int.
26133         (compare_loc_operands): Likewise.
26134         * dwarf2out.h: Include wide-int.h.
26135         (wide_int_ptr): New.
26136         (enum dw_val_class): Add dw_val_class_wide_int.
26137         (struct dw_val_struct): Add val_wide.
26138         * emit-rtl.c (const_wide_int_htab): New.
26139         (const_wide_int_htab_hash): New.
26140         (const_wide_int_htab_eq): New.
26141         (lookup_const_wide_int): New.
26142         (const_double_htab_hash): Use wide-int interfaces.
26143         (const_double_htab_eq): Likewise.
26144         (rtx_to_double_int): Conditionally compile for wide-int.
26145         (immed_double_int_const): Rename to immed_wide_int_const and
26146         update for wide-int.
26147         (immed_double_const): Conditionally compile for wide-int.
26148         (init_emit_once): Use wide-int interfaces.
26149         * explow.c (plus_constant): Likewise.
26150         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
26151         (lshift_value): Use wide-int interfaces.
26152         (expand_mult): Likewise.
26153         (choose_multiplier): Likewise.
26154         (expand_smod_pow2): Likewise.
26155         (make_tree): Likewise.
26156         * expr.c (convert_modes): Consolidate handling of constants.
26157         Use wide-int interfaces.
26158         (emit_group_load_1): Add note.
26159         (store_expr): Update comment.
26160         (get_inner_reference): Use wide-int interfaces.
26161         (expand_constructor): Update comment.
26162         (expand_expr_real_2): Use wide-int interfaces.
26163         (expand_expr_real_1): Likewise.
26164         (reduce_to_bit_field_precision): Likewise.
26165         (const_vector_from_tree): Likewise.
26166         * final.c: Include wide-int-print.h.
26167         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
26168         * fixed-value.c: Include wide-int.h.
26169         (fixed_from_string): Use wide-int interfaces.
26170         (fixed_to_decimal): Likewise.
26171         (fixed_convert_from_real): Likewise.
26172         (real_convert_from_fixed): Likewise.
26173         * fold-const.h (mem_ref_offset): Return an offset_int.
26174         (div_if_zero_remainder): Remove code parameter.
26175         * fold-const.c (div_if_zero_remainder): Remove code parameter.
26176         Use wide-int interfaces.
26177         (may_negate_without_overflow_p): Use wide-int interfaces.
26178         (negate_expr_p): Likewise.
26179         (fold_negate_expr): Likewise.
26180         (int_const_binop_1): Likewise.
26181         (const_binop): Likewise.
26182         (fold_convert_const_int_from_int): Likewise.
26183         (fold_convert_const_int_from_real): Likewise.
26184         (fold_convert_const_int_from_fixed): Likewise.
26185         (fold_convert_const_fixed_from_int): Likewise.
26186         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
26187         (sign_bit_p): Use wide-int interfaces.
26188         (make_range_step): Likewise.
26189         (build_range_check): Likewise.  Pass an integer of the correct type
26190         instead of using integer_one_node.
26191         (range_predecessor): Pass an integer of the correct type instead
26192         of using integer_one_node.
26193         (range_successor): Likewise.
26194         (merge_ranges): Likewise.
26195         (unextend): Use wide-int interfaces.
26196         (extract_muldiv_1): Likewise.
26197         (fold_div_compare): Likewise.
26198         (fold_single_bit_test): Likewise.
26199         (fold_sign_changed_comparison): Likewise.
26200         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26201         (fold_plusminus_mult_expr): Use wide-int interfaces.
26202         (native_encode_int): Likewise.
26203         (native_interpret_int): Likewise.
26204         (fold_unary_loc): Likewise.
26205         (pointer_may_wrap_p): Likewise.
26206         (size_low_cst): Likewise.
26207         (mask_with_tz): Likewise.
26208         (fold_binary_loc): Likewise.
26209         (fold_ternary_loc): Likewise.
26210         (multiple_of_p): Likewise.
26211         (tree_call_nonnegative_warnv_p): Update calls to
26212         tree_int_cst_min_precision and real_from_integer.
26213         (fold_negate_const): Use wide-int interfaces.
26214         (fold_abs_const): Likewise.
26215         (fold_relational_const): Use tree_int_cst_lt.
26216         (round_up_loc): Use wide-int interfaces.
26217         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
26218         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
26219         * gengtype.c: Remove include of double-int.h.
26220         (do_typedef): Use wide-int interfaces.
26221         (open_base_files): Add wide-int.h.
26222         (main): Add offset_int and widest_int typedefs.
26223         * gengtype-lex.l: Handle "^".
26224         (CXX_KEYWORD): Add "static".
26225         * gengtype-parse.c (require3): New.
26226         (require_template_declaration): Handle constant template arguments
26227         and nested templates.
26228         * gengtype-state.c: Don't include "double-int.h".
26229         * genpreds.c (write_one_predicate_function): Update comment.
26230         (write_tm_constrs_h): Add check for hval and lval use in
26231         CONST_WIDE_INT.
26232         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
26233         (add_to_sequence): Likewise.
26234         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
26235         and const_double_operand.
26236         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
26237         interfaces.
26238         * gimple-fold.c (get_base_constructor): Likewise.
26239         (fold_array_ctor_reference): Likewise.
26240         (fold_nonarray_ctor_reference): Likewise.
26241         (fold_const_aggregate_ref_1): Likewise.
26242         (gimple_val_nonnegative_real_p): Likewise.
26243         (gimple_fold_indirect_ref): Likewise.
26244         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
26245         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
26246         (struct slsr_cand_d): Change index to be widest_int.
26247         (struct incr_info_d): Change incr to be widest_int.
26248         (alloc_cand_and_find_basis): Use wide-int interfaces.
26249         (slsr_process_phi): Likewise.
26250         (backtrace_base_for_ref): Likewise.  Return a widest_int.
26251         (restructure_reference): Take a widest_int instead of a double_int.
26252         (slsr_process_ref): Use wide-int interfaces.
26253         (create_mul_ssa_cand): Likewise.
26254         (create_mul_imm_cand): Likewise.
26255         (create_add_ssa_cand): Likewise.
26256         (create_add_imm_cand): Take a widest_int instead of a double_int.
26257         (slsr_process_add): Use wide-int interfaces.
26258         (slsr_process_cast): Likewise.
26259         (slsr_process_copy): Likewise.
26260         (dump_candidate): Likewise.
26261         (dump_incr_vec): Likewise.
26262         (replace_ref): Likewise.
26263         (cand_increment): Likewise.  Return a widest_int.
26264         (cand_abs_increment): Likewise.
26265         (replace_mult_candidate): Take a widest_int instead of a double_int.
26266         (replace_unconditional_candidate): Use wide-int interfaces.
26267         (incr_vec_index): Take a widest_int instead of a double_int.
26268         (create_add_on_incoming_edge): Likewise.
26269         (create_phi_basis): Use wide-int interfaces.
26270         (replace_conditional_candidate): Likewise.
26271         (record_increment): Take a widest_int instead of a double_int.
26272         (record_phi_increments): Use wide-int interfaces.
26273         (phi_incr_cost): Take a widest_int instead of a double_int.
26274         (lowest_cost_path): Likewise.
26275         (total_savings): Likewise.
26276         (analyze_increments): Use wide-int interfaces.
26277         (ncd_with_phi): Take a widest_int instead of a double_int.
26278         (ncd_of_cand_and_phis): Likewise.
26279         (nearest_common_dominator_for_cands): Likewise.
26280         (insert_initializers): Use wide-int interfaces.
26281         (all_phi_incrs_profitable): Likewise.
26282         (replace_one_candidate): Likewise.
26283         (replace_profitable_candidates): Likewise.
26284         * godump.c: Include wide-int-print.h.
26285         (go_output_typedef): Use wide-int interfaces.
26286         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26287         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26288         (build_loop_iteration_domains): Likewise.
26289         * hooks.h: Include wide-int.h rather than double-int.h.
26290         (hook_bool_dint_dint_uint_bool_true): Delete.
26291         (hook_bool_wint_wint_uint_bool_true): Declare.
26292         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26293         (hook_bool_wint_wint_uint_bool_true): New.
26294         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26295         interfaces.
26296         (ubsan_expand_si_overflow_mul_check): Likewise.
26297         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26298         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26299         (get_ancestor_addr_info): Likewise.
26300         (ipa_modify_call_arguments): Likewise.
26301         * loop-doloop.c (doloop_modify): Likewise.
26302         (doloop_optimize): Likewise.
26303         * loop-iv.c (iv_number_of_iterations): Likewise.
26304         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26305         (unroll_loop_constant_iterations): Likewise.
26306         (decide_unroll_runtime_iterations): Likewise.
26307         (unroll_loop_runtime_iterations): Likewise.
26308         (decide_peel_simple): Likewise.
26309         (decide_unroll_stupid): Likewise.
26310         * lto-streamer-in.c (streamer_read_wi): Add.
26311         (input_cfg): Use wide-int interfaces.
26312         (lto_input_tree_1): Likewise.
26313         * lto-streamer-out.c (streamer_write_wi): Add.
26314         (hash_tree): Use wide-int interfaces.
26315         (output_cfg): Likewise.
26316         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26317         (GTFILES): Add wide-int.h and signop.h.
26318         (TAGS): Look for .cc files too.
26319         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26320         * optabs.c (expand_subword_shift): Likewise.
26321         (expand_doubleword_shift): Likewise.
26322         (expand_absneg_bit): Likewise.
26323         (expand_copysign_absneg): Likewise.
26324         (expand_copysign_bit): Likewise.
26325         * postreload.c (reload_cse_simplify_set): Likewise.
26326         * predict.c (predict_iv_comparison): Likewise.
26327         * pretty-print.h: Include wide-int-print.h.
26328         (pp_wide_int) New.
26329         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26330         * print-tree.c: Include wide-int-print.h.
26331         (print_node_brief): Use wide-int interfaces.
26332         (print_node): Likewise.
26333         * read-rtl.c (validate_const_wide_int): New.
26334         (read_rtx_code): Add CONST_WIDE_INT case.
26335         * real.c: Include wide-int.h.
26336         (real_to_integer2): Delete.
26337         (real_to_integer): New function, returning a wide_int.
26338         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26339         (ten_to_ptwo): Update call to real_from_integer.
26340         (real_digit): Likewise.
26341         * real.h: Include signop.h, wide-int.h and insn-modes.h.
26342         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26343         (REAL_VALUE_TO_INT): Delete.
26344         (real_to_integer): Declare a wide-int form.
26345         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26346         * recog.c (const_int_operand): Improve comment.
26347         (const_scalar_int_operand): New.
26348         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26349         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26350         (split_double): Likewise.
26351         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
26352         (rtx_size): Likewise.
26353         (rtx_alloc_stat_v): New.
26354         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
26355         (cwi_output_hex): New.
26356         (iterative_hash_rtx): Handle CONST_WIDE_INT.
26357         (cwi_check_failed_bounds): New.
26358         * rtl.def (CONST_WIDE_INT): New.
26359         * rtl.h: Include <utility> and wide-int.h.
26360         (struct hwivec_def): New.
26361         (CWI_GET_NUM_ELEM): New.
26362         (CWI_PUT_NUM_ELEM): New.
26363         (struct rtx_def): Add num_elem and hwiv.
26364         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
26365         (CASE_CONST_UNIQUE): Likewise.
26366         (CASE_CONST_ANY): Likewise.
26367         (CONST_SCALAR_INT_P): Likewise.
26368         (CONST_WIDE_INT_P): New.
26369         (CWI_ELT): New.
26370         (HWIVEC_CHECK): New.
26371         (cwi_check_failed_bounds): New.
26372         (CWI_ELT): New.
26373         (HWIVEC_CHECK): New.
26374         (CONST_WIDE_INT_VEC) New.
26375         (CONST_WIDE_INT_NUNITS) New.
26376         (CONST_WIDE_INT_ELT) New.
26377         (rtx_mode_t): New type.
26378         (wi::int_traits <rtx_mode_t>): New.
26379         (wi::shwi): New.
26380         (wi::min_value): New.
26381         (wi::max_value): New.
26382         (rtx_alloc_v) New.
26383         (const_wide_int_alloc): New.
26384         (immed_wide_int_const): New.
26385         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
26386         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
26387         * signop.h: New file.
26388         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
26389         (simplify_const_unary_operation): Use wide-int interfaces.
26390         (simplify_binary_operation_1): Likewise.
26391         (simplify_const_binary_operation): Likewise.
26392         (simplify_const_relational_operation): Likewise.
26393         (simplify_immed_subreg): Likewise.
26394         * stmt.c (expand_case): Likewise.
26395         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
26396         signop rather than a bool.
26397         * stor-layout.c (layout_type): Use wide-int interfaces.
26398         (initialize_sizetypes): Update calls to
26399         set_min_and_max_values_for_integral_type.
26400         (set_min_and_max_values_for_integral_type): Take a signop rather
26401         than a bool.  Use wide-int interfaces.
26402         (fixup_signed_type): Update accordingly.  Remove
26403         HOST_BITS_PER_DOUBLE_INT limit.
26404         (fixup_unsigned_type): Likewise.
26405         * system.h (STATIC_CONSTANT_P): New.
26406         (STATIC_ASSERT): New.
26407         * target.def (can_use_doloop_p): Take widest_ints rather than
26408         double_ints.
26409         * target.h: Include wide-int.h rather than double-int.h.
26410         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
26411         than double_ints.
26412         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
26413         rather than INT_CST_LT_UNSIGNED.
26414         (can_use_doloop_if_innermost): Take widest_ints rather than
26415         double_ints.
26416         * tree-affine.c: Include wide-int-print.h.
26417         (double_int_ext_for_comb): Delete.
26418         (wide_int_ext_for_comb): New.
26419         (aff_combination_zero): Use wide-int interfaces.
26420         (aff_combination_const): Take a widest_int instead of a double_int.
26421         (aff_combination_elt): Use wide-int interfaces.
26422         (aff_combination_scale): Take a widest_int instead of a double_int.
26423         (aff_combination_add_elt): Likewise.
26424         (aff_combination_add_cst): Likewise.
26425         (aff_combination_add): Use wide-int interfaces.
26426         (aff_combination_convert): Likewise.
26427         (tree_to_aff_combination): Likewise.
26428         (add_elt_to_tree): Take a widest_int instead of a double_int.
26429         (aff_combination_to_tree): Use wide-int interfaces.
26430         (aff_combination_remove_elt): Likewise.
26431         (aff_combination_add_product): Take a widest_int instead of
26432         a double_int.
26433         (aff_combination_mult): Use wide-int interfaces.
26434         (aff_combination_expand): Likewise.
26435         (double_int_constant_multiple_p): Delete.
26436         (wide_int_constant_multiple_p): New.
26437         (aff_combination_constant_multiple_p): Take a widest_int pointer
26438         instead of a double_int pointer.
26439         (print_aff): Use wide-int interfaces.
26440         (get_inner_reference_aff): Take a widest_int pointer
26441         instead of a double_int pointer.
26442         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
26443         * tree-affine.h: Include wide-int.h.
26444         (struct aff_comb_elt): Change type of coef to widest_int.
26445         (struct affine_tree_combination): Change type of offset to widest_int.
26446         (double_int_ext_for_comb): Delete.
26447         (wide_int_ext_for_comb): New.
26448         (aff_combination_const): Use widest_int instead of double_int.
26449         (aff_combination_scale): Likewise.
26450         (aff_combination_add_elt): Likewise.
26451         (aff_combination_constant_multiple_p): Likewise.
26452         (get_inner_reference_aff): Likewise.
26453         (aff_comb_cannot_overlap_p): Likewise.
26454         (aff_combination_zero_p): Use wide-int interfaces.
26455         * tree.c: Include tree.h.
26456         (init_ttree): Use make_int_cst.
26457         (tree_code_size): Removed code for INTEGER_CST case.
26458         (tree_size): Add INTEGER_CST case.
26459         (make_node_stat): Update comment.
26460         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
26461         (build_int_cst_type): Use wide-int interfaces.
26462         (double_int_to_tree): Likewise.
26463         (double_int_fits_to_tree_p): Delete.
26464         (force_fit_type_double): Delete.
26465         (force_fit_type): New.
26466         (int_cst_hash_hash): Use wide-int interfaces.
26467         (int_cst_hash_eq): Likewise.
26468         (build_int_cst_wide): Delete.
26469         (wide_int_to_tree): New.
26470         (cache_integer_cst): Use wide-int interfaces.
26471         (build_low_bits_mask): Likewise.
26472         (cst_and_fits_in_hwi): Likewise.
26473         (real_value_from_int_cst): Likewise.
26474         (make_int_cst_stat): New.
26475         (integer_zerop): Use wide_int interfaces.
26476         (integer_onep): Likewise.
26477         (integer_all_onesp): Likewise.
26478         (integer_pow2p): Likewise.
26479         (integer_nonzerop): Likewise.
26480         (tree_log2): Likewise.
26481         (tree_floor_log2): Likewise.
26482         (tree_ctz): Likewise.
26483         (int_size_in_bytes): Likewise.
26484         (mem_ref_offset): Return an offset_int rather than a double_int.
26485         (build_type_attribute_qual_variant): Use wide_int interfaces.
26486         (type_hash_eq): Likewise
26487         (tree_int_cst_equal): Likewise.
26488         (tree_int_cst_lt): Delete.
26489         (tree_int_cst_compare): Likewise.
26490         (tree_fits_shwi_p): Use wide_int interfaces.
26491         (tree_fits_uhwi_p): Likewise.
26492         (tree_int_cst_sign_bit): Likewise.
26493         (tree_int_cst_sgn): Likewise.
26494         (tree_int_cst_min_precision): Take a signop rather than a bool.
26495         (simple_cst_equal): Use wide_int interfaces.
26496         (compare_tree_int): Likewise.
26497         (iterative_hash_expr): Likewise.
26498         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
26499         INT_CST_LT.
26500         (get_type_static_bounds): Use wide_int interfaces.
26501         (tree_int_cst_elt_check_failed): New.
26502         (build_common_tree_nodes): Reordered to set prec before filling in
26503         value.
26504         (int_cst_value): Check cst_and_fits_in_hwi.
26505         (widest_int_cst_value): Use wide_int interfaces.
26506         (upper_bound_in_type): Likewise.
26507         (lower_bound_in_type): Likewise.
26508         (num_ending_zeros): Likewise.
26509         (drop_tree_overflow): Likewise.
26510         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
26511         (gen_conditions_for_pow_cst_base): Likewise.
26512         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
26513         (group_case_labels_stmt): Use wide-int interfaces.
26514         (verify_gimple_assign_binary): Likewise.
26515         (print_loop): Likewise.
26516         * tree-chrec.c (tree_fold_binomial): Likewise.
26517         * tree-core.h (struct tree_base): Add int_length.
26518         (struct tree_int_cst): Change rep of value.
26519         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
26520         (dr_may_alias_p): Likewise.
26521         (max_stmt_executions_tree): Likewise.
26522         * tree.def (INTEGER_CST): Update comment.
26523         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
26524         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
26525         * tree-dump.c: Include wide-int.h and wide-int-print.h.
26526         (dequeue_and_dump): Use wide-int interfaces.
26527         * tree.h: Include wide-int.h.
26528         (NULL_TREE): Moved to earlier loc in file.
26529         (TREE_INT_CST_ELT_CHECK): New.
26530         (tree_int_cst_elt_check_failed): New.
26531         (TYPE_SIGN): New.
26532         (TREE_INT_CST): Delete.
26533         (TREE_INT_CST_LOW): Use wide-int interfaces.
26534         (TREE_INT_CST_HIGH): Delete.
26535         (TREE_INT_CST_NUNITS): New.
26536         (TREE_INT_CST_EXT_NUNITS): Likewise.
26537         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
26538         (TREE_INT_CST_ELT): Likewise.
26539         (INT_CST_LT): Delete.
26540         (tree_int_cst_elt_check): New (two forms).
26541         (type_code_size): Update comment.
26542         (make_int_cst_stat, make_int_cst): New.
26543         (tree_to_double_int): Delete.
26544         (double_int_fits_to_tree_p): Delete.
26545         (force_fit_type_double): Delete.
26546         (build_int_cstu): Replace with out-of-line function.
26547         (build_int_cst_wide): Delete.
26548         (tree_int_cst_lt): Define inline.
26549         (tree_int_cst_le): New.
26550         (tree_int_cst_compare): Define inline.
26551         (tree_int_cst_min_precision): Take a signop rather than a bool.
26552         (wi::int_traits <const_tree>): New.
26553         (wi::int_traits <tree>): New.
26554         (wi::extended_tree): New.
26555         (wi::int_traits <wi::extended_tree>): New.
26556         (wi::to_widest): New.
26557         (wi::to_offset): New.
26558         (wi::fits_to_tree_p): New.
26559         (wi::min_value): New.
26560         (wi::max_value): New.
26561         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
26562         (copy_tree_body_r): Likewise.
26563         * tree-object-size.c (compute_object_offset): Likewise.
26564         (addr_object_size): Likewise.
26565         * tree-predcom.c: Include wide-int-print.h.
26566         (struct dref_d): Change type of offset to widest_int.
26567         (dump_dref): Call wide-int printer.
26568         (aff_combination_dr_offset): Use wide-int interfaces.
26569         (determine_offset): Take a widest_int pointer rather than a
26570         double_int pointer.
26571         (split_data_refs_to_components): Use wide-int interfaces.
26572         (suitable_component_p): Likewise.
26573         (order_drefs): Likewise.
26574         (add_ref_to_chain): Likewise.
26575         (valid_initializer_p): Likewise.
26576         (determine_roots_comp): Likewise.
26577         * tree-pretty-print.c: Include wide-int-print.h.
26578         (dump_generic_node): Use wide-int interfaces.
26579         * tree-sra.c (sra_ipa_modify_expr): Likewise.
26580         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
26581         (move_fixed_address_to_symbol): Likewise.
26582         (move_hint_to_base): Likewise.
26583         (move_pointer_to_base): Likewise.
26584         (move_variant_to_index): Likewise.
26585         (most_expensive_mult_to_index): Likewise.
26586         (addr_to_parts): Likewise.
26587         (copy_ref_info): Likewise.
26588         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26589         (indirect_refs_may_alias_p): Likewise.
26590         (stmt_kills_ref_p_1): Likewise.
26591         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
26592         * tree-ssa-ccp.c: Update comment at top of file.  Include
26593         wide-int-print.h.
26594         (struct prop_value_d): Change type of mask to widest_int.
26595         (extend_mask): New function.
26596         (dump_lattice_value): Use wide-int interfaces.
26597         (get_default_value): Likewise.
26598         (set_constant_value): Likewise.
26599         (set_value_varying): Likewise.
26600         (valid_lattice_transition): Likewise.
26601         (set_lattice_value): Likewise.
26602         (value_to_double_int): Delete.
26603         (value_to_wide_int): New.
26604         (get_value_from_alignment): Use wide-int interfaces.
26605         (get_value_for_expr): Likewise.
26606         (do_dbg_cnt): Likewise.
26607         (ccp_finalize): Likewise.
26608         (ccp_lattice_meet): Likewise.
26609         (bit_value_unop_1): Use widest_ints rather than double_ints.
26610         (bit_value_binop_1): Likewise.
26611         (bit_value_unop): Use wide-int interfaces.
26612         (bit_value_binop): Likewise.
26613         (bit_value_assume_aligned): Likewise.
26614         (evaluate_stmt): Likewise.
26615         (ccp_fold_stmt): Likewise.
26616         (visit_cond_stmt): Likewise.
26617         (ccp_visit_stmt): Likewise.
26618         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26619         (constant_pointer_difference): Likewise.
26620         (associate_pointerplus): Likewise.
26621         (combine_conversions): Likewise.
26622         * tree-ssa-loop.h: Include wide-int.h.
26623         (struct tree_niter_desc): Change type of max to widest_int.
26624         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26625         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26626         (remove_redundant_iv_tests): Likewise.
26627         (canonicalize_loop_induction_variables): Likewise.
26628         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26629         (constant_multiple_of): Take a widest_int pointer instead of
26630         a double_int pointer.
26631         (get_computation_aff): Use wide-int interfaces.
26632         (ptr_difference_cost): Likewise.
26633         (difference_cost): Likewise.
26634         (get_loop_invariant_expr_id): Likewise.
26635         (get_computation_cost_at): Likewise.
26636         (iv_elimination_compare_lt): Likewise.
26637         (may_eliminate_iv): Likewise.
26638         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26639         instead of double_int.
26640         (max_loop_iterations): Likewise.
26641         (max_stmt_executions): Likewise.
26642         (estimated_stmt_executions): Likewise.
26643         * tree-ssa-loop-niter.c: Include wide-int-print.h.
26644         (split_to_var_and_offset): Use wide-int interfaces.
26645         (determine_value_range): Likewise.
26646         (bound_difference_of_offsetted_base): Likewise.
26647         (bounds_add): Take a widest_int instead of a double_int.
26648         (number_of_iterations_ne_max): Use wide-int interfaces.
26649         (number_of_iterations_ne): Likewise.
26650         (number_of_iterations_lt_to_ne): Likewise.
26651         (assert_loop_rolls_lt): Likewise.
26652         (number_of_iterations_lt): Likewise.
26653         (number_of_iterations_le): Likewise.
26654         (number_of_iterations_cond): Likewise.
26655         (number_of_iterations_exit): Likewise.
26656         (finite_loop_p): Likewise.
26657         (derive_constant_upper_bound_assign): Likewise.
26658         (derive_constant_upper_bound): Return a widest_int.
26659         (derive_constant_upper_bound_ops): Likewise.
26660         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26661         (record_estimate): Take a widest_int rather than a double_int.
26662         (record_nonwrapping_iv): Use wide-int interfaces.
26663         (double_int_cmp): Delete.
26664         (wide_int_cmp): New.
26665         (bound_index): Take a widest_int rather than a double_int.
26666         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26667         (maybe_lower_iteration_bound): Likewise.
26668         (estimate_numbers_of_iterations_loop): Likewise.
26669         (estimated_loop_iterations): Take a widest_int pointer than than
26670         a double_int pointer.
26671         (estimated_loop_iterations_int): Use wide-int interfaces.
26672         (max_loop_iterations): Take a widest_int pointer than than
26673         a double_int pointer.
26674         (max_loop_iterations_int): Use wide-int interfaces.
26675         (max_stmt_executions): Take a widest_int pointer than than
26676         a double_int pointer.
26677         (estimated_stmt_executions): Likewise.
26678         (n_of_executions_at_most): Use wide-int interfaces.
26679         (scev_probably_wraps_p): Likewise.
26680         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26681         to real_to_integer.
26682         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26683         interfaces.
26684         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26685         double_ints.  Adjust for trailing_wide_ints <3> representation.
26686         (set_nonzero_bits): Likewise.
26687         (get_range_info): Return wide_ints rather than double_ints.
26688         Adjust for trailing_wide_ints <3> representation.
26689         (get_nonzero_bits): Likewise.
26690         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26691         representation.
26692         * tree-ssanames.h (struct range_info_def): Replace min, max and
26693         nonzero_bits with a trailing_wide_ints <3>.
26694         (set_range_info): Use wide_int_refs rather than double_ints.
26695         (set_nonzero_bits): Likewise.
26696         (get_range_info): Return wide_ints rather than double_ints.
26697         (get_nonzero_bits): Likewise.
26698         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
26699         * tree-ssa-pre.c (phi_translate_1): Likewise.
26700         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
26701         (acceptable_pow_call): Likewise.
26702         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
26703         interfaces.
26704         (vn_reference_fold_indirect): Likewise.
26705         (vn_reference_maybe_forwprop_address): Likewise.
26706         (valueize_refs_1): Likewise.
26707         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
26708         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
26709         tree_int_cst_lt and tree_int_cst_le.
26710         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
26711         interfaces.
26712         (streamer_alloc_tree): Likewise.
26713         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
26714         (streamer_write_tree_header): Likewise.
26715         (streamer_write_integer_cst): Likewise.
26716         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26717         (build_constructors): Likewise.
26718         (array_value_type): Likewise.
26719         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26720         (vect_check_gather): Likewise.
26721         * tree-vect-generic.c (build_replicated_const): Likewise.
26722         (expand_vector_divmod): Likewise.
26723         * tree-vect-loop.c (vect_transform_loop): Likewise.
26724         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26725         (vect_do_peeling_for_alignment): Likewise.
26726         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26727         * tree-vrp.c: Include wide-int.h.
26728         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26729         (extract_range_from_assert): Use wide-int interfaces.
26730         (vrp_int_const_binop): Likewise.
26731         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26732         double_int pointers.
26733         (ranges_from_anti_range): Use wide-int interfaces.
26734         (quad_int_cmp): Delete.
26735         (quad_int_pair_sort): Likewise.
26736         (extract_range_from_binary_expr_1): Use wide-int interfaces.
26737         (extract_range_from_unary_expr_1): Likewise.
26738         (adjust_range_with_scev): Likewise.
26739         (masked_increment): Take and return wide_ints rather than double_ints.
26740         (register_edge_assert_for_2): Use wide-int interfaces.
26741         (check_array_ref): Likewise.
26742         (search_for_addr_array): Likewise.
26743         (maybe_set_nonzero_bits): Likewise.
26744         (union_ranges): Pass an integer of the correct type instead of
26745         using integer_one_node.
26746         (intersect_ranges): Likewise.
26747         (simplify_truth_ops_using_ranges): Likewise.
26748         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
26749         (range_fits_type_p): Likewise.
26750         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
26751         a bool.
26752         (simplify_conversion_using_ranges): Use wide-int interfaces.
26753         (simplify_float_conversion_using_ranges): Likewise.
26754         (vrp_finalize): Likewise.
26755         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
26756         (gimple_stringops_transform): Likewise.
26757         * varasm.c (decode_addr_const): Likewise.
26758         (const_hash_1): Likewise.
26759         (const_rtx_hash_1): Likewise
26760         (output_constant): Likewise.
26761         (array_size_for_constructor): Likewise.
26762         (output_constructor_regular_field): Likewise.
26763         (output_constructor_bitfield): Likewise.
26764         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
26765         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
26766         GENERATOR_FILEs.
26767         * gencheck.c: Define BITS_PER_UNIT.
26768         * wide-int.cc: New.
26769         * wide-int.h: New.
26770         * wide-int-print.cc: New.
26771         * wide-int-print.h: New.
26772
26773 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26774
26775         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
26776
26777 2014-05-06  Richard Biener  <rguenther@suse.de>
26778
26779         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
26780         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
26781         (TODO_verify_all): Adjust.
26782         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
26783         TODO_verify_stmts and TODO_verify_rtl_sharing.
26784         * bb-reorder.c: Likewise.
26785         * cfgexpand.c: Likewise.
26786         * cprop.c: Likewise.
26787         * cse.c: Likewise.
26788         * function.c: Likewise.
26789         * fwprop.c: Likewise.
26790         * gcse.c: Likewise.
26791         * gimple-ssa-isolate-paths.c: Likewise.
26792         * gimple-ssa-strength-reduction.c: Likewise.
26793         * ipa-split.c: Likewise.
26794         * loop-init.c: Likewise.
26795         * loop-unroll.c: Likewise.
26796         * lower-subreg.c: Likewise.
26797         * modulo-sched.c: Likewise.
26798         * postreload-gcse.c: Likewise.
26799         * predict.c: Likewise.
26800         * recog.c: Likewise.
26801         * sched-rgn.c: Likewise.
26802         * store-motion.c: Likewise.
26803         * tracer.c: Likewise.
26804         * trans-mem.c: Likewise.
26805         * tree-call-cdce.c: Likewise.
26806         * tree-cfg.c: Likewise.
26807         * tree-cfgcleanup.c: Likewise.
26808         * tree-complex.c: Likewise.
26809         * tree-eh.c: Likewise.
26810         * tree-emutls.c: Likewise.
26811         * tree-if-conv.c: Likewise.
26812         * tree-into-ssa.c: Likewise.
26813         * tree-loop-distribution.c: Likewise.
26814         * tree-object-size.c: Likewise.
26815         * tree-parloops.c: Likewise.
26816         * tree-pass.h: Likewise.
26817         * tree-sra.c: Likewise.
26818         * tree-ssa-ccp.c: Likewise.
26819         * tree-ssa-copy.c: Likewise.
26820         * tree-ssa-copyrename.c: Likewise.
26821         * tree-ssa-dce.c: Likewise.
26822         * tree-ssa-dom.c: Likewise.
26823         * tree-ssa-dse.c: Likewise.
26824         * tree-ssa-forwprop.c: Likewise.
26825         * tree-ssa-ifcombine.c: Likewise.
26826         * tree-ssa-loop-ch.c: Likewise.
26827         * tree-ssa-loop-ivcanon.c: Likewise.
26828         * tree-ssa-loop.c: Likewise.
26829         * tree-ssa-math-opts.c: Likewise.
26830         * tree-ssa-phiopt.c: Likewise.
26831         * tree-ssa-phiprop.c: Likewise.
26832         * tree-ssa-pre.c: Likewise.
26833         * tree-ssa-reassoc.c: Likewise.
26834         * tree-ssa-sink.c: Likewise.
26835         * tree-ssa-strlen.c: Likewise.
26836         * tree-ssa-tail-merge.c: Likewise.
26837         * tree-ssa-uncprop.c: Likewise.
26838         * tree-switch-conversion.c: Likewise.
26839         * tree-tailcall.c: Likewise.
26840         * tree-vect-generic.c: Likewise.
26841         * tree-vectorizer.c: Likewise.
26842         * tree-vrp.c: Likewise.
26843         * tsan.c: Likewise.
26844         * var-tracking.c: Likewise.
26845         * bt-load.c: Likewise.
26846         * cfgcleanup.c: Likewise.
26847         * combine-stack-adj.c: Likewise.
26848         * combine.c: Likewise.
26849         * compare-elim.c: Likewise.
26850         * config/epiphany/resolve-sw-modes.c: Likewise.
26851         * config/i386/i386.c: Likewise.
26852         * config/mips/mips.c: Likewise.
26853         * config/s390/s390.c: Likewise.
26854         * config/sh/sh_treg_combine.cc: Likewise.
26855         * config/sparc/sparc.c: Likewise.
26856         * dce.c: Likewise.
26857         * dse.c: Likewise.
26858         * final.c: Likewise.
26859         * ifcvt.c: Likewise.
26860         * mode-switching.c: Likewise.
26861         * passes.c: Likewise.
26862         * postreload.c: Likewise.
26863         * ree.c: Likewise.
26864         * reg-stack.c: Likewise.
26865         * regcprop.c: Likewise.
26866         * regrename.c: Likewise.
26867         * web.c: Likewise.
26868
26869 2014-05-06  Richard Biener  <rguenther@suse.de>
26870
26871         PR middle-end/61070
26872         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
26873         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
26874
26875 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
26876
26877         PR ipa/60965
26878         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
26879
26880 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
26881             Tom de Vries  <tom@codesourcery.com>
26882
26883         * target.def (call_fusage_contains_non_callee_clobbers): New
26884         DEFHOOKPOD.
26885         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
26886         Hooks to @menu.
26887         (@node Miscellaneous Register Hooks): New node.
26888         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
26889         * doc/tm.texi: Regenerate.
26890
26891 2014-05-05  Marek Polacek  <polacek@redhat.com>
26892
26893         PR driver/61065
26894         * opts.c (common_handle_option): Call error_at instead of warning_at.
26895
26896 2014-05-05  Richard Biener  <rguenther@suse.de>
26897
26898         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
26899         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
26900         under the TODO_verify_il umbrella.
26901
26902 2014-05-05  Richard Biener  <rguenther@suse.de>
26903
26904         * passes.c (execute_function_todo): Move TODO_verify_flow under
26905         the TODO_verify_ul umbrella.
26906
26907 2014-05-05  Richard Biener  <rguenther@suse.de>
26908
26909         PR middle-end/61010
26910         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
26911         X & CST away from a CST that is the mask of a mode.
26912
26913 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26914
26915         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
26916         int argument to enum machine_mode.
26917         (picochip_class_max_nregs): Ditto.
26918         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
26919         (picochip_class_max_nregs): Ditto.
26920
26921 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26922
26923         * target.def: Add new target hook.
26924         * doc/tm.texi: Regenerate.
26925         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
26926         * targhooks.c (default_keep_leaf_when_profiled): New function.
26927
26928         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
26929         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
26930
26931 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
26932
26933         PR tree-optimization/60363
26934         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
26935         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
26936         (update_destination_phis): New parameter.
26937         (create_edge_and_update_destination_phis): Ditto.
26938         (ssa_fix_duplicate_block_edges): Pass new arguments.
26939         (thread_single_edge): Ditto.
26940
26941 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
26942
26943         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
26944         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
26945         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
26946         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
26947         Use RS6000_BTM_HARD_FLOAT.
26948         (BU_MISC_2): Likewise.
26949         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
26950         RS6000_BTM_HARD_FLOAT.
26951         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
26952         is explicitly used.
26953         (rs6000_invalid_builtin): Add hard floating builtin support.
26954         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
26955         hard float builtins.
26956         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
26957
26958 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26959
26960         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
26961         Add missing function* argument.
26962
26963 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26964
26965         * lra-constraints.c (valid_address_p): Move earlier in file.
26966         Add a constraint argument to the address_info version.
26967         (satisfies_memory_constraint_p): New function.
26968         (satisfies_address_constraint_p): Likewise.
26969         (process_alt_operands, curr_insn_transform): Use them.
26970         (process_address): Pass the constraint to valid_address_p when
26971         checking address operands.
26972
26973 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26974
26975         * config/mips/mips.c (mips_isa_rev): New variable.
26976         (mips_set_architecture): Set it.
26977         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
26978         from mips_isa_rev.
26979         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
26980         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
26981         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
26982         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
26983         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
26984         conditions in terms of mips_isa_rev.
26985         (mips_isa_rev): Declare.
26986
26987 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26988
26989         * config/sh/sh-mem.cc: Use tabs instead of spaces.
26990         (prob_unlikely, prob_likely): Make variables const.
26991
26992 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
26993
26994         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
26995
26996 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
26997
26998         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
26999
27000 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27001
27002         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27003         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27004         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27005         functions.
27006         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27007         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27008         sh_pass_in_reg_p.
27009         Replace usage of ROUND_REG with sh_round_reg.
27010         Use CEIL instead of ROUND_ADVANCE.
27011
27012 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27013
27014         PR target/61026
27015         * config/sh/sh.c: Include stdlib headers before everything else.
27016
27017 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
27018
27019         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27020         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27021         (gimplify_adjust_omp_clauses): Simd region is never
27022         directly nested in combined parallel.  Instead, for linear
27023         with copyin/copyout, if in combined for simd loop, make decl
27024         firstprivate/lastprivate on OMP_FOR.
27025         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27026         expand_omp_for_static_chunk): When setting endvar, also set
27027         fd->loop.v to the same value.
27028
27029 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27030
27031         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27032
27033 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
27034
27035         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27036         expression.
27037
27038 2014-05-02  Marek Polacek  <polacek@redhat.com>
27039
27040         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27041
27042 2014-05-02  Kito Cheng  <kito@0xlab.org>
27043
27044         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27045         to a C expression marco.
27046         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27047         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27048         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27049         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27050         HONOR_REG_ALLOC_ORDER.
27051         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27052
27053 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27054
27055         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27056
27057 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27058
27059         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27060
27061 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
27062
27063         * tree-if-conv.c (is_cond_scalar_reduction): New function.
27064         (convert_scalar_cond_reduction): Likewise.
27065         (predicate_scalar_phi): Add recognition and transformation
27066         of simple conditioanl reduction to be vectorizable.
27067
27068 2014-05-01  Marek Polacek  <polacek@redhat.com>
27069
27070         PR c/43245
27071         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27072
27073 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
27074
27075         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27076         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27077         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27078         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27079         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27080         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27081         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27082         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27083
27084 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
27085
27086         * config/arc/arc.opt (mlra): Move comment above option name
27087         to avoid mis-parsing as language options.
27088
27089 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27090
27091         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27092         * config/sol2.h: ... here.
27093         * config/sol2-10.h: Remove.
27094
27095         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27096         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27097         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27098         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27099         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27100         * config/sol2.h: ... here.
27101         (SECTION_NAME_FORMAT): Don't redefine.
27102         (STARTFILE_ARCH32_SPEC): Rename to ...
27103         (STARTFILE_ARCH_SPEC): ... this.
27104         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27105         * config/sparc/sol2.h: ... here.
27106         (SECTION_NAME_FORMAT): Don't undef.
27107         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27108         (SUBTARGET_EXTRA_SPECS): Remove.
27109         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27110
27111         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27112         (MD_STARTFILE_PREFIX): Remove.
27113         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27114         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27115         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27116         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27117         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27118         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27119         * config/i386/sol2.h: ... here.
27120         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27121         * config/i386/sol2-bi.h: Remove.
27122         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27123         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27124
27125         * config/i386/t-sol2-64: Rename to ...
27126         * config/i386/t-sol2: ... this.
27127         * config/sparc/t-sol2-64: Rename to ...
27128         * config/sparc/t-sol2: ... this.
27129
27130         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27131         sol2_tm_file_head, sol2_tm_file_tail.
27132         Include ${cpu_type}/sol2.h before sol2.h.
27133         Remove sol2-10.h.
27134         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27135         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27136         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27137         Reflect i386/t-sol2-64 renaming.
27138         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27139         Reflect sparc/t-sol2-64 renaming.
27140
27141 2014-04-30  Richard Biener  <rguenther@suse.de>
27142
27143         * passes.c (execute_function_todo): Move TODO_verify_stmts
27144         and TODO_verify_ssa under the TODO_verify_il umbrella.
27145         * tree-ssa.h (verify_ssa): Adjust prototype.
27146         * tree-ssa.c (verify_ssa): Add parameter to tell whether
27147         we should verify SSA operands.
27148         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27149         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27150         whether we should verify whether not throwing stmts have EH info.
27151         * graphite-scop-detection.c (create_sese_edges): Adjust.
27152         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27153         * tree-eh.c (lower_try_finally_switch): Do not add the
27154         default case label twice.
27155
27156 2014-04-30  Marek Polacek  <polacek@redhat.com>
27157
27158         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27159         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27160         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27161         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27162
27163 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
27164
27165         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27166         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27167         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27168         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27169         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27170         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27171         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27172         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27173
27174 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
27175
27176         * tree-cfg.c (dump_function_to_file): Dump the return type of
27177         functions, in a line to itself before the function body, mimicking
27178         the layout of a C function.
27179
27180 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
27181
27182         PR tree-optimization/60971
27183         * tree-tailcall.c (process_assignment): Reject conversions which
27184         reduce precision.
27185
27186 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27187
27188         * calls.c (initialize_argument_information): Always treat
27189         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27190         (expand_call): Likewise.
27191         (emit_library_call_calue_1): Likewise.
27192         * expr.c (PUSH_ARGS_REVERSED): Do not define.
27193         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27194         code accordingly.
27195
27196 2014-04-29  Nick Clifton  <nickc@redhat.com>
27197
27198         * config/msp430/msp430.md (umulsidi): Fix typo.
27199         (mulhisi3): Enable even inside interrupt handlers.
27200         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27201         bigger return address pushed in large mode.
27202
27203 2014-04-29  Nick Clifton  <nickc@redhat.com>
27204
27205         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27206         (arc_init_reg_tables): Use a machine_mode enum to iterate over
27207         available modes.
27208         * config/m32r/m32r.c (init_reg_tables): Likewise.
27209         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27210         enum to hold the modes.
27211
27212 2014-04-29  Richard Biener  <rguenther@suse.de>
27213
27214         * dominance.c (free_dominance_info): Add overload with
27215         function parameter.
27216         (dom_info_state): Likewise.
27217         (dom_info_available_p): Likewise.
27218         * basic-block.h (free_dominance_info, dom_info_state,
27219         dom_info_available_p): Declare overloads.
27220         * passes.c (execute_function_todo): Verify that verifiers
27221         don't change dominator info state.  Drop dominator info
27222         for IPA pass invocations.
27223         * cgraph.c (release_function_body): Restore asserts that
27224         dominator information is released.
27225
27226 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
27227
27228         * doc/invoke.texi: Fix typo.
27229         * tree-vrp.c: Fix typos.
27230         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
27231
27232 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27233
27234         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
27235
27236 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
27237
27238         * config/aarch64/aarch64-builtins.c
27239         (aarch64_types_storestruct_lane_qualifiers): New.
27240         (TYPES_STORESTRUCT_LANE): Likewise.
27241         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
27242         (st3_lane): Likewise.
27243         (st4_lane): Likewise.
27244         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
27245         (vec_store_lanesci_lane<mode>): Likewise.
27246         (vec_store_lanesxi_lane<mode>): Likewise.
27247         (aarch64_st2_lane<VQ:mode>): Likewise.
27248         (aarch64_st3_lane<VQ:mode>): Likewise.
27249         (aarch64_st4_lane<VQ:mode>): Likewise.
27250         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
27251         * config/aarch64/arm_neon.h
27252         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27253         use new macro arguments.
27254         (__ST3_LANE_FUNC): Likewise.
27255         (__ST4_LANE_FUNC): Likewise.
27256         * config/aarch64/iterators.md (V_TWO_ELEM): New.
27257         (V_THREE_ELEM): Likewise.
27258         (V_FOUR_ELEM): Likewise.
27259
27260 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
27261
27262         * doc/gimple.texi: Replace the description of the now-defunct
27263         union gimple_statement_d with a diagram showing the
27264         gimple_statement_base class hierarchy and its relationships to
27265         the GSS_ and GIMPLE_ enums.
27266
27267 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
27268
27269         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27270         * config/aarch64/aarch64.c
27271         (aarch64_cannot_change_mode_class): Weaken conditions.
27272         (aarch64_modes_tieable_p): New.
27273         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27274
27275 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
27276
27277         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27278         (loadsync_<mode>): Change mode.
27279         (load_quadpti, store_quadpti): New.
27280         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27281         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27282
27283 2014-04-28  Martin Jambor  <mjambor@suse.cz>
27284
27285         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27286         same alias type as the original statement.
27287         (subreplacement_assignment_data): New type.
27288         (handle_unscalarized_data_in_subtree): New type of parameter,
27289         generate new memory accesses with same alias type as the original
27290         statement.
27291         (load_assign_lhs_subreplacements): Likewise.
27292         (sra_modify_constructor_assign): Generate new memory accesses with
27293         same alias type as the original statement.
27294
27295 2014-04-28  Richard Biener  <rguenther@suse.de>
27296
27297         * tree-pass.h (TODO_verify_il): Define.
27298         (TODO_verify_all): Complete properly.
27299         * passes.c (execute_function_todo): Move existing loop-closed
27300         SSA verification under TODO_verify_il.
27301         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27302         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27303         Fix tree sharing issue.
27304
27305 2014-04-28  Richard Biener  <rguenther@suse.de>
27306
27307         PR middle-end/60092
27308         * builtins.def (DEF_C11_BUILTIN): Add.
27309         (BUILT_IN_ALIGNED_ALLOC): Likewise.
27310         * coretypes.h (enum function_class): Add function_c11_misc.
27311         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27312         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27313         (call_may_clobber_ref_p_1): Likewise.
27314         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27315         (mark_all_reaching_defs_necessary_1): Likewise.
27316         (propagate_necessity): Likewise.
27317         (eliminate_unnecessary_stmts): Likewise.
27318         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27319
27320 2014-04-28  Richard Biener  <rguenther@suse.de>
27321
27322         * tree-vrp.c (vrp_var_may_overflow): Remove.
27323         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27324         with overflow immediately bump to one before that value and
27325         let iteration figure out overflow status.
27326
27327 2014-04-28  Richard Biener  <rguenther@suse.de>
27328
27329         * configure.ac: Do valgrind header checks unconditionally.
27330         Add --enable-valgrind-annotations.
27331         * system.h: Guard valgrind header inclusion with
27332         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27333         * alloc-pool.c (pool_alloc, pool_free): Use
27334         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27335         to guard possibly dead code.
27336         * config.in: Regenerated.
27337         * configure: Likewise.
27338
27339 2014-04-28  Jeff Law  <law@redhat.com>
27340
27341         PR tree-optimization/60902
27342         * tree-ssa-threadedge.c
27343         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27344         over real defs when invalidating outputs from statements that do not
27345         produce useful outputs for threading.
27346
27347 2014-04-28  Richard Biener  <rguenther@suse.de>
27348
27349         PR tree-optimization/60979
27350         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27351         SCOPs that end in a block with a successor with abnormal
27352         predecessors.
27353
27354 2014-04-28  Richard Biener  <rguenther@suse.de>
27355
27356         * tree-pass.h (execute_pass_list): Adjust prototype.
27357         * passes.c (pass_manager::execute_early_local_passes): Adjust.
27358         (do_per_function): Change callback signature, push all actual
27359         work to the callbals.
27360         (do_per_function_toporder): Likewise.
27361         (execute_function_dump): Adjust.
27362         (execute_function_todo): Likewise.
27363         (clear_last_verified): Likewise.
27364         (verify_curr_properties): Likewise.
27365         (update_properties_after_pass): Likewise.
27366         (execute_pass_list_1): Split out from ...
27367         (execute_pass_list): ... here.  Adjust.
27368         (execute_ipa_pass_list): Likewise.
27369         * cgraphunit.c (cgraph_add_new_function): Adjust.
27370         (analyze_function): Likewise.
27371         (expand_function): Likewise.
27372         * cgraph.c (release_function_body): Free dominance info
27373         here instead of asserting it was magically freed elsewhere.
27374
27375 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27376
27377         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
27378         * configure: Regenerate.
27379         * config/sparc/sparc.opt (muser-mode): New option.
27380         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
27381         for LEON3.
27382         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
27383         * doc/invoke.texi (SPARC options): Document -muser-mode.
27384
27385 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
27386
27387         * cselib.c (find_slot_memmode): Delete.
27388         (cselib_hasher): Change compare_type to a struct.
27389         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
27390         constants.
27391         (preserve_constants_and_equivs): Adjust for new compare_type.
27392         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
27393         (wrap_constant): Delete.
27394         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
27395
27396 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
27397
27398         * doc/install.texi (Building with profile feedback): Remove
27399         outdated sentence.
27400
27401 2014-04-26  Tom de Vries  <tom@codesourcery.com>
27402
27403         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
27404         array accesses.
27405
27406 2014-04-25  Cary Coutant  <ccoutant@google.com>
27407
27408         PR debug/60929
27409         * dwarf2out.c (should_move_die_to_comdat): A type definition
27410         can contain a subprogram definition, but don't move it to a
27411         comdat unit.
27412         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
27413         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
27414         from original DIE.
27415         (clone_tree_hash): Rename to...
27416         (clone_tree_partial): ...this; change callers.  Copy
27417         DW_TAG_subprogram DIEs as declarations.
27418         (copy_decls_walk): Don't copy children of a declaration into a
27419         type unit.
27420
27421 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
27422
27423         PR target/60969
27424         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
27425         alternative 12.
27426
27427 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
27428
27429         * config/arm/predicates.md (call_insn_operand): Add long_call check.
27430         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
27431         reg for long_call.
27432         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
27433         restriction.
27434
27435 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27436
27437         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
27438
27439 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27440
27441         PR tree-optimization/60930
27442         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
27443         creating a multiply candidate by folding two constant
27444         multiplicands when the result overflows.
27445
27446 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
27447
27448         PR tree-optimization/60960
27449         * tree-vect-generic.c (expand_vector_operation): Only call
27450         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
27451
27452 2014-04-25  Tom de Vries  <tom@codesourcery.com>
27453
27454         * expr.c (clobber_reg_mode): New function.
27455         * expr.h (clobber_reg): New function.
27456
27457 2014-04-25  Tom de Vries  <tom@codesourcery.com>
27458
27459         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
27460         clobbers.
27461
27462 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
27463             Tom de Vries  <tom@codesourcery.com>
27464
27465         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
27466         handle.
27467         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
27468         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
27469         new argument to find_all_hard_reg_sets call.
27470
27471 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27472
27473         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
27474         Use HOST_WIDE_INT_C for mask literal.
27475         (aarch_rev16_shleft_mask_imm_p): Likewise.
27476
27477 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
27478
27479         PR target/60941
27480         * config/sparc/sparc.md (ashlsi3_extend): Delete.
27481
27482 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
27483
27484         PR preprocessor/56540
27485         * config/i386/i386-c.c (ix86_target_macros): Define
27486         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
27487
27488 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27489
27490         * configure.ac (tga_func): Remove.
27491         (LIB_TLS_SPEC): Remove.
27492         * configure: Regenerate.
27493         * config.in: Regenerate.
27494         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
27495
27496 2014-04-25  Richard Biener  <rguenther@suse.de>
27497
27498         PR ipa/60912
27499         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
27500         call stmt use/clobber sets during stmt walk instead of
27501         walking the possibly incomplete set of caller edges.
27502
27503 2014-04-25  Richard Biener  <rguenther@suse.de>
27504
27505         PR ipa/60911
27506         * passes.c (apply_ipa_transforms): Inline into only caller ...
27507         (execute_one_pass): ... here.  Properly bring in function
27508         bodies for nodes we want to apply IPA transforms to.
27509
27510 2014-04-24  Cong Hou  <congh@google.com>
27511
27512         PR tree-optimization/60896
27513         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
27514         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
27515         (vect_mark_pattern_stmts): Set the def type of all statements in
27516         PATTERN_DEF_SEQ as vect_internal_def.
27517
27518 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
27519
27520         * doc/extend.texi (PowerPC Built-in Functions): Document new
27521         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
27522         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
27523
27524         * config/rs6000/predicates.md (const_0_to_3_operand): New
27525         predicate to match 0..3 integer constants.
27526
27527         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
27528         to support adding miscellaneous builtin functions.
27529         (BU_DFP_MISC_2): Likewise.
27530         (BU_P7_MISC_1): Likewise.
27531         (BU_P7_MISC_2): Likewise.
27532         (BU_P8V_MISC_3): Likewise.
27533         (BU_MISC_1): Likewise.
27534         (BU_MISC_2): Likewise.
27535         (DIVWE): Add extended divide builtin functions.
27536         (DIVWEO): Likewise.
27537         (DIVWEU): Likewise.
27538         (DIVWEUO): Likewise.
27539         (DIVDE): Likewise.
27540         (DIVDEO): Likewise.
27541         (DIVDEU): Likewise.
27542         (DIVDEUO): Likewise.
27543         (DXEX): Add decimal floating-point builtin functions.
27544         (DXEXQ): Likewise.
27545         (DDEDPD): Likewise.
27546         (DDEDPDQ): Likewise.
27547         (DENBCD): Likewise.
27548         (DENBCDQ): Likewise.
27549         (DIEX): Likewise.
27550         (DIEXQ): Likewise.
27551         (DSCLI): Likewise.
27552         (DSCLIQ): Likewise.
27553         (DSCRI): Likewise.
27554         (DSCRIQ): Likewise.
27555         (CDTBCD): Add new BCD builtin functions.
27556         (CBCDTD): Likewise.
27557         (ADDG6S): Likewise.
27558         (BCDADD): Likewise.
27559         (BCDADD_LT): Likewise.
27560         (BCDADD_EQ): Likewise.
27561         (BCDADD_GT): Likewise.
27562         (BCDADD_OV): Likewise.
27563         (BCDSUB): Likewise.
27564         (BCDSUB_LT): Likewise.
27565         (BCDSUB_EQ): Likewise.
27566         (BCDSUB_GT): Likewise.
27567         (BCDSUB_OV): Likewise.
27568         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
27569         (UNPACK_TD): Likewise.
27570         (PACK_TF): Likewise.
27571         (UNPACK_TF): Likewise.
27572         (UNPACK_TF_0): Likewise.
27573         (UNPACK_TF_1): Likewise.
27574         (PACK_V1TI): Likewise.
27575         (UNPACK_V1TI): Likewise.
27576
27577         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27578         support for decimal floating point builtin functions.
27579         (rs6000_expand_ternop_builtin): Add checks for the new builtin
27580         functions that take constant arguments.
27581         (rs6000_invalid_builtin): Add decimal floating point builtin support.
27582         (rs6000_init_builtins): Setup long double, _Decimal64, and
27583         _Decimal128 types for new builtin functions.
27584         (builtin_function_type): Set the unsigned flags appropriately for
27585         the new builtin functions.
27586         (rs6000_opt_masks): Add support for decimal floating point builtin
27587         functions.
27588
27589         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
27590         floating point builtin functions.
27591         (RS6000_BTM_COMMON): Likewise.
27592         (RS6000_BTI_long_double): Likewise.
27593         (RS6000_BTI_dfloat64): Likewise.
27594         (RS6000_BTI_dfloat128): Likewise.
27595         (long_double_type_internal_node): Likewise.
27596         (dfloat64_type_internal_node): Likewise.
27597         (dfloat128_type_internal_node): Likewise.
27598
27599         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
27600         2.07 bcd arithmetic instructions.
27601         (UNSPEC_BCDSUB): Likewise.
27602         (UNSPEC_BCD_OVERFLOW): Likewise.
27603         (UNSPEC_BCD_ADD_SUB): Likewise.
27604         (bcd_add_sub): Likewise.
27605         (BCD_TEST): Likewise.
27606         (bcd<bcd_add_sub>): Likewise.
27607         (bcd<bcd_add_sub>_test): Likewise.
27608         (bcd<bcd_add_sub>_test2): Likewise.
27609         (bcd<bcd_add_sub>_<code>): Likewise.
27610         (peephole2 for combined bcd ops): Likewise.
27611
27612         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27613         decimal floating point builtin functions.
27614         (UNSPEC_DENBCD): Likewise.
27615         (UNSPEC_DXEX): Likewise.
27616         (UNSPEC_DIEX): Likewise.
27617         (UNSPEC_DSCLI): Likewise.
27618         (UNSPEC_DSCRI): Likewise.
27619         (D64_D128): Likewise.
27620         (dfp_suffix): Likewise.
27621         (dfp_ddedpd_<mode>): Likewise.
27622         (dfp_denbcd_<mode>): Likewise.
27623         (dfp_dxex_<mode>): Likewise.
27624         (dfp_diex_<mode>): Likewise.
27625         (dfp_dscli_<mode>): Likewise.
27626         (dfp_dscri_<mode>): Likewise.
27627
27628         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27629         builtin functions.
27630         (UNSPEC_CDTBCD): Likewise.
27631         (UNSPEC_CBCDTD): Likewise.
27632         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27633         (UNSPEC_DIVEO): Likewise.
27634         (UNSPEC_DIVEU): Likewise.
27635         (UNSPEC_DIVEUO): Likewise.
27636         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27637         pack/unpack 128-bit types.
27638         (UNSPEC_PACK_128BIT): Likewise.
27639         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27640         (udiv<mode>3): Use idiv_ldiv mode attribute.
27641         (div<mode>3): Likewise.
27642         (addg6s): Add new BCD builtin functions.
27643         (cdtbcd): Likewise.
27644         (cbcdtd): Likewise.
27645         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27646         (div_extend): Likewise.
27647         (div<div_extend>_<mode>"): Likewise.
27648         (FP128_64): Add support for new builtin functions to pack/unpack
27649         128-bit types.
27650         (unpack<mode>): Likewise.
27651         (unpacktf_0): Likewise.
27652         (unpacktf_1): Likewise.
27653         (unpack<mode>_dm): Likewise.
27654         (unpack<mode>_nodm): Likewise.
27655         (pack<mode>): Likewise.
27656         (unpackv1ti): Likewise.
27657         (packv1ti): Likewise.
27658
27659 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
27660
27661         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27662         is disabled.
27663
27664 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
27665
27666         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27667         * gimplify.c (omp_is_private): Change last argument's type to int.
27668         Only diagnose lastprivate if the simd argument is 1, only diagnose
27669         linear if the simd argument is 2.
27670         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
27671         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
27672         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
27673         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27674         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27675         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27676         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27677         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27678         * tree-nested.c (convert_nonlocal_omp_clauses,
27679         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27680
27681 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
27682
27683         PR target/60822
27684         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27685         operand 1.
27686
27687 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
27688
27689         * flag-types.h (enum ivar_visibility): Add.
27690
27691 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
27692
27693         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27694         function * argument.
27695
27696 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
27697
27698         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
27699
27700 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
27701             Tom de Vries  <tom@codesourcery.com>
27702
27703         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
27704         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
27705         reg-note.
27706         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
27707         * emit-rtl.c (try_split): Same.
27708
27709 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
27710             Tom de Vries  <tom@codesourcery.com>
27711
27712         * common.opt (fuse-caller-save): New option.
27713
27714 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
27715
27716         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27717         elements for big-endian.
27718
27719 2014-04-24  Richard Biener  <rguenther@suse.de>
27720
27721         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27722         during TER and instead use the sepops interface for expanding
27723         non-GIMPLE_SINGLE_RHS.
27724
27725 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27726
27727         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27728         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27729
27730 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27731
27732         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27733         assembler 64-bit option.
27734         * configure: Regenerate.
27735
27736 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27737
27738         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27739         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27740         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27741         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27742         (TARGET_CRYPTO): Take TARGET_SIMD into account.
27743
27744 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27745
27746         * config/aarch64/aarch64-builtins.c
27747         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
27748         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
27749         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
27750         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
27751         builtins.
27752         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
27753         (Vrevsuff): New mode attribute.
27754
27755 2014-04-24  Terry Guo  <terry.guo@arm.com>
27756
27757         * config/arm/arm.h (machine_function): Define variable
27758         after_arm_reorg here.
27759         * config/arm/arm.c (after_arm_reorg): Remove the definition.
27760         (arm_split_constant): Update the way to access variable
27761         after_arm_reorg.
27762         (arm_reorg): Ditto.
27763         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
27764
27765 2014-04-23  Tom de Vries  <tom@codesourcery.com>
27766
27767         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
27768
27769 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
27770
27771         * is-a.h: Update comments to reflect the following changes to the
27772         "pointerness" of the API, making the template parameter match the
27773         return type, allowing use of is-a.h with typedefs of pointers.
27774         (is_a_helper::cast): Return a T rather then a pointer to a T, so
27775         that the return type matches the parameter to the is_a_helper.
27776         (as_a): Likewise.
27777         (dyn_cast): Likewise.
27778
27779         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
27780         pointer from the is-a.h API.
27781
27782         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
27783         (is_a_helper <cgraph_node *>::test): ...this, matching change to
27784         is-a.h API.
27785         (is_a_helper <varpool_node>::test): Likewise, convert to...
27786         (is_a_helper <varpool_node *>::test): ...this.
27787
27788         (varpool_first_variable): Update for removal of implicit pointer
27789         from the is-a.h API.
27790         (varpool_next_variable): Likewise.
27791         (varpool_first_static_initializer): Likewise.
27792         (varpool_next_static_initializer): Likewise.
27793         (varpool_first_defined_variable): Likewise.
27794         (varpool_next_defined_variable): Likewise.
27795         (cgraph_first_defined_function): Likewise.
27796         (cgraph_next_defined_function): Likewise.
27797         (cgraph_first_function): Likewise.
27798         (cgraph_next_function): Likewise.
27799         (cgraph_first_function_with_gimple_body): Likewise.
27800         (cgraph_next_function_with_gimple_body): Likewise.
27801         (cgraph_alias_target): Likewise.
27802         (varpool_alias_target): Likewise.
27803         (cgraph_function_or_thunk_node): Likewise.
27804         (varpool_variable_node): Likewise.
27805         (symtab_real_symbol_p): Likewise.
27806         * cgraphunit.c (referred_to_p): Likewise.
27807         (analyze_functions): Likewise.
27808         (handle_alias_pairs): Likewise.
27809         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
27810         * gimple-ssa.h (gimple_vuse_op): Likewise.
27811         (gimple_vdef_op): Likewise.
27812         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
27813         * gimple.c (gimple_build_asm_1): Likewise.
27814         (gimple_build_try): Likewise.
27815         (gimple_build_resx): Likewise.
27816         (gimple_build_eh_dispatch): Likewise.
27817         (gimple_build_omp_for): Likewise.
27818         (gimple_omp_for_set_clauses): Likewise.
27819
27820         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
27821         (is_a_helper <gimple_statement_asm *>::test): ...this.
27822         (is_a_helper <gimple_statement_bind>::test): Convert to...
27823         (is_a_helper <gimple_statement_bind *>::test): ...this.
27824         (is_a_helper <gimple_statement_call>::test): Convert to...
27825         (is_a_helper <gimple_statement_call *>::test): ...this.
27826         (is_a_helper <gimple_statement_catch>::test): Convert to...
27827         (is_a_helper <gimple_statement_catch *>::test): ...this.
27828         (is_a_helper <gimple_statement_resx>::test): Convert to...
27829         (is_a_helper <gimple_statement_resx *>::test): ...this.
27830         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
27831         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
27832         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
27833         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
27834         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
27835         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
27836         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
27837         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
27838         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
27839         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
27840         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
27841         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
27842         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
27843         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
27844         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
27845         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
27846         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
27847         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
27848         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
27849         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
27850         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
27851         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
27852         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
27853         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
27854         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
27855         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
27856         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
27857         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
27858         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
27859         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
27860         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
27861         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
27862         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
27863         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
27864         (is_a_helper <gimple_statement_phi>::test): Convert to...
27865         (is_a_helper <gimple_statement_phi *>::test): ...this.
27866         (is_a_helper <gimple_statement_transaction>::test): Convert to...
27867         (is_a_helper <gimple_statement_transaction *>::test): ...this.
27868         (is_a_helper <gimple_statement_try>::test): Convert to...
27869         (is_a_helper <gimple_statement_try *>::test): ...this.
27870         (is_a_helper <gimple_statement_wce>::test): Convert to...
27871         (is_a_helper <gimple_statement_wce *>::test): ...this.
27872         (is_a_helper <const gimple_statement_asm>::test): Convert to...
27873         (is_a_helper <const gimple_statement_asm *>::test): ...this.
27874         (is_a_helper <const gimple_statement_bind>::test): Convert to...
27875         (is_a_helper <const gimple_statement_bind *>::test): ...this.
27876         (is_a_helper <const gimple_statement_call>::test): Convert to...
27877         (is_a_helper <const gimple_statement_call *>::test): ...this.
27878         (is_a_helper <const gimple_statement_catch>::test): Convert to...
27879         (is_a_helper <const gimple_statement_catch *>::test): ...this.
27880         (is_a_helper <const gimple_statement_resx>::test): Convert to...
27881         (is_a_helper <const gimple_statement_resx *>::test): ...this.
27882         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
27883         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
27884         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
27885         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
27886         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
27887         Convert to...
27888         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
27889         ...this.
27890         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
27891         Convert to...
27892         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
27893         ...this.
27894         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
27895         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
27896         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
27897         to...
27898         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
27899         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
27900         to...
27901         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
27902         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
27903         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
27904         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
27905         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
27906         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
27907         to...
27908         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
27909         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
27910         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
27911         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
27912         to...
27913         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
27914         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
27915         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
27916         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
27917         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
27918         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
27919         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
27920         (is_a_helper <const gimple_statement_phi>::test): Convert to...
27921         (is_a_helper <const gimple_statement_phi *>::test): ...this.
27922         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
27923         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
27924         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
27925         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
27926         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
27927         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
27928         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
27929         to...
27930         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
27931         ...this.
27932         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
27933         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
27934
27935         (gimple_use_ops): Update for removal of implicit pointer from the
27936         is-a.h API.
27937         (gimple_set_use_ops): Likewise.
27938         (gimple_vuse): Likewise.
27939         (gimple_vdef): Likewise.
27940         (gimple_vuse_ptr): Likewise.
27941         (gimple_vdef_ptr): Likewise.
27942         (gimple_set_vuse): Likewise.
27943         (gimple_set_vdef): Likewise.
27944         (gimple_omp_return_set_lhs): Likewise.
27945         (gimple_omp_return_lhs): Likewise.
27946         (gimple_omp_return_lhs_ptr): Likewise.
27947         (gimple_call_fntype): Likewise.
27948         (gimple_call_set_fntype): Likewise.
27949         (gimple_call_set_internal_fn): Likewise.
27950         (gimple_call_use_set): Likewise.
27951         (gimple_call_clobber_set): Likewise.
27952         (gimple_bind_vars): Likewise.
27953         (gimple_bind_set_vars): Likewise.
27954         (gimple_bind_body_ptr): Likewise.
27955         (gimple_bind_set_body): Likewise.
27956         (gimple_bind_add_stmt): Likewise.
27957         (gimple_bind_block): Likewise.
27958         (gimple_bind_set_block): Likewise.
27959         (gimple_asm_ninputs): Likewise.
27960         (gimple_asm_noutputs): Likewise.
27961         (gimple_asm_nclobbers): Likewise.
27962         (gimple_asm_nlabels): Likewise.
27963         (gimple_asm_input_op): Likewise.
27964         (gimple_asm_input_op_ptr): Likewise.
27965         (gimple_asm_output_op): Likewise.
27966         (gimple_asm_output_op_ptr): Likewise.
27967         (gimple_asm_set_output_op): Likewise.
27968         (gimple_asm_clobber_op): Likewise.
27969         (gimple_asm_set_clobber_op): Likewise.
27970         (gimple_asm_label_op): Likewise.
27971         (gimple_asm_set_label_op): Likewise.
27972         (gimple_asm_string): Likewise.
27973         (gimple_catch_types): Likewise.
27974         (gimple_catch_types_ptr): Likewise.
27975         (gimple_catch_handler_ptr): Likewise.
27976         (gimple_catch_set_types): Likewise.
27977         (gimple_catch_set_handler): Likewise.
27978         (gimple_eh_filter_types): Likewise.
27979         (gimple_eh_filter_types_ptr): Likewise.
27980         (gimple_eh_filter_failure_ptr): Likewise.
27981         (gimple_eh_filter_set_types): Likewise.
27982         (gimple_eh_filter_set_failure): Likewise.
27983         (gimple_eh_must_not_throw_fndecl): Likewise.
27984         (gimple_eh_must_not_throw_set_fndecl): Likewise.
27985         (gimple_eh_else_n_body_ptr): Likewise.
27986         (gimple_eh_else_e_body_ptr): Likewise.
27987         (gimple_eh_else_set_n_body): Likewise.
27988         (gimple_eh_else_set_e_body): Likewise.
27989         (gimple_try_eval_ptr): Likewise.
27990         (gimple_try_cleanup_ptr): Likewise.
27991         (gimple_try_set_eval): Likewise.
27992         (gimple_try_set_cleanup): Likewise.
27993         (gimple_wce_cleanup_ptr): Likewise.
27994         (gimple_wce_set_cleanup): Likewise.
27995         (gimple_phi_capacity): Likewise.
27996         (gimple_phi_num_args): Likewise.
27997         (gimple_phi_result): Likewise.
27998         (gimple_phi_result_ptr): Likewise.
27999         (gimple_phi_set_result): Likewise.
28000         (gimple_phi_arg): Likewise.
28001         (gimple_phi_set_arg): Likewise.
28002         (gimple_resx_region): Likewise.
28003         (gimple_resx_set_region): Likewise.
28004         (gimple_eh_dispatch_region): Likewise.
28005         (gimple_eh_dispatch_set_region): Likewise.
28006         (gimple_omp_critical_name): Likewise.
28007         (gimple_omp_critical_name_ptr): Likewise.
28008         (gimple_omp_critical_set_name): Likewise.
28009         (gimple_omp_for_clauses): Likewise.
28010         (gimple_omp_for_clauses_ptr): Likewise.
28011         (gimple_omp_for_set_clauses): Likewise.
28012         (gimple_omp_for_collapse): Likewise.
28013         (gimple_omp_for_index): Likewise.
28014         (gimple_omp_for_index_ptr): Likewise.
28015         (gimple_omp_for_set_index): Likewise.
28016         (gimple_omp_for_initial): Likewise.
28017         (gimple_omp_for_initial_ptr): Likewise.
28018         (gimple_omp_for_set_initial): Likewise.
28019         (gimple_omp_for_final): Likewise.
28020         (gimple_omp_for_final_ptr): Likewise.
28021         (gimple_omp_for_set_final): Likewise.
28022         (gimple_omp_for_incr): Likewise.
28023         (gimple_omp_for_incr_ptr): Likewise.
28024         (gimple_omp_for_set_incr): Likewise.
28025         (gimple_omp_for_pre_body_ptr): Likewise.
28026         (gimple_omp_for_set_pre_body): Likewise.
28027         (gimple_omp_parallel_clauses): Likewise.
28028         (gimple_omp_parallel_clauses_ptr): Likewise.
28029         (gimple_omp_parallel_set_clauses): Likewise.
28030         (gimple_omp_parallel_child_fn): Likewise.
28031         (gimple_omp_parallel_child_fn_ptr): Likewise.
28032         (gimple_omp_parallel_set_child_fn): Likewise.
28033         (gimple_omp_parallel_data_arg): Likewise.
28034         (gimple_omp_parallel_data_arg_ptr): Likewise.
28035         (gimple_omp_parallel_set_data_arg): Likewise.
28036         (gimple_omp_task_clauses): Likewise.
28037         (gimple_omp_task_clauses_ptr): Likewise.
28038         (gimple_omp_task_set_clauses): Likewise.
28039         (gimple_omp_task_child_fn): Likewise.
28040         (gimple_omp_task_child_fn_ptr): Likewise.
28041         (gimple_omp_task_set_child_fn): Likewise.
28042         (gimple_omp_task_data_arg): Likewise.
28043         (gimple_omp_task_data_arg_ptr): Likewise.
28044         (gimple_omp_task_set_data_arg): Likewise.
28045         (gimple_omp_taskreg_clauses): Likewise.
28046         (gimple_omp_taskreg_clauses_ptr): Likewise.
28047         (gimple_omp_taskreg_set_clauses): Likewise.
28048         (gimple_omp_taskreg_child_fn): Likewise.
28049         (gimple_omp_taskreg_child_fn_ptr): Likewise.
28050         (gimple_omp_taskreg_set_child_fn): Likewise.
28051         (gimple_omp_taskreg_data_arg): Likewise.
28052         (gimple_omp_taskreg_data_arg_ptr): Likewise.
28053         (gimple_omp_taskreg_set_data_arg): Likewise.
28054         (gimple_omp_task_copy_fn): Likewise.
28055         (gimple_omp_task_copy_fn_ptr): Likewise.
28056         (gimple_omp_task_set_copy_fn): Likewise.
28057         (gimple_omp_task_arg_size): Likewise.
28058         (gimple_omp_task_arg_size_ptr): Likewise.
28059         (gimple_omp_task_set_arg_size): Likewise.
28060         (gimple_omp_task_arg_align): Likewise.
28061         (gimple_omp_task_arg_align_ptr): Likewise.
28062         (gimple_omp_task_set_arg_align): Likewise.
28063         (gimple_omp_single_clauses): Likewise.
28064         (gimple_omp_single_clauses_ptr): Likewise.
28065         (gimple_omp_single_set_clauses): Likewise.
28066         (gimple_omp_target_clauses): Likewise.
28067         (gimple_omp_target_clauses_ptr): Likewise.
28068         (gimple_omp_target_set_clauses): Likewise.
28069         (gimple_omp_target_child_fn): Likewise.
28070         (gimple_omp_target_child_fn_ptr): Likewise.
28071         (gimple_omp_target_set_child_fn): Likewise.
28072         (gimple_omp_target_data_arg): Likewise.
28073         (gimple_omp_target_data_arg_ptr): Likewise.
28074         (gimple_omp_target_set_data_arg): Likewise.
28075         (gimple_omp_teams_clauses): Likewise.
28076         (gimple_omp_teams_clauses_ptr): Likewise.
28077         (gimple_omp_teams_set_clauses): Likewise.
28078         (gimple_omp_sections_clauses): Likewise.
28079         (gimple_omp_sections_clauses_ptr): Likewise.
28080         (gimple_omp_sections_set_clauses): Likewise.
28081         (gimple_omp_sections_control): Likewise.
28082         (gimple_omp_sections_control_ptr): Likewise.
28083         (gimple_omp_sections_set_control): Likewise.
28084         (gimple_omp_for_set_cond): Likewise.
28085         (gimple_omp_for_cond): Likewise.
28086         (gimple_omp_atomic_store_set_val): Likewise.
28087         (gimple_omp_atomic_store_val): Likewise.
28088         (gimple_omp_atomic_store_val_ptr): Likewise.
28089         (gimple_omp_atomic_load_set_lhs): Likewise.
28090         (gimple_omp_atomic_load_lhs): Likewise.
28091         (gimple_omp_atomic_load_lhs_ptr): Likewise.
28092         (gimple_omp_atomic_load_set_rhs): Likewise.
28093         (gimple_omp_atomic_load_rhs): Likewise.
28094         (gimple_omp_atomic_load_rhs_ptr): Likewise.
28095         (gimple_omp_continue_control_def): Likewise.
28096         (gimple_omp_continue_control_def_ptr): Likewise.
28097         (gimple_omp_continue_set_control_def): Likewise.
28098         (gimple_omp_continue_control_use): Likewise.
28099         (gimple_omp_continue_control_use_ptr): Likewise.
28100         (gimple_omp_continue_set_control_use): Likewise.
28101         (gimple_transaction_body_ptr): Likewise.
28102         (gimple_transaction_label): Likewise.
28103         (gimple_transaction_label_ptr): Likewise.
28104         (gimple_transaction_set_body): Likewise.
28105         (gimple_transaction_set_label): Likewise.
28106
28107         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28108         * ipa-inline-analysis.c (inline_write_summary): Likewise.
28109         * ipa-ref.c (ipa_record_reference): Likewise.
28110         * ipa-reference.c (analyze_function): Likewise.
28111         (ipa_reference_write_optimization_summary): Likewise.
28112         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28113         (address_taken_from_non_vtable_p): Likewise.
28114         (comdat_can_be_unshared_p_1): Likewise.
28115         * lto-cgraph.c (lto_output_ref): Likewise.
28116         (add_references): Likewise.
28117         (compute_ltrans_boundary): Likewise.
28118         (output_symtab): Likewise.
28119         (input_ref): Likewise.
28120         (input_cgraph_1): Likewise.
28121         (output_cgraph_opt_summary): Likewise.
28122         * lto-streamer-out.c (lto_output): Likewise.
28123         (output_symbol_p): Likewise.
28124         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28125         (lsei_start_function_in_partition): Likewise.
28126         (lsei_next_variable_in_partition): Likewise.
28127         (lsei_start_variable_in_partition): Likewise.
28128         * symtab.c (insert_to_assembler_name_hash): Likewise.
28129         (unlink_from_assembler_name_hash): Likewise.
28130         (symtab_unregister_node): Likewise.
28131         (symtab_remove_node): Likewise.
28132         (dump_symtab_node): Likewise.
28133         (verify_symtab_base): Likewise.
28134         (verify_symtab_node): Likewise.
28135         (symtab_make_decl_local): Likewise.
28136         (symtab_alias_ultimate_target): Likewise.
28137         (symtab_resolve_alias): Likewise.
28138         (symtab_get_symbol_partitioning_class): Likewise.
28139         * tree-phinodes.c (allocate_phi_node): Likewise.
28140         (reserve_phi_args_for_new_edge): Likewise.
28141         (remove_phi_args): Likewise.
28142         * varpool.c (varpool_node_for_asm): Likewise.
28143         (varpool_remove_unreferenced_decls): Likewise.
28144
28145 2014-04-23  Jeff Law  <law@redhat.com>
28146
28147         PR tree-optimization/60902
28148         * tree-ssa-threadedge.c
28149         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28150         invalidate outputs from statements that do not produce useful
28151         outputs for threading.
28152
28153 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
28154
28155         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28156         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28157         machine descriptions for Stack Smashing Protector.
28158
28159 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
28160
28161         * aarch64.md (<optab>_rol<mode>3): New pattern.
28162         (<optab>_rolsi3_uxtw): Likewise.
28163         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28164
28165 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
28166
28167         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28168         (arm_cortex_a12_tune): Likewise.
28169
28170 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28171
28172         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28173
28174 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28175
28176         * config/arm/arm.md (arm_rev16si2): New pattern.
28177         (arm_rev16si2_alt): Likewise.
28178         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28179
28180 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28181
28182         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28183         (rev16<mode>2_alt): Likewise.
28184         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28185         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28186         (aarch_rev16_shleft_mask_imm_p): Likewise.
28187         (aarch_rev16_p_1): Likewise.
28188         (aarch_rev16_p): Likewise.
28189         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28190         (aarch_rev16_shright_mask_imm_p): Likewise.
28191         (aarch_rev16_shleft_mask_imm_p): Likewise.
28192
28193 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28194
28195         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28196         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28197         rev cost.
28198         (cortex_a53_extra_costs): Likewise.
28199         (cortex_a57_extra_costs): Likewise.
28200         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28201         (cortexa7_extra_costs): Likewise.
28202         (cortexa8_extra_costs): Likewise.
28203         (cortexa12_extra_costs): Likewise.
28204         (cortexa15_extra_costs): Likewise.
28205         (v7m_extra_costs): Likewise.
28206         (arm_new_rtx_costs): Handle BSWAP.
28207
28208 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28209
28210         * config/arm/arm.c (cortexa8_extra_costs): New table.
28211         (arm_cortex_a8_tune): New tuning struct.
28212         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28213
28214 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28215
28216         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
28217
28218 2014-04-23  Richard Biener  <rguenther@suse.de>
28219
28220         * Makefile.in (OBJS): Remove loop-unswitch.o.
28221         * tree-pass.h (make_pass_rtl_unswitch): Remove.
28222         * passes.def (pass_rtl_unswitch): Likewise.
28223         * loop-init.c (gate_rtl_unswitch): Likewise.
28224         (rtl_unswitch): Likewise.
28225         (pass_data_rtl_unswitch): Likewise.
28226         (pass_rtl_unswitch): Likewise.
28227         (make_pass_rtl_unswitch): Likewise.
28228         * rtl.h (reversed_condition): Likewise.
28229         (compare_and_jump_seq): Likewise.
28230         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
28231         and make static.
28232         * loop-unroll.c (compare_and_jump_seq): Likewise.
28233
28234 2014-04-23  Richard Biener  <rguenther@suse.de>
28235
28236         PR tree-optimization/60903
28237         * tree-ssa-loop-im.c (analyze_memory_references): Remove
28238         commented code block.
28239         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
28240         loop flags to newly created BBs and edges.
28241
28242 2014-04-23  Nick Clifton  <nickc@redhat.com>
28243
28244         * config/msp430/msp430.c (msp430_handle_option): Move function
28245         to msp430-common.c
28246         (msp430_option_override): Simplify mcu and mcpu option handling.
28247         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
28248         support for -mhwmult command line option.
28249         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
28250         -mhwmult command line option.
28251         (msp430_hwmult_enabled): Delete.
28252         (msp43o_output_labelref): Add support for -mhwmult command line option.
28253         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28254         (umulsidi3): Likewise.
28255         * config/msp430/msp430.opt (mmcu): Add Report attribute.
28256         (mcpu, mlarge, msmall): Likewise.
28257         (mhwmult): New option.
28258         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28259         prototype.
28260         (msp430_is_f5_mcu): Remove prototype.
28261         (msp430_use_f5_series_hwmult): Add prototype.
28262         * config/msp430/msp430-opts.h: New file.
28263         * common/config/msp430: New directory.
28264         * common/config/msp430/msp430-common.c: New file.
28265         * config.gcc (msp430): Remove target_has_targetm_common.
28266         * doc/invoke.texi: Document -mhwmult command line option.
28267
28268 2014-04-23  Nick Clifton  <nickc@redhat.com>
28269
28270         * config/i386/cygwin.h (ENDFILE_SPEC): Include
28271         default-manifest.o if it can be found in the search path.
28272         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28273
28274 2014-04-23  Terry Guo  <terry.guo@arm.com>
28275
28276         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28277
28278 2014-04-23  Richard Biener  <rguenther@suse.de>
28279
28280         PR middle-end/60895
28281         * tree-inline.c (declare_return_variable): Use mark_addressable.
28282
28283 2014-04-23  Richard Biener  <rguenther@suse.de>
28284
28285         PR middle-end/60891
28286         * loop-init.c (loop_optimizer_init): Make sure to apply
28287         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28288
28289 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28290
28291         PR sanitizer/60275
28292         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28293         New options.
28294         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28295         if flag_sanitize_undefined_trap_on_error.
28296         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28297         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28298         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28299         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28300         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28301         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28302         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28303         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28304         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28305         * ubsan.c (ubsan_instrument_unreachable): Return
28306         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28307         (ubsan_expand_null_ifn): Emit __builtin_trap ()
28308         if flag_sanitize_undefined_trap_on_error and
28309         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28310         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28311         instrument_bool_enum_load): Emit __builtin_trap () if
28312         flag_sanitize_undefined_trap_on_error and
28313         __builtin_handle_*_abort () if !flag_sanitize_recover.
28314         * doc/invoke.texi (-fsanitize-recover,
28315         -fsanitize-undefined-trap-on-error): Document.
28316
28317 2014-04-22  Christian Bruel  <christian.bruel@st.com>
28318
28319         * config/sh/sh.md (mov<mode>): Replace movQIHI.
28320         Force immediates to SImode.
28321
28322 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
28323
28324         * config/nios2/nios2.md (UNSPEC_ROUND): New.
28325         (lroundsfsi2): New.
28326         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28327         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28328         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28329         (nios2_fpu_insn): Add entry for round.
28330         (N2FPU_NO_ERRNO_P): Define.
28331         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28332         flag_errno_math.
28333         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28334
28335 2014-04-22  Richard Henderson  <rth@redhat.com>
28336
28337         * config/aarch64/aarch64 (addti3, subti3): New expanders.
28338         (add<GPI>3_compare0): Remove leading * from name.
28339         (add<GPI>3_carryin): Likewise.
28340         (sub<GPI>3_compare0): Likewise.
28341         (sub<GPI>3_carryin): Likewise.
28342         (<su_optab>mulditi3): New expander.
28343         (multi3): New expander.
28344         (madd<GPI>): Remove leading * from name.
28345
28346 2014-04-22  Martin Jambor  <mjambor@suse.cz>
28347
28348         * cgraphclones.c (cgraph_function_versioning): Copy
28349         ipa_transforms_to_apply instead of asserting it is empty.
28350
28351 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
28352
28353         PR target/60868
28354         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
28355         on count_exp to get mode.
28356
28357 2014-04-22  Andrew Pinski  <apinski@cavium.com>
28358
28359         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28360         Handle TLS for ILP32.
28361         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
28362         (tlsie_small_<mode>): this and handle PTR.
28363         (tlsie_small_sidi): New pattern.
28364         (tlsle_small): Change to an expand to handle ILP32.
28365         (tlsle_small_<mode>): New pattern.
28366         (tlsdesc_small): Rename to ...
28367         (tlsdesc_small_<mode>): this and handle PTR.
28368
28369 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28370
28371         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
28372
28373 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28374
28375         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28376         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
28377         (aarch64_types_signed_poly_qualifiers): Likewise.
28378         (aarch64_types_unsigned_signed_qualifiers): Likewise.
28379         (aarch64_types_poly_signed_qualifiers): Likewise.
28380         (TYPES_REINTERP_SS): Type macro added.
28381         (TYPES_REINTERP_SU): Likewise.
28382         (TYPES_REINTERP_SP): Likewise.
28383         (TYPES_REINTERP_US): Likewise.
28384         (TYPES_REINTERP_PS): Likewise.
28385         (aarch64_fold_builtin): New expression folding added.
28386         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
28387         Declarations removed.
28388         (REINTERP_SS): Declarations added.
28389         (REINTERP_US): Likewise.
28390         (REINTERP_PS): Likewise.
28391         (REINTERP_SU): Likewise.
28392         (REINTERP_SP): Likewise.
28393         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
28394         (vreinterpretq_p8_f64): Likewise.
28395         (vreinterpret_p16_f64): Likewise.
28396         (vreinterpretq_p16_f64): Likewise.
28397         (vreinterpret_f32_f64): Likewise.
28398         (vreinterpretq_f32_f64): Likewise.
28399         (vreinterpret_f64_f32): Likewise.
28400         (vreinterpret_f64_p8): Likewise.
28401         (vreinterpret_f64_p16): Likewise.
28402         (vreinterpret_f64_s8): Likewise.
28403         (vreinterpret_f64_s16): Likewise.
28404         (vreinterpret_f64_s32): Likewise.
28405         (vreinterpret_f64_s64): Likewise.
28406         (vreinterpret_f64_u8): Likewise.
28407         (vreinterpret_f64_u16): Likewise.
28408         (vreinterpret_f64_u32): Likewise.
28409         (vreinterpret_f64_u64): Likewise.
28410         (vreinterpretq_f64_f32): Likewise.
28411         (vreinterpretq_f64_p8): Likewise.
28412         (vreinterpretq_f64_p16): Likewise.
28413         (vreinterpretq_f64_s8): Likewise.
28414         (vreinterpretq_f64_s16): Likewise.
28415         (vreinterpretq_f64_s32): Likewise.
28416         (vreinterpretq_f64_s64): Likewise.
28417         (vreinterpretq_f64_u8): Likewise.
28418         (vreinterpretq_f64_u16): Likewise.
28419         (vreinterpretq_f64_u32): Likewise.
28420         (vreinterpretq_f64_u64): Likewise.
28421         (vreinterpret_s64_f64): Likewise.
28422         (vreinterpretq_s64_f64): Likewise.
28423         (vreinterpret_u64_f64): Likewise.
28424         (vreinterpretq_u64_f64): Likewise.
28425         (vreinterpret_s8_f64): Likewise.
28426         (vreinterpretq_s8_f64): Likewise.
28427         (vreinterpret_s16_f64): Likewise.
28428         (vreinterpretq_s16_f64): Likewise.
28429         (vreinterpret_s32_f64): Likewise.
28430         (vreinterpretq_s32_f64): Likewise.
28431         (vreinterpret_u8_f64): Likewise.
28432         (vreinterpretq_u8_f64): Likewise.
28433         (vreinterpret_u16_f64): Likewise.
28434         (vreinterpretq_u16_f64): Likewise.
28435         (vreinterpret_u32_f64): Likewise.
28436         (vreinterpretq_u32_f64): Likewise.
28437
28438 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28439
28440         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28441         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
28442         (vreinterpret_p8_s8): Likewise.
28443         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
28444         (vreinterpret_p8_s16): Likewise.
28445         (vreinterpret_p8_s32): Likewise.
28446         (vreinterpret_p8_s64): Likewise.
28447         (vreinterpret_p8_f32): Likewise.
28448         (vreinterpret_p8_u8): Likewise.
28449         (vreinterpret_p8_u16): Likewise.
28450         (vreinterpret_p8_u32): Likewise.
28451         (vreinterpret_p8_u64): Likewise.
28452         (vreinterpret_p8_p16): Likewise.
28453         (vreinterpretq_p8_s8): Likewise.
28454         (vreinterpretq_p8_s16): Likewise.
28455         (vreinterpretq_p8_s32): Likewise.
28456         (vreinterpretq_p8_s64): Likewise.
28457         (vreinterpretq_p8_f32): Likewise.
28458         (vreinterpretq_p8_u8): Likewise.
28459         (vreinterpretq_p8_u16): Likewise.
28460         (vreinterpretq_p8_u32): Likewise.
28461         (vreinterpretq_p8_u64): Likewise.
28462         (vreinterpretq_p8_p16): Likewise.
28463         (vreinterpret_p16_s8): Likewise.
28464         (vreinterpret_p16_s16): Likewise.
28465         (vreinterpret_p16_s32): Likewise.
28466         (vreinterpret_p16_s64): Likewise.
28467         (vreinterpret_p16_f32): Likewise.
28468         (vreinterpret_p16_u8): Likewise.
28469         (vreinterpret_p16_u16): Likewise.
28470         (vreinterpret_p16_u32): Likewise.
28471         (vreinterpret_p16_u64): Likewise.
28472         (vreinterpret_p16_p8): Likewise.
28473         (vreinterpretq_p16_s8): Likewise.
28474         (vreinterpretq_p16_s16): Likewise.
28475         (vreinterpretq_p16_s32): Likewise.
28476         (vreinterpretq_p16_s64): Likewise.
28477         (vreinterpretq_p16_f32): Likewise.
28478         (vreinterpretq_p16_u8): Likewise.
28479         (vreinterpretq_p16_u16): Likewise.
28480         (vreinterpretq_p16_u32): Likewise.
28481         (vreinterpretq_p16_u64): Likewise.
28482         (vreinterpretq_p16_p8): Likewise.
28483         (vreinterpret_f32_s8): Likewise.
28484         (vreinterpret_f32_s16): Likewise.
28485         (vreinterpret_f32_s32): Likewise.
28486         (vreinterpret_f32_s64): Likewise.
28487         (vreinterpret_f32_u8): Likewise.
28488         (vreinterpret_f32_u16): Likewise.
28489         (vreinterpret_f32_u32): Likewise.
28490         (vreinterpret_f32_u64): Likewise.
28491         (vreinterpret_f32_p8): Likewise.
28492         (vreinterpret_f32_p16): Likewise.
28493         (vreinterpretq_f32_s8): Likewise.
28494         (vreinterpretq_f32_s16): Likewise.
28495         (vreinterpretq_f32_s32): Likewise.
28496         (vreinterpretq_f32_s64): Likewise.
28497         (vreinterpretq_f32_u8): Likewise.
28498         (vreinterpretq_f32_u16): Likewise.
28499         (vreinterpretq_f32_u32): Likewise.
28500         (vreinterpretq_f32_u64): Likewise.
28501         (vreinterpretq_f32_p8): Likewise.
28502         (vreinterpretq_f32_p16): Likewise.
28503         (vreinterpret_s64_s8): Likewise.
28504         (vreinterpret_s64_s16): Likewise.
28505         (vreinterpret_s64_s32): Likewise.
28506         (vreinterpret_s64_f32): Likewise.
28507         (vreinterpret_s64_u8): Likewise.
28508         (vreinterpret_s64_u16): Likewise.
28509         (vreinterpret_s64_u32): Likewise.
28510         (vreinterpret_s64_u64): Likewise.
28511         (vreinterpret_s64_p8): Likewise.
28512         (vreinterpret_s64_p16): Likewise.
28513         (vreinterpretq_s64_s8): Likewise.
28514         (vreinterpretq_s64_s16): Likewise.
28515         (vreinterpretq_s64_s32): Likewise.
28516         (vreinterpretq_s64_f32): Likewise.
28517         (vreinterpretq_s64_u8): Likewise.
28518         (vreinterpretq_s64_u16): Likewise.
28519         (vreinterpretq_s64_u32): Likewise.
28520         (vreinterpretq_s64_u64): Likewise.
28521         (vreinterpretq_s64_p8): Likewise.
28522         (vreinterpretq_s64_p16): Likewise.
28523         (vreinterpret_u64_s8): Likewise.
28524         (vreinterpret_u64_s16): Likewise.
28525         (vreinterpret_u64_s32): Likewise.
28526         (vreinterpret_u64_s64): Likewise.
28527         (vreinterpret_u64_f32): Likewise.
28528         (vreinterpret_u64_u8): Likewise.
28529         (vreinterpret_u64_u16): Likewise.
28530         (vreinterpret_u64_u32): Likewise.
28531         (vreinterpret_u64_p8): Likewise.
28532         (vreinterpret_u64_p16): Likewise.
28533         (vreinterpretq_u64_s8): Likewise.
28534         (vreinterpretq_u64_s16): Likewise.
28535         (vreinterpretq_u64_s32): Likewise.
28536         (vreinterpretq_u64_s64): Likewise.
28537         (vreinterpretq_u64_f32): Likewise.
28538         (vreinterpretq_u64_u8): Likewise.
28539         (vreinterpretq_u64_u16): Likewise.
28540         (vreinterpretq_u64_u32): Likewise.
28541         (vreinterpretq_u64_p8): Likewise.
28542         (vreinterpretq_u64_p16): Likewise.
28543         (vreinterpret_s8_s16): Likewise.
28544         (vreinterpret_s8_s32): Likewise.
28545         (vreinterpret_s8_s64): Likewise.
28546         (vreinterpret_s8_f32): Likewise.
28547         (vreinterpret_s8_u8): Likewise.
28548         (vreinterpret_s8_u16): Likewise.
28549         (vreinterpret_s8_u32): Likewise.
28550         (vreinterpret_s8_u64): Likewise.
28551         (vreinterpret_s8_p8): Likewise.
28552         (vreinterpret_s8_p16): Likewise.
28553         (vreinterpretq_s8_s16): Likewise.
28554         (vreinterpretq_s8_s32): Likewise.
28555         (vreinterpretq_s8_s64): Likewise.
28556         (vreinterpretq_s8_f32): Likewise.
28557         (vreinterpretq_s8_u8): Likewise.
28558         (vreinterpretq_s8_u16): Likewise.
28559         (vreinterpretq_s8_u32): Likewise.
28560         (vreinterpretq_s8_u64): Likewise.
28561         (vreinterpretq_s8_p8): Likewise.
28562         (vreinterpretq_s8_p16): Likewise.
28563         (vreinterpret_s16_s8): Likewise.
28564         (vreinterpret_s16_s32): Likewise.
28565         (vreinterpret_s16_s64): Likewise.
28566         (vreinterpret_s16_f32): Likewise.
28567         (vreinterpret_s16_u8): Likewise.
28568         (vreinterpret_s16_u16): Likewise.
28569         (vreinterpret_s16_u32): Likewise.
28570         (vreinterpret_s16_u64): Likewise.
28571         (vreinterpret_s16_p8): Likewise.
28572         (vreinterpret_s16_p16): Likewise.
28573         (vreinterpretq_s16_s8): Likewise.
28574         (vreinterpretq_s16_s32): Likewise.
28575         (vreinterpretq_s16_s64): Likewise.
28576         (vreinterpretq_s16_f32): Likewise.
28577         (vreinterpretq_s16_u8): Likewise.
28578         (vreinterpretq_s16_u16): Likewise.
28579         (vreinterpretq_s16_u32): Likewise.
28580         (vreinterpretq_s16_u64): Likewise.
28581         (vreinterpretq_s16_p8): Likewise.
28582         (vreinterpretq_s16_p16): Likewise.
28583         (vreinterpret_s32_s8): Likewise.
28584         (vreinterpret_s32_s16): Likewise.
28585         (vreinterpret_s32_s64): Likewise.
28586         (vreinterpret_s32_f32): Likewise.
28587         (vreinterpret_s32_u8): Likewise.
28588         (vreinterpret_s32_u16): Likewise.
28589         (vreinterpret_s32_u32): Likewise.
28590         (vreinterpret_s32_u64): Likewise.
28591         (vreinterpret_s32_p8): Likewise.
28592         (vreinterpret_s32_p16): Likewise.
28593         (vreinterpretq_s32_s8): Likewise.
28594         (vreinterpretq_s32_s16): Likewise.
28595         (vreinterpretq_s32_s64): Likewise.
28596         (vreinterpretq_s32_f32): Likewise.
28597         (vreinterpretq_s32_u8): Likewise.
28598         (vreinterpretq_s32_u16): Likewise.
28599         (vreinterpretq_s32_u32): Likewise.
28600         (vreinterpretq_s32_u64): Likewise.
28601         (vreinterpretq_s32_p8): Likewise.
28602         (vreinterpretq_s32_p16): Likewise.
28603         (vreinterpret_u8_s8): Likewise.
28604         (vreinterpret_u8_s16): Likewise.
28605         (vreinterpret_u8_s32): Likewise.
28606         (vreinterpret_u8_s64): Likewise.
28607         (vreinterpret_u8_f32): Likewise.
28608         (vreinterpret_u8_u16): Likewise.
28609         (vreinterpret_u8_u32): Likewise.
28610         (vreinterpret_u8_u64): Likewise.
28611         (vreinterpret_u8_p8): Likewise.
28612         (vreinterpret_u8_p16): Likewise.
28613         (vreinterpretq_u8_s8): Likewise.
28614         (vreinterpretq_u8_s16): Likewise.
28615         (vreinterpretq_u8_s32): Likewise.
28616         (vreinterpretq_u8_s64): Likewise.
28617         (vreinterpretq_u8_f32): Likewise.
28618         (vreinterpretq_u8_u16): Likewise.
28619         (vreinterpretq_u8_u32): Likewise.
28620         (vreinterpretq_u8_u64): Likewise.
28621         (vreinterpretq_u8_p8): Likewise.
28622         (vreinterpretq_u8_p16): Likewise.
28623         (vreinterpret_u16_s8): Likewise.
28624         (vreinterpret_u16_s16): Likewise.
28625         (vreinterpret_u16_s32): Likewise.
28626         (vreinterpret_u16_s64): Likewise.
28627         (vreinterpret_u16_f32): Likewise.
28628         (vreinterpret_u16_u8): Likewise.
28629         (vreinterpret_u16_u32): Likewise.
28630         (vreinterpret_u16_u64): Likewise.
28631         (vreinterpret_u16_p8): Likewise.
28632         (vreinterpret_u16_p16): Likewise.
28633         (vreinterpretq_u16_s8): Likewise.
28634         (vreinterpretq_u16_s16): Likewise.
28635         (vreinterpretq_u16_s32): Likewise.
28636         (vreinterpretq_u16_s64): Likewise.
28637         (vreinterpretq_u16_f32): Likewise.
28638         (vreinterpretq_u16_u8): Likewise.
28639         (vreinterpretq_u16_u32): Likewise.
28640         (vreinterpretq_u16_u64): Likewise.
28641         (vreinterpretq_u16_p8): Likewise.
28642         (vreinterpretq_u16_p16): Likewise.
28643         (vreinterpret_u32_s8): Likewise.
28644         (vreinterpret_u32_s16): Likewise.
28645         (vreinterpret_u32_s32): Likewise.
28646         (vreinterpret_u32_s64): Likewise.
28647         (vreinterpret_u32_f32): Likewise.
28648         (vreinterpret_u32_u8): Likewise.
28649         (vreinterpret_u32_u16): Likewise.
28650         (vreinterpret_u32_u64): Likewise.
28651         (vreinterpret_u32_p8): Likewise.
28652         (vreinterpret_u32_p16): Likewise.
28653         (vreinterpretq_u32_s8): Likewise.
28654         (vreinterpretq_u32_s16): Likewise.
28655         (vreinterpretq_u32_s32): Likewise.
28656         (vreinterpretq_u32_s64): Likewise.
28657         (vreinterpretq_u32_f32): Likewise.
28658         (vreinterpretq_u32_u8): Likewise.
28659         (vreinterpretq_u32_u16): Likewise.
28660         (vreinterpretq_u32_u64): Likewise.
28661         (vreinterpretq_u32_p8): Likewise.
28662         (vreinterpretq_u32_p16): Likewise.
28663
28664 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28665
28666         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28667         Pattern extended.
28668         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28669         (sqabs): Likewise.
28670         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28671         (vqnegd_s64): Likewise.
28672         (vqabs_s64): Likewise.
28673         (vqabsd_s64): Likewise.
28674
28675 2014-04-22  Richard Henderson  <rth@redhat.com>
28676
28677         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28678         computation to the top of the loop.
28679
28680 2014-04-22  Renlin  <renlin.li@arm.com>
28681             Jiong Wang  <jiong.wang@arm.com>
28682
28683         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28684         * config/aarch64/aarch64.c (aarch64_layout_frame)
28685         (aarch64_initial_elimination_offset): Likewise.
28686
28687 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28688
28689         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28690         Fix indentation.
28691
28692 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
28693
28694         * machmode.h (bitwise_mode_for_mode): Declare.
28695         * stor-layout.h (bitwise_type_for_mode): Likewise.
28696         * stor-layout.c (bitwise_mode_for_mode): New function.
28697         (bitwise_type_for_mode): Likewise.
28698         * builtins.c (fold_builtin_memory_op): Use it instead of
28699         int_mode_for_mode and build_nonstandard_integer_type.
28700
28701 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28702
28703         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
28704         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
28705         (*-*-solaris2*): Simplify.
28706         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
28707         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
28708         *-*-solaris2.9* handling.
28709
28710         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
28711         as bug.
28712         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
28713         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
28714         handling, simplify.
28715         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28716         * configure: Regenerate.
28717
28718         * config/i386/sol2-9.h: Remove.
28719
28720         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28721         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28722         Remove Solaris 9 references.
28723
28724 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
28725
28726         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28727         (floatuns<GPI:mode><GPF:mode>2): Remove.
28728         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28729         and floatuns conversions.
28730         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28731         and floatuns conversions.
28732         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28733         (w1,w2): New mode attributes for inequal width conversions.
28734
28735 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
28736
28737         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28738         the output asm format.
28739
28740 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28741
28742         * config/aarch64/aarch64-simd.md
28743         (aarch64_cm<optab>di): Always split.
28744         (*aarch64_cm<optab>di): New.
28745         (aarch64_cmtstdi): Always split.
28746         (*aarch64_cmtstdi): New.
28747
28748 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28749
28750         PR tree-optimization/60823
28751         * omp-low.c (ipa_simd_modify_function_body): Go through
28752         all SSA_NAMEs and for those refering to vector arguments
28753         which are going to be replaced adjust SSA_NAME_VAR and,
28754         if it is a default definition, change it into a non-default
28755         definition assigned at the beginning of function from new_decl.
28756         (ipa_simd_modify_stmt_ops): Rewritten.
28757         * tree-dfa.c (set_ssa_default_def): When removing default def,
28758         check for NULL loc instead of NULL *loc.
28759
28760 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28761
28762         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
28763         restrictions on core registers for DImode values in Thumb2.
28764
28765 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
28766
28767         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
28768         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
28769
28770 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
28771
28772         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
28773         (*iordi_notzesidi_di): Likewise.
28774         (*iordi_notsesidi_di): Likewise.
28775
28776 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
28777
28778         * config/arm/arm-protos.h (tune_params): New struct members.
28779         * config/arm/arm.c: Initialise tune_params per processor.
28780         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
28781         for speed, based on new tune_params.
28782
28783 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
28784
28785         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
28786         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
28787         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
28788         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
28789         * config/aarch64/arm_neon.h (vrnd_f64): Added.
28790         (vrnda_f64): Likewise.
28791         (vrndi_f64): Likewise.
28792         (vrndm_f64): Likewise.
28793         (vrndn_f64): Likewise.
28794         (vrndp_f64): Likewise.
28795         (vrndx_f64): Likewise.
28796
28797 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28798
28799         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
28800         GET_MODE_SIZE argument is enum machine_mode.
28801
28802 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28803
28804         PR target/60910
28805         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
28806         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
28807
28808 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
28809
28810         PR middle-end/60281
28811         * asan.c (asan_emit_stack_protection): Force the base to align to
28812         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
28813         appropriate bits if STRICT_ALIGNMENT.
28814         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
28815         when asan is on.
28816         (expand_used_vars): Leave a space in the stack frame for alignment
28817         if STRICT_ALIGNMENT.
28818
28819 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
28820
28821         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
28822         than a gimple.
28823         (gimple_store_p): Likewise.
28824         (gimple_assign_load_p): Likewise.
28825         (gimple_assign_cast_p): Likewise.
28826         (gimple_clobber_p): Likewise.
28827
28828         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
28829         rather than a gimple.
28830         (gimple_assign_cast_p): Likewise.
28831
28832 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
28833
28834         PR target/60735
28835         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
28836         If mode is DDmode and TARGET_E500_DOUBLE allow move.
28837
28838         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
28839         more debug information for E500 if -mdebug=reg.
28840
28841 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
28842
28843         PR target/60909
28844         * config/i386/i386.c (ix86_expand_builtin)
28845         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
28846         register for target RTX.
28847         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
28848
28849 2014-04-18  Cong Hou  <congh@google.com>
28850
28851         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
28852         the widen-mult pattern by handling two operands with different sizes,
28853         and operands whose size is smaller than half of the result type.
28854
28855 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
28856
28857         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
28858         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
28859         (do_estimate_edge_time): Compute it.
28860         * ipa-inline.c (want_inline_small_function_p): Bypass
28861         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
28862
28863 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
28864
28865         * ipa-inline.c (spec_rem): New static variable.
28866         (dump_overall_stats): New function.
28867         (dump_inline_stats): New function.
28868
28869 2014-04-18  Richard Henderson  <rth@redhat.com>
28870
28871         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
28872         to GET_MODE_SIZE, not a reg_class_t.
28873
28874 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28875
28876         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
28877         (vsx_xxmrglw_<mode>): Likewise.
28878
28879 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
28880
28881         PR target/60876
28882         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
28883         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
28884         (rs6000_init_hard_regno_mode_ok): Likewise.
28885
28886 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
28887
28888         * ipa-inline.c (inline_small_functions): Account only non-cold
28889         functions.
28890         * doc/invoke.texi (inline-unit-growth): Update documentation.
28891
28892 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
28893
28894         * config/rs6000/rs6000.md (addti3, subti3): New.
28895
28896 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
28897
28898         PR target/60863
28899         * config/i386/i386.c (ix86_expand_clear): Remove outdated
28900         comment.  Check optimize_insn_for_size_p instead of
28901         optimize_insn_for_speed_p.
28902
28903 2014-04-17  Martin Jambor  <mjambor@suse.cz>
28904
28905         * gimple-iterator.c (gsi_start_edge): New function.
28906         * gimple-iterator.h (gsi_start_edge): Declare.
28907         * tree-sra.c (single_non_eh_succ): New function.
28908         (disqualify_ops_if_throwing_stmt): Renamed to
28909         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
28910         having one non-EH successor BB.
28911         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
28912         generate loads into replacements.
28913         (sra_modify_assign): Likewise and and also use the simple path for
28914         such statements.
28915         (sra_modify_function_body): Commit statements on edges.
28916
28917 2014-04-17  Richard Biener  <rguenther@suse.de>
28918
28919         PR middle-end/60849
28920         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
28921         comparison results and add clarifying comment.
28922
28923 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
28924
28925         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
28926         (blank_mode): Initialize it.
28927         (emit_mode_size_inline, emit_mode_nunits_inline,
28928         emit_mode_inner_inline): New functions.
28929         (emit_insn_modes_h): Call them and surround their output with
28930         #if GCC_VERSION >= 4001 ... #endif.
28931         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
28932         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
28933         mode_* arrays if the argument is __builtin_constant_p.
28934         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
28935         is enum machine_mode.
28936
28937 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28938
28939         * passes.c (opt_pass::execute): Adjust.
28940         (pass_manager::execute_pass_mode_switching): Likewise.
28941         (early_local_passes::execute): Likewise.
28942         (execute_one_pass): Pass cfun to the pass's execute method.
28943         * tree-pass.h (opt_pass::execute): Add function * argument.
28944         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28945         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28946         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28947         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28948         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28949         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
28950         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
28951         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28952         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28953         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
28954         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
28955         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
28956         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
28957         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
28958         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28959         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28960         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28961         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
28962         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
28963         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28964         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28965         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28966         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28967         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28968         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28969         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28970         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28971         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28972         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28973         Adjust.
28974
28975 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
28976
28977         * passes.c (opt_pass::gate): Take function * argument.
28978         (gate_all_early_local_passes): Merge into
28979         (early_local_passes::gate): this.
28980         (gate_all_early_optimizations): Merge into
28981         (all_early_optimizations::gate): this.
28982         (gate_all_optimizations): Mege into
28983         (all_optimizations::gate): this.
28984         (gate_all_optimizations_g): Merge into
28985         (all_optimizations_g::gate): this.
28986         (gate_rest_of_compilation): Mege into
28987         (rest_of_compilation::gate): this.
28988         (gate_postreload): Merge into
28989         (postreload::gate): this.
28990         (dump_one_pass): Pass cfun to the pass's gate method.
28991         (execute_ipa_summary_passes): Likewise.
28992         (execute_one_pass): Likewise.
28993         (ipa_write_summaries_2): Likewise.
28994         (ipa_write_optimization_summaries_1): Likewise.
28995         (ipa_read_summaries_1): Likewise.
28996         (ipa_read_optimization_summaries_1): Likewise.
28997         (execute_ipa_stmt_fixups): Likewise.
28998         * tree-pass.h (opt_pass::gate): Add function * argument.
28999         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29000         combine-stack-adj.c, combine.c, compare-elim.c,
29001         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29002         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29003         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29004         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
29005         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29006         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29007         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29008         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29009         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29010         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29011         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29012         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29013         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29014         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29015         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29016         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29017         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29018         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29019         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29020         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29021         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29022         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29023         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29024         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29025         var-tracking.c, vtable-verify.c, web.c: Adjust.
29026
29027 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29028
29029         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29030         * configure: Regenerate.
29031
29032 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29033
29034         * passes.c (dump_one_pass): don't check pass->has_gate.
29035         (execute_ipa_summary_passes): Likewise.
29036         (execute_one_pass): Likewise.
29037         (ipa_write_summaries_2): Likewise.
29038         (ipa_write_optimization_summaries_1): Likewise.
29039         (ipa_read_optimization_summaries_1): Likewise.
29040         (execute_ipa_stmt_fixups): Likewise.
29041         * tree-pass.h (pass_data::has_gate): Remove.
29042         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29043         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29044         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29045         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29046         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29047         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29048         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29049         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29050         gimple-low.c, gimple-ssa-isolate-paths.c,
29051         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29052         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29053         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29054         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29055         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29056         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29057         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29058         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29059         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29060         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29061         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29062         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29063         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29064         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29065         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29066         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29067         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29068         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29069         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29070         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29071         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29072         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29073         Adjust.
29074
29075 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29076
29077         * pass_manager.h (pass_manager::register_dump_files_1): Remove
29078         declaration.
29079         * passes.c (pass_manager::register_dump_files_1): Merge into
29080         (pass_manager::register_dump_files): this, and remove its handling of
29081         properties since the pass always has the properties anyway.
29082         (pass_manager::pass_manager): Adjust.
29083
29084 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29085
29086         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29087         * passes.c (pass_manager::register_dump_files_1): Remove dead code
29088         dealing with properties.
29089         (pass_manager::register_dump_files): Adjust.
29090
29091 2014-03-20  Mark Wielaard  <mjw@redhat.com>
29092
29093         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29094         then represent the bound as normal constant value.
29095
29096 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
29097
29098         PR target/60847
29099         Forward port from 4.8 branch
29100         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
29101
29102         * config/i386/bmiintrin.h (_blsi_u32): New.
29103         (_blsi_u64): Ditto.
29104         (_blsr_u32): Ditto.
29105         (_blsr_u64): Ditto.
29106         (_blsmsk_u32): Ditto.
29107         (_blsmsk_u64): Ditto.
29108         (_tzcnt_u32): Ditto.
29109         (_tzcnt_u64): Ditto.
29110
29111 2014-04-17  Kito Cheng  <kito@0xlab.org>
29112
29113         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29114
29115 2014-04-17  Richard Biener  <rguenther@suse.de>
29116
29117         PR middle-end/60849
29118         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29119         boolean results for comparisons.
29120
29121 2014-04-17  Richard Biener  <rguenther@suse.de>
29122
29123         PR tree-optimization/60836
29124         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29125         initial PHI args to be gimple values.
29126
29127 2014-04-17  Richard Biener  <rguenther@suse.de>
29128
29129         PR tree-optimization/60841
29130         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29131         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29132         of stmts to SLP build.
29133         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29134         (vect_analyze_slp): Likewise.
29135         (vect_analyze_slp_instance): Likewise.
29136         (vect_build_slp_tree): Limit overall SLP tree growth.
29137         * tree-vectorizer.h (vect_analyze_data_refs,
29138         vect_analyze_slp): Adjust prototypes.
29139
29140 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29141
29142         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29143         Silvermont.
29144
29145 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29146
29147         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29148         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29149         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29150         for TARGET_SLOW_PSHUFB
29151
29152 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29153
29154         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29155         * config/i386/i386.c (intel_cost): Ditto.
29156
29157 2014-04-17  Joey Ye  <joey.ye@arm.com>
29158
29159         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29160
29161 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29162
29163         * opts.c (common_handle_option): Disable -fipa-reference coorectly
29164         with -fuse-profile.
29165
29166 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29167
29168         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29169         (type_all_derivations_known_p): New predicate.
29170         (type_all_ctors_visible_p): New predicate.
29171         (type_possibly_instantiated_p): New predicate.
29172         (get_odr_type): Compute all_derivations_known.
29173         (dump_odr_type): Dump the flag.
29174         (maybe_record_type): Cleanup.
29175         (record_target_from_binfo): Add bases_to_consider array;
29176         record bases for types w/o instances and skip CXX destructor.
29177         (possible_polymorphic_call_targets_1): Add bases_to_consider
29178         and consider_construction parameters; check if type may have instance.
29179         (get_polymorphic_call_info): Set maybe_in_construction to true
29180         when we know nothing.
29181         (record_targets_from_bases): Skip CXX destructors; they are
29182         never called for types in construction.
29183         (possible_polymorphic_call_targets): Do not record target when
29184         type may not have instance.
29185
29186 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29187
29188         PR ipa/60854
29189         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29190         external aliases alive, too.
29191
29192 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
29193
29194         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29195         definition.
29196
29197 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
29198
29199         * final.c (compute_alignments): Do not apply loop alignment to a block
29200         falling through to the exit.
29201
29202 2014-04-16  Catherine Moore  <clm@codesourcery.com>
29203
29204         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29205         Adjust constraints for microMIPS store patterns.
29206
29207 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
29208
29209         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29210
29211 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
29212
29213         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29214         (append_use): Run at -O0.
29215         (append_vdef): Likewise.
29216         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
29217         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
29218
29219 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
29220
29221         PR tree-optimization/60844
29222         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
29223         (propagate_op_to_single_use, remove_visited_stmt_chain,
29224         linearize_expr, repropagate_negates, reassociate_bb): Use it
29225         instead of gsi_remove.
29226
29227 2014-04-16  Martin Jambor  <mjambor@suse.cz>
29228
29229         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
29230         ipa_transforms_to_apply.
29231         (cgraph_function_versioning): Assert that old_node has empty
29232         ipa_transforms_to_apply.
29233         * trans-mem.c (ipa_tm_create_version): Likewise.
29234         * tree-inline.c (tree_function_versioning): Do not duplicate
29235         ipa_transforms_to_apply.
29236
29237 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29238
29239         PR target/60817
29240         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
29241         x86_64-*-* cases.
29242         Pass necessary as flags on 64-bit Solaris/x86.
29243         Use lowercase relocs for x86_64-*-*.
29244         * configure: Regenerate.
29245
29246 2014-04-15  Jan Hubicka  <jh@suse.cz>
29247
29248         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
29249         (maybe_record_node, likely_target_p): Use it.
29250
29251 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29252
29253         PR target/60839
29254         Revert following patch
29255
29256         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29257
29258         PR target/60735
29259         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29260         software floating point or no floating point registers, do not
29261         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
29262         in GPRs that occurs after we tested for GPRs that would never be
29263         true.
29264
29265         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29266         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29267         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
29268         specifically allow DDmode, since that does not use the SPE SIMD
29269         instructions.
29270
29271 2014-03-21  Mark Wielaard  <mjw@redhat.com>
29272
29273         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29274         as unsigned or int depending on type and value used.
29275
29276 2014-04-15  Richard Biener  <rguenther@suse.de>
29277
29278         PR rtl-optimization/56965
29279         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29280         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29281         ... here.
29282         * alias.c (true_dependence_1): Do not call
29283         nonoverlapping_component_refs_p.
29284         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29285         nonoverlapping_component_refs_p.
29286         (indirect_refs_may_alias_p): Likewise.
29287
29288 2014-04-15  Teresa Johnson  <tejohnson@google.com>
29289
29290         * cfg.c (dump_bb_info): Fix flags check.
29291         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29292
29293 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29294
29295         PR rtl-optimization/60663
29296         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29297         avoid 0 cost.
29298
29299 2014-04-15  Richard Biener  <rguenther@suse.de>
29300
29301         * lto-streamer.h (LTO_major_version): Bump to 4.
29302
29303 2014-04-15  Richard Biener  <rguenther@suse.de>
29304
29305         * common.opt (lto_partition_model): New enum.
29306         (flto-partition=): Merge separate options with a single with argument,
29307         add -flto-partition=one support.
29308         * flag-types.h (enum lto_partition_model): Declare.
29309         * opts.c (finish_options): Remove duplicate -flto-partition=
29310         option check.
29311         * lto-wrapper.c (run_gcc): Adjust.
29312
29313 2014-04-15  Richard Biener  <rguenther@suse.de>
29314
29315         * alias.c (ncr_compar): New function.
29316         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29317
29318 2014-04-15  Richard Biener  <rguenther@suse.de>
29319
29320         * alias.c (record_component_aliases): Do not walk BINFOs.
29321
29322 2014-04-15  Richard Biener  <rguenther@suse.de>
29323
29324         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29325         Add struct function argument and adjust.
29326         (find_func_aliases_for_call): Likewise.
29327         (find_func_aliases): Likewise.
29328         (find_func_clobbers): Likewise.
29329         (intra_create_variable_infos): Likewise.
29330         (compute_points_to_sets): Likewise.
29331         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
29332
29333 2014-04-15  Richard Biener  <rguenther@suse.de>
29334
29335         * tree.c (iterative_hash_expr): Use enum tree_code_class
29336         to store TREE_CODE_CLASS.
29337         (tree_block): Likewise.
29338         (tree_set_block): Likewise.
29339         * tree.h (fold_build_pointer_plus_loc): Use
29340         convert_to_ptrofftype_loc.
29341
29342 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
29343
29344         PR plugins/59335
29345         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29346         added in 4.9.
29347
29348 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29349
29350         * cfgloop.h (struct loop): Move force_vectorize down.
29351         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
29352         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
29353         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
29354         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
29355         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
29356         * tree-core.h (enum annot_expr_kind): Add new kind values.
29357         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
29358         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
29359         kinds.
29360         * tree.def (ANNOTATE_EXPR): Tweak comment.
29361
29362 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
29363
29364         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
29365         cxa_pure_virtual).
29366
29367 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
29368
29369         * tree.h (TYPE_IDENTIFIER): Declare.
29370         * tree.c (subrange_type_for_debug_p): Use it.
29371         * godump.c (go_format_type): Likewise.
29372         * dwarf2out.c (is_cxx_auto, modified_type_die,
29373         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
29374         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
29375
29376 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
29377
29378         PR lto/60820
29379         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
29380
29381 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
29382
29383         * config/i386/i386.c (examine_argument): Return bool.  Return true if
29384         parameter should be passed in memory.
29385         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
29386         (construct_container): Update calls to examine_argument.
29387         (function_arg_advance_64): Ditto.
29388         (return_in_memory_32): Merge with ix86_return_in_memory.
29389         (return_in_memory_64): Ditto.
29390         (return_in_memory_ms_64): Ditto.
29391
29392 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
29393
29394         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
29395         * coverage.c (coverage_compute_profile_id): Handle externally visible
29396         symbols.
29397
29398 2014-04-14  Martin Jambor  <mjambor@suse.cz>
29399
29400         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
29401         DECL_DISREGARD_INLINE_LIMITS functions.
29402
29403 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
29404
29405         PR target/60827
29406         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
29407
29408 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
29409
29410         PR target/60827
29411         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
29412         optimize_insn_for_speed_p instead of
29413         optimize_function_for_speed_p.
29414
29415 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
29416
29417         * doc/invoke.texi (free): Document AArch64.
29418
29419 2014-04-14  Richard Biener  <rguenther@suse.de>
29420
29421         PR tree-optimization/60042
29422         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
29423         (insert_into_preds_of_block): Do not prevent PHI insertion
29424         for REFERENCE exprs here ...
29425         (eliminate_dom_walker::before_dom_children): ... but prevent
29426         their use here under similar conditions when applied to the
29427         IL after PRE optimizations.
29428
29429 2014-04-14  Richard Biener  <rguenther@suse.de>
29430
29431         * passes.def: Move early points-to after early SRA.
29432
29433 2014-04-14  Richard Biener  <rguenther@suse.de>
29434
29435         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
29436         check for which sign-changes we allow when forwarding
29437         a converted value into a switch.
29438
29439 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29440
29441         * stor-layout.c (place_field): Finalize non-constant offset for the
29442         field, if any.
29443
29444 2014-04-14  Richard Biener  <rguenther@suse.de>
29445
29446         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
29447         as argument.
29448         (expand_switch_using_bit_tests_p): Likewise.
29449         (process_switch): Compute and pass on speed_p based on the
29450         switch stmt.
29451         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
29452         optimize_bb_for_speed_p.
29453
29454 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29455
29456         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
29457         * function.h (struct function): Rename has_force_vect_loops into
29458         has_force_vectorize_loops.
29459         * lto-streamer-in.c (input_cfg): Adjust for renaming.
29460         (input_struct_function_base): Likewise.
29461         * lto-streamer-out.c (output_cfg): Likewise.
29462         (output_struct_function_base): Likewise.
29463         * omp-low.c (expand_omp_simd): Likewise.
29464         * tree-cfg.c (move_sese_region_to_fn): Likewise.
29465         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
29466         (version_loop_for_if_conversion): Likewise.
29467         (tree_if_conversion): Likewise.
29468         (main_tree_if_conversion): Likewise.
29469         (gate_tree_if_conversion): Likewise.
29470         * tree-inline.c (copy_loops): Likewise.
29471         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
29472         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
29473         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
29474         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
29475         * tree-vectorizer.c (vectorize_loops): Likewise.
29476         * tree-vectorizer.h (unlimited_cost_model): Likewise.
29477
29478 2014-04-14  Richard Biener  <rguenther@suse.de>
29479
29480         PR lto/60720
29481         * lto-streamer-out.c (wrap_refs): New function.
29482         (lto_output): Wrap symbol references in global initializes in
29483         type-preserving MEM_REFs.
29484
29485 2014-04-14  Christian Bruel  <christian.bruel@st.com>
29486
29487         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
29488
29489 2014-04-14  Christian Bruel  <christian.bruel@st.com>
29490
29491         * config/sh/sh.md (setmemqi): New expand pattern.
29492         * config/sh/sh.h (CLEAR_RATIO): Define.
29493         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
29494         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
29495
29496 2014-04-14  Richard Biener  <rguenther@suse.de>
29497
29498         PR middle-end/55022
29499         * fold-const.c (negate_expr_p): Don't negate directional rounding
29500         division.
29501         (fold_negate_expr): Likewise.
29502
29503 2014-04-14  Richard Biener  <rguenther@suse.de>
29504
29505         PR tree-optimization/59817
29506         PR tree-optimization/60453
29507         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
29508         recursion to catch all CHRECs in the scalar evolution and restrict
29509         the predicate for the remains appropriately.
29510
29511 2014-04-12  Catherine Moore  <clm@codesourcery.com>
29512
29513         * config/mips/constraints.md: Add new register constraint "kb".
29514         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
29515         (*movhi_internal): Likewise.
29516         (*movqi_internal): Likewise.
29517         * config/mips/mips.h (M16_STORE_REGS): New register class.
29518         (REG_CLASS_NAMES): Add M16_STORE_REGS.
29519         (REG_CLASS_CONTENTS): Likewise.
29520         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
29521
29522 2014-04-11  Tobias Burnus  <burnus@net-b.de>
29523
29524         PR c/60194
29525         * doc/invoke.texi (-Wformat-signedness): Document it.
29526         (Wformat=2): Mention that this enables -Wformat-signedness.
29527
29528 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29529
29530         * common/config/epiphany/epiphany-common.c
29531         (epiphany_option_optimization_table): Enable section anchors by
29532         default at -O1 or higher.
29533         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
29534         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
29535         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
29536         carries no extra cost.
29537         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
29538         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
29539         * config/epiphany/predicates.md (memclob_operand): New predicate.
29540         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
29541         Use memclob_operand predicate and X constraint for operand 3.
29542
29543 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29544
29545         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
29546         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
29547         its operands.
29548
29549 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29550
29551         PR rtl-optimization/60651
29552         * mode-switching.c (optimize_mode_switching): Make sure to emit
29553         sets of a lower numbered entity before sets of a higher numbered
29554         entity to a mode of the same or lower priority.
29555         When creating a seginfo for a basic block that starts with a code
29556         label, move the insertion point past the code label.
29557         (new_seginfo): Document and enforce requirement that
29558         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
29559         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
29560         * doc/tm.texi: Regenerate.
29561
29562 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29563
29564         PR target/60811
29565         * config/arc/arc.c (arc_save_restore): Fix assert typo.
29566
29567 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
29568
29569         * BASE-VER: Set to 4.10.0.
29570
29571 2014-04-11  Tobias Burnus  <burnus@net-b.de>
29572
29573         PR other/59055
29574         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
29575         * doc/gcc.texi (Service): Update description in the @menu
29576         * doc/invoke.texi (Option Summary): Remove misplaced and
29577         duplicated @menu.
29578
29579 2014-04-11  Steve Ellcey  <sellcey@mips.com>
29580             Jakub Jelinek  <jakub@redhat.com>
29581
29582         PR middle-end/60556
29583         * expr.c (convert_move): Use emit_store_flag_force instead of
29584         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
29585         argument to it.
29586
29587 2014-04-11  Richard Biener  <rguenther@suse.de>
29588
29589         PR middle-end/60797
29590         * varasm.c (assemble_alias): Avoid endless error reporting
29591         recursion by setting TREE_ASM_WRITTEN.
29592
29593 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29594
29595         * config/s390/s390.md: Add a splitter for NOT rtx.
29596
29597 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
29598
29599         PR rtl-optimization/60663
29600         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29601
29602 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
29603             Jakub Jelinek  <jakub@redhat.com>
29604
29605         PR lto/60567
29606         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29607         flag from decl_node to node.
29608
29609 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29610
29611         PR debug/60655
29612         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29613         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29614         ameliorating the cases where it can be.
29615
29616 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
29617
29618         Revert
29619         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
29620
29621         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29622         (loadsync_<mode>): Change mode.
29623         (load_quadpti, store_quadpti): New.
29624         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29625         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29626         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29627
29628 2014-04-09  Cong Hou  <congh@google.com>
29629
29630         PR testsuite/60773
29631         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29632         documentation.
29633
29634 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29635
29636         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29637         instead of vnor to exploit possible fusion opportunity in the
29638         future.
29639         (altivec_expand_vec_perm_const_le): Likewise.
29640
29641 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
29642
29643         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29644         (loadsync_<mode>): Change mode.
29645         (load_quadpti, store_quadpti): New.
29646         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29647         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29648
29649 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
29650
29651         PR target/60763
29652         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29653         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29654         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29655
29656 2014-04-08  Richard Biener  <rguenther@suse.de>
29657
29658         PR middle-end/60706
29659         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29660         a 64bit widest int print double-int similar to on HWI64 hosts.
29661
29662 2014-04-08  Richard Biener  <rguenther@suse.de>
29663
29664         PR tree-optimization/60785
29665         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29666         default defs properly.
29667
29668 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
29669
29670         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29671         (Weffc++): Likewise.
29672
29673 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
29674
29675         * ipa-devirt.c (maybe_record_node): When node is not recorded,
29676         set completep to false rather than true.
29677
29678 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
29679
29680         PR target/60504
29681         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29682         ARM_TARGET2_DWARF_FORMAT.
29683
29684 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
29685
29686         PR target/60609
29687         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29688         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29689         ADDR_DIFF_VEC.
29690
29691 2014-04-07  Richard Biener  <rguenther@suse.de>
29692
29693         PR tree-optimization/60766
29694         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29695         (may_eliminate_iv): Convert cand_value_at result to desired type.
29696
29697 2014-04-07  Jason Merrill  <jason@redhat.com>
29698
29699         PR c++/60731
29700         * common.opt (-fno-gnu-unique): Add.
29701         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
29702
29703 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29704
29705         * haifa-sched.c: Fix outdated function reference and minor
29706         grammar errors in introductory comment.
29707
29708 2014-04-07  Richard Biener  <rguenther@suse.de>
29709
29710         PR middle-end/60750
29711         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
29712         for noreturn calls.
29713         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
29714
29715 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
29716
29717         PR debug/55794
29718         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29719         size accounting for thunks.
29720         (pa_asm_output_mi_thunk): Use final_start_function() and
29721         final_end_function() to output function start and end directives.
29722
29723 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
29724
29725         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29726         device specific ISA/ feature information. Remove short_sp and
29727         errata_skip ds.  Add avr_device_specific_features enum to have device
29728         specific info.
29729         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29730         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29731         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29732         updated device specific info.
29733         * config/avr/avr-mcus.def: Merge device specific details to
29734         dev_attribute field.
29735         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29736         errata_skip.
29737         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29738         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29739         assembler if RMW isa supported by current device.
29740         * config/avr/genmultilib.awk: Update as device info structure changed.
29741         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29742
29743 2014-04-04  Cong Hou  <congh@google.com>
29744
29745         PR tree-optimization/60656
29746         * tree-vect-stmts.c (supportable_widening_operation):
29747         Fix a bug that elements in a vector with vect_used_by_reduction
29748         property are incorrectly reordered when the operation on it is not
29749         consistant with the one in reduction operation.
29750
29751 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
29752
29753         PR rtl-optimization/60155
29754         * gcse.c (record_set_data): New function.
29755         (single_set_gcse): New function.
29756         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
29757         (hoist_code): Likewise.
29758         (get_pressure_class_and_nregs): Likewise.
29759
29760 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
29761
29762         * explow.c (probe_stack_range): Emit a final optimization blockage.
29763
29764 2014-04-04  Anthony Green  <green@moxielogic.com>
29765
29766         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
29767         typos.
29768
29769 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
29770
29771         PR ipa/59626
29772         * lto-cgraph.c (input_overwrite_node): Check that partitioning
29773         flags are set only during streaming.
29774         * ipa.c (process_references, walk_polymorphic_call_targets,
29775         symtab_remove_unreachable_nodes): Drop bodies of always inline
29776         after early inlining.
29777         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
29778
29779 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
29780         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29781
29782         PR debug/60655
29783         * dwarf2out.c (const_ok_for_output_1): Reject expressions
29784         containing a NOT.
29785
29786 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29787
29788         PR bootstrap/60743
29789         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
29790         duration.
29791         (cortex_a53_fdivd): Likewise.
29792
29793 2014-04-04  Martin Jambor  <mjambor@suse.cz>
29794
29795         PR ipa/60640
29796         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
29797         Adjust all callers.
29798         * cgraph.c (clone_of_p): Also return true if thunks match.
29799         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
29800         cgraph_function_or_thunk_node and an obsolete comment.
29801         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
29802         file.
29803         (build_function_decl_skip_args): Likewise.
29804         (set_new_clone_decl_and_node_flags): New function.
29805         (duplicate_thunk_for_node): Likewise.
29806         (redirect_edge_duplicating_thunks): Likewise.
29807         (cgraph_clone_node): New parameter args_to_skip, pass it to
29808         redirect_edge_duplicating_thunks which is called instead of
29809         cgraph_redirect_edge_callee.
29810         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
29811         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
29812
29813 2014-04-04  Jeff Law  <law@redhat.com>
29814
29815         PR target/60657
29816         * config/arm/predicates.md (const_int_I_operand): New predicate.
29817         (const_int_M_operand): Similarly.
29818         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
29819         const_int_operand.
29820         (insv_t2, extv_reg, extzv_t2): Likewise.
29821         (load_multiple_with_writeback): Similarly for const_int_I_operand.
29822         (pop_multiple_with_writeback_and_return): Likewise.
29823         (vfp_pop_multiple_with_writeback): Likewise
29824
29825 2014-04-04  Richard Biener  <rguenther@suse.de>
29826
29827         PR ipa/60746
29828         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
29829         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
29830         non-GIMPLE_LABELs.
29831         * gimplify.h (gimple_add_tmp_var_fn): Declare.
29832         * gimplify.c (gimple_add_tmp_var_fn): New function.
29833         * gimple-expr.h (create_tmp_reg_fn): Declare.
29834         * gimple-expr.c (create_tmp_reg_fn): New function.
29835         * gimple-low.c (record_vars_into): Don't change cfun.
29836         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
29837         code generation without cfun.
29838
29839 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
29840
29841         PR bootstrap/60719
29842         * Makefile.in (install-driver): Fix shell scripting.
29843
29844 2014-04-03  Cong Hou  <congh@google.com>
29845
29846         PR tree-optimization/60505
29847         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
29848         threshold of number of iterations below which no vectorization
29849         will be done.
29850         * tree-vect-loop.c (new_loop_vec_info):
29851         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
29852         * tree-vect-loop.c (vect_analyze_loop_operations):
29853         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
29854         * tree-vect-loop.c (vect_transform_loop):
29855         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
29856         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
29857         of iterations of the loop and see if we should build the epilogue.
29858
29859 2014-04-03  Richard Biener  <rguenther@suse.de>
29860
29861         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
29862         (streamer_tree_cache_create): Adjust.
29863         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
29864         to allow optional nodes array.
29865         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
29866         (streamer_tree_cache_append): Likewise.
29867         (streamer_tree_cache_create): Create nodes array optionally
29868         as specified by parameter.
29869         * lto-streamer-out.c (create_output_block): Avoid maintaining
29870         the node array in the writer cache.
29871         (DFS_write_tree): Remove assertion.
29872         (produce_asm_for_decls): Free the out decl state hash table early.
29873         * lto-streamer-in.c (lto_data_in_create): Adjust for
29874         streamer_tree_cache_create prototype change.
29875
29876 2014-04-03  Richard Biener  <rguenther@suse.de>
29877
29878         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
29879         set TREE_CHAIN to NULL_TREE.
29880
29881 2014-04-03  Richard Biener  <rguenther@suse.de>
29882
29883         PR tree-optimization/60740
29884         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
29885         over all GIMPLE_COND operands.
29886
29887 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
29888
29889         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
29890         (Weffc++): Remove Scott's numbering, merge lists and reference
29891         Wnon-virtual-dtor.
29892
29893 2014-04-03  Nick Clifton  <nickc@redhat.com>
29894
29895         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
29896         properly.
29897
29898 2014-04-03  Martin Jambor  <mjambor@suse.cz>
29899
29900         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
29901         mention gcc_unreachable before failing.
29902         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
29903         removed symbols.
29904
29905 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
29906
29907         PR ipa/60659
29908         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
29909         inconsistent code and instead mark the context inconsistent.
29910         (possible_polymorphic_call_targets): For inconsistent contexts
29911         return empty complete list.
29912
29913 2014-04-02  Anthony Green  <green@moxielogic.com>
29914
29915         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
29916         (extendqisi2, extendhisi2): Define.
29917         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
29918         (WCHAR_TYPE): Change to unsigned int.
29919
29920 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29921
29922         PR tree-optimization/60733
29923         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
29924         insertion point for PHI candidates to be the end of the feeding
29925         block for the PHI argument.
29926
29927 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
29928
29929         PR rtl-optimization/60650
29930         * lra-constraints.c (process_alt_operands): Decrease reject for
29931         earlyclobber matching.
29932
29933 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29934
29935         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
29936
29937 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29938
29939         * config/spu/spu.c (pad_bb): Do not crash when the last
29940         insn is CODE_FOR_blockage.
29941
29942 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29943
29944         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
29945         lies outside the target mode.
29946
29947 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29948
29949         PR target/60735
29950         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29951         software floating point or no floating point registers, do not
29952         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
29953         in GPRs that occurs after we tested for GPRs that would never be
29954         true.
29955
29956         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29957         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29958         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
29959         specifically allow DDmode, since that does not use the SPE SIMD
29960         instructions.
29961
29962 2014-04-02  Richard Biener  <rguenther@suse.de>
29963
29964         PR middle-end/60729
29965         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
29966         MODE_INTs.  Properly use negv_optab.
29967         (expand_abs): Likewise.
29968
29969 2014-04-02  Richard Biener  <rguenther@suse.de>
29970
29971         PR bootstrap/60719
29972         * Makefile.in (install-driver): Guard extra installs with special
29973         names properly.
29974
29975 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
29976
29977         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29978         Document vec_vgbbd.
29979
29980 2014-04-01  Richard Henderson  <rth@redhat.com>
29981
29982         PR target/60704
29983         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
29984         alternative enabled before register allocation.
29985
29986 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
29987
29988         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
29989         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
29990         typo.
29991         (nios2_large_got_address): Remove unneeded 'sym' parameter.
29992         (nios2_got_address): Update nios2_large_got_address call site.
29993         (nios2_delegitimize_address): New function.
29994         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
29995         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
29996         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
29997
29998 2014-04-01  Martin Husemann  <martin@duskware.de>
29999
30000         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30001         for -mabi=32.
30002
30003 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
30004
30005         PR rtl-optimization/60604
30006         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30007         check from register_operand.
30008         (register_operand): Redefine in terms of general_operand.
30009         (nonmemory_operand): Use register_operand for the non-constant cases.
30010
30011 2014-04-01  Richard Biener  <rguenther@suse.de>
30012
30013         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30014
30015 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30016
30017         * doc/invoke.texi (mapp-regs): Clarify.
30018
30019 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
30020
30021         * config/i386/avx512fintrin.h (__v32hi): Define type.
30022         (__v64qi): Likewise.
30023         (_mm512_set1_epi8): Define.
30024         (_mm512_set1_epi16): Define.
30025         (_mm512_set4_epi32): Define.
30026         (_mm512_set4_epi64): Define.
30027         (_mm512_set4_pd): Define.
30028         (_mm512_set4_ps): Define.
30029         (_mm512_setr4_epi64): Define.
30030         (_mm512_setr4_epi32): Define.
30031         (_mm512_setr4_pd): Define.
30032         (_mm512_setr4_ps): Define.
30033         (_mm512_setzero_epi32): Define.
30034
30035 2014-03-31  Martin Jambor  <mjambor@suse.cz>
30036
30037         PR middle-end/60647
30038         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30039         callsite_arguments_match_p.  Updated all callers.  Also check types of
30040         corresponding formal parameters and actual arguments.
30041         (not_all_callers_have_enough_arguments_p) Renamed to
30042         some_callers_have_mismatched_arguments_p.
30043
30044 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
30045
30046         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30047
30048 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
30049
30050         PR target/60034
30051         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30052         section anchor.
30053
30054 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
30055
30056         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30057         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30058         Split out
30059         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30060         Use FMAMODE_NOVF512 mode iterator.
30061         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30062         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30063         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30064         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30065         Split out
30066         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30067         Use VF_128_256 mode iterator.
30068         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30069         Ditto.
30070
30071 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30072
30073         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30074         static chain if needed.
30075
30076 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30077
30078         PR target/60697
30079         * lra-constraints.c (index_part_to_reg): New.
30080         (process_address): Use it.
30081
30082 2014-03-27  Jeff Law  <law@redhat.com>
30083             Jakub Jelinek  <jakub@redhat.com>
30084
30085         PR target/60648
30086         * expr.c (do_tablejump): Use simplify_gen_binary rather than
30087         gen_rtx_{PLUS,MULT} to build up the address expression.
30088
30089         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30090         creating non-canonical RTL.
30091
30092 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30093
30094         PR ipa/60243
30095         * ipa-inline.c (want_inline_small_function_p): Short circuit large
30096         functions; reorganize to make cheap checks first.
30097         (inline_small_functions): Do not estimate growth when dumping;
30098         it is expensive.
30099         * ipa-inline.h (inline_summary): Add min_size.
30100         (growth_likely_positive): New function.
30101         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30102         (set_cond_stmt_execution_predicate): Cleanup.
30103         (estimate_edge_size_and_time): Compute min_size.
30104         (estimate_calls_size_and_time): Likewise.
30105         (estimate_node_size_and_time): Likewise.
30106         (inline_update_overall_summary): Update min_size.
30107         (do_estimate_edge_time): Likewise.
30108         (do_estimate_edge_size): Update.
30109         (do_estimate_edge_hints): Update.
30110         (growth_likely_positive): New function.
30111
30112 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
30113
30114         PR target/60693
30115         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30116         also if addr has VOIDmode.
30117
30118 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30119
30120         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30121         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30122         Declare extern.
30123         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30124         instructions as well as AdvancedSIMD loads.
30125
30126 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30127
30128         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30129         Use crypto_aese type.
30130         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30131         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30132         crypto_aese, crypto_aesmc.  Move to types.md.
30133         * config/arm/types.md (crypto_aes): Split into crypto_aese,
30134         crypto_aesmc.
30135         * config/arm/iterators.md (crypto_type): Likewise.
30136
30137 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30138
30139         * cgraph.c: Include expr.h and tree-dfa.h.
30140         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30141         remove LHS.
30142
30143 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30144
30145         PR target/60675
30146         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30147         regs from checking multi-reg pseudos.
30148
30149 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30150
30151         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30152
30153 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30154
30155         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30156         if it would clobber the stack pointer, even temporarily.
30157
30158 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30159
30160         * mode-switching.c: Make small adjustments to the top comment.
30161
30162 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
30163
30164         * config/rs6000/constraints.md (wD constraint): New constraint to
30165         match the constant integer to get the top DImode/DFmode out of a
30166         vector in a VSX register.
30167
30168         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30169         match the constant integer to get the top DImode/DFmode out of a
30170         vector in a VSX register.
30171
30172         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30173         for ISA 2.07.
30174
30175         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30176         vbpermq builtins.
30177
30178         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30179         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30180
30181         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30182         Optimize vec_extract of 64-bit values, where the value being
30183         extracted is in the top word, where we can use scalar
30184         instructions.  Add direct move and store support.  Combine the big
30185         endian/little endian vector select load support into a single insn.
30186         (vsx_extract_<mode>_internal1): Likewise.
30187         (vsx_extract_<mode>_internal2): Likewise.
30188         (vsx_extract_<mode>_load): Likewise.
30189         (vsx_extract_<mode>_store): Likewise.
30190         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30191         combined into vsx_extract_<mode>_load.
30192         (vsx_extract_<mode>_one_le): Likewise.
30193
30194         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30195         define the top 64-bit vector element.
30196
30197         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30198         constraint.
30199
30200         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30201         Document vec_vbpermq builtin.
30202
30203         PR target/60672
30204         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30205         enable use of xxsldwi and xxpermdi builtin functions.
30206         (vec_xxpermdi): Likewise.
30207
30208         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30209         Document use of vec_xxsldwi and vec_xxpermdi builtins.
30210
30211 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30212
30213         PR rtl-optimization/60650
30214         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30215         first_p.  Use it.
30216         (find_spills_for): New.
30217         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
30218         Spill all pseudos on the second iteration.
30219
30220 2014-03-27  Marek Polacek  <polacek@redhat.com>
30221
30222         PR c/50347
30223         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
30224         types.
30225
30226 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30227
30228         * config/s390/s390.c (s390_can_use_return_insn): Check for
30229         call-saved FPRs on 31 bit.
30230
30231 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
30232
30233         PR middle-end/60682
30234         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
30235         if they need regimplification, just drop them instead of
30236         calling gimple_regimplify_operands on them.
30237
30238 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30239
30240         PR target/60580
30241         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
30242         (aarch64_frame_pointer_required): Adjust logic.
30243         (aarch64_can_eliminate): Adjust logic.
30244         (aarch64_override_options_after_change): Adjust logic.
30245
30246 2014-03-27  Dehao Chen  <dehao@google.com>
30247
30248         * ipa-inline.c (early_inliner): Update node's inline info.
30249
30250 2014-03-26  Dehao Chen  <dehao@google.com>
30251
30252         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30253         compiler inserted conditional jumps for NAN float check.
30254
30255 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
30256
30257         * ubsan.h (ubsan_create_data): Change second argument's type
30258         to const location_t *.
30259         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30260         _("<unknown>").
30261         (ubsan_create_data): Change second argument to const location_t *PLOC.
30262         Create Loc field whenever PLOC is non-NULL.
30263         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30264         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30265         callers.
30266
30267         PR other/59545
30268         * real.c (real_to_integer2): Change type of low to UHWI.
30269
30270 2014-03-26  Tobias Burnus  <burnus@net-b.de>
30271
30272         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30273         (CILK_SELF_SPECS): New define.
30274         (driver_self_specs): Use it.
30275
30276 2014-03-26  Richard Biener  <rguenther@suse.de>
30277
30278         * tree-pretty-print.c (percent_K_format): Implement special
30279         case for LTO and its stripped down BLOCK tree.
30280
30281 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
30282
30283         PR sanitizer/60636
30284         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30285
30286         * tree-vrp.c (simplify_internal_call_using_ranges): If only
30287         one range is range_int_cst_p, but not both, at least optimize
30288         addition/subtraction of 0 and multiplication by 0 or 1.
30289         * gimple-fold.c (gimple_fold_call): Fold
30290         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30291         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30292         INTEGER_CSTs, try to fold at least x * 0 and y - y.
30293
30294 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30295
30296         PR rtl-optimization/60452
30297         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30298         <case REG>: Return 1 for invalid offsets from the frame pointer.
30299
30300 2014-03-26  Marek Polacek  <polacek@redhat.com>
30301
30302         PR c/37428
30303         * doc/extend.texi (C Extensions): Mention variable-length arrays in
30304         a structure/union.
30305
30306 2014-03-26  Marek Polacek  <polacek@redhat.com>
30307
30308         PR c/39525
30309         * doc/extend.texi (Designated Inits): Describe what happens to omitted
30310         field members.
30311
30312 2014-03-26  Marek Polacek  <polacek@redhat.com>
30313
30314         PR other/59545
30315         * ira-color.c (update_conflict_hard_regno_costs): Perform the
30316         multiplication in unsigned type.
30317
30318 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
30319
30320         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30321
30322 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
30323
30324         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30325
30326 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
30327
30328         PR ipa/60315
30329         * cif-code.def (UNREACHABLE) New code.
30330         * ipa-inline.c (inline_small_functions): Skip edges to
30331         __builtlin_unreachable.
30332         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30333         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30334         predicate to __bulitin_unreachable.
30335         (set_cond_stmt_execution_predicate): Fix issue when
30336         invert_tree_comparison returns ERROR_MARK.
30337         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30338         propagate to inline clones.
30339         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30340         to unreachable.
30341         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30342         * cgraphclones.c (cgraph_clone_node): If call destination is already
30343         ureachable, do not redirect it back.
30344         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30345         unreachable.
30346
30347 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
30348
30349         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30350         Do not modify inline clones.
30351
30352 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
30353
30354         * config/i386/i386.md (general_sext_operand): New mode attr.
30355         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
30356         don't generate (sign_extend (const_int)).
30357         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
30358         operands[2].  Use We constraint instead of <i> and
30359         <general_sext_operand> predicate instead of <general_operand>.
30360         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
30361         * config/i386/constraints.md (We): New constraint.
30362         * config/i386/predicates.md (x86_64_sext_operand,
30363         sext_operand): New predicates.
30364
30365 2014-03-25  Martin Jambor  <mjambor@suse.cz>
30366
30367         PR ipa/60600
30368         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
30369         inconsistent devirtualizations to __builtin_unreachable.
30370
30371 2014-03-25  Marek Polacek  <polacek@redhat.com>
30372
30373         PR c/35449
30374         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
30375
30376 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
30377
30378         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
30379         order of elements for big-endian.
30380
30381 2014-03-25  Richard Biener  <rguenther@suse.de>
30382
30383         PR middle-end/60635
30384         * gimplify-me.c (gimple_regimplify_operands): Update the
30385         re-gimplifed stmt.
30386
30387 2014-03-25  Martin Jambor  <mjambor@suse.cz>
30388
30389         PR ipa/59176
30390         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
30391         (lto_output_varpool_node): Likewise.
30392         (input_overwrite_node): Likewise.
30393         (input_varpool_node): Likewise.
30394
30395 2014-03-25  Richard Biener  <rguenther@suse.de>
30396
30397         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
30398         (run_gcc): Likewise.
30399
30400 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
30401
30402         * combine.c (simplify_compare_const): Add MODE argument.
30403         Handle mode_width 0 as very large mode_width.
30404         (try_combine, simplify_comparison): Adjust callers.
30405
30406         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
30407         type to avoid signed integer overflow.
30408         * explow.c (plus_constant): Likewise.
30409
30410 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30411
30412         * doc/generic.texi: Correct typos.
30413
30414 2014-03-24  Tobias Burnus  <burnus@net-b.de>
30415
30416         * doc/invoke.texi (-flto): Expand section about
30417         using static libraries with LTO.
30418
30419 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30420
30421         PR rtl-optimization/60501
30422         * optabs.def (addptr3_optab): New optab.
30423         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
30424         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
30425         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
30426
30427         * lra.c (emit_add3_insn): Use the addptr pattern if available.
30428
30429         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
30430
30431 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
30432
30433         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
30434         _mm512_set1_pd.
30435
30436         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
30437         (_mm256_undefined_ps): Define.
30438         (_mm256_undefined_pd): Define.
30439         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
30440         (_mm_undefined_pd): Define.
30441         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
30442         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
30443         (_mm512_undefined_ps): Define.
30444         (_mm512_undefined_pd): Define.
30445         Use _mm*_undefined_*.
30446         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
30447
30448 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
30449
30450         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
30451         (lshr_simd): DI mode added.
30452         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
30453         (aarch64_ushr_simddi): Likewise.
30454         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
30455         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
30456         (vshrd_n_u64): Likewise.
30457
30458 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30459
30460         * Makefile.in (s-macro_list): Depend on cc1.
30461
30462 2014-03-23  Teresa Johnson  <tejohnson@google.com>
30463
30464         * ipa-utils.c (ipa_print_order): Use specified dump file.
30465
30466 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
30467
30468         PR rtl-optimization/60601
30469         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
30470
30471         * gcc.c (eval_spec_function): Initialize save_growing_value.
30472
30473 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
30474
30475         PR sanitizer/60613
30476         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
30477         code == MINUS_EXPR, never swap op0 with op1.
30478
30479         * toplev.c (init_local_tick): Avoid signed integer multiplication
30480         overflow.
30481         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
30482         shift by first operand's bitsize.
30483
30484 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
30485
30486         PR target/60610
30487         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
30488         redefine to 1 or 0.
30489         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
30490         TARGET_ISA_64BIT_P(x).
30491
30492 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30493
30494         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
30495         pattern for vector nor instead of subtract from splat(-1).
30496         (altivec_expand_vec_perm_const_le): Likewise.
30497
30498 2014-03-21  Richard Henderson  <rth@twiddle.net>
30499
30500         PR target/60598
30501         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
30502         related insns after epilogue_completed.
30503
30504 2014-03-21  Martin Jambor  <mjambor@suse.cz>
30505
30506         PR ipa/59176
30507         * cgraph.h (symtab_node): New flag body_removed.
30508         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
30509         when removing bodies.
30510         * symtab.c (dump_symtab_base): Dump body_removed flag.
30511         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
30512         had their bodies removed.
30513
30514 2014-03-21  Martin Jambor  <mjambor@suse.cz>
30515
30516         PR ipa/60419
30517         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
30518         in the border.
30519
30520 2014-03-21  Richard Biener  <rguenther@suse.de>
30521
30522         PR tree-optimization/60577
30523         * tree-core.h (struct tree_base): Document nothrow_flag use
30524         in DECL_NONALIASED.
30525         * tree.h (DECL_NONALIASED): New.
30526         (may_be_aliased): Adjust.
30527         * coverage.c (build_var): Set DECL_NONALIASED.
30528
30529 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30530
30531         * expr.c (expand_expr_real_1): Remove outdated comment.
30532
30533 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
30534
30535         PR middle-end/60597
30536         * ira.c (adjust_cleared_regs): Call copy_rtx on
30537         *reg_equiv[REGNO (loc)].src_p before passing it to
30538         simplify_replace_fn_rtx.
30539
30540         PR target/60568
30541         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
30542         into CONST, put pic register as first operand of PLUS.  Use
30543         gen_const_mem for both 32-bit and 64-bit PIC got loads.
30544
30545 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30546
30547         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
30548
30549 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30550
30551         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
30552         around for store forwarding issue in the FPU on the UT699.
30553         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
30554         loads and operations if -mfix-ut699 is specified.
30555         (divtf3_hq): Tweak attribute.
30556         (sqrttf2_hq): Likewise.
30557
30558 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
30559
30560         * calls.c (store_one_arg): Remove incorrect const qualification on the
30561         type of the temporary.
30562         * cfgexpand.c (expand_return): Likewise.
30563         * expr.c (expand_constructor): Likewise.
30564         (expand_expr_real_1): Likewise.
30565
30566 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30567
30568         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
30569         of parts.
30570
30571 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
30572
30573         PR target/60039
30574         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
30575
30576 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
30577
30578         * config/arm/aarch-common-protos.h
30579         (alu_cost_table): Fix spelling of "extend".
30580         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
30581
30582 2014-03-19  Richard Biener  <rguenther@suse.de>
30583
30584         PR middle-end/60553
30585         * tree-core.h (tree_type_common): Re-order pointer members
30586         to reduce recursion depth during GC walks.
30587
30588 2014-03-19  Marek Polacek  <polacek@redhat.com>
30589
30590         PR sanitizer/60569
30591         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
30592         before accessing it.
30593
30594 2014-03-19  Richard Biener  <rguenther@suse.de>
30595
30596         PR lto/59543
30597         * lto-streamer-in.c (input_function): In WPA stage do not drop
30598         debug stmts.
30599
30600 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
30601
30602         PR tree-optimization/60559
30603         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30604         with build_zero_cst assignment.
30605
30606 2014-03-18  Kai Tietz  <ktietz@redhat.com>
30607
30608         PR rtl-optimization/56356
30609         * sdbout.c (sdbout_parms): Verify that parms'
30610         incoming argument is valid.
30611         (sdbout_reg_parms): Likewise.
30612
30613 2014-03-18  Richard Henderson  <rth@redhat.com>
30614
30615         PR target/60562
30616         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30617         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
30618         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30619
30620 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
30621
30622         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30623         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30624         Italicize plugin event names in description.  Explain that
30625         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
30626         Remind that no GCC functions should be called after PLUGIN_FINISH.
30627         Explain what pragmas with expansion are.
30628
30629 2014-03-18  Martin Liska  <mliska@suse.cz>
30630
30631         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30632         gimple call statement is update.
30633         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30634         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30635
30636 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
30637
30638         PR sanitizer/60557
30639         * ubsan.c (ubsan_instrument_unreachable): Call
30640         initialize_sanitizer_builtins.
30641         (ubsan_pass): Likewise.
30642
30643         PR sanitizer/60535
30644         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30645         varpool_finalize_decl instead of rest_of_decl_compilation.
30646
30647 2014-03-18  Richard Biener  <rguenther@suse.de>
30648
30649         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30650         by using bitmap_and_compl instead of bitmap_and_compl_into.
30651         (df_rd_transfer_function): Likewise.
30652
30653 2014-03-18  Richard Biener  <rguenther@suse.de>
30654
30655         * doc/lto.texi (fresolution): Fix typo.
30656
30657 2014-03-18  Richard Biener  <rguenther@suse.de>
30658
30659         * doc/invoke.texi (flto): Update for changes in 4.9.
30660
30661 2014-03-18  Richard Biener  <rguenther@suse.de>
30662
30663         * doc/loop.texi: Remove section on the removed lambda framework.
30664         Update loop docs with recent changes in preserving loop structure.
30665
30666 2014-03-18  Richard Biener  <rguenther@suse.de>
30667
30668         * doc/lto.texi (-fresolution): Document.
30669
30670 2014-03-18  Richard Biener  <rguenther@suse.de>
30671
30672         * doc/contrib.texi: Adjust my name.
30673
30674 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
30675
30676         PR ipa/58721
30677         * internal-fn.c: Include diagnostic-core.h.
30678         (expand_BUILTIN_EXPECT): New function.
30679         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30680         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30681         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30682         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30683         IFN_BUILTIN_EXPECT.
30684         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30685         Revert 3 argument __builtin_expect code.
30686         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30687         * gimple-fold.c (gimple_fold_call): Likewise.
30688         * tree.h (fold_builtin_expect): New prototype.
30689         * builtins.c (build_builtin_expect_predicate): Add predictor
30690         argument, if non-NULL, create 3 argument __builtin_expect.
30691         (fold_builtin_expect): No longer static.  Add ARG2 argument,
30692         pass it through to build_builtin_expect_predicate.
30693         (fold_builtin_2): Adjust caller.
30694         (fold_builtin_3): Handle BUILT_IN_EXPECT.
30695         * internal-fn.def (BUILTIN_EXPECT): New.
30696
30697 2014-03-18  Tobias Burnus  <burnus@net-b.de>
30698
30699         PR ipa/58721
30700         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
30701         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
30702         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
30703
30704 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
30705
30706         PR ipa/58721
30707         * predict.c (combine_predictions_for_bb): Fix up formatting.
30708         (expr_expected_value_1, expr_expected_value): Add predictor argument,
30709         fill what it points to if non-NULL.
30710         (tree_predict_by_opcode): Adjust caller, use the predictor.
30711         * predict.def (PRED_COMPARE_AND_SWAP): Add.
30712
30713 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
30714
30715         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30716         proper constant for the store mode.
30717
30718 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
30719
30720         * symtab.c (change_decl_assembler_name): Fix transparent alias
30721         chain construction.
30722
30723 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
30724
30725         * config/aarch64/aarch64.c: Correct the comments about the
30726         aarch64 stack layout.
30727
30728 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
30729
30730         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30731         check for GF_OMP_FOR_KIND_FOR.
30732
30733 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
30734
30735         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30736         ymm and zmm register names.
30737
30738 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
30739
30740         PR target/60516
30741         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30742         note creation for the 2010-08-31 changes.
30743
30744 2014-03-17  Marek Polacek  <polacek@redhat.com>
30745
30746         PR middle-end/60534
30747         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
30748         as -fno-tree-loop-vectorize.
30749         (expand_omp_simd): Likewise.
30750
30751 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
30752
30753         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
30754         (eligible_for_call_delay): New prototype.
30755         * config/sparc/sparc.c (tls_call_delay): Rename into...
30756         (eligible_for_call_delay): ...this.  Return false if the instruction
30757         cannot be put in the delay slot of a branch.
30758         (eligible_for_restore_insn): Simplify.
30759         (eligible_for_return_delay): Return false if the instruction cannot be
30760         put in the delay slot of a branch and simplify.
30761         (eligible_for_sibcall_delay): Return false if the instruction cannot be
30762         put in the delay slot of a branch.
30763         * config/sparc/sparc.md (fix_ut699): New attribute.
30764         (tls_call_delay): Delete.
30765         (in_call_delay): Reimplement.
30766         (eligible_for_sibcall_delay): Rename into...
30767         (in_sibcall_delay): ...this.
30768         (eligible_for_return_delay): Rename into...
30769         (in_return_delay): ...this.
30770         (in_branch_delay): Reimplement.
30771         (in_uncond_branch_delay): Delete.
30772         (in_annul_branch_delay): Delete.
30773
30774 2014-03-14  Richard Henderson  <rth@redhat.com>
30775
30776         PR target/60525
30777         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
30778         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
30779         (*floathi<X87MODEF>2_i387_with_temp): Remove.
30780         (floathi splitters): Remove.
30781         (float<SWI48x>xf2): New pattern.
30782         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
30783         code that tried to handle DImode for 32-bit, but which was excluded
30784         by the pattern's condition.  Drop allocation of stack temporary.
30785         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
30786         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
30787         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
30788         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
30789         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
30790         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
30791         (*float<SWI48><MODEF>2_sse_interunit): Remove.
30792         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
30793         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
30794         (*float<SWI48x><X87MODEF>2_i387): Remove.
30795         (all float _with_temp splitters): Remove.
30796         (*float<SWI48x><MODEF>2_i387): New pattern.
30797         (*float<SWI48><MODEF>2_sse): New pattern.
30798         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
30799         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
30800
30801 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
30802             Marek Polacek  <polacek@redhat.com>
30803
30804         PR middle-end/60484
30805         * common.opt (dump_base_name_prefixed): New Variable.
30806         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
30807         if x_dump_base_name_prefixed is already set, set it at the end.
30808
30809 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
30810
30811         PR rtl-optimization/60508
30812         * lra-constraints.c (get_reload_reg): Add new parameter
30813         in_subreg_p.
30814         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
30815         Pass the new parameter values.
30816
30817 2014-03-14  Richard Biener  <rguenther@suse.de>
30818
30819         * common.opt: Revert unintented changes from r205065.
30820         * opts.c: Likewise.
30821
30822 2014-03-14  Richard Biener  <rguenther@suse.de>
30823
30824         PR middle-end/60518
30825         * cfghooks.c (split_block): Properly adjust all loops the
30826         block was a latch of.
30827
30828 2014-03-14  Martin Jambor  <mjambor@suse.cz>
30829
30830         PR lto/60461
30831         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
30832         and simplify it.
30833
30834 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
30835
30836         PR target/59396
30837         * config/avr/avr.c (avr_set_current_function): Pass function name
30838         through default_strip_name_encoding before sanity checking instead
30839         of skipping the first char of the assembler name.
30840
30841 2014-03-13  Richard Henderson  <rth@redhat.com>
30842
30843         PR debug/60438
30844         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
30845         (ix86_force_to_memory, ix86_free_from_memory): Remove.
30846         * config/i386/i386-protos.h: Likewise.
30847         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
30848         in the expander instead of a splitter.
30849         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
30850         any possibility of requiring a memory.
30851         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
30852         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
30853         (fp branch splitters): Update for ix86_split_fp_branch.
30854         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
30855         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
30856         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
30857         (*fop_<MODEF>_2_i387): Remove f/r alternative.
30858         (*fop_<MODEF>_3_i387): Likewise.
30859         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
30860         (splitters for the fop_* register patterns): Remove.
30861         (fscalexf4_i387): Rename from *fscalexf4_i387.
30862         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
30863
30864 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
30865
30866         PR tree-optimization/59779
30867         * tree-dfa.c (get_ref_base_and_extent): Use double_int
30868         type for bitsize and maxsize instead of HOST_WIDE_INT.
30869
30870 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
30871
30872         PR rtl-optimization/57320
30873         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
30874         the CFG after thread_prologue_and_epilogue_insns.
30875
30876 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
30877
30878         PR rtl-optimization/57189
30879         * lra-constraints.c (process_alt_operands): Disfavor spilling
30880         vector pseudos.
30881
30882 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
30883
30884         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
30885
30886 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
30887
30888         PR tree-optimization/59025
30889         PR middle-end/60418
30890         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
30891         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
30892
30893 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
30894
30895         PR target/60486
30896         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
30897         calls of avr_out_plus_1.
30898
30899 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
30900
30901         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
30902         BB's single pred and update the father loop's latch info later.
30903
30904 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
30905
30906         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
30907         (VEC_M): Likewise.
30908         (VEC_N): Likewise.
30909         (VEC_R): Likewise.
30910         (VEC_base): Likewise.
30911         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
30912         registers, we need to swap double words in little endian mode.
30913
30914         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
30915         to be a container mode for 128-bit integer operations added in ISA
30916         2.07.  Unlike TImode and PTImode, the preferred register set is
30917         the Altivec/VMX registers for the 128-bit operations.
30918
30919         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
30920         declarations.
30921         (rs6000_split_128bit_ok_p): Likewise.
30922
30923         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
30924         macros for creating ISA 2.07 normal and overloaded builtin
30925         functions with 3 arguments.
30926         (BU_P8V_OVERLOAD_3): Likewise.
30927         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
30928         for use as overloaded functions.
30929         (VPERM_1TI_UNS): Likewise.
30930         (VSEL_1TI): Likewise.
30931         (VSEL_1TI_UNS): Likewise.
30932         (ST_INTERNAL_1ti): Likewise.
30933         (LD_INTERNAL_1ti): Likewise.
30934         (XXSEL_1TI): Likewise.
30935         (XXSEL_1TI_UNS): Likewise.
30936         (VPERM_1TI): Likewise.
30937         (VPERM_1TI_UNS): Likewise.
30938         (XXPERMDI_1TI): Likewise.
30939         (SET_1TI): Likewise.
30940         (LXVD2X_V1TI): Likewise.
30941         (STXVD2X_V1TI): Likewise.
30942         (VEC_INIT_V1TI): Likewise.
30943         (VEC_SET_V1TI): Likewise.
30944         (VEC_EXT_V1TI): Likewise.
30945         (EQV_V1TI): Likewise.
30946         (NAND_V1TI): Likewise.
30947         (ORC_V1TI): Likewise.
30948         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
30949         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
30950         overloaded builtin.
30951         (VADDUQM): Likewise.
30952         (VSUBCUQ): Likewise.
30953         (VADDEUQM): Likewise.
30954         (VADDECUQ): Likewise.
30955         (VSUBEUQM): Likewise.
30956         (VSUBECUQ): Likewise.
30957
30958         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
30959         __int128_t and __uint128_t types.
30960         (__uint128_type): Likewise.
30961         (altivec_categorize_keyword): Add support for vector __int128_t,
30962         vector __uint128_t, vector __int128, and vector unsigned __int128
30963         as a container type for TImode operations that need to be done in
30964         VSX/Altivec registers.
30965         (rs6000_macro_to_expand): Likewise.
30966         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
30967         to support 128-bit integer instructions vaddcuq, vadduqm,
30968         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
30969         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
30970
30971         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
30972         for V1TImode, and set up preferences to use VSX/Altivec registers.
30973         Setup VSX reload handlers.
30974         (rs6000_debug_reg_global): Likewise.
30975         (rs6000_init_hard_regno_mode_ok): Likewise.
30976         (rs6000_preferred_simd_mode): Likewise.
30977         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
30978         (easy_altivec_constant): Likewise.
30979         (output_vec_const_move): Likewise.
30980         (rs6000_expand_vector_set): Convert V1TImode set and extract to
30981         simple move.
30982         (rs6000_expand_vector_extract): Likewise.
30983         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
30984         addressing.
30985         (rs6000_const_vec): Add support for V1TImode.
30986         (rs6000_emit_le_vsx_load): Swap double words when loading or
30987         storing TImode/V1TImode.
30988         (rs6000_emit_le_vsx_store): Likewise.
30989         (rs6000_emit_le_vsx_move): Likewise.
30990         (rs6000_emit_move): Add support for V1TImode.
30991         (altivec_expand_ld_builtin): Likewise.
30992         (altivec_expand_st_builtin): Likewise.
30993         (altivec_expand_vec_init_builtin): Likewise.
30994         (altivec_expand_builtin): Likewise.
30995         (rs6000_init_builtins): Add support for V1TImode type.  Add
30996         support for ISA 2.07 128-bit integer builtins.  Define type names
30997         for the VSX/Altivec vector types.
30998         (altivec_init_builtins): Add support for overloaded vector
30999         functions with V1TImode type.
31000         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31001         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31002         external function.
31003         (rs6000_split_128bit_ok_p): Likewise.
31004         (rs6000_handle_altivec_attribute): Create V1TImode from vector
31005         __int128_t and vector __uint128_t.
31006
31007         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31008         and mode attributes.
31009         (VSX_M): Likewise.
31010         (VSX_M2): Likewise.
31011         (VSm): Likewise.
31012         (VSs): Likewise.
31013         (VSr): Likewise.
31014         (VSv): Likewise.
31015         (VS_scalar): Likewise.
31016         (VS_double): Likewise.
31017         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31018
31019         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31020         we support the ISA 2.07 128-bit integer arithmetic instructions.
31021         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31022         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31023         and TImode types for use with the builtin functions.
31024         (V1TI_type_node): Likewise.
31025         (unsigned_V1TI_type_node): Likewise.
31026         (intTI_type_internal_node): Likewise.
31027         (uintTI_type_internal_node): Likewise.
31028
31029         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31030         128-bit builtin functions.
31031         (UNSPEC_VADDEUQM): Likewise.
31032         (UNSPEC_VADDECUQ): Likewise.
31033         (UNSPEC_VSUBCUQ): Likewise.
31034         (UNSPEC_VSUBEUQM): Likewise.
31035         (UNSPEC_VSUBECUQ): Likewise.
31036         (VM): Add V1TImode to vector mode iterators.
31037         (VM2): Likewise.
31038         (VI_unit): Likewise.
31039         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31040         (altivec_vaddcuq): Likewise.
31041         (altivec_vsubuqm): Likewise.
31042         (altivec_vsubcuq): Likewise.
31043         (altivec_vaddeuqm): Likewise.
31044         (altivec_vaddecuq): Likewise.
31045         (altivec_vsubeuqm): Likewise.
31046         (altivec_vsubecuq): Likewise.
31047
31048         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31049         mode iterators.
31050         (BOOL_128): Likewise.
31051         (BOOL_REGS_OUTPUT): Likewise.
31052         (BOOL_REGS_OP1): Likewise.
31053         (BOOL_REGS_OP2): Likewise.
31054         (BOOL_REGS_UNARY): Likewise.
31055         (BOOL_REGS_AND_CR0): Likewise.
31056
31057         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31058         128-bit integer builtin support.
31059         (vec_vadduqm): Likewise.
31060         (vec_vaddecuq): Likewise.
31061         (vec_vaddeuqm): Likewise.
31062         (vec_vsubecuq): Likewise.
31063         (vec_vsubeuqm): Likewise.
31064         (vec_vsubcuq): Likewise.
31065         (vec_vsubuqm): Likewise.
31066
31067         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31068         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31069         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31070         128-bit integer add/subtract to ISA 2.07.
31071
31072 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
31073
31074         * config/arc/arc.c (arc_predicate_delay_insns):
31075         Fix third argument passed to conditionalize_nonjump.
31076
31077 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
31078
31079         * config/aarch64/aarch64-builtins.c
31080         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31081         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31082         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31083         instead of __builtin_lfloor.
31084         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31085
31086 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31087
31088         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31089         (tree_ssa_ifcombine_bb_1): New function.
31090         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
31091         is an empty forwarder block to then_bb or vice versa and then_bb
31092         and else_bb are effectively swapped.
31093
31094 2014-03-12  Christian Bruel  <christian.bruel@st.com>
31095
31096         PR target/60264
31097         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31098         REG_CFA_DEF_CFA note.
31099         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31100         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31101
31102 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31103
31104         PR tree-optimization/60454
31105         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31106
31107 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31108
31109         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31110         Do not define target_cpu_default2 to generic.
31111         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31112         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31113         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31114
31115 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31116             Marc Glisse  <marc.glisse@inria.fr>
31117
31118         PR tree-optimization/60502
31119         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31120         instead of build_low_bits_mask.
31121
31122 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31123
31124         PR middle-end/60482
31125         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31126         if there are multiple uses, but op doesn't live on E edge.
31127         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31128         clobber stmts before __builtin_unreachable.
31129
31130 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
31131
31132         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31133         hard_frame_pointer_rtx.
31134         * cse.c (cse_insn): Remove volatile check.
31135         * cselib.c (cselib_process_insn): Likewise.
31136         * dse.c (scan_insn): Likewise.
31137
31138 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31139
31140         * config/arc/arc.c (conditionalize_nonjump): New function,
31141         broken out of ...
31142         (arc_ifcvt): ... this.
31143         (arc_predicate_delay_insns): Use it.
31144
31145 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31146
31147         * config/arc/predicates.md (extend_operand): During/after reload,
31148         allow const_int_operand.
31149         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31150         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
31151         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31152         to "i".
31153         (umulsi3_highpart_i): Likewise.
31154
31155 2014-03-11  Richard Biener  <rguenther@suse.de>
31156
31157         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31158         Add asserts to guard possible wrong-code bugs.
31159
31160 2014-03-11  Richard Biener  <rguenther@suse.de>
31161
31162         PR tree-optimization/60429
31163         PR tree-optimization/60485
31164         * tree-ssa-structalias.c (set_union_with_increment): Properly
31165         take into account all fields that overlap the shifted vars.
31166         (do_sd_constraint): Likewise.
31167         (do_ds_constraint): Likewise.
31168         (get_constraint_for_ptr_offset): Likewise.
31169
31170 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
31171
31172         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31173         (nios2_compute_frame_layout):
31174         Add calculation of cfun->machine->fp_save_offset.
31175         (nios2_expand_prologue): Correct setting of frame pointer register
31176         in prologue.
31177         (nios2_expand_epilogue): Update recovery of stack pointer from
31178         frame pointer accordingly.
31179         (nios2_initial_elimination_offset): Update calculation of offset
31180         for eliminating to HARD_FRAME_POINTER_REGNUM.
31181
31182 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
31183
31184         PR ipa/60457
31185         * ipa.c (symtab_remove_unreachable_nodes): Don't call
31186         cgraph_get_create_node on VAR_DECLs.
31187
31188 2014-03-10  Richard Biener  <rguenther@suse.de>
31189
31190         PR middle-end/60474
31191         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31192
31193 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
31194
31195         * config/vms/vms.opt (vms_float_format): New variable.
31196
31197 2014-03-08  Tobias Burnus  <burnus@net-b.de>
31198
31199         * doc/invoke.texi (-fcilkplus): Update implementation status.
31200
31201 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
31202             Richard Biener  <rguenther@suse.de>
31203
31204         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31205         consistently accross all TUs.
31206         (run_gcc): Enable -fshort-double automatically at link at link-time
31207         and disallow override.
31208
31209 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
31210
31211         PR target/58271
31212         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31213         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31214         if they can't be used.
31215
31216 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31217
31218         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
31219         for Solaris 11/x86 ld.
31220         * configure: Regenerate.
31221
31222 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31223
31224         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
31225         (LIB_TLS_SPEC): Save as ld_tls_libs.
31226         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
31227         (HAVE_AS_IX86_TLSLDM): New test.
31228         * configure, config.in: Regenerate.
31229         * config/i386/i386.c (legitimize_tls_address): Fall back to
31230         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
31231         cannot support TLS_MODEL_LOCAL_DYNAMIC.
31232         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
31233         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
31234
31235 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
31236
31237         * common.opt (fira-loop-pressure): Mark as optimization.
31238
31239 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
31240
31241         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
31242         an OpenMP mappable type.
31243
31244 2014-03-06  Matthias Klose  <doko@ubuntu.com>
31245
31246         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
31247         MULTILIB_OSDIRNAMES is not defined.
31248
31249 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
31250             Meador Inge  <meadori@codesourcery.com>
31251
31252         PR target/58595
31253         * config/arm/arm.c (arm_tls_symbol_p): Remove.
31254         (arm_legitimize_address): Call legitimize_tls_address for any
31255         arm_tls_referenced_p expression, handle constant addend.  Call it
31256         before testing for !TARGET_ARM.
31257         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31258
31259 2014-03-06  Richard Biener  <rguenther@suse.de>
31260
31261         PR middle-end/60445
31262         PR lto/60424
31263         PR lto/60427
31264         Revert
31265         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
31266
31267         * tree-streamer.c (record_common_node): Assert we don't record
31268         nodes with type double.
31269         (preload_common_node): Skip type double, complex double and double
31270         pointer since it is now frontend dependent due to fshort-double option.
31271
31272 2014-03-06  Richard Biener  <rguenther@suse.de>
31273
31274         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31275         or -fno-lto is specified and the linker has full plugin support.
31276         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31277         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31278         * lto-wrapper.c (merge_and_complain): Merge compile-time
31279         optimization levels.
31280         (run_gcc): And pass it through to the link options.
31281
31282 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
31283
31284         PR debug/60381
31285         Revert:
31286         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31287         PR debug/59992
31288         * cselib.c (remove_useless_values): Skip to avoid quadratic
31289         behavior if the condition moved from...
31290         (cselib_process_insn): ... here holds.
31291
31292 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
31293
31294         PR plugins/59335
31295         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31296         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31297
31298         PR plugins/59335
31299         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31300         (TM_H): Add x86-tune.def.
31301
31302 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31303
31304         * config/aarch64/aarch64.c (generic_tunings):
31305         Use cortexa57_extra_costs.
31306
31307 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
31308
31309         PR lto/60404
31310         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31311         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31312         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31313         cost for in_lto_p.
31314
31315 2014-03-04  Heiher  <r@hev.cc>
31316
31317         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31318         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31319
31320 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
31321
31322         * config/i386/predicates.md (const2356_operand): Change to ...
31323         (const2367_operand): ... this.
31324         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31325         const2367_operand.
31326         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31327         (*avx512pf_scatterpf<mode>sf): Ditto.
31328         (avx512pf_scatterpf<mode>df): Ditto.
31329         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31330         (*avx512pf_scatterpf<mode>df): Ditto.
31331         * config/i386/i386.c (ix86_expand_builtin): Update
31332         incorrect hint operand error message.
31333
31334 2014-03-04  Richard Biener  <rguenther@suse.de>
31335
31336         * lto-section-in.c (lto_get_section_data): Fix const cast.
31337
31338 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
31339
31340         * tree-streamer.c (record_common_node): Assert we don't record
31341         nodes with type double.
31342         (preload_common_node): Skip type double, complex double and double
31343         pointer since it is now frontend dependent due to fshort-double option.
31344
31345 2014-03-04  Richard Biener  <rguenther@suse.de>
31346
31347         PR lto/60405
31348         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31349         (lto_input_toplevel_asms): Likewise.
31350         * lto-section-in.c (lto_get_section_data): Instead do it here
31351         for every section.
31352
31353 2014-03-04  Richard Biener  <rguenther@suse.de>
31354
31355         PR tree-optimization/60382
31356         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
31357         dead PHIs a reduction.
31358
31359 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
31360
31361         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
31362         hint value.
31363         (_mm_prefetch): Move out of GCC target("sse") pragma.
31364         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
31365         GCC target("prfchw") pragma.
31366         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
31367         for locality <= 2.
31368         * config/i386/i386.c (ix86_option_override_internal): Enable
31369         -mprfchw with -mprefetchwt1.
31370
31371 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
31372
31373         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
31374         Mark as varying.
31375
31376 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
31377
31378         * opts.h (CL_PCH_IGNORE): Define.
31379         * targhooks.c (option_affects_pch_p):
31380         Return false for options that have CL_PCH_IGNORE set.
31381         * opt-functions.awk: Process PchIgnore.
31382         * doc/options.texi: Document PchIgnore.
31383
31384         * config/arc/arc.opt (misize): Add PchIgnore property.
31385
31386 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31387
31388         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
31389         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
31390         constraint on constants to permit them being loaded into
31391         GENERAL_REGS or BASE_REGS.
31392
31393 2014-03-03  Nick Clifton  <nickc@redhat.com>
31394
31395         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
31396         anti-cacnonical alternatives.
31397         (negandhi3_real): New pattern.
31398         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
31399
31400 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
31401
31402         * config/avr/avr-mcus.def: Remove atxmega16x1.
31403         * config/avr/avr-tables.opt: Regenerate.
31404         * config/avr/t-multilib: Regenerate.
31405         * doc/avr-mmcu.texi: Regenerate.
31406
31407 2014-03-03  Tobias Grosser  <tobias@grosser.es>
31408             Mircea Namolaru  <mircea.namolaru@inria.fr>
31409
31410         PR tree-optimization/58028
31411         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
31412         scalar dimensions.
31413
31414 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31415
31416         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
31417         not handled by recognizers.
31418
31419 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
31420
31421         PR middle-end/60175
31422         * function.c (expand_function_end): Don't emit
31423         clobber_return_register sequence if clobber_after is a BARRIER.
31424         * cfgexpand.c (construct_exit_block): Append instructions before
31425         return_label to prev_bb.
31426
31427 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31428
31429         * config/rs6000/constraints.md: Document reserved use of "wc".
31430
31431 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
31432
31433         PR ipa/60150
31434         * ipa.c (function_and_variable_visibility): When dissolving comdat
31435         group, also set all symbols to local.
31436
31437 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
31438
31439         PR ipa/60306
31440
31441         Revert:
31442         2013-12-14  Jan Hubicka  <jh@suse.cz>
31443         PR middle-end/58477
31444         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
31445
31446 2014-03-02  Jon Beniston  <jon@beniston.com>
31447
31448         PR bootstrap/48230
31449         PR bootstrap/50927
31450         PR bootstrap/52466
31451         PR target/46898
31452         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
31453         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
31454         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
31455         (simple_return, *simple_return): New patterns
31456         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
31457         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
31458
31459 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
31460
31461         * dwarf2out.c (gen_subprogram_die): Tidy.
31462
31463 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
31464
31465         PR target/60071
31466         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
31467         (*mov_t_msb_neg_negc): ... this new insn.
31468
31469 2014-02-28  Jason Merrill  <jason@redhat.com>
31470
31471         PR c++/58678
31472         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
31473         function.
31474
31475 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
31476
31477         PR c++/60314
31478         * dwarf2out.c (decltype_auto_die): New static.
31479         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
31480         (gen_type_die_with_usage): Handle 'decltype(auto)'.
31481         (is_cxx_auto): Likewise.
31482
31483 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
31484
31485         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
31486         we are not using general regs only.
31487
31488 2014-02-28  Richard Biener  <rguenther@suse.de>
31489
31490         PR target/60280
31491         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
31492         previous fix and only allow to remove trivial pre-headers
31493         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
31494         (remove_forwarder_block): Properly update the latch of a loop.
31495
31496 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31497
31498         PR debug/59992
31499         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
31500         (cselib_preserved_hash_table): New.
31501         (preserve_constants_and_equivs): Move preserved vals to it.
31502         (cselib_find_slot): Look it up first.
31503         (cselib_init): Initialize it.
31504         (cselib_finish): Release it.
31505         (dump_cselib_table): Dump it.
31506
31507 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31508
31509         PR debug/59992
31510         * cselib.c (remove_useless_values): Skip to avoid quadratic
31511         behavior if the condition moved from...
31512         (cselib_process_insn): ... here holds.
31513
31514 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31515
31516         PR debug/57232
31517         * var-tracking.c (vt_initialize): Apply the same condition to
31518         preserve the CFA base value.
31519
31520 2014-02-28  Joey Ye  <joey.ye@arm.com>
31521
31522         PR target/PR60169
31523         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
31524         if reload in progress or completed.
31525
31526 2014-02-28  Tobias Burnus  <burnus@net-b.de>
31527
31528         PR middle-end/60147
31529         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
31530         NAMELIST_DECL.
31531
31532 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31533
31534         * doc/tm.texi.in (Condition Code Status): Update documention for
31535         relative locations of cc0-setter and cc0-user.
31536
31537 2014-02-27  Jeff Law  <law@redhat.com>
31538
31539         PR rtl-optimization/52714
31540         * combine.c (try_combine): When splitting an unrecognized PARALLEL
31541         into two independent simple sets, if I3 is a jump, ensure the
31542         pattern we place into I3 is a (set (pc) ...).
31543
31544 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
31545             Jeff Law  <law@redhat.com>
31546
31547         PR rtl-optimization/49847
31548         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
31549         are in different blocks.
31550         * doc/tm.texi (Condition Code Status): Update documention for
31551         relative locations of cc0-setter and cc0-user.
31552
31553 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
31554
31555         PR target/59222
31556         * lra.c (lra_emit_add): Check SUBREG too.
31557
31558 2014-02-27  Andreas Schwab  <schwab@suse.de>
31559
31560         * config/m68k/m68k.c (m68k_option_override): Disable
31561         -flive-range-shrinkage for classic m68k.
31562         (m68k_override_options_after_change): Likewise.
31563
31564 2014-02-27  Marek Polacek  <polacek@redhat.com>
31565
31566         PR middle-end/59223
31567         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
31568         -Wmaybe-uninitialized.
31569
31570 2014-02-27  Alan Modra  <amodra@gmail.com>
31571
31572         PR target/57936
31573         * reload1.c (emit_input_reload_insns): When reload_override_in,
31574         set old to rl->in_reg when rl->in_reg is a subreg.
31575
31576 2014-02-26  Richard Biener  <rguenther@suse.de>
31577
31578         PR bootstrap/60343
31579         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
31580
31581 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
31582
31583         * common/config/i386/predicates.md (const1256_operand): Remove.
31584         (const2356_operand): New.
31585         (const_1_to_2_operand): Remove.
31586         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31587         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31588         (*avx512pf_gatherpf<mode>sf): Ditto.
31589         (avx512pf_gatherpf<mode>df): Ditto.
31590         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31591         (*avx512pf_gatherpf<mode>df): Ditto.
31592         (avx512pf_scatterpf<mode>sf): Ditto.
31593         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31594         (*avx512pf_scatterpf<mode>sf): Ditto.
31595         (avx512pf_scatterpf<mode>df): Ditto.
31596         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31597         (*avx512pf_scatterpf<mode>df): Ditto.
31598         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
31599
31600 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
31601
31602         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31603         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31604         (_mm512_mask_testn_epi64_mask): Move to ...
31605         * config/i386/avx512cdintrin.h: Here.
31606         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31607         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31608         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31609         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31610         TARGET_AVX512F from TARGET_AVX512CD.
31611
31612 2014-02-26  Richard Biener  <rguenther@suse.de>
31613
31614         PR ipa/60327
31615         * ipa.c (walk_polymorphic_call_targets): Properly guard
31616         call to inline_update_overall_summary.
31617
31618 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
31619
31620         PR target/60280
31621         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31622         and latches only if requested.  Fix latch if it is removed.
31623         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31624         LOOPS_HAVE_PREHEADERS.
31625
31626 2014-02-25  Andrew Pinski  <apinski@cavium.com>
31627
31628         * builtins.c (expand_builtin_thread_pointer): Create a new target
31629         when the target is NULL.
31630
31631 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
31632
31633         PR rtl-optimization/60317
31634         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31635         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31636         * lra-assigns.c: Include params.h.
31637         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31638         other reload pseudos considerations.
31639
31640 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31641
31642         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31643         to use canonical form for nor<mode>3.
31644
31645 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31646
31647         PR target/55426
31648         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31649         conversions.
31650
31651 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
31652
31653         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31654         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31655         (ix86_handle_option): Handle OPT_mprefetchwt1.
31656         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31657         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31658         PREFETCHWT1 CPUID.
31659         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31660         OPTION_MASK_ISA_PREFETCHWT1.
31661         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31662         (PTA_PREFETCHWT1): New.
31663         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31664         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31665         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31666         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31667         (*prefetch_avx512pf_<mode>_: Change into ...
31668         (*prefetch_prefetchwt1_<mode>: This.
31669         * config/i386/i386.opt (mprefetchwt1): New.
31670         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31671         (_mm_prefetch): Handle intent to write.
31672         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31673
31674 2014-02-25  Richard Biener  <rguenther@suse.de>
31675
31676         PR middle-end/60291
31677         * emit-rtl.c (mem_attrs_htab): Remove.
31678         (mem_attrs_htab_hash): Likewise.
31679         (mem_attrs_htab_eq): Likewise.
31680         (set_mem_attrs): Always allocate new mem-attrs when something changed.
31681         (init_emit_once): Do not allocate mem_attrs_htab.
31682
31683 2014-02-25  Richard Biener  <rguenther@suse.de>
31684
31685         PR lto/60319
31686         * lto-opts.c (lto_write_options): Output non-explicit conservative
31687         -fwrapv, -fno-trapv and -fno-strict-overflow.
31688         * lto-wrapper.c (merge_and_complain): Handle merging those options.
31689         (run_gcc): And pass them through.
31690
31691 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
31692
31693         * sel-sched.c (calculate_new_fences): New parameter ptime.
31694         Calculate it as a maximum over all fence cycles.
31695         (sel_sched_region_2): Adjust the call to calculate_new_fences.
31696         Print the final schedule timing when sched_verbose.
31697
31698 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
31699
31700         PR rtl-optimization/60292
31701         * sel-sched.c (fill_vec_av_set): Do not reset target availability
31702         bit fot the fence instruction.
31703
31704 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
31705
31706         * calls.h: Fix typo in comment.
31707
31708 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
31709
31710         * config/pa/pa.c (pa_output_move_double): Don't valididate when
31711         adjusting offsetable addresses.
31712
31713 2014-02-24  Guozhi Wei  <carrot@google.com>
31714
31715         * sparseset.h (sparseset_pop): Fix the wrong index.
31716
31717 2014-02-24  Walter Lee  <walt@tilera.com>
31718
31719         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31720         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31721         triplet.
31722         * common/config/tilegx/tilegx-common.c
31723         (TARGET_DEFAULT_TARGET_FLAGS): Define.
31724         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31725         (LINK_SPEC): Ditto.
31726         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31727         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31728         (tilegx_gimplify_va_arg_expr): Handle big endian.
31729         (tilegx_expand_unaligned_load): Ditto.
31730         (tilegx_expand_unaligned_store): Ditto.
31731         (TARGET_RETURN_IN_MSB): New.
31732         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31733         (TARGET_ENDIAN_DEFAULT): New.
31734         (TARGET_BIG_ENDIAN): Handle big endian.
31735         (BYTES_BIG_ENDIAN): Ditto.
31736         (WORDS_BIG_ENDIAN): Ditto.
31737         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31738         (ENDIAN_SPEC): New.
31739         (EXTRA_SPECS): New.
31740         * config/tilegx/tilegx.md (extv): Handle big endian.
31741         (extzv): Ditto.
31742         (insn_st<n>): Ditto.
31743         (insn_st<n>_add<bitsuffix>): Ditto.
31744         (insn_stnt<n>): Ditto.
31745         (insn_stnt<n>_add<bitsuffix>):Ditto.
31746         (vec_interleave_highv8qi): Handle big endian.
31747         (vec_interleave_highv8qi_be): New.
31748         (vec_interleave_highv8qi_le): New.
31749         (insn_v1int_h): Handle big endian.
31750         (vec_interleave_lowv8qi): Handle big endian.
31751         (vec_interleave_lowv8qi_be): New.
31752         (vec_interleave_lowv8qi_le): New.
31753         (insn_v1int_l): Handle big endian.
31754         (vec_interleave_highv4hi): Handle big endian.
31755         (vec_interleave_highv4hi_be): New.
31756         (vec_interleave_highv4hi_le): New.
31757         (insn_v2int_h): Handle big endian.
31758         (vec_interleave_lowv4hi): Handle big endian.
31759         (vec_interleave_lowv4hi_be): New.
31760         (vec_interleave_lowv4hi_le): New.
31761         (insn_v2int_l): Handle big endian.
31762         (vec_interleave_highv2si): Handle big endian.
31763         (vec_interleave_highv2si_be): New.
31764         (vec_interleave_highv2si_le): New.
31765         (insn_v4int_h): Handle big endian.
31766         (vec_interleave_lowv2si): Handle big endian.
31767         (vec_interleave_lowv2si_be): New.
31768         (vec_interleave_lowv2si_le): New.
31769         (insn_v4int_l): Handle big endian.
31770         * config/tilegx/tilegx.opt (mbig-endian): New option.
31771         (mlittle-endian): New option.
31772         * doc/install.texi: Document tilegxbe-linux.
31773         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
31774
31775 2014-02-24  Martin Jambor  <mjambor@suse.cz>
31776
31777         PR ipa/60266
31778         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
31779         there are no parameter descriptors.
31780
31781 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
31782
31783         PR rtl-optimization/60268
31784         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
31785         initialization to ...
31786         (sched_rgn_init): ... here.
31787         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
31788
31789 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
31790
31791         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
31792         names.
31793
31794 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
31795
31796         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
31797         definition.
31798
31799 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
31800
31801         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
31802         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
31803
31804 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
31805
31806         * config/microblaze/predicates.md: Add cmp_op predicate.
31807         * config/microblaze/microblaze.md: Add branch_compare instruction
31808         which uses cmp_op predicate and emits cmp insn before branch.
31809         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
31810         to microblaze_expand_conditional_branch and consolidate logic.
31811         (microblaze_expand_conditional_branch): emit branch_compare
31812         insn instead of handling cmp op separate from branch insn.
31813
31814 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31815
31816         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
31817         to permit subregs.
31818
31819 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31820
31821         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
31822         define_insn with define_expand and new define_insn
31823         *altivec_lve<VI_char>x_internal.
31824         (altivec_stve<VI_char>x): Replace define_insn with define_expand
31825         and new define_insn *altivec_stve<VI_char>x_internal.
31826         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
31827         prototype.
31828         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
31829         lve*x built-ins.
31830         (altivec_expand_stvex_be): New function.
31831
31832 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
31833
31834         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
31835         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
31836         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
31837         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
31838
31839 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
31840
31841         PR target/60298
31842         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
31843         instead of emit_move_insn.
31844
31845 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31846
31847         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
31848         vspltw with vsldoi.
31849         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
31850         gen_altivec_vsumsws.
31851
31852 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31853
31854         * config/rs6000/altivec.md (altivec_lvxl): Rename as
31855         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
31856         (altivec_lvxl_<mode>): New define_expand incorporating
31857         -maltivec=be semantics where needed.
31858         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
31859         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
31860         semantics where needed.
31861         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
31862         (altivec_stvx_<mode>): New define_expand incorporating
31863         -maltivec=be semantics where needed.
31864         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
31865         VM2 iterator instead of V4SI.
31866         (altivec_stvxl_<mode>): New define_expand incorporating
31867         -maltivec=be semantics where needed.
31868         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
31869         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
31870         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
31871         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
31872         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
31873         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
31874         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
31875         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
31876         ALTIVEC_BUILTIN_STVXL.
31877         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
31878         (altivec_expand_stvx_be): Likewise.
31879         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
31880         (altivec_expand_lvx_be): Likewise.
31881         (altivec_expand_stvx_be): Likewise.
31882         (altivec_expand_builtin): Add cases for
31883         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
31884         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
31885         (altivec_init_builtins): Add definitions for
31886         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
31887         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
31888
31889 2014-02-21  Catherine Moore  <clm@codesourcery.com>
31890
31891         * doc/invoke.texi (mvirt, mno-virt): Document.
31892         * config/mips/mips.opt (mvirt): New option.
31893         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
31894
31895 2014-02-21  Richard Biener  <rguenther@suse.de>
31896
31897         PR tree-optimization/60276
31898         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
31899         (STMT_VINFO_MIN_NEG_DIST): New macro.
31900         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
31901         STMT_VINFO_MIN_NEG_DIST.
31902         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
31903         made for negative dependence distances still hold.
31904
31905 2014-02-21  Richard Biener  <rguenther@suse.de>
31906
31907         PR middle-end/60291
31908         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
31909         DECL_INITIAL for globals not in the current function context.
31910
31911 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
31912
31913         PR tree-optimization/56490
31914         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
31915         * tree-ssa-uninit.c: Include params.h.
31916         (compute_control_dep_chain): Add num_calls argument, return false
31917         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
31918         num_calls to recursive call.
31919         (find_predicates): Change dep_chain into normal array,
31920         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
31921         variable and adjust compute_control_dep_chain caller.
31922         (find_def_preds): Likewise.
31923
31924 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
31925
31926         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
31927         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
31928
31929 2014-02-21  Nick Clifton  <nickc@redhat.com>
31930
31931         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
31932         (pushhi1): Likewise.
31933         (popqi1): Add mode to pre_dec.
31934         (pophi1): Likewise.
31935
31936 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
31937
31938         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
31939         mode for mask of V8SFmode permutation.
31940
31941 2014-02-20  Richard Henderson  <rth@redhat.com>
31942
31943         PR c++/60272
31944         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
31945         a new pseudo for OLDVAL.
31946
31947 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
31948
31949         PR target/57896
31950         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
31951         gen_reg_rtx if d->testing_p.
31952         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
31953         if d->testing_p and we will certainly return true.
31954         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
31955         if d->testing_p.
31956
31957 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
31958
31959         * emit-rtl.c (gen_reg_rtx): Assert that
31960         crtl->emit.regno_pointer_align_length is non-zero.
31961
31962 2014-02-20  Richard Henderson  <rth@redhat.com>
31963
31964         PR c++/60272
31965         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
31966         on failure the store back into EXPECT.
31967
31968 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
31969             Sandra Loosemore  <sandra@codesourcery.com>
31970
31971         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
31972         * config/nios2/nios2.c (nios2_function_profiler): Add
31973         -fPIC (flag_pic == 2) support.
31974         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
31975         (nios2_large_offset_p): New function.
31976         (nios2_unspec_reloc_p): Move up position, update to use
31977         nios2_large_offset_p.
31978         (nios2_unspec_address): Remove function.
31979         (nios2_unspec_offset): New function.
31980         (nios2_large_got_address): New function.
31981         (nios2_got_address): Add large offset support.
31982         (nios2_legitimize_tls_address): Update usage of removed and new
31983         functions.
31984         (nios2_symbol_binds_local_p): New function.
31985         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
31986         (nios2_legitimize_address): Update to use nios2_large_offset_p.
31987         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
31988         (nios2_print_operand): Merge H/L processing, add hiadj/lo
31989         processing for (const (unspec ...)).
31990         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
31991
31992 2014-02-20  Richard Biener  <rguenther@suse.de>
31993
31994         * tree-cfg.c (replace_uses_by): Mark altered BBs before
31995         doing the substitution.
31996         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
31997
31998 2014-02-20  Martin Jambor  <mjambor@suse.cz>
31999
32000         PR ipa/55260
32001         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32002         info when checking whether lattices are bottom.
32003
32004 2014-02-20  Richard Biener  <rguenther@suse.de>
32005
32006         PR middle-end/60221
32007         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32008         regions at -O0.
32009
32010 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
32011
32012         PR ipa/58555
32013         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32014         parameter specifying the scaling.
32015         (inline_call): Update.
32016         (want_inline_recursively): Guard division by zero.
32017         (recursive_inlining): Update.
32018         * ipa-inline.h (clone_inlined_nodes): Update.
32019
32020 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32021
32022         PR target/60204
32023         * config/i386/i386.c (classify_argument): Pass structures of size
32024         64 bytes or less in register.
32025
32026 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32027             Kirill Yukhin  <kirill.yukhin@intel.com>
32028
32029         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32030         (_mm_rcp28_round_ss): Ditto.
32031         (_mm_rsqrt28_round_sd): Ditto.
32032         (_mm_rsqrt28_round_ss): Ditto.
32033         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32034         (_mm_rcp14_round_ss): Ditto.
32035         (_mm_rsqrt14_round_sd): Ditto.
32036         (_mm_rsqrt14_round_ss): Ditto.
32037         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32038         the first input operand, get rid of match_dup.
32039         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32040         attribute to sse.
32041         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32042         Ditto.
32043         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32044         operand as the first input operand, set type attribute.
32045         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32046         Set type attribute.
32047         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32048         operand as the first input operand, set type attribute.
32049
32050 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32051
32052         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32053         bit of zero.
32054
32055 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
32056
32057         PR target/60207
32058         * config/i386/i386.c (construct_container): Remove TFmode check
32059         for X86_64_INTEGER_CLASS.
32060
32061 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
32062
32063         PR target/59794
32064         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32065         only when -Wpsabi is enabled.
32066
32067 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
32068
32069         PR target/59799
32070         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32071         passing arrays in registers are the same as for structs, so remove the
32072         special case for them.
32073
32074 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
32075
32076         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32077         destination type, extract only the valid bits if the source type is not
32078         integral and has a different mode.
32079
32080 2014-02-19  Richard Biener  <rguenther@suse.de>
32081
32082         PR ipa/60243
32083         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32084         for all calls.
32085
32086 2014-02-19  Richard Biener  <rguenther@suse.de>
32087
32088         PR ipa/60243
32089         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32090         (ipa_modify_call_arguments): Emit an argument load explicitely and
32091         preserve virtual SSA form there and for the replacement call.
32092         Do not update SSA form nor free dominance info.
32093
32094 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32095
32096         * ipa.c (function_and_variable_visibility): Also clear WEAK
32097         flag when disolving COMDAT_GROUP.
32098
32099 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32100
32101         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32102         * ipa-prop.c (ipa_set_jf_known_type): Return early when
32103         not devirtualizing.
32104         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32105         do more sanity checks.
32106         (detect_type_change): Return true when giving up early.
32107         (compute_complex_assign_jump_func): Fix type parameter of
32108         ipa_set_ancestor_jf.
32109         (compute_complex_ancestor_jump_func): Likewise.
32110         (update_jump_functions_after_inlining): Fix updating of
32111         ancestor function.
32112         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32113
32114 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32115
32116         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32117         inline clones when edge disappears.
32118
32119 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
32120
32121         PR target/60203
32122         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32123         Split 64-bit moves into 2 patterns.  Do not allow the use of
32124         direct move for TDmode in little endian, since the decimal value
32125         has little endian bytes within a word, but the 64-bit pieces are
32126         ordered in a big endian fashion, and normal subreg's of TDmode are
32127         not allowed.
32128         (mov<mode>_64bit_dm): Likewise.
32129         (movtd_64bit_nodm): Likewise.
32130
32131 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32132
32133         PR tree-optimization/60174
32134         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32135         statement of an SSA_NAME that occurs in an abnormal PHI node.
32136
32137 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32138
32139         PR sanitizer/60142
32140         * final.c (SEEN_BB): Remove.
32141         (SEEN_NOTE, SEEN_EMITTED): Renumber.
32142         (final_scan_insn): Don't force_source_line on second
32143         NOTE_INSN_BASIC_BLOCK.
32144
32145 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
32146
32147         PR target/60205
32148         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32149         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32150         (type_natural_mode): Warn ABI change when %zmm register is not
32151         available for AVX512F vector value passing.
32152
32153 2014-02-18  Kai Tietz  <ktietz@redhat.com>
32154
32155         PR target/60193
32156         * config/i386/i386.c (ix86_expand_prologue): Use value in
32157         rax register as displacement when restoring %r10 or %rax.
32158         Fix wrong offset when restoring both registers.
32159
32160 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32161
32162         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32163         assertion with conditional return.
32164
32165 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32166             Uros Bizjak  <ubizjak@gmail.com>
32167
32168         PR driver/60233
32169         * config/i386/driver-i386.c (host_detect_local_cpu): If
32170         YMM state is not saved by the OS, also clear has_f16c.  Move
32171         CPUID 0x80000001 handling before YMM state saving checking.
32172
32173 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
32174
32175         PR rtl-optimization/58960
32176         * haifa-sched.c (alloc_global_sched_pressure_data): New,
32177         factored out from ...
32178         (sched_init): ... here.
32179         (free_global_sched_pressure_data): New, factored out from ...
32180         (sched_finish): ... here.
32181         * sched-int.h (free_global_sched_pressure_data): Declare.
32182         * sched-rgn.c (nr_regions_initial): New static global.
32183         (haifa_find_rgns): Initialize it.
32184         (schedule_region): Disable sched-pressure for the newly
32185         generated regions.
32186
32187 2014-02-17  Richard Biener  <rguenther@suse.de>
32188
32189         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32190         release SSA defs of pattern stmts.
32191
32192 2014-02-17  Richard Biener  <rguenther@suse.de>
32193
32194         * tree-inline.c (expand_call_inline): Release the virtual
32195         operand defined by the call we are about to inline.
32196
32197 2014-02-17  Richard Biener  <rguenther@suse.de>
32198
32199         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32200
32201 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
32202             Ilya Tocar  <ilya.tocar@intel.com>
32203
32204         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32205         arguments order in builtin.
32206         (_mm512_permutexvar_epi64): Ditto.
32207         (_mm512_mask_permutexvar_epi64): Ditto
32208         (_mm512_maskz_permutexvar_epi32): Ditto
32209         (_mm512_permutexvar_epi32): Ditto
32210         (_mm512_mask_permutexvar_epi32): Ditto
32211
32212 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32213
32214         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32215         (p8_vmrgow): Likewise.
32216
32217 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32218
32219         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
32220         endian targets.
32221
32222 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
32223
32224         PR target/60203
32225         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
32226         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
32227         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
32228         using direct move instructions on ISA 2.07.  Also adjust
32229         instruction length for 64-bit.
32230         (mov<mode>_64bit, TFmode/TDmode): Likewise.
32231         (mov<mode>_32bit, TFmode/TDmode): Likewise.
32232
32233 2014-02-15  Alan Modra  <amodra@gmail.com>
32234
32235         PR target/58675
32236         PR target/57935
32237         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32238         find_replacement on parts of insn rtl that might be reloaded.
32239
32240 2014-02-15  Richard Biener  <rguenther@suse.de>
32241
32242         PR tree-optimization/60183
32243         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
32244         (tree_ssa_phiprop): Calculate and free post-dominators.
32245
32246 2014-02-14  Jeff Law  <law@redhat.com>
32247
32248         PR rtl-optimization/60131
32249         * ree.c (get_extended_src_reg): New function.
32250         (combine_reaching_defs): Use it rather than assuming location of REG.
32251         (find_and_remove_re): Verify first operand of extension is
32252         a REG before adding the insns to the copy list.
32253
32254 2014-02-14  Roland McGrath  <mcgrathr@google.com>
32255
32256         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32257         * configure: Regenerated.
32258         * config.in: Regenerated.
32259         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32260         instead of ASM_SHORT.
32261
32262 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
32263             Richard Earnshaw  <rearnsha@arm.com>
32264
32265         PR rtl-optimization/59535
32266         * lra-constraints.c (process_alt_operands): Encourage alternative
32267         when unassigned pseudo class is superset of the alternative class.
32268         (inherit_reload_reg): Don't inherit when optimizing for code size.
32269         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32270         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32271         modes not less than 4 for Thumb1.
32272
32273 2014-02-14  Kyle McMartin  <kyle@redhat.com>
32274
32275         PR pch/60010
32276         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32277
32278 2014-02-14  Richard Biener  <rguenther@suse.de>
32279
32280         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32281         (get_frame_arg): Drop the assert with langhook types_compatible_p.
32282         Do not strip INDIRECT_REFs.
32283
32284 2014-02-14  Richard Biener  <rguenther@suse.de>
32285
32286         PR lto/60179
32287         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32288         DECL_FUNCTION_SPECIFIC_TARGET.
32289         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32290         * tree-streamer-out.c (pack_ts_target_option): Remove.
32291         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32292         (write_ts_function_decl_tree_pointers): Do not stream
32293         DECL_FUNCTION_SPECIFIC_TARGET.
32294         * tree-streamer-in.c (unpack_ts_target_option): Remove.
32295         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32296         (lto_input_ts_function_decl_tree_pointers): Do not stream
32297         DECL_FUNCTION_SPECIFIC_TARGET.
32298
32299 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
32300
32301         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32302         (get_initial_def_for_induction, vectorizable_induction): Ignore
32303         debug stmts when looking for exit_phi.
32304         (vectorizable_live_operation): Fix up condition.
32305
32306 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32307
32308         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32309         nreverse() because it changes the content of original tree list.
32310
32311 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32312
32313         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32314         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32315
32316 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32317
32318         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32319         GNU coding standards.
32320
32321 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
32322
32323         PR debug/60152
32324         * dwarf2out.c (gen_subprogram_die): Don't call
32325         add_calling_convention_attribute if subr_die is old_die.
32326
32327 2014-02-13  Sharad Singhai  <singhai@google.com>
32328
32329         * doc/optinfo.texi: Fix order of nodes.
32330
32331 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
32332
32333         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32334         operands[2], not operands[3].
32335
32336 2014-02-13  Richard Biener  <rguenther@suse.de>
32337
32338         PR bootstrap/59878
32339         * doc/install.texi (ISL): Update recommended version to 0.12.2,
32340         mention the possibility of an in-tree build.
32341         (CLooG): Update recommended version to 0.18.1, mention the
32342         possibility of an in-tree build and clarify that the ISL
32343         bundled with CLooG does not work.
32344
32345 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
32346
32347         PR target/43546
32348         * expr.c (compress_float_constant): If x is a hard register,
32349         extend into a pseudo and then move to x.
32350
32351 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32352
32353         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
32354         caused by bad second argument to warning_at() with -mhotpatch and
32355         nested functions (e.g. with gfortran).
32356
32357 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
32358
32359         * opts.c (option_name): Remove "enabled by default" rider.
32360
32361 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
32362
32363         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
32364
32365 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
32366             Uros Bizjak  <ubizjak@gmail.com>
32367
32368         PR target/60151
32369         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
32370         * configure: Regenerated.
32371
32372 2014-02-12  Richard Biener  <rguenther@suse.de>
32373
32374         * vec.c (vec_prefix::calculate_allocation): Move as
32375         inline variant to vec.h.
32376         (vec_prefix::calculate_allocation_1): New out-of-line version.
32377         * vec.h (vec_prefix::calculate_allocation_1): Declare.
32378         (vec_prefix::m_has_auto_buf): Rename to ...
32379         (vec_prefix::m_using_auto_storage): ... this.
32380         (vec_prefix::calculate_allocation): Inline the easy cases
32381         and dispatch to calculate_allocation_1 which doesn't need the
32382         prefix address.
32383         (va_heap::reserve): Use gcc_checking_assert.
32384         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
32385         m_using_auto_storage.
32386         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
32387         member and adjust.
32388         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
32389         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
32390         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
32391
32392 2014-02-12  Richard Biener  <rguenther@suse.de>
32393
32394         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
32395         when we found a dependence.
32396
32397 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
32398
32399         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
32400         common code...
32401         (maybe_fold_stmt): ... into this new function.
32402         * omp-low.c (lower_omp): Update comment.
32403
32404         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
32405         last use.
32406
32407         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
32408         dereference.
32409
32410 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
32411
32412         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
32413         identifiers in comments.
32414         (cortexa53_extra_costs): Likewise.
32415         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
32416         (cortexa7_extra_costs): Likewise.
32417         (cortexa12_extra_costs): Likewise.
32418         (cortexa15_extra_costs): Likewise.
32419         (v7m_extra_costs): Likewise.
32420
32421 2014-02-12  Richard Biener  <rguenther@suse.de>
32422
32423         PR middle-end/60092
32424         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
32425         of posix_memalign being successful.
32426         (lower_stmt): Restrict lowering of posix_memalign to when
32427         -ftree-bit-ccp is enabled.
32428
32429 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32430
32431         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
32432         arg_loc.
32433         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
32434
32435 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
32436
32437         PR rtl-optimization/60116
32438         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
32439         other_insn once the combination has been validated.
32440
32441 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
32442
32443         PR lto/59468
32444         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
32445         and wrapper.
32446         * ipa-devirt.c: Include demangle.h
32447         (odr_violation_reported): New static variable.
32448         (add_type_duplicate): Update odr_violations.
32449         (maybe_record_node): Add completep parameter; update it.
32450         (record_target_from_binfo): Add COMPLETEP parameter;
32451         update it as needed.
32452         (possible_polymorphic_call_targets_1): Likewise.
32453         (struct polymorphic_call_target_d): Add nonconstruction_targets;
32454         rename FINAL to COMPLETE.
32455         (record_targets_from_bases): Sanity check we found the binfo;
32456         fix COMPLETEP updating.
32457         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
32458         parameter, fix computing of COMPLETEP.
32459         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
32460         at LTO time do demangling.
32461         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
32462         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
32463         parameter.
32464         (gimple_get_virt_method_for_binfo): Likewise.
32465         * gimple-fold.h (gimple_get_virt_method_for_binfo,
32466         gimple_get_virt_method_for_vtable): Update prototypes.
32467
32468 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
32469
32470         PR target/49008
32471         * genautomata.c (add_presence_absence): Fix typo with
32472         {final_}presence_list.
32473
32474 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
32475
32476         PR target/60137
32477         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
32478         for VSX/Altivec vectors that land in GPR registers.
32479
32480 2014-02-11  Richard Henderson  <rth@redhat.com>
32481             Jakub Jelinek  <jakub@redhat.com>
32482
32483         PR debug/59776
32484         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
32485         around drhs if type conversion to lacc->type is not useless.
32486
32487 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32488
32489         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
32490         tuning struct.
32491         (cortex-a57.cortex-a53): Likewise.
32492         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
32493
32494 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32495
32496         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
32497         arm_restrict_it.
32498
32499 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
32500
32501         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
32502         add_options_for_arm_vfp3.
32503
32504 2014-02-11  Jeff Law  <law@redhat.com>
32505
32506         PR middle-end/54041
32507         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
32508         object with an undesirable mode.
32509
32510 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32511
32512         PR libgomp/60107
32513         * config/i386/sol2-9.h: New file.
32514         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
32515         *-*-solaris2.9*): Use it.
32516
32517 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
32518
32519         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
32520         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
32521
32522 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
32523
32524         * config/microblaze/microblaze.c: Extend mcpu version format
32525
32526 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
32527
32528         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
32529
32530 2014-02-10  Richard Henderson  <rth@redhat.com>
32531
32532         PR target/59927
32533         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
32534         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
32535         ms-abi vs -mno-accumulate-outgoing-args.
32536         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
32537         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
32538         respect to ms-abi.
32539
32540 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32541
32542         PR middle-end/60080
32543         * cfgexpand.c (expand_asm_operands): Attach source location to
32544         ASM_INPUT rtx objects.
32545         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
32546
32547 2014-02-10  Nick Clifton  <nickc@redhat.com>
32548
32549         * config/mn10300/mn10300.c (popcount): New function.
32550         (mn10300_expand_prologue): Include saved registers in stack usage
32551         count.
32552
32553 2014-02-10  Jeff Law  <law@redhat.com>
32554
32555         PR middle-end/52306
32556         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
32557         when changing the SET_DEST of a prior insn to avoid an input reload.
32558
32559 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32560
32561         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
32562         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
32563         -mcall-openbsd, or -mcall-linux.
32564         (CC1_ENDIAN_BIG_SPEC): Remove.
32565         (CC1_ENDIAN_LITTLE_SPEC): Remove.
32566         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32567         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
32568         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
32569         and %cc1_endian_default.
32570         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32571
32572 2014-02-10  Richard Biener  <rguenther@suse.de>
32573
32574         PR tree-optimization/60115
32575         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
32576         MEM_REF handling.  Properly verify that the accesses are not
32577         out of the objects bound.
32578
32579 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32580
32581         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
32582         coretex to cortex.
32583
32584 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
32585
32586         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
32587         proper constants and fix formatting.
32588         (possible_polymorphic_call_targets): Fix formatting.
32589
32590 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
32591             Ilya Tocar  <ilya.tocar@intel.com>
32592
32593         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
32594         (_mm512_loadu_epi32): Renamed into...
32595         (_mm512_loadu_si512): This.
32596         (_mm512_storeu_epi32): Renamed into...
32597         (_mm512_storeu_si512): This.
32598         (_mm512_maskz_ceil_ps): Removed.
32599         (_mm512_maskz_ceil_pd): Ditto.
32600         (_mm512_maskz_floor_ps): Ditto.
32601         (_mm512_maskz_floor_pd): Ditto.
32602         (_mm512_floor_round_ps): Ditto.
32603         (_mm512_floor_round_pd): Ditto.
32604         (_mm512_ceil_round_ps): Ditto.
32605         (_mm512_ceil_round_pd): Ditto.
32606         (_mm512_mask_floor_round_ps): Ditto.
32607         (_mm512_mask_floor_round_pd): Ditto.
32608         (_mm512_mask_ceil_round_ps): Ditto.
32609         (_mm512_mask_ceil_round_pd): Ditto.
32610         (_mm512_maskz_floor_round_ps): Ditto.
32611         (_mm512_maskz_floor_round_pd): Ditto.
32612         (_mm512_maskz_ceil_round_ps): Ditto.
32613         (_mm512_maskz_ceil_round_pd): Ditto.
32614         (_mm512_expand_pd): Ditto.
32615         (_mm512_expand_ps): Ditto.
32616         * config/i386/i386.c (ix86_builtins): Remove
32617         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32618         (bdesc_args): Ditto.
32619         * config/i386/predicates.md (const1256_operand): New.
32620         (const_1_to_2_operand): Ditto.
32621         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32622         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32623         (*avx512pf_gatherpf<mode>sf): Ditto.
32624         (avx512pf_gatherpf<mode>df): Ditto.
32625         (*avx512pf_gatherpf<mode>df_mask): Ditto.
32626         (*avx512pf_gatherpf<mode>df): Ditto.
32627         (avx512pf_scatterpf<mode>sf): Ditto.
32628         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32629         (*avx512pf_scatterpf<mode>sf): Ditto.
32630         (avx512pf_scatterpf<mode>df): Ditto.
32631         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32632         (*avx512pf_scatterpf<mode>df): Ditto.
32633         (avx512f_expand<mode>): Removed.
32634         (<shift_insn><mode>3<mask_name>): Change predicate type.
32635
32636 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
32637
32638         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32639         not at the end of datarefs vector use ordered_remove to avoid
32640         reordering datarefs vector.
32641
32642         PR c/59984
32643         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32644         mark local addressable non-static vars as GOVD_PRIVATE
32645         instead of GOVD_LOCAL.
32646         * omp-low.c (lower_omp_for): Move gimple_bind_vars
32647         and BLOCK_VARS of gimple_bind_block to new_stmt rather
32648         than copying them.
32649
32650         PR middle-end/60092
32651         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32652         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32653         assume_aligned or alloc_align attributes.
32654         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32655         arguments.  Handle also assume_aligned and alloc_align attributes.
32656         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
32657         calls to functions with assume_aligned or alloc_align attributes.
32658         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32659
32660 2014-02-08  Terry Guo  <terry.guo@arm.com>
32661
32662         * doc/invoke.texi: Document ARM -march=armv7e-m.
32663
32664 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
32665
32666         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32667         flag on __cilkrts_rethrow builtin.
32668
32669         PR ipa/60026
32670         * ipa-cp.c (determine_versionability): Fail at -O0
32671         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32672         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32673
32674         Revert:
32675         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
32676
32677         PR ipa/60026
32678         * tree-inline.c (copy_forbidden): Fail for
32679         __attribute__((optimize (0))) functions.
32680
32681 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
32682
32683         * varpool.c: Include pointer-set.h.
32684         (varpool_remove_unreferenced_decls): Variables in other partitions
32685         will not be output; be however careful to not lose information
32686         about partitioning.
32687
32688 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
32689
32690         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32691         lookup in the vtable constructor.
32692
32693 2014-02-07  Jeff Law  <law@redhat.com>
32694
32695         PR target/40977
32696         * config/m68k/m68k.md (ashldi_extsi): Turn into a
32697         define_insn_and_split.
32698
32699         * ipa-inline.c (inline_small_functions): Fix typos.
32700
32701 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32702
32703         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
32704         (s390_can_use_return_insn): Declare.
32705         * config/s390/s390.h (EPILOGUE_USES): Define.
32706         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
32707         instructions.
32708         (s390_chunkify_start): Handle return JUMP_LABELs.
32709         (s390_early_mach): Emit a main_pool instruction on the entry edge.
32710         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
32711         (s390_can_use_return_insn): New functions.
32712         (s390_fix_long_loop_prediction): Handle conditional returns.
32713         (TARGET_SET_UP_BY_PROLOGUE): Define.
32714         * config/s390/s390.md (ANY_RETURN): New code iterator.
32715         (*creturn, *csimple_return, return, simple_return): New patterns.
32716
32717 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32718
32719         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32720         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
32721         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
32722         REG_CFA_RESTORE list when deciding not to restore a register.
32723
32724 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32725
32726         * config/s390/s390.c: Include tree-pass.h and context.h.
32727         (s390_early_mach): New function, split out from...
32728         (s390_emit_prologue): ...here.
32729         (pass_data_s390_early_mach): New pass structure.
32730         (pass_s390_early_mach): New class.
32731         (s390_option_override): Create and register early_mach pass.
32732         Move to end of file.
32733
32734 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
32735
32736         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32737         to match for the exit block.
32738
32739 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32740
32741         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32742         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32743         Reject misaligned operands.
32744
32745 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32746
32747         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
32748
32749 2014-02-07  Richard Biener  <rguenther@suse.de>
32750
32751         PR middle-end/60092
32752         * gimple-low.c (lower_builtin_posix_memalign): New function.
32753         (lower_stmt): Call it to lower posix_memalign in a way
32754         to make alignment info accessible.
32755
32756 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
32757
32758         PR c++/60082
32759         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
32760         __builtin_setjmp_receiver.
32761
32762 2014-02-07  Richard Biener  <rguenther@suse.de>
32763
32764         PR middle-end/60092
32765         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
32766         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
32767         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32768         Handle BUILT_IN_POSIX_MEMALIGN.
32769         (find_func_clobbers): Likewise.
32770         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32771         (call_may_clobber_ref_p_1): Likewise.
32772
32773 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32774
32775         PR ipa/59918
32776         * ipa-devirt.c (record_target_from_binfo): Remove overactive
32777         sanity check.
32778
32779 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32780
32781         PR ipa/59469
32782         * lto-cgraph.c (lto_output_node): Use
32783         symtab_get_symbol_partitioning_class.
32784         (lto_output_varpool_node): likewise.
32785         (symtab_get_symbol_partitioning_class): Move here from
32786         lto/lto-partition.c
32787         * cgraph.h (symbol_partitioning_class): Likewise.
32788         (symtab_get_symbol_partitioning_class): Declare.
32789
32790 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32791
32792         * ggc.h (ggc_internal_cleared_alloc): New macro.
32793         * vec.h (vec_safe_copy): Handle memory stats.
32794         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
32795         * target-globals.c (save_target_globals): Likewise.
32796
32797 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
32798
32799         PR target/60077
32800         * expr.c (emit_move_resolve_push): Export; be bit more selective
32801         on when to clear alias set.
32802         * expr.h (emit_move_resolve_push): Declare.
32803         * function.h (struct function): Add tail_call_marked.
32804         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
32805         * config/i386/i386-protos.h (ix86_expand_push): Remove.
32806         * config/i386/i386.md (TImode move expander): De not call
32807         ix86_expand_push.
32808         (FP push expanders): Preserve memory attributes.
32809         * config/i386/sse.md (push<mode>1): Remove.
32810         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
32811         (ix86_expand_push): Remove.
32812         * config/i386/mmx.md (push<mode>1): Remove.
32813
32814 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
32815
32816         PR rtl-optimization/60030
32817         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
32818         lopart with paradoxical subreg before shifting it up by hprec.
32819
32820 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32821
32822         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
32823         Remove extra newline at end of file.
32824         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
32825         (arm_issue_rate): Handle cortexa57.
32826         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
32827         (cortex-a57.cortex-a53): Likewise.
32828
32829 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
32830
32831         PR target/59575
32832         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
32833         don't record in REG_FRAME_RELATED_EXPR registers not set in that
32834         bitmask.
32835         (arm_expand_prologue): Adjust all callers.
32836         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
32837         info, registers also at the lowest numbered registers side.  Use
32838         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
32839         XEXP.
32840
32841         PR debug/59992
32842         * var-tracking.c (adjust_mems): Before adding a SET to
32843         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
32844
32845 2014-02-06  Alan Modra  <amodra@gmail.com>
32846
32847         PR target/60032
32848         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
32849         change SDmode to DDmode when lra_in_progress.
32850
32851 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
32852
32853         PR middle-end/59150
32854         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
32855         free_data_ref on the dr first, and before goto again also set dr
32856         to the next dr.  For simd_lane_access, free old datarefs[i] before
32857         overwriting it.  For get_vectype_for_scalar_type failure, don't
32858         free_data_ref if simd_lane_access.
32859
32860         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
32861
32862         PR target/60062
32863         * tree.h (opts_for_fn): New inline function.
32864         (opt_for_fn): Define.
32865         * config/i386/i386.c (ix86_function_regparm): Use
32866         opt_for_fn (decl, optimize) instead of optimize.
32867
32868 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32869
32870         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
32871         for SYMBOL_REF in large memory model.
32872
32873 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32874
32875         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
32876         and crypto support.
32877         (cortex-a57): Likewise.
32878         (cortex-a57.cortex-a53): Likewise.
32879
32880 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
32881             Kugan Vivekanandarajah  <kuganv@linaro.org>
32882
32883         * config/arm/arm.c (arm_vector_alignment_reachable): Check
32884         unaligned_access.
32885         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
32886
32887 2014-02-06  Richard Biener  <rguenther@suse.de>
32888
32889         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
32890         set_loop_copy and initialize_original_copy_tables.
32891
32892 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
32893
32894         * config/aarch64/aarch64-simd.md
32895         (aarch64_ashr_simddi): Change QI to SI.
32896
32897 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
32898             Jakub Jelinek  <jakub@redhat.com>
32899
32900         PR middle-end/60013
32901         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
32902         of the dataflow.
32903
32904 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32905
32906         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
32907         CODE_FOR_altivec_vpku[hw]um to
32908         CODE_FOR_altivec_vpku[hw]um_direct.
32909         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
32910         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
32911         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
32912         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
32913
32914 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32915
32916         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
32917         generation for -maltivec=be.
32918         (altivec_vsumsws): Simplify redundant test.
32919
32920 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32921
32922         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
32923         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
32924         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
32925         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
32926         gen_altivec_vpkuwum.
32927         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
32928         BYTES_BIG_ENDIAN.
32929         (altivec_vpks<VI_char>ss): Likewise.
32930         (altivec_vpks<VI_char>us): Likewise.
32931         (altivec_vpku<VI_char>us): Likewise.
32932         (altivec_vpku<VI_char>um): Likewise.
32933         (altivec_vpku<VI_char>um_direct): New (copy of
32934         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
32935         internal use).
32936         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
32937         target is little endian and -maltivec=be is not specified.
32938         (*altivec_vupkhs<VU_char>_direct): New (copy of
32939         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
32940         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
32941         target is little endian and -maltivec=be is not specified.
32942         (*altivec_vupkls<VU_char>_direct): New (copy of
32943         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
32944         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
32945         little endian and -maltivec=be is not specified.
32946         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
32947         little endian and -maltivec=be is not specified.
32948
32949 2014-02-05  Richard Henderson  <rth@redhat.com>
32950
32951         PR debug/52727
32952         * combine-stack-adj.c: Revert r206943.
32953         * sched-int.h (struct deps_desc): Add last_args_size.
32954         * sched-deps.c (init_deps): Initialize it.
32955         (sched_analyze_insn): Add OUTPUT dependencies between insns that
32956         contain REG_ARGS_SIZE notes.
32957
32958 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
32959
32960         * lto-cgraph.c (asm_nodes_output): Make global.
32961         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
32962         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
32963         (driver_handle_option): Handle OPT_fwpa.
32964
32965 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
32966
32967         PR ipa/59947
32968         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
32969         a comment typo and formatting issue.  If odr_hash hasn't been
32970         created, return vNULL and set *completep to false.
32971
32972         PR middle-end/57499
32973         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
32974         bb with no successors.
32975
32976 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
32977
32978         PR target/59718
32979         * doc/invoke.texi (-march): Clarify documentation for ARM.
32980         (-mtune): Likewise.
32981         (-mcpu): Likewise.
32982
32983 2014-02-05  Richard Biener  <rguenther@suse.de>
32984
32985         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
32986         when not vectorizing because of too many alias checks.
32987         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32988         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
32989
32990 2014-02-05  Nick Clifton  <nickc@redhat.com>
32991
32992         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
32993         accept extended registers in any mode when compiling for the MN10300.
32994
32995 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
32996
32997         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
32998         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
32999         sanitization attributes.
33000         (can_inline_edge_p): Likewise.
33001         (sanitize_attrs_match_for_inline_p): New function.
33002
33003 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33004
33005         * ipa-prop.c (detect_type_change): Shor circuit testing of
33006         type changes on THIS pointer.
33007
33008 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
33009
33010         PR target/59777
33011         * config/pa/pa.c (legitimize_tls_address): Return original address
33012         if not passed a SYMBOL_REF rtx.
33013         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33014         addresses.
33015         (pa_emit_move_sequence): Simplify TLS source operands.
33016         (pa_legitimate_constant_p): Reject all TLS constants.
33017         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33018         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33019
33020 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33021
33022         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33023         groups when we know they are controlled by LTO.
33024         * varasm.c (default_binds_local_p_1): If object is in other partition,
33025         it will be resolved locally.
33026
33027 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33028
33029         * config/host-linux.c (linux_gt_pch_use_address): Don't
33030         use SSIZE_MAX because it is not always defined.
33031
33032 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
33033
33034         PR bootstrap/59913
33035         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33036         threshold for pseudo splitting.
33037         (update_ebb_live_info): Process call argument hard registers and
33038         hard registers from insn definition too.
33039         (max_small_class_regs_num): New constant.
33040         (inherit_in_ebb): Update live hard regs through EBBs.  Update
33041         reloads_num only for small register classes.  Don't split for
33042         outputs of jumps.
33043
33044 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
33045
33046         PR ipa/60058
33047         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33048         is non-null.
33049
33050 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33051
33052         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33053         visibility is safe.
33054
33055 2014-02-04  Marek Polacek  <polacek@redhat.com>
33056
33057         * gdbinit.in (pel): Define.
33058
33059 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33060
33061         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33062         behavior.
33063
33064 2014-02-04  Richard Biener  <rguenther@suse.de>
33065
33066         PR lto/59723
33067         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33068         in function context local.
33069         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33070         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33071         similar to LTO_imported_decl_ref.
33072
33073 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
33074
33075         PR tree-optimization/60002
33076         * cgraphclones.c (build_function_decl_skip_args): Clear
33077         DECL_LANG_SPECIFIC.
33078
33079         PR tree-optimization/60023
33080         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33081         false to gsi_replace.
33082         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33083         has been in some EH region and vec_stmt could throw, add
33084         vec_stmt into the same EH region.
33085         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33086         has no lhs, ignore it.
33087         * internal-fn.c (expand_MASK_LOAD): Likewise.
33088
33089         PR ipa/60026
33090         * tree-inline.c (copy_forbidden): Fail for
33091         __attribute__((optimize (0))) functions.
33092
33093         PR other/58712
33094         * omp-low.c (simd_clone_struct_copy): If from->inbranch
33095         is set, copy one less argument.
33096         (expand_simd_clones): Don't subtract clone_info->inbranch
33097         from simd_clone_struct_alloc argument.
33098
33099         PR rtl-optimization/57915
33100         * recog.c (simplify_while_replacing): If all unary/binary/relational
33101         operation arguments are constant, attempt to simplify those.
33102
33103         PR middle-end/59261
33104         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33105         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33106
33107 2014-02-04  Richard Biener  <rguenther@suse.de>
33108
33109         PR tree-optimization/60012
33110         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33111         TBAA disambiguation to all DDRs.
33112
33113 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33114
33115         PR target/59788
33116         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33117         (LINK_SPEC): Use it for -shared, -shared-libgcc.
33118
33119 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33120
33121         PR ipa/59882
33122         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33123
33124 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33125
33126         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33127         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33128
33129 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33130
33131         PR ipa/59831
33132         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33133         to figure out targets of polymorphic calls with known decl.
33134         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33135         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33136         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33137         (get_polymorphic_call_info): ... here.
33138         (get_polymorphic_call_info_from_invariant): New function.
33139
33140 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33141
33142         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33143         lookup via vtable pointer; check for type consistency
33144         and turn inconsitent facts into UNREACHABLE.
33145         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33146         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33147         type inconsistent querries; return UNREACHABLE instead.
33148
33149 2014-02-03  Richard Henderson  <rth@twiddle.net>
33150
33151         PR tree-opt/59924
33152         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33153         already processed this node.
33154         (normalize_one_pred_1): Pass along mark_set.
33155         (normalize_one_pred): Create and destroy a pointer_set_t.
33156         (normalize_one_pred_chain): Likewise.
33157
33158 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
33159
33160         PR gcov-profile/58602
33161         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33162
33163 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33164
33165         PR ipa/59831
33166         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33167         -fno-devirtualize; try to devirtualize by the knowledge of
33168         virtual table pointer given by aggregate propagation.
33169         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33170         (ipa_print_node_jump_functions): Dump also offset that
33171         is relevant for polymorphic calls.
33172         (determine_known_aggregate_parts): Add arg_type parameter; use it
33173         instead of determining the type from pointer type.
33174         (ipa_compute_jump_functions_for_edge): Update call of
33175         determine_known_aggregate_parts.
33176         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33177         (gimple_get_virt_method_for_binfo): ... here; simplify using
33178         vtable_pointer_value_to_vtable.
33179         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33180         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33181         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33182         (vtable_pointer_value_to_vtable): Break out from ...; handle also
33183         POINTER_PLUS_EXPR.
33184         (vtable_pointer_value_to_binfo): ... here.
33185         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33186
33187 2014-02-03  Teresa Johnson  <tejohnson@google.com>
33188
33189         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33190         redef of outer loop index variable.
33191
33192 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
33193
33194         PR c++/53017
33195         PR c++/59211
33196         * doc/extend.texi (Function Attributes): Typo.
33197
33198 2014-02-03  Cong Hou  <congh@google.com>
33199
33200         PR tree-optimization/60000
33201         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33202         if the vectorized statement is a store.  A store statement can only
33203         appear at the end of pattern statements.
33204
33205 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
33206
33207         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33208         (ix86_option_override_internal): Default long double to 64-bit for
33209         32-bit Bionic and to 128-bit for 64-bit Bionic.
33210
33211         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33212         TARGET_LONG_DOUBLE_128 is true.
33213         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33214
33215         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33216         (mlong-double-64): Negate -mlong-double-128.
33217         (mlong-double-128): New option.
33218
33219         * config/i386/i386-c.c (ix86_target_macros): Define
33220         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
33221
33222         * doc/invoke.texi: Document -mlong-double-128.
33223
33224 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
33225
33226         PR rtl-optimization/60024
33227         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
33228
33229 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
33230
33231         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
33232
33233 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
33234
33235         PR rtl-optimization/57662
33236         * sel-sched.c (code_motion_path_driver): Do not mark already not
33237         existing blocks in the visiting bitmap.
33238
33239 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
33240
33241         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
33242         on the insn being emitted.
33243
33244 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
33245             Will Deacon  <will.deacon@arm.com>
33246
33247         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
33248
33249 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33250
33251         * config/arm/arm-tables.opt: Regenerate.
33252
33253 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33254
33255         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33256         for vector types other than V16QImode.
33257         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33258         define_expand, and call altivec_expand_vec_perm_le when producing
33259         code with little endian element order.
33260         (*altivec_vperm_<mode>_internal): New insn having previous
33261         behavior of altivec_vperm_<mode>.
33262         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33263         altivec_expand_vec_perm_le when producing code with little endian
33264         element order.
33265         (*altivec_vperm_<mode>_uns_internal): New insn having previous
33266         behavior of altivec_vperm_<mode>_uns.
33267
33268 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33269
33270         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33271         (altivec_vsumsws): Add handling for -maltivec=be with a little
33272         endian target.
33273         (altivec_vsumsws_direct): New.
33274         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33275         gen_altivec_vsumsws.
33276
33277 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
33278
33279         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33280         vtable_pointer_value_to_binfo): New functions.
33281         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33282         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33283
33284 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
33285
33286         * config/nios2/nios2.md (load_got_register): Initialize GOT
33287         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33288         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33289
33290 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
33291
33292         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33293         preserverd by passthrough, do not propagate the type.
33294
33295 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33296
33297         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33298         (mips_atomic_assign_expand_fenv): New function.
33299         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33300
33301 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33302
33303         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33304         (__builtin_mips_set_fcsr): Likewise.
33305         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33306         MIPS_USI_FTYPE_VOID.
33307         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33308         (mips16_expand_set_fcsr): Likewise.
33309         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33310         (mips16_set_fcsr_stub): Likewise.
33311         (mips16_get_fcsr_one_only_stub): New class.
33312         (mips16_set_fcsr_one_only_stub): Likewise.
33313         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33314         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33315         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33316         (hard_float): New availability predicate.
33317         (mips_builtins): Add get_fcsr and set_fcsr.
33318         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33319         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33320         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33321         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33322         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33323         patterns.
33324
33325 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33326
33327         * config/mips/mips.c (mips_one_only_stub): New class.
33328         (mips_need_mips16_rdhwr_p): Replace with...
33329         (mips16_rdhwr_stub): ...this new variable.
33330         (mips16_stub_call_address): New function.
33331         (mips16_rdhwr_one_only_stub): New class.
33332         (mips_expand_thread_pointer): Use mips16_stub_call_address.
33333         (mips_output_mips16_rdhwr): Delete.
33334         (mips_finish_stub): New function.
33335         (mips_code_end): Use it to handle rdhwr stubs.
33336
33337 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
33338
33339         PR target/60017
33340         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33341         when calculating size of integer atomic types.
33342
33343 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
33344
33345         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33346
33347 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
33348
33349         PR tree-optimization/60003
33350         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33351         * profile.c (branch_prob): Use gimple_call_builtin_p
33352         to check for BUILT_IN_SETJMP_RECEIVER.
33353         * tree-inline.c (copy_bb): Call notice_special_calls.
33354
33355 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
33356
33357         PR bootstrap/59985
33358         * lra-constraints.c (process_alt_operands): Update reload_sum only
33359         on the first pass.
33360
33361 2014-01-31  Richard Henderson  <rth@redhat.com>
33362
33363         PR middle-end/60004
33364         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
33365         until after else_eh is processed.
33366
33367 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
33368
33369         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
33370         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
33371         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
33372         in smmintrin.h, remove them.
33373         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
33374         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
33375         * config/i386/i386.md (ROUND_SAE): Fix value.
33376         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
33377         (const48_operand): New.
33378         * config/i386/subst.md (round), (round_expand): Use
33379         const_4_or_8_to_11_operand.
33380         (round_saeonly), (round_saeonly_expand): Use const48_operand.
33381
33382 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
33383
33384         * config/i386/constraints.md (Yk): Swap meaning with k.
33385         * config/i386/i386.md (movhi_internal): Change Yk to k.
33386         (movqi_internal): Ditto.
33387         (*k<logic><mode>): Ditto.
33388         (*andhi_1): Ditto.
33389         (*andqi_1): Ditto.
33390         (kandn<mode>): Ditto.
33391         (*<code>hi_1): Ditto.
33392         (*<code>qi_1): Ditto.
33393         (kxnor<mode>): Ditto.
33394         (kortestzhi): Ditto.
33395         (kortestchi): Ditto.
33396         (kunpckhi): Ditto.
33397         (*one_cmplhi2_1): Ditto.
33398         (*one_cmplqi2_1): Ditto.
33399         * config/i386/sse.md (): Change k to Yk.
33400         (avx512f_load<mode>_mask): Ditto.
33401         (avx512f_blendm<mode>): Ditto.
33402         (avx512f_store<mode>_mask): Ditto.
33403         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
33404         (avx512f_storedqu<mode>_mask): Ditto.
33405         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
33406         Ditto.
33407         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
33408         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
33409         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
33410         (avx512f_maskcmp<mode>3): Ditto.
33411         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
33412         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
33413         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
33414         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
33415         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
33416         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
33417         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
33418         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
33419         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
33420         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
33421         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
33422         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
33423         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
33424         (vec_extract_lo_<mode>_maskm): Ditto.
33425         (vec_extract_hi_<mode>_maskm): Ditto.
33426         (avx512f_vternlog<mode>_mask): Ditto.
33427         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
33428         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
33429         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
33430         (avx512f_<code>v8div16qi2_mask): Ditto.
33431         (avx512f_<code>v8div16qi2_mask_store): Ditto.
33432         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
33433         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
33434         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
33435         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
33436         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33437         (*avx512pf_gatherpf<mode>df_mask): Ditto.
33438         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33439         (*avx512pf_scatterpf<mode>df_mask): Ditto.
33440         (avx512cd_maskb_vec_dupv8di): Ditto.
33441         (avx512cd_maskw_vec_dupv16si): Ditto.
33442         (avx512f_vpermi2var<mode>3_maskz): Ditto.
33443         (avx512f_vpermi2var<mode>3_mask): Ditto.
33444         (avx512f_vpermi2var<mode>3_mask): Ditto.
33445         (avx512f_vpermt2var<mode>3_maskz): Ditto.
33446         (*avx512f_gathersi<mode>): Ditto.
33447         (*avx512f_gathersi<mode>_2): Ditto.
33448         (*avx512f_gatherdi<mode>): Ditto.
33449         (*avx512f_gatherdi<mode>_2): Ditto.
33450         (*avx512f_scattersi<mode>): Ditto.
33451         (*avx512f_scatterdi<mode>): Ditto.
33452         (avx512f_compress<mode>_mask): Ditto.
33453         (avx512f_compressstore<mode>_mask): Ditto.
33454         (avx512f_expand<mode>_mask): Ditto.
33455         * config/i386/subst.md (mask): Change k to Yk.
33456         (mask_scalar_merge): Ditto.
33457         (sd): Ditto.
33458
33459 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
33460
33461         * doc/extend.texi (Vector Extensions): Document ?: in C++.
33462
33463 2014-01-31  Richard Biener  <rguenther@suse.de>
33464
33465         PR middle-end/59990
33466         * builtins.c (fold_builtin_memory_op): Make sure to not
33467         use a floating-point mode or a boolean or enumeral type for
33468         the copy operation.
33469
33470 2014-01-30  DJ Delorie  <dj@redhat.com>
33471
33472         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
33473         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
33474         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
33475         whenever main() has an epilogue.
33476
33477 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33478
33479         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
33480         unused variable "field".
33481         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
33482         (vsx_mergeh_<mode>): Likewise.
33483         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
33484         (altivec_vmrghh): Likewise.
33485         (altivec_vmrghw): Likewise.
33486         (altivec_vmrglb): Likewise.
33487         (altivec_vmrglh): Likewise.
33488         (altivec_vmrglw): Likewise.
33489         (altivec_vspltb): Add missing uses.
33490         (altivec_vsplth): Likewise.
33491         (altivec_vspltw): Likewise.
33492         (altivec_vspltsf): Likewise.
33493
33494 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
33495
33496         PR target/59923
33497         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
33498         frame related instructions.
33499
33500 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33501
33502         PR rtl-optimization/59959
33503         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
33504         any reload of register whose subreg is invalid.
33505
33506 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
33507
33508         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
33509         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
33510         Add missing return type - void.
33511
33512 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33513
33514         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
33515         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
33516         remove element index adjustment for endian (now handled in vsx.md
33517         and altivec.md).
33518         (altivec_expand_vec_perm_const): Use
33519         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
33520         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
33521         (vsx_xxspltw_<mode>): Adjust element index for little endian.
33522         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
33523         define_expand and a new define_insn *altivec_vspltb_internal;
33524         adjust for -maltivec=be on a little endian target.
33525         (altivec_vspltb_direct): New.
33526         (altivec_vsplth): Divide into a define_expand and a new
33527         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
33528         little endian target.
33529         (altivec_vsplth_direct): New.
33530         (altivec_vspltw): Divide into a define_expand and a new
33531         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
33532         little endian target.
33533         (altivec_vspltw_direct): New.
33534         (altivec_vspltsf): Divide into a define_expand and a new
33535         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
33536         a little endian target.
33537
33538 2014-01-30  Richard Biener  <rguenther@suse.de>
33539
33540         PR tree-optimization/59993
33541         * tree-ssa-forwprop.c (associate_pointerplus): Check we
33542         can propagate form the earlier stmt and avoid the transform
33543         when the intermediate result is needed.
33544
33545 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
33546
33547         * README.Portability: Fix typo.
33548
33549 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
33550
33551         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
33552         comparison_operator with ordered_comparison_operator.
33553
33554 2014-01-30  Nick Clifton  <nickc@redhat.com>
33555
33556         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
33557         Rename to mn10300_store_multiple_regs.
33558         * config/mn10300/mn10300.c: Likewise.
33559         * config/mn10300/mn10300.md (store_movm): Fix typo: call
33560         store_multiple_regs.
33561         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
33562         Call mn10300_store_multiple_regs.
33563
33564 2014-01-30  Nick Clifton  <nickc@redhat.com>
33565             DJ Delorie  <dj@redhat.com>
33566
33567         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
33568         %fp 2 to keep registers after it properly word-aligned.
33569         (rl78_alloc_physical_registers_umul): Handle the case where both
33570         input operands are the same.
33571
33572 2014-01-30  Richard Biener  <rguenther@suse.de>
33573
33574         PR tree-optimization/59903
33575         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
33576         check properly.
33577
33578 2014-01-30  Jason Merrill  <jason@redhat.com>
33579
33580         PR c++/59633
33581         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
33582
33583         PR c++/59645
33584         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
33585
33586 2014-01-30  Richard Biener  <rguenther@suse.de>
33587
33588         PR tree-optimization/59951
33589         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
33590
33591 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
33592
33593         PR target/59784
33594         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
33595         SFmode to DFmode case.
33596
33597 2014-01-29  DJ Delorie  <dj@redhat.com>
33598
33599         * config/msp430/msp430.opt (-minrt): New.
33600         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33601         if -minrt given.
33602         (ENDFILE_SPEC): Likewise.
33603
33604 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
33605
33606         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33607         (estimate_function_body_sizes): Use it.
33608
33609 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
33610
33611         PR c++/58561
33612         * dwarf2out.c (is_cxx_auto): New.
33613         (is_base_type): Use it.
33614         (gen_type_die_with_usage): Likewise.
33615
33616 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33617
33618         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
33619         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33620         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33621         -maltivec=be with LE targets.
33622         (vsx_mergeh_<mode>): Likewise.
33623         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33624         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33625         (altivec_vmrghb): Replace with define_expand and new
33626         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33627         (altivec_vmrghb_direct): New define_insn.
33628         (altivec_vmrghh): Replace with define_expand and new
33629         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33630         (altivec_vmrghh_direct): New define_insn.
33631         (altivec_vmrghw): Replace with define_expand and new
33632         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33633         (altivec_vmrghw_direct): New define_insn.
33634         (*altivec_vmrghsf): Adjust for endianness.
33635         (altivec_vmrglb): Replace with define_expand and new
33636         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33637         (altivec_vmrglb_direct): New define_insn.
33638         (altivec_vmrglh): Replace with define_expand and new
33639         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33640         (altivec_vmrglh_direct): New define_insn.
33641         (altivec_vmrglw): Replace with define_expand and new
33642         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33643         (altivec_vmrglw_direct): New define_insn.
33644         (*altivec_vmrglsf): Adjust for endianness.
33645         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33646         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33647         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33648         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33649         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33650         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33651         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33652         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33653
33654 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33655
33656         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33657         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33658         whitespace.
33659
33660 2014-01-29  Richard Biener  <rguenther@suse.de>
33661
33662         PR tree-optimization/58742
33663         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33664         associate_pointerplus_align.
33665         (associate_pointerplus_diff): New function.
33666         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
33667         and associate_pointerplus_diff.
33668
33669 2014-01-29  Richard Biener  <rguenther@suse.de>
33670
33671         * lto-streamer.h (LTO_major_version): Bump to 3.
33672         (LTO_minor_version): Reset to 0.
33673
33674 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
33675
33676         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33677         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33678         (arm_file_start): Generate correct asm header for armv7ve.
33679         * config/arm/bpabi.h: Add multilib support for armv7ve.
33680         * config/arm/driver-arm.c: Change the architectures of cortex-a7
33681         and cortex-a15 to armv7ve.
33682         * config/arm/t-aprofile: Add multilib support for armv7ve.
33683         * doc/invoke.texi: Document -march=armv7ve.
33684
33685 2014-01-29  Richard Biener  <rguenther@suse.de>
33686
33687         PR tree-optimization/58742
33688         * tree-ssa-forwprop.c (associate_plusminus): Return true
33689         if we changed sth, defer EH cleanup to ...
33690         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
33691         (simplify_mult): New function.
33692
33693 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
33694
33695         PR middle-end/59917
33696         PR tree-optimization/59920
33697         * tree.c (build_common_builtin_nodes): Remove
33698         __builtin_setjmp_dispatcher initialization.
33699         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
33700         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
33701         instead of gsi_after_labels + manually skipping debug stmts.
33702         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
33703         ignore bbs with IFN_ABNORMAL_DISPATCHER.
33704         * tree-inline.c (copy_edges_for_bb): Remove
33705         can_make_abnormal_goto argument, instead add abnormal_goto_dest
33706         argument.  Ignore computed_goto_p stmts.  Don't call
33707         make_abnormal_goto_edges.  If a call might need abnormal edges
33708         for non-local gotos, see if it already has an edge to
33709         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
33710         with true argument, don't do anything then, otherwise add
33711         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
33712         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
33713         caller.
33714         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
33715         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33716         (lower_stmt): Don't set data->calls_builtin_setjmp.
33717         (lower_builtin_setjmp): Adjust comment.
33718         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33719         * tree-cfg.c (found_computed_goto): Remove.
33720         (factor_computed_gotos): Remove.
33721         (make_goto_expr_edges): Return bool, true for computed gotos.
33722         Don't call make_abnormal_goto_edges.
33723         (build_gimple_cfg): Don't set found_computed_goto, don't call
33724         factor_computed_gotos.
33725         (computed_goto_p): No longer static.
33726         (make_blocks): Don't set found_computed_goto.
33727         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33728         (make_edges): If make_goto_expr_edges returns true, push bb
33729         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33730         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33731         vector.  Record mapping between bbs and OpenMP regions if there
33732         are any, adjust make_gimple_omp_edges caller.  Call
33733         handle_abnormal_edges.
33734         (make_abnormal_goto_edges): Remove.
33735         * tree-cfg.h (make_abnormal_goto_edges): Remove.
33736         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33737         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33738         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33739         * internal-fn.def (ABNORMAL_DISPATCHER): New.
33740         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33741         filling *region also set *region_idx to (*region)->entry->index.
33742
33743         PR other/58712
33744         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
33745         For REGs set ORIGINAL_REGNO.
33746
33747 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
33748
33749         * doc/md.texi: Mention that a target shouldn't implement
33750         vec_widen_(s|u)mul_even/odd pair if it is less efficient
33751         than hi/lo pair.
33752
33753 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
33754
33755         PR tree-optimization/59594
33756         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
33757         a copy of the datarefs vector rather than the vector itself.
33758
33759 2014-01-28  Jason Merrill  <jason@redhat.com>
33760
33761         PR c++/53756
33762         * dwarf2out.c (auto_die): New static.
33763         (gen_type_die_with_usage): Handle C++1y 'auto'.
33764         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
33765         on definition.
33766
33767 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
33768
33769         PR target/59672
33770         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
33771         (SPEC_X32): Likewise.
33772         (SPEC_64): Likewise.
33773         * config/i386/i386.c (ix86_option_override_internal): Turn off
33774         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
33775         for TARGET_16BIT.
33776         (x86_file_start): Output .code16gcc for TARGET_16BIT.
33777         * config/i386/i386.h (TARGET_16BIT): New macro.
33778         (TARGET_16BIT_P): Likewise.
33779         * config/i386/i386.opt: Add m16.
33780         * doc/invoke.texi: Document -m16.
33781
33782 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
33783
33784         PR preprocessor/59935
33785         * input.c (location_get_source_line): Bail out on when line number
33786         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
33787
33788 2014-01-28  Richard Biener  <rguenther@suse.de>
33789
33790         PR tree-optimization/58742
33791         * tree-ssa-forwprop.c (associate_plusminus): Handle
33792         pointer subtraction of the form (T)(P + A) - (T)P.
33793
33794 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33795
33796         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
33797         at const_int_cost.
33798
33799 2014-01-28  Richard Biener  <rguenther@suse.de>
33800
33801         Revert
33802         2014-01-28  Richard Biener  <rguenther@suse.de>
33803
33804         PR rtl-optimization/45364
33805         PR rtl-optimization/59890
33806         * var-tracking.c (local_get_addr_clear_given_value): Handle
33807         already cleared slot.
33808         (val_reset): Handle not allocated local_get_addr_cache.
33809         (vt_find_locations): Use post-order on the inverted CFG.
33810
33811 2014-01-28  Richard Biener  <rguenther@suse.de>
33812
33813         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
33814
33815 2014-01-28  Richard Biener  <rguenther@suse.de>
33816
33817         PR rtl-optimization/45364
33818         PR rtl-optimization/59890
33819         * var-tracking.c (local_get_addr_clear_given_value): Handle
33820         already cleared slot.
33821         (val_reset): Handle not allocated local_get_addr_cache.
33822         (vt_find_locations): Use post-order on the inverted CFG.
33823
33824 2014-01-28  Alan Modra  <amodra@gmail.com>
33825
33826         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
33827         * configure.ac <recursive call for build != host>: Define
33828         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
33829         and LD_FOR_BUILD too.
33830         * configure: Regenerate.
33831
33832 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
33833
33834         * config/i386/i386.c (get_builtin_code_for_version): Separate
33835         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
33836         Broadwell from Haswell.
33837
33838 2014-01-27  Steve Ellcey  <sellcey@mips.com>
33839
33840         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33841         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
33842         * config/mips/mips.c (mips_option_override): Change setting
33843         of TARGET_DSP.
33844         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
33845         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
33846         Change from Mask to Var.
33847
33848 2014-01-27  Jeff Law  <law@redhat.com>
33849
33850         * ipa-inline.c (inline_small_functions): Fix typo.
33851
33852 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
33853
33854         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
33855         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
33856         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
33857         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
33858         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
33859         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
33860         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
33861         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
33862         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
33863         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
33864         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
33865         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
33866         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
33867         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
33868         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
33869         (_mm512_storeu_epi64): Ditto.
33870         (_mm512_cmpge_epi32_mask): Ditto.
33871         (_mm512_cmpge_epu32_mask): Ditto.
33872         (_mm512_cmpge_epi64_mask): Ditto.
33873         (_mm512_cmpge_epu64_mask): Ditto.
33874         (_mm512_cmple_epi32_mask): Ditto.
33875         (_mm512_cmple_epu32_mask): Ditto.
33876         (_mm512_cmple_epi64_mask): Ditto.
33877         (_mm512_cmple_epu64_mask): Ditto.
33878         (_mm512_cmplt_epi32_mask): Ditto.
33879         (_mm512_cmplt_epu32_mask): Ditto.
33880         (_mm512_cmplt_epi64_mask): Ditto.
33881         (_mm512_cmplt_epu64_mask): Ditto.
33882         (_mm512_cmpneq_epi32_mask): Ditto.
33883         (_mm512_cmpneq_epu32_mask): Ditto.
33884         (_mm512_cmpneq_epi64_mask): Ditto.
33885         (_mm512_cmpneq_epu64_mask): Ditto.
33886         (_mm512_expand_pd): Ditto.
33887         (_mm512_expand_ps): Ditto.
33888         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
33889         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
33890         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
33891         * config/i386/i386.c (ix86_builtins): Add
33892         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
33893         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
33894         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
33895         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
33896         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
33897         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
33898         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
33899         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
33900         IX86_BUILTIN_PMOVUSQW512_MEM.
33901         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
33902         __builtin_ia32_pmovsqd512mem_mask,
33903         __builtin_ia32_pmovqd512mem_mask,
33904         __builtin_ia32_pmovusqw512mem_mask,
33905         __builtin_ia32_pmovsqw512mem_mask,
33906         __builtin_ia32_pmovqw512mem_mask,
33907         __builtin_ia32_pmovusdw512mem_mask,
33908         __builtin_ia32_pmovsdw512mem_mask,
33909         __builtin_ia32_pmovdw512mem_mask,
33910         __builtin_ia32_pmovqb512mem_mask,
33911         __builtin_ia32_pmovusqb512mem_mask,
33912         __builtin_ia32_pmovsqb512mem_mask,
33913         __builtin_ia32_pmovusdb512mem_mask,
33914         __builtin_ia32_pmovsdb512mem_mask,
33915         __builtin_ia32_pmovdb512mem_mask.
33916         (bdesc_args): Add __builtin_ia32_expanddf512,
33917         __builtin_ia32_expandsf512.
33918         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
33919         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
33920         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
33921         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
33922         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
33923         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
33924         (avx512f_<code>v8div16qi2_mask_store): This.
33925         (avx512f_expand<mode>): New.
33926
33927 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
33928
33929         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
33930         New.
33931         (_mm512_mask_prefetch_i64gather_pd): Ditto.
33932         (_mm512_prefetch_i32scatter_pd): Ditto.
33933         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
33934         (_mm512_prefetch_i64scatter_pd): Ditto.
33935         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
33936         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
33937         (_mm512_mask_prefetch_i64gather_ps): Ditto.
33938         (_mm512_prefetch_i32scatter_ps): Ditto.
33939         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
33940         (_mm512_prefetch_i64scatter_ps): Ditto.
33941         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
33942         * config/i386/i386-builtin-types.def: Define
33943         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
33944         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
33945         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
33946         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
33947         IX86_BUILTIN_SCATTERPFQPD.
33948         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
33949         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
33950         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
33951         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
33952         __builtin_ia32_scatterpfqps.
33953         (ix86_expand_builtin): Expand new built-ins.
33954         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
33955         fix memory access data type.
33956         (*avx512pf_gatherpf<mode>_mask): Ditto.
33957         (*avx512pf_gatherpf<mode>): Ditto.
33958         (avx512pf_scatterpf<mode>): Ditto.
33959         (*avx512pf_scatterpf<mode>_mask): Ditto.
33960         (*avx512pf_scatterpf<mode>): Ditto.
33961         (GATHER_SCATTER_SF_MEM_MODE): New.
33962         (avx512pf_gatherpf<mode>df): Ditto.
33963         (*avx512pf_gatherpf<mode>df_mask): Ditto.
33964         (*avx512pf_scatterpf<mode>df): Ditto.
33965
33966 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
33967
33968         PR bootstrap/59934
33969         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
33970         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
33971         reached.
33972
33973 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
33974
33975         * common/config/arm/arm-common.c
33976         (arm_rewrite_mcpu): Handle multiple names.
33977         * config/arm/arm.h
33978         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33979
33980 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
33981
33982         * gimple-builder.h (create_gimple_tmp): Delete.
33983
33984 2014-01-27  Christian Bruel  <christian.bruel@st.com>
33985
33986         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
33987         words comparisons.
33988
33989 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
33990
33991         * config/pa/pa.md (call): Generate indirect long calls to non-local
33992         functions when outputing 32-bit code.
33993         (call_value): Likewise except for special call to buggy powf function.
33994
33995         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
33996         portable runtime and PIC indirect calls.
33997         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
33998         and PIC call sequences.  Use ldo instead of blr to set return register
33999         in PIC call sequence.
34000
34001 2014-01-25  Walter Lee  <walt@tilera.com>
34002
34003         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34004         avoid clobbering a live register.
34005
34006 2014-01-25  Walter Lee  <walt@tilera.com>
34007
34008         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34009         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34010         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34011         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34012
34013 2014-01-25  Walter Lee  <walt@tilera.com>
34014
34015         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34016         arguments on even registers.
34017         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34018         STACK_BOUNDARY.
34019         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34020         (BIGGEST_ALIGNMENT): Ditto.
34021         (BIGGEST_FIELD_ALIGNMENT): Ditto.
34022
34023 2014-01-25  Walter Lee  <walt@tilera.com>
34024
34025         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34026         insns before bundling.
34027         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34028
34029 2014-01-25  Walter Lee  <walt@tilera.com>
34030
34031         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34032         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34033         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34034
34035 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34036
34037         * config/mips/constraints.md (kl): Delete.
34038         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34039         define expands, using...
34040         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34041         instructions for MIPS16.
34042         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34043         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34044
34045 2014-01-25  Walter Lee  <walt@tilera.com>
34046
34047         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34048         (clzdi2): Ditto.
34049         (ffsdi2): Ditto.
34050
34051 2014-01-25  Walter Lee  <walt@tilera.com>
34052
34053         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34054         (TARGET_EXPAND_TO_RTL_HOOK): Define.
34055
34056 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34057
34058         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34059         Handle XOR.
34060
34061 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
34062
34063         * print-rtl.c (in_call_function_usage): New var.
34064         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34065         EXPR_LIST mode as mode and not as reg note name.
34066
34067         PR middle-end/59561
34068         * cfgloopmanip.c (copy_loop_info): If
34069         loop->warned_aggressive_loop_optimizations, make sure
34070         the flag is set in target loop too.
34071
34072 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
34073
34074         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34075         flag_cilkplus.
34076         * builtins.def: Likewise.
34077         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34078         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34079         * ira.c (ira_setup_eliminable_regset): Likewise.
34080         * omp-low.c (gate_expand_omp): Likewise.
34081         (execute_lower_omp): Likewise.
34082         (diagnose_sb_0): Likewise.
34083         (gate_diagnose_omp_blocks): Likewise.
34084         (simd_clone_clauses_extract): Likewise.
34085         (gate): Likewise.
34086
34087 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34088
34089         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34090         correction for little endian...
34091         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34092         here.
34093
34094 2014-01-24  Jeff Law  <law@redhat.com>
34095
34096         PR tree-optimization/59919
34097         * tree-vrp.c (find_assert_locations_1): Do not register asserts
34098         for non-returning calls.
34099
34100 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
34101
34102         * common/config/aarch64/aarch64-common.c
34103         (aarch64_rewrite_mcpu): Handle multiple names.
34104         * config/aarch64/aarch64.h
34105         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34106
34107 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
34108
34109         * input.c (add_file_to_cache_tab): Handle the case where fopen
34110         returns NULL.
34111
34112 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34113
34114         PR target/59929
34115         * config/i386/i386.md (pushsf splitter): Get stack adjustment
34116         from push operand if code of push isn't PRE_DEC.
34117
34118 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
34119
34120         PR target/59909
34121         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34122         -mquad-memory-atomic.  Update -mquad-memory documentation to say
34123         it is only used for non-atomic loads/stores.
34124
34125         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34126         -mquad-memory or -mquad-memory-atomic switches.
34127
34128         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34129         -mquad-memory-atomic to ISA 2.07 support.
34130
34131         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34132         to separate support of normal quad word memory operations (ldq, stq)
34133         from the atomic quad word memory operations.
34134
34135         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34136         support to separate non-atomic quad word operations from atomic
34137         quad word operations.  Disable non-atomic quad word operations in
34138         little endian mode so that we don't have to swap words after the
34139         load and before the store.
34140         (quad_load_store_p): Add comment about atomic quad word support.
34141         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34142         options printed with -mdebug=reg.
34143
34144         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34145         -mquad-memory-atomic as the test for whether we have quad word
34146         atomic instructions.
34147         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34148         or -mp8-vector are used, allow byte/half-word atomic operations.
34149
34150         * config/rs6000/sync.md (load_lockedti): Insure that the address
34151         is a proper indexed or indirect address for the lqarx instruction.
34152         On little endian systems, swap the hi/lo registers after the lqarx
34153         instruction.
34154         (load_lockedpti): Use indexed_or_indirect_operand predicate to
34155         insure the address is valid for the lqarx instruction.
34156         (store_conditionalti): Insure that the address is a proper indexed
34157         or indirect address for the stqcrx. instruction.  On little endian
34158         systems, swap the hi/lo registers before doing the stqcrx.
34159         instruction.
34160         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34161         insure the address is valid for the stqcrx. instruction.
34162
34163         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34164         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34165         type of quad memory support is available.
34166
34167 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
34168
34169         PR regression/59915
34170         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34171         there is a danger of looping.
34172
34173 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
34174
34175         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34176         force flag_ira_loop_pressure if set via command line.
34177
34178 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34179
34180         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34181         (ashr_simd): New builtin handling DI mode.
34182         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34183         (aarch64_sshr_simddi): New match pattern.
34184         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34185         (vshrd_n_s64): Likewise.
34186         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34187
34188 2014-01-23  Nick Clifton  <nickc@redhat.com>
34189
34190         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34191         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34192         favour of mcu specific scripts.
34193         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34194         430x multilibs.
34195
34196 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
34197             Alex Velenko  <Alex.Velenko@arm.com>
34198
34199         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34200         (vaddv_s16): Likewise.
34201         (vaddv_s32): Likewise.
34202         (vaddv_u8): Likewise.
34203         (vaddv_u16): Likewise.
34204         (vaddv_u32): Likewise.
34205         (vaddvq_s8): Likewise.
34206         (vaddvq_s16): Likewise.
34207         (vaddvq_s32): Likewise.
34208         (vaddvq_s64): Likewise.
34209         (vaddvq_u8): Likewise.
34210         (vaddvq_u16): Likewise.
34211         (vaddvq_u32): Likewise.
34212         (vaddvq_u64): Likewise.
34213         (vaddv_f32): Likewise.
34214         (vaddvq_f32): Likewise.
34215         (vaddvq_f64): Likewise.
34216         (vmaxv_f32): Likewise.
34217         (vmaxv_s8): Likewise.
34218         (vmaxv_s16): Likewise.
34219         (vmaxv_s32): Likewise.
34220         (vmaxv_u8): Likewise.
34221         (vmaxv_u16): Likewise.
34222         (vmaxv_u32): Likewise.
34223         (vmaxvq_f32): Likewise.
34224         (vmaxvq_f64): Likewise.
34225         (vmaxvq_s8): Likewise.
34226         (vmaxvq_s16): Likewise.
34227         (vmaxvq_s32): Likewise.
34228         (vmaxvq_u8): Likewise.
34229         (vmaxvq_u16): Likewise.
34230         (vmaxvq_u32): Likewise.
34231         (vmaxnmv_f32): Likewise.
34232         (vmaxnmvq_f32): Likewise.
34233         (vmaxnmvq_f64): Likewise.
34234         (vminv_f32): Likewise.
34235         (vminv_s8): Likewise.
34236         (vminv_s16): Likewise.
34237         (vminv_s32): Likewise.
34238         (vminv_u8): Likewise.
34239         (vminv_u16): Likewise.
34240         (vminv_u32): Likewise.
34241         (vminvq_f32): Likewise.
34242         (vminvq_f64): Likewise.
34243         (vminvq_s8): Likewise.
34244         (vminvq_s16): Likewise.
34245         (vminvq_s32): Likewise.
34246         (vminvq_u8): Likewise.
34247         (vminvq_u16): Likewise.
34248         (vminvq_u32): Likewise.
34249         (vminnmv_f32): Likewise.
34250         (vminnmvq_f32): Likewise.
34251         (vminnmvq_f64): Likewise.
34252
34253 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
34254
34255         * config/aarch64/aarch64-simd.md
34256         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34257         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34258         (*aarch64_mul3_elt<mode>): Likewise.
34259         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34260         (*aarch64_mul3_elt_to_64v2df): Likewise.
34261         (*aarch64_mla_elt<mode>): Likewise.
34262         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34263         (*aarch64_mls_elt<mode>): Likewise.
34264         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34265         (*aarch64_fma4_elt<mode>): Likewise.
34266         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34267         (*aarch64_fma4_elt_to_64v2df): Likewise.
34268         (*aarch64_fnma4_elt<mode>): Likewise.
34269         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34270         (*aarch64_fnma4_elt_to_64v2df): Likewise.
34271         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34272         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34273         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34274         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34275         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34276         (aarch64_sqdmull_lane<mode>_internal): Likewise.
34277         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34278
34279 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34280
34281         * config/aarch64/aarch64-simd.md
34282         (aarch64_be_checked_get_lane<mode>): New define_expand.
34283         * config/aarch64/aarch64-simd-builtins.def
34284         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34285         New builtin definition.
34286         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34287         Use new safe be builtin.
34288
34289 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34290
34291         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34292         New define_insn.
34293         (aarch64_be_st1<mode>): Likewise.
34294         (aarch_ld1<VALL:mode>): Define_expand modified.
34295         (aarch_st1<VALL:mode>): Likewise.
34296         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34297         (UNSPEC_ST1): Likewise.
34298
34299 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
34300
34301         * config/microblaze/microblaze.md: Add trap insn and attribute
34302
34303 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
34304
34305         PR preprocessor/58580
34306         * input.h (location_get_source_line): Take an additional line_size
34307         parameter.
34308         (void diagnostics_file_cache_fini): Declare new function.
34309         * input.c (struct fcache): New type.
34310         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34311         New static constants.
34312         (diagnostic_file_cache_init, total_lines_num)
34313         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34314         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34315         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34316         (get_next_line, read_next_line, goto_next_line, read_line_num):
34317         New static function definitions.
34318         (diagnostic_file_cache_fini): New function.
34319         (location_get_source_line): Take an additional output line_len
34320         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
34321         read_line_num.
34322         * diagnostic.c (diagnostic_finish): Call
34323         diagnostic_file_cache_fini.
34324         (adjust_line): Take an additional input parameter for the length
34325         of the line, rather than calculating it with strlen.
34326         (diagnostic_show_locus): Adjust the use of
34327         location_get_source_line and adjust_line with respect to their new
34328         signature.  While displaying a line now, do not stop at the first
34329         null byte.  Rather, display the zero byte as a space and keep
34330         going until we reach the size of the line.
34331         * Makefile.in: Add vec.o to OBJS-libcommon
34332
34333 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
34334             Ilya Tocar  <ilya.tocar@intel.com>
34335
34336         * config/i386/avx512fintrin.h (_mm512_kmov): New.
34337         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34338         (__builtin_ia32_kmov16): Ditto.
34339         * config/i386/i386.md (UNSPEC_KMOV): New.
34340         (kmovw): Ditto.
34341
34342 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
34343
34344         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34345         (_mm512_storeu_si512): Ditto.
34346
34347 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
34348
34349         PR target/52125
34350         * rtl.h (get_referenced_operands): Declare.
34351         * recog.c (get_referenced_operands): New function.
34352         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
34353         operands have been referenced when recording LO_SUM references.
34354
34355 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
34356
34357         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
34358
34359 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
34360
34361         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
34362         Enable for generic and recent AMD targets.
34363
34364 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
34365
34366         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
34367         ARG_SIZE note when adjustment was eliminated.
34368
34369 2014-01-22  Jeff Law  <law@redhat.com>
34370
34371         PR tree-optimization/59597
34372         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
34373         in file.  Accept new argument REGISTERING and use it to modify
34374         dump output appropriately.
34375         (register_jump_thread): Corresponding changes.
34376         (mark_threaded_blocks): Reinstate code to cancel unprofitable
34377         thread paths involving joiner blocks.  Add code to dump cancelled
34378         jump threading paths.
34379
34380 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
34381
34382         PR rtl-optimization/59477
34383         * lra-constraints.c (inherit_in_ebb): Process call for living hard
34384         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
34385
34386 2014-01-22  Tom Tromey  <tromey@redhat.com>
34387
34388         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
34389         PARAMS.
34390         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
34391
34392 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
34393
34394         PR rtl-optimization/59896
34395         * lra-constraints.c (process_alt_operands): Check unused note for
34396         matched operands of insn with no output reloads.
34397
34398 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
34399
34400         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
34401         (mips_move_from_gpr_cost): Likewise.
34402
34403 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
34404
34405         PR rtl-optimization/59858
34406         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
34407         ira_class_hard_regs_num.
34408         (process_alt_operands): Increase reject for dying matched operand.
34409
34410 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
34411
34412         PR target/59003
34413         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
34414         smaller than size, perform several stores or loads and stores
34415         at dst + count - size to store or copy all of size bytes, rather
34416         than just last modesize bytes.
34417
34418 2014-01-20  DJ Delorie  <dj@redhat.com>
34419
34420         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
34421         that CLOBBERs are REGs before propogating their values.
34422
34423 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
34424
34425         PR middle-end/59789
34426         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
34427         (cgraph_inline_failed_type): New function.
34428         * cgraph.h (DEFCIFCODE): Add type.
34429         (cgraph_inline_failed_type_t): New enum.
34430         (cgraph_inline_failed_type): New prototype.
34431         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
34432         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34433         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
34434         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
34435         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
34436         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
34437         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
34438         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
34439         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
34440         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
34441         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
34442         OPTIMIZATION_MISMATCH.
34443         * tree-inline.c (expand_call_inline): Emit errors during
34444         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
34445
34446 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
34447
34448         PR target/59685
34449         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
34450         mode attribute in insn output.
34451
34452 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
34453
34454         * output.h (output_constant): Delete.
34455         * varasm.c (output_constant): Make private.
34456
34457 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
34458
34459         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
34460
34461 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
34462
34463         PR middle-end/59860
34464         * tree.h (fold_builtin_strcat): New prototype.
34465         * builtins.c (fold_builtin_strcat): No longer static.  Add len
34466         argument, if non-NULL, don't call c_strlen.  Optimize
34467         directly into __builtin_memcpy instead of __builtin_strcpy.
34468         (fold_builtin_2): Adjust fold_builtin_strcat caller.
34469         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
34470
34471 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
34472
34473         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34474         for SImode_address_operand operands, having only a REG argument.
34475
34476 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34477
34478         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34479         loader name using mbig-endian.
34480         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
34481
34482 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
34483
34484         * doc/invoke.texi (-march): Clarify documentation for AArch64.
34485         (-mtune): Likewise.
34486         (-mcpu): Likewise.
34487
34488 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
34489
34490         * config/aarch64/aarch64-protos.h
34491         (aarch64_cannot_change_mode_class_ptr): Declare.
34492         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
34493         aarch64_cannot_change_mode_class_ptr): New.
34494         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
34495         backend hook aarch64_cannot_change_mode_class.
34496
34497 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
34498
34499         * common/config/aarch64/aarch64-common.c
34500         (aarch64_handle_option): Don't handle any option order logic here.
34501         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
34502         selected_cpu, warn on architecture version mismatch.
34503         (aarch64_override_options): Fix parsing order for option strings.
34504
34505 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
34506             Iain Sandoe  <iain@codesourcery.com>
34507
34508         PR bootstrap/59496
34509         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
34510         warning.  Amend comment to reflect current functionality.
34511
34512 2014-01-20  Richard Biener  <rguenther@suse.de>
34513
34514         PR middle-end/59860
34515         * builtins.c (fold_builtin_strcat): Remove case better handled
34516         by tree-ssa-strlen.c.
34517
34518 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
34519
34520         * config/aarch64/aarch64.opt
34521         (mcpu, march, mtune): Make case-insensitive.
34522
34523 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
34524
34525         PR target/59880
34526         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34527         if operands[1] is a REG or ZERO_EXTEND of a REG.
34528
34529 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
34530
34531         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
34532
34533 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
34534
34535         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
34536         long non-pic millicode calls.
34537
34538 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
34539
34540         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
34541
34542 2014-01-19  Kito Cheng  <kito@0xlab.org>
34543
34544         * builtins.c (expand_movstr): Check movstr expand done or fail.
34545
34546 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
34547             H.J. Lu  <hongjiu.lu@intel.com>
34548
34549         PR target/59379
34550         * config/i386/i386.md (*lea<mode>): Zero-extend return register
34551         to DImode for zero-extended addresses.
34552
34553 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
34554
34555         PR rtl-optimization/57763
34556         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
34557         on the new indirect jump_insn and increment LABEL_NUSES (label).
34558
34559 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
34560
34561         PR bootstrap/59580
34562         PR bootstrap/59583
34563         * config.gcc (x86_archs): New variable.
34564         (x86_64_archs): Likewise.
34565         (x86_cpus): Likewise.
34566         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
34567         --with-arch/--with-cpu= options.
34568         Support --with-arch=/--with-cpu={nehalem,westmere,
34569         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
34570
34571 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
34572
34573         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
34574         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
34575
34576 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
34577
34578         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
34579
34580 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
34581
34582         PR target/58944
34583         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
34584         clear cpp_get_options (parse_in)->warn_unused_macros for
34585         ix86_target_macros_internal with cpp_define.
34586
34587 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
34588
34589         * jump.c (delete_related_insns): Keep (use (insn))s.
34590         * reorg.c (redundant_insn): Check for barriers too.
34591
34592 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34593
34594         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
34595
34596 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
34597
34598         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
34599         call to $$dyncall when TARGET_LONG_CALLS is true.
34600
34601 2014-01-17  Jeff Law  <law@redhat.com>
34602
34603         * ree.c (combine_set_extension): Temporarily disable test for
34604         changing number of hard registers.
34605
34606 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
34607
34608         PR middle-end/58125
34609         * ipa-inline-analysis.c (inline_free_summary):
34610         Do not free summary of aliases.
34611
34612 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
34613
34614         PR middle-end/59706
34615         * gimplify.c (gimplify_expr): Use create_tmp_var
34616         instead of create_tmp_var_raw.  If cond doesn't have
34617         integral type, don't add the IFN_ANNOTATE builtin at all.
34618
34619 2014-01-17  Martin Jambor  <mjambor@suse.cz>
34620
34621         PR ipa/59736
34622         * ipa-cp.c (prev_edge_clone): New variable.
34623         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34624         Also resize prev_edge_clone vector.
34625         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34626         (ipcp_edge_removal_hook): New function.
34627         (ipcp_driver): Register ipcp_edge_removal_hook.
34628
34629 2014-01-17  Andrew Pinski  <apinski@cavium.com>
34630             Steve Ellcey  <sellcey@mips.com>
34631
34632         PR target/59462
34633         * config/mips/mips.c (mips_print_operand): Check operand mode instead
34634         of operator mode.
34635
34636 2014-01-17  Jeff Law  <law@redhat.com>
34637
34638         PR middle-end/57904
34639         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34640         so that pass_ccp runs first.
34641
34642 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34643
34644         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34645         (ix86_adjust_cost): Use !TARGET_XXX.
34646         (do_reorder_for_imul): Likewise.
34647         (swap_top_of_ready_list): Likewise.
34648         (ix86_sched_reorder): Likewise.
34649
34650 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
34651
34652         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34653         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
34654         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
34655         (intel_memset): New.  Duplicate slm_memset.
34656         (intel_cost): New.  Duplicate slm_cost.
34657         (m_INTEL): New macro.
34658         (processor_target_table): Add "intel".
34659         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34660         with PROCESSOR_INTEL for "intel".
34661         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
34662         PROCESSOR_SILVERMONT.
34663         (ix86_issue_rate): Likewise.
34664         (ix86_adjust_cost): Likewise.
34665         (ia32_multipass_dfa_lookahead): Likewise.
34666         (swap_top_of_ready_list): Likewise.
34667         (ix86_sched_reorder): Likewise.
34668         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34669         instead of TARGET_OPT_AGU.
34670         * config/i386/i386.h (TARGET_INTEL): New.
34671         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34672         (processor_type): Add PROCESSOR_INTEL.
34673         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34674         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34675
34676 2014-01-17  Marek Polacek  <polacek@redhat.com>
34677
34678         PR c/58346
34679         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34680         size is zero.
34681
34682 2014-01-17  Richard Biener  <rguenther@suse.de>
34683
34684         PR tree-optimization/46590
34685         * opts.c (default_options_table): Add entries for
34686         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34687         all enabled at -O1 but not for -Og.
34688         * common.opt (fbranch-count-reg): Remove Init(1).
34689         (fmove-loop-invariants): Likewise.
34690         (ftree-pta): Likewise.
34691
34692 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
34693
34694         * config/i386/i386.c (ix86_data_alignment): For compatibility with
34695         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34696         decls to at least the GCC 4.8 used alignments.
34697
34698         PR fortran/59440
34699         * tree-nested.c (convert_nonlocal_reference_stmt,
34700         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
34701         of GIMPLE_BIND stmts, adjust associated decls.
34702
34703 2014-01-17  Richard Biener  <rguenther@suse.de>
34704
34705         PR tree-optimization/46590
34706         * vec.h (vec<>::bseach): New member function implementing
34707         binary search according to C89 bsearch.
34708         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
34709         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
34710         bitmap pointer again.  Make accesses_in_loop a flat array.
34711         (mem_ref_obstack): New global.
34712         (outermost_indep_loop): Adjust for mem_ref->stored changes.
34713         (mark_ref_stored): Likewise.
34714         (ref_indep_loop_p_2): Likewise.
34715         (set_ref_stored_in_loop): New helper function.
34716         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34717         (memref_free): Adjust.
34718         (record_mem_ref_loc): Simplify.
34719         (gather_mem_refs_stmt): Adjust.
34720         (sort_locs_in_loop_postorder_cmp): New function.
34721         (analyze_memory_references): Sort accesses_in_loop after
34722         loop postorder number.
34723         (find_ref_loc_in_loop_cmp): New function.
34724         (for_all_locs_in_loop): Find relevant cluster of locs in
34725         accesses_in_loop and iterate without recursion.
34726         (execute_sm): Avoid uninit warning.
34727         (struct ref_always_accessed): Simplify.
34728         (ref_always_accessed::operator ()): Likewise.
34729         (ref_always_accessed_p): Likewise.
34730         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34731         loop postorder numbers here.
34732         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34733         numbers.
34734
34735 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
34736
34737         PR c++/57945
34738         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34739         on decls for which assemble_alias has been called.
34740
34741 2014-01-17  Nick Clifton  <nickc@redhat.com>
34742
34743         * config/msp430/msp430.opt: (mcpu): New option.
34744         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
34745         (msp430_option_override): Parse target_cpu.  If the MCU name
34746         matches a generic string, clear target_mcu.
34747         (msp430_attr): Allow numeric interrupt values up to 63.
34748         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
34749         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
34750         option.
34751         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
34752         Add mcpu matches.
34753         * config/msp430/msp430.md (popm): Use %J rather than %I.
34754         (addsi3): Use msp430_nonimmediate_operand for operand 2.
34755         (addhi_cy_i): Use immediate_operand for operand 2.
34756         * doc/invoke.texi: Document -mcpu option.
34757
34758 2014-01-17  Richard Biener  <rguenther@suse.de>
34759
34760         PR rtl-optimization/38518
34761         * df.h (df_analyze_loop): Declare.
34762         * df-core.c: Include cfgloop.h.
34763         (df_analyze_1): Split out main part of df_analyze.
34764         (df_analyze): Adjust.
34765         (loop_inverted_post_order_compute): New function.
34766         (loop_post_order_compute): Likewise.
34767         (df_analyze_loop): New function avoiding whole-function
34768         postorder computes.
34769         * loop-invariant.c (find_defs): Use df_analyze_loop.
34770         (find_invariants): Adjust.
34771         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
34772
34773 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
34774
34775         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
34776         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
34777
34778 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
34779
34780         * ipa-ref.c (ipa_remove_stmt_references): Fix references
34781         traversal when removing references.
34782
34783 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
34784
34785         PR ipa/59775
34786         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
34787
34788 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
34789
34790         PR middle-end/56791
34791         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
34792         pushing a reload for an autoinc when we had previously reloaded an
34793         inner part of the address.
34794
34795 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
34796
34797         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
34798         field.
34799         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
34800         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
34801         when not giving up or versioning for alias only because of
34802         loop->safelen.
34803         (vect_analyze_data_ref_dependences): Set to true.
34804         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
34805         is a GIMPLE_PHI.
34806         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
34807         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
34808         to the condition.
34809
34810         PR middle-end/58344
34811         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
34812
34813         PR target/59839
34814         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
34815         operand 0 predicate for gathers, use a new pseudo as subtarget.
34816
34817 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
34818
34819         PR middle-end/59609
34820         * lra-constraints.c (process_alt_operands): Add printing debug info.
34821         Check absence of input/output reloads for matched operands too.
34822
34823 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
34824
34825         PR rtl-optimization/59835
34826         * ira.c (ira_init_register_move_cost): Increase cost for
34827         impossible modes.
34828
34829 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
34830
34831         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
34832
34833 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
34834
34835         PR target/59780
34836         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
34837         non-register objects.  Use gen_(high/low)part more consistently.
34838         Fix assertions.
34839
34840 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
34841
34842         PR target/59844
34843         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
34844         endian support, remove tests for WORDS_BIG_ENDIAN.
34845         (p8_mfvsrd_3_<mode>): Likewise.
34846         (reload_gpr_from_vsx<mode>): Likewise.
34847         (reload_gpr_from_vsxsf): Likewise.
34848         (p8_mfvsrd_4_disf): Likewise.
34849
34850 2014-01-16  Richard Biener  <rguenther@suse.de>
34851
34852         PR rtl-optimization/46590
34853         * lcm.c (compute_antinout_edge): Use postorder iteration.
34854         (compute_laterin): Use inverted postorder iteration.
34855
34856 2014-01-16  Nick Clifton  <nickc@redhat.com>
34857
34858         PR middle-end/28865
34859         * varasm.c (output_constant): Return the number of bytes actually
34860         emitted.
34861         (output_constructor_array_range): Update the field size with the
34862         number of bytes emitted by output_constant.
34863         (output_constructor_regular_field): Likewise.  Also do not
34864         complain if the total number of bytes emitted is now greater
34865         than the expected fieldpos.
34866         * output.h (output_constant): Update prototype and descriptive comment.
34867
34868 2014-01-16  Marek Polacek  <polacek@redhat.com>
34869
34870         PR middle-end/59827
34871         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
34872         it is error_mark_node.
34873
34874 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
34875
34876         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
34877         VALID_AVX256_REG_OR_OI_MODE.
34878
34879 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
34880
34881         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
34882         current procedure should be profiled.
34883
34884 2014-01-15  Andrew Pinski  <apinski@cavium.com>
34885
34886         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
34887         of moving from/to the STACK_REG register class.
34888
34889 2014-01-15  Richard Henderson  <rth@redhat.com>
34890
34891         PR debug/54694
34892         * reginfo.c (global_regs_decl): Globalize.
34893         * rtl.h (global_regs_decl): Declare.
34894         * ira.c (do_reload): Diagnose frame_pointer_needed and it
34895         reserved via global_regs.
34896
34897 2014-01-15  Teresa Johnson  <tejohnson@google.com>
34898
34899         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
34900
34901 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
34902
34903         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
34904         and vmulosh rather than call gen_vec_widen_smult_*.
34905         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
34906         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
34907         (vec_widen_smult_even_v16qi): Likewise.
34908         (vec_widen_umult_even_v8hi): Likewise.
34909         (vec_widen_smult_even_v8hi): Likewise.
34910         (vec_widen_umult_odd_v16qi): Likewise.
34911         (vec_widen_smult_odd_v16qi): Likewise.
34912         (vec_widen_umult_odd_v8hi): Likewise.
34913         (vec_widen_smult_odd_v8hi): Likewise.
34914         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
34915         vmuloub rather than call gen_vec_widen_umult_*.
34916         (vec_widen_umult_lo_v16qi): Likewise.
34917         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
34918         vmulosb rather than call gen_vec_widen_smult_*.
34919         (vec_widen_smult_lo_v16qi): Likewise.
34920         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
34921         rather than call gen_vec_widen_umult_*.
34922         (vec_widen_umult_lo_v8hi): Likewise.
34923         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
34924         rather than call gen_vec_widen_smult_*.
34925         (vec_widen_smult_lo_v8hi): Likewise.
34926
34927 2014-01-15  Jeff Law  <law@redhat.com>
34928
34929         PR tree-optimization/59747
34930         * ree.c (find_and_remove_re): Properly handle case where a second
34931         eliminated extension requires widening a copy created for elimination
34932         of a prior extension.
34933         (combine_set_extension): Ensure that the number of hard regs needed
34934         for a destination register does not change when we widen it.
34935
34936 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
34937
34938         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
34939         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
34940         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
34941         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
34942         (avr-*-rtems*): Likewise.
34943         (bfin*-rtems*): Likewise.
34944         (moxie-*-rtems*): Likewise.
34945         (h8300-*-rtems*): Likewise.
34946         (i[34567]86-*-rtems*): Likewise.
34947         (lm32-*-rtems*): Likewise.
34948         (m32r-*-rtems*): Likewise.
34949         (m68k-*-rtems*): Likewise.
34950         (microblaze*-*-rtems*): Likewise.
34951         (mips*-*-rtems*): Likewise.
34952         (powerpc-*-rtems*): Likewise.
34953         (sh-*-rtems*): Likewise.
34954         (sparc-*-rtems*): Likewise.
34955         (sparc64-*-rtems*): Likewise.
34956         (v850-*-rtems*): Likewise.
34957         (m32c-*-rtems*): Likewise.
34958
34959 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
34960
34961         PR rtl-optimization/59511
34962         * ira.c (ira_init_register_move_cost): Use memory costs for some
34963         cases of register move cost calculations.
34964         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
34965         instead of BB frequency.
34966         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
34967         * lra-assigns.c (find_hard_regno_for): Ditto.
34968
34969 2014-01-15  Richard Biener  <rguenther@suse.de>
34970
34971         PR tree-optimization/59822
34972         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
34973         (vectorizable_load): Use it to hoist defs of uses of invariant
34974         loads out of the loop.
34975
34976 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
34977             Kugan Vivekanandarajah  <kuganv@linaro.org>
34978
34979         PR target/59695
34980         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
34981         truncation.
34982
34983 2014-01-15  Richard Biener  <rguenther@suse.de>
34984
34985         PR rtl-optimization/59802
34986         * lcm.c (compute_available): Use inverted postorder to seed
34987         the initial worklist.
34988
34989 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34990
34991         PR target/59803
34992         * config/s390/s390.c (s390_preferred_reload_class): Don't return
34993         ADDR_REGS for invalid symrefs in non-PIC code.
34994
34995 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
34996
34997         PR other/58712
34998         * builtins.c (determine_block_size): Initialize *probable_max_size
34999         even if len_rtx is CONST_INT.
35000
35001 2014-01-14  Andrew Pinski  <apinski@cavium.com>
35002
35003         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35004         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35005         (cortexa53_tunings): Likewise.
35006         (aarch64_sched_issue_rate): New function.
35007         (TARGET_SCHED_ISSUE_RATE): Define.
35008
35009 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35010
35011         * ira-costs.c (find_costs_and_classes): Add missed
35012         ira_init_register_move_cost_if_necessary.
35013
35014 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35015
35016         PR target/59787
35017         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35018
35019 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
35020
35021         PR target/59794
35022         * config/i386/i386.c (type_natural_mode): Add a bool parameter
35023         to indicate if type is used for function return value.  Warn ABI
35024         change if the vector mode isn't available for function return value.
35025         (ix86_function_arg_advance): Pass false to type_natural_mode.
35026         (ix86_function_arg): Likewise.
35027         (ix86_gimplify_va_arg): Likewise.
35028         (function_arg_32): Don't warn ABI change.
35029         (ix86_function_value): Pass true to type_natural_mode.
35030         (ix86_return_in_memory): Likewise.
35031         (ix86_struct_value_rtx): Removed.
35032         (TARGET_STRUCT_VALUE_RTX): Likewise.
35033
35034 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35035
35036         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35037         converting a conditional jump into a conditional return.
35038
35039 2014-01-14  Richard Biener  <rguenther@suse.de>
35040
35041         PR tree-optimization/58921
35042         PR tree-optimization/59006
35043         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35044         hoisting invariant stmts.
35045         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35046         invariant loads on the preheader edge if possible.
35047
35048 2014-01-14  Joey Ye  <joey.ye@arm.com>
35049
35050         * doc/plugin.texi (Building GCC plugins): Update to C++.
35051
35052 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
35053
35054         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35055         (_mm_rcp28_round_ss): Ditto.
35056         (_mm_rsqrt28_round_sd): Ditto.
35057         (_mm_rsqrt28_round_ss): Ditto.
35058         (_mm_rcp28_sd): Ditto.
35059         (_mm_rcp28_ss): Ditto.
35060         (_mm_rsqrt28_sd): Ditto.
35061         (_mm_rsqrt28_ss): Ditto.
35062         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35063         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35064         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35065         (IX86_BUILTIN_RCP28SD): Ditto.
35066         (IX86_BUILTIN_RCP28SS): Ditto.
35067         (IX86_BUILTIN_RSQRT28SD): Ditto.
35068         (IX86_BUILTIN_RSQRT28SS): Ditto.
35069         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35070         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35071         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35072         (ix86_expand_special_args_builtin): Expand new FTYPE.
35073         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35074         (srcp14<mode>): Make insn unary.
35075         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35076         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35077         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35078         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35079         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35080         Fix rounding: make it SAE only.
35081         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35082         Ditto.
35083         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35084         Ditto.
35085         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35086         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35087         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35088         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35089         (round_saeonly_mask_scalar_operand4): Ditto.
35090         (round_saeonly_mask_scalar_op3): Ditto.
35091         (round_saeonly_mask_scalar_op4): Ditto.
35092
35093 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35094
35095         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35096         Implement -maltivec=be for vec_insert and vec_extract.
35097
35098 2014-01-10  DJ Delorie  <dj@redhat.com>
35099
35100         * config/msp430/msp430.md (call_internal): Don't allow memory
35101         references with SP as the base register.
35102         (call_value_internal): Likewise.
35103         * config/msp430/constraints.md (Yc): New.  For memory references
35104         that don't use SP as a base register.
35105
35106         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35107         "an integer without a # prefix"
35108         * config/msp430/msp430.md (epilogue_helper): Use it.
35109
35110 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35111
35112         PR target/59617
35113         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35114         AVX512F gather builtins.
35115         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35116         on gather decls with INTEGER_TYPE masktype.
35117         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35118         directly into the builtin rather than hoisting it before loop.
35119
35120         PR tree-optimization/59387
35121         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35122         (scev_const_prop): If folded_casts and type has undefined overflow,
35123         use force_gimple_operand instead of force_gimple_operand_gsi and
35124         for each added stmt if it is assign with
35125         arith_code_with_undefined_signed_overflow, call
35126         rewrite_to_defined_overflow.
35127         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35128         gimple-fold.h instead.
35129         (arith_code_with_undefined_signed_overflow,
35130         rewrite_to_defined_overflow): Moved to ...
35131         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35132         rewrite_to_defined_overflow): ... here.  No longer static.
35133         Include gimplify-me.h.
35134         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35135         rewrite_to_defined_overflow): New prototypes.
35136
35137 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35138
35139         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35140
35141 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
35142
35143         * builtins.c (get_object_alignment_2): Minor tweak.
35144         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35145
35146 2014-01-13  Christian Bruel  <christian.bruel@st.com>
35147
35148         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35149         optimized non constant lengths.
35150
35151 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35152
35153         PR libgomp/59194
35154         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35155         load as __atomic_load_N if possible.
35156
35157 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35158
35159         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35160         target parameter.
35161         (rs6000_expand_builtin): Adjust call.
35162
35163 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35164
35165         PR target/58115
35166         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35167         * config/rs6000/rs6000.c: Include target-globals.h.
35168         (rs6000_set_current_function): Instead of doing target_reinit
35169         unconditionally, use save_target_globals_default_opts and
35170         restore_target_globals.
35171
35172         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35173         FPSCR.
35174         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35175         (rs6000_expand_builtin): Handle mffs and mtfsf.
35176         (rs6000_init_builtins): Define mffs and mtfsf.
35177         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35178         (rs6000_mffs): New pattern.
35179         (rs6000_mtfsf): New pattern.
35180
35181 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
35182
35183         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35184         Start narrowing with START.  Apply candidate-use pair
35185         and check overall cost in narrowing.
35186         (iv_ca_prune): Pass new argument.
35187
35188 2014-01-10  Jeff Law  <law@redhat.com>
35189
35190         PR middle-end/59743
35191         * ree.c (combine_reaching_defs): Ensure the defining statement
35192         occurs before the extension when optimizing extensions with
35193         different source and destination hard registers.
35194
35195 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
35196
35197         PR ipa/58585
35198         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35199         vtables into the type inheritance graph.
35200
35201 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35202
35203         PR rtl-optimization/59754
35204         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35205         modes in the REGNO != REGNO case.
35206
35207 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35208
35209         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35210
35211 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35212
35213         PR tree-optimization/59745
35214         * tree-predcom.c (tree_predictive_commoning_loop): Call
35215         free_affine_expand_cache if giving up because components is NULL.
35216
35217         * target-globals.c (save_target_globals): Allocate < 4KB structs using
35218         GC in payload of target_globals struct instead of allocating them on
35219         the heap and the larger structs separately using GC.
35220         * target-globals.h (struct target_globals): Make regs, hard_regs,
35221         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
35222         of GTY((skip)) and change type to void *.
35223         (reset_target_globals): Cast loads from those fields to corresponding
35224         types.
35225
35226 2014-01-10  Steve Ellcey  <sellcey@mips.com>
35227
35228         PR plugins/59335
35229         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
35230         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
35231         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
35232
35233 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
35234
35235         PR target/59744
35236         * aarch64-modes.def (CC_Zmode): New flags mode.
35237         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
35238         represents an equality.
35239         (aarch64_get_condition_code): Handle CC_Zmode.
35240         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
35241
35242 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35243
35244         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
35245         extraction in good case.
35246
35247 2014-01-10  Richard Biener  <rguenther@suse.de>
35248
35249         PR tree-optimization/59374
35250         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
35251         checking after SLP discovery.  Mark stmts not participating
35252         in any SLP instance properly.
35253
35254 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35255
35256         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35257         when handling a SET rtx.
35258
35259 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35260
35261         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35262         (cortex-a57): Likewise.
35263         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35264
35265 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35266
35267         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35268         non-iwmmxt builtins.
35269
35270 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
35271
35272         PR ipa/58252
35273         PR ipa/59226
35274         * ipa-devirt.c record_target_from_binfo): Take as argument
35275         stack of binfos and lookup matching one for virtual inheritance.
35276         (possible_polymorphic_call_targets_1): Update.
35277
35278 2014-01-10  Huacai Chen  <chenhc@lemote.com>
35279
35280         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35281         kernel strings for Loongson-2E/2F/3A.
35282
35283 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35284
35285         PR middle-end/59670
35286         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35287         is_gimple_call before calling gimple_call_internal_p.
35288
35289 2014-01-09  Steve Ellcey  <sellcey@mips.com>
35290
35291         * Makefile.in (TREE_FLOW_H): Remove.
35292         (TREE_SSA_H): Add file names from tree-flow.h.
35293         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35294         * tree.h: Remove tree-flow.h reference.
35295         * hash-table.h: Remove tree-flow.h reference.
35296         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35297         reference with tree-ssa-loop.h.
35298
35299 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35300
35301         * doc/invoke.texi: Add -maltivec={be,le} options, and document
35302         default element-order behavior for -maltivec.
35303         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35304         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35305         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35306         when targeting big endian, at least for now.
35307         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35308
35309 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35310
35311         PR middle-end/47735
35312         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35313         var satisfies use_register_for_decl, just take into account type
35314         alignment, rather than decl alignment.
35315
35316         PR tree-optimization/59622
35317         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
35318         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35319         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35320         Don't devirtualize for inplace at all.  For targets.length () == 1,
35321         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35322
35323 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
35324
35325         * config/i386/i386.md (cpu): Remove the unused btver1.
35326
35327 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
35328
35329         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35330
35331 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35332
35333         PR target/58115
35334         * tree-core.h (struct target_globals): New forward declaration.
35335         (struct tree_target_option): Add globals field.
35336         * tree.h (TREE_TARGET_GLOBALS): Define.
35337         (prepare_target_option_nodes_for_pch): New prototype.
35338         * target-globals.h (struct target_globals): Define even if
35339         !SWITCHABLE_TARGET.
35340         * tree.c (prepare_target_option_node_for_pch,
35341         prepare_target_option_nodes_for_pch): New functions.
35342         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35343         * config/i386/i386.c: Include target-globals.h.
35344         (ix86_set_current_function): Instead of doing target_reinit
35345         unconditionally, use save_target_globals_default_opts and
35346         restore_target_globals.
35347
35348 2014-01-09  Richard Biener  <rguenther@suse.de>
35349
35350         PR tree-optimization/59715
35351         * tree-cfg.h (split_critical_edges): Declare.
35352         * tree-cfg.c (split_critical_edges): Export.
35353         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
35354
35355 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35356
35357         * cfgexpand.c (expand_stack_vars): Optionally disable
35358         asan stack protection.
35359         (expand_used_vars): Likewise.
35360         (partition_stack_vars): Likewise.
35361         * asan.c (asan_emit_stack_protection): Optionally disable
35362         after return stack usage.
35363         (instrument_derefs): Optionally disable memory access instrumentation.
35364         (instrument_builtin_call): Likewise.
35365         (instrument_strlen_call): Likewise.
35366         (asan_protect_global): Optionally disable global variables protection.
35367         * doc/invoke.texi: Added doc for new options.
35368         * params.def: Added new options.
35369         * params.h: Likewise.
35370
35371 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35372
35373         PR rtl-optimization/59724
35374         * ifcvt.c (cond_exec_process_if_block): Don't call
35375         flow_find_head_matching_sequence with 0 longest_match.
35376         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
35377         non-active insns if !stop_after.
35378         (try_head_merge_bb): Revert 2014-01-07 changes.
35379
35380 2014-01-08  Jeff Law  <law@redhat.com>
35381
35382         * ree.c (get_sub_rtx): New function, extracted from...
35383         (merge_def_and_ext): Here.
35384         (combine_reaching_defs): Use get_sub_rtx.
35385
35386 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
35387
35388         * cgraph.h (varpool_variable_node): Do not choke on null node.
35389
35390 2014-01-08  Catherine Moore  <clm@codesourcery.com>
35391
35392         * config/mips/mips.md (simple_return): Attempt to use JRC
35393         for microMIPS.
35394         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
35395
35396 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
35397
35398         PR rtl-optimization/59137
35399         * reorg.c (steal_delay_list_from_target): Call update_block for
35400         elided insns.
35401         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
35402
35403 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35404
35405         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
35406         two duplicate entries.
35407
35408 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
35409
35410         Revert:
35411         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
35412
35413         * config/mips/mips.c (mips_truncated_op_cost): New function.
35414         (mips_rtx_costs): Adjust test for BADDU.
35415         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
35416
35417         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
35418
35419         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
35420         (*baddu_si): ...this new pattern.
35421
35422 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
35423
35424         PR ipa/59722
35425         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
35426
35427 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35428
35429         PR middle-end/57748
35430         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
35431         inner_reference_p.
35432         (expand_expr, expand_normal): Adjust.
35433         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
35434         inner_reference_p. Use inner_reference_p to expand inner references.
35435         (store_expr): Adjust.
35436         * cfgexpand.c (expand_call_stmt): Adjust.
35437
35438 2014-01-08  Rong Xu  <xur@google.com>
35439
35440         * gcov-io.c (gcov_var): Move from gcov-io.h.
35441         (gcov_position): Ditto.
35442         (gcov_is_error): Ditto.
35443         (gcov_rewrite): Ditto.
35444         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
35445         only part to libgcc/libgcov.h.
35446
35447 2014-01-08  Marek Polacek  <polacek@redhat.com>
35448
35449         PR middle-end/59669
35450         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
35451
35452 2014-01-08  Marek Polacek  <polacek@redhat.com>
35453
35454         PR sanitizer/59667
35455         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
35456
35457 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
35458
35459         PR rtl-optimization/59649
35460         * stor-layout.c (get_mode_bounds): For BImode return
35461         0 and STORE_FLAG_VALUE.
35462
35463 2014-01-08  Richard Biener  <rguenther@suse.de>
35464
35465         PR middle-end/59630
35466         * gimple.h (is_gimple_builtin_call): Remove.
35467         (gimple_builtin_call_types_compatible_p): New.
35468         (gimple_call_builtin_p): New overload.
35469         * gimple.c (is_gimple_builtin_call): Remove.
35470         (validate_call): Rename to ...
35471         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
35472         check return types.
35473         (validate_type): New static function.
35474         (gimple_call_builtin_p): New overload and adjust.
35475         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
35476         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
35477         (gimple_fold_stmt_to_constant_1): Likewise.
35478         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
35479
35480 2014-01-08  Richard Biener  <rguenther@suse.de>
35481
35482         PR middle-end/59471
35483         * gimplify.c (gimplify_expr): Gimplify register-register type
35484         VIEW_CONVERT_EXPRs to separate stmts.
35485
35486 2014-01-07  Jeff Law  <law@redhat.com>
35487
35488         PR middle-end/53623
35489         * ree.c (combine_set_extension): Handle case where source
35490         and destination registers in an extension insn are different.
35491         (combine_reaching_defs): Allow source and destination registers
35492         in extension to be different under limited circumstances.
35493         (add_removable_extension): Remove restriction that the
35494         source and destination registers in the extension are the same.
35495         (find_and_remove_re): Emit a copy from the extension's
35496         destination to its source after the defining insn if
35497         the source and destination registers are different.
35498
35499         PR middle-end/59285
35500         * ifcvt.c (merge_if_block): If we are merging a block with more than
35501         one successor with a block with no successors, remove any BARRIER
35502         after the second block.
35503
35504 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
35505
35506         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
35507
35508 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
35509
35510         PR target/59652
35511         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
35512         for 14-bit register offsets when INT14_OK_STRICT is false.
35513
35514 2014-01-07  Roland Stigge  <stigge@antcom.de>
35515             Michael Meissner  <meissner@linux.vnet.ibm.com>
35516
35517         PR 57386/target
35518         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
35519         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
35520
35521 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35522
35523         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
35524         -mcpu.
35525
35526 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
35527
35528         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
35529         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
35530         rtx is const0_rtx or not.
35531
35532 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
35533
35534         PR target/58115
35535         * target-globals.c (save_target_globals): Remove this_fn_optab
35536         handling.
35537         * toplev.c: Include optabs.h.
35538         (target_reinit): Temporarily restore the global options if another
35539         set of options are in force.
35540
35541 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
35542
35543         PR rtl-optimization/58668
35544         * cfgcleanup.c (flow_find_cross_jump): Don't count
35545         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
35546         to determine what is counted.
35547         (flow_find_head_matching_sequence): Use active_insn_p to determine
35548         what is counted.
35549         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
35550         counting change.
35551         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
35552         determine what is counted.
35553
35554         PR tree-optimization/59643
35555         * tree-predcom.c (split_data_refs_to_components): If one dr is
35556         read and one write, determine_offset fails and the write isn't
35557         in the bad component, just put the read into the bad component.
35558
35559 2014-01-07  Mike Stump  <mikestump@comcast.net>
35560             Jakub Jelinek  <jakub@redhat.com>
35561
35562         PR pch/59436
35563         * tree-core.h (struct tree_optimization_option): Change optabs
35564         type from unsigned char * to void *.
35565         * optabs.c (init_tree_optimization_optabs): Adjust
35566         TREE_OPTIMIZATION_OPTABS initialization.
35567
35568 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
35569
35570         PR target/59644
35571         * config/i386/i386.h (struct machine_function): Add
35572         no_drap_save_restore field.
35573         * config/i386/i386.c (ix86_save_reg): Use
35574         !cfun->machine->no_drap_save_restore instead of
35575         crtl->stack_realign_needed.
35576         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
35577         this function clears frame_pointer_needed.  Set
35578         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
35579         and DRAP reg is needed.
35580
35581 2014-01-06  Marek Polacek  <polacek@redhat.com>
35582
35583         PR c/57773
35584         * doc/implement-c.texi: Mention that other integer types are
35585         permitted as bit-field types in strictly conforming mode.
35586
35587 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
35588
35589         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
35590         is newly allocated.
35591
35592 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
35593
35594         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
35595
35596 2014-01-06  Martin Jambor  <mjambor@suse.cz>
35597
35598         PR ipa/59008
35599         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35600         to int.
35601         * ipa-prop.c (ipa_print_node_params): Fix indentation.
35602
35603 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
35604
35605         PR debug/59350
35606         PR debug/59510
35607         * var-tracking.c (add_stores): Preserve the value of the source even if
35608         we don't record the store.
35609
35610 2014-01-06  Terry Guo  <terry.guo@arm.com>
35611
35612         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35613
35614 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
35615
35616         PR bootstrap/59541
35617         * config/darwin.c (darwin_function_section): Adjust return values to
35618         correspond to optimisation changes made in r206070.
35619
35620 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
35621
35622         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35623         from prefetch_block tune setting.
35624         (nocona_cost): Correct size of prefetch block to 64.
35625
35626 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
35627
35628         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35629         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35630         used to save the static chain register in the computation of the offset
35631         from which the FP registers need to be restored.
35632
35633 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
35634
35635         PR tree-optimization/59519
35636         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35637         ICE if get_current_def (current_new_name) is already non-NULL, as long
35638         as it is a phi result of some other phi in *new_exit_bb that has
35639         the same argument.
35640
35641         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35642         or vmovdqu* for misaligned_operand.
35643         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35644         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35645         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35646         aligned_mem for AVX512F masked aligned load and store builtins and for
35647         non-temporal moves.
35648
35649 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
35650
35651         PR tree-optimization/59651
35652         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35653         Address range for negative step should be added by TYPE_SIZE_UNIT.
35654
35655 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
35656
35657         * config/m68k/m68k.c (handle_move_double): Handle pushes with
35658         overlapping registers also for registers other than the stack pointer.
35659
35660 2014-01-03  Marek Polacek  <polacek@redhat.com>
35661
35662         PR other/59661
35663         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35664         __builtin_FILE.
35665
35666 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
35667
35668         PR target/59625
35669         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35670         asm goto as jump.
35671
35672         * config/i386/i386.md (MODE_SIZE): New mode attribute.
35673         (push splitter): Use <P:MODE_SIZE> instead of
35674         GET_MODE_SIZE (<P:MODE>mode).
35675         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35676         (mov -1, reg peephole2): Likewise.
35677         * config/i386/sse.md (*mov<mode>_internal,
35678         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35679         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35680         *<code><mode>3, *andnot<mode>3<mask_name>,
35681         <mask_codefor><code><mode>3<mask_name>): Likewise.
35682         * config/i386/subst.md (mask_mode512bit_condition,
35683         sd_mask_mode512bit_condition): Likewise.
35684
35685 2014-01-02  Xinliang David Li  <davidxl@google.com>
35686
35687         PR tree-optimization/59303
35688         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35689         (dump_predicates): Better output format.
35690         (pred_equal_p): New function.
35691         (is_neq_relop_p): Ditto.
35692         (is_neq_zero_form_p): Ditto.
35693         (pred_expr_equal_p): Ditto.
35694         (pred_neg_p): Ditto.
35695         (simplify_pred): Ditto.
35696         (simplify_preds_2): Ditto.
35697         (simplify_preds_3): Ditto.
35698         (simplify_preds_4): Ditto.
35699         (simplify_preds): Ditto.
35700         (push_pred): Ditto.
35701         (push_to_worklist): Ditto.
35702         (get_pred_info_from_cmp): Ditto.
35703         (is_degenerated_phi): Ditto.
35704         (normalize_one_pred_1): Ditto.
35705         (normalize_one_pred): Ditto.
35706         (normalize_one_pred_chain): Ditto.
35707         (normalize_preds): Ditto.
35708         (normalize_cond_1): Remove function.
35709         (normalize_cond): Ditto.
35710         (is_gcond_subset_of): Ditto.
35711         (is_subset_of_any): Ditto.
35712         (is_or_set_subset_of): Ditto.
35713         (is_and_set_subset_of): Ditto.
35714         (is_norm_cond_subset_of): Ditto.
35715         (pred_chain_length_cmp): Ditto.
35716         (convert_control_dep_chain_into_preds): Type change.
35717         (find_predicates): Ditto.
35718         (find_def_preds): Ditto.
35719         (destroy_predicates_vecs): Ditto.
35720         (find_matching_predicates_in_rest_chains): Ditto.
35721         (use_pred_not_overlap_with_undef_path_pred): Ditto.
35722         (is_pred_expr_subset): Ditto.
35723         (is_pred_chain_subset_of): Ditto.
35724         (is_included_in): Ditto.
35725         (is_superset_of): Ditto.
35726
35727 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35728
35729         Update copyright years.
35730
35731 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
35732
35733         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35734         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35735         config/arc/arc.md, config/arc/arc.opt,
35736         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35737         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35738         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35739         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35740         config/linux-protos.h, config/linux.c, config/winnt-c.c,
35741         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35742         vtable-verify.c, vtable-verify.h: Use the standard form for the
35743         copyright notice.
35744
35745 2014-01-02  Tobias Burnus  <burnus@net-b.de>
35746
35747         * gcc.c (process_command): Update copyright notice dates.
35748         * gcov-dump.c: Ditto.
35749         * gcov.c: Ditto.
35750         * doc/cpp.texi: Bump @copying's copyright year.
35751         * doc/cppinternals.texi: Ditto.
35752         * doc/gcc.texi: Ditto.
35753         * doc/gccint.texi: Ditto.
35754         * doc/gcov.texi: Ditto.
35755         * doc/install.texi: Ditto.
35756         * doc/invoke.texi: Ditto.
35757
35758 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35759
35760         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
35761
35762 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
35763
35764         * config/i386/sse.md (*mov<mode>_internal): Guard
35765         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
35766
35767         PR rtl-optimization/59647
35768         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
35769         new_rtx into UNSIGNED_FLOAT rtxes.
35770 \f
35771 Copyright (C) 2014 Free Software Foundation, Inc.
35772
35773 Copying and distribution of this file, with or without modification,
35774 are permitted in any medium without royalty provided the copyright
35775 notice and this notice are preserved.