fold-const.c (fold_binary_loc): Fix copy-and-pasto.
[gcc.git] / gcc / ChangeLog
1 2014-10-24 Richard Biener <rguenther@suse.de>
2
3 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
4
5 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
6
7 PR bootstrap/63632
8 * collect2.c (main): Filter out -fno-lto.
9
10 2014-10-24 Martin Liska <mliska@suse.cz>
11
12 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
13 division by zero in dumps.
14 (sem_item_optimizer::merge_classes): Ditto.
15
16 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
17
18 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
19
20 2014-10-23 Ian Lance Taylor <iant@google.com>
21
22 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
23
24 2014-10-23 Ian Lance Taylor <iant@google.com>
25
26 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't define.
27
28 2014-10-23 Jakub Jelinek <jakub@redhat.com>
29
30 PR debug/63623
31 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
32 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
33 instead of only handling autoinc in dest if it is a MEM.
34 (vt_stack_adjustments): Fix up formatting.
35
36 2014-10-23 DJ Delorie <dj@redhat.com>
37
38 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
39 independend of -mlarge.
40 * config/msp430/constraints.md (Ys): Update comment.
41
42 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
43
44 PR target/63534
45 PR target/63618
46 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
47 while it is pseudo.
48 * dse.c (deletable_insn_p): Likewise.
49
50 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
51
52 * config/avr/avr.c: Fix GNU coding rules and typos.
53 * config/avr/avr.h: Dito.
54 * config/avr/avr-c.c: Dito.
55 * config/avr/avr.md: Dito.
56
57 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
58
59 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
60 New.
61 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
62 iterator.
63 (define_expand "abs<mode>2"): Ditto.
64
65 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
66
67 * tree-core.h (tree_var_decl): Extend `function_code' field
68 by one bit, move `regdecl_flag' field to ...
69 (tree_decl_with_vis): Here.
70 * tree.h (DECL_STATIC_CHAIN): Update struct name.
71
72 2014-10-23 Richard Biener <rguenther@suse.de>
73
74 * Makefile.in (BUILD_CPPLIB): Add.
75 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
76 Drop LIBIBERTY.
77
78 2014-10-23 Richard Biener <rguenther@suse.de>
79
80 * fold-const.c (fold_binary_loc): Preserve side-effects of
81 X - X when simplifying to 0.
82 * stor-layout.c (finish_bitfield_representative): Strip
83 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
84
85 2014-10-22 Richard Biener <rguenther@suse.de>
86 Tobias Burnus <burnus@net-b.de>
87
88 PR lto/63603
89 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
90
91 2014-10-22 Dehao Chen <dehao@google.com>
92
93 * auto-profile.c: Change order of header files.
94
95 2014-10-22 Guozhi Wei <carrot@google.com>
96
97 PR tree-optimization/63530
98 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
99 pointer alignment according to DR_MISALIGNMENT.
100
101 2014-10-22 David Malcolm <dmalcolm@redhat.com>
102
103 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
104
105 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
106
107 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
108 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
109 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
110 * dominance.h: New. Add prototypes for dominance.c.
111 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
112 * cfghooks.h: (struct profile_record) Relocate here.
113 Relocate 2 prototypes from basic-block.h.
114 * basic-block.h: Move prototypes and struct to new header files.
115 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
116 * rtl.h: Move a few prototypes to new header files.
117 * cfgcleanup.c (merge_memattrs): Make static.
118 * genopinit.c (main): Add predict.h to list of includes.
119 * predict.h: Update prototype list to match predict.c.
120 * predict.c (maybe_hot_count_p): Export.
121 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
122 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
123 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
124 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
125 * profile.h: Adjust prototypes.
126 * ifcvt.h: New. Relocate struct ce_if_block here.
127 * ifcvt.c: Include ifcvt.h.
128 * config/frv/frv.c: Include ifcvt.h.
129 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
130
131 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
132
133 * lra.c (lra): Remove call to recog_init.
134 * config/i386/i386.md (preferred_for_speed): New attribute
135 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
136 "enabled". Remove check for sched1.
137
138 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
139
140 * recog.h (recog_data_d): Remove enabled_alternatives.
141 * recog.c (extract_insn): Don't set it.
142 * reload.c (find_reloads): Call get_enabled_alternatives.
143
144 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
145
146 * recog.h (constrain_operands): Add an alternative_mask parameter.
147 (constrain_operands_cached): Likewise.
148 (get_preferred_alternatives): Declare new form.
149 * recog.c (get_preferred_alternatives): New bb-taking instance.
150 (constrain_operands): Take the set of available alternatives as
151 a parameter.
152 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
153 (extract_constrain_insn_cached): Update calls to constrain_operands.
154 * caller-save.c (reg_save_code): Likewise.
155 * ira.c (setup_prohibited_mode_move_regs): Likewise.
156 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
157 * ree.c (combine_reaching_defs): Likewise.
158 * reload.c (can_reload_into): Likewise.
159 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
160 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
161 (emit_insn_if_valid_for_reload): Likewise.
162 * reorg.c (fill_slots_from_thread): Likewise.
163 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
164 * config/pa/pa.c (pa_can_combine_p): Likewise.
165 * config/rl78/rl78.c (insn_ok_now): Likewise.
166 * config/sh/sh.md (define_peephole2): Likewise.
167 * final.c (final_scan_insn): Update call to constrain_operands_cached.
168
169 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
170
171 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
172 attributes.
173 * genattr.c (main): Handle "preferred_for_size" and
174 "preferred_for_speed" in the same way as "enabled".
175 * recog.h (bool_attr): New enum.
176 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
177 (get_preferred_alternatives, check_bool_attrs): Declare.
178 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
179 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
180 New functions.
181 (get_enabled_alternatives): Use get_bool_attr_mask.
182 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
183 instead of recog_data.enabled_alternatives.
184 * ira.c (ira_setup_alts): Likewise.
185 * postreload.c (reload_cse_simplify_operands): Likewise.
186 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
187 * ira-lives.c (preferred_alternatives): New variable.
188 (process_bb_node_lives): Set it.
189 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
190 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
191 of recog_data.enabled_alternatives.
192 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
193 to preferred_alternatives.
194 * lra-constraints.c (process_alt_operands): Update accordingly.
195 * lra.c (lra_set_insn_recog_data): Likewise.
196 (lra_update_insn_recog_data): Assert check_bool_attrs.
197
198 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
199
200 * recog.h (extract_constrain_insn): Declare.
201 * recog.c (extract_constrain_insn): New function.
202 * lra.c (check_rtl): Use it.
203 * postreload.c (reload_cse_simplify_operands): Likewise.
204 * reg-stack.c (check_asm_stack_operands): Likewise.
205 (subst_asm_stack_regs): Likewise.
206 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
207 * regrename.c (build_def_use): Likewise.
208 * sel-sched.c (get_reg_class): Likewise.
209 * config/arm/arm.c (note_invalid_constants): Likewise.
210 * config/s390/predicates.md (execute_operation): Likewise.
211
212 2014-10-22 Jakub Jelinek <jakub@redhat.com>
213 Yury Gribov <y.gribov@samsung.com>
214
215 * common.opt (flag_sanitize_recover): New variable.
216 (fsanitize-recover): Remove Var/Init, deprecate.
217 (fsanitize-recover=): New option.
218 * doc/invoke.texi (fsanitize-recover): Update docs.
219 * opts.c (finish_options): Use opts->x_flag_sanitize
220 instead of flag_sanitize. Prohibit -fsanitize-recover
221 for anything besides UBSan. Formatting.
222 (common_handle_option): Handle OPT_fsanitize_recover_
223 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
224 instead of flag_sanitize.
225 * asan.c (pass_sanopt::execute): Fix up formatting.
226 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
227 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
228 instrument_bool_enum_load, ubsan_instrument_float_cast,
229 instrument_nonnull_arg, instrument_nonnull_return): Check
230 bits in flag_sanitize_recover bitmask instead of
231 flag_sanitize_recover as bool flag.
232
233 2014-10-22 Jiong Wang <jiong.wang@arm.com>
234
235 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
236
237 2014-10-22 Renlin Li <renlin.li@arm.com>
238
239 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
240 __ARM_FEATURE_IDIV__.
241
242 2014-10-22 Richard Biener <rguenther@suse.de>
243
244 * Makefile.in (s-match): Adjust dependencies to only catch
245 match.pd.
246
247 2014-10-22 Richard Biener <rguenther@suse.de>
248 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
249
250 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
251 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
252 (gimple-match.c): Generate by triggering s-match.
253 (generic-match.c): Likewise.
254 (s-match): Rule to build gimple-match.c and generic-match.c
255 by running the genmatch generator program.
256 (build/hash-table.o): Dependencies to build hash-table.c for the host.
257 (build/genmatch.o): Dependencies to build genmatch.
258 (genprog): Add match.
259 (build/genmatch): Likewise.
260 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
261 * generic-match-head.c: New file.
262 * gimple-match-head.c: Likewise.
263 * gimple-match.h: Likewise.
264 * genmatch.c: Likewise.
265 * match.pd: Likewise.
266 * builtins.h (fold_builtin_n): Export.
267 * builtins.c (fold_builtin_n): Likewise.
268 * gimple-fold.h (gimple_build): Declare various overloads.
269 (gimple_simplify): Likewise.
270 (gimple_convert): Re-implement in terms of gimple_build.
271 * gimple-fold.c (gimple_convert): Remove.
272 (gimple_build): New functions.
273 * doc/match-and-simplify.texi: New file.
274 * doc/gccint.texi: Add menu item Match and Simplify and include
275 match-and-simplify.texi.
276
277 2014-10-22 Jakub Jelinek <jakub@redhat.com>
278
279 PR target/63594
280 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
281 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
282 even for just TARGET_AVX2, not only for
283 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
284 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
285 otherwise build it using concatenation of 256-bit
286 broadcast.
287 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
288 avx512 broadcast patterns.
289 (vec_dup<mode>): Likewise. For avx2 use
290 v<sseintprefix>broadcast<bcstscalarsuff> instead of
291 vbroadcast<ssescalarmodesuffix>.
292 (AVX2_VEC_DUP_MODE): New mode iterator.
293 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
294 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
295
296 PR target/63542
297 * config/i386/i386.c (ix86_pic_register_p): Also return
298 true if x is a hard register with ORIGINAL_REGNO equal to
299 pic_offset_table_rtx pseudo REGNO.
300 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
301 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
302
303 2014-10-22 Alan Modra <amodra@gmail.com>
304
305 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
306 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
307 (gcc_obstack_init): Use obstack_specify_allocation in place of
308 _obstack_begin.
309 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
310 (regexp_representation): Likewise.
311 * godump.c (go_output_type): Likewise.
312
313 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
314
315 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
316 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
317 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
318
319 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
320
321 * doc/invoke.texi (pedantic-errors): Explain better.
322
323 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
324 Vidya Praveen <vidya.praveen@atmel.com>
325 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
326 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
327 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
328
329 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
330 __MEMX for avrtiny.
331 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
332 (avr_nonconst_pointer_addrspace): Likewise.
333 * config/avr/avr.h (AVR_HAVE_LPM): Define.
334
335 Added AVRTINY architecture to avr target.
336 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
337 (base_arch_s): member added for AVRTINY architecture.
338 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
339 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
340 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
341 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
342 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
343 in callee saved register list.
344 (avr_option_override): CCP address updated for AVRTINY.
345 (avr_init_expanders): tmp and zero rtx initialized as per arch.
346 Reset avr_have_dimode if AVRTINY.
347 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
348 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
349 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
350 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
351 (expand_epilogue): Likewise.
352 (avr_print_operand): Print CCP address in case of AVRTINY also.
353 <TBD>bad address
354 (function_arg_regno_p): Check different register list for arguments
355 if AVRTINY.
356 (init_cumulative_args): Check for AVRTINY to update number of argument
357 registers.
358 (tiny_valid_direct_memory_access_range): New function. Return false if
359 direct memory access range is not in accepted range for AVRTINY.
360 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
361 indirect load (with displacement) for AVRTINY.
362 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
363 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
364 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
365 indirect load (no displacement) for AVRTINY.
366 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
367 indirect load (with displacement) for AVRTINY.
368 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
369 indirect load for pre-decrement address.
370 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
371 functions. Update instruction length for AVRTINY.
372 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
373 SImode.
374 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
375 (out_movsi_r_mr): Likewise, for SImode.
376 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
377 indirect store (no displacement) for AVRTINY.
378 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
379 indirect store (with displacement) for AVRTINY.
380 (out_movsi_mr_r): Emit out insn for IO address store. Update store
381 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
382 store functions.
383 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
384 indirect load (no displacement) for PSImode in AVRTINY.
385 (avr_out_load_psi_reg_disp_tiny): New function to handle register
386 indirect load (with displacement) for PSImode in AVRTINY.
387 (avr_out_load_psi): Call PSImode register indirect load functions for
388 AVRTINY. Update instruction length for AVRTINY.
389 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
390 indirect store (no displacement) for PSImode in AVRTINY.
391 (avr_out_store_psi_reg_disp_tiny): New function to handle register
392 indirect store (with displacement) for PSImode in AVRTINY.
393 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
394 register indirect store functions for AVRTINY.
395 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
396 register indirect store (with displacement) for AVRTINY.
397 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
398 register indirect store function for QImode in AVRTINY.
399 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
400 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
401 indirect store (no displacement) for HImode in AVRTINY.
402 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
403 indirect store (with displacement) for HImode in AVRTINY.
404 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
405 indirect store for post-increment address in HImode.
406 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
407 register indirect store function for HImode in AVRTINY.
408 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
409 in case of AVRTINY.
410 (order_regs_for_local_alloc): Updated register allocation order for
411 AVRTINY.
412 (avr_conditional_register_usage): New function. It is a target hook
413 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
414 used registers list and register allocation order for AVRTINY.
415 (avr_return_in_memory): Update return value size for AVRTINY.
416 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
417 for AVRTINY arch and tiny program memory base address.
418 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
419 (avr_texinfo): Added description for AVRTINY arch.
420 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
421 STATIC_CHAIN_REGNUM for AVRTINY.
422 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
423 * config/avr/avr.md: Added constants for tmp/ zero registers in
424 AVRTINY. Attributes for AVRTINY added.
425 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
426 memory access range.
427 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
428 in AVRTINY memory access range.
429 (*mov<mode>): Likewise for HImode and SImode.
430 (*movsf): Likewise for SFmode.
431 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
432 not have sbiw.
433 * config/avr/avr-protos.h: Added function prototype for
434 tiny_valid_direct_memory_access_range.
435 * config/avr/avr-tables.opt: Regenerate.
436 * gcc/config/avr/t-multilib: Regenerate.
437 * doc/avr-mmcu.texi: Regenerate.
438
439 2014-10-21 Andrew Pinski <apinski@cavium.com>
440
441 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
442 available option also.
443 * config/aarch64/aarch64-cost-tables.h: New file.
444 * config/aarch64/aarch64-cores.def (thunderx): New core.
445 * config/aarch64/aarch64-tune.md: Regenerate.
446 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
447 of config/arm/aarch-cost-tables.h.
448 (thunderx_regmove_cost): New variable.
449 (thunderx_tunings): New variable.
450
451 2014-10-21 Dehao Chen <dehao@google.com>
452
453 * auto-profile.c: New file.
454 * auto-profile.h: New file.
455 * basic-block.h (maybe_hot_count_p): New export func.
456 (add_working_set): New export func.
457 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
458 (GCOV_TAG_AFDO_FUNCTION): Likewise.
459 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
460 * opts.c (enable_fdo_optimizations): New func.
461 (common_handle_option): Handle -fauto-profile flag.
462 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
463 (class pass_early_inline): Export early_inliner.
464 (early_inliner): Likewise.
465 (pass_early_inline::execute): Likewise.
466 * ipa-inline.h (early_inliner): Likewise.
467 * predict.c (maybe_hot_count_p): New export func.
468 (counts_to_freqs): AutoFDO logic.
469 (rebuild_frequencies): Likewise.
470 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
471 * profile.c (add_working_set): New func.
472 * Makefile.in (auto-profile.o): New object file.
473 * passes.def (pass_ipa_auto_profile): New pass.
474 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
475 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
476 * toplev.c (compile_file): AutoFDO logic.
477 * doc/invoke.texi (-fauto-profile): New doc.
478 * coverage.c (coverage_init): AutoFDO logic.
479 * common.opt (-fauto-profile): New flag.
480 * timevar.def (TV_IPA_AUTOFDO): New tag.
481 * value-prof.c (gimple_alloc_histogram_value): New export func.
482 (check_ic_target): Likewise.
483 * value-prof.h (gimple_alloc_histogram_value): Likewise.
484 (check_ic_target): Likewise.
485
486 2014-10-21 David Malcolm <dmalcolm@redhat.com>
487
488 * cgraph.c (cgraph_c_finalize): New function.
489 * cgraph.h (cgraph_c_finalize): New prototype.
490 (cgraphunit_c_finalize): New prototype.
491 * cgraphunit.c (first_analyzed): Move from analyze_functions
492 to file-scope.
493 (first_analyzed_var): Likewise.
494 (analyze_functions): Move static variables into file-scope.
495 (cgraphunit_c_finalize): New function.
496 * diagnostic.c (diagnostic_finish): Free the memory for
497 context->classify_diagnostic and context->printer, running the
498 destructor for the latter.
499 (bt_stop): Use toplev::main.
500 * dwarf2out.c (dwarf2out_finalize): New function.
501 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
502 * gcse.c (gcse_c_finalize): New function.
503 * gcse.h (gcse_c_finalize): New prototype.
504 * ggc-page.c (init_ggc): Make idempotent.
505 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
506 * ipa-cp.c (ipa_cp_c_finalize): New function.
507 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
508 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
509 a field of class pass_ipa_pure_const.
510 (node_duplication_hook_holder): Likewise.
511 (node_removal_hook_holder): Likewise.
512 (register_hooks): Convert to method...
513 (pass_ipa_pure_const::register_hooks): ...here, converting
514 static variable init_p into...
515 (pass_ipa_pure_const::init_p): ...new field.
516 (pure_const_generate_summary): Update invocation of
517 register_hooks to invoke as a method of current_pass.
518 (pure_const_read_summary): Likewise.
519 (propagate): Convert to...
520 (pass_ipa_pure_const::execute): ...method.
521 * ipa-reference.c (ipa_init): Move static bool init_p from here
522 to...
523 (ipa_init_p): New file-scope variable, so that it can be reset
524 when repeatedly invoking the compiler within one process by...
525 (ipa_reference_c_finalize): New function.
526 * ipa-reference.h (ipa_reference_c_finalize): New.
527 * main.c (main): Replace invocation of toplev_main with
528 construction of a toplev instance, and call its "main" method.
529 * params.c (global_init_params): Add an assert that
530 params_finished is false.
531 (params_c_finalize): New.
532 * params.h (params_c_finalize): New.
533 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
534 invoking generate_summary, for the benefit of pass_ipa_pure_const.
535 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
536 before calling write_summary hook.
537 (ipa_write_optimization_summaries_1): Likewise when calling
538 write_optimization_summary hook.
539 (ipa_read_summaries_1): Likewise for read_summary hook.
540 (ipa_read_optimization_summaries_1): Likewise for
541 read_optimization_summary hook.
542 (execute_ipa_stmt_fixups): Likewise.
543 * stringpool.c (init_stringpool): Clean up if we're called more
544 than once.
545 * timevar.c (timevar_init): Ignore repeated calls.
546 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
547 "ipa-prop.h".
548 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
549 (initialize_rtl): Move static local "initialized_once"
550 into file scope, and rename to...
551 (rtl_initialized): New variable.
552 (do_compile): Move timevar initialization from here to
553 toplev::start_timevars.
554 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
555 toplev::finalize): New functions.
556 (toplev_main): Rename to...
557 (toplev::main): ...this.
558 * toplev.h (class toplev): New class.
559
560 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
561
562 * loop-doloop.c: Include loop-unroll.h.
563
564 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
565
566 * cfg.h: New. Header file for cfg.c.
567 * cfganal.h: New. Header file for cfganal.c.
568 * lcm.h: New. Header file for lcm.c.
569 * loop-unroll.h: New. Header file for loop-unroll.h.
570 * cfgloop.h: (unroll_loops): Remove prototype.
571 * basic-block.h: Move prototypes and structs to new header files.
572 Include cfg.h, cfganal.h, and lcm.h.
573 * loop-init.c: Include loop-unroll.h.
574 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
575 * modulo-sched.c: Include loop-unroll.h.
576
577 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
578
579 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
580 MARKER_BYTE_UNKNOWN markers when handling casts.
581
582 2014-10-21 Richard Biener <rguenther@suse.de>
583
584 * tree-ssa-phiopt.c (value_replacement): Properly verify we
585 are the non-singleton PHI.
586
587 2014-10-21 Jakub Jelinek <jakub@redhat.com>
588
589 PR tree-optimization/63563
590 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
591 if either dra or drb stmts are not normal loads/stores.
592
593 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
594
595 * config/i386/i386.c (expand_vec_perm_1): Fix
596 expand_vec_perm_palignr case.
597 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
598 VI1_AVX512.
599
600 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
601
602 * cfgloopanal.c (seq_cost): Delete.
603 * rtl.h (seq_cost): New prototype.
604 * rtlanal.c (seq_cost): New function.
605 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
606
607 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
608
609 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
610 * basic-block.h: Remove prototypes for cfgrtl.c.
611 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
612 prototypes to cfgrtl.h.
613 * profile.h (profile_info): Add extern export declaration.
614 * rtl.h: Remove prototypes for cfgrtl.h.
615 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
616 * ipa-inline.c: Include profile.h.
617 * loop-unroll.c: Ditto.
618 * modulo-sched.c: Ditto.
619 * postreload-gcse.c: Ditto.
620 * predict.c: Ditto.
621 * sched-ebb.c: Ditto.
622 * sched-rgn.c: Ditto.
623 * tracer.c: Ditto.
624 * tree-ssa-loop-ivcanon.c: Ditto.
625
626 2014-10-20 Richard Biener <rguenther@suse.de>
627
628 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
629 operands to get a def operand kind match. Signal mismatches
630 to the parent so we can try swapping its operands.
631 (vect_build_slp_tree): Try swapping operands if they have
632 a mismatched operand kind.
633
634 2014-10-20 Alan Modra <amodra@gmail.com>
635
636 PR debug/60655
637 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
638 Increase "ops" array size. Correct array size tests. Init
639 n_constants in loop. Break out of innermost loop when finding
640 a trivial CONST expression.
641
642 2014-10-20 Martin Liska <mliska@suse.cz>
643
644 PR ipa/63583
645 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
646 Gimple tempate string is compared.
647
648 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
649
650 * varasm.c (const_alias_set): Remove.
651 (init_varasm_once): Remove initialization of const_alias_set.
652 (build_constant_desc): Do not set alias set to const_alias_set.
653
654 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
655
656 * configure: Regenerate.
657 * configure.ac: Move the test for section attribute specifier "e" in GAS
658 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
659 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
660 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
661 ifdef HAVE_GAS_SECTION_EXCLUDE.
662
663 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
664
665 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
666 match_operand expression.
667
668 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
669 David Edelsohn <dje.gcc@gmail.com>
670
671 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
672 function.
673 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
674
675 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
676
677 * doc/invoke.texi (Options to Request or Suppress Warnings):
678 Explain options precedence.
679 (Wtrampolines): Do not indent paragraph.
680
681 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
682
683 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
684 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
685 (pa_jump_in_call_delay): Likewise.
686 * config/pa/pa.c (pa_option_override): Remove jump in call delay
687 override.
688 (pa_output_millicode_call): Remove support for jump in call delay.
689 (pa_output_call): Likewise.
690 (pa_jump_in_call_delay): Delete.
691 (pa_following_call): Likewise.
692 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
693 (uncond_branch): Remove following call check from attribute length.
694
695 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
696
697 PR target/53513
698 * config/sh/sh-modes.def (PSI): Remove.
699 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
700 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
701 (sh_reorg): Remove commented out FPSCR code.
702 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
703 insn instead of move insn.
704 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
705 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
706 handling.
707 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
708 (sh1_builtin_p): Uncomment.
709 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
710 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
711 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
712 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
713 (general_movsrc_operand, general_movdst_operand): Disallow
714 fpscr_operand.
715 * config/sh/sh.md (FPSCR_FR): New constant.
716 (push_fpscr): Emit sts_fpscr insn.
717 (pop_fpscr): Emit lds_fpscr_insn.
718 (movsi_ie): Disallow FPSCR operands.
719 (fpu_switch, unnamed related split, extend_psi_si,
720 truncate_si_psi): Remove insns.
721 (lds_fpscr, sts_fpscr): New insns.
722 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
723
724 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
725
726 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
727 (clone_inlined_nodes): Do not overwrite the clone if above predicate
728 returns true.
729
730 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
731
732 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
733 (expand_vec_perm_d): Ditto.
734 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
735 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
736 V4DFmode.
737 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
738 (ix86_expand_sse_unpack): Handle V64QImode.
739 (expand_vec_perm_blend): Update conditions for TARGET, handle
740 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
741 (expand_vec_perm_pshufb): Handle V64QImode.
742 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
743 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
744 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
745 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
746 (ix86_expand_vecop_qihi): Handle V64QImode.
747 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
748 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
749 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
750 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
751 (mul<mode>3): Use VI1_AVX512.
752 (<sse2_avx2>_packsswb): Ditto.
753 (<sse2_avx2>_packuswb): Ditto.
754 (<ssse3_avx2>_pshufb<mode>3): Ditto.
755 (<shift_insn><mode>3): Ditto.
756
757 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
758
759 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
760 conditions to fix bootstrap.
761
762 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
763
764 gcc-plugin.h: Add tm.h and flattened includes from function.h.
765
766 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
767 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
768 Anna Tikhonova <anna.tikhonova@intel.com>
769 Ilya Tocar <ilya.tocar@intel.com>
770 Andrey Turetskiy <andrey.turetskiy@intel.com>
771 Ilya Verbin <ilya.verbin@intel.com>
772 Kirill Yukhin <kirill.yukhin@intel.com>
773 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
774
775 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
776 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
777 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
778 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
779 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
780 (define_expand "vec_init<mode>"): Use VF48_I1248.
781
782 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
783 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
784 Anna Tikhonova <anna.tikhonova@intel.com>
785 Ilya Tocar <ilya.tocar@intel.com>
786 Andrey Turetskiy <andrey.turetskiy@intel.com>
787 Ilya Verbin <ilya.verbin@intel.com>
788 Kirill Yukhin <kirill.yukhin@intel.com>
789 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
790
791 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
792 expand_sse2_mulvxdi3.
793
794 2014-10-17 Richard Biener <rguenther@suse.de>
795
796 * fold-const.c (fold_comparison): Remove redundant constant
797 folding and operand swapping.
798 (fold_binary_loc): Do comparison operand swapping here.
799 (fold_ternary_loc): Canonicalize operand order for
800 commutative ternary operations.
801 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
802 and FMA_EXPR.
803
804 2014-10-17 Jakub Jelinek <jakub@redhat.com>
805
806 PR tree-optimization/63464
807 * gimple.h (gimple_seq_discard): New prototype.
808 * gimple.c: Include stringpool.h and tree-ssanames.h.
809 (gimple_seq_discard): New function.
810 * optabs.h (lshift_cheap_p): New prototype.
811 * optabs.c (lshift_cheap_p): New function, moved from...
812 * tree-switch-conversion.c (lshift_cheap_p): ... here.
813 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
814 (reassoc_branch_fixups): New variable.
815 (update_range_test): Add otherrangep and seq arguments.
816 Unshare exp. If otherrange is NULL, use for other ranges
817 array of pointers pointed by otherrangep instead.
818 Emit seq before gimplified statements for tem.
819 (optimize_range_tests_diff): Adjust update_range_test
820 caller.
821 (optimize_range_tests_xor): Likewise. Fix up comment.
822 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
823 functions.
824 (optimize_range_tests): Adjust update_range_test caller.
825 Call optimize_range_tests_to_bit_test.
826 (branch_fixup): New function.
827 (execute_reassoc): Call branch_fixup.
828
829 PR tree-optimization/63302
830 * tree-ssa-reassoc.c (optimize_range_tests_xor,
831 optimize_range_tests_diff): Use !integer_pow2p () instead of
832 tree_log2 () < 0.
833
834 2014-10-17 Martin Liska <mliska@suse.cz>
835
836 * ipa-icf.c (sem_function::merge): Local flags are set to false
837 to enforce equal calling convention to be used.
838 * opts.c (common_handle_option): Indentation fix.
839
840 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
841
842 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
843
844 2014-10-17 Tom de Vries <tom@codesourcery.com>
845
846 PR rtl-optimization/61605
847 * regcprop.c (copyprop_hardreg_forward_1): Use
848 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
849
850 2014-10-17 Tom de Vries <tom@codesourcery.com>
851
852 PR rtl-optimization/61605
853 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
854 notice stores for noops. Don't regard noops as copies.
855
856 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
857
858 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
859 register in a special way.
860 (__cpuid_count): Ditto.
861 * config/i386/driver-i386.h: Protect with
862 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
863 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
864 is required to compile the function.
865
866 2014-10-16 DJ Delorie <dj@redhat.com>
867
868 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
869 integers.
870
871 * config/rs6000/rs6000-c.c (rid_int128): New.
872 (rs6000_macro_to_expand): Use instead of RID_INT128.
873
874 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
875
876 * function.h: Flatten file. Remove includes, adjust prototypes to
877 reflect only what is in function.h.
878 (enum direction, struct args_size, struct locate_and_pad_arg_data,
879 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
880 from expr.h.
881 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
882 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
883 prototypes to predict.h.
884 (init_varasm_status): Move prototype to varasm.h.
885 * expr.h: Adjust include files.
886 (enum direction, struct args_size, struct locate_and_pad_arg_data,
887 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
888 to function.h.
889 (locate_and_pad_parm): Move prototype to function.h.
890 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
891 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
892 assign_temp, reposition_prologue_and_epilogue_notes,
893 prologue_epilogue_contains, sibcall_epilogue_contains,
894 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
895 set_return_jump_label): Move prototypes to function.h.
896 * predict.h (optimize_function_for_size_p,
897 optimize_function_for_speed_p): Relocate prototypes from function.h.
898 * shrink-wrap.h (emit_return_into_block, active_insn_between,
899 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
900 function.h.
901 * varasm.h (init_varasm_status): Relocate prototype from function.h.
902 * genattrtab.c (write_header): Add predict.h to include list.
903 * genconditions.c (write_header): Add predict.h to include list.
904 * genemit.c (main): Adjust header file includes.
905 * gengtype.c (ifiles): Add flattened function.h header files.
906 * genoutput.c (output_prologue): Add predict.h to include list.
907 * genpreds.c (write_insn_preds_c): Adjust header file includes.
908 * genrecog.c (write_header): Add flattened function.h header files.
909 * alias.c: Adjust include files.
910 * auto-inc-dec.c: Likewise.
911 * basic-block.h: Likewise.
912 * bb-reorder.c: Likewise.
913 * bt-load.c: Likewise.
914 * builtins.c: Likewise.
915 * caller-save.c: Likewise.
916 * calls.c: Likewise.
917 * cfgbuild.c: Likewise.
918 * cfgcleanup.c: Likewise.
919 * cfgexpand.c: Likewise.
920 * cfgloop.c: Likewise.
921 * cfgloop.h: Likewise.
922 * cfgrtl.c: Likewise.
923 * cgraph.h: Likewise.
924 * cgraphclones.c: Likewise.
925 * cgraphunit.c: Likewise.
926 * combine-stack-adj.c: Likewise.
927 * combine.c: Likewise.
928 * coverage.c: Likewise.
929 * cprop.c: Likewise.
930 * cse.c: Likewise.
931 * cselib.c: Likewise.
932 * dbxout.c: Likewise.
933 * ddg.c: Likewise.
934 * df-core.c: Likewise.
935 * df-problems.c: Likewise.
936 * df-scan.c: Likewise.
937 * dojump.c: Likewise.
938 * dwarf2cfi.c: Likewise.
939 * dwarf2out.c: Likewise.
940 * emit-rtl.c: Likewise.
941 * except.c: Likewise.
942 * explow.c: Likewise.
943 * expr.c: Likewise.
944 * final.c: Likewise.
945 * function.c: Likewise.
946 * gcse.c: Likewise.
947 * gimple-fold.c: Likewise.
948 * gimple-low.c: Likewise.
949 * gimple-streamer.h: Likewise.
950 * haifa-sched.c: Likewise.
951 * ifcvt.c: Likewise.
952 * ira.c: Likewise.
953 * jump.c: Likewise.
954 * lcm.c: Likewise.
955 * loop-invariant.c: Likewise.
956 * lra-assigns.c: Likewise.
957 * lra-coalesce.c: Likewise.
958 * lra-constraints.c: Likewise.
959 * lra-eliminations.c: Likewise.
960 * lra-lives.c: Likewise.
961 * lra-spills.c: Likewise.
962 * lra.c: Likewise.
963 * lto-cgraph.c: Likewise.
964 * lto-section-in.c: Likewise.
965 * lto-section-out.c: Likewise.
966 * lto-streamer-in.c: Likewise.
967 * lto-streamer-out.c: Likewise.
968 * mode-switching.c: Likewise.
969 * modulo-sched.c: Likewise.
970 * omp-low.c: Likewise.
971 * optabs.c: Likewise.
972 * passes.c: Likewise.
973 * postreload-gcse.c: Likewise.
974 * postreload.c: Likewise.
975 * predict.c: Likewise.
976 * profile.c: Likewise.
977 * recog.c: Likewise.
978 * ree.c: Likewise.
979 * reg-stack.c: Likewise.
980 * regcprop.c: Likewise.
981 * reginfo.c: Likewise.
982 * regrename.c: Likewise.
983 * reload.c: Likewise.
984 * reload1.c: Likewise.
985 * reorg.c: Likewise.
986 * resource.c: Likewise.
987 * rtlanal.c: Likewise.
988 * sched-deps.c: Likewise.
989 * sched-ebb.c: Likewise.
990 * sched-rgn.c: Likewise.
991 * sel-sched-dump.c: Likewise.
992 * sel-sched-ir.c: Likewise.
993 * sel-sched.c: Likewise.
994 * shrink-wrap.c: Likewise.
995 * simplify-rtx.c: Likewise.
996 * statistics.c: Likewise.
997 * stmt.c: Likewise.
998 * stor-layout.c: Likewise.
999 * store-motion.c: Likewise.
1000 * symtab.c: Likewise.
1001 * targhooks.c: Likewise.
1002 * toplev.c: Likewise.
1003 * trans-mem.c: Likewise.
1004 * tree-cfg.c: Likewise.
1005 * tree-cfgcleanup.c: Likewise.
1006 * tree-dfa.c: Likewise.
1007 * tree-eh.c: Likewise.
1008 * tree-inline.c: Likewise.
1009 * tree-into-ssa.c: Likewise.
1010 * tree-nested.c: Likewise.
1011 * tree-nrv.c: Likewise.
1012 * tree-profile.c: Likewise.
1013 * tree-ssa-alias.c: Likewise.
1014 * tree-ssa-ccp.c: Likewise.
1015 * tree-ssa-copy.c: Likewise.
1016 * tree-ssa-copyrename.c: Likewise.
1017 * tree-ssa-dom.c: Likewise.
1018 * tree-ssa-operands.c: Likewise.
1019 * tree-ssa-propagate.c: Likewise.
1020 * tree-ssa-structalias.c: Likewise.
1021 * tree-ssa-tail-merge.c: Likewise.
1022 * tree-ssa-threadedge.c: Likewise.
1023 * tree-ssa-threadupdate.c: Likewise.
1024 * tree-ssa-uncprop.c: Likewise.
1025 * tree-ssa-uninit.c: Likewise.
1026 * tree-ssa.c: Likewise.
1027 * tree-stdarg.c: Likewise.
1028 * tree-tailcall.c: Likewise.
1029 * tree.c: Likewise.
1030 * tsan.c: Likewise.
1031 * valtrack.c: Likewise.
1032 * varasm.c: Likewise.
1033 * vmsdbgout.c: Likewise.
1034 * web.c: Likewise.
1035 * config/aarch64/aarch64.c: Add flattened includes from function.h.
1036 * config/alpha/alpha.c: Likewise.
1037 * config/arc/arc.c: Likewise.
1038 * config/arm/arm.c: Likewise.
1039 * config/avr/avr-log.c: Likewise.
1040 * config/avr/avr.c: Likewise.
1041 * config/bfin/bfin.c: Likewise.
1042 * config/c6x/c6x.c: Likewise.
1043 * config/cr16/cr16.c: Likewise.
1044 * config/cris/cris.c: Likewise.
1045 * config/darwin.c: Likewise.
1046 * config/epiphany/epiphany.c: Likewise.
1047 * config/epiphany/mode-switch-use.c: Likewise.
1048 * config/epiphany/resolve-sw-modes.c: Likewise.
1049 * config/fr30/fr30.c: Likewise.
1050 * config/frv/frv.c: Likewise.
1051 * config/h8300/h8300.c: Likewise.
1052 * config/i386/i386.c: Likewise.
1053 * config/ia64/ia64.c: Likewise.
1054 * config/iq2000/iq2000.c: Likewise.
1055 * config/lm32/lm32.c: Likewise.
1056 * config/m32c/m32c.c: Likewise.
1057 * config/m32r/m32r.c: Likewise.
1058 * config/m68k/m68k.c: Likewise.
1059 * config/mcore/mcore.c: Likewise.
1060 * config/mep/mep-pragma.c: Likewise.
1061 * config/mep/mep.c: Likewise.
1062 * config/microblaze/microblaze.c: Likewise.
1063 * config/mips/mips.c: Likewise.
1064 * config/mmix/mmix.c: Likewise.
1065 * config/mn10300/mn10300.c: Likewise.
1066 * config/moxie/moxie.c: Likewise.
1067 * config/msp430/msp430.c: Likewise.
1068 * config/nds32/nds32-cost.c: Likewise.
1069 * config/nds32/nds32-fp-as-gp.c: Likewise.
1070 * config/nds32/nds32-intrinsic.c: Likewise.
1071 * config/nds32/nds32-isr.c: Likewise.
1072 * config/nds32/nds32-md-auxiliary.c: Likewise.
1073 * config/nds32/nds32-memory-manipulation.c: Likewise.
1074 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1075 * config/nds32/nds32-predicates.c: Likewise.
1076 * config/nds32/nds32.c: Likewise.
1077 * config/nios2/nios2.c: Likewise.
1078 * config/pa/pa.c: Likewise.
1079 * config/pdp11/pdp11.c: Likewise.
1080 * config/rl78/rl78.c: Likewise.
1081 * config/rs6000/rs6000.c: Likewise.
1082 * config/rx/rx.c: Likewise.
1083 * config/s390/s390.c: Likewise.
1084 * config/score/score.c: Likewise.
1085 * config/sh/sh.c: Likewise.
1086 * config/sparc/sparc.c: Likewise.
1087 * config/spu/spu.c: Likewise.
1088 * config/stormy16/stormy16.c: Likewise.
1089 * config/tilegx/tilegx.c: Likewise.
1090 * config/tilepro/tilepro.c: Likewise.
1091 * config/v850/v850.c: Likewise.
1092 * config/vax/vax.c: Likewise.
1093 * config/xtensa/xtensa.c: Likewise.
1094
1095 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
1096
1097 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1098 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1099
1100 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1101
1102 * config/sh/sh-protos.h (fldi_ok): Remove.
1103 * config/sh/sh.c (fldi_ok): Likewise.
1104 (sh_secondary_reload): Don't use fldi_ok.
1105 * config/sh/constraints.md (G constraint, H constraint): Don't use
1106 fldi_ok.
1107
1108 2014-10-16 Martin Liska <mliska@suse.cz>
1109
1110 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1111 Cast to unsigned long.
1112 (sem_item_optimizer::dump_cong_classes): Likewise.
1113
1114 2014-10-16 Tom de Vries <tom@codesourcery.com>
1115
1116 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1117 with SSA_NAME_IN_FREELIST.
1118
1119 2014-10-16 Richard Biener <rguenther@suse.de>
1120
1121 PR middle-end/63554
1122 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1123 (fold_builtin_strncat_chk): Move ...
1124 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1125 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1126
1127 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1128
1129 PR target/59401
1130 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1131 GBR to 0.
1132
1133 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1134 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1135 Anna Tikhonova <anna.tikhonova@intel.com>
1136 Ilya Tocar <ilya.tocar@intel.com>
1137 Andrey Turetskiy <andrey.turetskiy@intel.com>
1138 Ilya Verbin <ilya.verbin@intel.com>
1139 Kirill Yukhin <kirill.yukhin@intel.com>
1140 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1141
1142 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1143 V64QI modes.
1144
1145 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1146 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1147 Anna Tikhonova <anna.tikhonova@intel.com>
1148 Ilya Tocar <ilya.tocar@intel.com>
1149 Andrey Turetskiy <andrey.turetskiy@intel.com>
1150 Ilya Verbin <ilya.verbin@intel.com>
1151 Kirill Yukhin <kirill.yukhin@intel.com>
1152 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1153
1154 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1155 V16SI, V32HI, V64QI modes.
1156
1157 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1158
1159 PR target/53513
1160 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1161 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1162
1163 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1164 to match fp insn patterns.
1165 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1166 list.
1167 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1168 expand_df_unop, expand_df_binop): Remove.
1169 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1170 FPSCR_STAT_REG as not call clobbered.
1171 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1172 invoking fpscr_set_from_mem.
1173
1174 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
1175 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
1176 FPSCR_STAT_REG.
1177 (REGISTER_NAMES): Adjust.
1178 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1179 (FIRST_PSEUDO_REGISTER): Increase to 156.
1180 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
1181 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
1182 FPSCR_STAT_REG.
1183 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
1184 FPSCR_MODES_REG and FPSCR_STAT_REG.
1185 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1186
1187 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
1188 FPSCR_SZ): Add new constants.
1189 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
1190
1191 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
1192 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
1193 Use TARGET_FPU_ANY condition.
1194 (fpu_switch peephole2): Remove.
1195 (fpu_switch split): Use simple_mem_operand to capture the mem and
1196 adjust split implementation.
1197 (extend_psi_si, truncate_si_psi): New insns.
1198 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
1199 set of FPSCR_MODES_REG.
1200
1201 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
1202 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
1203 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
1204 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
1205 call_value_compact, call_value_compact_rettramp, call,
1206 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
1207 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
1208 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1209 sibcall_value_compact, sibcall_value, call_value_pop_compact,
1210 call_value_pop_compact_rettramp, various unnamed splits):
1211 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
1212 function uses.
1213
1214 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1215 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1216 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1217 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1218 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1219
1220 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1221 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1222 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1223 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1224 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1225 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1226 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
1227
1228 2014-10-16 Martin Liska <mliska@suse.cz>
1229 Jan Hubicka <hubicka@ucw.cz>
1230
1231 * Makefile.in: New object files included.
1232 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1233 is printed.
1234 (verify_edge_corresponds_to_fndecl): More sensitive verification
1235 of nodes that are merged by IPA ICF.
1236 * cgraph.h (cgraph_node::num_references): New function.
1237 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1238 * common.opt: New options ipa-icf, ipa-icf-functions and
1239 ipa-icf-variables introduced.
1240 * doc/invoke.texi: Documentation of new options introduced.
1241 * ipa-icf-gimple.c: New file.
1242 * ipa-icf-gimple.h: New file.
1243 * ipa-icf.c: New file.
1244 * ipa-icf.h: New file.
1245 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1246 (input_overwrite_node): Likewise.
1247 * lto-section-in.c: New icf section added.
1248 * lto-streamer.h (enum lto_section_type): Likewise.
1249 * opts.c (common_handle_option): New option added.
1250 * passes.def: New pass included.
1251 * timevar.def: Time variable for IPA ICF added.
1252 * tree-pass.h: New IPA ICF pass entry point added.
1253
1254 2014-10-16 Richard Biener <rguenther@suse.de>
1255
1256 PR tree-optimization/63168
1257 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1258 latches if after merging they are no longer simple.
1259 * cfghooks.c (merge_blocks): Handle merging a latch block
1260 into another block.
1261
1262 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1263 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1264 Anna Tikhonova <anna.tikhonova@intel.com>
1265 Ilya Tocar <ilya.tocar@intel.com>
1266 Andrey Turetskiy <andrey.turetskiy@intel.com>
1267 Ilya Verbin <ilya.verbin@intel.com>
1268 Kirill Yukhin <kirill.yukhin@intel.com>
1269 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1270
1271 * config/i386/sse.md
1272 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1273 support AVX-512VL instructions.
1274
1275 2014-10-16 DJ Delorie <dj@redhat.com>
1276
1277 * tree-core.h: Fix comment to not assume pointers are multiples of
1278 bytes.
1279
1280 2014-10-15 Tom Tromey <tromey@redhat.com>
1281
1282 * timevar.h (class auto_timevar): New class.
1283
1284 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
1285
1286 PR go/59432
1287 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1288 Remove the second alternative.
1289 (regprefix): Remove mode attribute.
1290 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1291 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1292
1293 Revert:
1294 2013-11-05 Ian Lance Taylor <iant@google.com>
1295
1296 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1297 If possible, add .cfi directives to record change to bx.
1298 * config/i386/i386.c (ix86_emit_cfi): New function.
1299 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1300
1301 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
1302
1303 PR lto/62026
1304 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1305 to duplicate.
1306 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1307 at WPA time.
1308
1309 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
1310
1311 PR rtl-optimization/63448
1312 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
1313 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
1314 (LRA_MAX_INHERITANCE_PASSES): Use it.
1315 (lra_constraint_iter_after_spill): Remove.
1316 (lra_assignment_iter): New.
1317 (lra_assignment_iter_after_spill): New.
1318 * lra-assigns.c (lra_assignment_iter): New.
1319 (lra_assignment_iter_after_spill): New.
1320 (former_reload_pseudo_spill_p): New.
1321 (spill_for): Set up former_reload_pseudo_spill_p.
1322 (setup_live_pseudos_and_spill_after_risky): Ditto.
1323 (assign_by_spills): Ditto.
1324 (lra_assign): Increment lra_assignment_iter. Print the iteration
1325 number. Reset former_reload_pseudo_spill_p. Check
1326 lra_assignment_iter_after_spill.
1327 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
1328 lra_assignment_iter and lra_assignment_iter_after_spill.
1329 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
1330 (lra_constraints): Remove code with
1331 lra_assignment_iter_after_spill.
1332
1333 2014-10-15 Teresa Johnson <tejohnson@google.com>
1334
1335 PR bootstrap/63432
1336 * tree-ssa-threadupdate.c (recompute_probabilities): Better
1337 overflow checking.
1338
1339 2014-10-15 Renlin Li <renlin.li@arm.com>
1340
1341 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1342 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
1343 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
1344 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
1345
1346 2014-10-15 Richard Biener <rguenther@suse.de>
1347
1348 * gimple-fold.c (gimple_fold_call): Properly keep virtual
1349 SSA form up-to-date when devirtualizing a call to
1350 __builtin_unreachable and avoid fixing up EH info here.
1351
1352 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1353 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1354 Anna Tikhonova <anna.tikhonova@intel.com>
1355 Ilya Tocar <ilya.tocar@intel.com>
1356 Andrey Turetskiy <andrey.turetskiy@intel.com>
1357 Ilya Verbin <ilya.verbin@intel.com>
1358 Kirill Yukhin <kirill.yukhin@intel.com>
1359 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1360
1361 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
1362 to support AVX-512BW.
1363 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
1364 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
1365 (define_insn "*<plusminus_insn><mode>3"): Ditto.
1366 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
1367 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1368 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
1369 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1370 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
1371 (define_insn "*andnot<mode>3"): Ditto.
1372 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
1373 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
1374 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1375 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
1376 (define_insn "*abs<mode>2"): Remove masking support.
1377 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
1378 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
1379 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
1380
1381 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1382 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1383 Anna Tikhonova <anna.tikhonova@intel.com>
1384 Ilya Tocar <ilya.tocar@intel.com>
1385 Andrey Turetskiy <andrey.turetskiy@intel.com>
1386 Ilya Verbin <ilya.verbin@intel.com>
1387 Kirill Yukhin <kirill.yukhin@intel.com>
1388 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1389
1390 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
1391 * config/i386/sse.md
1392 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
1393 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
1394 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
1395 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1396 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1397 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1398 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1399
1400 2014-10-15 Renlin Li <renlin.li@arm.com>
1401
1402 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
1403
1404 2014-10-15 Jakub Jelinek <jakub@redhat.com>
1405
1406 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
1407 MINUS_EXPR in unsigned type to avoid undefined behavior.
1408
1409 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
1410
1411 * stor-layout.c (self_referential_size): Do not promote arguments.
1412
1413 2014-10-15 Marek Polacek <polacek@redhat.com>
1414
1415 * doc/invoke.texi: Update to reflect that GNU11 is the default
1416 mode for C.
1417 * c-common.h (c_language_kind): Update comment.
1418
1419 2014-10-15 Richard Biener <rguenther@suse.de>
1420
1421 * hash-table.c: Include bconfig.h if building for the host.
1422 * hash-table.h: Do not include ggc.h on the host but just declare
1423 a few ggc allocation templates.
1424
1425 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
1426 Jeff Law <law@redhat.com>
1427
1428 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
1429 multiple hard registers, use smaller mode derived from MODE.
1430
1431 2014-10-15 Andreas Schwab <schwab@suse.de>
1432
1433 * explow.c (convert_memory_address_addr_space_1): Mark in_const
1434 as ATTRIBUTE_UNUSED.
1435
1436 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
1437
1438 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
1439 (decide_unrolling): ... this one.
1440 (peel_loops_completely): Remove.
1441 (decide_peel_simple): Remove.
1442 (decide_peel_once_rolling): Remove.
1443 (decide_peel_completely): Remove.
1444 (peel_loop_simple): Remove.
1445 (peel_loop_completely): Remove.
1446 (unroll_and_peel_loops): Rename to ...
1447 (unroll_loops): ... this one; handle only unrolling.
1448 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
1449 LPT_PEEL_SIMPLE.
1450 (UAP_PEEL): Remove.
1451 (unroll_and_peel_loops): Remove.
1452 (unroll_loops): New.
1453 * passes.def: Replace
1454 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
1455 * loop-init.c (gate_rtl_unroll_and_peel_loops,
1456 rtl_unroll_and_peel_loops): Rename to ...
1457 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
1458 (pass_rtl_unroll_and_peel_loops): Rename to ...
1459 (pass_rtl_unroll_loops): ... this one.
1460 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
1461 (make_pass_rtl_unroll_loops): New.
1462 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
1463 (canonicalize_loop_induction_variables): Update.
1464
1465 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1466
1467 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
1468 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
1469 !TARGET_HARD_FLOAT_POSTINC.
1470 (*lsip, *ssip): new instructions.
1471
1472 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1473
1474 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
1475 remove.
1476
1477 2014-10-14 Andrew Pinski <apinski@cavium.com>
1478
1479 * explow.c (convert_memory_address_addr_space): Rename to ...
1480 (convert_memory_address_addr_space_1): This. Add in_const argument.
1481 Inside a CONST RTL, permute the conversion and addition of constant
1482 for zero and sign extended pointers.
1483 (convert_memory_address_addr_space): New function.
1484
1485 2014-10-14 Andrew Pinski <apinski@cavium.com>
1486
1487 Revert:
1488 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
1489
1490 PR middle-end/49721
1491 * explow.c (convert_memory_address_addr_space): Also permute the
1492 conversion and addition of constant for zero-extend.
1493
1494 2014-10-14 DJ Delorie <dj@redhat.com>
1495
1496 * config/msp430/msp430-modes.def (PSI): Add.
1497
1498 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
1499 (msp430_hard_regno_nregs_with_padding): New.
1500 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
1501 (msp430_hard_regno_nregs_has_padding): New.
1502 (msp430_hard_regno_nregs_with_padding): New.
1503 (msp430_unwind_word_mode): Use PSImode instead of SImode.
1504 (msp430_addr_space_legitimate_address_p): New.
1505 (msp430_asm_integer): New.
1506 (msp430_init_dwarf_reg_sizes_extra): New.
1507 (msp430_print_operand): Use X suffix for PSImode even in small model.
1508 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
1509 (PTR_SIZE): ...but 4 bytes for EH.
1510 (SIZE_TYPE): Use __int20.
1511 (PTRDIFF_TYPE): Likewise.
1512 (INCOMING_FRAME_SP_OFFSET): Adjust.
1513 * config/msp430/msp430.md (movqi_topbyte): New.
1514 (movpsi): Use fixed suffixes.
1515 (movsipsi2): Enable for 430X, not large model.
1516 (extendhipsi2): Likewise.
1517 (zero_extendhisi2): Likewise.
1518 (zero_extendhisipsi2): Likewise.
1519 (extend_and_shift1_hipsi2): Likewise.
1520 (extendpsisi2): Likewise.
1521 (*bitbranch<mode>4_z): Fix suffix logic.
1522
1523 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
1524
1525 PR ada/62019
1526 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
1527 do not choke on null node.
1528 <VAR_DECL>: Likewise.
1529
1530 2014-10-14 DJ Delorie <dj@redhat.com>
1531
1532 * machmode.h (int_n_data_t): New.
1533 (int_n_enabled_p): New.
1534 (int_n_data): New.
1535 * tree.c (int_n_enabled_p): New.
1536 (int_n_trees): New.
1537 (make_or_reuse_type): Check for all __intN types, not just
1538 __int128.
1539 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
1540 entries.
1541 * tree.h (int128_integer_type_node): Remove.
1542 (int128_unsigned_type_node): Remove.
1543 (int_n_trees_t): New.
1544 (int_n_enabled_p): New.
1545 (int_n_trees): New.
1546 * toplev.c (standard_type_bitsize): New.
1547 (do_compile): Check which __intN types are enabled for the current
1548 run.
1549 * builtin-types.def (BT_INT128): Remove.
1550 (BT_UINT128): Remove.
1551 * machmode.def: Add macro to create __int128 for all targets.
1552 * stor-layout.c (mode_for_size): Support __intN types.
1553 (smallest_mode_for_size): Likewise.
1554 (initialize_sizetypes): Support __intN types.
1555 * genmodes.c (struct mode_data): Add int_n field.
1556 (blank_mode): Likewise.
1557 (INT_N): New.
1558 (make_int_n): New.
1559 (emit_insn_modes_h): Count __intN entries and define
1560 NUM_INT_N_ENTS.
1561 (emit_mode_int_n): New.
1562 (emit_insn_modes_c): Call it.
1563 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1564 types, not just __int128.
1565 * tree-core.h (integer_type_kind): Remove __int128-specific
1566 entries, reserve spots for __intN entries.
1567
1568 * config/msp430/msp430-modes.def (PSI): Add.
1569
1570 2014-10-14 Kito Cheng <kito@0xlab.org>
1571
1572 * ira.c: Fix typo in comment.
1573 * ira.h: Ditto.
1574 * ira-build.c: Ditto.
1575 * ira-color.c: Ditto.
1576 * ira-emit.c: Ditto.
1577 * ira-int.h: Ditto.
1578 * ira-lives.c: Ditto.
1579
1580 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
1581
1582 PR rtl-optimization/63475
1583 * alias.c (true_dependence_1): Always use get_addr to extract
1584 true address operands from x_addr and mem_addr. Use extracted
1585 address operands to check for references with alignment ANDs.
1586 Use extracted address operands with find_base_term and
1587 base_alias_check. For noncanonicalized operands call canon_rtx with
1588 extracted address operand.
1589 (write_dependence_1): Ditto.
1590 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
1591
1592 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
1593
1594 PR target/63534
1595 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1596 __morestack local.
1597
1598 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1599 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1600 Anna Tikhonova <anna.tikhonova@intel.com>
1601 Ilya Tocar <ilya.tocar@intel.com>
1602 Andrey Turetskiy <andrey.turetskiy@intel.com>
1603 Ilya Verbin <ilya.verbin@intel.com>
1604 Kirill Yukhin <kirill.yukhin@intel.com>
1605 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1606
1607 * config/i386/i386.c
1608 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1609 (ix86_expand_int_vcond): Ditto.
1610
1611 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1612 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1613 Anna Tikhonova <anna.tikhonova@intel.com>
1614 Ilya Tocar <ilya.tocar@intel.com>
1615 Andrey Turetskiy <andrey.turetskiy@intel.com>
1616 Ilya Verbin <ilya.verbin@intel.com>
1617 Kirill Yukhin <kirill.yukhin@intel.com>
1618 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1619
1620 * config/i386/i386.c
1621 (emit_reduc_half): Handle V64QI and V32HI mode.
1622 * config/i386/sse.md
1623 (define_mode_iterator VI_AVX512BW): New.
1624 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1625
1626 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1627 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1628 Anna Tikhonova <anna.tikhonova@intel.com>
1629 Ilya Tocar <ilya.tocar@intel.com>
1630 Andrey Turetskiy <andrey.turetskiy@intel.com>
1631 Ilya Verbin <ilya.verbin@intel.com>
1632 Kirill Yukhin <kirill.yukhin@intel.com>
1633 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1634
1635 * config/i386/sse.md
1636 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1637
1638 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1639 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1640 Anna Tikhonova <anna.tikhonova@intel.com>
1641 Ilya Tocar <ilya.tocar@intel.com>
1642 Andrey Turetskiy <andrey.turetskiy@intel.com>
1643 Ilya Verbin <ilya.verbin@intel.com>
1644 Kirill Yukhin <kirill.yukhin@intel.com>
1645 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1646
1647 * config/i386/i386.c
1648 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1649 * config/i386/sse.md
1650 (define_mode_iterator VI): Add V64QI and V32HI modes.
1651
1652 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1653 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1654 Anna Tikhonova <anna.tikhonova@intel.com>
1655 Ilya Tocar <ilya.tocar@intel.com>
1656 Andrey Turetskiy <andrey.turetskiy@intel.com>
1657 Ilya Verbin <ilya.verbin@intel.com>
1658 Kirill Yukhin <kirill.yukhin@intel.com>
1659 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1660
1661 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
1662
1663 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1664 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1665 Anna Tikhonova <anna.tikhonova@intel.com>
1666 Ilya Tocar <ilya.tocar@intel.com>
1667 Andrey Turetskiy <andrey.turetskiy@intel.com>
1668 Ilya Verbin <ilya.verbin@intel.com>
1669 Kirill Yukhin <kirill.yukhin@intel.com>
1670 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1671
1672 * config/i386/sse.md
1673 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1674 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1675
1676 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1677 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1678 Anna Tikhonova <anna.tikhonova@intel.com>
1679 Ilya Tocar <ilya.tocar@intel.com>
1680 Andrey Turetskiy <andrey.turetskiy@intel.com>
1681 Ilya Verbin <ilya.verbin@intel.com>
1682 Kirill Yukhin <kirill.yukhin@intel.com>
1683 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1684
1685 * config/i386/sse.md
1686 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1687 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1688
1689 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1690 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1691 Anna Tikhonova <anna.tikhonova@intel.com>
1692 Ilya Tocar <ilya.tocar@intel.com>
1693 Andrey Turetskiy <andrey.turetskiy@intel.com>
1694 Ilya Verbin <ilya.verbin@intel.com>
1695 Kirill Yukhin <kirill.yukhin@intel.com>
1696 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1697
1698 * config/i386/sse.md
1699 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1700 (define_mode_iterator VI2_AVX2): Add V32HI mode.
1701 (define_expand "mul<mode>3<mask_name>"): Add masking.
1702 (define_insn "*mul<mode>3<mask_name>"): Ditto.
1703 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
1704 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
1705 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
1706 (define_mode_attr SDOT_PMADD_SUF): Ditto.
1707 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
1708 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
1709 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
1710 (define_insn "avx2_packusdw"): Delete.
1711 (define_insn "sse4_1_packusdw"): Ditto.
1712 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
1713
1714 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1715 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1716 Anna Tikhonova <anna.tikhonova@intel.com>
1717 Ilya Tocar <ilya.tocar@intel.com>
1718 Andrey Turetskiy <andrey.turetskiy@intel.com>
1719 Ilya Verbin <ilya.verbin@intel.com>
1720 Kirill Yukhin <kirill.yukhin@intel.com>
1721 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1722
1723 * config/i386/sse.md
1724 (define_insn "vec_dup<mode>"): Update constraints.
1725
1726 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1727 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1728 Anna Tikhonova <anna.tikhonova@intel.com>
1729 Ilya Tocar <ilya.tocar@intel.com>
1730 Andrey Turetskiy <andrey.turetskiy@intel.com>
1731 Ilya Verbin <ilya.verbin@intel.com>
1732 Kirill Yukhin <kirill.yukhin@intel.com>
1733 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1734
1735 * config/i386/sse.md
1736 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
1737 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
1738 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
1739
1740 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1741 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1742 Anna Tikhonova <anna.tikhonova@intel.com>
1743 Ilya Tocar <ilya.tocar@intel.com>
1744 Andrey Turetskiy <andrey.turetskiy@intel.com>
1745 Ilya Verbin <ilya.verbin@intel.com>
1746 Kirill Yukhin <kirill.yukhin@intel.com>
1747 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1748
1749 * config/i386/sse.md
1750 (define_expand "mul<mode>3<mask_name>"): Add masking.
1751
1752 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1753 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1754 Anna Tikhonova <anna.tikhonova@intel.com>
1755 Ilya Tocar <ilya.tocar@intel.com>
1756 Andrey Turetskiy <andrey.turetskiy@intel.com>
1757 Ilya Verbin <ilya.verbin@intel.com>
1758 Kirill Yukhin <kirill.yukhin@intel.com>
1759 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1760
1761 * config/i386/sse.md
1762 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
1763 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
1764
1765 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1766 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1767 Anna Tikhonova <anna.tikhonova@intel.com>
1768 Ilya Tocar <ilya.tocar@intel.com>
1769 Andrey Turetskiy <andrey.turetskiy@intel.com>
1770 Ilya Verbin <ilya.verbin@intel.com>
1771 Kirill Yukhin <kirill.yukhin@intel.com>
1772 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1773
1774 * config/i386/sse.md
1775 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
1776 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
1777 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
1778 Ditto.
1779
1780 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1781 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1782 Anna Tikhonova <anna.tikhonova@intel.com>
1783 Ilya Tocar <ilya.tocar@intel.com>
1784 Andrey Turetskiy <andrey.turetskiy@intel.com>
1785 Ilya Verbin <ilya.verbin@intel.com>
1786 Kirill Yukhin <kirill.yukhin@intel.com>
1787 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1788
1789 * config/i386/sse.md
1790 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
1791 use VF_128_256 mode iterator and update assembler emit code.
1792 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
1793 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
1794 Add masking, use VF_128_256 mode iterator.
1795 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
1796 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
1797 Add masking, use VF_128_256 mode iterator and update assembler emit
1798 code.
1799 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
1800 (define_mode_attr avx512flogicsuff): Delete.
1801 (define_insn "avx512f_<logic><mode>"): Ditto.
1802 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
1803 MODE_TI.
1804 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1805
1806 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1807 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1808 Anna Tikhonova <anna.tikhonova@intel.com>
1809 Ilya Tocar <ilya.tocar@intel.com>
1810 Andrey Turetskiy <andrey.turetskiy@intel.com>
1811 Ilya Verbin <ilya.verbin@intel.com>
1812 Kirill Yukhin <kirill.yukhin@intel.com>
1813 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1814
1815 * config/i386/sse.md
1816 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
1817 (define_expand "vashr<mode>3<mask_name>"): Add masking,
1818 use VI12_128 mode iterator.
1819 (define_expand "ashrv2di3<mask_name>"): New.
1820
1821 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1822 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1823 Anna Tikhonova <anna.tikhonova@intel.com>
1824 Ilya Tocar <ilya.tocar@intel.com>
1825 Andrey Turetskiy <andrey.turetskiy@intel.com>
1826 Ilya Verbin <ilya.verbin@intel.com>
1827 Kirill Yukhin <kirill.yukhin@intel.com>
1828 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1829
1830 * config/i386/i386.c
1831 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
1832 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
1833 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
1834 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
1835 CODE_FOR_avx512vl_ucmpv4si3_mask.
1836 * config/i386/sse.md
1837 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
1838 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
1839 (define_insn
1840 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
1841 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
1842 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
1843 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
1844 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
1845 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
1846
1847 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1848 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1849 Anna Tikhonova <anna.tikhonova@intel.com>
1850 Ilya Tocar <ilya.tocar@intel.com>
1851 Andrey Turetskiy <andrey.turetskiy@intel.com>
1852 Ilya Verbin <ilya.verbin@intel.com>
1853 Kirill Yukhin <kirill.yukhin@intel.com>
1854 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1855
1856 * config/i386/sse.md
1857 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
1858 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
1859 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
1860 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
1861 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
1862 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
1863 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1864 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1865 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
1866
1867 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1868 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1869 Anna Tikhonova <anna.tikhonova@intel.com>
1870 Ilya Tocar <ilya.tocar@intel.com>
1871 Andrey Turetskiy <andrey.turetskiy@intel.com>
1872 Ilya Verbin <ilya.verbin@intel.com>
1873 Kirill Yukhin <kirill.yukhin@intel.com>
1874 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1875
1876 * config/i386/sse.md
1877 (define_insn "avx512f_blendm<mode>"): Delete.
1878 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
1879 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
1880 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
1881 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
1882 (define_insn
1883 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1884 Remove.
1885 (define_insn
1886 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1887 New.
1888 (define_insn
1889 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1890 Ditto.
1891 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
1892 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
1893 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
1894 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
1895 Delete.
1896 (define_insn
1897 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
1898 New.
1899 (define_insn
1900 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
1901 Ditto.
1902 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
1903 Delete.
1904 (define_insn
1905 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
1906 New.
1907 (define_insn
1908 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
1909 Ditto.
1910
1911 2014-10-14 Richard Biener <rguenther@suse.de>
1912
1913 PR tree-optimization/63512
1914 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
1915 modified.
1916
1917 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
1918
1919 PR target/63260
1920 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
1921 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
1922 of FPSCR.
1923 (negsf2_i): Rename to *negsf2_i.
1924 (abssf2_i): Rename to *abssf2_i.
1925 (negdf2_i): Rename to *negdf2_i.
1926 (absdf2_i): Rename to *absdf2_i.
1927
1928 2014-10-14 Felix Yang <felix.yang@huawei.com>
1929 Jeff Law <law@redhat.com>
1930
1931 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
1932 "replace" into boolean bitfields; turn member "loop_depth" into a short
1933 integer; add new member "no_equiv" and "reserved".
1934 (no_equiv): Set no_equiv of struct equivalence if register is marked
1935 as having no known equivalence.
1936 (update_equiv_regs): Check all definitions for a multiple-set
1937 register to make sure that the RHS have the same value.
1938
1939 2014-10-13 Richard Henderson <rth@redhat.com>
1940
1941 * combine-stack-adj.c (no_unhandled_cfa): New.
1942 (maybe_merge_cfa_adjust): New.
1943 (combine_stack_adjustments_for_block): Use them.
1944
1945 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
1946
1947 * Makefile.in (TAGS): Tag ../include files.
1948
1949 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1950
1951 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
1952 to rs6000_dbx_register_number.
1953 (DWARF_FRAME_REGNUM): Redefine as identity map.
1954 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
1955 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
1956 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
1957 argument to handle .debug_frame and .eh_frame directly. Always
1958 translate SPE high register numbers. Add special treatment for CR,
1959 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
1960
1961 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
1962 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
1963 (RS6000_USE_DWARF_NUMBERING): Define.
1964 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
1965 (RS6000_USE_DWARF_NUMBERING): Define.
1966 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
1967 (RS6000_USE_DWARF_NUMBERING): Define.
1968 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
1969 (RS6000_USE_DWARF_NUMBERING): Define.
1970 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
1971 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
1972
1973 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
1974
1975 * config/i386/i386.c (ix86_address_cost): Lower cost for
1976 when address contains GOT register.
1977
1978 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
1979 Vladimir Makarov <vmakarov@redhat.com>
1980
1981 PR target/8340
1982 PR middle-end/47602
1983 PR rtl-optimization/55458
1984 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
1985 (ix86_init_pic_reg): New.
1986 (ix86_select_alt_pic_regnum): Add check on pseudo register.
1987 (ix86_save_reg): Likewise.
1988 (ix86_expand_prologue): Remove PIC register initialization
1989 now performed in ix86_init_pic_reg.
1990 (ix86_output_function_epilogue): Add check on pseudo register.
1991 (set_pic_reg_ever_alive): New.
1992 (legitimize_pic_address): Replace df_set_regs_ever_live with new
1993 set_pic_reg_ever_alive.
1994 (legitimize_tls_address): Likewise.
1995 (ix86_pic_register_p): New check.
1996 (ix86_delegitimize_address): Add check on pseudo register.
1997 (ix86_expand_call): Insert move from pseudo PIC register to ABI
1998 defined REAL_PIC_OFFSET_TABLE_REGNUM.
1999 (TARGET_INIT_PIC_REG): New.
2000 (TARGET_USE_PSEUDO_PIC_REG): New.
2001 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2002 if pic_offset_table_rtx exists.
2003 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2004 Document.
2005 * doc/tm.texi: Regenerate.
2006 * function.c (assign_parms): Generate pseudo register for PIC.
2007 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2008 register.
2009 * ira-color.c (color_pass): Add check on pseudo register.
2010 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2011 register.
2012 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2013 register.
2014 (ira): Add target specific PIC register initialization.
2015 (do_reload): Keep PIC pseudo register.
2016 * lra-assigns.c (spill_for): Add checks on pseudo register.
2017 * lra-constraints.c (contains_symbol_ref_p): New.
2018 (lra_constraints): Enable lra risky transformations when PIC is pseudo
2019 register.
2020 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2021 * target.def (use_pseudo_pic_reg): New.
2022 (init_pic_reg): New.
2023
2024 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2025
2026 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2027 Remove m_SILVERMONT and m_INTEL from the tune.
2028
2029 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2030
2031 PR libfortran/63471
2032 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2033 when _HPUX_SOURCE is defined.
2034
2035 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2036
2037 PR tree-optimization/62127
2038 * tree.c (remap_type_1): When remapping array, remap
2039 also its type.
2040
2041 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
2042
2043 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2044 longer impact parallelization.
2045
2046 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2047
2048 PR bootstrap/63496
2049 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2050
2051 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
2052
2053 * asan.c (instrument_derefs): BIT_FIELD_REF added.
2054
2055 2014-10-13 Richard Biener <rguenther@suse.de>
2056
2057 PR tree-optimization/63419
2058 * gimple-fold.h (gimple_convert): New function.
2059 * gimple-fold.c (gimple_convert): Likewise.
2060 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2061 to split out required conversions early.
2062
2063 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
2064
2065 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2066 Add the parts of an insn in reverse order, with the pattern at
2067 the top of the queue. Detect when we're iterating over a SEQUENCE
2068 pattern and in that case just consider patterns of subinstructions.
2069
2070 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
2071
2072 PR target/59401
2073 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2074 of rtx.
2075 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2076 insn walking.
2077 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2078 address. Use def chains to handle GBR clobbering call insns.
2079
2080 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2081
2082 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2083 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2084 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2085 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2086 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2087 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2088 * doc/gty.texi (for_user): Document new option.
2089 * gengtype.c (create_user_defined_type): Don't try to get a struct for
2090 char.
2091 (walk_type): Don't error out on for_user option.
2092 (write_func_for_structure): Emit user marking routines if requested by
2093 for_user option.
2094 (write_local_func_for_structure): Likewise.
2095 (main): Mark types with for_user option as used.
2096 * ggc.h (gt_pch_nx): Add overload for unsigned int.
2097 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2098 * hash-table.h (ggc_hasher): New struct.
2099 (hash_table::create_ggc): New function.
2100 (gt_pch_nx): New overload for hash_table.
2101
2102 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
2103
2104 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2105 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2106 * config/sh/sh.c: Likewise.
2107 * config/sh/sh-mem.cc: Likewise.
2108 * config/sh/sh.md: Likewise.
2109 * config/sh/predicates.md: Likewise.
2110 * config/sh/sync.md: Likewise.
2111
2112 2014-10-11 Martin Liska <mliska@suse.cz>
2113
2114 PR middle-end/63376
2115 * cgraphunit.c (symbol_table::process_new_functions): Missing call
2116 for call_cgraph_insertion_hooks added.
2117
2118 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2119
2120 PR c/63495
2121 * stor-layout.c (min_align_of_type): Don't decrease alignment
2122 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2123 TYPE_USER_ALIGN is set.
2124
2125 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
2126
2127 PR rtl-optimization/63483
2128 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2129 references when alignment ANDs are involved.
2130 (write_dependence_p): Ditto.
2131 (may_alias_p): Ditto.
2132
2133 2014-10-10 Marek Polacek <polacek@redhat.com>
2134
2135 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2136 * doc/invoke.texi: Document -fsanitize=object-size.
2137 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2138 or it into SANITIZE_UNDEFINED.
2139 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2140 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2141 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2142 * opts.c (common_handle_option): Handle -fsanitize=object-size.
2143 * ubsan.c: Include tree-object-size.h.
2144 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2145 (ubsan_expand_bounds_ifn): Use false instead of 0.
2146 (ubsan_expand_objsize_ifn): New function.
2147 (instrument_object_size): New function.
2148 (pass_ubsan::execute): Add object size instrumentation.
2149 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2150
2151 2014-10-10 Richard Henderson <rth@redhat.com>
2152
2153 PR target/63404
2154 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2155 Restrict the set of expressions we're willing to move.
2156
2157 2014-10-10 Jeff Law <law@redhat.com>
2158
2159 * ira.c (struct equivalence): Promote INIT_INSNs field to
2160 an rtx_insn_list. Add comments.
2161 (no_equiv): Promote LIST to an rtx_insn_list. Update
2162 testing for and creating the special marker. Use methods
2163 to extract the insn and next pointers. Promote INSN to an
2164 rtx_insn.
2165 (update_equiv_regs): Update test for special marker in the
2166 INIT_INSNs list.
2167
2168 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2169
2170 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2171 * configure: Regenerate.
2172 * config/aarch64/aarch64.c (aarch64_override_options): Handle
2173 TARGET_FIX_ERR_A53_835769_DEFAULT.
2174 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
2175 value to 2.
2176 * doc/install.texi (aarch64*-*-*): Document
2177 new --enable-fix-cortex-a53-835769 option.
2178
2179 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2180 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2181
2182 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
2183 (ADJUST_INSN_LENGTH): Define.
2184 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
2185 * config/aarch64/aarch64.c (is_mem_p): New function.
2186 (is_memory_op): Likewise.
2187 (aarch64_prev_real_insn): Likewise.
2188 (is_madd_op): Likewise.
2189 (dep_between_memop_and_curr): Likewise.
2190 (aarch64_madd_needs_nop): Likewise.
2191 (aarch64_final_prescan_insn): Likewise.
2192 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
2193 and -mno-fix-cortex-a53-835769 options.
2194
2195 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2196
2197 PR tree-optimization/63464
2198 * tree-switch-conversion.c (struct case_bit_test): Remove
2199 hi and lo fields, add wide_int mask field.
2200 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
2201 hi/lo fields into wide_int mask operations, optimize by pretending
2202 minval to be 0 if maxval is small enough.
2203 (process_switch): Adjust caller.
2204
2205 2014-10-10 Richard Biener <rguenther@suse.de>
2206
2207 PR tree-optimization/63379
2208 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
2209 a neutral operand for min/max when it is not a reduction chain.
2210
2211 2014-10-10 Richard Biener <rguenther@suse.de>
2212
2213 PR tree-optimization/63476
2214 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2215 (BB_LIVE_VOP_ON_EXIT): New define.
2216 (create_expression_by_pieces): Assign VUSEs to stmts.
2217 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2218 (pass_pre::execute): Assert virtual SSA form is up-to-date
2219 after insertion.
2220
2221 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
2222
2223 * lra-assigns.c (assign_by_spills): Error out on spill failure.
2224
2225 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
2226
2227 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2228 assertion.
2229
2230 2014-10-09 Richard Biener <rguenther@suse.de>
2231
2232 PR tree-optimization/63380
2233 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2234 may trap.
2235
2236 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
2237
2238 * config/avr/avr.opt (mmcu=): Change to have a string value.
2239 (mn-flash=, mskip-bug, march=, mrmw): New options.
2240 (HeaderInclude): New.
2241 (mmcu=): Remove Var / Init clauses.
2242 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2243 -specs option.
2244 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2245 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2246 (SYMBOL_FLAG_IO_LOW): Define.
2247 (avr_device_to_as, avr_device_to_ld): Don't declare.
2248 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2249 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2250 (EXTRA_SPEC_FUNCTIONS): Don't define.
2251 (ASM_SPEC): Translate -arch= option to -mmcu= option.
2252 (LINK_SPEC): Translate -arch= option to -m= option.
2253 Don't use device_to_ld / device_to_data_start.
2254 (STARTFILE_SPEC): Now empty.
2255 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2256 * config/avr/gen-avr-mmcu-specs.c: New file.
2257 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2258 (s-device-specs): Likewise.
2259 (GCC_PASSES): Add s-device-specs.
2260 (install-driver): Depend on install-device-specs.
2261 (install-device-specs): New rule.
2262 * config/avr/avr.c (avr_option_override): Look up mcu arch by
2263 avr_arch_index and provide fallback initialization for avr_n_flash.
2264 (varasm.h): #include.
2265 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2266 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2267 (avr_attribute_table): Add "io", "address" and "io_low".
2268 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2269 Add special handling for symbols with "io" and/or "address" attributes.
2270 (avr_asm_asm_output_aligned_bss): New function.
2271 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2272 as appropriate. Handle io_low attribute.
2273 (avr_out_sbxx_branch): Handle symbolic io addresses.
2274 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2275 avr_n_flash instead of avr_current_device->n_flash.
2276 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2277 (avr_emit_movmemhi): Likewise.
2278 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2279 Use TARGET_RMW instead of avr_current_device->dev_attributes.
2280 Don't define avr_current_device->macro (that's the specfile's job).
2281 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2282 * config/avr/avr.c (avr_2word_insn_p): Likewise.
2283 * config/avr/avr.md (*cpse.ne): Likewise.
2284 (mov<mode>): Use avr_eval_addr_attrib.
2285 (cbi): Change constraint for low_io_address_operand operand to "i".
2286 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2287 * config/avr/predicates.md (io_address_operand):
2288 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2289 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2290 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2291 Update prototype.
2292 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2293 * config/avr/genmultilib.awk: Use -march=.
2294 Remove Multilib matches processing.
2295 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2296 * config/avr/avr-arch.h: Add double include guard.
2297 (avr_mcu_t) <library_name>: Update comment.
2298 * config/avr/driver-avr.c (avr_device_to_as): Delete.
2299 (avr_device_to_ld, avr_device_to_data_start): Likewise.
2300 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2301 (avr_device_to_sp8): Likewise.
2302 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
2303
2304 * doc/extend.texi (io, address): Document new AVR variable attributes.
2305 (io_low): Likewise.
2306
2307 2014-10-09 Marek Polacek <polacek@redhat.com>
2308
2309 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2310
2311 2014-10-08 Richard Biener <rguenther@suse.de>
2312
2313 PR tree-optimization/61969
2314 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
2315 variables.
2316
2317 2014-10-09 Richard Biener <rguenther@suse.de>
2318
2319 PR tree-optimization/63445
2320 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
2321 overflow for non-equality compares.
2322
2323 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
2324
2325 PR rtl-optimization/57003
2326 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2327 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
2328 killing regs_invalidated_by_call.
2329
2330 2014-10-08 Teresa Johnson <tejohnson@google.com>
2331
2332 PR bootstrap/63432.
2333 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
2334 (ssa_fix_duplicate_block_edges): Invoke it.
2335 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
2336
2337 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
2338
2339 PR target/52941
2340 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2341 atomic_fetch_<fetchop_name>si_hard,
2342 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
2343 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
2344 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
2345 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
2346
2347 2014-10-08 Rong Xu <xur@google.com>
2348
2349 * gcov-tool.c (profile_overlap): New driver function
2350 to compute profile overlap.
2351 (print_overlap_usage_message): New.
2352 (overlap_usage): New.
2353 (do_overlap): New.
2354 (print_usage): Add calls to overlap function.
2355 (main): Ditto.
2356 * doc/gcov-tool.texi: Add documentation.
2357
2358 2014-10-08 Steve Ellcey <sellcey@mips.com>
2359
2360 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
2361 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
2362
2363 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
2364
2365 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
2366 pattern matching of MEM_REF.
2367 (check_stmt_for_type_change): Update.
2368
2369 2014-10-08 Steve Ellcey <sellcey@mips.com>
2370
2371 * config/mips/linux64.h: Remove.
2372 * config/mips/gnu-user64.h: Remove.
2373 * gcc.config (mips*-*-*): Remove references to linux64.h and
2374 gnu-user64.h
2375 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
2376 with modified version from gnu-user64.h.
2377 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
2378 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
2379 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
2380 linux64.h.
2381 (GNU_USER_LINK_EMULATION64): Ditto.
2382 (GNU_USER_LINK_EMULATIONN32): Ditto.
2383 (GLIBC_DYNAMIC_LINKER32): Ditto.
2384 (GLIBC_DYNAMIC_LINKER64): Ditto.
2385 (GLIBC_DYNAMIC_LINKERN32): Ditto.
2386 (UCLIBC_DYNAMIC_LINKER32): Ditto.
2387 (UCLIBC_DYNAMIC_LINKER64): Ditto.
2388 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
2389 (BIONIC_DYNAMIC_LINKERN32): Ditto.
2390 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
2391 (GLIBC_DYNAMIC_LINKER): Delete.
2392 (UCLIBC_DYNAMIC_LINKER): Delete.
2393
2394 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
2395 Richard Biener <rguenther@suse.de>
2396
2397 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
2398 Get address space from operand 0 (BASE).
2399
2400 2014-10-07 Iain Sandoe <iain@codesourcery.com>
2401
2402 PR target/61387
2403 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
2404
2405 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
2406
2407 * dwarf2out.c: Remove current_function_has_inlines.
2408 (gen_subprogram_die): Same.
2409 (gen_inlined_subroutine_die): Same.
2410
2411 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
2412
2413 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
2414 type.
2415 (_addcarry_u64): Ditto.
2416 (_addcarryx_u64): Ditto.
2417
2418 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2419
2420 * cgraph.h (cgraph_node::get_fun): Declare.
2421 * cgraph.c (cgraph_node::get_fun): New method.
2422 * ipa-inline.c (can_inline_edge_p): Use it.
2423
2424 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2425
2426 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
2427 and -ftrapping-math.
2428 * lto-wrapper.c (merge_and_complain): Likewise.
2429 (run_gcc): Likewise.
2430
2431 2014-10-06 Rong Xu <xur@google.com>
2432
2433 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
2434 * tree-profile.c: (params.h): New include.
2435 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
2436 and __gcov_indirect_call_topn_counters for
2437 indirect_call_topn_profile.
2438 (gimple_init_edge_profiler): New decls for
2439 __gcov_indirect_call_topn_profiler.
2440 (gimple_gen_ic_profiler): Generate the correct profiler call.
2441 (gimple_gen_ic_func_profiler): Fix format.
2442 * value-prof.c (params.h): New include.
2443 (dump_histogram_value): Hanlde indirect_call_topn counters.
2444 (stream_in_histogram_value): Ditto.
2445 (gimple_indirect_call_to_profile): Use indirect_call_topn
2446 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
2447 (gimple_find_values_to_profile): Hanlde indirect_call_topn
2448 counters.
2449 * value-prof.h (enum hist_type): Histrogram type for
2450 indirect_call_topn counters.
2451 * profile.c (instrument_values): Instrument
2452 indirect_call_topn counters.
2453
2454 2014-10-06 Rong Xu <xur@google.com>
2455
2456 * Makefile.in: Fix dependence.
2457 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
2458 indirect call topn profiler.
2459 * gcov-io.h: Ditto.
2460
2461 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2462
2463 * calls.c (expand_call): Do not use the target as the return slot if
2464 it is not sufficiently aligned.
2465
2466 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2467
2468 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
2469 discussion of permutes and why we don't handle them.
2470
2471 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2472
2473 * config/sparc/predicates.md (int_register_operand): Delete.
2474
2475 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2476
2477 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
2478
2479 2014-10-06 Jakub Jelinek <jakub@redhat.com>
2480
2481 * ubsan.h (ubsan_get_source_location): New prototype.
2482 * ubsan.c (ubsan_source_location_type): New variable.
2483 Function renamed to ...
2484 (ubsan_get_source_location_type): ... this. Cache
2485 return value in ubsan_source_location_type variable.
2486 (ubsan_source_location, ubsan_create_data): Use
2487 ubsan_get_source_location_type instead of
2488 ubsan_source_location_type.
2489 * asan.c (asan_protect_global): Don't protect globals
2490 with ubsan_get_source_location_type () type.
2491 (asan_add_global): Provide global decl location info
2492 if possible.
2493
2494 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2495
2496 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
2497 sanity check.
2498
2499 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2500
2501 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
2502 on size.
2503 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
2504 into vptr pointer.
2505 (ipa_polymorphic_call_context::dump): Fix formating.
2506 (walk_ssa_copies): Add logic avoiding loops; update uses.
2507 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
2508
2509 2014-10-02 Mark Wielaard <mjw@redhat.com>
2510
2511 PR debug/63239
2512 * dwarf2out.c (gen_subprogram_die): When a member function is
2513 explicitly deleted then add a DW_AT_GNU_deleted attribute.
2514 * langhooks.h (struct lang_hooks_for_decls): Add
2515 function_decl_deleted_p langhook.
2516 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
2517 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
2518
2519 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2520
2521 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
2522 NULL pointer checks.
2523 (ipa_polymorphic_call_context::get_dynamic_type): Return true
2524 if type doesn't change.
2525 * cgraph.h (cgraph_indirect_call_info): New flag.
2526 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
2527 (cgraph_node::dump): Dump it.
2528 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
2529 of context.get_dynamic_type.
2530 (ipa_make_edge_direct_to_target): Do not speculate
2531 edge that is already speuclative.
2532 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
2533 speculate to __builtin_unreachable
2534 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
2535 vptr_changed.
2536 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
2537
2538 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2539
2540 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
2541 get_dynamic_type; drop TODO.
2542 * ipa-polymorphic-call.c
2543 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
2544 for otr_type to be unknown.
2545
2546 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2547
2548 * common/config/score/score-common.c: Remove.
2549 * config.gcc: Remove support for score-*.
2550 * config/score/constraints.md: Remove.
2551 * config/score/elf.h: Remove.
2552 * config/score/predicates.md: Remove.
2553 * config/score/score-conv.h: Remove.
2554 * config/score/score-generic.md: Remove.
2555 * config/score/score-modes.def: Remove.
2556 * config/score/score-protos.h: Remove.
2557 * config/score/score.c: Remove.
2558 * config/score/score.h: Remove.
2559 * config/score/score.md: Remove.
2560 * config/score/score.opt: Remove.
2561 * doc/md.texi: Don't document score-*.
2562
2563 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2564
2565 PR pch/63429
2566 * genconditions.c: Directly include ggc.h before rtl.h.
2567
2568 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2569
2570 * ipa-polymorphic-call.c
2571 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2572 code determining speculative type.
2573 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2574
2575 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2576
2577 * altivec.md (altivec_lvsl): New define_expand.
2578 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2579 (altivec_lvsr): New define_expand.
2580 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2581 * rs6000.c (rs6000_expand_builtin): Change to use
2582 altivec_lvs[lr]_direct; remove commented-out code.
2583
2584 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2585
2586 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2587 Issue a warning message when vec_lvsl or vec_lvsr is used with a
2588 little endian target.
2589
2590 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2591
2592 * tree-pretty-print.c (dump_location): Make it extern. Dump also
2593 the column.
2594 * tree-pretty-print.h (dump_location): Declare.
2595 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2596 (pp_gimple_stmt_1): Likewise.
2597 (dump_implicit_edges): Likewise.
2598 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2599 LOCATION_LINE.
2600
2601
2602 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2603
2604 * gcc.c (driver::global_initializations): Remove "const" so
2605 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2606 and decoded_options_count.
2607
2608 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2609
2610 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2611 macro.
2612 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2613 TARGET_E500_DOUBLE case here.
2614
2615 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2616
2617 PR c++/54427
2618 PR c++/57198
2619 PR c++/58845
2620 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2621
2622 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2623
2624 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2625 * lto-cgraph.c (lto_output_edge, input_edge): Stream
2626 in_polymorphic_cdtor
2627 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2628 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2629 * cgraphclones.c (cgraph_edge::clone): Likewise.
2630 * ipa-prop.c (update_jump_functions_after_inlining,
2631 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2632 to possible_dynamic_type_change.
2633 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2634 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2635 IN_POLY_CDOTR argument.
2636
2637 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2638 for BASE and OUTER_TYPE being NULL.
2639 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2640 in_poly_cdtor parameter.
2641
2642 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2643
2644 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2645 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2646 TARGET_AVX512F.
2647 (expand_vec_perm_1): Likewise.
2648
2649 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2650 Uros Bizjak <ubizjak@gmail.com>
2651
2652 PR tree-optimization/61403
2653 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2654 error in comment. Also optimize 256-bit vectors for AVX2
2655 or AVX (floating vectors only), provided the first permutation
2656 can be performed in one insn.
2657
2658 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2659
2660 * gcc.c (class driver): New class.
2661 (main): Reimplement in terms of driver::main, moving most of the
2662 locals to be locals within individual methods of class driver.
2663 The remaining locals "explicit_link_files", "decoded_options" and
2664 "decoded_options_count" are used by multiple driver:: methods, and
2665 so become member data. Doing so isolates the argc/argv reads and
2666 writes. Replace "goto out" with a special exit code from
2667 new method driver::prepare_infiles. Split out the old
2668 implementation of main into the following...
2669 (driver::main): New function, corresponding to the old "main"
2670 implementation.
2671 (driver::set_progname): New function, taken from the old
2672 "main" implementation.
2673 (driver::expand_at_files): Likewise.
2674 (driver::decode_argv): Likewise.
2675 (driver::global_initializations): Likewise.
2676 (driver::build_multilib_strings): Likewise.
2677 (driver::set_up_specs): Likewise.
2678 (driver::putenv_COLLECT_GCC): Likewise.
2679 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2680 (driver::handle_unrecognized_options): Likewise.
2681 (driver::maybe_print_and_exit): Likewise.
2682 (driver::prepare_infiles): Likewise.
2683 (driver::do_spec_on_infiles): Likewise.
2684 (driver::maybe_run_linker): Likewise.
2685 (driver::final_actions): Likewise.
2686 (driver::get_exit_code): Likewise.
2687
2688 2014-10-03 Yury Gribov <y.gribov@samsung.com>
2689
2690 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2691 don't emit empty ctors.
2692
2693 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
2694
2695 * convert.c (convert_to_integer): Do not introduce useless conversions
2696 between integral types.
2697
2698 2014-10-03 David Sherwood <david.sherwood@arm.com>
2699
2700 * ira-int.h (ira_allocno): Mark hard_regno as signed.
2701
2702 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
2703
2704 * lra-constraints.c (inherit_in_ebb): Handle calls with
2705 multiple return values.
2706 * caller-save.c (save_call_clobbered_regs): Likewise.
2707
2708 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2709
2710 * tree-vect-data-refs.c (vect_permute_load_chain,
2711 vect_shift_permute_load_chain): Fix a typo in temporary var names,
2712 suffle3 to shuffle3.
2713
2714 PR libgomp/61200
2715 * omp-low.c (taskreg_contexts): New variable.
2716 (scan_omp_parallel): Push newly created context into taskreg_contexts
2717 vector and move record layout code to finish_taskreg_scan.
2718 (scan_omp_task): Likewise.
2719 (finish_taskreg_scan): New function.
2720 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
2721 vector elements and release it.
2722
2723 PR target/62128
2724 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
2725 of palignr arguments can't be used due to min 0 or max - min
2726 too high, try also op0, op1 order of palignr arguments.
2727
2728 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
2729
2730 * cgraph.h (ipa_polymorphic_call_context):
2731 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
2732 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
2733 * ipa-polymorphic-call.c
2734 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
2735 past end of dynamic types.
2736 (ipa_polymorphic_call_context::stream_out,
2737 speculative_outer_type): Stream dynamic flag.
2738 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
2739 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
2740 Clear DYNAMIC.
2741 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
2742 set it.
2743 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
2744 * ipa-prop.c (update_jump_functions_after_inlining,
2745 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
2746
2747 2014-10-02 Teresa Johnson <tejohnson@google.com>
2748
2749 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
2750 up when synthesizing counts to avoid rounding errors.
2751
2752 2014-10-02 Teresa Johnson <tejohnson@google.com>
2753
2754 PR middle-end/63422
2755 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
2756 asserts to handle incoming insanities.
2757
2758 2014-10-02 Martin Jambor <mjambor@suse.cz>
2759
2760 PR tree-optimization/63375
2761 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
2762 references.
2763
2764 2014-10-02 Olivier Hainque <hainque@adacore.com>
2765
2766 * Makefile.in (CROSS): Define, to @CROSS.
2767
2768 2014-10-02 Jakub Jelinek <jakub@redhat.com>
2769
2770 PR target/62128
2771 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
2772 if it expands to a single insn only.
2773 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
2774 fail unless in_order is true. Add forward declaration.
2775 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
2776 is useful for one_operand_p.
2777 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
2778
2779 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2780
2781 * cgraphclones.c (build_function_type_skip_args): Do not make new
2782 type variant of old.
2783
2784 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2785
2786 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
2787 when speculation is added.
2788 (ipa_edge_args): Add polymorphic_call_contexts.
2789 (ipa_get_ith_polymorhic_call_context): New accesor.
2790 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
2791 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
2792 (ipa_compute_jump_functions_for_edge): Compute contexts.
2793 (update_jump_functions_after_inlining): Update contexts.
2794 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
2795 update dumping; add speculative edge creation.
2796 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
2797 context updating.
2798 (update_indirect_edges_after_inlining): Pass down context.
2799 (ipa_edge_duplication_hook): Duplicate contexts.
2800 (ipa_write_node_info): Stream out contexts.
2801 (ipa_read_node_info): Stream in contexts.
2802 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
2803 types.
2804 (try_speculative_devirtualization): New function.
2805 * ipa-utils.h (try_speculative_devirtualization): Declare.
2806
2807 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2808
2809 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
2810 dumping during WPA.
2811
2812 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2813
2814 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
2815 type variants.
2816
2817 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2818
2819 * ipa-polymorphic-call.c
2820 (ipa_polymorphic_call_context::restrict_to_inner_class):
2821 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
2822 use speculation_consistent_p to do so; Add CONSDER_BASES
2823 and CONSIDER_PLACEMENT_NEW parameters.
2824 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
2825 short circuit obvious cases.
2826 (ipa_polymorphic_call_context::dump): Improve formatting.
2827 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
2828 combine_speculation_with to record speculations; Do not ICE when
2829 object is located in pointer type decl; do not ICE for methods
2830 of UNION_TYPE; do not record nonpolymorphic types.
2831 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
2832 (ipa_polymorphic_call_context::combine_speculation_with): New method.
2833 (ipa_polymorphic_call_context::combine_with): New method.
2834 (ipa_polymorphic_call_context::make_speculative): Move here; use
2835 combine speculation.
2836 * cgraph.h (ipa_polymorphic_call_context): Update
2837 restrict_to_inner_class prototype; add offset_by, make_speculative,
2838 combine_with, useless_p, combine_speculation_with and
2839 speculation_consistent_p methods.
2840 (ipa_polymorphic_call_context::offset_by): New method.
2841 (ipa_polymorphic_call_context::useless_p): New method.
2842
2843 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2844
2845 PR rtl-optimization/62151
2846 * combine.c (can_combine_p): Allow the destination register of INSN
2847 to be clobbered in I3.
2848 (subst): Do not substitute into clobbers of registers.
2849
2850 2014-10-01 Jakub Jelinek <jakub@redhat.com>
2851
2852 PR debug/63342
2853 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
2854 offset, TARGET_MEM_REF and SSA_NAME.
2855
2856 * config/i386/i386.c (expand_vec_perm_palignr): Handle
2857 256-bit vectors for TARGET_AVX2.
2858
2859 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
2860 dfirst permutation.
2861
2862 PR target/63428
2863 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
2864 argument to avx2_permv2ti.
2865
2866 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2867
2868 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
2869
2870 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
2871
2872 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
2873 (fmod<mode>3): Ditto.
2874 (fpremxf4_i387): Ditto.
2875 (reminderxf3): Ditto.
2876 (reminder<mode>3): Ditto.
2877 (fprem1xf4_i387): Ditto.
2878
2879 2014-09-30 Teresa Johnson <tejohnson@google.com>
2880
2881 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
2882 duplicate_blocks bitmap.
2883 (remove_ctrl_stmt_and_useless_edges): Ditto.
2884 (create_block_for_threading): Ditto.
2885 (compute_path_counts): New function.
2886 (update_profile): Ditto.
2887 (recompute_probabilities): Ditto.
2888 (update_joiner_offpath_counts): Ditto.
2889 (freqs_to_counts_path): Ditto.
2890 (clear_counts_path): Ditto.
2891 (ssa_fix_duplicate_block_edges): Update profile info.
2892 (ssa_create_duplicates): Pass new parameter.
2893 (ssa_redirect_edges): Remove old profile update.
2894 (thread_block_1): New duplicate_blocks bitmap,
2895 remove old profile update.
2896 (thread_single_edge): Pass new parameter.
2897
2898 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
2899
2900 PR middle-end/62120
2901 * varasm.c (decode_reg_name_and_count): Check availability for
2902 registers from ADDITIONAL_REGISTER_NAMES.
2903
2904 2014-09-30 David Malcolm <dmalcolm@redhat.com>
2905
2906 PR plugins/63410
2907 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
2908 (PLUGIN_HEADERS): Add pass-instances.def.
2909
2910 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
2911
2912 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
2913 iterator.
2914 * config/aarch64/aarch64-simd.md
2915 (aarch64_sqdmull_laneq<mode>): Expand iterator.
2916 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
2917 (vqdmulls_lane_s32): Fix return type.
2918 (vqdmulls_laneq_s32): New.
2919
2920 2014-09-30 Jakub Jelinek <jakub@redhat.com>
2921
2922 PR inline-asm/63282
2923 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
2924 or invert_jump_1 if jump isn't any_condjump_p.
2925
2926 2014-09-30 Terry Guo <terry.guo@arm.com>
2927
2928 * config/arm/arm-cores.def (cortex-m7): New core name.
2929 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
2930 (fpv5-d16): Ditto.
2931 * config/arm/arm-tables.opt: Regenerated.
2932 * config/arm/arm-tune.md: Regenerated.
2933 * config/arm/arm.h (TARGET_VFP5): New macro.
2934 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
2935 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
2936 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
2937 * doc/invoke.texi: Document new cpu and fpu names.
2938
2939 2014-09-30 Jiong Wang <jiong.wang@arm.com>
2940
2941 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
2942 before sinking insn.
2943
2944 2014-09-30 David Sherwood <david.sherwood@arm.com>
2945
2946 * ira-int.h (ira_allocno): Add "wmode" field.
2947 * ira-build.c (create_insn_allocnos): Add new "parent" function
2948 parameter.
2949 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
2950 that cannot be accessed in wmode.
2951
2952 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2953
2954 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
2955 integer overflow.
2956
2957 2014-09-29 Andi Kleen <ak@linux.intel.com>
2958
2959 * opts.c (print_filtered_help): Print --param min/max/default
2960 with -Q.
2961
2962 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
2963
2964 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
2965
2966 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
2967
2968 * tree-vrp.c (get_single_symbol): New function.
2969 (build_symbolic_expr): Likewise.
2970 (symbolic_range_based_on_p): New predicate.
2971 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
2972 for PLUS and MINUS. Do not drop symbolic ranges at the end.
2973 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
2974 operand is symbolic and based on the other operand.
2975
2976 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
2977
2978 * config/microblaze/microblaze.md (call_internal1): Use VOID
2979 instead of SI to fix "((void (*)(void)) 0)()" issue
2980
2981 2014-09-29 Nick Clifton <nickc@redhat.com>
2982
2983 * config/msp430/msp430.c (msp430_expand_prologue): Return a
2984 CLOBBER rtx for naked functions.
2985 (msp430_expand_epilogue): Likewise.
2986 (msp430_use_f5_series_hwmult): Cache result.
2987 (use_32bit_hwmult): Cache result.
2988 (msp430_no_hwmult): New function.
2989 (msp430_output_labelref): Use it.
2990
2991 2014-09-29 Jakub Jelinek <jakub@redhat.com>
2992
2993 PR middle-end/63247
2994 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
2995 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
2996 use the alignment of avar rather than ovar.
2997
2998 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
2999
3000 * config/pa/pa.c (pa_output_function_epilogue): Only update
3001 last_address when a nonnote insn is found.
3002
3003 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3004
3005 PR ipa/60665
3006 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3007
3008 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3009
3010 PR ipa/62121
3011 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3012 fix pasto in checking array size.
3013
3014 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3015
3016 PR middle-end/35545
3017 * passes.def (pass_tracer): Move before last dominator pass.
3018
3019 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
3020
3021 * gcc.c (try_generate_repro): Remove argument "prog". Change all
3022 users.
3023 (run_attempt): Handle errors of "pex_run" invocation.
3024
3025 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
3026
3027 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3028 (CC1_SPEC): Define.
3029 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3030 (TARGET_ASAN_SHADOW_OFFSET): Define.
3031
3032 2014-09-26 Martin Liska <mliska@suse.cz>
3033
3034 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3035 introduced.
3036 * cgraph.h: Likewise.
3037 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3038 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3039 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3040 * tree-ssa-alias.h: Likewise.
3041
3042 2014-09-26 Jakub Jelinek <jakub@redhat.com>
3043 Max Ostapenko <m.ostapenko@partner.samsung.com>
3044
3045 * common.opt: New option.
3046 * doc/invoke.texi: Describe new option.
3047 * gcc.c (execute): Don't free first string early, but at the end
3048 of the function. Call retry_ice if compiler exited with
3049 ICE_EXIT_CODE.
3050 (main): Factor out common code.
3051 (print_configuration): New function.
3052 (files_equal_p): Likewise.
3053 (check_repro): Likewise.
3054 (run_attempt): Likewise.
3055 (do_report_bug): Likewise.
3056 (append_text): Likewise.
3057 (try_generate_repro): Likewise
3058
3059 2014-09-25 Andi Kleen <ak@linux.intel.com>
3060
3061 * config/i386/i386.c (x86_print_call_or_nop): New function.
3062 (x86_function_profiler): Support -mnop-mcount and
3063 -mrecord-mcount.
3064 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3065 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3066
3067 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3068
3069 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3070 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3071 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3072 Remove.
3073
3074 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3075
3076 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3077 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3078 types_odr_comparable): Declare.
3079 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3080 * ipa-polymorphic-call.c: New file.
3081 (contains_polymorphic_type_p, possible_placement_new,
3082 ipa_polymorphic_call_context::restrict_to_inner_class,
3083 contains_type_p, decl_maybe_in_construction_p,
3084 ipa_polymorphic_call_context::stream_out,
3085 ipa_polymorphic_call_context::debug,
3086 ipa_polymorphic_call_context::stream_in,
3087 ipa_polymorphic_call_context::set_by_decl,
3088 ipa_polymorphic_call_context::set_by_invariant,
3089 walk_ssa_copies,
3090 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3091 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3092 extr_type_from_vtbl_ptr_store, record_known_type
3093 check_stmt_for_type_change,
3094 ipa_polymorphic_call_context::get_dynamic_type): Move here from
3095 ipa-devirt.c
3096 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3097 and streamer-hooks.h
3098 (contains_polymorphic_type_p, possible_placement_new,
3099 ipa_polymorphic_call_context::restrict_to_inner_class,
3100 contains_type_p, decl_maybe_in_construction_p,
3101 ipa_polymorphic_call_context::stream_out,
3102 ipa_polymorphic_call_context::debug,
3103 ipa_polymorphic_call_context::stream_in,
3104 ipa_polymorphic_call_context::set_by_decl,
3105 ipa_polymorphic_call_context::set_by_invariant,
3106 walk_ssa_copies,
3107 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3108 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3109 extr_type_from_vtbl_ptr_store, record_known_type
3110 check_stmt_for_type_change,
3111 ipa_polymorphic_call_context::get_dynamic_type): Move to
3112 ipa-polymorphic-call.c
3113 (type_all_derivations_known_p, types_odr_comparable,
3114 types_must_be_same_for_odr): Export.
3115 (type_known_to_have_no_deriavations_p): New function.
3116 * Makefile.in: Add ipa-polymorphic-call.c
3117
3118 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3119
3120 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3121 for better storage.
3122 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3123 (possible_polymorphic_call_targets): Instead of computing both
3124 speculative and non-speculative answers, do just one at a time.
3125 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3126 (dump_targets): Break out from ...
3127 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3128 and non-speculative lists.
3129 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3130 * ipa-utils.h (possible_polymorphic_call_targets): Update.
3131
3132 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
3133
3134 PR rtl-optimization/63348
3135 * emit-rtl.c (try_split): Do not emit extra barrier.
3136
3137 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
3138
3139 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3140 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3141 new predicates.
3142 (aarch64_<sur>shll2_n<mode>): Likewise.
3143 (aarch64_<sur>shr_n<mode>): Likewise.
3144 (aarch64_<sur>sra_n<mode>: Likewise.
3145 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3146 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3147 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3148 * config/aarch64/iterators.md (ve_mode): New.
3149 (offsetlr): Remap to infix text for use in new predicates.
3150 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3151 (aarch64_simd_shift_imm_hi): Likewise.
3152 (aarch64_simd_shift_imm_si): Likewise.
3153 (aarch64_simd_shift_imm_di): Likewise.
3154 (aarch64_simd_shift_imm_offset_qi): Likewise.
3155 (aarch64_simd_shift_imm_offset_hi): Likewise.
3156 (aarch64_simd_shift_imm_offset_si): Likewise.
3157 (aarch64_simd_shift_imm_offset_di): Likewise.
3158 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3159 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3160 (aarch64_simd_shift_imm_bitsize_si): Likewise.
3161 (aarch64_simd_shift_imm_bitsize_di): Likewise.
3162
3163 2014-09-25 Jiong Wang <jiong.wang@arm.com>
3164
3165 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3166 new created BB as the intersection of live-in from "old_dest" and
3167 live-out from "bb".
3168
3169 2014-09-25 Felix Yang <felix.yang@huawei.com>
3170
3171 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3172 * genautomata.c (merge_states): Ditto.
3173
3174 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3175
3176 PR target/62218
3177 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
3178 in instruction sequence.
3179
3180 2014-09-25 Nick Clifton <nickc@redhat.com>
3181
3182 PR target/62218
3183 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
3184 in instruction sequence.
3185
3186 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3187
3188 PR target/63335
3189 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
3190 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
3191
3192 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3193 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3194 Anna Tikhonova <anna.tikhonova@intel.com>
3195 Ilya Tocar <ilya.tocar@intel.com>
3196 Andrey Turetskiy <andrey.turetskiy@intel.com>
3197 Ilya Verbin <ilya.verbin@intel.com>
3198 Kirill Yukhin <kirill.yukhin@intel.com>
3199 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3200
3201 * config/i386/sse.md
3202 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
3203 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
3204 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
3205 (define_expand "<avx512>_perm<mode>_mask"): ... this.
3206 Use VI8F_256_512 mode iterator.
3207 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
3208 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
3209
3210 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3211 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3212 Anna Tikhonova <anna.tikhonova@intel.com>
3213 Ilya Tocar <ilya.tocar@intel.com>
3214 Andrey Turetskiy <andrey.turetskiy@intel.com>
3215 Ilya Verbin <ilya.verbin@intel.com>
3216 Kirill Yukhin <kirill.yukhin@intel.com>
3217 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3218
3219 * config/i386/sse.md
3220 (define_insn "avx_movshdup256<mask_name>"): Add masking.
3221 (define_insn "sse3_movshdup<mask_name>"): Ditto.
3222 (define_insn "avx_movsldup256<mask_name>"): Ditto.
3223 (define_insn "sse3_movsldup<mask_name>"): Ditto.
3224 (define_insn "vec_dupv2df<mask_name>"): Ditto.
3225 (define_insn "*vec_concatv2df"): Add EVEX version.
3226
3227 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3228 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3229 Anna Tikhonova <anna.tikhonova@intel.com>
3230 Ilya Tocar <ilya.tocar@intel.com>
3231 Andrey Turetskiy <andrey.turetskiy@intel.com>
3232 Ilya Verbin <ilya.verbin@intel.com>
3233 Kirill Yukhin <kirill.yukhin@intel.com>
3234 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3235
3236 * config/i386/sse.md
3237 (define_insn "vec_set<mode>_0"): Add EVEX version.
3238
3239 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3240 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3241 Anna Tikhonova <anna.tikhonova@intel.com>
3242 Ilya Tocar <ilya.tocar@intel.com>
3243 Andrey Turetskiy <andrey.turetskiy@intel.com>
3244 Ilya Verbin <ilya.verbin@intel.com>
3245 Kirill Yukhin <kirill.yukhin@intel.com>
3246 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3247
3248 * config/i386/sse.md
3249 (define_insn
3250 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3251 New.
3252 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3253 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3254 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3255 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3256 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3257 (define_expand "sse2_cvtpd2ps_mask): New.
3258 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3259 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3260
3261 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3262 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3263 Anna Tikhonova <anna.tikhonova@intel.com>
3264 Ilya Tocar <ilya.tocar@intel.com>
3265 Andrey Turetskiy <andrey.turetskiy@intel.com>
3266 Ilya Verbin <ilya.verbin@intel.com>
3267 Kirill Yukhin <kirill.yukhin@intel.com>
3268 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3269
3270 * config/i386/i386.c
3271 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3272 (ufix_notruncv8dfv8si2_mask_round): ... this.
3273 * config/i386/sse.md
3274 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3275 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3276 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3277 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3278 (define_expand "sse2_cvtpd2dq"): Delete.
3279 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3280 make 2nd operand const0 vector.
3281 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3282 Delete.
3283 (define_mode_attr pd2udqsuff): New.
3284 (define_insn
3285 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3286 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3287 (define_insn "*avx_cvttpd2dq256_2"): Delete.
3288 (define_expand "sse2_cvttpd2dq"): Ditto.
3289 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3290 make 2nd operand const0 vector.
3291
3292 2014-09-25 Jakub Jelinek <jakub@redhat.com>
3293
3294 PR tree-optimization/63341
3295 * tree-vectorizer.h (vect_create_data_ref_ptr,
3296 vect_create_addr_base_for_vector_ref): Add another tree argument
3297 defaulting to NULL_TREE.
3298 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3299 argument, pass it down to vect_create_addr_base_for_vector_ref.
3300 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3301 add that to base_offset too if non-NULL.
3302 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3303 for dr_explicit_realign_optimized set it to vector byte size
3304 - 1 instead of setting offset, pass byte_offset down to
3305 vect_create_data_ref_ptr.
3306
3307 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3308
3309 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
3310 forgotten debug output; canonicalize querries more wtih LTO.
3311
3312 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3313
3314 * cgraph.h (class ipa_polymorphic_call_context): Move here from
3315 ipa-utils.h; add stream_int and stream_out methods.
3316 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
3317 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
3318 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
3319 add CONTEXT.
3320 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3321 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3322 ipa_polymorphic_call_context::clear_speculation,
3323 ipa_polymorphic_call_context::clear_outer_type): Move here from
3324 ipa-utils.h
3325 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
3326 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3327 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3328 ipa_polymorphic_call_context::clear_speculation,
3329 ipa_polymorphic_call_context::clear_outer_type): Likewise.
3330 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
3331 streamer-hooks.h
3332 (ipa_polymorphic_call_context::stream_out): New method.
3333 (ipa_polymorphic_call_context::stream_in): New method.
3334 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
3335 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
3336 OUTER_TYPE.
3337 (ipa_analyze_call_uses): Simplify.
3338 (update_indirect_edges_after_inlining): Do not care about outer_type.
3339 (ipa_write_indirect_edge_info): Update.
3340 (ipa_write_indirect_edge_info): Likewise.
3341 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
3342 (dump_edge_flags): Break out from ...
3343 (cgraph_node::dump): ... here; dump indirect edges.
3344
3345 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3346
3347 * ipa-utils.h (polymorphic_call_context): Add
3348 metdhos dump, debug and clear_outer_type.
3349 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3350 (ipa_polymorphic_call_context::clear_outer_type): New method.
3351 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
3352 * ipa-devirt.c (types_odr_comparable): New function.
3353 (types_must_be_same_for_odr): New function.
3354 (odr_subtypes_equivalent_p): Simplify.
3355 (possible_placement_new): Break out from ...
3356 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
3357 be more cuatious about returning false in cases the context may be
3358 valid in derived type or via placement new.
3359 (contains_type_p): Clear maybe_derived_type
3360 (ipa_polymorphic_call_context::dump): New method.
3361 (ipa_polymorphic_call_context::debug): New method.
3362 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
3363 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
3364 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3365 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
3366 to suceed on all valid cases; remove confused sanity check.
3367 (dump_possible_polymorphic_call_targets): Simplify.
3368
3369 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
3370
3371 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
3372 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
3373 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
3374 varpool.c: Rename all instances of DECL_ABSTRACT to
3375 DECL_ABSTRACT_P.
3376
3377 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3378
3379 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
3380 special handling for stores whose SET_SRC is an UNSPEC (such as
3381 UNSPEC_STVE).
3382
3383 2014-09-24 Jiong Wang <jiong.wang@arm.com>
3384
3385 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
3386 !REG_P (src) to release more instruction sink opportunities.
3387
3388 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
3389
3390 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
3391 move costs for 128-bit types.
3392
3393 2014-09-24 Martin Jambor <mjambor@suse.cz>
3394
3395 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
3396 when duplicating a PASS_THROUGH jump function when creating a
3397 speculative edge.
3398
3399 2014-09-24 Marek Polacek <polacek@redhat.com>
3400
3401 PR c/61405
3402 PR c/53874
3403 * asan.c (maybe_instrument_call): Add default case.
3404 * ipa-pure-const.c (special_builtin_state): Likewise.
3405 * predict.c (expr_expected_value_1): Likewise.
3406 * lto-streamer-out.c (write_symbol): Initialize variable.
3407
3408 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3409
3410 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
3411 the lane.
3412 (vmuld_laneq_f64): Likewise.
3413 (vmuls_lane_f32): Likewise.
3414 (vmuls_laneq_f32): Likewise.
3415
3416 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
3417
3418 PR bootstrap/63235
3419 * varpool.c (varpool_node::add): Pass decl attributes
3420 to lookup_attribute.
3421
3422 2014-09-24 Jakub Jelinek <jakub@redhat.com>
3423
3424 PR sanitizer/63316
3425 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
3426
3427 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3428
3429 PR tree-optimization/63266
3430 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
3431 marker for unknown byte value.
3432 (MARKER_MASK): New macro.
3433 (MARKER_BYTE_UNKNOWN): New macro.
3434 (HEAD_MARKER): New macro.
3435 (do_shift_rotate): Mark bytes with unknown values due to sign
3436 extension when doing an arithmetic right shift. Replace hardcoded
3437 mask for marker by new MARKER_MASK macro.
3438 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
3439 numbers accordingly.
3440
3441 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3442 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3443 Anna Tikhonova <anna.tikhonova@intel.com>
3444 Ilya Tocar <ilya.tocar@intel.com>
3445 Andrey Turetskiy <andrey.turetskiy@intel.com>
3446 Ilya Verbin <ilya.verbin@intel.com>
3447 Kirill Yukhin <kirill.yukhin@intel.com>
3448 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3449
3450 * config/i386/sse.md
3451 (define_insn
3452 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
3453 Add masking.
3454 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
3455 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
3456
3457 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3458 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3459 Anna Tikhonova <anna.tikhonova@intel.com>
3460 Ilya Tocar <ilya.tocar@intel.com>
3461 Andrey Turetskiy <andrey.turetskiy@intel.com>
3462 Ilya Verbin <ilya.verbin@intel.com>
3463 Kirill Yukhin <kirill.yukhin@intel.com>
3464 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3465
3466 * config/i386/sse.md
3467 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
3468 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
3469 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
3470 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
3471 (define_expand "avx512vl_pshuflw_mask"): New.
3472 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
3473 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
3474 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
3475 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
3476 (define_expand "avx512vl_pshufhw_mask"): New.
3477 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
3478
3479 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3480 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3481 Anna Tikhonova <anna.tikhonova@intel.com>
3482 Ilya Tocar <ilya.tocar@intel.com>
3483 Andrey Turetskiy <andrey.turetskiy@intel.com>
3484 Ilya Verbin <ilya.verbin@intel.com>
3485 Kirill Yukhin <kirill.yukhin@intel.com>
3486 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3487
3488 * config/i386/i386.c
3489 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
3490 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
3491 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
3492 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
3493 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
3494 * config/i386/sse.md
3495 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
3496 (define_insn
3497 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
3498 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
3499 (define_insn
3500 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
3501 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
3502 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
3503 (define_expand "avx512vl_pshufd_mask"): New.
3504 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
3505
3506 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3507 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3508 Anna Tikhonova <anna.tikhonova@intel.com>
3509 Ilya Tocar <ilya.tocar@intel.com>
3510 Andrey Turetskiy <andrey.turetskiy@intel.com>
3511 Ilya Verbin <ilya.verbin@intel.com>
3512 Kirill Yukhin <kirill.yukhin@intel.com>
3513 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3514
3515 * config/i386/i386.c
3516 (CODE_FOR_avx2_extracti128): Rename to ...
3517 (CODE_FOR_avx_vextractf128v4di): this.
3518 (CODE_FOR_avx2_inserti128): Rename to ...
3519 (CODE_FOR_avx_vinsertf128v4di): this.
3520 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
3521 CODE_FOR_avx_vextractf128v4di.
3522 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
3523 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
3524 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
3525 CODE_FOR_avx512vl_vinsertv8si.
3526 * config/i386/sse.md
3527 (define_expand
3528 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
3529 AVX512_VEC mode iterator.
3530 (define_insn
3531 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
3532 Ditto.
3533 (define_expand
3534 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
3535 AVX512_VEC_2 mode iterator.
3536 (define_insn "vec_set_lo_<mode><mask_name>"): New.
3537 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3538 (define_expand "avx512vl_vinsert<mode>"): Ditto.
3539 (define_insn "avx2_vec_set_lo_v4di"): Delete.
3540 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
3541 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
3542 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3543 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
3544 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3545 (define_expand "avx2_extracti128"): Delete.
3546 (define_expand "avx2_inserti128"): Ditto.
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/sse.md
3558 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3559 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3560 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3561 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3562 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3563 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3564 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3565 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3566 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3567 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3568 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3569 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3570 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3571
3572 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
3573
3574 PR rtl-optimization/63210
3575 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3576 HARD_REGNO is not available for CONFLICT_A.
3577
3578 2014-09-23 Andi Kleen <ak@linux.intel.com>
3579
3580 * cgraph.h (symtab_node): Add no_reorder attribute.
3581 (symbol_table::output_asm_statements): Remove.
3582 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3583 (cgraph_node::create_version_clone): Dito.
3584 (symbol_table::output_asm_statements): Remove.
3585 * trans-mem.c (ipa_tm_create_version_alias): Dito.
3586 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3587 (output_in_order): Add no_reorder flag. Only handle no_reorder
3588 nodes when set.
3589 (symbol_table::compile): Add separate pass for no_reorder nodes.
3590 (process_common_attributes): Set no_reorder flag in symtab node.
3591 Add node argument.
3592 (process_function_and_variable_attributes): Pass symtab nodes to
3593 process_common_attributes.
3594 * doc/extend.texi (no_reorder): Document no_reorder attribute.
3595 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3596 (lto_output_varpool_node): Dito.
3597 (input_overwrite_node): Dito.
3598 (input_varpool_node): Dito.
3599 * varpool.c (varpool_node::add): Set no_reorder attribute.
3600 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3601 (symbol_table::output_variables): Dito.
3602 * symtab.c (symtab_node::dump_base): Print no_reorder.
3603
3604 2014-09-23 Jiong Wang <jiong.wang@arm.com>
3605
3606 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3607 be INVALID_REGNUM.
3608
3609 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
3610
3611 * configure: Regenerate.
3612
3613 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
3614
3615 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3616 when result_mode == shift_mode.
3617
3618 2014-09-23 Kostya Serebryany <kcc@google.com>
3619
3620 Update to match the changed asan API.
3621 * asan.c (asan_global_struct): Update the __asan_global definition
3622 to match the new API.
3623 (asan_add_global): Ditto.
3624 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3625 to __asan_init_v4.
3626
3627 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3628
3629 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3630 refine the constraints used on 32/64-bit floating point moves.
3631 (f32_av): Likewise.
3632 (f64_vsx): Likewise.
3633 (f64_dm): Likewise.
3634 (f64_av): Likewise.
3635 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3636 (BOOL_REGS_OP1): Likewise.
3637 (BOOL_REGS_OP2): Likewise.
3638 (BOOL_REGS_UNARY): Likewise.
3639 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3640 32/64-bit floating point moves. Do not use wa, instead use ww/ws
3641 for moves involving VSX registers. Do not use constraints that
3642 target VSX registers for decimal types.
3643 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3644 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3645
3646 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
3647
3648 * tree.h (int_bit_position): Turn into inline function;
3649 implement using wide int.
3650 * tree.c (int_bit_position): Remove.
3651
3652 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
3653
3654 PR bootstrap/63280
3655 * target-globals.c (target_globals::~target_globals): Fix location
3656 of ira_int destruction.
3657
3658 2014-09-23 Renlin Li <renlin.li@arm.com>
3659
3660 * config/aarch64/aarch64.md (return): New.
3661 (simple_return): Likewise.
3662 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
3663 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
3664
3665 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
3666
3667 * common/config/aarch64/aarch64-common.c:
3668 (default_options aarch_option_optimization_table):
3669 Default to -fsched-pressure.
3670
3671 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
3672
3673 * cfgcleanup.c (try_optimize_cfg): Do not remove label
3674 with LABEL_PRESERVE_P flag set.
3675
3676 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3677 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3678 Anna Tikhonova <anna.tikhonova@intel.com>
3679 Ilya Tocar <ilya.tocar@intel.com>
3680 Andrey Turetskiy <andrey.turetskiy@intel.com>
3681 Ilya Verbin <ilya.verbin@intel.com>
3682 Kirill Yukhin <kirill.yukhin@intel.com>
3683 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3684
3685 * config/i386/sse.md
3686 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
3687 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3688 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3689 (define_insn "sse2_shufpd_v2df_mask"): New.
3690
3691 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3692 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3693 Anna Tikhonova <anna.tikhonova@intel.com>
3694 Ilya Tocar <ilya.tocar@intel.com>
3695 Andrey Turetskiy <andrey.turetskiy@intel.com>
3696 Ilya Verbin <ilya.verbin@intel.com>
3697 Kirill Yukhin <kirill.yukhin@intel.com>
3698 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3699
3700 * config/i386/sse.md
3701 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3702 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
3703 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
3704 (define_insn "sse_shufps_v4sf_mask"): New.
3705
3706 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3707 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3708 Anna Tikhonova <anna.tikhonova@intel.com>
3709 Ilya Tocar <ilya.tocar@intel.com>
3710 Andrey Turetskiy <andrey.turetskiy@intel.com>
3711 Ilya Verbin <ilya.verbin@intel.com>
3712 Kirill Yukhin <kirill.yukhin@intel.com>
3713 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3714
3715 * config/i386/sse.md
3716 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
3717 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
3718 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
3719 (define_insn "unpcklps128_mask"): New.
3720
3721 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3722 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3723 Anna Tikhonova <anna.tikhonova@intel.com>
3724 Ilya Tocar <ilya.tocar@intel.com>
3725 Andrey Turetskiy <andrey.turetskiy@intel.com>
3726 Ilya Verbin <ilya.verbin@intel.com>
3727 Kirill Yukhin <kirill.yukhin@intel.com>
3728 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3729
3730 * config/i386/sse.md
3731 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
3732 (define_insn "avx512vl_unpckhpd128_mask"): New.
3733 (define_expand "avx_movddup256<mask_name>"): Add masking.
3734 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
3735 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
3736 (define_insn "avx512vl_unpcklpd128_mask"): New.
3737
3738 2014-09-22 Joseph Myers <joseph@codesourcery.com>
3739
3740 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3741 * doc/tm.texi: Regenerate.
3742 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
3743 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3744 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3745 Remove.
3746 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3747 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3748 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3749 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3750 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3751 Remove.
3752 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3753 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3754 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3755 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3756 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3757 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3758 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3759 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3760 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3761 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3762 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3763 Remove.
3764
3765 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
3766
3767 * tree-ssa-ccp.c (prop_value_d): Rename to ...
3768 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
3769 * ipa-prop.c (struct type_change_info): Rename to ...
3770 (prop_type_change_info): ... this; update uses.
3771 * ggc-page.c (globals): Rename to ...
3772 (static struct ggc_globals): ... this; update uses.
3773 * tree-ssa-loop-im.c (mem_ref): Rename to ...
3774 (im_mem_ref): ... this; update uses.
3775 * ggc-common.c (loc_descriptor): Rename to ...
3776 (ggc_loc_descriptor): ... this; update uses.
3777 * lra-eliminations.c (elim_table): Rename to ...
3778 (lra_elim_table): ... this; update uses.
3779 * bitmap.c (output_info): Rename to ...
3780 (bitmap_output_info): ... this; update uses.
3781 * gcse.c (expr): Rename to ...
3782 (gcse_expr) ... this; update uses.
3783 (occr): Rename to ...
3784 (gcse_occr): .. this; update uses.
3785 * tree-ssa-copy.c (prop_value_d): Rename to ...
3786 (prop_value_t): ... this.
3787 * predict.c (block_info_def): Rename to ...
3788 (block_info): ... this; update uses.
3789 (edge_info_def): Rename to ...
3790 (edge_info): ... this; update uses.
3791 * profile.c (bb_info): Rename to ...
3792 (bb_profile_info): ... this; update uses.
3793 * alloc-pool.c (output_info): Rename to ...
3794 (pool_output_info): ... this; update uses.
3795 * ipa-cp.c (topo_info): Rename to ..
3796 (ipa_topo_info): ... this; update uses.
3797 * tree-nrv.c (nrv_data): Rename to ...
3798 (nrv_data_t): ... this; update uses.
3799 * ipa-split.c (bb_info): Rename to ...
3800 (split_bb_info): ... this one.
3801 * profile.h (edge_info): Rename to ...
3802 (edge_profile_info): ... this one; update uses.
3803 * dse.c (bb_info): Rename to ...
3804 (dse_bb_info): ... this one; update uses.
3805 * cprop.c (occr): Rename to ...
3806 (cprop_occr): ... this one; update uses.
3807 (expr): Rename to ...
3808 (cprop_expr): ... this one; update uses.
3809
3810 2014-09-22 Jason Merrill <jason@redhat.com>
3811
3812 * Makefile.in (check-parallel-%): Add @.
3813
3814 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3815
3816 * config/aarch64/geniterators.sh: New.
3817 * config/aarch64/iterators.md (VDQF_DF): New.
3818 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
3819 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
3820
3821 2014-09-22 Peter A. Bigot <pab@pabigot.com>
3822
3823 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
3824 -lnosys when -msim absent.
3825
3826 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
3827
3828 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3829
3830 2014-09-22 Richard Biener <rguenther@suse.de>
3831
3832 * gimplify.c (gimplify_init_constructor): Do not leave
3833 non-GIMPLE vector constructors around.
3834 * tree-cfg.c (verify_gimple_assign_single): Verify that
3835 CONSTRUCTORs have gimple elements.
3836
3837 2014-09-22 Jakub Jelinek <jakub@redhat.com>
3838
3839 PR debug/63328
3840 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
3841 insert a debug source bind stmt setting DEBUG_EXPR_DECL
3842 instead of a normal gimple assignment stmt.
3843
3844 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3845
3846 * config/bfin/bfin.md: Fix use of constraints in define_split.
3847
3848 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3849
3850 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
3851 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
3852
3853 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3854
3855 * hard-reg-set.h: Include hash-table.h.
3856 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
3857 field.
3858 * target-globals.c (target_globals::~target_globals): Call
3859 hard_regs->finalize.
3860 * rtl.h (subreg_shape): New structure.
3861 (shape_of_subreg): New function.
3862 (simplifiable_subregs): Declare.
3863 * reginfo.c (simplifiable_subreg): New structure.
3864 (simplifiable_subregs_hasher): Likewise.
3865 (simplifiable_subregs): New function.
3866 (invalid_mode_changes): Delete.
3867 (alid_mode_changes, valid_mode_changes_obstack): New variables.
3868 (record_subregs_of_mode): Remove subregs_of_mode parameter.
3869 Record valid mode changes in valid_mode_changes.
3870 (find_subregs_of_mode): Remove subregs_of_mode parameter.
3871 Update calls to record_subregs_of_mode.
3872 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
3873 handling. Initialize new variables. Update call to
3874 find_subregs_of_mode.
3875 (invalid_mode_change_p): Check new variables instead of
3876 invalid_mode_changes.
3877 (finish_subregs_of_mode): Finalize new variables instead of
3878 invalid_mode_changes.
3879 (target_hard_regs::finalize): New function.
3880 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
3881 even when CLASS_CANNOT_CHANGE_MODE is undefined.
3882
3883 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3884
3885 * combine.c (subst): Use simplify_subreg_regno rather than
3886 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
3887
3888 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3889
3890 * rtl.h (subreg_info): Expand commentary
3891 * rtlanal.c (subreg_get_info): Likewise.
3892
3893 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3894
3895 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3896 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3897 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
3898
3899 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
3900
3901 * config/arm/arm.c: #include "tm-constrs.h"
3902 (thumb1_size_rtx_costs): Adjust rtx costs.
3903
3904 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
3905
3906 * configure.ac (target_header_dir): Move block defining
3907 this to before the block setting inhibit_libc.
3908 (inhibit_libc): When considering $with_headers, just
3909 check it it's explicitly "no". If not, also check if
3910 $target_header_dir/stdio.h is present. If not, set
3911 inhibit_libc=true.
3912 * configure: Regenerate.
3913
3914 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
3915
3916 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
3917
3918 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3919
3920 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
3921 insn for divides by integer powers of two.
3922 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
3923 (mod<mode>3): Fix formatting.
3924 (three anonymous define_insn and two define_split): Delete.
3925
3926 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3927
3928 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
3929 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
3930 (floatdisf2_internal2): Ditto.
3931 (ashrdi3_no_power): Ditto. Fix formatting.
3932
3933 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3934
3935 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3936 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
3937 Tidy.
3938
3939 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3940
3941 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
3942 constant, use addsi3 directly.
3943 (three anonymous define_insn, two define_split): Delete.
3944 (sub<mode>3): Move. Do not allow constant second operand.
3945 Generate different insn for constant first operand.
3946 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
3947 (subf<mode>3_imm): New.
3948 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
3949 (*plus_ltu<mode>): Only handle registers.
3950 (*plus_ltu<mode>_1): New. Handle integer third operand.
3951 (*plus_gtu<mode>): Only handle registers.
3952 (*plus_gtu<mode>_1): New. Handle integer third operand.
3953
3954 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3955
3956 * config/rs6000/rs6000.md (iorxor): New code_iterator.
3957 (iorxor): New code_attr.
3958 (IORXOR): New code_attr.
3959 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
3960 (ior<mode>3, xor<mode>3): Delete.
3961 (<iorxor><mode>3): New.
3962 (splitter for "big" integer ior, xor): New.
3963 (*bool<mode>3): Move. Also handle AND.
3964 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
3965 (splitter for "big" integer ior, xor): Delete.
3966
3967 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3968
3969 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
3970 (two anonymous define_insn and two define_split): Delete.
3971 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
3972
3973 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3974
3975 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
3976 (two anonymous define_insn and two define_split): Delete.
3977 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
3978
3979 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3980
3981 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
3982
3983 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3984
3985 * config/rs6000/predicates.md (ca_operand): Allow subregs.
3986 (input_operand): Do not allow ca_operand.
3987 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
3988 carry bit, allow SImode and Pmode.
3989 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
3990
3991 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
3992
3993 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
3994 clobbered registers using clobber_reg. Remove UNSPEC decoration.
3995 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
3996 (*call_rex64_ms_sysv): Remove.
3997 (*call_value_rex64_ms_sysv): Ditto.
3998 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
3999
4000 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
4001
4002 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4003 operand 3 to "CnL".
4004
4005 2014-09-20 Andreas Schwab <schwab@suse.de>
4006
4007 * config/ia64/ia64.md: Remove constraints from define_split
4008 patterns.
4009
4010 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4011
4012 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4013 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4014 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4015 (get_dynamic_type): Remove.
4016 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4017 (clear_speculation): Bring to ipa-deivrt.h
4018 (get_class_context): Rename to ...
4019 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4020 (contains_type_p): Update.
4021 (get_dynamic_type): Rename to ...
4022 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4023 (possible_polymorphic_call_targets): UPdate.
4024 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4025 * ipa-prop.c (ipa_analyze_call_uses): Update.
4026
4027 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4028
4029 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4030 privatize dynamic TLS variables.
4031
4032 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4033
4034 * diagnostic.c (warning_n): New function.
4035 * diagnostic-core.h (warning_n): Declare.
4036 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4037 output dynamic counts when available.
4038
4039 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4040
4041 PR tree-optimization/63255
4042 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4043 issue in setting body_removed flag.
4044
4045 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4046
4047 PR c++/61825
4048 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4049 that visibility change is possible
4050 (handle_weakref_attribute): Likewise.
4051 * cgraph.h (symtab_node): Add method get_create and
4052 field refuse_visibility_changes.
4053 (symtab_node::get_create): New method.
4054 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4055 * varasm.c (mark_weak): Verify that visibility change is
4056 possible.
4057
4058 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
4059
4060 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4061 for base_reg_operand to be common between LO_SUM and PLUS.
4062 (fusion_gpr_mem_combo): New predicate to match a fused address
4063 that combines the addis and memory offset address.
4064
4065 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4066 calling signature.
4067 (emit_fusion_gpr_load): Likewise.
4068
4069 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4070 signature to pass each argument separately, rather than
4071 using an operands array. Rewrite the insns found by peephole2 to
4072 be a single insn, rather than hoping the insns will still be
4073 together when the peephole pass is done. Drop being called via a
4074 normal peephole.
4075 (emit_fusion_gpr_load): Change calling signature to be called from
4076 the fusion_gpr_load_<mode> insns with a combined memory address
4077 instead of the peephole pass passing the addis and offset
4078 separately.
4079
4080 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4081 fusion.
4082 (power8 fusion peephole): Drop support for doing power8 via a
4083 normal peephole that was created by the peephole2 pass.
4084 (power8 fusion peephole2): Create a new insn with the fused
4085 address, so that the fused operation is kept together after
4086 register allocation is done.
4087 (fusion_gpr_load_<mode>): Likewise.
4088
4089 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4090
4091 PR lto/63286
4092 * tree.c (need_assembler_name_p): Do not mangle variadic types.
4093
4094 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4095
4096 * recog.c (scratch_operand): Do not simply allow all hard registers:
4097 only allow those that are allocatable.
4098
4099 2014-09-19 Felix Yang <felix.yang@huawei.com>
4100
4101 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4102 comments and fix spacing to conform to coding style.
4103
4104 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4105
4106 * genrecog.c (validate_pattern): Allow empty constraints in
4107 a match_scratch.
4108
4109 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
4110
4111 * dwarf2out.c (decl_ultimate_origin): Update comment.
4112 * tree.c (block_ultimate_origin): Same.
4113
4114 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4115
4116 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4117 Update GCC version name to GCC 5.
4118 (rs6000_function_arg_boundary): Likewise.
4119 (rs6000_function_arg): Likewise.
4120
4121 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4122
4123 * config/sh/sh.md: Fix use of constraints in define_split.
4124
4125 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4126
4127 PR ipa/61998
4128 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4129
4130 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4131
4132 * doc/md.texi (Modifiers): Consistently use "read/write"
4133 nomenclature rather than "input/output".
4134 * genrecog.c (constraints_supported_in_insn_p): New.
4135 (validate_pattern): If needed, also check constraints on
4136 MATCH_SCRATCH operands.
4137 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4138 operands with no '=' or '+' modifier.
4139
4140 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4141
4142 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4143 scratch register as written.
4144
4145 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4146
4147 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4148 assignment.
4149
4150 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4151
4152 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4153 expanders.
4154
4155 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4156
4157 PR target/62662
4158 * config/s390/s390.c (s390_emit_epilogue): When doing the return
4159 address load optimization force s390_optimize_prologue to leave it
4160 that way. Only do the optimization if we already decided to push
4161 r14 into a stack slot.
4162
4163 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
4164
4165 * asan.c (build_check_stmt): Alignment arg was added.
4166 (asan_expand_check_ifn): Optimization for alignment >= 8.
4167
4168 2014-09-19 Olivier Hainque <hainque@adacore.com>
4169
4170 * config/i386/vxworksae.h: Remove obsolete definitions.
4171 (STACK_CHECK_PROTECT): Define.
4172 * config/i386/vx-common.h: Remove. Merge contents within
4173 config/i386/vxworks.h.
4174 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
4175 i386/vx-common.h.
4176
4177 2014-09-19 Olivier Hainque <hainque@adacore.com>
4178
4179 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
4180 * config/rs6000/t-vxworksmils: New file.
4181 * config/rs6000/vxworksmils.h: New file.
4182
4183 2014-09-19 Olivier Hainque <hainque@adacore.com>
4184
4185 * varasm.c (default_section_type_flags): Flag .persistent.bss
4186 sections as SECTION_BSS.
4187
4188 2014-09-19 Nick Clifton <nickc@redhat.com>
4189
4190 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
4191 pop'ed registers so that DCE does not eliminate them.
4192
4193 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
4194
4195 PR lto/63298
4196 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
4197
4198 2014-09-18 Joseph Myers <joseph@codesourcery.com>
4199
4200 * system.h (LIBGCC2_TF_CEXT): Poison.
4201 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
4202 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
4203 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
4204 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
4205 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
4206 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
4207 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
4208 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
4209 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
4210
4211 2014-09-19 Kito Cheng <kito@0xlab.org>
4212
4213 * except.h: Fix header guard.
4214 * addresses.h: Add missing header guard.
4215 * cfghooks.h: Likewise.
4216 * collect-utils.h: Likewise.
4217 * collect2-aix.h: Likewise.
4218 * conditions.h: Likewise.
4219 * cselib.h: Likewise.
4220 * dwarf2asm.h: Likewise.
4221 * graphds.h: Likewise.
4222 * graphite-scop-detection.h: Likewise.
4223 * gsyms.h: Likewise.
4224 * hw-doloop.h: Likewise.
4225 * incpath.h: Likewise.
4226 * ipa-inline.h: Likewise.
4227 * ipa-ref.h: Likewise.
4228 * ira-int.h: Likewise.
4229 * ira.h: Likewise.
4230 * lra-int.h: Likewise.
4231 * lra.h: Likewise.
4232 * lto-section-names.h: Likewise.
4233 * read-md.h: Likewise.
4234 * reload.h: Likewise.
4235 * rtl-error.h: Likewise.
4236 * sdbout.h: Likewise.
4237 * targhooks.h: Likewise.
4238 * tree-affine.h: Likewise.
4239 * xcoff.h: Likewise.
4240 * xcoffout.h: Likewise.
4241
4242 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4243
4244 PR debug/63285
4245 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4246 if advance != 0.
4247
4248 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4249
4250 PR target/61360
4251 * lra.c (lra): Call recog_init.
4252
4253 2014-09-18 Jakub Jelinek <jakub@redhat.com>
4254
4255 PR c++/62017
4256 * asan.c (transform_statements): Don't instrument clobber statements.
4257
4258 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4259
4260 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4261 to neon_load1_1reg<q>.
4262
4263 2014-09-17 Jakub Jelinek <jakub@redhat.com>
4264
4265 PR debug/63284
4266 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4267 if there are only debug stmts after the noreturn call, instead
4268 remove the debug stmts.
4269
4270 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
4271
4272 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4273 (odr_types_equivalent_p): Use pair hash.
4274 (odr_subtypes_equivalent_p): Likewise, do structural compare
4275 on ODR types that may be mismatched.
4276 (warn_odr): Support warning when only one field is given.
4277 (odr_types_equivalent_p): Strenghten comparsions made;
4278 support VOIDtype.
4279 (add_type_duplicate): Update VISITED hash set.
4280
4281 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
4282
4283 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4284 Enable selection of 'posix' or no thread model.
4285
4286 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
4287
4288 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4289 when architecture is older than ARMv7.
4290
4291 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
4292
4293 PR target/61853
4294 * config/pa/pa.c (pa_function_value): Directly handle aggregates
4295 that fit exactly in a word or double word.
4296
4297 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
4298
4299 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4300 zmm/k regs support.
4301
4302 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
4303 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4304 Anna Tikhonova <anna.tikhonova@intel.com>
4305 Ilya Tocar <ilya.tocar@intel.com>
4306 Andrey Turetskiy <andrey.turetskiy@intel.com>
4307 Ilya Verbin <ilya.verbin@intel.com>
4308 Kirill Yukhin <kirill.yukhin@intel.com>
4309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4310
4311 * config/i386/i386.c
4312 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
4313 * config/i386/sse.md
4314 (define_mode_iterator VI48F_256): New.
4315 (define_mode_attr extract_type): Ditto.
4316 (define_mode_attr extract_suf): Ditto.
4317 (define_mode_iterator AVX512_VEC): Ditto.
4318 (define_expand
4319 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
4320 AVX512_VEC.
4321 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
4322 (define_insn
4323 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
4324 Ditto.
4325 (define_mode_attr extract_type_2): Ditto.
4326 (define_mode_attr extract_suf_2): Ditto.
4327 (define_mode_iterator AVX512_VEC_2): Ditto.
4328 (define_expand
4329 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
4330 AVX512_VEC_2 mode iterator.
4331 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4332 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
4333 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4334 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4335 (define_split for V16FI mode): Ditto.
4336 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4337 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4338 (define_split for VI8F_256 mode): Ditto.
4339 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4340 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4341 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4342 (define_split for VI4F_256 mode): Ditto.
4343 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
4344 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4345 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4346 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
4347 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
4348 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
4349 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
4350 Update `type' attribute, remove explicit `memory' attribute calculation.
4351
4352 2014-09-16 Kito Cheng <kito@0xlab.org>
4353
4354 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
4355 ira_spilled_reg_stack_slots_num if using lra.
4356 (do_reload): Remove release ira_spilled_reg_stack_slots part.
4357 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
4358 make sure not using lra.
4359 (ira_reuse_stack_slot): Likewise.
4360 (ira_mark_new_stack_slot): Likewise.
4361
4362 2014-09-15 Andi Kleen <ak@linux.intel.com>
4363
4364 * function.c (allocate_struct_function): Force
4365 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
4366 profiling is disabled.
4367
4368 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4369
4370 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
4371 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
4372 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
4373 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
4374 macro with statically checked member functions.
4375 * rtl.h (rtx_insn::deleted): New method.
4376 (rtx_insn::set_deleted): Likewise.
4377 (rtx_insn::set_undeleted): Likewise.
4378 (INSN_DELETED_P): Remove.
4379
4380 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4381
4382 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
4383 result of emit_jump_insn_before to a new variable.
4384 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
4385 (mark_jump_label_1): Likewise.
4386 (mark_jump_label_asm): Likewise.
4387 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
4388 * rtl.h (mark_jump_label): Adjust.
4389
4390 2014-09-15 Jakub Jelinek <jakub@redhat.com>
4391
4392 * Makefile.in (dg_target_exps): Remove.
4393 (check_gcc_parallelize): Change to just an upper bound number.
4394 (check-%-subtargets): Always print the non-parallelized goals.
4395 (check_p_vars, check_p_comma, check_p_subwork): Remove.
4396 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
4397 check_p_numbers3, check_p_numbers4, check_p_numbers5,
4398 check_p_numbers6): New variables.
4399 (check_p_numbers): Set to sequence from 1 to 9999.
4400 (check_p_subdirs): Set to sequence from 1 to minimum of
4401 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
4402 or 128.
4403 (check-%, check-parallel-%): Rewritten so that for parallelized
4404 testing each job runs all the *.exp files, with
4405 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
4406
4407 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4408
4409 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4410 rtx to rtx_insn *.
4411 (arc_sets_cc_p): Likewise.
4412 * config/arc/arc.c (arc_print_operand): Use methods of
4413 "final_sequence" for clarity, and to enable strengthening of
4414 locals "jump" and "delay" from rtx to rtx_insn *.
4415 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
4416 rtx_insn *; use method of rtx_sequence for typesafety.
4417 (arc_get_insn_variants): Use insn method of rtx_sequence for
4418 typesafety.
4419 (arc_pad_return): Likewise.
4420 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
4421 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
4422 dyn_cast to rtx_sequence *, using insn method for typesafety.
4423 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
4424 rtx_sequence * and use insn method when invoking get_attr_length.
4425 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
4426 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
4427 rtx_sequence *, introducing a local "seq", using its insn method
4428 from typesafety and clarity.
4429 (add_sched_insns_for_speculation): Strengthen local "next" from
4430 rtx to rtx_insn *.
4431 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
4432 (predicate_insn): Likewise.
4433 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
4434 second param.
4435 * config/cris/cris.c (cris_notice_update_cc): Likewise.
4436 * config/epiphany/epiphany-protos.h
4437 (extern void epiphany_insert_mode_switch_use): Likewise for param
4438 "insn".
4439 (get_attr_sched_use_fpu): Likewise for param.
4440 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
4441 Likewise for param "insn".
4442 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
4443 param "insn" of "target_insert_mode_switch_use" callback.
4444 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
4445 (frv_issues_to_branch_unit_p): Likewise.
4446 (frv_pack_insn_p): Likewise.
4447 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
4448 const rtx * (i.e. mutable rtx_def * const *) to
4449 rtx_insn * const *.
4450 * config/i386/i386-protos.h (standard_sse_constant_opcode):
4451 Strengthen first param from rtx to rtx_insn *.
4452 (output_fix_trunc): Likewise.
4453 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
4454 (output_fix_trunc): Likewise.
4455 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
4456 local "insn".
4457 (min_insn_size): Likewise for param "insn".
4458 (get_mem_group): Likewise.
4459 (is_cmp): Likewise.
4460 (get_insn_path): Likewise.
4461 (get_insn_group): Likewise.
4462 (count_num_restricted): Likewise.
4463 (fits_dispatch_window): Likewise.
4464 (add_insn_window): Likewise.
4465 (add_to_dispatch_window): Likewise.
4466 (debug_insn_dispatch_info_file): Likewise.
4467 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
4468 first param.
4469 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
4470 "cmp" and local "prev".
4471 (m32c_output_compare): Likewise for param "insn".
4472 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
4473 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
4474 (define_predicate "large_insn_p"): Likewise.
4475 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
4476 param from rtx to rtx_insn *.
4477 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
4478 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
4479 (m68k_sched_attr_size): Likewise.
4480 (sched_get_opxy_mem_type): Likewise for param "insn".
4481 (m68k_sched_attr_op_mem): Likewise.
4482 (sched_mem_operand_p): Likewise.
4483 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
4484 * config/mep/mep.c (mep_multi_slot): Likewise.
4485 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
4486 first param.
4487 (mips_sync_loop_insns): Likewise.
4488 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
4489 method of "final_sequence" for typesafety.
4490 (mips_process_sync_loop): Strengthen param "insn" from rtx to
4491 rtx_insn *.
4492 (mips_output_sync_loop): Likewise.
4493 (mips_sync_loop_insns): Likewise.
4494 (mips_74k_agen_init): Likewise.
4495 (mips_sched_init): Use NULL rather than NULL_RTX when working with
4496 insns.
4497 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
4498 Strengthen param "insn" from rtx to rtx_insn *.
4499 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
4500 local "insn".
4501 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
4502 param.
4503 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
4504 "insn". Use method of rtx_sequence for typesafety.
4505 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
4506 rtx_insn *.
4507 (branch_needs_nop_p): Likewise.
4508 (use_skip_p): Likewise.
4509 (pa_insn_refs_are_delayed): Likewise.
4510 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
4511 for locals "insn", "ninsn".
4512 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
4513 "insn".
4514 (is_cracked_insn): Likewise.
4515 (is_branch_slot_insn): Likewise.
4516 (is_nonpipeline_insn): Likewise.
4517 (insn_terminates_group_p): Likewise.
4518 (insn_must_be_first_in_group): Likewise.
4519 (insn_must_be_last_in_group): Likewise.
4520 (force_new_group): Likewise for param "next_insn".
4521 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
4522 "insn".
4523 (s390_sched_score): Likewise.
4524 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
4525 (rtx sfunc_uses_reg): Likewise for sole param.
4526 * config/sh/sh.c (sh_print_operand): Use insn method of
4527 final_sequence for typesafety.
4528 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
4529 Use insn method of final_sequence for typesafety.
4530 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
4531 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
4532 for param.
4533 (eligible_for_return_delay): Likewise.
4534 (eligible_for_sibcall_delay): Likewise.
4535 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
4536 (eligible_for_return_delay): Likewise.
4537 (eligible_for_sibcall_delay): Likewise.
4538 * config/stormy16/stormy16-protos.h
4539 (xstormy16_output_cbranch_hi): Likewise for final param.
4540 (xstormy16_output_cbranch_si): Likewise.
4541 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
4542 (xstormy16_output_cbranch_si): Likewise.
4543 * config/v850/v850-protos.h (notice_update_cc): Likewise.
4544 * config/v850/v850.c (notice_update_cc): Likewise.
4545
4546 * final.c (get_attr_length_1): Strengthen param "insn" and param
4547 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
4548 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
4549 (get_attr_min_length): Likewise.
4550 (shorten_branches): Likewise for signature of locals "length_fun"
4551 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
4552 from a checked cast and use its methods for clarity and to enable
4553 strengthening local "inner_insn" from rtx to rtx_insn *.
4554 * genattr.c (gen_attr): When writing out the prototypes of the
4555 various generated "get_attr_" functions, strengthen the params of
4556 the non-const functions from rtx to rtx_insn *.
4557 Similarly, strengthen the params of insn_default_length,
4558 insn_min_length, insn_variable_length_p, insn_current_length.
4559 (main): Similarly, strengthen the param of num_delay_slots,
4560 internal_dfa_insn_code, insn_default_latency, bypass_p,
4561 insn_latency, min_issue_delay, print_reservation,
4562 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4563 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
4564 to hook_int_rtx_insn_unreachable.
4565 * genattrtab.c (write_attr_get): When writing out the generated
4566 "get_attr_" functions, strengthen the param "insn" from rtx to
4567 rtx_insn *, eliminating a checked cast.
4568 (make_automaton_attrs): When writing out prototypes of
4569 "internal_dfa_insn_code_", "insn_default_latency_" functions
4570 and the "internal_dfa_insn_code" and "insn_default_latency"
4571 callbacks, strengthen their params from rtx to rtx_insn *
4572 * genautomata.c (output_internal_insn_code_evaluation): When
4573 writing out code, add a checked cast from rtx to rtx_insn * when
4574 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4575 (output_dfa_insn_code_func): Strengthen param of generated
4576 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4577 (output_trans_func): Likewise for generated function
4578 "state_transition".
4579 (output_internal_insn_latency_func): When writing out generated
4580 function "internal_insn_latency", rename params from "insn" and
4581 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
4582 locals "insn" and "insn2" as rtx_insn * with checked casts once
4583 we've proven that we're not dealing with const0_rtx.
4584 (output_insn_latency_func): Strengthen param of generated
4585 function "insn_latency" from rtx to rtx_insn *.
4586 (output_print_reservation_func): Likewise for generated function
4587 "print_reservation".
4588 (output_insn_has_dfa_reservation_p): Likewise for generated
4589 function "insn_has_dfa_reservation_p".
4590 * hooks.c (hook_int_rtx_unreachable): Rename to...
4591 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4592 from rtx to rtx_insn *.
4593 * hooks.h (hook_int_rtx_unreachable): Likewise.
4594 (extern int hook_int_rtx_insn_unreachable): Likewise.
4595 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4596 (get_attr_min_length): Likewise.
4597 * recog.c (get_enabled_alternatives): Likewise.
4598 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4599 * reorg.c (find_end_label): Introduce local rtx "pat" and
4600 strengthen local "insn" from rtx to rtx_insn *.
4601 (redundant_insn): Use insn method of "seq" rather than element for
4602 typesafety; strengthen local "control" from rtx to rtx_insn *.
4603 * resource.c (mark_referenced_resources): Add checked cast to
4604 rtx_insn * within INSN/JUMP_INSN case.
4605 (mark_set_resources): Likewise.
4606 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4607 rtx to rtx_insn *.
4608
4609 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4610
4611 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4612 param "label" from rtx to rtx_insn *.
4613 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4614 and local "op".
4615 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4616 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4617 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4618 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4619 * final.c (default_label_align_after_barrier_max_skip): Strengthen
4620 param from rtx to rtx_insn *.
4621 (default_loop_align_max_skip): Likewise.
4622 (default_label_align_max_skip): Likewise.
4623 (default_jump_align_max_skip): Likewise.
4624 * target.def (label_align_after_barrier_max_skip): Likewise.
4625 (loop_align_max_skip): Likewise.
4626 (label_align_max_skip): Likewise.
4627 (jump_align_max_skip): Likewise.
4628 * targhooks.h (default_label_align_after_barrier_max_skip):
4629 Likewise.
4630 (default_loop_align_max_skip): Likewise.
4631 (default_label_align_max_skip): Likewise.
4632 (default_jump_align_max_skip): Likewise.
4633
4634 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4635
4636 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4637 from const_rtx to const rtx_insn *. Update union members from rtx
4638 to rtx_insn *.
4639 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4640 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4641 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4642 strengthen both params from const_rtx to const rtx_insn *.
4643 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4644 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4645 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4646 rtx_insn *.
4647 * target.def (can_follow_jump): Strengthen both params from
4648 const_rtx to const rtx_insn *, and update default implementation
4649 from hook_bool_const_rtx_const_rtx_true to
4650 hook_bool_const_rtx_insn_const_rtx_insn_true.
4651
4652 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4653
4654 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
4655 "insn" from rtx to rtx_insn *.
4656 * sched-int.h (deps_start_bb): Likewise for 2nd param.
4657
4658 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4659 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4660 Anna Tikhonova <anna.tikhonova@intel.com>
4661 Ilya Tocar <ilya.tocar@intel.com>
4662 Andrey Turetskiy <andrey.turetskiy@intel.com>
4663 Ilya Verbin <ilya.verbin@intel.com>
4664 Kirill Yukhin <kirill.yukhin@intel.com>
4665 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4666
4667 * config/i386/sse.md
4668 (define_insn "vcvtph2ps<mask_name>"): Add masking.
4669 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
4670 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
4671 (define_expand "vcvtps2ph_mask"): New.
4672 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
4673 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4674 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4675
4676 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4677 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4678 Anna Tikhonova <anna.tikhonova@intel.com>
4679 Ilya Tocar <ilya.tocar@intel.com>
4680 Andrey Turetskiy <andrey.turetskiy@intel.com>
4681 Ilya Verbin <ilya.verbin@intel.com>
4682 Kirill Yukhin <kirill.yukhin@intel.com>
4683 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4684
4685 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4686 New.
4687 (define_mode_iterator VI24_AVX512BW_1): Ditto.
4688 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4689 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4690 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4691 also for TARGET_AVX512VL.
4692 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4693
4694 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
4695
4696 * doc/install.texi (Options specification): add
4697 --disable-libsanitizer item.
4698
4699 2014-09-14 James Clarke <jrtc27@jrtc27.com>
4700 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4701
4702 PR target/61407
4703 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
4704 and above.
4705 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
4706 kernel version check to avoid incrementing it after every major OS X
4707 release.
4708 (darwin_default_min_version): Avoid static memory buffer.
4709
4710 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
4711
4712 * tree.c (need_assembler_name_p): Store C++ type mangling only
4713 for aggregates.
4714
4715 2014-09-13 Marek Polacek <polacek@redhat.com>
4716
4717 * tree.c (protected_set_expr_location): Don't check whether T is
4718 non-null here.
4719
4720 2014-09-12 DJ Delorie <dj@redhat.com>
4721
4722 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
4723 (extend_and_shift1_hipsi2): Likewise.
4724 (extend_and_shift2_hipsi2): Likewise.
4725
4726 2014-09-12 David Malcolm <dmalcolm@redhat.com>
4727
4728 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
4729 with NULL when dealing with an insn.
4730 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
4731 from rtx to rtx_insn *.
4732 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
4733 const_rtx to const rtx_insn *.
4734 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
4735
4736 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
4737
4738 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
4739 assert.
4740
4741 2014-09-12 Joseph Myers <joseph@codesourcery.com>
4742
4743 * target.def (libgcc_floating_mode_supported_p): New hook.
4744 * targhooks.c (default_libgcc_floating_mode_supported_p): New
4745 function.
4746 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
4747 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
4748 (LIBGCC2_HAS_TF_MODE): Remove.
4749 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
4750 * doc/tm.texi: Regenerate.
4751 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
4752 machine mode.
4753 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
4754 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
4755 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
4756 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
4757 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4758 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
4759 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
4760 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
4761 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
4762 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
4763 function.
4764 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
4765 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4766 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4767 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4768 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4769 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4770 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4771 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
4772 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
4773 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
4774 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4775 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
4776 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
4777 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
4778 Remove.
4779 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
4780 New macro.
4781 (ia64_libgcc_floating_mode_supported_p): New function.
4782 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
4783 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
4784 (IA64_NO_LIBGCC_TFMODE): Define.
4785 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
4786 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
4787 macro.
4788 (pdp11_scalar_mode_supported_p): New function.
4789 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
4790 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
4791
4792 2014-09-12 Richard Biener <rguenther@suse.de>
4793
4794 PR middle-end/63237
4795 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
4796
4797 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
4798
4799 * tree.c (integer_each_onep): New function.
4800 * tree.h (integer_each_onep): Declare it.
4801 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
4802 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
4803 (X & 1) == 0 for vector and complex.
4804
4805 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4806
4807 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
4808 for A57.
4809 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
4810 cost to spilling from integer to FP registers.
4811
4812 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4813
4814 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
4815 move handling.
4816 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
4817 are now handled correctly.
4818
4819 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4820
4821 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
4822 handling of CALLER_SAVE_REGS and POINTER_REGS.
4823
4824 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4825
4826 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
4827 the number of hard registers.
4828
4829 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4830 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4831 Anna Tikhonova <anna.tikhonova@intel.com>
4832 Ilya Tocar <ilya.tocar@intel.com>
4833 Andrey Turetskiy <andrey.turetskiy@intel.com>
4834 Ilya Verbin <ilya.verbin@intel.com>
4835 Kirill Yukhin <kirill.yukhin@intel.com>
4836 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4837
4838 * config/i386/sse.md
4839 (define_mode_iterator VI48_AVX512VL): New.
4840 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
4841 "avx512f_vternlog<mode>_maskz" and update mode iterator.
4842 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
4843 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
4844 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
4845 "avx512f_vternlog<mode>_mask" and update mode iterator.
4846 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
4847 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
4848 iterator.
4849 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
4850 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
4851 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
4852 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
4853 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
4854 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
4855
4856 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4857 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4858 Anna Tikhonova <anna.tikhonova@intel.com>
4859 Ilya Tocar <ilya.tocar@intel.com>
4860 Andrey Turetskiy <andrey.turetskiy@intel.com>
4861 Ilya Verbin <ilya.verbin@intel.com>
4862 Kirill Yukhin <kirill.yukhin@intel.com>
4863 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4864
4865 * config/i386/sse.md (VI128_256): Delete.
4866 (define_mode_iterator VI124_256): New.
4867 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
4868 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
4869 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
4870 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
4871 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
4872 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
4873 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
4874 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
4875 iterator.
4876 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
4877 in presence of AVX-512.
4878
4879 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4880 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4881 Anna Tikhonova <anna.tikhonova@intel.com>
4882 Ilya Tocar <ilya.tocar@intel.com>
4883 Andrey Turetskiy <andrey.turetskiy@intel.com>
4884 Ilya Verbin <ilya.verbin@intel.com>
4885 Kirill Yukhin <kirill.yukhin@intel.com>
4886 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4887
4888 * config/i386/sse.md
4889 (define_expand "<avx512>_gathersi<mode>"): Rename from
4890 "avx512f_gathersi<mode>".
4891 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
4892 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
4893 (define_expand "<avx512>_gatherdi<mode>"): Rename from
4894 "avx512f_gatherdi<mode>".
4895 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
4896 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
4897 wide versions.
4898 (define_expand "<avx512>_scattersi<mode>"): Rename from
4899 "avx512f_scattersi<mode>".
4900 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
4901 (define_expand "<avx512>_scatterdi<mode>"): Rename from
4902 "avx512f_scatterdi<mode>".
4903 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
4904
4905 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
4906
4907 * ira.h (ira_finish_once): Delete.
4908 * ira-int.h (target_ira_int::~target_ira_int): Declare.
4909 (target_ira_int::free_ira_costs): Likewise.
4910 (target_ira_int::free_register_move_costs): Likewise.
4911 (ira_finish_costs_once): Delete.
4912 * ira.c (free_register_move_costs): Replace with...
4913 (target_ira_int::free_register_move_costs): ...this new function.
4914 (target_ira_int::~target_ira_int): Define.
4915 (ira_init): Call free_register_move_costs as a member function rather
4916 than a global function.
4917 (ira_finish_once): Delete.
4918 * ira-costs.c (free_ira_costs): Replace with...
4919 (target_ira_int::free_ira_costs): ...this new function.
4920 (ira_init_costs): Call free_ira_costs as a member function rather
4921 than a global function.
4922 (ira_finish_costs_once): Delete.
4923 * target-globals.c (target_globals::~target_globals): Call the
4924 target_ira_int destructor.
4925 * toplev.c: Include lra.h.
4926 (finalize): Call lra_finish_once rather than ira_finish_once.
4927
4928 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
4929
4930 * common.opt (flto-odr-type-merging): New flag.
4931 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
4932 (types_same_for_odr): Likewise.
4933 (odr_subtypes_equivalent_p): Likewise.
4934 (add_type_duplicate): Do not walk type variants.
4935 (register_odr_type): New function.
4936 * ipa-utils.h (register_odr_type): Declare.
4937 (odr_type_p): New function.
4938 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
4939 TYPE_DECLs
4940 * doc/invoke.texi (-flto-odr-type-merging): Document.
4941 * tree.c (need_assembler_name_p): Compute ODR names when asked
4942 for it.
4943 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
4944
4945 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
4946
4947 PR target/63228
4948 * config/i386/i386.c (ix86_option_override_internal): Also turn
4949 off OPTION_MASK_ABI_X32 for -m16.
4950
4951 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
4952
4953 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
4954 GPR instead of P.
4955
4956 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
4957
4958 PR target/58757
4959 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4960 Directly forward to __*_DENORM_MIN__.
4961
4962 2014-09-11 David Malcolm <dmalcolm@redhat.com>
4963
4964 * rtl.h (LABEL_REF_LABEL): New macro.
4965
4966 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
4967 of XEXP (, 0), where we know that we have a LABEL_REF.
4968 * cfgbuild.c (make_edges): Likewise.
4969 (purge_dead_tablejump_edges): Likewise.
4970 * cfgexpand.c (convert_debug_memory_address): Likewise.
4971 * cfgrtl.c (patch_jump_insn): Likewise.
4972 * combine.c (distribute_notes): Likewise.
4973 * cse.c (hash_rtx_cb): Likewise.
4974 (exp_equiv_p): Likewise.
4975 (fold_rtx): Likewise.
4976 (check_for_label_ref): Likewise.
4977 * cselib.c (rtx_equal_for_cselib_1): Likewise.
4978 (cselib_hash_rtx): Likewise.
4979 * emit-rtl.c (mark_label_nuses): Likewise.
4980 * explow.c (convert_memory_address_addr_space): Likewise.
4981 * final.c (output_asm_label): Likewise.
4982 (output_addr_const): Likewise.
4983 * gcse.c (add_label_notes): Likewise.
4984 * genconfig.c (walk_insn_part): Likewise.
4985 * genrecog.c (validate_pattern): Likewise.
4986 * ifcvt.c (cond_exec_get_condition): Likewise.
4987 (noce_emit_store_flag): Likewise.
4988 (noce_get_alt_condition): Likewise.
4989 (noce_get_condition): Likewise.
4990 * jump.c (maybe_propagate_label_ref): Likewise.
4991 (mark_jump_label_1): Likewise.
4992 (redirect_exp_1): Likewise.
4993 (rtx_renumbered_equal_p): Likewise.
4994 * lra-constraints.c (operands_match_p): Likewise.
4995 * reload.c (operands_match_p): Likewise.
4996 (find_reloads): Likewise.
4997 * reload1.c (set_label_offsets): Likewise.
4998 * reorg.c (get_branch_condition): Likewise.
4999 * rtl.c (rtx_equal_p_cb): Likewise.
5000 (rtx_equal_p): Likewise.
5001 * rtlanal.c (reg_mentioned_p): Likewise.
5002 (rtx_referenced_p): Likewise.
5003 (get_condition): Likewise.
5004 * sched-vis.c (print_value): Likewise.
5005 * varasm.c (const_hash_1): Likewise.
5006 (compare_constant): Likewise.
5007 (const_rtx_hash_1): Likewise.
5008 (output_constant_pool_1): Likewise.
5009
5010 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5011
5012 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5013 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5014 instead of minus.
5015 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5016 cr6_test_for_lt_reverse): Ditto.
5017
5018 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
5019
5020 PR c++/61489
5021 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5022
5023 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5024
5025 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5026 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5027 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5028 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5029 Delete.
5030
5031 (aarch64_fold_builtin): Remove all reinterpret cases.
5032
5033 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5034
5035 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5036
5037 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5038 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5039 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5040 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5041 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5042 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5043 aarch64_reinterpretv2df<mode>): Delete.
5044
5045 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5046
5047 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5048 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5049 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5050 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5051 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5052 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5053 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5054 vreinterpret_u32_f64): Use cast.
5055
5056 * config/aarch64/iterators.md (VD_RE): Delete.
5057
5058 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5059
5060 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5061 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5062 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5063 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5064 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5065 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5066 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5067 Replace inline assembler with __aarch64_vset_lane_any.
5068
5069 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
5070
5071 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5072 types.
5073 (vmull_high_lane_s32): Likewise.
5074 (vmull_high_lane_u16): Likewise.
5075 (vmull_high_lane_u32): Likewise.
5076
5077 2014-09-11 Jason Merrill <jason@redhat.com>
5078
5079 PR c++/58678
5080 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5081
5082 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
5083
5084 PR target/63223
5085 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5086 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
5087 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5088
5089 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5090 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5091 Anna Tikhonova <anna.tikhonova@intel.com>
5092 Ilya Tocar <ilya.tocar@intel.com>
5093 Andrey Turetskiy <andrey.turetskiy@intel.com>
5094 Ilya Verbin <ilya.verbin@intel.com>
5095 Kirill Yukhin <kirill.yukhin@intel.com>
5096 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5097
5098 * config/i386/sse.md
5099 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5100 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5101 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5102 New.
5103 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5104 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5105 iterator.
5106 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5107 New.
5108 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5109 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5110 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5111 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5112 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5113 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5114 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5115 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5116 iterator.
5117 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5118 New.
5119 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5120 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5121 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5122
5123 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5124
5125 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5126 to access removed nodes.
5127
5128 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5129
5130 PR tree-optimization/63186
5131 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5132 (mark_nonssa_use): Likewise.
5133 (verify_non_ssa_vars): Verify all header blocks for label
5134 definitions.
5135
5136 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5137 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5138 Anna Tikhonova <anna.tikhonova@intel.com>
5139 Ilya Tocar <ilya.tocar@intel.com>
5140 Andrey Turetskiy <andrey.turetskiy@intel.com>
5141 Ilya Verbin <ilya.verbin@intel.com>
5142 Kirill Yukhin <kirill.yukhin@intel.com>
5143 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5144
5145 * config/i386/sse.md
5146 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5147 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5148 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5149 "<avx2_avx512f>_permvar<mode><mask_name>".
5150 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5151 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5152 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5153 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5154 Ditto.
5155 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5156 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5157 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5158 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5159
5160 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5161
5162 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5163 V2DF, V4SF, DF, and DI modes.
5164 (vsx_fmav2df2): Likewise.
5165 (vsx_float_fix_<mode>2): Likewise.
5166 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5167
5168 2014-09-10 Xinliang David Li <davidxl@google.com>
5169
5170 PR target/63209
5171 * config/arm/arm.md (movcond_addsi): Handle case where source
5172 and target operands are the same.
5173
5174 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5175
5176 * final.c (this_is_asm_operands): Strengthen this variable from
5177 rtx to const rtx_insn *.
5178 * output.h (this_is_asm_operands): Likewise.
5179 * rtl-error.c (location_for_asm): Strengthen param "insn" from
5180 const_rtx to const rtx_insn *.
5181 (diagnostic_for_asm): Likewise.
5182 * rtl-error.h (error_for_asm): Likewise.
5183 (warning_for_asm): Likewise.
5184
5185 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5186
5187 * genextract.c (print_header): When writing out insn_extract to
5188 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5189 * recog.h (insn_extract): Strengthen the param from rtx to
5190 rtx_insn *.
5191
5192 2014-09-10 Mike Stump <mikestump@comcast.net>
5193
5194 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
5195 8.6.1.
5196
5197 2014-09-10 Martin Jambor <mjambor@suse.cz>
5198
5199 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
5200 (analyze): Do not set analyze flag if expand_thunk returns false;.
5201 (create_wrapper): Likewise.
5202 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5203
5204 2014-09-10 Martin Jambor <mjambor@suse.cz>
5205
5206 PR ipa/61654
5207 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
5208 new decl properly. Analyze the new thunk if it is expanded.
5209
5210 2014-09-10 Andreas Schwab <schwab@suse.de>
5211
5212 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5213 [USED_FOR_TARGET]: Define.
5214
5215 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
5216
5217 * config/mips/mips.c (mips_secondary_reload_class): Handle
5218 regno < 0 case.
5219
5220 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
5221
5222 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5223 assignment.
5224
5225 2014-09-10 Jakub Jelinek <jakub@redhat.com>
5226
5227 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5228 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5229 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5230 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5231 flag_delete_null_pointer_checks for them.
5232 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5233 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5234 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5235 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5236 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5237 stmt's iterator.
5238 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5239 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5240 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5241 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5242 * doc/invoke.texi (-fsanitize=nonnull-attribute,
5243 -fsanitize=returns-nonnull-attribute): Document.
5244
5245 * ubsan.h (struct ubsan_mismatch_data): Removed.
5246 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5247 * ubsan.c (ubsan_source_location): For unknown locations,
5248 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5249 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5250 Allow more than one location and arbitrary extra arguments passed
5251 in ... instead of through MISMATCH pointer.
5252 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5253 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5254 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5255 callers.
5256
5257 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5258 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5259 Anna Tikhonova <anna.tikhonova@intel.com>
5260 Ilya Tocar <ilya.tocar@intel.com>
5261 Andrey Turetskiy <andrey.turetskiy@intel.com>
5262 Ilya Verbin <ilya.verbin@intel.com>
5263 Kirill Yukhin <kirill.yukhin@intel.com>
5264 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5265
5266 * config/i386/sse.md
5267 (define_mode_iterator VI48F): New.
5268 (define_insn "<avx512>_compress<mode>_mask"): Rename from
5269 "avx512f_compress<mode>_mask" and update mode iterator.
5270 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5271 "avx512f_compressstore<mode>_mask" and update mode iterator.
5272 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5273 "avx512f_expand<mode>_maskz" and update mode iterator.
5274 (define_insn "<avx512>_expand<mode>_mask"): Rename from
5275 "avx512f_expand<mode>_mask" and update mode iterator.
5276
5277 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5278 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5279 Anna Tikhonova <anna.tikhonova@intel.com>
5280 Ilya Tocar <ilya.tocar@intel.com>
5281 Andrey Turetskiy <andrey.turetskiy@intel.com>
5282 Ilya Verbin <ilya.verbin@intel.com>
5283 Kirill Yukhin <kirill.yukhin@intel.com>
5284 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5285
5286 * config/i386/i386.c
5287 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5288 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5289 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5290 avx512dq_rangepv4sf_mask.
5291 * config/i386/sse.md
5292 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5293 UNSPEC_RANGE.
5294 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5295 (define_insn "reduces<mode>"): Ditto.
5296 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5297 Ditto.
5298 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5299 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5300 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5301
5302 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5303 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5304 Anna Tikhonova <anna.tikhonova@intel.com>
5305 Ilya Tocar <ilya.tocar@intel.com>
5306 Andrey Turetskiy <andrey.turetskiy@intel.com>
5307 Ilya Verbin <ilya.verbin@intel.com>
5308 Kirill Yukhin <kirill.yukhin@intel.com>
5309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5310
5311 * config/i386/i386.c
5312 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
5313 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
5314 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
5315 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
5316 avx512vl_getmantv2df_mask.
5317 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
5318 avx512f_vgetmantv4sf_round.
5319 * config/i386/sse.md
5320 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
5321 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
5322 mode iterator.
5323 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
5324 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
5325 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
5326 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
5327 iterator..
5328 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
5329 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
5330 update mode iterator.
5331 (define_expand
5332 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
5333 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
5334 mode iterator.
5335 (define_insn
5336 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
5337 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
5338 update mode iterator.
5339 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
5340 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
5341 iterator..
5342 (define_insn
5343 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
5344 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
5345 mode iterator..
5346 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
5347 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
5348 update mode iterator.
5349 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
5350 "avx512f_getmant<mode><round_saeonly_name>".
5351
5352 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5353
5354 PR ipa/63166
5355 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5356
5357 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5358 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5359 Anna Tikhonova <anna.tikhonova@intel.com>
5360 Ilya Tocar <ilya.tocar@intel.com>
5361 Andrey Turetskiy <andrey.turetskiy@intel.com>
5362 Ilya Verbin <ilya.verbin@intel.com>
5363 Kirill Yukhin <kirill.yukhin@intel.com>
5364 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5365
5366 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
5367 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
5368 (define_mode_iterator FMAMODE_AVX512): New.
5369 (define_mode_iterator FMAMODE): Remove conditions.
5370 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
5371 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
5372 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
5373 mode iterator.
5374 (define_mode_iterator FMAMODE_NOVF512): Remove.
5375 (define_insn "*fma_fmadd_<mode>"): Rename from
5376 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
5377 FMAMODE mode iterator.
5378 (define_mode_iterator VF_SF_AVX512VL): New.
5379 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
5380 Use VF_SF_AVX512VL mode iterator.
5381 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
5382 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5383 iterator.
5384 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
5385 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5386 iterator.
5387 (define_insn "*fma_fmsub_<mode>"): Rename from
5388 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
5389 FMAMODE mode iterator.
5390 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
5391 Use VF_SF_AVX512VL mode iterator.
5392 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
5393 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5394 iterator.
5395 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
5396 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5397 iterator.
5398 (define_insn "*fma_fnmadd_<mode>"): Rename from
5399 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
5400 use FMAMODE mode iterator.
5401 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
5402 Use VF_SF_AVX512VL mode iterator.
5403 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
5404 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5405 iterator.
5406 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
5407 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5408 iterator.
5409 (define_insn "*fma_fnmsub_<mode>"): Rename from
5410 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
5411 FMAMODE mode iterator.
5412 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
5413 Use VF_SF_AVX512VL mode iterator.
5414 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
5415 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5416 iterator.
5417 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
5418 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5419 iterator.
5420 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
5421 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
5422 use VF_AVX512VL mode iterator.
5423 (define_insn "*fma_fmaddsub_<mode>"): Rename from
5424 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
5425 remove subst usage.
5426 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
5427 Use VF_SF_AVX512VL mode iterator.
5428 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
5429 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5430 iterator.
5431 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
5432 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5433 iterator.
5434 (define_insn "*fma_fmsubadd_<mode>"): Rename from
5435 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
5436 remove usage of subst.
5437 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
5438 Use VF_SF_AVX512VL mode iterator.
5439 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
5440 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5441 iterator.
5442 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
5443 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5444 iterator.
5445
5446 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5447
5448 Revert r213751:
5449 * calls.c (precompute_arguments): Check
5450 promoted_for_signed_and_unsigned_p and set the promoted mode.
5451 (promoted_for_signed_and_unsigned_p): New function.
5452 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5453 and set the promoted mode.
5454 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5455 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5456 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5457
5458 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5459
5460 * opth-gen.awk: Generate mapping from cpp message reasons to the
5461 options that enable them.
5462 * doc/options.texi (CppReason): Document.
5463
5464 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5465
5466 * doc/invoke.texi (Wnormalized=): Update.
5467
5468 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
5469
5470 PR target/63195
5471 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
5472 operands. Split off the constant operand alternative to ...
5473 (*bool<mode>3_imm): New.
5474
5475 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5476
5477 * rtl.h (single_set_2): Strengthen first param from const_rtx to
5478 const rtx_insn *, and move prototype to above...
5479 (single_set): ...this. Convert this from a macro to an inline
5480 function, enforcing the requirement that the param is a const
5481 rtx_insn *.
5482 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
5483
5484 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
5485 Strengthen both params from rtx to rtx_insn *.
5486 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5487 Likewise; introduce locals "producer_set", "consumer_set", using
5488 them in place of "producer" and "consumer" when dealing with SET
5489 rather than insn.
5490 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
5491 when invoking single_set in region guarded by INSN_P.
5492 (avr_out_bitop): Likewise.
5493 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
5494 region guarded by GET_CODE check, using methods to strengthen
5495 local "this_insn" from rtx to rtx_insn *, and for clarity.
5496 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
5497 Strengthen local "insn" from rtx to rtx_insn *.
5498 (define_insn_and_split "xload<mode>_A"): Likewise.
5499 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
5500 "insn".
5501 (find_load): Likewise for return type.
5502 (workaround_speculation): Likewise for both locals named
5503 "load_insn".
5504 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
5505 local "cc0_user".
5506 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
5507 for local "prev".
5508 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
5509 param 2.
5510 * config/h8300/h8300.c (notice_update_cc): Likewise.
5511 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
5512 "insn" and "dep_insn".
5513 (exact_store_load_dependency): Likewise for both params.
5514 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
5515 since this now clashes with inline function. Instead, delay
5516 calling single_set until the point where its needed, and then
5517 assign the result to "compare_set" and rework the conditional that
5518 follows.
5519 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
5520 local "last" from rtx to rtx_insn *.
5521 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
5522 second param.
5523 (mips_store_data_bypass_p): Likewise for both params.
5524 * config/mips/mips.c (mips_load_store_insns): Likewise for second
5525 param.
5526 (mips_store_data_bypass_p): Likewise for both params.
5527 (mips_orphaned_high_part_p): Likewise for param "insn".
5528 * config/mn10300/mn10300.c (extract_bundle): Likewise.
5529 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
5530 Introduce local rtx "insn2_pat".
5531 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
5532 "ninsn".
5533 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
5534 Introduce local rtx "set", using it in place of "insn" for the
5535 result of single_set. This appears to fix a bug, since the call
5536 to find_regno_note on a SET does nothing.
5537 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
5538 params from rtx to rtx_insn *.
5539 (set_to_load_agen): Likewise.
5540 * config/s390/s390.c (s390_label_align): Likewise for local
5541 "prev_insn". Introduce new rtx locals "set" and "src", using
5542 them in place of "prev_insn" for the results of single_set
5543 and SET_SRC respectively.
5544 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
5545 Introduce new rtx local "set" using in place of "jump" for the
5546 result of single_set. Use SET_SRC (set) rather than plain
5547 XEXP (set, 1).
5548 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
5549 rtx to rtx_insn *.
5550 (noncall_uses_reg): Likewise.
5551 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
5552 guarded by GET_CODE check, using its methods for clarity, and to
5553 enable strengthening local "this_insn" from rtx to rtx_insn *.
5554 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
5555 "insn" from rtx to rtx_insn *.
5556 (define_expand "umulhisi3"): Likewise.
5557 (define_expand "smulsi3_highpart"): Likewise.
5558 (define_expand "umulsi3_highpart"): Likewise.
5559 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5560 local "after". Replace GET_CODE check with a dyn_cast,
5561 introducing new local rtx_sequence * "seq", using insn method for
5562 typesafety.
5563
5564 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5565 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
5566 place of "insn" once we're dealing with patterns rather than the
5567 input insn.
5568 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5569 (scan_trace): Likewise for local "elt", updating lookups within
5570 sequence to use insn method rather than element method.
5571 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5572 to rtx_insn *.
5573 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5574 * ifcvt.c (noce_try_abs): Likewise for local "insn".
5575 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5576 invoking single_set.
5577 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5578 "insn" from rtx to rtx_insn *.
5579 (skip_usage_debug_insns): Likewise for return type, adding a
5580 checked cast.
5581 (check_secondary_memory_needed_p): Likewise for local "insn".
5582 (inherit_reload_reg): Likewise.
5583 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5584 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5585 checked casts.
5586 (store_data_bypass_p): Likewise for both params.
5587 (if_test_bypass_p): Likewise.
5588 * recog.h (store_data_bypass_p): Likewise for both params.
5589 (if_test_bypass_p): Likewise.
5590 * reload.c (find_equiv_reg): Likewise for local "where".
5591 * reorg.c (delete_jump): Likewise for param "insn".
5592 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5593 to const rtx_insn *.
5594 * store-motion.c (replace_store_insn): Likewise for param "del".
5595 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5596 and use its methods for clarity, and to strengthen local "del"
5597 from rtx to rtx_insn *.
5598 (build_store_vectors): Use insn method of "st" when calling
5599 replace_store_insn for typesafety and clarity.
5600
5601 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5602
5603 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5604 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5605 on how to make it legal in future.
5606
5607 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5608
5609 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5610 to rtx_insn *.
5611 (restinsn): Likewise.
5612 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5613 Likewise for param.
5614 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5615 Likewise.
5616 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5617 first param.
5618 (arc_hazard): Likewise for both params.
5619 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5620 checked casts to rtx_sequence * and uses of the insn method for
5621 type-safety.
5622 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5623 (arc_adjust_insn_length): Likewise for param "insn".
5624 (struct insn_length_parameters_s): Likewise for first param of
5625 "get_variants" callback field.
5626 (arc_get_insn_variants): Likewise for first param and local
5627 "inner". Replace a check of GET_CODE with a dyn_cast to
5628 rtx_sequence *, using methods for type-safety and clarity.
5629 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5630 rtx_sequence * and uses of the insn method for type-safety when
5631 invoking arc_adjust_insn_length.
5632 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5633 for param.
5634 (arm_address_offset_is_imm): Likewise.
5635 (struct tune_params): Likewise for params 1 and 3 of the
5636 "sched_adjust_cost" callback field.
5637 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5638 params 1 and 3 ("insn" and "dep").
5639 (xscale_sched_adjust_cost): Likewise.
5640 (fa726te_sched_adjust_cost): Likewise.
5641 (cortexa7_older_only): Likewise for param "insn".
5642 (cortexa7_younger): Likewise.
5643 (arm_attr_length_move_neon): Likewise.
5644 (arm_address_offset_is_imm): Likewise.
5645 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5646 * config/avr/avr.c (avr_notice_update_cc): Likewise.
5647 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5648 (workaround_speculation): Likewise for local "last_condjump".
5649 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5650 (shadow_or_blockage_p): Likewise.
5651 (get_unit_reqs): Likewise.
5652 (get_unit_operand_masks): Likewise.
5653 (c6x_registers_update): Likewise.
5654 (returning_call_p): Likewise.
5655 (can_use_callp): Likewise.
5656 (convert_to_callp): Likewise.
5657 (find_last_same_clock): Likwise for local "t".
5658 (reorg_split_calls): Likewise for local "shadow".
5659 (hwloop_pattern_reg): Likewise for param "insn".
5660 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
5661 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
5662 (frv_extract_membar): Likewise.
5663 (frv_optimize_membar_local): Strengthen param "last_membar" from
5664 rtx * to rtx_insn **.
5665 (frv_optimize_membar_global): Strengthen param "membar" from rtx
5666 to rtx_insn *.
5667 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
5668 to rtx_insn **.
5669 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
5670 both params from rtx to rtx_insn *.
5671 (ia64_ld_address_bypass_p): Likewise.
5672 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
5673 "insn".
5674 (ia64_safe_type): Likewise.
5675 (group_barrier_needed): Likewise.
5676 (safe_group_barrier_needed): Likewise.
5677 (ia64_single_set): Likewise.
5678 (is_load_p): Likewise.
5679 (record_memory_reference): Likewise.
5680 (get_mode_no_for_insn): Likewise.
5681 (important_for_bundling_p): Likewise.
5682 (unknown_for_bundling_p): Likewise.
5683 (ia64_st_address_bypass_p): Likewise for both params.
5684 (ia64_ld_address_bypass_p): Likewise.
5685 (expand_vselect): Introduce new local rtx_insn * "insn", using it
5686 in place of rtx "x" after the emit_insn call.
5687 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5688 Strengthen param from rtx to rtx_insn *.
5689 (ix86_agi_dependent): Likewise for both params.
5690 (ix86_attr_length_immediate_default): Likewise for param 1.
5691 (ix86_attr_length_address_default): Likewise for param.
5692 (ix86_attr_length_vex_default): Likewise for param 1.
5693 * config/i386/i386.c (ix86_attr_length_immediate_default):
5694 Likewise for param "insn".
5695 (ix86_attr_length_address_default): Likewise.
5696 (ix86_attr_length_vex_default): Likewise.
5697 (ix86_agi_dependent): Likewise for both params.
5698 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5699 (vselect_insn): Likewise for this variable.
5700 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5701 for param 1.
5702 (m68k_sched_attr_opy_type): Likewise.
5703 * config/m68k/m68k.c (sched_get_operand): Likewise.
5704 (sched_attr_op_type): Likewise.
5705 (m68k_sched_attr_opx_type): Likewise.
5706 (m68k_sched_attr_opy_type): Likewise.
5707 (sched_get_reg_operand): Likewise.
5708 (sched_get_mem_operand): Likewise.
5709 (m68k_sched_address_bypass_p): Likewise for both params.
5710 (sched_get_indexed_address_scale): Likewise.
5711 (m68k_sched_indexed_address_bypass_p): Likewise.
5712 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
5713 (m68k_sched_indexed_address_bypass_p): Likewise.
5714 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
5715 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
5716 removing another.
5717 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
5718 params from rtx to rtx_insn *.
5719 (mips_fmadd_bypass): Likewise.
5720 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
5721 (mips_linked_madd_p): Likewise.
5722 (mips_macc_chains_last_hilo): Likewise for this variable.
5723 (mips_macc_chains_record): Likewise for param.
5724 (vr4130_last_insn): Likewise for this variable.
5725 (vr4130_swap_insns_p): Likewise for both params.
5726 (mips_ls2_variable_issue): Likewise for param.
5727 (mips_need_noat_wrapper_p): Likewise for param "insn".
5728 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
5729 in place of "x" after the emit_insn.
5730 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
5731 params from rtx to rtx_insn *.
5732 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
5733 (pa_combine_instructions): Introduce local "par" for result of
5734 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
5735 to make_insn_raw.
5736 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
5737 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
5738 (rl78_alloc_physical_registers_op1): Likewise.
5739 (rl78_alloc_physical_registers_op2): Likewise.
5740 (rl78_alloc_physical_registers_ro1): Likewise.
5741 (rl78_alloc_physical_registers_cmp): Likewise.
5742 (rl78_alloc_physical_registers_umul): Likewise.
5743 (rl78_alloc_address_registers_macax): Likewise.
5744 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
5745 * config/s390/predicates.md (execute_operation): Likewise for
5746 local "insn".
5747 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
5748 params.
5749 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
5750 (addr_generation_dependency_p): Likewise for param "insn".
5751 (s390_agen_dep_p): Likewise for both params.
5752 (s390_fpload_toreg): Likewise for param "insn".
5753 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
5754 * config/sh/sh.c (sh_loop_align): Likewise for param and local
5755 "next".
5756 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
5757 * config/sh/sh_treg_combine.cc
5758 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
5759 and local "i".
5760 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
5761 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
5762 "and_insn", "load", "shift".
5763 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
5764 "insn".
5765 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
5766 for XEXP (note, 0) of the REG_CC_SETTER note.
5767 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
5768 rtx_insn *, eliminating a checked cast made redundant by this.
5769 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
5770 to rtx_insn *.
5771 * genattr.c (main): When writing out the prototype to
5772 const_num_delay_slots, strengthen the param from rtx to
5773 rtx_insn *.
5774 * genattrtab.c (write_const_num_delay_slots): Likewise when
5775 writing out the implementation of const_num_delay_slots.
5776 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
5777 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
5778 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
5779 favor of new rtx locals "src" and "set" and new local rtx_insn *
5780 "insn" and "seq".
5781 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
5782 to rtx_insn *.
5783 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
5784 locals "cond", "if_then_else", "set" and new rtx_insn * locals
5785 "insn" and "seq".
5786 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
5787 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
5788 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
5789 the top-level scope, replacing with new more tightly-scoped rtx
5790 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
5791 "new_insn", "copy_of_insn_b", and make local rtx "set" more
5792 tightly-scoped.
5793 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
5794 rtx_insn *.
5795 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
5796 "move_insn".
5797 (ira_setup_alts): Likewise for param "insn".
5798 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
5799 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
5800 and an rtx_insn *.
5801 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
5802 new more-tightly scoped rtx locals "add3_insn", "insn",
5803 "add2_insn" and rtx_insn * "move_insn".
5804 * postreload-gcse.c (eliminate_partially_redundant_load): Add
5805 checked cast on result of gen_move_insn when invoking
5806 extract_insn.
5807 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
5808 rtx_insn *.
5809 (verify_changes): Add a checked cast on "object" when invoking
5810 insn_invalid_p.
5811 (extract_insn_cached): Strengthen param "insn" from rtx to
5812 rtx_insn *.
5813 (extract_constrain_insn_cached): Likewise.
5814 (extract_insn): Likewise.
5815 * recog.h (insn_invalid_p): Likewise for param 1.
5816 (recog_memoized): Likewise for param.
5817 (extract_insn): Likewise.
5818 (extract_constrain_insn_cached): Likewise.
5819 (extract_insn_cached): Likewise.
5820 * reload.c (can_reload_into): Likewise for local "test_insn".
5821 * reload.h (cleanup_subreg_operands): Likewise for param.
5822 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
5823 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
5824 result of emit_insn. Remove a checked cast made redundant by this
5825 change.
5826 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
5827 rtx to rtx_insn *.
5828 * sel-sched.c (get_reg_class): Likewise.
5829
5830 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
5831 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5832
5833 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
5834 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
5835 Define.
5836 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
5837
5838 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5839
5840 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
5841 const rtx_insn *, and from rtx to rtx_insn * for the other
5842 overloaded variant.
5843 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
5844 INSN_LOCATION, since we know INSN_P holds.
5845 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
5846 (insn_file): Likewise.
5847 (insn_scope): Likewise.
5848 (insn_location): Likewise.
5849
5850 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
5851 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
5852 for the result of gen_load_const_gp.
5853 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
5854 param from rtx to rtx_insn *.
5855 * config/rs6000/rs6000.c (output_call): Likewise.
5856 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
5857 introducing a checked cast to rtx_sequence * and use of the insn
5858 method.
5859 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
5860 from rtx to rtx_insn *.
5861 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
5862 (insn_line): Likewise.
5863 (insn_file): Likewise.
5864 (insn_location): Likewise.
5865 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
5866 from rtx to rtx_insn *.
5867 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
5868 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
5869 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
5870 via a checked cast.
5871 * reorg.c (relax_delay_slots): Strengthen locals named "after"
5872 from rtx to rtx_insn *; use methods of "pat" for type-safety.
5873
5874 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5875
5876 * combine.c (try_combine): Eliminate checked cast on result of
5877 gen_rtx_INSN.
5878 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
5879 autogenerated one by strengthening the return type and params 2 and 3
5880 from rtx to rtx_insn *, and by naming the params.
5881 * gengenrtl.c (special_rtx): Add INSN to those that are
5882 special-cased.
5883 * rtl.h (gen_rtx_INSN): New prototype.
5884
5885 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5886
5887 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
5888 than NULL_RTX.
5889 (no_equiv): Likewise.
5890 (update_equiv_regs): Likewise.
5891 (setup_reg_equiv): Likewise. Strengthen locals "elem",
5892 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
5893 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
5894 clarity.
5895 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
5896 from rtx to rtx_insn_list *.
5897 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
5898 rtx_insn_list * and use methods for clarity and typesafety.
5899 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
5900 "list".
5901 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
5902 redundant check on INSN_P (insns): this cannot hold, as "insns" is
5903 an INSN_LIST, not an insn.
5904 (reverse_equiv_p): Strengthen local "insns" from rtx to
5905 rtx_insn_list * and use methods for clarity and typesafety.
5906 (contains_reloaded_insn_p): Likewise for local "list".
5907
5908 2014-09-09 Jiong Wang <jiong.wang@arm.com>
5909
5910 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
5911 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
5912 (arm_builtin_vectorized_function): Likewise.
5913 * config/arm/arm_neon_builtins.def: New macro for copysignf.
5914 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
5915
5916 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
5917
5918 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
5919 * builtins.h (default_target_builtins): Likewise.
5920 * gcse.h (default_target_gcse): Likewise.
5921 * target-globals.h (target_globals): Add a destructor. Convert
5922 void-pointer fields back to their real type and change from
5923 GTY((atomic)) to GTY((skip)).
5924 (restore_target_globals): Remove casts accordingly.
5925 * target-globals.c (save_target_globals): Use XCNEW rather than
5926 ggc_internal_cleared_alloc to allocate non-GC structures.
5927 Use ggc_cleared_alloc to allocate the target_globals structure
5928 itself.
5929 (target_globals::~target_globals): Define.
5930
5931 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5932
5933 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
5934 mnemonic instead of fldmfdd.
5935 * config/arm/arm.c (vfp_output_fstmd): Rename to...
5936 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
5937 Output vpush when address register is SP.
5938 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
5939 (vfp_output_vstmd): ... This.
5940 * config/arm/vfp.md (push_multi_vfp): Update call to
5941 vfp_output_vstmd.
5942
5943 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5944
5945 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
5946
5947 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5948
5949 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
5950 (*sqrtdf2_vfp): Likewise.
5951 (*cmpsf_vfp): Likewise.
5952 (*cmpsf_trap_vfp): Likewise.
5953 (*cmpdf_vfp): Likewise.
5954 (*cmpdf_trap_vfp): Likewise.
5955
5956 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5957
5958 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
5959 (*truncdfsf2_vfp): Likewise.
5960 (*truncsisf2_vfp): Likewise.
5961 (*truncsidf2_vfp): Likewise.
5962 (fixuns_truncsfsi2): Likewise.
5963 (fixuns_truncdfsi2): Likewise.
5964 (*floatsisf2_vfp): Likewise.
5965 (*floatsidf2_vfp): Likewise.
5966 (floatunssisf2): Likewise.
5967 (floatunssidf2): Likewise.
5968
5969 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5970
5971 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
5972 (*muldf3_vfp): Likewise.
5973 (*mulsf3negsf_vfp): Likewise.
5974 (*muldf3negdf_vfp): Likewise.
5975 (*mulsf3addsf_vfp): Likewise.
5976 (*muldf3adddf_vfp): Likewise.
5977 (*mulsf3subsf_vfp): Likewise.
5978 (*muldf3subdf_vfp): Likewise.
5979 (*mulsf3negsfaddsf_vfp): Likewise.
5980 (*fmuldf3negdfadddf_vfp): Likewise.
5981 (*mulsf3negsfsubsf_vfp): Likewise.
5982 (*muldf3negdfsubdf_vfp): Likewise.
5983
5984 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5985
5986 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
5987 (*absdf2_vfp): Likewise.
5988 (*negsf2_vfp): Likewise.
5989 (*negdf2_vfp): Likewise.
5990 (*addsf3_vfp): Likewise.
5991 (*adddf3_vfp): Likewise.
5992 (*subsf3_vfp): Likewise.
5993 (*subdf3_vfp): Likewise.
5994 (*divsf3_vfp): Likewise.
5995 (*divdf3_vfp): Likewise.
5996
5997 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5998
5999 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6000 multiple.
6001 (arm_print_operand): Don't convert real values to decimal
6002 representation in default case.
6003 (fp_immediate_constant): Delete.
6004 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6005 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6006 syntax.
6007 (*thumb2_movsi_vfp): Likewise.
6008 (*movdi_vfp): Likewise.
6009 (*movdi_vfp_cortexa8): Likewise.
6010 (*movhf_vfp_neon): Likewise.
6011 (*movhf_vfp): Likewise.
6012 (*movsf_vfp): Likewise.
6013 (*thumb2_movsf_vfp): Likewise.
6014 (*movdf_vfp): Likewise.
6015 (*thumb2_movdf_vfp): Likewise.
6016 (*movsfcc_vfp): Likewise.
6017 (*thumb2_movsfcc_vfp): Likewise.
6018 (*movdfcc_vfp): Likewise.
6019 (*thumb2_movdfcc_vfp): Likewise.
6020
6021 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
6022
6023 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6024 (-mtune): Likewise.
6025 (-mcpu): Likewise.
6026
6027 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6028
6029 PR target/61749
6030 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6031 Use qualifier_immediate for last operand. Rename to...
6032 (aarch64_types_ternop_lane_qualifiers): ... This.
6033 (TYPES_QUADOP): Rename to...
6034 (TYPES_TERNOP_LANE): ... This.
6035 (aarch64_simd_expand_args): Return const0_rtx when encountering user
6036 error. Change return of 0 to return of NULL_RTX.
6037 (aarch64_crc32_expand_builtin): Likewise.
6038 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6039 ICE when expanding unknown builtin.
6040 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6041 TERNOP_LANE qualifiers.
6042 (sqdmlsl_lane): Likewise.
6043 (sqdmlal_laneq): Likewise.
6044 (sqdmlsl_laneq): Likewise.
6045 (sqdmlal2_lane): Likewise.
6046 (sqdmlsl2_lane): Likewise.
6047 (sqdmlal2_laneq): Likewise.
6048 (sqdmlsl2_laneq): Likewise.
6049
6050 2014-09-09 Nick Clifton <nickc@redhat.com>
6051
6052 * doc/invoke.texi (Optimization Options): Add missing @gol to the
6053 end of a line.
6054 (S/390 and zSeries Options): Remove superfluous word from the
6055 description of the -mhotpatch option.
6056
6057 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
6058
6059 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6060 * ira.c: #include "shrink-wrap.h"
6061 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6062 * ifcvt.c: #include "shrink-wrap.h"
6063 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6064
6065 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
6066
6067 * common/config/picochip/picochip-common.c: Remove.
6068 * config.gcc: Remove support for picochip.
6069 * config/picochip/constraints.md: Remove.
6070 * config/picochip/dfa_space.md: Remove.
6071 * config/picochip/dfa_speed.md: Remove.
6072 * config/picochip/picochip-protos.h: Remove.
6073 * config/picochip/picochip.c: Remove.
6074 * config/picochip/picochip.h: Remove.
6075 * config/picochip/picochip.md: Remove.
6076 * config/picochip/picochip.opt: Remove.
6077 * config/picochip/predicates.md: Remove.
6078 * config/picochip/t-picochip: Remove.
6079 * doc/md.texi: Don't document picochi.
6080
6081 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6082
6083 * basic-block.h (control_flow_insn_p): Strengthen param from
6084 const_rtx to const rtx_insn *.
6085 * cfgbuild.c (control_flow_insn_p): Likewise.
6086
6087 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6088
6089 * gcse.c (modify_mem_list): Strengthen this variable from
6090 vec<rtx> * to vec<rtx_insn *> *.
6091 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6092 vec<rtx_insn *>.
6093 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6094 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6095 (record_last_mem_set_info): Strengthen param "insn" from rtx to
6096 rtx_insn *.
6097 (record_last_set_info): Likewise for local "last_set_insn".
6098
6099 2014-09-08 DJ Delorie <dj@redhat.com>
6100
6101 * doc/invoke.texi (MSP430 Options): Add -minrt.
6102
6103 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6104
6105 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
6106 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6107 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6108 handling SH_SPLAT.
6109 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6110 of extracted lane.
6111 (adjust_splat): New function.
6112 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6113 (dump_swap_insn_table): Add case for SH_SPLAT.
6114
6115 2014-09-08 Richard Biener <rguenther@suse.de>
6116
6117 PR ipa/63196
6118 * tree-inline.c (copy_loops): The source loop header should
6119 always be non-NULL.
6120 (tree_function_versioning): If loops need fixup after removing
6121 unreachable blocks fix them.
6122 * omp-low.c (simd_clone_adjust): Do not add incr block to
6123 loop under construction.
6124
6125 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
6126
6127 * config/aarch64/aarch64-builtins.c
6128 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6129
6130 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6131
6132 * config/i386/cygming.h (TF_SIZE): Remove.
6133 * config/i386/darwin.h (TF_SIZE): Remove.
6134 * config/i386/dragonfly.h (TF_SIZE): Remove.
6135 * config/i386/freebsd.h (TF_SIZE): Remove.
6136 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6137 * config/i386/openbsdelf.h (TF_SIZE): Remove.
6138 * config/i386/sol2.h (TF_SIZE): Remove.
6139 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6140 * config/ia64/linux.h (TF_SIZE): Remove.
6141 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6142 * doc/tm.texi: Regenerate.
6143 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6144
6145 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6146
6147 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6148 Remove.
6149 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6150 Remove.
6151 * doc/tm.texi: Regenerate.
6152 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6153 Poison.
6154 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6155 * config/cris/cris.h (__make_dp): Remove.
6156
6157 2014-09-08 Richard Biener <rguenther@suse.de>
6158
6159 PR bootstrap/63204
6160 * cfgloop.c (mark_loop_for_removal): Track former header
6161 unconditionally.
6162 * cfgloop.h (struct loop): Add former_header member unconditionally.
6163 * loop-init.c (fix_loop_structure): Enable bogus loop removal
6164 diagnostic unconditionally.
6165
6166 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6167
6168 PR target/63190
6169 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6170 constraint for operand0 and remove write only modifier from operand3.
6171
6172 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
6173
6174 PR rtl-optimization/62208
6175 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
6176 rather than const0_rtx in eq/ne-xor simplifications.
6177
6178 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
6179
6180 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
6181 (arc_output_mi_thunk): Likewise.
6182
6183 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
6184 arguments to silence bogus warning.
6185
6186 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
6187
6188 PR middle-end/63171
6189 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
6190
6191 2014-09-06 Tom de Vries <tom@codesourcery.com>
6192
6193 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
6194 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
6195 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6196
6197 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
6198
6199 PR target/63188
6200 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
6201 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
6202
6203 2014-09-05 Easwaran Raman <eraman@google.com>
6204
6205 PR rtl-optimization/62146
6206 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
6207 hoisted instruction unconditional.
6208
6209 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
6210
6211 PR target/63187
6212 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6213 Do not allow any_mask_operand for operands[2].
6214 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6215
6216 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6217
6218 * config/arc/arc.c (arc_print_operand): Use insn method of
6219 final_sequence for type-safety.
6220 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6221 "insn" from rtx to rtx_insn *.
6222 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6223 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6224 Likewise for locals "branch", "label".
6225 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6226 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
6227 (same_cmp_following_p): Likewise for locals "i2", "i3".
6228 * config/sh/sh_optimize_sett_clrt.cc
6229 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6230 param "cbranch_insn".
6231 * function.c (convert_jumps_to_returns): Likewis for local "jump".
6232 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6233 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6234 const rtx_insn *.
6235 (condjump_p): Likewise.
6236 (condjump_in_parallel_p): Likewise.
6237 (pc_set): Likewise.
6238 (any_uncondjump_p): Likewise.
6239 (any_condjump_p): Likewise.
6240 (condjump_label): Likewise.
6241 (returnjump_p): Strengthen param "insn" from rtx to
6242 const rtx_insn *.
6243 (onlyjump_p): Strengthen param "insn" from const_rtx to
6244 const rtx_insn *.
6245 (jump_to_label_p): Likewise.
6246 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6247 (invert_jump): Likewise.
6248 * reorg.c (simplejump_or_return_p): Add checked cast when calling
6249 simplejump_p.
6250 (get_jump_flags): Strengthen param "insn" from rtx to
6251 const rtx_insn *.
6252 (get_branch_condition): Likewise.
6253 (condition_dominates_p): Likewise.
6254 (make_return_insns): Move declaration of local "pat" earlier, to
6255 after we've handled NONJUMP_INSN_P and non-sequences, using its
6256 methods to simplify the code and for type-safety.
6257 * rtl.h (find_constant_src): Strengthen param from const_rtx to
6258 const rtx_insn *.
6259 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6260 (condjump_p): Strengthen param from const_rtx to
6261 const rtx_insn *.
6262 (any_condjump_p): Likewise.
6263 (any_uncondjump_p): Likewise.
6264 (pc_set): Likewise.
6265 (condjump_label): Likewise.
6266 (simplejump_p): Likewise.
6267 (returnjump_p): Likewise.
6268 (onlyjump_p): Likewise.
6269 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6270 (invert_jump): Likewise.
6271 (condjump_in_parallel_p): Strengthen param from const_rtx to
6272 const rtx_insn *.
6273 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6274 to const rtx_insn *.
6275 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6276 to const rtx_insn *.
6277 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6278
6279 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6280
6281 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6282 above the conditional, and convert the check on GET_CODE to a
6283 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6284 the conditional. Simplify the conditional by using methods of
6285 "trial_seq".
6286
6287 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6288
6289 * haifa-sched.c (check_clobbered_conditions): Strengthen local
6290 "link" from rtx to rtx_insn_list *, and use its methods for
6291 clarity and type-safety.
6292 (toggle_cancelled_flags): Likewise.
6293 (restore_last_backtrack_point): Likewise.
6294 (queue_to_ready): Use insn method of "link" in one place.
6295 (schedule_block): Strengthen local "link" from rtx to
6296 rtx_insn_list *, and use its methods for clarity and type-safety.
6297
6298 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6299
6300 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6301 param "insn" from const_rtx to const rtx_insn *.
6302 (sched_get_reverse_condition_uncached): Likewise.
6303 (sched_get_condition_with_rev): Likewise.
6304 (sched_has_condition_p): Likewise.
6305 (sched_insns_conditions_mutex_p): Likewise for both params.
6306 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6307 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6308 (setup_insn_reg_uses): Move local "list" to be more tightly
6309 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
6310 its methods for clarity and type-safety.
6311 (sched_analyze_1): Strengthen local "pending" from rtx to
6312 rtx_insn_list *, and local "pending_mem" from rtx to
6313 rtx_expr_list *. Use methods of each for clarity and type-safety.
6314 (sched_analyze_2): Likewise.
6315 (sched_analyze_insn): Likewise.
6316
6317 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
6318 param from const_rtx to const rtx_insn *.
6319 (sched_insns_conditions_mutex_p): Likewise for both params.
6320 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
6321 param.
6322
6323 * system.h (CONST_CAST_RTX_INSN): New macro.
6324
6325 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6326
6327 * recog.c (peep2_attempt): Strengthen return type from rtx to
6328 rtx_insn *.
6329 (peep2_update_life): Likewise for params "last", "prev", removing
6330 a checked cast made redundant by this.
6331 (peephole2_optimize): Likewise for local "last".
6332
6333 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6334
6335 * basic-block.h (set_block_for_insn): Eliminate this macro in
6336 favor of...
6337 * rtl.h (set_block_for_insn): New inline function, imposing the
6338 requirement that the "insn" param is an rtx_insn *.
6339
6340 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6341
6342 * caller-save.c (setup_save_areas): Strengthen local "insn" from
6343 rtx to rtx_insn *.
6344 * final.c (get_call_reg_set_usage): Likewise for first param,
6345 eliminating a checked cast.
6346 * regs.h (get_call_reg_set_usage): Likewise for first param.
6347 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
6348 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
6349 cast, replacing references to "x" with "call_insn" where
6350 appropriate.
6351 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
6352 rtx_insn *, adding a checked cast.
6353
6354 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6355
6356 * output.h (final_scan_insn): Strengthen first param from rtx to
6357 rtx_insn *.
6358
6359 * final.c (final_scan_insn): Likewise, renaming it back from
6360 "uncast_insn" to "insn", eliminating the checked cast.
6361
6362 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
6363 "vec" with an rtx_sequence * "seq", taking a copy of
6364 "final_sequence", and using methods of "seq" for clarity, and for
6365 type-safety in the calls to final_scan_insn.
6366 * config/mips/mips.c (mips_output_conditional_branch): Use methods
6367 of "final_sequence" for clarity, and for type-safety in the call to
6368 final_scan_insn.
6369 * config/sh/sh.c (print_slot): Strengthen param from rtx to
6370 rtx_sequence * and rename from "insn" to "seq".
6371
6372 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6373
6374 * jump.c (delete_related_insns): Introduce a new local "table" by
6375 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
6376 get_labels method of "table" to simplify access to the labels in
6377 the jump table.
6378
6379 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6380
6381 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
6382 f_minmaxs, f_minmaxd types.
6383
6384 2014-09-05 Richard Biener <rguenther@suse.de>
6385
6386 * cfgloop.c (mark_loop_for_removal): Record former header
6387 when ENABLE_CHECKING.
6388 * cfgloop.h (strut loop): Add former_header member when
6389 ENABLE_CHECKING.
6390 * loop-init.c (fix_loop_structure): Sanity check loops
6391 marked for removal if they re-appeared.
6392
6393 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6394
6395 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
6396 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
6397
6398 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
6399 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
6400 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
6401 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
6402 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
6403 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
6404 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
6405 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
6406 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
6407 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
6408 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
6409 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
6410 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
6411 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
6412 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
6413 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
6414 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
6415 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
6416 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
6417 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
6418 with int{32,16,8}_t.
6419
6420 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6421
6422 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
6423 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
6424 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
6425 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
6426 Remove temporary __asm__ and reimplement.
6427
6428 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6429
6430 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
6431 handling cmge, cmgt, cmeq, cmtst.
6432
6433 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
6434 cmlt, cmgeu, cmgtu, cmtst): Remove.
6435
6436 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
6437 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
6438 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
6439 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
6440
6441 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6442
6443 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
6444 TYPES_TST): Define.
6445 (aarch64_fold_builtin): Update pattern for cmtst.
6446
6447 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
6448 Declare.
6449
6450 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
6451
6452 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
6453 Switch operands, separate out more cases, refactor.
6454
6455 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
6456
6457 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
6458 argument; rename old version to...
6459 (aarch64_const_vec_all_same_in_range_p): ...this.
6460 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
6461
6462 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
6463
6464 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6465
6466 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6467 Remove qualifier_const_pointer, update comment.
6468
6469 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6470
6471 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
6472
6473 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6474
6475 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
6476 varargs with pointer parameter.
6477 (aarch64_simd_expand_builtin): pass pointer into previous.
6478
6479 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6480
6481 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
6482 alus_ext.
6483
6484 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6485
6486 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
6487 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
6488 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6489 Replace temporary asm with call to builtin.
6490 (vrbit_p8, vrbitq_p8): New functions.
6491
6492 2014-09-05 Richard Biener <rguenther@suse.de>
6493
6494 * cfgloop.c (mark_loop_for_removal): New function.
6495 * cfgloop.h (mark_loop_for_removal): Declare.
6496 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
6497 (merge_blocks): Likewise.
6498 (duplicate_block): Likewise.
6499 * except.c (sjlj_emit_dispatch_table): Likewise.
6500 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
6501 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
6502 (thread_through_loop_header): Likewise.
6503
6504 2014-09-05 Richard Biener <rguenther@suse.de>
6505
6506 PR middle-end/63148
6507 * fold-const.c (try_move_mult_to_index): Remove.
6508 (fold_binary_loc): Do not call it.
6509 * tree-data-ref.c (dr_analyze_indices): Strip conversions
6510 from the base object again.
6511
6512 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6513
6514 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
6515 DImode.
6516
6517 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6518
6519 PR target/55701
6520 * config/arm/arm.md (setmem): New pattern.
6521 * config/arm/arm-protos.h (struct tune_params): New fields.
6522 (arm_gen_setmem): New prototype.
6523 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6524 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6525 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6526 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6527 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6528 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6529 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6530 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6531 (arm_const_inline_cost): New function.
6532 (arm_block_set_max_insns): New function.
6533 (arm_block_set_non_vect_profit_p): New function.
6534 (arm_block_set_vect_profit_p): New function.
6535 (arm_block_set_unaligned_vect): New function.
6536 (arm_block_set_aligned_vect): New function.
6537 (arm_block_set_unaligned_non_vect): New function.
6538 (arm_block_set_aligned_non_vect): New function.
6539 (arm_block_set_vect, arm_gen_setmem): New functions.
6540
6541 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6542
6543 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
6544
6545 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6546
6547 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6548
6549 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6550
6551 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
6552 an rtx.
6553 * valtrack.h: Adjust.
6554
6555 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6556
6557 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6558 an rtx.
6559 (emit_jump_insn_before_noloc): Likewise.
6560 (emit_call_insn_before_noloc): Likewise.
6561 (emit_label_before): Likewise.
6562 (emit_label_after): Likewise.
6563 (emit_insn_before_setloc): Likewise.
6564 (emit_jump_insn_before_setloc): Likewise.
6565 (emit_call_insn_before_setloc): Likewise.
6566 (emit_call_insn_before): Likewise.
6567 * rtl.h: Adjust.
6568
6569 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6570
6571 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6572 rtx_insn *, eliminating a checked cast.
6573
6574 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6575
6576 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6577 const_rtx to const rtx_insn *.
6578 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6579 cast.
6580
6581 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6582
6583 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6584 fixup_args_size_notes.
6585 * expr.c (fixup_args_size_notes): Strengthen first two params from
6586 rtx to rtx_insn *, eliminating a checked cast.
6587 * rtl.h (fixup_args_size_notes): Strengthen first two params from
6588 rtx to rtx_insn *.
6589
6590 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6591
6592 * haifa-sched.c (get_ready_element): Strengthen return type from
6593 rtx to rtx_insn *.
6594 * sched-int.h (get_ready_element): Likewise.
6595
6596 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
6597
6598 PR target/63165
6599 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6600 indexed_or_indirect_operand instead of memory_operand.
6601 (floatsi<mode>2_lfiwzx_mem): Ditto.
6602
6603 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6604
6605 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6606 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6607 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6608
6609 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6610
6611 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6612 rtx.
6613 (get_last_nonnote_insn): Likewise.
6614 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6615 * resource.c (find_basic_block): Likewise.
6616 * rtl.h: Adjust.
6617 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6618 const_rtx.
6619
6620 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6621
6622 * genattr.c (main): Within the prototype of insn_latency written
6623 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6624 * genautomata.c (output_internal_maximal_insn_latency_func):
6625 Within the implementation of insn_latency written out to
6626 insn-automata.c, strengthen both params from rtx to rtx_insn *,
6627 eliminating a pair of checked casts.
6628
6629 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6630
6631 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6632 rtx_insn *.
6633
6634 * rtl.h (eh_returnjump_p): Likewise.
6635
6636 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
6637
6638 * Makefile.in (TAGS): Handle constructs in timevar.def.
6639
6640 2014-09-04 Guozhi Wei <carrot@google.com>
6641
6642 PR target/62040
6643 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6644 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6645 it into two patterns.
6646 (move_lo_quad_internal_be_<mode>): Likewise.
6647
6648 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6649
6650 * doc/options.texi: Document that Var and Init are required if CPP
6651 is given.
6652 * optc-gen.awk: Require Var and Init if CPP is given.
6653 * common.opt (Wpedantic): Use Init.
6654
6655 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6656
6657 * config/rs6000/rs6000.c (special_handling_values): Add
6658 SH_EXTRACT.
6659 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
6660 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
6661 as swappable with special handling SH_EXTRACT. Remove
6662 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
6663 optimization.
6664 (adjust_extract): New function.
6665 (handle_special_swappables): Add default to case statement; add
6666 case for SH_EXTRACT that calls adjust_extract.
6667 (dump_swap_insn_table): Handle SH_EXTRACT.
6668
6669 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6670
6671 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
6672 selection of 0th memory doubleword, regardless of endianness.
6673
6674 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6675
6676 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6677
6678 2014-09-04 Alan Modra <amodra@gmail.com>
6679
6680 PR debug/60655
6681 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6682 can't be output.
6683
6684 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
6685
6686 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6687 * targhooks.c (default_dwarf_frame_reg_mode): New function.
6688 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6689 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6690 * doc/tm.texi: Regenerate.
6691 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6692 selection logic to default_dwarf_frame_reg_mode.
6693
6694 2014-09-03 Marek Polacek <polacek@redhat.com>
6695
6696 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6697 by -Wall.
6698
6699 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6700
6701 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6702 the automodified register.
6703
6704 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6705
6706 * output.h (get_some_local_dynamic_name): Declare.
6707 * final.c (some_local_dynamic_name): New variable.
6708 (get_some_local_dynamic_name): New function.
6709 (final_end_function): Clear some_local_dynamic_name.
6710 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
6711 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6712 (print_operand): Report an error if '%&' is used inappropriately.
6713 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
6714 (get_some_local_dynamic_name_1): Delete.
6715 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
6716 (rs6000_get_some_local_dynamic_name): Delete.
6717 (rs6000_get_some_local_dynamic_name_1): Delete.
6718 (print_operand): Report an error if '%&' is used inappropriately.
6719 * config/s390/s390.c (machine_function): Remove some_ld_name.
6720 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6721 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
6722 * config/sparc/sparc.c: Include rtl-iter.h.
6723 (machine_function): Remove some_ld_name.
6724 (sparc_print_operand): Report an error if '%&' is used inappropriately.
6725 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6726
6727 2014-09-03 Richard Henderson <rth@redhat.com>
6728
6729 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
6730 (aarch64_popwb_pair_reg): Remove.
6731 (aarch64_set_frame_expr): Remove.
6732 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
6733 the restore ops performed by the insns generated.
6734 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
6735 insn. Perform the calls_eh_return addition later; do not attempt to
6736 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
6737 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
6738 special markup at all. Load cfun->machine->frame.hard_fp_offset
6739 into a local variable.
6740 (aarch64_frame_pointer_required): Don't check calls_alloca.
6741
6742 2014-09-03 Richard Biener <rguenther@suse.de>
6743
6744 * opts.c (default_options_optimization): Adjust
6745 max-combine-insns to 2 for -Og.
6746
6747 2014-09-03 Martin Jambor <mjambor@suse.cz>
6748
6749 PR ipa/62015
6750 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
6751 pass-trough jump functions correctly.
6752
6753 2014-09-03 Martin Jambor <mjambor@suse.cz>
6754
6755 PR ipa/61986
6756 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
6757 created replacements in ascending order of offsets.
6758 (known_aggs_to_agg_replacement_list): Likewise.
6759
6760 2014-09-03 Martin Liska <mliska@suse.cz>
6761
6762 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
6763 is set to set uninitialized value for vnresult.
6764
6765 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6766
6767 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
6768 for TARGET_MUST_PASS_IN_STACK.
6769
6770 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6771
6772 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
6773 for TARGET_ARG_PARTIAL_BYTES.
6774
6775 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6776
6777 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
6778 instructions for varargs implementation.
6779 (nds32_expand_epilogue): Emit stack adjustment instructions for
6780 varargs implementation.
6781
6782 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6783
6784 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
6785 optimization detection.
6786
6787 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6788
6789 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
6790 arguments.
6791 (nds32_function_arg_advance): Deal with nameless arguments.
6792 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
6793 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
6794 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
6795
6796 2014-09-03 Richard Biener <rguenther@suse.de>
6797
6798 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
6799 (struct bb_bitmap_sets): Remove deferred member.
6800 (BB_DEFERRED): Remove.
6801 (defer_or_phi_translate_block): Remove.
6802 (compute_antic_aux): Remove deferring of blocks, assert
6803 proper iteration order.
6804 (compute_antic): Do not set BB_DEFERRED.
6805 (eliminate): Allocate el_avail of proper size initially.
6806
6807 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6808
6809 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
6810 according to the value of crtl->args.pretend_args_size.
6811
6812 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6813
6814 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
6815 varargs information.
6816
6817 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6818
6819 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
6820 implementation for TARGET_SETUP_INCOMING_VARARGS.
6821 (nds32_strict_argument_naming): Refine comment.
6822 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
6823 Define for future implementation.
6824
6825 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
6826
6827 * config/i386/adxintrin.h (_subborrow_u32): New.
6828 (_addcarry_u32): Ditto.
6829 (_subborrow_u64): Ditto.
6830 (_addcarry_u64): Ditto.
6831 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
6832 IX86_BUILTIN_SBB64.
6833 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
6834 __builtin_ia32_sbb_u64
6835
6836 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6837
6838 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
6839 GPR-specific stuff.
6840 (nds32_function_arg_advance): Likewise.
6841 (nds32_init_cumulative_args): Likewise.
6842 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
6843 (NDS32_FIRST_GPR_REGNUM): Define.
6844 (NDS32_LAST_GPR_REGNUM): Define.
6845 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
6846 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6847 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6848 (machine_function): Use GRP-specific stuff.
6849
6850 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6851
6852 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
6853 (nds32_expand_epilogue): Likewise.
6854 (nds32_expand_prologue_v3push): Likewise.
6855 (nds32_expand_epilogue_v3pop): Likewise.
6856
6857 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6858
6859 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
6860 v3push/v3pop for variadic function.
6861 * config/nds32/nds32.md (prologue, epilogue): Likewise.
6862
6863 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6864
6865 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
6866 Check rtx for varargs implementation.
6867 (nds32_output_stack_pop): Likewise.
6868 * config/nds32/nds32-protos.h: Have a rtx argument for
6869 nds32_output_stack_push and nds32_output_stack_pop.
6870 * config/nds32/nds32.md: Likewise.
6871
6872 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6873
6874 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
6875 to check if FUNC is an interrupt service routine.
6876 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
6877
6878 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6879
6880 * config/nds32/nds32.h (machine_function): Add some fields for variadic
6881 arguments implementation.
6882
6883 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6884
6885 * config/nds32/nds32-predicates.c
6886 (nds32_valid_stack_push_pop): Rename to ...
6887 (nds32_valid_stack_push_pop_p): ... this.
6888 * config/nds32/nds32-protos.h: Likewise.
6889 * config/nds32/predicates.md: Likewise.
6890
6891 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6892
6893 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
6894 (nds32_emit_stack_v3push): ... this.
6895 (nds32_gen_stack_v3pop): Rename to ...
6896 (nds32_emit_stack_v3pop): ... this and consider CFA restore
6897 information.
6898
6899 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6900
6901 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
6902 (nds32_emit_stack_push_multiple): ... this.
6903 (nds32_gen_stack_pop_multiple): Rename to ...
6904 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
6905 information.
6906
6907 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6908
6909 PR target/61078
6910 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
6911 and add a second splitter to handle the remaining cases.
6912
6913 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6914
6915 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
6916
6917 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6918
6919 * cfgexpand.c (label_rtx_for_bb): Change type to
6920 hash_map<basic_block, rtx_code_label *> *.
6921 (expand_gimple_basic_block): Adjust.
6922 (pass_expand::execute): Likewise.
6923
6924 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6925
6926 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
6927 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
6928 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
6929 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
6930 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
6931 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
6932 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
6933 of rtx.
6934
6935 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6936
6937 * alloc-pool.c: Include coretypes.h.
6938 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
6939 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
6940 hash_set instead of htab.
6941 * ggc-page.c (in_gc): New variable.
6942 (ggc_free): Do nothing if a collection is taking place.
6943 (ggc_collect): Set in_gc appropriately.
6944 * ggc.h (gt_ggc_mx(const char *)): New function.
6945 (gt_pch_nx(const char *)): Likewise.
6946 (gt_ggc_mx(int)): Likewise.
6947 (gt_pch_nx(int)): Likewise.
6948 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
6949 (hash_map::hash_entry::pch_nx): Likewise.
6950 (hash_map::hash_entry::pch_nx_helper): Likewise.
6951 (hash_map::hash_map): Adjust.
6952 (hash_map::create_ggc): New function.
6953 (gt_ggc_mx): Likewise.
6954 (gt_pch_nx): Likewise.
6955 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
6956 (default_hashset_traits::pch_nx): Likewise.
6957 (hash_set::hash_entry::ggc_mx): Likewise.
6958 (hash_set::hash_entry::pch_nx): Likewise.
6959 (hash_set::hash_entry::pch_nx_helper): Likewise.
6960 (hash_set::hash_set): Adjust.
6961 (hash_set::create_ggc): New function.
6962 (hash_set::elements): Likewise.
6963 (gt_ggc_mx): Likewise.
6964 (gt_pch_nx): Likewise.
6965 * hash-table.h (hash_table::hash_table): Adjust.
6966 (hash_table::m_ggc): New member.
6967 (hash_table::~hash_table): Adjust.
6968 (hash_table::expand): Likewise.
6969 (hash_table::empty): Likewise.
6970 (gt_ggc_mx): New function.
6971 (hashtab_entry_note_pointers): Likewise.
6972 (gt_pch_nx): Likewise.
6973
6974 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6975
6976 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
6977 built-in definition.
6978 (XVCVUXDDP_SCALE): Likewise.
6979 (XVCVDPSXDS_SCALE): Likewise.
6980 (XVCVDPUXDS_SCALE): Likewise.
6981 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6982 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
6983 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
6984 VSX_BUILTIN_XVCVDPUXDS_SCALE.
6985 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
6986 prototype.
6987 * config/rs6000/rs6000.c (real.h): New include.
6988 (rs6000_scale_v2df): New function.
6989 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
6990 (UNSPEC_VSX_XVCVUXDDP): Likewise.
6991 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
6992 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
6993 (vsx_xvcvsxddp_scale): New define_expand.
6994 (vsx_xvcvsxddp): New define_insn.
6995 (vsx_xvcvuxddp_scale): New define_expand.
6996 (vsx_xvcvuxddp): New define_insn.
6997 (vsx_xvcvdpsxds_scale): New define_expand.
6998 (vsx_xvcvdpsxds): New define_insn.
6999 (vsx_xvcvdpuxds_scale): New define_expand.
7000 (vsx_xvcvdpuxds): New define_insn.
7001 * doc/extend.texi (vec_ctf): Add new prototypes.
7002 (vec_cts): Likewise.
7003 (vec_ctu): Likewise.
7004 (vec_splat): Likewise.
7005 (vec_div): Likewise.
7006 (vec_mul): Likewise.
7007
7008 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7009
7010 PR target/62275
7011 * config/arm/neon.md
7012 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7013 <v_cmp_result>): New pattern.
7014 * config/arm/iterators.md (NEON_VCVT): New int iterator.
7015 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7016 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7017 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7018 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7019 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7020
7021 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7022
7023 PR target/62275
7024 * config/arm/iterators.md (FIXUORS): New code iterator.
7025 (VCVT): New int iterator.
7026 (su_optab): New code attribute.
7027 (su): Likewise.
7028 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7029
7030 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7031
7032 * config/aarch64/predicates.md (aarch64_comparison_operation):
7033 New special predicate.
7034 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7035 aarch64_comparison_operation instead of matching an operator.
7036 Update operand numbers.
7037 (csinc3<mode>_insn): Likewise.
7038 (*csinv3<mode>_insn): Likewise.
7039 (*csneg3<mode>_insn): Likewise.
7040 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7041 * config/aarch64/aarch64.c (aarch64_get_condition_code):
7042 Return -1 instead of aborting on invalid condition codes.
7043 (aarch64_print_operand): Update aarch64_get_condition_code callsites
7044 to assert that the returned condition code is valid.
7045 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7046
7047 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
7048
7049 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7050 tree.def, and gimple.def
7051
7052 2014-09-02 Jakub Jelinek <jakub@redhat.com>
7053 Balaji V. Iyer <balaji.v.iyer@intel.com>
7054 Igor Zamyatin <igor.zamyatin@intel.com>
7055
7056 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7057 (__cilkrts_cilk_for_64): Likewise.
7058 * cilk-common.c (declare_cilk_for_builtin): New function.
7059 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7060 __cilkrts_cilk_for_64 bultins.
7061 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7062 CILK_TI_F_LOOP_64.
7063 (cilk_for_32_fndecl): New define.
7064 (cilk_for_64_fndecl): Likewise.
7065 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7066 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7067 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7068 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7069 GF_OMP_FOR_COMBINED_INTO.
7070 * gimplify.c (gimplify_scan_omp_clauses): Added
7071 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7072 (gimplify_adjust_omp_clauses): Ditto.
7073 (gimplify_omp_for): Added CILK_FOR case.
7074 (gimplify_expr): Ditto.
7075 * omp-low.c: Include cilk.h.
7076 (extract_omp_for_data): Set appropriate kind for
7077 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7078 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7079 (create_omp_child_function_name): Added second argument to handle
7080 cilk_for case.
7081 (cilk_for_check_loop_diff_type): New function.
7082 (expand_cilk_for_call): Likewise.
7083 (expand_cilk_for): Likewise.
7084 (create_omp_child_function): Set cilk_for_count; handle the cases when
7085 it is true; call create_omp_child_function_name with second argument.
7086 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7087 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7088 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7089 * tree-nested.c (convert_nonlocal_omp_clauses): Added
7090 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7091 (convert_local_omp_clauses): Ditto.
7092 * tree-pretty-print.c (dump_omp_clause): Added
7093 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7094 (dump_generic_node): Added CILK_FOR case.
7095 * tree.c (omp_clause_num_ops): New element
7096 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7097 (omp_clause_code_name): New element _Cilk_for_count_.
7098 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7099 * tree.def: Add tree code for CILK_FOR.
7100
7101 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7102
7103 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7104 (ppc403-compare): Add "exts with dot" case.
7105 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7106 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7107 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7108 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7109 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7110 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7111 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7112 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7113 cell-cmp-microcoded): Similarly.
7114 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7115 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7116 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7117 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7118 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7119 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7120 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7121 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7122 (power6-compare): Add "exts with dot" case.
7123 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7124 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7125 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7126
7127 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7128 if avoiding Cell microcode.
7129 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7130 (is_cracked_insn): Ditto.
7131 (insn_must_be_first_in_group): Ditto.
7132 * config/rs6000/rs6000.md (dot): Adjust comment.
7133 (cell_micro): Handle exts+dot.
7134 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7135 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7136 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7137 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7138 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7139 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7140 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7141
7142 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7143
7144 * config/rs6000/rs6000.md (QHSI): Delete.
7145 (EXTQI, EXTHI, EXTSI): New mode iterators.
7146 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7147 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7148 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7149 9 anonymous instructions, and 8 splitters): Delete.
7150 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7151 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7152 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7153 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7154 *zero_extendsi<mode>2_dot2): New.
7155
7156 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7157
7158 * config/rs6000/rs6000.md (any_extend): New code iterator.
7159 (u, su): New code attributes.
7160 (dmode, DMODE): New mode attributes.
7161 (<su>mul<mode>3_highpart): New.
7162 (*<su>mul<mode>3_highpart): New.
7163 (<su>mulsi3_highpart_le): New.
7164 (<su>muldi3_highpart_le): New.
7165 (<su>mulsi3_highpart_64): New.
7166 (<u>mul<mode><dmode>3): New.
7167 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7168 splitters): Delete.
7169 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7170 splitters): Delete.
7171
7172 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7173
7174 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
7175 *mulsi3_internal2, and two splitters): Delete.
7176 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
7177 Delete.
7178 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
7179
7180 2014-09-02 Richard Biener <rguenther@suse.de>
7181
7182 PR tree-optimization/62695
7183 * tree-ssa-structalias.c (find_func_clobbers): Add missing
7184 vector truncate.
7185
7186 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
7187
7188 PR target/62312
7189 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
7190
7191 2014-09-01 Andi Kleen <ak@linux.intel.com>
7192
7193 * file-find.c (add_prefix_begin): Add.
7194 (do_add_prefix): Rename from add_prefix with first argument.
7195 (add_prefix): Add new wrapper.
7196 * file-find.h (add_prefix_begin): Add.
7197 * gcc-ar.c (main): Support -B option.
7198
7199 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7200
7201 * genemit.c: Include dumpfile.h.
7202 (gen_split): Print name of splitter function to dump file.
7203
7204 2014-09-01 Richard Biener <rguenther@suse.de>
7205
7206 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
7207 Use stack auto_vecs for constraint expressions.
7208 (find_func_aliases_for_call): Likewise.
7209 (find_func_aliases): Likewise.
7210 (find_func_clobbers): Likewise.
7211
7212 2014-09-01 Richard Biener <rguenther@suse.de>
7213
7214 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7215 operands vector in most cases. Remove redundant code.
7216
7217 2014-09-01 Olivier Hainque <hainque@adacore.com>
7218
7219 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7220 $WIND_BASE instead of designating a harcoded arbitrary home dir.
7221 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7222
7223 2014-09-01 Richard Biener <rguenther@suse.de>
7224
7225 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7226 copy_reference_ops_from_call, vn_nary_op_compute_hash,
7227 vn_reference_compute_hash, vn_reference_insert): Remove.
7228 (vn_reference_lookup_call): New function.
7229 * tree-ssa-sccvn.c (vn_reference_compute_hash,
7230 copy_reference_ops_from_ref, copy_reference_ops_from_call,
7231 vn_reference_insert, vn_nary_op_compute_hash): Make static.
7232 (create_reference_ops_from_call): Remove.
7233 (vn_reference_lookup_3): Properly update shared_lookup_references.
7234 (vn_reference_lookup_pieces): Assert that we updated
7235 shared_lookup_references properly.
7236 (vn_reference_lookup): Likewise.
7237 (vn_reference_lookup_call): New function.
7238 (visit_reference_op_call): Use it. Avoid re-building the
7239 reference ops.
7240 (visit_reference_op_load): Remove redundant lookup.
7241 (visit_reference_op_store): Perform special tail-merging work
7242 only when possibly doing tail-merging.
7243 (visit_use): Likewise.
7244 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7245
7246 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7247
7248 PR target/62025
7249 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7250 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7251 (find_inc): Revert 2014-08-13 change.
7252
7253 2014-09-01 Marek Polacek <polacek@redhat.com>
7254
7255 PR middle-end/61903
7256 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7257 Change the type of V to unsigned HOST_WIDE_INT.
7258
7259 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
7260
7261 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7262 the size of byte markers.
7263 (do_shift_rotate): Fix confusion between host, target and marker byte
7264 size.
7265 (verify_symbolic_number_p): Likewise.
7266 (find_bswap_or_nop_1): Likewise.
7267 (find_bswap_or_nop): Likewise.
7268
7269 2014-09-01 Olivier Hainque <hainque@adacore.com>
7270
7271 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7272 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7273
7274 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7275
7276 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7277 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7278 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7279
7280 2014-09-01 Yury Gribov <y.gribov@samsung.com>
7281
7282 PR sanitizer/61897
7283 PR sanitizer/62140
7284 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7285 (build_check_stmt): Likewise.
7286 (instrument_strlen_call): Likewise.
7287 (asan_expand_check_ifn): Likewise and fix types.
7288 (maybe_cast_to_ptrmode): New function.
7289
7290 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7291
7292 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7293
7294 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
7295
7296 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7297
7298 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
7299
7300 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7301 prefix to function labels when generating fast indirect calls.
7302
7303 2014-08-30 David Malcolm <dmalcolm@redhat.com>
7304
7305 PR bootstrap/62304
7306
7307 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7308 param back from rtx_insn * to rtx. Rename param from "label" to
7309 "label_or_return", reintroducing "label" as an rtx_insn * after
7310 we've ensured it's not a RETURN.
7311 (first_active_target_insn): Likewise for return type and param;
7312 add a checked cast to rtx_insn * once we've ensured "insn" is not
7313 a RETURN.
7314 (steal_delay_list_from_target): Convert param "pnew_thread" back
7315 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
7316 with JUMP_LABEL.
7317 (own_thread_p): Convert param "thread" back from an rtx_insn * to
7318 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
7319 cast once we've established we're not dealing with a RETURN,
7320 renaming subsequent uses of "thread" to "thread_insn".
7321 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
7322 to JUMP_LABEL.
7323 (follow_jumps): Convert return type and param "label" from
7324 rtx_insn * back to rtx. Move initialization of "value" to after
7325 the handling for ANY_RETURN_P, adding a checked cast there to
7326 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
7327 rename to "this_label_or_return", reintroducing "this_label" as
7328 an rtx_insn * once we've handled the case where it could be an
7329 ANY_RETURN_P.
7330 (fill_slots_from_thread): Rename param "thread" to
7331 "thread_or_return", converting from an rtx_insn * back to an rtx.
7332 Reintroduce name "thread" as an rtx_insn * local with a checked
7333 cast once we've handled the case of it being an ANY_RETURN_P.
7334 Convert local "new_thread" from an rtx_insn * back to an rtx.
7335 Add a checked cast when assigning to "trial" from "new_thread".
7336 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
7337 checked cast to rtx_insn * from "new_thread" when invoking
7338 get_label_before.
7339 (fill_eager_delay_slots): Convert locals "target_label",
7340 "insn_at_target" from rtx_insn * back to rtx.
7341 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
7342 (relax_delay_slots): Convert locals "trial", "target_label" from
7343 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
7344 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
7345 invoking update_block.
7346 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
7347 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
7348
7349 * resource.h (mark_target_live_regs): Undo erroneous conversion
7350 of second param of r214693, converting it back from rtx_insn * to
7351 rtx, since it could be a RETURN.
7352
7353 * resource.c (find_dead_or_set_registers): Similarly, convert
7354 param "jump_target" back from an rtx_insn ** to an rtx *, as we
7355 could be writing back a RETURN. Rename local rtx_insn * "next" to
7356 "next_insn", and introduce "lab_or_return" as a local rtx,
7357 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
7358 (mark_target_live_regs): Undo erroneous conversion
7359 of second param of r214693, converting it back from rtx_insn * to
7360 rtx, since it could be a RETURN. Rename it from "target" to
7361 "target_maybe_return", reintroducing the name "target" as a local
7362 rtx_insn * with a checked cast, after we've handled the case of
7363 ANY_RETURN_P.
7364
7365 2014-08-29 DJ Delorie <dj@redhat.com>
7366
7367 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
7368 pointer size up to a power of two.
7369 * defaults.h (DWARF2_ADDR_SIZE): Round up.
7370 (POINTER_SIZE_UNITS): New, rounded up value.
7371 * dwarf2asm.c (size_of_encoded_value): Use it.
7372 (dw2_output_indirect_constant_1): Likewise.
7373 * expmed.c (init_expmed_one_conv): We now know the sizes of
7374 partial int modes.
7375 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
7376 * optabs.c (expand_float): Use precision, not size.
7377 (expand_fix): Likewise.
7378 * simplify-rtx (simplify_unary_operation_1): Likewise.
7379 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7380 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
7381 (default_assemble_integer) Likewise.
7382 (dump_tm_clone_pairs): Likewise.
7383 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
7384 * var-tracking.c (adjust_mems): Allow partial-int modes also.
7385 (prepare_call_arguments): Likewise.
7386 * stor-layout.c (finalize_type_size): Preserve precision.
7387 (layout_type): Use precision, not size.
7388
7389 * expr.c (convert_move): If the target has an explicit converter,
7390 use it.
7391
7392 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7393
7394 * gdbinit.in: Skip various inline functions in rtl.h when
7395 stepping.
7396
7397 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
7398
7399 PR bootstrap/62301
7400 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
7401
7402 2014-08-29 Richard Biener <rguenther@suse.de>
7403
7404 PR tree-optimization/62291
7405 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
7406 exactly the vector size needed and use quick_push.
7407 (phi_translate_1): Adjust comment.
7408 (valid_in_sets): Remove block argument and remove pointless
7409 checking of NAMEs.
7410 (dependent_clean): Adjust for removal of block argument.
7411 (clean): Likewise.
7412 (compute_antic_aux): Likewise.
7413 (compute_partial_antic_aux): Likewise.
7414
7415 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7416 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7417 Anna Tikhonova <anna.tikhonova@intel.com>
7418 Ilya Tocar <ilya.tocar@intel.com>
7419 Andrey Turetskiy <andrey.turetskiy@intel.com>
7420 Ilya Verbin <ilya.verbin@intel.com>
7421 Kirill Yukhin <kirill.yukhin@intel.com>
7422 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7423
7424 * config/i386/sse.md
7425 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
7426 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
7427 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
7428 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
7429
7430 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7431 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7432 Anna Tikhonova <anna.tikhonova@intel.com>
7433 Ilya Tocar <ilya.tocar@intel.com>
7434 Andrey Turetskiy <andrey.turetskiy@intel.com>
7435 Ilya Verbin <ilya.verbin@intel.com>
7436 Kirill Yukhin <kirill.yukhin@intel.com>
7437 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7438
7439 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
7440 * config/i386/sse.md
7441 (define_mode_iterator VI4_128_8_256): New.
7442 (define_mode_iterator VI2_128_4_256): Ditto.
7443 (define_mode_iterator PMOV_DST_MODE): Rename into
7444 (define_mode_iterator PMOV_DST_MODE_1): this.
7445 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
7446 Use PMOV_DST_MODE_1 mode iterator.
7447 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7448 Ditto.
7449 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7450 Ditto.
7451 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
7452 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
7453 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
7454 (define_mode_iterator PMOV_DST_MODE_2): New.
7455 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
7456 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
7457 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
7458 Ditto.
7459 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
7460 (define_mode_attr pmov_dst_3): Ditto.
7461 (define_mode_attr pmov_dst_zeroed_3): Ditto.
7462 (define_mode_attr pmov_suff_3): Ditto.
7463 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
7464 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
7465 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
7466 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
7467 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
7468 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
7469 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
7470 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
7471 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
7472 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
7473 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
7474 (define_mode_attr pmov_dst_4): Ditto.
7475 (define_mode_attr pmov_dst_zeroed_4): Ditto.
7476 (define_mode_attr pmov_suff_4): Ditto.
7477 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
7478 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
7479 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
7480 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
7481 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
7482 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
7483 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
7484 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
7485 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
7486 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
7487 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
7488
7489 2014-08-29 Richard Biener <rguenther@suse.de>
7490
7491 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
7492 NON_LVALUE_EXPR in gimple.
7493
7494 2014-08-29 Richard Biener <rguenther@suse.de>
7495
7496 PR middle-end/62292
7497 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
7498 from previous refactoring.
7499 (gimple_fold_builtin_strncpy): Likewise.
7500
7501 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7502
7503 PR bootstrap/62300
7504 * function.c (assign_parm_setup_reg): Remove erroneous checked
7505 cast to rtx_insn * on result of gen_extend_insn in favor of
7506 introducing a new local rtx "pat".
7507
7508 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7509
7510 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
7511 to silence warning.
7512 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
7513
7514 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7515
7516 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
7517 (next_insn): Likewise.
7518 * emit-rtl.c (next_insn): Likewise.
7519 (previous_insn): Likewise.
7520 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
7521 "insn" and "next" from rtx to rtx_insn *.
7522 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
7523 "insn", "insn1", "vliw_start", "prologue_end_note",
7524 "last_insn_in_packet".
7525
7526 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7527
7528 * shrink-wrap.h (active_insn_between): Strengthen both params from
7529 rtx to rtx_insn *.
7530 * function.c (active_insn_between): Likewise.
7531
7532 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7533
7534 * genattr.c (main): When writing out insn-attr.h, strengthen param
7535 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
7536 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
7537 writing out the definition of dfa_clear_single_insn_cache to the
7538 generated insn-automata.c
7539
7540 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7541
7542 * resource.h (clear_hashed_info_for_insn): Strengthen param from
7543 rtx to rtx_insn *.
7544 (incr_ticks_for_insn): Likewise.
7545 (init_resource_info): Likewise.
7546
7547 * resource.c (init_resource_info): Likewise.
7548 (clear_hashed_info_for_insn): Likewise.
7549 (incr_ticks_for_insn): Likewise.
7550
7551 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
7552 rtx to rtx_insn *.
7553 (steal_delay_list_from_target): Use methods of "seq".
7554 (try_merge_delay_insns): Use methods of "merged_insns".
7555 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
7556 (reorg_redirect_jump): Likewise for param "jump".
7557
7558 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7559
7560 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7561 rtx to rtx_insn *.
7562 * config/s390/s390.c (s390_split_branches): Eliminate top-level
7563 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7564 "set_insn".
7565 (s390_mainpool_finish): In three places, split out a local rtx
7566 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7567 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
7568 and split another local rtx "insn" out into rtx "pat" and
7569 rtx_insn * "insn".
7570 * config/sh/sh.c (output_branchy_insn): Rather than working
7571 directly on operands[9], introduce local rtx_code_label *
7572 variables named "lab" in two places, working on them, and then
7573 assigning them to operands[9], so that the intervening operations
7574 are known by the type system to be on insns.
7575
7576 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7577
7578 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7579 const rtx_insn *.
7580
7581 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7582 in invocation of INSN_HAS_LOCATION.
7583
7584 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7585
7586 * config/rs6000/altivec.h (vec_xl): New #define.
7587 (vec_xst): Likewise.
7588 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7589 (XXSPLTD_V2DI): Likewise.
7590 (DIV_V2DI): Likewise.
7591 (UDIV_V2DI): Likewise.
7592 (MUL_V2DI): Likewise.
7593 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7594 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7595 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7596 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7597 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7598 (UNSPEC_VSX_DIVSD): Likewise.
7599 (UNSPEC_VSX_DIVUD): Likewise.
7600 (UNSPEC_VSX_MULSD): Likewise.
7601 (vsx_mul_v2di): New insn-and-split.
7602 (vsx_div_v2di): Likewise.
7603 (vsx_udiv_v2di): Likewise.
7604 (vsx_xxspltd_<mode>): New insn.
7605
7606 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7607
7608 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7609 NEXT_INSN.
7610 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7611 (NEXT_INSN): Likewise.
7612 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7613 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7614 const rtx_insn *.
7615 (no_labels_between_p): Likewise for both params.
7616
7617 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7618 cast when using NEXT_INSN on operands[2].
7619 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7620 "insn" from rtx to rtx_insn *, adding a checked cast.
7621 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7622 rtx_insn *.
7623 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7624 for third param.
7625 (arc_text_label): Likewise for param "insn".
7626 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7627 "insn".
7628 (arc_ccfsm_record_condition): Likewise for param "jump".
7629 (arc_text_label): Likewise for local "label".
7630 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7631 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7632 a method for typesafety. Add a checked cast.
7633 * config/arc/constraints.md (Clb): Add a checked cast when getting
7634 the CODE_LABEL from a LABEL_REF.
7635 * config/arm/arm.c (require_pic_register): Strengthen locals
7636 "seq", "insn" from rtx to rtx_insn *.
7637 (create_fix_barrier): Likewise for locals "selected", "next".
7638 (thumb1_reorg): Likewise for locals "prev", "insn".
7639 (arm_expand_prologue): Likewise for local "last".
7640 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7641 operands[0].
7642 (thumb2_output_casesi): Likewise for operands[2].
7643 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7644 strengthen local "insn" from rtx to rtx_insn *.
7645 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7646 type and param "insn".
7647 (find_prev_insn_start): Likewise.
7648 (hwloop_optimize): Likewise for locals "insn", "last_insn",
7649 "prev".
7650 (gen_one_bundle): Likewise for loal "t".
7651 (find_load): Likewise for param "insn".
7652 (workaround_speculation): Likewise for locals "insn", "next",
7653 "target", "next_tgt".
7654 * config/c6x/c6x.c (assign_reservations): Likewise for both params
7655 and for locals "insn", "within", "last".
7656 (count_unit_reqs): Likewise for params "head", "tail" and local
7657 "insn".
7658 (try_rename_operands): Likewise for params "head", "tail".
7659 (reshuffle_units): Likewise for locals "head", "tail", "insn".
7660 (struct c6x_sched_context): Likewise for fields
7661 "last_scheduled_insn", "last_scheduled_iter0".
7662 (init_sched_state): Replace NULL_RTX with NULL.
7663 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
7664 to rtx_insn *.
7665 (undo_split_delayed_nonbranch): Likewise for param and for local
7666 "prev".
7667 (conditionalize_after_sched): Likewise for local "insn".
7668 (bb_earliest_end_cycle): Likewise.
7669 (filter_insns_above): Likewise for locals "insn", "next".
7670 (hwloop_optimize): Remove redundant checked cast.
7671 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
7672 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
7673 NULL_RTX with NULL.
7674 (cris_simple_epilogue): Likewise.
7675 (cris_expand_prologue): Likewise.
7676 (cris_expand_epilogue): Likewise.
7677 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7678 local "insn" from rtx to rtx_insn *.
7679 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7680 (struct frv_packet_group): Likewise for the elements within array
7681 fields "insns", "sorted", and for field "nop".
7682 (frv_packet): Likewise for the elements within array field
7683 "insns".
7684 (frv_add_insn_to_packet): Likewise for param "insn".
7685 (frv_insert_nop_in_packet): Likewise for param "insn" and local
7686 "last".
7687 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7688 (frv_sort_insn_group_1): Likewise for local "insn".
7689 (frv_optimize_membar_local): Likewise.
7690 (frv_align_label): Likewise for locals "x", "last", "barrier",
7691 "label".
7692 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7693 local.
7694 (ia64_sched_init): Likewise for local "insn".
7695 (scheduled_good_insn): Likewise for param "last".
7696 (struct _ia64_sched_context): Likewise for field
7697 "last_scheduled_insn".
7698 (ia64_init_sched_context): Replace NULL_RTX with NULL.
7699 (struct bundle_state): Likewise for field "insn".
7700 (issue_nops_and_insn): Likewise for param "insn".
7701 (get_next_important_insn): Likewise for return type and both
7702 params.
7703 (ia64_add_bundle_selector_before): Likewise for param "insn".
7704 (bundling): Likewise for params "prev_head_insn", "tail" and
7705 locals "insn", "next_insn", "b". Eliminate top-level local rtx
7706 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
7707 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
7708 Strengthen final param from rtx to rtx_insn *.
7709 (iq2000_move_1word): Likewise for second param.
7710 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
7711 param "cur_insn" and local "next_insn".
7712 (iq2000_move_1word): Likewise for param "insn".
7713 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
7714 casts when using NEXT_INSN on operands[1].
7715 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
7716 "insn" from rtx to rtx_insn *.
7717 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
7718 "x", introducing local rtx_insn * "insn" for when working with the
7719 CODE_LABEL of the LABEL_REF.
7720 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
7721 rtx_insn *.
7722 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
7723 param.
7724 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
7725 type.
7726 (conditionalize_block): Likewise for return type and param.
7727 (mcore_is_dead): Likewise for param "first" and local "insn".
7728 (emit_new_cond_insn): Likewise for return type.
7729 (conditionalize_block): Likewise for return type, param, and
7730 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
7731 "newinsn".
7732 (conditionalize_optimization): Likewise for local "insn".
7733 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
7734 using NEXT_INSN.
7735 * config/microblaze/microblaze.md: Add checked casts when using
7736 NEXT_INSN.
7737 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
7738 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
7739 and rtx_insn * "insn".
7740 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
7741 checked cast when using NEXT_INSN on operands[2].
7742 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
7743 local "insn" from rtx to rtx_insn *.
7744 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
7745 Likewise.
7746 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
7747 Add a checked cast when using NEXT_INSN on operands[1].
7748 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
7749 rtx to rtx_insn *.
7750 (pa_output_cbranch): Likewise for final param.
7751 (pa_output_lbranch): Likewise for second param.
7752 (pa_output_bb): Likewise for third param.
7753 (pa_output_bvb): Likewise.
7754 (pa_output_dbra): Likewise for second param.
7755 (pa_output_movb): Likewise.
7756 (pa_output_parallel_movb): Likewise.
7757 (pa_output_parallel_addb): Likewise.
7758 (pa_output_millicode_call): Likewise for first param.
7759 (pa_output_mul_insn): Likewise for second param.
7760 (pa_output_div_insn): Likewise for third param.
7761 (pa_output_mod_insn): Likewise for second param.
7762 (pa_jump_in_call_delay): Likewise for param.
7763 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
7764 (pa_output_div_insn): Likewise.
7765 (pa_output_mod_insn): Likewise.
7766 (pa_output_cbranch): Likewise.
7767 (pa_output_lbranch): Likewise.
7768 (pa_output_bb): Likewise.
7769 (pa_output_bvb): Likewise.
7770 (pa_output_dbra): Likewise.
7771 (pa_output_movb): Likewise.
7772 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
7773 to simplify and for typesafety.
7774 (pa_output_call): Use method of rtx_sequence *.
7775 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
7776 (pa_jump_in_call_delay): Likewise.
7777 (pa_output_parallel_movb): Likewise.
7778 (pa_output_parallel_addb): Likewise.
7779 (pa_following_call): Likewise.
7780 (pa_combine_instructions): Likewise for locals "anchor",
7781 "floater".
7782 (pa_can_combine_p): Likewise for params "anchor", "floater" and
7783 locals "start", "end".
7784 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
7785 param "insn" and local "local_insn".
7786 (picochip_final_prescan_insn): Likewise for local "local_insn".
7787 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
7788 local "insn".
7789 (uses_TOC): Likewise.
7790 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
7791 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
7792 splitting out to more tightly-scoped locals, 3 as rtx and one as
7793 rtx_insn *.
7794 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
7795 to rtx_insn *.
7796 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
7797 where needed.
7798 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
7799 to rtx_insn *.
7800 (fixup_addr_diff_vecs): Likewise.
7801 (reg_unused_after): Likewise for param 2.
7802 (sh_can_redirect_branch): Likewise for both params.
7803 (check_use_sfunc_addr): Likewise for param 1.
7804 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
7805 (find_barrier): Likewise for local "last_got".
7806 (gen_block_redirect): Likewise for return type, param "jump" and
7807 locals "prev", "scan", "next", "insn".
7808 (struct far_branch): Likewise for fields "near_label",
7809 "insert_place", "far_label".
7810 (gen_far_branch): Likewise for local "jump".
7811 (fixup_addr_diff_vecs): Likewise for param "first" and locals
7812 "insn", "prev".
7813 (barrier_align): Likewise for param and for locals "prev", "x".
7814 Introduce local rtx_sequence * "prev_seq" and use insn method for
7815 typesafety and clarity.
7816 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
7817 (get_dest_uid): Likewise for local "dest".
7818 (split_branches): Likewise for locals "next", "beyond", "label",
7819 "block", "far_label". Add checked casts when assigning to
7820 bp->far_label and "far_label".
7821 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
7822 (sequence_insn_p): Likewise.
7823 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
7824 more loop-scoped rtx "insn" when walking LABEL_REFS.
7825 (sh_can_redirect_branch): Strengthen both params from rtx to
7826 rtx_insn *.
7827 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
7828 new local rtx_sequence * "seq" via a dyn_cast, and use a method
7829 for clarity and typesafety.
7830 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
7831 "insn" from rtx to rtx_insn *.
7832 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
7833 when using NEXT_INSN on the CODE_LABEL in operands[2].
7834 (define_insn "casesi_worker_2"): Likewise.
7835 (define_insn "casesi_shift_media"): Likewise.
7836 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
7837 operands[3].
7838 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
7839 Strengthen field "insn" from rtx to rtx_insn *.
7840 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
7841 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
7842 param "start_insn" and local "start_insn".
7843 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
7844 field "insn".
7845 (find_set_of_reg_bb): Likewise for param "insn".
7846 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
7847 (trace_reg_uses): Likewise for param "start_insn".
7848 (sh_treg_combine::cbranch_trace): Likewise for field
7849 "cbranch_insn".
7850 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
7851 param "insn".
7852 (sh_treg_combine::record_set_of_reg): Likewise for param
7853 "start_insn" and local "i".
7854 (sh_treg_combine::can_remove_cstore): Likewise for local
7855 "prev_insn".
7856 (sh_treg_combine::try_optimize_cbranch): Likewise for param
7857 "insn".
7858 (sh_treg_combine::execute): Likewise for local "i".
7859 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
7860 param.
7861 (sparc_check_64): Likewise for second param.
7862 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
7863 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
7864 dyn_cast, using its insn method for typesafety and clarity.
7865 (empty_delay_slot): Strengthen param "insn" from rtx to
7866 rtx_insn *.
7867 (set_extends): Likewise.
7868 (sparc_check_64): Likewise.
7869 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
7870 for locals "seq", "last_insn".
7871 (combine_bnp): Likewise for param "insn".
7872 (xstormy16_reorg): Likewise for local "insn".
7873 * config/v850/v850.c (substitute_ep_register): Likewise for params
7874 "first_insn", "last_insn" and local "insn".
7875 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
7876 elements of "regs" array, and local "insn".
7877 * except.c (emit_note_eh_region_end): Likewise for param "insn".
7878 * final.c (final_sequence): Strengthen this global from rtx to
7879 rtx_sequence *.
7880 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
7881 rtx_insn *.
7882 (final_scan_insn): Update assignment to "final_sequence" to be
7883 from "seq", the cast version of "body", for type-safety.
7884 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
7885 "insns" from rtx to rtx_insn *.
7886 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
7887 * genattr.c (main): When writing out generated insn-attr.h,
7888 strengthen params 1 and 3 of eligible_for_delay,
7889 eligible_for_annul_true, eligible_for_annul_false from rtx to
7890 rtx_insn *.
7891 * genattrtab.c (write_eligible_delay): Likewise when writing out
7892 generated insn-attrtab.c; also local "insn" the generated
7893 functions.
7894 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
7895 to rtx_insn *.
7896 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
7897 "start_label" from rtx to rtx_insn *.
7898 * ira.c (decrease_live_ranges_number): Likewise for local "p".
7899 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
7900 "insns" and local "insn".
7901 (validate_equiv_mem): Likewise for param "start" and local "insn".
7902 (memref_used_between_p): Likewise for params "start", "end" and
7903 local "insn".
7904 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
7905 final param.
7906 * loop-doloop.c (doloop_optimize): Within region guarded by
7907 INSN_P (doloop_pat), introduce a new local rtx_insn *
7908 "doloop_insn" via a checked cast, and use it for typesafety,
7909 eventually writing the value back into doloop_pat.
7910 * output.h (final_sequence): Strengthen this global from rtx to
7911 rtx_sequence *.
7912 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
7913 reintroducing "insn" as an rtx_insn * via a checked cast.
7914 Strengthen param "attempt" and local "new_insn"from rtx to
7915 rtx_insn *.
7916 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
7917 to rtx_insn *.
7918 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
7919 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
7920 "p" in favor of more tightly-scoped replacements, sometimes rtx
7921 and sometimes rtx_insn *, as appropriate.
7922 (delete_output_reload): Eliminate top-level rtx "i1", splitting
7923 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
7924 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
7925 local "trial" from rtx to rtx_insn *.
7926 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
7927 rtx to rtx_insn *. Strenghten local "pat" from rtx to
7928 rtx_sequence * and use methods for clarity and typesafety.
7929 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
7930 rtx to rtx_insn *. Strenghten local "li" from rtx to
7931 rtx_insn_list * and use its methods for clarity and typesafety.
7932 (steal_delay_list_from_target): Strengthen param "insn" from rtx
7933 to rtx_insn *.
7934 (steal_delay_list_from_fallthrough): Likewise.
7935 (try_merge_delay_insns): Likewise for param "thread" and locals
7936 "trial", "next_trial", "delay_insn".
7937 (redundant_insn): Likewise for param "target" and local "trial".
7938 (own_thread_p): Likewise for param "thread" and locals
7939 "active_insn", "insn".
7940 (get_label_before): Likewise for param "insn".
7941 (fill_simple_delay_slots): Likewise for local "new_label"; use
7942 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
7943 (label_before_next_insn): Strengthen return type and local "insn"
7944 from rtx to rtx_insn *.
7945 (relax_delay_slots): Likewise for locals "other", "tmp".
7946 (make_return_insns): Likewise for param "first" and locals "insn",
7947 "jump_insn", "prev". Move declaration of "pat" to its assignment
7948 and strengthen from rtx to rtx_sequence *. Use its methods for
7949 clarity and typesafety.
7950 * rtlanal.c (no_labels_between_p): Strengthen params from
7951 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
7952 rtx_insn *.
7953 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
7954 from const_rtx to const rtx_insn *.
7955 (reg_set_between_p): Rename param "from_insn" to
7956 "uncast_from_insn", and reintroduce "from_insn" as a
7957 const rtx_insn * via a checked cast.
7958 (modified_between_p): Likewise for param "start" as "uncast_start".
7959 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
7960 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
7961 "tmp", head" from rtx to rtx_insn *.
7962 (recompute_rev_top_order): Likewise for local "insn".
7963 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
7964 * store-motion.c (build_store_vectors): Likewise for local "insn".
7965 Strengthen local "st" from rtx to rtx_insn_list * and use methods
7966 for clarity and typesafety.
7967 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
7968 rtx to rtx_insn *.
7969 (computation_cost): Likewise for local "seq".
7970 (get_address_cost): Likewise.
7971
7972 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7973
7974 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
7975 const rtx_insn *.
7976 (label_is_jump_target_p): Likewise for second param.
7977
7978 * rtlanal.c (tablejump_p): Likewise for param "insn".
7979 (label_is_jump_target_p): Likewise for param "jump_insn".
7980
7981 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7982
7983 * rtl.h (find_first_parameter_load): Strengthen return type and
7984 both params from rtx to rtx_insn *.
7985 * rtlanal.c (find_first_parameter_load): Strengthen return type,
7986 both params and locals "before", "first_set" from rtx to
7987 rtx_insn *. Remove now-redundant cast.
7988 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
7989
7990 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7991
7992 * rtl.h (find_last_value): Delete.
7993 * rtlanal.c (find_last_value): Delete.
7994
7995 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7996
7997 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
7998 from rtx to rtx_insn *.
7999 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8000 rtx "note" with new local rtx_insn * "new_head" when calculating
8001 head insn of new basic block.
8002 * combine.c (combine_split_insns): Strengthen return type and local
8003 "ret" from rtx to rtx_insn *.
8004 (likely_spilled_retval_p): Likewise for locals "use" and "p".
8005 (try_combine): Eliminate local "m_split", splitting into new
8006 locals "m_split_insn" and "m_split_pat".
8007 (find_split_point): Strengthen local "seq" from rtx into
8008 rtx_insn *.
8009 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8010 locals "label", "branch".
8011 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8012 for local "insn".
8013 (define_expand "umulsi3_highpart"): Likewise for local "insn".
8014 * dse.c (note_add_store_info): Likewise for fields "first",
8015 "current".
8016 (note_add_store): Likewise for local "insn".
8017 (emit_inc_dec_insn_before): Likewise for locals "insn",
8018 "new_insn", "cur".
8019 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8020 (replace_read): Likewise for locals "insns", "this_insn".
8021 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8022 (notice_eh_throw): Likewise for param "insn".
8023 (before_next_cfi_note): Likewise for return type, param, and local
8024 "prev".
8025 (connect_traces): Likewise for local "note".
8026 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8027 (verify_rtl_sharing): Likewise.
8028 (unshare_all_rtl_in_chain): Likewise for param "insn".
8029 (get_first_nonnote_insn): Likewise for local "insn".
8030 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
8031 "seq" and use its methods to clarify things.
8032 (next_insn): Strengthen return type from rtx to rtx_insn *.
8033 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8034 local rtx_insn * using a checked cast, dropping a checked cast
8035 made redundant by this change. Use a cast to and method of
8036 rtx_sequence to clarify the code.
8037 (previous_insn): Rename param "insn" to "uncast_insn" and
8038 reintroduce "insn" as a local rtx_insn * using a checked cast,
8039 dropping a checked cast made redundant by this change. Use a cast
8040 to and method of rtx_sequence to clarify the code.
8041 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8042 reintroduce "insn" as a local rtx_insn * using a checked cast,
8043 dropping a checked cast made redundant by this change.
8044 (next_nonnote_insn_bb): Likewise.
8045 (prev_nonnote_insn): Likewise.
8046 (prev_nonnote_insn_bb): Likewise.
8047 (next_nondebug_insn): Likewise.
8048 (prev_nondebug_insn): Likewise.
8049 (next_nonnote_nondebug_insn): Likewise.
8050 (prev_nonnote_nondebug_insn): Likewise.
8051 (next_real_insn): Likewise.
8052 (prev_real_insn): Likewise.
8053 (next_active_insn): Likewise.
8054 (prev_active_insn): Likewise.
8055 (next_cc0_user): Likewise. Use rtx_sequence and a method for
8056 clarity.
8057 (prev_cc0_setter): Likewise.
8058 (try_split): Rename param "trial" to "uncast_trial" and
8059 reintroduce "insn" as a local rtx_insn * using a checked cast,
8060 dropping checked casts made redundant by this change.
8061 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8062 rtx to rtx_insn *.
8063 (remove_insn): Rename param "insn" to "uncast_insn" and
8064 reintroduce "insn" as a local rtx_insn * using a checked cast.
8065 (emit_pattern_after_setloc): Likewise for param "after", as
8066 "uncast_after".
8067 (emit_pattern_after): Likewise. Strengthen local "prev" from
8068 rtx to rtx_insn *.
8069 (emit_pattern_before_setloc): Rename param "before" to
8070 "uncast_before" and reintroduce "before" as a local rtx_insn *
8071 using a checked cast. Strengthen locals "first", "last" from
8072 rtx to rtx_insn *.
8073 (emit_pattern_before): Likewise rename/cast param "before" to
8074 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8075 * except.c (copy_reg_eh_region_note_forward): Strengthen param
8076 "first" and local "insn" from rtx to rtx_insn *.
8077 (copy_reg_eh_region_note_backward): Likewise for param "last"
8078 and local "insn".
8079 * expr.c (fixup_args_size_notes): Rename param "last" to
8080 "uncast_last" and reintroduce "last" as a local rtx_insn *
8081 using a checked cast. Strengthen local "insn" from rtx to
8082 rtx_insn *.
8083 * function.c (set_insn_locations): Strengthen param "insn" from
8084 rtx to rtx_insn *.
8085 (record_insns): Likewise for param "insns" and local "tmp".
8086 (active_insn_between): Rename param "tail" to
8087 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8088 using a checked cast.
8089 (thread_prologue_and_epilogue_insns): Split out top-level local
8090 rtx "seq" into three different rtx_insn * locals. Strengthen
8091 local "prologue_seq" from rtx to rtx_insn *.
8092 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8093 from rtx to rtx_insn *.
8094 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8095 (priority): Likewise for locals "prev_first", "twin".
8096 (setup_insn_max_reg_pressure): Likewise for param "after".
8097 (sched_setup_bb_reg_pressure_info): Likewise.
8098 (no_real_insns_p): Strengthen params from const_rtx to
8099 const rtx_insn *.
8100 (schedule_block): Strengthen local "next_tail" from rtx to
8101 rtx_insn *.
8102 * ifcvt.c (find_active_insn_before): Strengthen return type and
8103 param "insn" from rtx to rtx_insn *.
8104 (find_active_insn_after): Likewise.
8105 (cond_exec_process_insns): Likewise for param "start" and local "insn".
8106 (cond_exec_process_if_block): Likewise for locals "then_start",
8107 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8108 (noce_process_if_block): Likewise for local "jump".
8109 (merge_if_block): Likewise for two locals named "end".
8110 (cond_exec_find_if_block): Likewise for local "last_insn".
8111 * jump.c (delete_related_insns): Rename param "insn" to
8112 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8113 checked cast. Strengthen local "p" from rtx to rtx_insn *.
8114 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8115 NULL.
8116 (split_reg): Likewise.
8117 * lra.c (lra_process_new_insns): Likewise.
8118 * modulo-sched.c (permute_partial_schedule): Strengthen param
8119 "last" from rtx to rtx_insn *.
8120 * optabs.c (add_equal_note): Likewise for param "insns" and local
8121 "last_insn".
8122 (expand_binop_directly): Add checked casts to rtx_insn * within
8123 NEXT_INSN (pat) uses.
8124 (expand_unop_direct): Likewise.
8125 (maybe_emit_unop_insn): Likewise.
8126 * recog.c (peep2_attempt): Strengthen locals "last",
8127 "before_try", "x" from rtx to rtx_insn *.
8128 * reorg.c (optimize_skip): Strengthen return type and local
8129 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
8130 and locals "trial", "next_trial" from rtx to rtx_insn *.
8131 * resource.c (next_insn_no_annul): Strengthen return type and
8132 param "insn" from rtx to rtx_insn *. Use a cast to and method of
8133 rtx_sequence to clarify the code.
8134 (mark_referenced_resources): Add a checked cast to rtx_insn *
8135 within PREV_INSN (x).
8136 (find_dead_or_set_registers): Strengthen return type, param
8137 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8138 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
8139 to rtx_insn **.
8140 (mark_target_live_regs): Strengthen params "insns" and "target",
8141 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8142 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
8143 the code.
8144 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8145 from rtx to rtx_insn *.
8146 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8147 from rtx to rtx_insn *.
8148 (copy_reg_eh_region_note_backward): Likewise.
8149 (unshare_all_rtl_in_chain): Likewise for sole param.
8150 (dump_rtl_slim): Strengthen second and third params from const_rtx
8151 to const rtx_insn *.
8152 * sched-deps.c (sched_free_deps): Strengthen params "head" and
8153 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8154 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8155 "next_tail" from rtx to rtx_insn *.
8156 (begin_move_insn): Likewise for local "next".
8157 * sched-int.h (sched_free_deps): Likewise for first and second
8158 params.
8159 (no_real_insns_p): Strengthen both params from const_rtx to
8160 const rtx_insn *.
8161 (sched_setup_bb_reg_pressure_info): Strengthen second params from
8162 rtx to rtx_insn *.
8163 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8164 "next_tail".
8165 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8166 and locals "insn", "tail" from const_rtx to const rtx_insn *.
8167 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8168 rtx_insn *.
8169 (debug_rtl_slim): Strengthen params "first" and "last" from
8170 const_rtx to const rtx_insn *.
8171 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8172 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8173 (convert_to_simple_return): Likewise for param "returnjump".
8174 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
8175 "prologue_seq".
8176 (convert_to_simple_return): Likewise for param "returnjump".
8177 * valtrack.c (propagate_for_debug): Likewise for params
8178 "insn", "last".
8179 * valtrack.h (propagate_for_debug): Likewise for second param.
8180
8181 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8182
8183 * output.h (insn_current_reference_address): Strengthen param
8184 from rtx to rtx_insn *.
8185 * final.c (insn_current_reference_address): Likewise.
8186
8187 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8188
8189 * basic-block.h (inside_basic_block_p): Strengthen param from
8190 const_rtx to const rtx_insn *.
8191 * cfgbuild.c (inside_basic_block_p): Likewise.
8192
8193 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8194
8195 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
8196 rtx_insn *.
8197 (get_trace_info): Likewise for param "insn".
8198 (save_point_p): Likewise.
8199 (maybe_record_trace_start): Likewise for both params.
8200 (maybe_record_trace_start_abnormal): Likewise.
8201 (create_trace_edges): Likewise for sole param and for three of the
8202 locals named "lab".
8203 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
8204 to rtx_insn *, and update a call to pat->element to pat->insn.
8205
8206 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8207
8208 * function.h (struct expr_status): Convert field "x_forced_labels"
8209 from rtx_expr_list * to rtx_insn_list *.
8210
8211 * cfgbuild.c (make_edges): Convert local "x" from an
8212 rtx_expr_list * to an rtx_insn_list *, replacing use of
8213 "element" method with "insn" method.
8214 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8215 * except.c (sjlj_emit_dispatch_table): Replace use of
8216 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8217 forced_labels.
8218 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8219 rtx_expr_list * to an rtx_insn_list *, replacing use of
8220 "element" method with "insn" method.
8221 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8222 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8223 rtx_insn *, adding a checked cast. Replace use of
8224 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8225 forced_labels.
8226 (expand_label): Likewise for local "label_r".
8227
8228 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8229
8230 * function.h (struct rtl_data): Convert field
8231 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8232 rtx_insn_list *.
8233 * rtl.h (remove_node_from_insn_list): New prototype.
8234
8235 * builtins.c (expand_builtin): When prepending to
8236 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8237 gen_rtx_EXPR_LIST.
8238 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8239 to rtx_insn_list *, and use its "insn" method rather than
8240 "element" method.
8241 * cfgrtl.c (delete_insn): Use new function
8242 remove_node_from_insn_list rather than
8243 remove_node_from_expr_list.
8244 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8245 to rtx_insn_list *, and use its "insn" method rather than
8246 "element" method.
8247 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8248 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8249 * rtlanal.c (remove_node_from_insn_list): New function, adapted
8250 from remove_node_from_expr_list.
8251 * stmt.c (expand_label): When prepending to
8252 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8253 gen_rtx_EXPR_LIST.
8254
8255 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8256
8257 * function.h (struct rtl_data): Strengthen fields "x_return_label"
8258 and "x_naked_return_label" from rtx to rtx_code_label *.
8259
8260 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8261
8262 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8263 (SET_NEXT_INSN): Likewise.
8264 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8265
8266 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8267 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
8268 to split out the SEQUENCE from local "bundle", strengthening the
8269 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8270 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8271 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8272 and the type of the elements of the "slot" array from rtx to
8273 rtx_insn *.
8274 (reorg_split_calls): Likewise for locals "insn" and "next", and
8275 the type of the elements of the "slot" array.
8276
8277 * config/frv/frv.c (frv_nops): Likewise for the elements of this
8278 array.
8279 (frv_function_prologue): Likewise for locals "insn", "next",
8280 "last_call".
8281 (frv_register_nop): Introduce a local "nop_insn" to be the
8282 rtx_insn * containing rtx "nop".
8283
8284 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8285 used as an insn and sometimes as a pattern, so rename it to
8286 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8287 using it where dealing with the core insn.
8288
8289 * config/picochip/picochip.c (reorder_var_tracking_notes):
8290 Strengthen locals "insn", "next", "last_insn", "queue",
8291 "next_queue", "prev" from rtx to rtx_insn *.
8292
8293 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8294 the second param is an rtx_insn ** rather than an rtx **.
8295 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8296 from rtx to rtx_sequence *, and introduce local named "sequence",
8297 using methods of rtx_sequence to clarify the code.
8298 (remove_insn): Introduce local rtx_sequence * named "sequence" and
8299 use its methods.
8300 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8301 Rename param "after" to "uncast_after", reintroducing "after" as a
8302 local rtx_insn * with a checked cast.
8303 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8304 reintroducing "after" as a local rtx_insn * with a checked cast.
8305 Strengthen local "last" from rtx to rtx_insn * and remove the
8306 now-redundant checked casts.
8307 (copy_delay_slot_insn): Strengthen return type and param from rtx
8308 to rtx_insn *.
8309
8310 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
8311 "last" from rtx to rtx_insn *.
8312
8313 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8314
8315 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
8316 param from rtx to rtx_insn *.
8317
8318 * emit-rtl.c (copy_delay_slot_insn): Likewise.
8319
8320 * reorg.c (skip_consecutive_labels): Strengthen return type, param
8321 and local "insn" from rtx to rtx_insn *.
8322 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
8323 (unfilled_slots_next): Likewise.
8324 (function_return_label): Strengthen from rtx to rtx_code_label *.
8325 (function_simple_return_label): Likewise.
8326 (first_active_target_insn): Strengthen return type and param from
8327 rtx to rtx_insn *.
8328 (find_end_label): Strengthen return type from rtx to
8329 rtx_code_label *; strengthen locals as appropriate.
8330 (emit_delay_sequence): Strengthen return type, param "insn" and
8331 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
8332 and local "li" from rtx to rtx_insn_list *, using methods of
8333 rtx_insn_list for clarity and typesafety.
8334 (add_to_delay_list): Strengthen return type and param "insn" from
8335 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
8336 rtx_insn_list * and use methods of rtx_insn_list.
8337 (delete_from_delay_slot): Strengthen return type, param "insn",
8338 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
8339 Strengthen local "seq" from rtx to rtx_sequence *, and local
8340 "delay_list" from rtx to rtx_insn_list *, using methods of
8341 rtx_sequence for clarity and type-safety.
8342 (delete_scheduled_jump): Add checked cast when invoking
8343 delete_from_delay_slot. Strengthen local "trial" from rtx to
8344 rtx_insn *.
8345 (optimize_skip): Strengthen return type and local "delay_list"
8346 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
8347 rtx_insn *.
8348 (steal_delay_list_from_target): Strengthen return type, param
8349 "delay_list" and local "new_delay_list" from rtx to
8350 rtx_insn_list *. Strengthen param "seq" from rtx to
8351 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
8352 rtx_insn **.
8353 Split out local "temp" into multiple more-tightly scoped locals:
8354 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
8355 of rtx_insn_list and rtx_sequence for clarity and typesafety.
8356 Strengthen locals named "trial" from rtx to rtx_insn *.
8357 (steal_delay_list_from_fallthrough): Strengthen return type and
8358 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
8359 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
8360 Strengthen local "trial" from rtx to rtx_insn *.
8361 (try_merge_delay_insns): Strength local "merged_insns" from rtx
8362 to rtx_insn_list * and use its methods. Strengthen local "pat"
8363 from rtx to rtx_sequence * and use its methods. Strengthen locals
8364 "dtrial" and "new_rtx" from rtx to rtx_insn *.
8365 (get_label_before): Strengthen return type and local "label" from
8366 rtx to rtx_insn *.
8367 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
8368 "next_trial", "next", prev". Strengthen local "delay_list" from
8369 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
8370 rtx_insn **.
8371 (follow_jumps): Strengthen return type, param "label" and locals
8372 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
8373 (fill_slots_from_thread): Strengthen return type, param
8374 "delay_list" from rtx to rtx_insn_list *. Strengthen params
8375 "insn", "thread", "opposite_thread" and locals "new_thread",
8376 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
8377 "sequence" from a checked cast to rtx_sequence so that we can call
8378 steal_delay_list_from_target and steal_delay_list_from_fallthrough
8379 with an rtx_sequence *.
8380 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
8381 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
8382 Strengthen local "delay_list" from rtx to rtx_insn_list *.
8383 (relax_delay_slots): Strengthen param "first" and locals "insn",
8384 "next", "trial", "delay_insn", "target_label" from rtx to
8385 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
8386 Introduce a local "trial_seq" for PATTERN (trial) of type
8387 rtx_sequence *, in both cases using methods of rtx_sequence.
8388 (dbr_schedule): Strengthen param "first" and locals "insn",
8389 "next", "epilogue_insn" from rtx to rtx_insn *.
8390
8391 2014-08-28 Richard Biener <rguenther@suse.de>
8392
8393 PR tree-optimization/62283
8394 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8395 Do not peel loops for alignment where the vector loop likely
8396 doesn't run at least VF times.
8397
8398 2014-08-28 Bin Cheng <bin.cheng@arm.com>
8399
8400 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
8401 important_candidates. Consider all important candidates if
8402 IVS doesn't give any result. Remove check on ivs->upto.
8403 (try_add_cand_for): Call iv_ca_add_use only once.
8404
8405 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8406 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8407 Anna Tikhonova <anna.tikhonova@intel.com>
8408 Ilya Tocar <ilya.tocar@intel.com>
8409 Andrey Turetskiy <andrey.turetskiy@intel.com>
8410 Ilya Verbin <ilya.verbin@intel.com>
8411 Kirill Yukhin <kirill.yukhin@intel.com>
8412 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8413
8414 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
8415 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
8416 masking.
8417 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
8418 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8419 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8420 (define_insn "*mul<mode>3"): Add EVEX version.
8421
8422 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8423 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8424 Anna Tikhonova <anna.tikhonova@intel.com>
8425 Ilya Tocar <ilya.tocar@intel.com>
8426 Andrey Turetskiy <andrey.turetskiy@intel.com>
8427 Ilya Verbin <ilya.verbin@intel.com>
8428 Kirill Yukhin <kirill.yukhin@intel.com>
8429 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8430
8431 * config/i386/sse.md
8432 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
8433 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
8434 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
8435 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
8436 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
8437 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
8438 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
8439 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
8440 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
8441 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
8442 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
8443 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
8444 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
8445 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
8446 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
8447 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
8448
8449 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8450 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8451 Anna Tikhonova <anna.tikhonova@intel.com>
8452 Ilya Tocar <ilya.tocar@intel.com>
8453 Andrey Turetskiy <andrey.turetskiy@intel.com>
8454 Ilya Verbin <ilya.verbin@intel.com>
8455 Kirill Yukhin <kirill.yukhin@intel.com>
8456 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8457
8458 * config/i386/sse.md
8459 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
8460 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
8461 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
8462
8463 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8464 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8465 Anna Tikhonova <anna.tikhonova@intel.com>
8466 Ilya Tocar <ilya.tocar@intel.com>
8467 Andrey Turetskiy <andrey.turetskiy@intel.com>
8468 Ilya Verbin <ilya.verbin@intel.com>
8469 Kirill Yukhin <kirill.yukhin@intel.com>
8470 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8471
8472 * config/i386/sse.md
8473 (define_mode_iterator VI128_256): New.
8474 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
8475
8476 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8477 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8478 Anna Tikhonova <anna.tikhonova@intel.com>
8479 Ilya Tocar <ilya.tocar@intel.com>
8480 Andrey Turetskiy <andrey.turetskiy@intel.com>
8481 Ilya Verbin <ilya.verbin@intel.com>
8482 Kirill Yukhin <kirill.yukhin@intel.com>
8483 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8484
8485 * config/i386/sse.md
8486 (define_mode_iterator VI8_256_512): New.
8487 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
8488 Ditto.
8489 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8490 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
8491 Ditto.
8492 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
8493
8494 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8495
8496 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
8497 pointer to the cumulative reloc value and return the value for
8498 this reloc instead.
8499 (compute_reloc_for_rtx): Take a const_rtx. Call
8500 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
8501 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
8502 for_each_rtx for the CONST case.
8503
8504 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8505
8506 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
8507 (mark_constants_in_pattern): ...this new function to iterate over
8508 all the subrtxes.
8509 (mark_constants): Update accordingly.
8510
8511 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8512
8513 * varasm.c: Include rtl-iter.h.
8514 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
8515 Remove the pointer to the cumulative hashval_t and just return
8516 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
8517 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8518 Accumulate the hashval_ts here instead of const_rtx_hash_1.
8519
8520 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8521
8522 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
8523 Give real type of data parameter. Remove return value.
8524 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
8525 to iterate over subrtxes.
8526
8527 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8528
8529 * var-tracking.c (use_narrower_mode_test): Turn from being a
8530 for_each_rtx callback to being a function that examines each
8531 subrtx itself.
8532 (adjust_mems): Update accordingly.
8533
8534 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8535
8536 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
8537 callback to being a function that examines each subrtx itself.
8538 Remove handling of null rtxes.
8539 (add_uses): Update accordingly.
8540
8541 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8542
8543 * var-tracking.c: Include rtl-iter.h.
8544 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
8545 to being a function that examines each subrtx itself.
8546 (use_type): Update accordingly.
8547
8548 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8549
8550 * store-motion.c: Include rtl-iter.h.
8551 (extract_mentioned_regs_1): Delete.
8552 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
8553 for_each_rtx to iterate over subrtxes.
8554
8555 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8556
8557 * sel-sched.c: Include rtl-iter.h
8558 (count_occurrences_1): Delete.
8559 (count_occurrences_equiv): Turn rtxes into const_rtxes.
8560 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8561
8562 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8563
8564 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8565 * rtlanal.c (tls_referenced_p_1): Delete.
8566 (tls_referenced_p): Take a const_rtx rather than an rtx.
8567 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8568
8569 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8570
8571 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8572 (for_each_inc_dec): Take an rtx rather than an rtx *.
8573 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8574 (cselib_record_sets): Likewise.
8575 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8576 (check_for_inc_dec): Likewise.
8577 * rtlanal.c (for_each_inc_dec_ops): Delete.
8578 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8579 rather than a pointer to the memory address. Replace
8580 for_each_inc_dec_ops argument with separate function and data
8581 arguments. Abort on non-autoinc addresses.
8582 (for_each_inc_dec_find_mem): Delete.
8583 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
8584 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8585
8586 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8587
8588 * rtl.h (find_all_hard_regs): Declare.
8589 * rtlanal.c (find_all_hard_regs): New function.
8590 (record_hard_reg_uses_1): Delete.
8591 (record_hard_reg_uses): Use find_all_hard_regs.
8592
8593 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8594
8595 * rtl.h (replace_label_data): Delete.
8596 (replace_label): Take the old label, new label and update-nuses flag
8597 as direct arguments. Return void.
8598 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8599 * rtlanal.c (replace_label): Update interface as above. Handle
8600 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
8601 iterator. Use FOR_EACH_SUBRTX_PTR.
8602
8603 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8604
8605 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8606 with const_rtx parameters.
8607 * varasm.c (get_pool_constant): Likewise.
8608 * rtlanal.c (rtx_referenced_p_1): Delete.
8609 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8610 Assert that the rtx we're looking for is nonnull. Allow searches
8611 for constant pool SYMBOL_REFs.
8612
8613 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8614
8615 * reload1.c: Include rtl-iter.h.
8616 (note_reg_elim_costly): Turn from being a for_each_rtx callback
8617 to being a function that examines each subrtx itself.
8618 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8619
8620 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8621
8622 * regcprop.c (cprop_find_used_regs_1): Delete.
8623 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8624
8625 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8626
8627 * regcprop.c: Include rtl-iter.h.
8628 (kill_value): Take a const_rtx.
8629 (kill_autoinc_value): Turn from being a for_each_rtx callback
8630 to being a function that examines each subrtx itself.
8631 (copyprop_hardreg_forward_1): Update accordingly.
8632
8633 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8634
8635 * reg-stack.c: Include rtl-iter.h.
8636 (subst_stack_regs_in_debug_insn): Delete.
8637 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8638 instead of for_each_rtx.
8639
8640 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8641
8642 * lower-subreg.c (find_decomposable_subregs): Turn from being
8643 a for_each_rtx callback to being a function that examines each
8644 subrtx itself. Remove handling of null rtxes.
8645 (decompose_multiword_subregs): Update accordingly.
8646
8647 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8648
8649 * lower-subreg.c (adjust_decomposed_uses): Delete.
8650 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8651 Remove handling of null rtxes.
8652
8653 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8654
8655 * lower-subreg.c: Include rtl-iter.h.
8656 (resolve_subreg_use): Turn from being a for_each_rtx callback
8657 to being a function that examines each subrtx itself. Remove
8658 handling of null rtxes.
8659 (resolve_reg_notes, resolve_simple_move): Update accordingly.
8660 (decompose_multiword_subregs): Likewise.
8661
8662 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8663
8664 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
8665 to being a function that examines each subrtx itself.
8666 (simplify_using_condition, simplify_using_initial_values): Update
8667 accordingly.
8668
8669 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8670
8671 * loop-iv.c: Include rtl-iter.h.
8672 (find_single_def_src): New function.
8673 (replace_single_def_regs): Turn from being a for_each_rtx callback
8674 to being a function that examines each subrtx itself.
8675 (replace_in_expr, simplify_using_initial_values): Update accordingly.
8676
8677 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8678
8679 * jump.c (eh_returnjump_p_1): Delete.
8680 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8681 Remove handling of null rtxes.
8682
8683 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8684
8685 * jump.c: Include rtl-iter.h.
8686 (returnjump_p_1): Delete.
8687 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8688 Remove handling of null rtxes.
8689
8690 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8691
8692 * ira.c: Include rtl-iter.h.
8693 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8694 to being a function that examines each subrtx itself. Remove
8695 handling of null rtxes.
8696 (update_equiv_regs): Update call accordingly.
8697
8698 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8699
8700 * fwprop.c: Include rtl-iter.h.
8701 (varying_mem_p): Turn from being a for_each_rtx callback to being
8702 a function that examines each subrtx itself.
8703 (propagate_rtx): Update accordingly.
8704
8705 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8706
8707 * function.c: Include rtl-iter.h
8708 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
8709 callback to being a function that examines each subrtx itself.
8710 Return the changed flag.
8711 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
8712 (instantiate_virtual_regs): Update calls accordingly.
8713
8714 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8715
8716 * final.c: Include rtl-iter.h.
8717 (mark_symbol_ref_as_used): Delete.
8718 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
8719 for_each_rtx.
8720
8721 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8722
8723 * emit-rtl.c: Include rtl-iter.h.
8724 (find_auto_inc): Turn from being a for_each_rtx callback to being
8725 a function that examines each subrtx itself. Assume the first operand
8726 to an RTX_AUTOINC is the automodified register.
8727 (try_split): Update call accordingly.
8728
8729 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8730
8731 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
8732 Return a bool, inverting the result so that 0/false means "not ok".
8733 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
8734 subrtxes of a CONST.
8735 (mem_loc_descriptor, add_const_value_attribute)
8736 (resolve_addr_in_expr): Update calls accordingly.
8737
8738 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8739
8740 * dwarf2out.c: Include rtl-iter.h.
8741 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
8742 Remove unused data parameter. Return a bool, inverting the result
8743 so that 0/false means "not ok".
8744 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
8745 instead of for_each_rtx.
8746
8747 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8748
8749 * dse.c: Include rtl-iter.h.
8750 (check_mem_read_rtx): Change void * parameter to real type.
8751 Remove return value.
8752 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
8753 for_each_rtx. Don't handle null rtxes.
8754
8755 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8756
8757 * df-problems.c: Include rtl-iter.h.
8758 (find_memory): Turn from being a for_each_rtx callback to being
8759 a function that examines each subrtx itself. Continue to look for
8760 volatile references even after a nonvolatile one has been found.
8761 (can_move_insns_across): Update calls accordingly.
8762
8763 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8764
8765 * ddg.c (walk_mems_2, walk_mems_1): Delete.
8766 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
8767 to iterate over subrtxes. Return a bool rather than an int.
8768
8769 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8770
8771 * ddg.c: Include rtl-iter.h.
8772 (mark_mem_use_1): Rename to...
8773 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
8774 instead of for_each_rtx.
8775 (mem_read_insn_p): Update accordingly.
8776
8777 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8778
8779 * cse.c (change_cc_mode_args): Delete.
8780 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
8781 a function that examines each subrtx itself. Take the fields of
8782 change_cc_mode_args as argument and return void.
8783 (cse_change_cc_mode_insn): Update calls accordingly.
8784
8785 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8786
8787 * cse.c (is_dead_reg): Change argument to const_rtx.
8788 (dead_debug_insn_data): Delete.
8789 (is_dead_debug_insn): Expand commentary. Turn from being a
8790 for_each_rtx callback to being a function that examines
8791 each subrtx itself. Take the fields of dead_debug_insn_data
8792 as argument.
8793 (delete_trivially_dead_insns): Update call accordingly.
8794
8795 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8796
8797 * cse.c (check_for_label_ref): Move earlier in file. Turn from
8798 being a for_each_rtx callback to being a function that examines
8799 each subrtx itself.
8800 (cse_extended_basic_block): Update call accordingly.
8801
8802 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8803
8804 * cse.c (check_dependence_data): Delete.
8805 (check_dependence): Change from being a for_each_rtx callback to being
8806 a function that examines all subrtxes itself. Don't handle null rtxes.
8807 (invalidate): Update call accordingly.
8808
8809 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8810
8811 * cse.c: Include rtl-iter.h.
8812 (approx_reg_cost_1): Delete.
8813 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8814 Don't handle null rtxes.
8815
8816 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8817
8818 * cfgcleanup.c: Include rtl-iter.h.
8819 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
8820 to being a function that examines each subrtx itself.
8821 (thread_jump): Update accordingly.
8822
8823 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8824
8825 * combine-stack-adj.c: Include rtl-iter.h.
8826 (record_stack_refs_data): Delete.
8827 (record_stack_refs): Turn from being a for_each_rtx callback
8828 to being a function that examines each subrtx itself.
8829 Take a pointer to the reflist. Invert sense of return value
8830 so that true means success and false means failure. Don't
8831 handle null rtxes.
8832 (combine_stack_adjustments_for_block): Update accordingly.
8833
8834 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8835
8836 * combine.c (record_truncated_value): Turn from being a for_each_rtx
8837 callback to a function that takes an rtx and returns a bool
8838 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
8839 for_each_rtx.
8840
8841 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8842
8843 * combine.c: Include rtl-iter.h.
8844 (unmentioned_reg_p_1): Delete.
8845 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8846 Don't handle null rtxes.
8847
8848 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8849
8850 * calls.c: Include rtl-iter.h.
8851 (internal_arg_pointer_based_exp_1): Delete.
8852 (internal_arg_pointer_based_exp): Take a const_rtx.
8853 Use FOR_EACH_SUBRTX to iterate over subrtxes.
8854
8855 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8856
8857 * caller-save.c: Include rtl-iter.h.
8858 (add_used_regs_1): Delete.
8859 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
8860 to iterate over subrtxes. Assert that any remaining pseudos
8861 have been spilled.
8862
8863 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8864
8865 * bt-load.c: Include rtl-iter.h.
8866 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
8867 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
8868 to iterate over subrtxes.
8869 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
8870 find_btr_use rather than btr_referenced_p.
8871
8872 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8873
8874 * alias.c: Include rtl-iter.h.
8875 (refs_newer_value_cb): Delete.
8876 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8877
8878 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8879
8880 * rtl-iter.h: New file.
8881 * rtlanal.c: Include it.
8882 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
8883 (generic_subrtx_iterator <T>::add_single_to_queue)
8884 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
8885 (generic_subrtx_iterator <T>::free_array): New functions.
8886 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
8887 (generic_subrtx_iterator <const_rtx_accessor>)
8888 (generic_subrtx_iterator <rtx_var_accessor>
8889 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
8890 (setup_reg_subrtx_bounds): New function.
8891 (init_rtlanal): Call it.
8892
8893 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
8894
8895 PR target/62261
8896 * config/sh/sh.md (ashlsi3): Handle negative shift count for
8897 TARGET_SHMEDIA.
8898 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
8899
8900 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
8901
8902 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
8903
8904 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8905
8906 * rtl.h (JUMP_LABEL_AS_INSN): New.
8907
8908 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8909
8910 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
8911 rtx_expr_list **.
8912 (alloc_EXPR_LIST): Strengthen return type from rtx to
8913 rtx_expr_list *.
8914 (remove_free_EXPR_LIST_node): Likewise for param.
8915 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
8916 from rtx to rtx_expr_list *.
8917 * sched-int.h (struct deps_desc): Strengthen fields
8918 "pending_read_mems" and "pending_write_mems" from rtx to
8919 rtx_expr_list *.
8920
8921 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
8922 rtx to rtx_expr_list *.
8923 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
8924 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
8925 rtx_expr_list **.
8926 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
8927 from rtx to rtx_expr_list *.
8928 * loop-iv.c (simplify_using_initial_values): Strengthen local
8929 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
8930 "pnote_next" from rtx * to rtx_expr_list **.
8931 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
8932 param "exprp" from rtx * to rtx_expr_list **.
8933 (add_insn_mem_dependence): Strengthen local "mem_list" from
8934 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
8935 to rtx_expr_list *.
8936 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
8937 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
8938 param "old_mems_p" from rtx * to rtx_expr_list **.
8939 * var-tracking.c (struct adjust_mem_data): Strengthen field
8940 "side_effects" from rtx to rtx_expr_list *.
8941 (adjust_insn): Replace NULL_RTX with NULL when assigning to
8942 rtx_expr_list *.
8943 (prepare_call_arguments): Likewise.
8944
8945 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8946
8947 * function.h (struct rtl_data): Strengthen field
8948 "x_stack_slot_list" from rtx to rtx_expr_list *.
8949
8950 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
8951 when assigning to stack_slot_list.
8952
8953 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8954
8955 * function.h (struct rtl_data): Strengthen field
8956 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
8957 * rtl.h (remove_node_from_expr_list): Strengthen second param from
8958 rtx * to rtx_expr_list **.
8959
8960 * cfgbuild.c (make_edges): In loop over
8961 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
8962 rtx_expr_list *, and use methods of the latter class to clarify
8963 the code.
8964 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
8965 rtx_expr_list *, and use methods of the latter class to clarify
8966 the code.
8967 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8968 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8969 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
8970 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
8971 to rtx_expr_list *. Use methods of the latter class to clarify
8972 the code.
8973
8974 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8975
8976 * function.h (struct expr_status): Strengthen field
8977 "x_forced_labels" from rtx to rtx_expr_list *.
8978
8979 * cfgbuild.c (make_edges): Split local "x" into two locals,
8980 strengthening one from rtx to rtx_expr_list *, and using methods
8981 of said class.
8982 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
8983 loop over forced_labels, introduce strengthen it from rtx to
8984 rtx_expr_list *, using methods to clarify the code.
8985 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
8986 to rtx_expr_list *, using methods of said class to clarify the
8987 code.
8988 * reload1.c (set_initial_label_offsets): Split local "x" into two
8989 per-loop variables, strengthening the first from rtx to
8990 rtx_expr_list * and using methods.
8991
8992 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8993
8994 * coretypes.h (class rtx_expr_list): Add forward declaration.
8995 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
8996 * gengenrtl.c (special_rtx): Add EXPR_LIST.
8997 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
8998 invariant: GET_CODE (X) == EXPR_LIST.
8999 (is_a_helper <rtx_expr_list *>::test): New.
9000 (rtx_expr_list::next): New.
9001 (rtx_expr_list::element): New.
9002 (gen_rtx_EXPR_LIST): New.
9003
9004 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9005
9006 * varasm.c (mark_constants): Convert a GET_CODE check into a
9007 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9008 Use methods of rtx_sequence to clarify the code.
9009
9010 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9011
9012 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9013 local "seq" via a checked cast, and use methods of rtx_sequence
9014 to simplify the code.
9015
9016 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9017
9018 * resource.c (mark_referenced_resources): Strengthen local
9019 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9020 using methods of rtx_sequence to clarify the code.
9021 (find_dead_or_set_registers): Within the switch statement, convert
9022 a GET_CODE check to a dyn_cast, introducing local "seq". Within
9023 the JUMP_P handling, introduce another local "seq", adding a
9024 checked cast to rtx_sequence *. In both cases, use methods of
9025 rtx_sequence to clarify the code.
9026 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9027 via a checked cast, and use methods of rtx_sequence to simplify
9028 the code.
9029
9030 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9031
9032 * reorg.c (redundant_insn): In two places in the function, replace
9033 a check of GET_CODE with a dyn_cast, introducing local "seq", and
9034 usings methods of rtx_sequence to clarify the code.
9035
9036 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9037
9038 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9039 local "seq" with a checked cast, and use methods of rtx_sequence
9040 to clarify the code.
9041
9042 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9043
9044 * function.c (contains): Introduce local "seq" for PATTERN (insn),
9045 with a checked cast, in the region for where we know it's a
9046 SEQUENCE. Use methods of rtx_sequence.
9047
9048 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9049
9050 * final.c (get_attr_length_1): Replace GET_CODE check with a
9051 dyn_cast, introducing local "seq" and the use of methods of
9052 rtx_sequence.
9053 (shorten_branches): Likewise, introducing local "body_seq".
9054 Strengthen local "inner_insn" from rtx to rtx_insn *.
9055 (reemit_insn_block_notes): Replace GET_CODE check with a
9056 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9057 Use methods of rtx_sequence.
9058 (final_scan_insn): Likewise, introducing local "seq" for when
9059 "body" is known to be a SEQUENCE, using its methods.
9060
9061 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9062
9063 * except.c (can_throw_external): Strengthen local "seq" from rtx
9064 to rtx_sequence *. Use methods of rtx_sequence.
9065 (insn_nothrow_p): Likewise.
9066
9067 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9068
9069 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9070 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9071 Use methods of rtx_sequence.
9072 (scan_trace): Likewise for local "pat".
9073
9074 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9075
9076 * coretypes.h (class rtx_sequence): Add forward declaration.
9077 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9078 invariant: GET_CODE (X) == SEQUENCE.
9079 (is_a_helper <rtx_sequence *>::test): New.
9080 (is_a_helper <const rtx_sequence *>::test): New.
9081 (rtx_sequence::len): New.
9082 (rtx_sequence::element): New.
9083 (rtx_sequence::insn): New.
9084
9085 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9086
9087 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9088 rtx_insn_list **.
9089 (alloc_INSN_LIST): Strengthen return type from rtx to
9090 rtx_insn_list *.
9091 (copy_INSN_LIST): Likewise for return type and param.
9092 (concat_INSN_LIST): Likewise for both params and return type.
9093 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9094 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
9095 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9096 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
9097
9098 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9099 "implicit_sets", "control_uses", "clobbers" from rtx to
9100 rtx_insn_list *.
9101 (struct deps_desc): Likewise for fields "pending_read_insns",
9102 "pending_write_insns", "pending_jump_insns",
9103 "last_pending_memory_flush", "last_function_call",
9104 "last_function_call_may_noreturn", "sched_before_next_call",
9105 "sched_before_next_jump".
9106 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9107 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9108
9109 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9110 from rtx to rtx_insn_list *.
9111 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9112 rtx_insn_list *.
9113
9114 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9115 to rtx_insn_list **.
9116 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9117 rtx_insn_list *.
9118 (queue_insn): Likewise for local "link".
9119 (struct haifa_saved_data): Strengthen field "insn_queue" from
9120 rtx * to rtx_insn_list **.
9121 (save_backtrack_point): Update allocation of save->insn_queue to
9122 reflect the strengthening of elements from rtx to rtx_insn_list *.
9123 (queue_to_ready): Strengthen local "link" from rtx to
9124 rtx_insn_list *; use methods "next" and "insn" when traversing the
9125 list.
9126 (early_queue_to_ready): Likewise for locals "link", "next_link",
9127 "prev_link".
9128 (schedule_block): Update allocation of insn_queue to reflect the
9129 strengthening of elements from rtx to rtx_insn_list *. Strengthen
9130 local "link" from rtx to rtx_insn_list *, and use methods when
9131 working it.
9132 (add_to_speculative_block): Strengthen locals "twins" and
9133 "next_node" from rtx to rtx_insn_list *, and use methods when
9134 working with them. Strengthen local "twin" from rtx to
9135 rtx_insn *, eliminating a checked cast.
9136 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9137 from rtx to rtx_insn_list *, and use methods when working with
9138 them.
9139
9140 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9141 from rtx to rtx_insn_list *, adding a checked cast.
9142 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9143 rtx_insn_list **.
9144 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9145 "newlink" from rtx to rtx_insn_list *. Strengthen local
9146 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
9147 from rtx to rtx_insn *.
9148 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9149 from rtx to rtx_insn_list *. Use methods of the latter class.
9150 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9151 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9152 (remove_free_INSN_LIST_node): Strengthen return type and local
9153 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
9154 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
9155 rtx_insn_list *, using "insn" method.
9156
9157 * sched-deps.c (add_dependence_list): Strengthen param "list"
9158 from rtx to rtx_insn_list *, and use methods when working with it.
9159 (add_dependence_list_and_free): Strengthen param "listp" from
9160 rtx * to rtx_insn_list **.
9161 (remove_from_dependence_list): Strenghten param "listp" from rtx *
9162 to rtx_insn_list **, and use methods when working with *listp.
9163 (remove_from_both_dependence_lists): Strengthen param "listp" from
9164 rtx * to rtx_insn_list **
9165 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9166 to rtx_insn_list **. Eliminate local "link", in favor of two new
9167 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9168 respectively.
9169 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9170 by introducing local "cond_deps".
9171 (remove_from_deps): Strengthen param "insn" from rtx to
9172 rtx_insn *.
9173
9174 * sched-rgn.c (concat_insn_mem_list): Strengthen param
9175 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
9176 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
9177 Use methods of rtx_insn_list.
9178
9179 * store-motion.c (struct st_expr): Strengthen fields
9180 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
9181 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
9182 rtx_insn_list *.
9183 (find_moveable_store): Split out "tmp" into multiple more-tightly
9184 scoped locals. Use methods of rtx_insn_list *.
9185 (compute_store_table): Strengthen local "tmp" from rtx to
9186 rtx_insn *. Use methods of rtx_insn_list *.
9187
9188 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9189
9190 * coretypes.h (class rtx_insn_list): Add forward declaration.
9191 * rtl.h (class rtx_insn_list): New subclass of rtx_def
9192 (is_a_helper <rtx_insn_list *>::test): New.
9193 (rtx_insn_list::next): New.
9194 (rtx_insn_list::insn): New.
9195 (gen_rtx_INSN_LIST): Add prototype.
9196 * emit-rtl.c (gen_rtx_INSN_LIST): New.
9197 * gengenrtl.c (special_rtx): Add INSN_LIST.
9198
9199 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9200
9201 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
9202 "prev" from rtx to rtx_insn *.
9203
9204 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9205
9206 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
9207 functions. Require merely an rtx for now, not an rtx_insn *.
9208 (BLOCK_FOR_INSN): Likewise.
9209 (INSN_LOCATION): Likewise.
9210 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9211
9212 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9213
9214 * rtl.h (PATTERN): Convert this macro into a pair of inline
9215 functions, for now, requiring const_rtx and rtx.
9216
9217 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9218
9219 * target.def (unwind_emit): Strengthen param "insn" from rtx to
9220 rtx_insn *.
9221 (final_postscan_insn): Likewise.
9222 (adjust_cost): Likewise.
9223 (adjust_priority): Likewise.
9224 (variable_issue): Likewise.
9225 (macro_fusion_pair_p): Likewise.
9226 (dfa_post_cycle_insn): Likewise.
9227 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9228 (first_cycle_multipass_issue): Likewise.
9229 (dfa_new_cycle): Likewise.
9230 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9231 (speculate_insn): Likewise for param "insn".
9232 (gen_spec_check): Likewise for params "insn" and "label".
9233 (get_insn_spec_ds): Likewise for param "insn".
9234 (get_insn_checked_ds): Likewise.
9235 (dispatch_do): Likewise.
9236 (dispatch): Likewise.
9237 (cannot_copy_insn_p): Likewise.
9238 (invalid_within_doloop): Likewise.
9239 (legitimate_combined_insn): Likewise.
9240 (needed): Likewise.
9241 (after): Likewise.
9242
9243 * doc/tm.texi: Automatically updated to reflect changes to
9244 target.def.
9245
9246 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9247 working with insn.
9248 (schedule_block): Likewise.
9249 (sched_init): Likewise.
9250 (sched_speculate_insn): Strengthen param "insn" from rtx to
9251 rtx_insn *.
9252 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9253 working with insn.
9254 * hooks.c (hook_bool_rtx_true): Rename to...
9255 hook_bool_rtx_insn_true): ...this, and strengthen first param from
9256 rtx to rtx_insn *.
9257 (hook_constcharptr_const_rtx_null): Rename to...
9258 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9259 first param from const_rtx to const rtx_insn *.
9260 (hook_bool_rtx_int_false): Rename to...
9261 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9262 param from rtx to rtx_insn *.
9263 (hook_void_rtx_int): Rename to...
9264 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9265 rtx to rtx_insn *.
9266
9267 * hooks.h (hook_bool_rtx_true): Rename to...
9268 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9269 rtx to rtx_insn *.
9270 (hook_bool_rtx_int_false): Rename to...
9271 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9272 param from rtx to rtx_insn *.
9273 (hook_void_rtx_int): Rename to...
9274 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9275 rtx to rtx_insn *.
9276 (hook_constcharptr_const_rtx_null): Rename to...
9277 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9278 first param from const_rtx to const rtx_insn *.
9279
9280 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9281 and local "prev" from rtx to rtx_insn *.
9282
9283 * sched-int.h (sched_speculate_insn): Strengthen first param from
9284 rtx to rtx_insn *.
9285
9286 * sel-sched.c (create_speculation_check): Likewise for local "label".
9287 * targhooks.c (default_invalid_within_doloop): Strengthen param
9288 "insn" from const_rtx to const rtx_insn *.
9289 * targhooks.h (default_invalid_within_doloop): Strengthen param
9290 from const_rtx to const rtx_insn *.
9291
9292 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9293 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9294
9295 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9296 "insn".
9297 (arc_invalid_within_doloop): Likewise, with const.
9298
9299 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9300 (arm_cannot_copy_insn_p): Likewise for param "insn".
9301 (arm_unwind_emit): Likewise.
9302
9303 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9304 "dep_insn".
9305
9306 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9307 (c6x_variable_issue): Likewise. Removed now-redundant checked
9308 cast.
9309 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
9310
9311 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
9312 Likewise for param "insn".
9313 (epiphany_mode_after): Likewise.
9314 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
9315 params "insn", "dep_insn".
9316 (epiphany_mode_needed): Likewise for param "insn".
9317 (epiphany_mode_after): Likewise.
9318
9319 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
9320 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9321 (ix86_avx_u128_mode_needed): Likewise.
9322 (ix86_i387_mode_needed): Likewise.
9323 (ix86_mode_needed): Likewise.
9324 (ix86_avx_u128_mode_after): Likewise.
9325 (ix86_mode_after): Likewise.
9326 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
9327 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
9328 (ix86_adjust_priority): Likewise for param "insn".
9329 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
9330 (do_dispatch): Likewise.
9331 (has_dispatch): Likewise.
9332 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
9333
9334 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
9335 reflect renaming of default hook implementation from
9336 hook_constcharptr_const_rtx_null to
9337 hook_constcharptr_const_rtx_insn_null.
9338 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
9339 rtx to rtx_insn *.
9340 (ia64_variable_issue): Likewise for param "insn".
9341 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
9342 (ia64_dfa_new_cycle): Likewise.
9343 (ia64_get_insn_spec_ds): Likewise.
9344 (ia64_get_insn_checked_ds): Likewise.
9345 (ia64_speculate_insn): Likewise.
9346 (ia64_gen_spec_check): Likewise for params "insn", "label".
9347 (ia64_asm_unwind_emit): Likewise for param "insn".
9348
9349 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
9350
9351 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
9352 "insn", "def_insn".
9353 (m68k_sched_variable_issue): Likewise for param "insn".
9354
9355 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
9356 "def_insn".
9357
9358 * config/microblaze/microblaze.c (microblaze_adjust_cost):
9359 Likewise for params "insn", "dep".
9360
9361 * config/mips/mips.c (mips_adjust_cost): Likewise.
9362 (mips_variable_issue): Likewise for param "insn".
9363 (mips_final_postscan_insn): Likewise.
9364
9365 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
9366 for params "insn", "dep".
9367
9368 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
9369 "dep_insn".
9370 (pa_adjust_priority): Likewise for param "insn".
9371
9372 * config/picochip/picochip.c (picochip_sched_adjust_cost):
9373 Likewise for params "insn", "dep_insn".
9374
9375 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
9376 param "insn".
9377 (rs6000_variable_issue): Likewise.
9378 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
9379 (rs6000_debug_adjust_cost): Likewise.
9380 (rs6000_adjust_priority): Likewise for param "insn".
9381 (rs6000_use_sched_lookahead_guard): Likewise.
9382 (get_next_active_insn): Likewise for return type and both params.
9383 (redefine_groups): Likewise for params "prev_head_insn", "tail"
9384 and locals "insn", "next_insn".
9385 (pad_groups): Likewise.
9386
9387 * config/s390/s390.c (s390_adjust_priority): Likewise for param
9388 "insn".
9389 (s390_cannot_copy_insn_p): Likewise.
9390 (s390_sched_variable_issue): Likewise for third param, eliminating
9391 checked cast.
9392 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
9393 default hook implementation from hook_constcharptr_const_rtx_null
9394 to hook_constcharptr_const_rtx_insn_null.
9395
9396 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
9397 from rtx to rtx_insn *.
9398 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
9399 (sh_variable_issue): Likewise for param "insn".
9400 (sh_dfa_new_cycle): Likewise.
9401 (sh_mode_needed): Likewise.
9402 (sh_mode_after): Likewise.
9403
9404 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
9405 params "insn", "dep_insn".
9406 (hypersparc_adjust_cost): Likewise.
9407 (sparc_adjust_cost): Likewise.
9408
9409 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
9410 param, eliminated checked cast.
9411 (spu_sched_adjust_cost): Likewise for first and third params.
9412
9413 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
9414 params "insn" and "dep_insn" from rtx to rtx_insn *.
9415
9416 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
9417
9418 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9419
9420 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
9421 (set_is_load_p): ...this, updating to work on a SET pattern rather
9422 than an insn.
9423 (is_store_insn): Rename to...
9424 (set_is_store_p): ...this, updating to work on a SET pattern
9425 rather than an insn.
9426 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
9427 top of function to where it is needed. Rewrite the bogus
9428 condition that checks for "insn" and "dep" being PARALLEL to
9429 instead use single_set, introducing locals "insn_set" and
9430 "dep_set". Given that we only ever returned "cost" for a non-pair
9431 of SETs, bail out early if we don't have a pair of SET.
9432 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
9433 use the new locals "insn_set" and "dep_set", and update calls to
9434 is_load_insn and is_store_insn to be calls to set_is_load_p and
9435 set_is_store_p.
9436
9437 2014-08-27 Guozhi Wei <carrot@google.com>
9438
9439 PR target/62262
9440 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
9441 amount before using it.
9442
9443 2014-08-27 Richard Biener <rguenther@suse.de>
9444
9445 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
9446 get_maxval_strlen inside a more useful API.
9447 (gimple_fold_builtin_with_strlen): Remove and fold into ...
9448 (gimple_fold_builtin): ... caller.
9449 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
9450 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
9451 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
9452 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
9453 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
9454 gimple_fold_builtin_sprintf): Adjust to compute maxval
9455 themselves.
9456
9457 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
9458
9459 PR other/62248
9460 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
9461
9462 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9463 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9464 Anna Tikhonova <anna.tikhonova@intel.com>
9465 Ilya Tocar <ilya.tocar@intel.com>
9466 Andrey Turetskiy <andrey.turetskiy@intel.com>
9467 Ilya Verbin <ilya.verbin@intel.com>
9468 Kirill Yukhin <kirill.yukhin@intel.com>
9469 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9470
9471 * config/i386/sse.md
9472 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
9473 Use `concat_tg_mode' attribute to determine asm register size.
9474
9475 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9476 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9477 Anna Tikhonova <anna.tikhonova@intel.com>
9478 Ilya Tocar <ilya.tocar@intel.com>
9479 Andrey Turetskiy <andrey.turetskiy@intel.com>
9480 Ilya Verbin <ilya.verbin@intel.com>
9481 Kirill Yukhin <kirill.yukhin@intel.com>
9482 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9483
9484 * config/i386/sse.md
9485 (define_mode_iterator VI48_AVX512VL): New.
9486 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
9487 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
9488 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
9489 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9490 with VI1): Change mode iterator.
9491 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9492 with VI_ULOADSTORE_BW_AVX512VL): New.
9493 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9494 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9495 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9496 with VI1): Change mode iterator.
9497 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9498 with VI_ULOADSTORE_BW_AVX512VL): New.
9499 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9500 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9501 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9502 with VI1): Change mode iterator.
9503 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9504 with VI_ULOADSTORE_BW_AVX512VL): New.
9505 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9506 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
9507 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
9508 (define_insn "<avx512>_storedqu<mode>_mask" with
9509 VI48_AVX512VL): New.
9510 (define_insn "<avx512>_storedqu<mode>_mask" with
9511 VI12_AVX512VL): Ditto.
9512
9513 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9514 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9515 Anna Tikhonova <anna.tikhonova@intel.com>
9516 Ilya Tocar <ilya.tocar@intel.com>
9517 Andrey Turetskiy <andrey.turetskiy@intel.com>
9518 Ilya Verbin <ilya.verbin@intel.com>
9519 Kirill Yukhin <kirill.yukhin@intel.com>
9520 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9521
9522 * config/i386/sse.md
9523 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
9524 (define_mode_iterator VI48_AVX512BW): New.
9525 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
9526 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9527 with VI48_AVX2_48_AVX512F): New.
9528 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9529 with VI2_AVX512VL): Ditto.
9530
9531 2014-08-27 Richard Biener <rguenther@suse.de>
9532
9533 PR middle-end/62239
9534 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
9535 (fold_builtin_3): Do not fold strcat_chk here.
9536 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
9537 from builtins.c.
9538 (gimple_fold_builtin): Fold strcat_chk here.
9539
9540 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
9541
9542 * dwarf2out.h (dwarf2out_decl): Remove prototype.
9543 * dwarf2out.c (dwarf2out_decl): Make static.
9544
9545 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
9546
9547 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
9548
9549 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9550
9551 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
9552 from rtx to rtx_insn *.
9553 (cselib_lookup_from_insn): Likewise for final param.
9554 (cselib_subst_to_values_from_insn): Likewise.
9555 (cselib_add_permanent_equiv): Likewise.
9556
9557 * cselib.c (cselib_current_insn): Likewise for this variable.
9558 (cselib_subst_to_values_from_insn): Likewise for param "insn".
9559 (cselib_lookup_from_insn): Likewise.
9560 (cselib_add_permanent_equiv): Likewise for param "insn" and local
9561 "save_cselib_current_insn".
9562 (cselib_process_insn): Replace use of NULL_RTX with NULL.
9563
9564 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9565 from rtx to rtx_insn *.
9566
9567 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9568
9569 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9570 rtx_insn *.
9571
9572 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9573
9574 * df.h (df_dump_insn_problem_function): Strengthen first param of
9575 this callback from const_rtx to const rtx_insn *.
9576 (struct df_insn_info): Strengthen field "insn" from rtx to
9577 rtx_insn *.
9578 (DF_REF_INSN): Eliminate this function, reinstating the older
9579 macro definition.
9580 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9581 (df_reg_defined): Likewise.
9582 (df_find_use): Likewise.
9583 (df_reg_used): Likewise.
9584 (df_dump_insn_top): Strengthen param 1 from const_rtx to
9585 const rtx_insn *.
9586 (df_dump_insn_bottom): Likewise.
9587 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9588 (df_insn_debug_regno): Likewise.
9589 (debug_df_insn): Likewise.
9590 (df_rd_simulate_one_insn): Likewise for param 2.
9591 (df_word_lr_simulate_defs): Likewise for param 1.
9592 (df_word_lr_simulate_uses): Likewise.
9593 (df_md_simulate_one_insn): Likewise for param 2.
9594 (df_simulate_find_noclobber_defs): Likewise for param 1.
9595 (df_simulate_find_defs): Likewise.
9596 (df_simulate_defs): Likewise.
9597 (df_simulate_uses): Likewise.
9598 (df_simulate_one_insn_backwards): Likewise for param 2.
9599 (df_simulate_one_insn_forwards): Likewise.
9600 (df_uses_create): Likewise for param 2.
9601 (df_insn_create_insn_record): Likewise for param 1.
9602 (df_insn_delete): Likewise.
9603 (df_insn_rescan): Likewise.
9604 (df_insn_rescan_debug_internal): Likewise.
9605 (df_insn_change_bb): Likewise.
9606 (df_notes_rescan): Likewise.
9607 * rtl.h (remove_death): Likewise for param 2.
9608 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9609 const rtx_insn *.
9610 * sched-int.h (reemit_notes): Strengthen param from rtx to
9611 rtx_insn *.
9612 * valtrack.h (propagate_for_debug): Likewise for param 1.
9613
9614 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9615 local "tmp_rtx" from const_rtx to const rtx_insn *.
9616 * combine.c (remove_death): Strengthen param "insn" from rtx to
9617 rtx_insn *.
9618 (move_deaths): Likewise for local "where_dead".
9619 * cse.c (delete_trivially_dead_insns): Introduce local
9620 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9621 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9622 rtx_insn *.
9623 (df_reg_defined): Likewise.
9624 (df_find_use): Likewise.
9625 (df_reg_used): Likewise.
9626 (df_dump_insn_problem_data): Strengthen param "insn" from
9627 const_rtx to const rtx_insn *.
9628 (df_dump_insn_top): Likewise.
9629 (df_dump_insn_bottom): Likewise.
9630 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9631 (df_insn_debug_regno): Likewise.
9632 (debug_df_insn): Likewise.
9633 (DF_REF_INSN): Delete.
9634 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9635 from rtx to rtx_insn *.
9636 (df_chain_insn_top_dump): Strengthen param "insn" from
9637 const_rtx to const rtx_insn *.
9638 (df_chain_insn_bottom_dump): Likewise.
9639 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9640 rtx_insn *.
9641 (df_word_lr_simulate_uses): Likewise.
9642 (df_print_note): Likewise.
9643 (df_remove_dead_and_unused_notes): Likewise.
9644 (df_set_unused_notes_for_mw): Likewise.
9645 (df_set_dead_notes_for_mw): Likewise.
9646 (df_create_unused_note): Likewise.
9647 (df_simulate_find_defs): Likewise.
9648 (df_simulate_find_uses): Likewise.
9649 (df_simulate_find_noclobber_defs): Likewise.
9650 (df_simulate_defs): Likewise.
9651 (df_simulate_uses): Likewise.
9652 (df_simulate_one_insn_backwards): Likewise.
9653 (df_simulate_one_insn_forwards): Likewise.
9654 (df_md_simulate_one_insn): Likewise.
9655 * df-scan.c (df_uses_create): Likewise.
9656 (df_insn_create_insn_record): Likewise.
9657 (df_insn_delete): Likewise.
9658 (df_insn_rescan): Likewise.
9659 (df_insn_rescan_debug_internal): Likewise.
9660 (df_insn_change_bb): Likewise.
9661 (df_notes_rescan): Likewise.
9662 (df_refs_add_to_chains): Likewise.
9663 (df_insn_refs_verify): Likewise.
9664 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
9665 when invoking df_insn_delete.
9666 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
9667 (set_unique_reg_note): Add checked cast.
9668 * final.c (cleanup_subreg_operands): Likewise.
9669 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
9670 "insn" from rtx to rtx_insn *.
9671 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
9672 "last" from rtx to rtx_insn *.
9673 * ira-emit.c (change_regs_in_insn): New function.
9674 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9675 Invoke change_regs_in_insn rather than change_regs.
9676 * ira.c (update_equiv_regs): Strengthen locals "insn",
9677 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
9678 for_each_rtx_in_insn rather than for_each_rtx.
9679 * recog.c (confirm_change_group): Add checked casts.
9680 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9681 Add checked cast.
9682 (peep2_fill_buffer): Add checked cast.
9683 * rtlanal.c (remove_note): Likewise.
9684 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9685 locals "next" "end" from rtx to rtx_insn *.
9686
9687 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9688
9689 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9690 to rtx_insn *.
9691 (struct reg_use_data): Likewise for field "insn".
9692 (insn_cost): Likewise for param.
9693 (real_insn_for_shadow): Likewise for return type and param.
9694 (increase_insn_priority): Likewise for param 1.
9695 (debug_dependencies): Likewise for both params.
9696
9697 * haifa-sched.c (insn_delay): Likewise for param "insn".
9698 (real_insn_for_shadow): Likewise for return type and param "insn".
9699 (update_insn_after_change): Likewise for param "insn".
9700 (recompute_todo_spec): Likewise for param "next" and locals "pro",
9701 "other".
9702 (insn_cost): Likewise for param "insn".
9703 (increase_insn_priority): Likewise.
9704 (calculate_reg_deaths): Likewise.
9705 (setup_insn_reg_pressure_info): Likewise.
9706 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
9707 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
9708 (model_recompute): Likewise.
9709 (must_restore_pattern_p): Likewise for param "next".
9710 (model_excess_cost): Likewise for param "insn".
9711 (queue_remove): Likewise.
9712 (adjust_priority): Likewise for param "prev".
9713 (update_register_pressure): Likewise for param "insn".
9714 (setup_insn_max_reg_pressure): Likewise for local "insn".
9715 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
9716 (model_add_to_schedule): Likewise.
9717 (model_reset_queue_indices): Likewise for local "insn".
9718 (unschedule_insns_until): Strengthen local "recompute_vec" from
9719 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
9720 "con" from rtx to rtx_insn *.
9721 (restore_last_backtrack_point): Likewise for both locals "x". Add
9722 checked casts.
9723 (estimate_insn_tick): Likewise for param "insn".
9724 (commit_schedule): Likewise for params "prev_head", "tail" and
9725 local "x".
9726 (verify_shadows): Likewise for locals "i1", "i2".
9727 (dump_insn_stream): Likewise for params "head", "tail" and locals
9728 "next_tail", "insn".
9729 (schedule_block): Likewise for locals "insn", "x". Add a checked
9730 cast.
9731 (fix_inter_tick): Likewise for params "head", "tail".
9732 (create_check_block_twin): Likewise for local "jump".
9733 (haifa_change_pattern): Likewise for param "insn".
9734 (haifa_speculate_insn): Likewise.
9735 (dump_new_block_header): Likewise for params "head", "tail".
9736 (fix_jump_move): Likewise for param "jump".
9737 (move_block_after_check): Likewise.
9738 (sched_init_insn_luid): Likewise for param "insn".
9739 (sched_init_luids): Likewise for local "insn".
9740 (insn_luid): Likewise for param "insn".
9741 (init_h_i_d): Likewise.
9742 (haifa_init_h_i_d): Likewise for local "insn".
9743 (haifa_init_insn): Likewise for param "insn".
9744 * sched-deps.c (add_dependence): Likewise for local "real_pro",
9745 "other".
9746 (create_insn_reg_use): Likewise for param "insn".
9747 (setup_insn_reg_uses): Likewise. Add a checked cast.
9748 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
9749 "tail" from rtx to rtx_insn *.
9750 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
9751 "insn", "next_tail".
9752
9753 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9754
9755 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
9756 from rtx to rtx_insn *.
9757 (model_add_to_schedule): Likewise for locals "start", "end",
9758 "iter".
9759
9760 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9761
9762 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
9763 rtx_insn *.
9764 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
9765 "to" and locals "insn", "next", "copy". Remove now-redundant
9766 checked cast.
9767
9768 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9769
9770 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
9771 rtx_insn * and param 4 from rtx * to rtx_insn **.
9772 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
9773 param 2 from rtx * to rtx_insn **.
9774
9775 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
9776 rtx_insn * and final param from rtx * to rtx_insn **.
9777
9778 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
9779 from rtx to rtx_insn *.
9780 (try_head_merge_bb): Likewise for both locals named "move_upto".
9781 * df-problems.c (can_move_insns_across): Likewise for params
9782 "from", "to", "across_from", "across_to" and locals "insn",
9783 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
9784 rtx_insn **.
9785 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
9786 from rtx to rtx_insn *.
9787 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
9788 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
9789 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
9790 rtx_insn *.
9791 (noce_try_abs): Likewise.
9792 (noce_get_condition): Likewise for param "jump". Strengthen param
9793 "earliest" from rtx * to rtx_insn **.
9794 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
9795 rtx_insn *.
9796 (find_cond_trap): Likewise.
9797 (dead_or_predicable): Likewise for local "earliest".
9798 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
9799 checked cast.
9800 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
9801 and local "prev". Strengthen param "earliest" from rtx * to
9802 rtx_insn **.
9803 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
9804 Strengthen param "earliest" from rtx * to rtx_insn **.
9805
9806 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9807
9808 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
9809 "to" and local "insn" from rtx to rtx_insn *.
9810
9811 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9812
9813 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
9814 from rtx to rtx_insn *.
9815 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
9816 (code_motion_path_driver): Likewise for local "last_insn".
9817 (simplify_changed_insns): Likewise for local "insn".
9818
9819 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9820
9821 * rtl.h (push_to_sequence): Strengthen param from rtx to
9822 rtx_insn *.
9823 (push_to_sequence2): Likewise for both params.
9824 (delete_insns_since): Likewise for param.
9825 (reorder_insns_nobb): Likewise for all three params.
9826 (set_new_first_and_last_insn): Likewise for both params.
9827
9828 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
9829 rtx_insn *. Remove now-redundant cast.
9830 (set_last_insn): Likewise.
9831
9832 * builtins.c (expand_builtin_return): Strengthen local
9833 "call_fusage" from rtx to rtx_insn *.
9834 * cfgrtl.c (create_basic_block_structure): Likewise for local
9835 "after".
9836 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
9837 "first", "last" and local "insn".
9838 (delete_insns_since): Likewise for param "from".
9839 (reorder_insns_nobb): Likewise for params "from", "to", "after"
9840 and local "x".
9841 (push_to_sequence): Likewise for param "first" and local "last".
9842 (push_to_sequence2): Likewise for params "first" and "last".
9843 * lra.c (emit_add3_insn): Likewise for local "last".
9844 (lra_emit_add): Likewise.
9845 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
9846 "last_insn".
9847 (process_address_1): Likewise for locals "insn", last".
9848 * modulo-sched.c (ps_first_note): Likewise for return type.
9849 * optabs.c (expand_binop_directly): Likewise for param "last".
9850
9851 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9852
9853 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
9854 to rtx_insn*.
9855 * emit-rtl.c (get_last_insn_anywhere): Likewise.
9856
9857 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9858
9859 * function.h (struct sequence_stack): Strengthen fields "first"
9860 and "last" from rtx to rtx_insn *.
9861 (struct emit_status): Likewise for fields "x_first_insn" and
9862 "x_last_insn".
9863
9864 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
9865 (set_first_insn): Add checked cast.
9866 (get_last_insn): Remove now-redundant checked cast.
9867 (set_last_insn): Add checked cast.
9868
9869 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
9870 "saved_first" and "saved_last" from rtx to rtx_insn *.
9871
9872 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9873
9874 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
9875 (unlink_insn_chain): Strengthen both params from rtx to
9876 rtx_insn *.
9877
9878 * cfgrtl.c (cfg_layout_function_header): Likewise for this
9879 variable.
9880 (unlink_insn_chain): Likewise for params "first" and "last".
9881 Remove now-redundant checked cast.
9882 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
9883 (fixup_reorder_chain): Strengthen local "insn" from rtx to
9884 rtx_insn *.
9885 * emit-rtl.c (link_insn_into_chain): Likewise for all three
9886 params.
9887 (add_insn): Likewise for param "insn" and local "prev".
9888 (add_insn_after_nobb): Likewise for both params and local "next".
9889 (add_insn_before_nobb): Likewise for both params and local "prev".
9890 (add_insn_after): Rename param "after" to "uncast_after",
9891 introducing local "after" with another checked cast.
9892 (add_insn_before): Rename params "insn" and "before", giving them
9893 "uncast_" prefixes, adding the old names back using checked casts.
9894 (emit_note_after): Likewise for param "after".
9895 (emit_note_before): Likewise for param "before".
9896 (emit_label): Add a checked cast.
9897
9898 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9899
9900 * cselib.h (cselib_record_sets_hook): Strengthen initial param
9901 "insn" from rtx to rtx_insn *.
9902
9903 * cselib.c (cselib_record_sets_hook): Likewise.
9904
9905 * var-tracking.c (add_with_sets): Likewise, renaming back from
9906 "uncast_insn" to "insn" and eliminating the checked cast from rtx
9907 to rtx_insn *.
9908
9909 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9910
9911 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
9912 and "header_" from rtx to rtx_insn *.
9913 (struct basic_block_d): Likewise for field "head_" within "x"
9914 field of union basic_block_il_dependent.
9915 (BB_HEAD): Drop function...
9916 (SET_BB_HEAD): ...and this function in favor of...
9917 (BB_HEAD): ...reinstate macro.
9918 (BB_END): Drop function...
9919 (SET_BB_END): ...and this function in favor of...
9920 (BB_END): ...reinstate macro.
9921 (BB_HEADER): Drop function...
9922 (SET_BB_HEADER): ...and this function in favor of...
9923 (BB_HEADER): ...reinstate macro.
9924
9925 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
9926 (fix_crossing_unconditional_branches): Likewise.
9927 * caller-save.c (save_call_clobbered_regs): Likewise.
9928 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
9929 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
9930 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9931 (merge_blocks_move_successor_nojumps): Likewise.
9932 (outgoing_edges_match): Update use of for_each_rtx to
9933 for_each_rtx_in_insn.
9934 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
9935 (expand_gimple_cond): Likewise.
9936 (expand_gimple_tailcall): Likewise.
9937 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
9938 SET_BB_END.
9939 (construct_exit_block): Drop use of SET_BB_END.
9940 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
9941 rtx_insn *.
9942 (delete_insn): Rename param "insn" to "uncast_insn", introducing
9943 a new local "insn" with a checked cast to rtx_insn *. Drop use of
9944 SET_BB_HEAD and SET_BB_END.
9945 (create_basic_block_structure): Drop use of SET_BB_HEAD and
9946 SET_BB_END.
9947 (rtl_delete_block): Drop use of SET_BB_HEAD.
9948 (rtl_split_block): Drop use of SET_BB_END.
9949 (emit_nop_for_unique_locus_between): Likewise.
9950 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
9951 (block_label): Drop use of SET_BB_HEAD.
9952 (fixup_abnormal_edges): Drop use of SET_BB_END.
9953 (record_effective_endpoints): Drop use of SET_BB_HEADER.
9954 (relink_block_chain): Likewise.
9955 (fixup_reorder_chain): Drop use of SET_BB_END.
9956 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
9957 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
9958 rtx_insn **. Drop use of SET_BB_HEADER.
9959 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
9960 SET_BB_HEAD.
9961 (BB_HEAD): Delete this function.
9962 (SET_BB_HEAD): Likewise.
9963 (BB_END): Likewise.
9964 (SET_BB_END): Likewise.
9965 (BB_HEADER): Likewise.
9966 (SET_BB_HEADER): Likewise.
9967 * emit-rtl.c (add_insn_after): Rename param "insn" to
9968 "uncast_insn", adding a new local "insn" and a checked cast to
9969 rtx_insn *. Drop use of SET_BB_END.
9970 (remove_insn): Strengthen locals "next" and "prev" from rtx to
9971 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
9972 (reorder_insns): Drop use of SET_BB_END.
9973 (emit_insn_after_1): Strengthen param "first" and locals "last",
9974 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
9975 (emit_pattern_after_noloc): Add checked cast.
9976 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
9977 (restore_other_notes): Likewise.
9978 (move_insn): Likewise.
9979 (sched_extend_bb): Likewise.
9980 (fix_jump_move): Likewise.
9981 * ifcvt.c (noce_process_if_block): Likewise.
9982 (dead_or_predicable): Likewise.
9983 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
9984 * reg-stack.c (change_stack): Drop use of SET_BB_END.
9985 * sel-sched-ir.c (sel_move_insn): Likewise.
9986 * sel-sched.c (move_nop_to_previous_block): Likewise.
9987
9988 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
9989 SET_BB_END.
9990 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9991
9992 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9993
9994 * basic-block.h (create_basic_block_structure): Strengthen params
9995 1 "head" and 2 "end" from rtx to rtx_insn *.
9996 * cfgrtl.c (create_basic_block_structure): Likewise.
9997 (rtl_create_basic_block): Update casts from void * to rtx to
9998 rtx_insn *, so that we can pass them as rtx_insn * to
9999 create_basic_block_structure.
10000 * sel-sched-ir.c (sel_create_basic_block): Likewise.
10001
10002 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10003
10004 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10005 rtx_insn **.
10006 (check_for_inc_dec): Strengthen param "insn" from rtx to
10007 rtx_insn *.
10008
10009 * cselib.h (cselib_process_insn): Likewise.
10010
10011 * cselib.c (cselib_record_sets): Likewise.
10012 (cselib_process_insn): Likewise.
10013
10014 * dse.c (struct insn_info): Likewise for field "insn".
10015 (check_for_inc_dec_1): Likewise for local "insn".
10016 (check_for_inc_dec): Likewise for param "insn".
10017 (scan_insn): Likewise.
10018 (dse_step1): Likewise for local "insn".
10019
10020 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10021 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
10022
10023 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10024
10025 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10026 from rtx to rtx_insn *.
10027 (DEP_PRO): Delete this function and...
10028 (SET_DEP_PRO): ...this function in favor of...
10029 (DEP_PRO): ...reinstate this macro.
10030 (DEP_CON): Delete this function and...
10031 (SET_DEP_CON): ...this function in favor of...
10032 (DEP_CON): ...reinstate this old macro.
10033 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10034 (init_dep): Likewise.
10035 (set_priorities): Likewise for both params.
10036 (sd_copy_back_deps): Likewise for params 1 and 2.
10037
10038 * haifa-sched.c (priority): Likewise for param "insn" and local
10039 "next".
10040 (set_priorities): Likewise for params "head" and "tail" and local
10041 "insn".
10042 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10043 local "consumer".
10044 (add_to_speculative_block): Add a checked cast.
10045 (create_check_block_twin): Drop use of SET_DEP_CON.
10046 (add_jump_dependencies): Strengthen params "insn" and "jump" from
10047 rtx to rtx_insn *.
10048
10049 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10050 Drop use of SET_DEP_PRO
10051 (init_dep): Strengthen params "pro" and "con" from rtx to
10052 rtx_insn *.
10053 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
10054 use of SET_DEP_CON.
10055 (DEP_PRO): Delete.
10056 (DEP_CON): Delete.
10057 (SET_DEP_PRO): Delete.
10058 (SET_DEP_CON): Delete.
10059
10060 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10061
10062 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10063 from rtx to rtx_insn *.
10064 (VINSN_INSN_RTX): Eliminate rvalue function and...
10065 (SET_VINSN_INSN): ...lvalue function in favor of...
10066 (VINSN_INSN_RTX): reinstate this old macro.
10067
10068 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10069 in favor of VINSN_INSN_RTX.
10070 (VINSN_INSN_RTX): Delete this function.
10071 (SET_VINSN_INSN_RTX): Likewise.
10072
10073 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10074
10075 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10076 (BND_TO): Delete this function and...
10077 (SET_BND_TO): ...this functions in favor of...
10078 (BND_TO): ...reinstating this macro.
10079 (struct _fence): Strengthen field "executing_insns" from
10080 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
10081 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10082 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10083 and param "insn" from rtx to insn_t.
10084 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10085 rtx_insn *.
10086
10087 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10088 vec<rtx_insn *> .
10089 (rtx_vec_t): Likewise.
10090 (struct sched_deps_info_def): Strengthen param of "start_insn"
10091 callback from rtx to rtx_insn *. Likewise for param "insn2" of
10092 "note_mem_dep" callback and first param of "note_dep" callback.
10093
10094 * haifa-sched.c (add_to_speculative_block): Strengthen param
10095 "insn" from rtx to rtx_insn *.
10096 (clear_priorities): Likewise.
10097 (calc_priorities): Likewise for local "insn".
10098
10099 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10100 Remove redundant checked cast.
10101 (haifa_note_mem_dep): Likewise for param "pending_insn".
10102 (haifa_note_dep): Likewise for param "elem".
10103 (note_mem_dep): Likewise for param "e".
10104 (sched_analyze_1): Add checked casts.
10105 (sched_analyze_2): Likewise.
10106
10107 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10108 from rtx to rtx_insn *.
10109 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10110 from vec<rtx> * to vec<rtx_insn *> *.
10111
10112 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10113 scaffolding.
10114 (flist_add): Strengthen param "executing_insns" from
10115 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10116 (advance_deps_context): Remove now-redundant checked cast.
10117 (init_fences): Replace uses of NULL_RTX with NULL.
10118 (merge_fences): Strengthen params "last_scheduled_insn" and
10119 "sched_next" from rtx to rtx_insn * and "executing_insns" from
10120 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10121 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10122 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10123 an instruction, rather than doing double-duty as a pattern.
10124 (return_nop_to_pool): Update for change of insn_t.
10125 (deps_init_id): Remove now-redundant checked cast.
10126 (struct sched_scan_info_def): Strengthen param of "init_insn"
10127 callback from rtx to insn_t.
10128 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10129 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10130 NULL.
10131 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10132 "end" from rtx to rtx_insn *.
10133 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10134 (rtx insn_rtx, bool force_unique_p)
10135 (BND_TO): Delete function.
10136 (SET_BND_TO): Delete function.
10137
10138 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10139 rtx to rtx_insn *.
10140 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10141 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10142 rtx to rtx_insn *.
10143 (undo_transformations): Likewise for param "insn".
10144 (update_liveness_on_insn): Likewise.
10145 (compute_live_below_insn): Likewise for param "insn" and local
10146 "succ".
10147 (update_data_sets): Likewise for param "insn".
10148 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10149 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10150 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10151 rtx_insn *.
10152 (move_cond_jump): Likewise for param "insn".
10153 (move_cond_jump): Drop use of SET_BND_TO.
10154 (compute_av_set_on_boundaries): Likewise.
10155 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10156 (update_and_record_unavailable_insns): Strengthen local "bb_end"
10157 from rtx to rtx_insn *.
10158 (maybe_emit_renaming_copy): Likewise for param "insn".
10159 (maybe_emit_speculative_check): Likewise.
10160 (handle_emitting_transformations): Likewise.
10161 (remove_insn_from_stream): Likewise.
10162 (code_motion_process_successors): Strengthen local "succ" from rtx
10163 to insn_t.
10164
10165 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10166
10167 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10168 ilist_t, not _xlist_t;
10169 (ILIST_INSN): Define in terms of new union field "insn".
10170 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10171 _XLIST_NEXT.
10172 (struct _list_node): Add new field "insn" to the union, of type
10173 insn_t.
10174 (ilist_add): Replace macro with an inline function, requiring an
10175 insn_t.
10176 (ilist_remove): Define this macro directly in terms of
10177 _list_remove, rather than indirectly via _xlist_remove.
10178 (ilist_clear): Likewise, in terms of _list_clear rather than
10179 _xlist_clear.
10180 (ilist_is_in_p): Replace macro with an inline function, requiring
10181 an insn_t.
10182 (_list_iter_cond_insn): New function.
10183 (ilist_iter_remove): Define this macro directly in terms of
10184 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
10185 (ilist_iterator): Define directly in terms of _list_iterator
10186 rather than indirectly through _xlist_iterator.
10187 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
10188 than in terms of _FOR_EACH_X.
10189 (FOR_EACH_INSN_1): Likewise.
10190
10191 2014-08-26 Joseph Myers <joseph@codesourcery.com>
10192
10193 PR target/60606
10194 PR target/61330
10195 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
10196 DECL_HARD_REGISTER and return for invalid register specifications.
10197 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
10198 DECL_HARD_REGISTER, call expand_one_error_var.
10199 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
10200 CC_REGNUM with non-MODE_CC modes.
10201 (arm_regno_class): Return NO_REGS for PC_REGNUM.
10202
10203 2014-08-26 Marek Polacek <polacek@redhat.com>
10204
10205 PR c/61271
10206 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
10207
10208 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
10209
10210 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10211 qi cost; add di cost.
10212 (cortexa57_addrcost_table): Likewise.
10213
10214 2014-08-26 Marek Polacek <polacek@redhat.com>
10215
10216 PR c/61271
10217 * expr.c (is_aligning_offset): Remove logical not.
10218
10219 2014-08-26 Marek Polacek <polacek@redhat.com>
10220
10221 PR c/61271
10222 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10223 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10224
10225 2014-08-26 Richard Biener <rguenther@suse.de>
10226
10227 PR tree-optimization/62175
10228 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10229 expand possibly trapping operations.
10230
10231 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10232
10233 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10234 "insn" from rtx to rtx_insn *.
10235 (permute_load): Likewise for param "insn".
10236 (permute_store): Likewise.
10237 (handle_special_swappables): Likewise for local "insn".
10238 (replace_swap_with_copy): Likewise for locals "insn" and
10239 "new_insn".
10240 (rs6000_analyze_swaps): Likewise for local "insn".
10241
10242 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10243
10244 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10245 to rtx_insn *.
10246
10247 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10248
10249 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10250 "note_list" from rtx to rtx_insn *.
10251 (BB_NOTE_LIST): Replace this function and...
10252 (SET_BB_NOTE_LIST): ...this function with...
10253 (BB_NOTE_LIST): ...the former macro implementation.
10254
10255 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10256 local "from_start" from rtx to rtx_insn *. Strengthen param
10257 "to_endp" from rtx * to rtx_insn **.
10258
10259 * haifa-sched.c (concat_note_lists): Likewise.
10260 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10261 BB_NOTE_LIST.
10262 (sel_restore_notes): Likewise.
10263 (move_bb_info): Likewise.
10264 (BB_NOTE_LIST): Delete this function.
10265 (SET_BB_NOTE_LIST): Delete this function.
10266 * sel-sched.c (create_block_for_bookkeeping): Eliminate
10267 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10268
10269 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10270
10271 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10272 from rtx * to rtx_insn **.
10273 (reorder2): Likewise.
10274 (dependencies_evaluation_hook): Strengthen params "head", "tail"
10275 from rtx to rtx_insn *.
10276
10277 * doc/tm.texi: Update mechanically for above change to target.def.
10278
10279 * sched-int.h (note_list): Strengthen this variable from rtx to
10280 rtx_insn *.
10281 (remove_notes): Likewise for both params.
10282 (restore_other_notes): Likewise for return type and first param.
10283 (struct ready_list): Strengthen field "vec" from rtx * to
10284 rtx_insn **.
10285 (struct dep_replacement): Strenghten field "insn" from rtx to
10286 rtx_insn *.
10287 (struct deps_desc): Likewise for fields "last_debug_insn",
10288 "last_args_size".
10289 (struct haifa_sched_info): Likewise for callback field
10290 "can_schedule_ready_p"'s param, for first param of "new_ready"
10291 callback field, for both params of "rank" callback field, for
10292 first field of "print_insn" callback field (with a const), for
10293 both params of "contributes_to_priority" callback, for param
10294 of "insn_finishes_block_p" callback, for fields "prev_head",
10295 "next_tail", "head", "tail", for first param of "add_remove_insn"
10296 callback, for first param of "begin_schedule_ready" callback, for
10297 both params of "begin_move_insn" callback, and for second param
10298 of "advance_target_bb" callback.
10299 (add_dependence): Likewise for params 1 and 2.
10300 (sched_analyze): Likewise for params 2 and 3.
10301 (deps_analyze_insn): Likewise for param 2.
10302 (ready_element): Likewise for return type.
10303 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10304 (try_ready): Strenghten param from rtx to rtx_insn *.
10305 (sched_emit_insn): Likewise for return type.
10306 (record_delay_slot_pair): Likewise for params 1 and 2.
10307 (add_delay_dependencies): Likewise for param.
10308 (contributes_to_priority): Likewise for both params.
10309 (find_modifiable_mems): Likewise.
10310
10311 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
10312 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
10313 "first_older_only_insn" from rtx to rtx_insn *.
10314 (arm_sched_reorder): Strengthen param "ready" from rtx * to
10315 rtx_insn **.
10316
10317 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
10318 "last_scheduled_iter0" from rtx to rtx_insn *.
10319 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
10320 (c6x_sched_reorder_1): Strengthen param "ready" and locals
10321 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10322 "insn" from rtx to rtx_insn *.
10323 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
10324 rtx_insn **.
10325 (c6x_sched_reorder2): Strengthen param "ready" and locals
10326 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10327 "insn" from rtx to rtx_insn *.
10328 (c6x_variable_issue): Add a checked cast when assigning from insn
10329 to ss.last_scheduled_iter0.
10330 (split_delayed_branch): Strengthen param "insn" and local "i1"
10331 from rtx to rtx_insn *.
10332 (split_delayed_nonbranch): Likewise.
10333 (undo_split_delayed_nonbranch): Likewise for local "insn".
10334 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
10335 "entry_after", "end_packet", "head_insn", "tail_insn",
10336 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
10337 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
10338 to rtx_insn **. Remove now-redundant checked cast on last_insn,
10339 but add a checked cast on loop->start_label. Consolidate calls to
10340 avoid assigning result of gen_spkernel to "insn", now an
10341 rtx_insn *.
10342
10343 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
10344 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
10345 rtx to rtx_insn *.
10346 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
10347 rtx_insn **. Strengthen locals "top", "next" from rtx to
10348 rtx_insn *.
10349 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
10350 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
10351 (add_parameter_dependencies): Strengthen params "call", "head" and
10352 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
10353 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
10354 (add_dependee_for_func_arg): Likewise for param "arg" and local
10355 "insn".
10356 (ix86_dependencies_evaluation_hook): Likewise for params "head",
10357 "tail" and locals "insn", "first_arg".
10358
10359 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
10360 for params "head", "tail" and locals "insn", "next", "next_tail".
10361 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
10362 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
10363 "insn", "lowest", "highest" from rtx to rtx_insn *.
10364 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
10365 rtx_insn **.
10366 (ia64_sched_reorder2): Likewise.
10367
10368 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
10369 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
10370 from rtx * to rtx_insn **.
10371 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
10372 rtx_insn **.
10373 (mep_print_sched_insn): Strengthen param "insn" from rtx to
10374 rtx_insn *.
10375 (mep_sched_reorder): Strengthen param "ready" from rtx * to
10376 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
10377 to rtx_insn *.
10378
10379 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
10380 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
10381 to rtx_insn *.
10382 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
10383 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
10384 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
10385 rtx_insn **.
10386 (vr4130_reorder): Likewise.
10387 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
10388 rtx to rtx_insn *.
10389 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
10390 rtx_insn **.
10391 (mips_sched_reorder): Likewise.
10392 (mips_sched_reorder2): Likewise.
10393
10394 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
10395
10396 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
10397 Strengthen local "tmp" from rtx to rtx_insn *.
10398 (rs6000_sched_reorder2): Likewise.
10399
10400 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
10401 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
10402 (s390_sched_reorder): Strengthen param "ready" from rtx * to
10403 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
10404
10405 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
10406 "tmp2" from rtx to rtx_insn *.
10407 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
10408 Strengthen local "insn" from rtx to rtx_insn *.
10409 (ready_reorder): Strengthen param "ready" from rtx * to
10410 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
10411 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
10412 (sh_reorder2): Likewise.
10413
10414 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
10415 local "insn" from rtx to rtx_insn *.
10416
10417 * haifa-sched.c (note_list): Strengthen this variable from rtx to
10418 rtx_insn *.
10419 (scheduled_insns): Strengthen this variable from vec<rtx> to
10420 vec<rtx_insn *>.
10421 (set_modulo_params): Likewise for locals "i1", "i2".
10422 (record_delay_slot_pair): Likewise for params "i1", "i2".
10423 (add_delay_dependencies): Likewise for param "insn".
10424 (cond_clobbered_p): Likewise.
10425 (recompute_todo_spec): Likewise for local "prev".
10426 (last_scheduled_insn): Likewise for this variable.
10427 (nonscheduled_insns_begin): Likewise.
10428 (model_set_excess_costs): Strengthen param "insns" from rtx * to
10429 rtx_insn **.
10430 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
10431 rtx_insn *.
10432 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
10433 Strengthen local "insn" from rtx to rtx_insn *.
10434 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
10435 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10436 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
10437 (ready_remove_first): Likewise for return type and local "t".
10438 (ready_element): Likewise for return type.
10439 (ready_remove): Likewise for return type and local "t".
10440 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
10441 (check_clobbered_conditions): Strengthen local "x" from rtx to
10442 rtx_insn *, adding a checked cast.
10443 (schedule_insn): Likewise for param "insn".
10444 (remove_notes): Likewise for params "head", "tail" and locals
10445 "next_tail", "insn", "next".
10446 (struct haifa_saved_data): Likewise for fields
10447 "last_scheduled_insn", "nonscheduled_insns_begin".
10448 (save_backtrack_point): Update for change to field "vec" of
10449 struct ready_list.
10450 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
10451 rtx_insn **.
10452 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
10453 from rtx to rtx_insn *
10454 (resolve_dependencies): Strengthen param "insn" from rtx to
10455 rtx_insn *
10456 (restore_other_notes): Likewise for return type, for param "head"
10457 and local "note_head".
10458 (undo_all_replacements): Likewise for local "insn".
10459 (first_nonscheduled_insn): Likewise for return type and local "insn".
10460 (queue_to_ready): Likewise for local "insn", adding checked casts.
10461 (early_queue_to_ready): Likewise for local "insn".
10462 (debug_ready_list_1): Strengthen local "p" from rtx * to
10463 rtx_insn **.
10464 (move_insn): Strengthen param "insn" and local "note" from rtx to
10465 rtx_insn *
10466 (insn_finishes_cycle_p): Likewise for param "insn".
10467 (max_issue): Likewise for local "insn".
10468 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
10469 to rtx_insn **.
10470 (commit_schedule): Strengthen param "prev_head" and local "insn"
10471 from rtx to rtx_insn *
10472 (prune_ready_list): Likewise for local "insn".
10473 (schedule_block): Likewise for locals "prev_head", "head", "tail",
10474 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
10475 (set_priorities): Likewise for local "prev_head".
10476 (try_ready): Likewise for param "next".
10477 (fix_tick_ready): Likewise.
10478 (change_queue_index): Likewise.
10479 (sched_extend_ready_list): Update for change to field "vec" of
10480 struct ready_list.
10481 (generate_recovery_code): Strengthen param "insn" from rtx to
10482 rtx_insn *.
10483 (begin_speculative_block): Likewise.
10484 (create_check_block_twin): Likewise for param "insn" and locals
10485 "label", "check", "twin". Introduce local "check_pat" to avoid
10486 "check" being used as a plain rtx before being used as an insn.
10487 (fix_recovery_deps): Add a checked cast to rtx_insn * when
10488 extracting elements from ready_list.
10489 (sched_remove_insn): Strengthen param "insn" from rtx to
10490 rtx_insn *.
10491 (sched_emit_insn): Likewise for return type.
10492 (ready_remove_first_dispatch): Likewise for return type and local
10493 "insn".
10494
10495 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
10496
10497 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
10498 const rtx_insn *.
10499
10500 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
10501 from rtx to rtx_insn *.
10502 (add_dependence_list): Likewise for param "insn". Add a checked
10503 cast.
10504 (add_dependence_list_and_free): Strengthen param "insn" from rtx
10505 to rtx_insn *. Strengthen param "list_p" from rtx * to
10506 rtx_insn **.
10507 (chain_to_prev_insn): Strengthen param "insn" and locals
10508 "prec_nonnote", "i" from rtx to rtx_insn *.
10509 (flush_pending_lists): Likewise for param "insn".
10510 (cur_insn): Likewise for this variable.
10511 (haifa_start_insn): Add a checked cast.
10512 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
10513 (sched_analyze_reg): Likewise for param "insn".
10514 (sched_analyze_1): Likewise.
10515 (sched_analyze_2): Likewise. Add checked casts.
10516 (sched_analyze_insn): Likewise. Also for local "prev".
10517 (deps_analyze_insn): Likewise for param "insn".
10518 (sched_analyze): Likewise for params "head", "tail" and local "insn".
10519 (add_dependence_1): Likewise for params "insn", "elem".
10520 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
10521 (parse_add_or_inc): Likewise for param "insn".
10522 (find_inc): Likewise for local "inc_cand".
10523 (find_modifiable_mems): Likewise for params "head", "tail" and
10524 locals "insn", "next_tail".
10525
10526 * sched-ebb.c (init_ready_list): Likewise for local "insn".
10527 (begin_schedule_ready): Likewise for param "insn".
10528 (begin_move_insn): Likewise for params "insn" and "last".
10529 (ebb_print_insn): Strengthen param "insn" from const_rtx to
10530 const rtx_insn *.
10531 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
10532 (ebb_contributes_to_priority): Likewise for params "next", "insn".
10533 (ebb_add_remove_insn): Likewise for param "insn".
10534 (advance_target_bb): Likewise.
10535
10536 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
10537 "insn".
10538 (check_live): Likewise for param "insn".
10539 (init_ready_list): Likewise for local "insn".
10540 (can_schedule_ready_p): Likewise for param "insn".
10541 (begin_schedule_ready): Likewise.
10542 (new_ready): Likewise for param "next".
10543 (rgn_print_insn): Likewise for param "insn".
10544 (rgn_rank): Likewise for params "insn1", "insn2".
10545 (contributes_to_priority): Likewise for params "next", "insn".
10546 (rgn_insn_finishes_block_p): Likewise for param "insn".
10547 (add_branch_dependences): Likewise for params "head", "tail" and
10548 locals "insn", "last".
10549 (rgn_add_remove_insn): Likewise for param "insn".
10550 (advance_target_bb): Likewise.
10551
10552 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
10553 const_rtx to const rtx_insn *.
10554
10555 * sel-sched-dump.h (sel_print_insn): Likewise.
10556
10557 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
10558 (deps_init_id): Likewise.
10559
10560 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10561 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10562 rtx_insn **.
10563
10564 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10565
10566 * output.h (final_start_function): Strengthen param 1 from rtx to
10567 rtx_insn *.
10568
10569 * final.c (final_start_function): Likewise, renaming back from
10570 "uncast_first" to "first", and dropping the checked cast from rtx
10571 to rtx_insn *.
10572
10573 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10574
10575 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10576 * final.c (final): Likewise. Rename param back from
10577 "uncast_first" to "first" and eliminate the checked cast from rtx
10578 to rtx_insn *.
10579
10580 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10581
10582 * output.h (shorten_branches): Strengthen param from rtx to
10583 rtx_insn *.
10584
10585 * final.c (shorten_branches): Likewise, renaming param back from
10586 "uncast_first" to "first", and dropping the checked cast from rtx
10587 to rtx_insn *.
10588
10589 * genattr.c (gen_attr): Likewise when writing out the prototype of
10590 shorten_branches.
10591
10592 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10593
10594 * sched-int.h (struct haifa_sched_info): Strengthen fields
10595 "prev_head" and "next_tail" from rtx to rtx_insn *.
10596
10597 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10598
10599 * rtl.h (rtx_jump_table_data::get_labels): New method.
10600 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10601 with use of the new rtx_jump_table_data::get_labels method.
10602 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10603 to rtx_jump_table_data *. Simplify by using get_labels method.
10604 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10605 a dyn_cast, introducing local "table", using it to replace
10606 label-lookup logic with a get_labels method call.
10607 (patch_jump_insn): Simplify using get_labels method.
10608 * dwarf2cfi.c (create_trace_edges): Likewise.
10609 * rtlanal.c (label_is_jump_target_p): Likewise.
10610
10611 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10612
10613 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10614 to rtx_insn *.
10615
10616 * emit-rtl.c (unshare_all_rtl_1): Likewise.
10617 (unshare_all_rtl_again): Likewise, also for local "p".
10618
10619 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10620
10621 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10622 to rtx_insn *.
10623 * cfgrtl.c (delete_insn_and_edges): Likewise.
10624
10625 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10626
10627 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10628 from rtx to rtx_insn *.
10629
10630 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10631
10632 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10633
10634 * function.c (thread_prologue_and_epilogue_insns): Likewise for
10635 locals "returnjump", "epilogue_end", "insn", "next".
10636
10637 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10638 "returnjump" from rtx * to rtx_insn **.
10639 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10640
10641 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10642
10643 * basic-block.h (struct edge_def). Strengthen "r" within
10644 union edge_def_insns from rtx to rtx_insn *.
10645
10646 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10647 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
10648 rtx_insn *.
10649 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10650 from rtx to rtx_insn *.
10651 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10652 rtx_insn *.
10653 * postreload-gcse.c (reg_killed_on_edge): Likewise.
10654 (reg_used_on_edge): Likewise.
10655 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
10656 (gt_pch_nx): New overload for rtx_insn *&.
10657 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
10658 from rtx to rtx_insn *.
10659
10660 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10661
10662 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
10663 from rtx to rtx_insn *.
10664 (BB_FOOTER): Replace function with access macro.
10665 (SET_BB_FOOTER): Delete.
10666
10667 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
10668 with BB_FOOTER.
10669 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10670 (emit_barrier_after_bb): Likewise.
10671 (record_effective_endpoints): Likewise.
10672 (relink_block_chain): Likewise.
10673 (fixup_fallthru_exit_predecessor): Likewise.
10674 (cfg_layout_duplicate_bb): Likewise.
10675 (cfg_layout_split_block): Likewise.
10676 (cfg_layout_delete_block): Likewise.
10677 (cfg_layout_merge_blocks): Likewise.
10678 (BB_FOOTER): Delete function.
10679 (SET_BB_FOOTER): Delete function.
10680 * combine.c (update_cfg_for_uncondjump): Replace uses of
10681 SET_BB_FOOTER with BB_FOOTER.
10682
10683 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10684
10685 * except.h (struct eh_landing_pad_d): Strengthen field
10686 "landing_pad" from rtx to rtx_code_label *.
10687
10688 * except.c (sjlj_emit_dispatch_table): Likewise for param
10689 "dispatch_label"
10690 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10691
10692 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10693
10694 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10695 first param from rtx to rtx_insn *.
10696 * config/xtensa/xtensa.c (struct machine_function): Likewise for
10697 field "set_frame_ptr_insn".
10698 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10699 "csend" from rtx to rtx_code_label *.
10700 (xtensa_expand_atomic): Likewise for local "csloop".
10701 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
10702 rtx_insn *.
10703 (xtensa_call_tls_desc): Likewise for return type and locals
10704 "call_insn", "insns".
10705 (xtensa_legitimize_tls_address): Likewise for local "insns".
10706 (xtensa_expand_prologue): Likewise for locals "insn", "first".
10707
10708 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10709
10710 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
10711 first param from rtx to rtx_insn *.
10712 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
10713 "insn".
10714
10715 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10716
10717 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
10718 Strengthen param 1 from rtx to rtx_insn *.
10719 (tilepro_output_cbranch): Likewise.
10720 (tilepro_adjust_insn_length): Likewise.
10721 (tilepro_final_prescan_insn): Likewise for sole param.
10722
10723 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
10724 Likewise for local "last".
10725 (cbranch_predicted_p): Likewise for param "insn".
10726 (tilepro_output_simple_cbranch_with_opcode): Likewise.
10727 (tilepro_output_cbranch_with_opcode): Likewise.
10728 (tilepro_output_cbranch): Likewise.
10729 (frame_emit_load): Likewise for return type and locals "seq",
10730 "insn".
10731 (emit_sp_adjust): Likewise for return type and local "insn".
10732 (tilepro_expand_epilogue): Likewise for locals "last_insn",
10733 "insn".
10734 (tilepro_adjust_insn_length): Likewise for param "insn".
10735 (next_insn_to_bundle): Likewise for return type and params
10736 "r", "end".
10737 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
10738 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
10739 local "new_insns".
10740 (match_addli_pcrel): Likewise for param "insn".
10741 (replace_addli_pcrel): Likewise.
10742 (match_auli_pcrel): Likewise.
10743 (replace_auli_pcrel): Likewise.
10744 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
10745 "next_insn".
10746 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10747 "queue", "next_queue", "prev".
10748 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
10749 (tilepro_final_prescan_insn): Likewise for param "insn".
10750
10751 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10752
10753 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
10754 Strengthen param 1 from rtx to rtx_insn *.
10755 (tilegx_output_cbranch): Likewise.
10756 (tilegx_adjust_insn_length): Likewise.
10757 (tilegx_final_prescan_insn): Likewise for sole param.
10758
10759 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
10760 or local "last".
10761 (cbranch_predicted_p): Likewise for param "insn".
10762 (tilegx_output_simple_cbranch_with_opcode): Likewise.
10763 (tilegx_output_cbranch_with_opcode): Likewise.
10764 (tilegx_output_cbranch): Likewise.
10765 (frame_emit_load): Likewise for return type.
10766 (set_frame_related_p): Likewise for locals "seq", "insn".
10767 (emit_sp_adjust): Likewise for return type, and for local "insn".
10768 Introduce local "pat" for use in place of "insn" where the latter
10769 isn't an instruction.
10770 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
10771 from rtx to rtx_insn *.
10772 (tilegx_adjust_insn_length): Likewise for param "insn".
10773 (next_insn_to_bundle): Likewise for return type and params "r" and
10774 "end".
10775 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
10776 "end".
10777 (replace_insns): Likewise for params "old_insn", "new_insns".
10778 (replace_mov_pcrel_step1): Likewise for param "insn" and local
10779 "new_insns".
10780 (replace_mov_pcrel_step2): Likewise.
10781 (replace_mov_pcrel_step3): Likewise.
10782 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
10783 "next_insn".
10784 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10785 "queue", "next_queue", "prev".
10786 (tilegx_output_mi_thunk): Likewise for local "insn".
10787 (tilegx_final_prescan_insn): Likewise for param "insn".
10788
10789 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10790
10791 * config/spu/spu.c (frame_emit_store): Strengthen return type from
10792 rtx to rtx_insn *.
10793 (frame_emit_load): Likewise.
10794 (frame_emit_add_imm): Likewise, also for local "insn".
10795 (spu_expand_prologue): Likewise for local "insn".
10796 (struct spu_bb_info): Likewise for field "prop_jump".
10797 (emit_nop_for_insn): Likewise for param "insn" and local
10798 "new_insn".
10799 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
10800 "hbr_insn".
10801 (spu_emit_branch_hint): Likewise for params "before", "branch" and
10802 locals "hint", "insn".
10803 (get_branch_target): Likewise for param "branch".
10804 (insn_clobbers_hbr): Likewise for param "insn".
10805 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
10806 locals "insn", "before_4", "before_16".
10807 (insert_hbrp): Likewise for local "insn".
10808 (spu_machine_dependent_reorg): Likewise for locals "branch",
10809 "insn", "next", "bbend".
10810 (uses_ls_unit): Likewise for param "insn".
10811 (get_pipe): Likewise.
10812 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
10813 introducing a checked cast.
10814 (spu_sched_adjust_cost): Likewise for params "insn" and
10815 "dep_insn".
10816 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
10817 (spu_sms_res_mii): Likewise.
10818
10819 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10820
10821 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
10822 from rtx to rtx_insn *.
10823 (output_cbranch): Likewise for param 6.
10824 (output_return): Likewise for param 1.
10825 (output_sibcall): Likewise.
10826 (output_v8plus_shift): Likewise.
10827 (output_v8plus_mult): Likewise.
10828 (output_v9branch): Likewise for param 7.
10829 (output_cbcond): Likewise for param 3.
10830
10831 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
10832 for local "insn".
10833 (sparc_legitimize_pic_address): Likewise.
10834 (sparc_emit_call_insn): Likewise.
10835 (emit_save_or_restore_regs): Likewise.
10836 (emit_window_save): Likewise for return type and local "insn".
10837 (sparc_expand_prologue): Likewise for local "insn".
10838 (sparc_flat_expand_prologue): Likewise.
10839 (output_return): Likewise for param "insn".
10840 (output_sibcall): Likewise for param "insn" and local "delay".
10841 (output_ubranch): Likewise for param "insn".
10842 (output_cbranch): Likewise.
10843 (output_cbcond): Likewise.
10844 (output_v9branch): Likewise.
10845 (output_v8plus_shift): Likewise.
10846 (sparc_output_mi_thunk): Likewise for local "insn".
10847 (get_some_local_dynamic_name): Likewise.
10848 (output_v8plus_mult): Likewise for param "insn".
10849
10850 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10851
10852 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
10853 from rtx to rtx_insn *.
10854 (output_branchy_insn): Likewise for param 3.
10855 (output_far_jump): Likewise for param 1.
10856 (final_prescan_insn): Likewise.
10857 (sh_insn_length_adjustment): Likewise for sole param.
10858
10859 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
10860 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
10861 rtx_code_label *.
10862 (sh_emit_compare_and_set): Likewise for local "lab".
10863 (output_far_jump): Strengthen param "insn" and local "prev" from
10864 rtx to rtx_insn *.
10865 (output_branchy_insn): Likewise for param "insn" and local
10866 "next_insn".
10867 (output_ieee_ccmpeq): Likewise for param "insn".
10868 (struct label_ref_list_d): Strengthen field "label" from rtx to
10869 rtx_code_label *.
10870 (pool_node): Likewise.
10871 (pool_window_label): Likewise for this global.
10872 (add_constant): Likewise for return type and locals "lab", "new_rtx".
10873 (dump_table): Strengthen params "start", "barrier" and local
10874 "scan" from rtx to rtx_insn *.
10875 (broken_move): Likewise for param "insn".
10876 (untangle_mova): Likewise for params "first_mova" and "new_mova".
10877 Strengthen param "first_mova" from rtx * to rtx_insn **.
10878 (mova_p): Likewise for param "insn".
10879 (fixup_mova): Likewise for param "mova".
10880 (find_barrier): Likewise for return type, params "mova" and
10881 "from", and locals "barrier_before_mova", "found_barrier",
10882 "good_barrier", "orig", "last_symoff", "next". Strengthen local
10883 "label" from rtx to rtx_code_label *.
10884 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
10885 rtx to rtx_insn *.
10886 (sh_reorg): Likewise for locals "link", "scan", "barrier".
10887 (split_branches): Likewise for param "first" and local "insn".
10888 (final_prescan_insn): Likewise for param "insn".
10889 (sequence_insn_p): Likewise for locals "prev", "next".
10890 (sh_insn_length_adjustment): Likewise for param "insn".
10891 (sh_can_redirect_branch): Likewise for local "insn".
10892 (find_r0_life_regions): Likewise for locals "end", "insn".
10893 (sh_output_mi_thunk): Likewise for local "insns".
10894
10895 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10896
10897 * config/score/score.c (score_output_mi_thunk): Strengthen local
10898 "insn" from rtx to rtx_insn *.
10899 (score_prologue): Likewise.
10900
10901 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10902
10903 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
10904 1 from rtx to rtx_insn *.
10905 (s390_emit_jump): Likewise for return type.
10906 (s390_emit_call): Likewise.
10907 (s390_load_got): Likewise.
10908
10909 * config/s390/s390.c (last_scheduled_insn): Likewise for this
10910 variable.
10911 (s390_match_ccmode): Likewise for param "insn".
10912 (s390_emit_jump): Likewise for return type.
10913 (s390_split_branches): Likewise for local "label".
10914 (struct constant): Strengthen field "label" from rtx to
10915 rtx_code_label *.
10916 (struct constant_pool): Likewise for field "label". Strengthen
10917 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
10918 rtx_insn *.
10919 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
10920 insns.
10921 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
10922 (s390_end_pool): Likewise.
10923 (s390_dump_pool): Likewise for local "insn".
10924 (s390_mainpool_start): Likewise.
10925 (s390_chunkify_start): Likewise.
10926 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
10927 with insns. Strengthen locals "label", "jump", "barrier", "next",
10928 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
10929 (s390_chunkify_finish): Strengthen local "insn" from rtx to
10930 rtx_insn *.
10931 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
10932 "jump", "label", "next_insn".
10933 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
10934 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
10935 "tbegin_insn".
10936 (s390_load_got): Likewise for return type and local "insns".
10937 (s390_save_gprs_to_fprs): Likewise for local "insn".
10938 (s390_restore_gprs_from_fprs): Likewise.
10939 (pass_s390_early_mach::execute): Likewise.
10940 (s390_emit_prologue): Likewise for local "insns".
10941 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
10942 rtx_code_label *.
10943 (s390_emit_call): Strengthen return type and local "insn" from
10944 rtx to rtx_insn *.
10945 (s390_emit_tpf_eh_return): Likewise for local "insn".
10946 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
10947 "next_insn", introducing locals "s_pat", "rpat" to allow this.
10948 (s390_fix_long_loop_prediction): Likewise for param "insn" and
10949 local "cur_insn".
10950 (s390_non_addr_reg_read_p): Likewise for param "insn".
10951 (find_cond_jump): Likewise for return type and param "insn".
10952 (s390_swap_cmp): Likewise for param "insn".
10953 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
10954 "prev_insn", "next_insn".
10955 (s390_reorg): Likewise for locals "insn", "target".
10956 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
10957 (s390_sched_variable_issue): For now, rename param "insn" to
10958 "uncast_insn", introducing a checked cast.
10959 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
10960 insn.
10961 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
10962 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
10963
10964 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10965
10966 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
10967 param from rtx to rtx_insn *.
10968 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
10969
10970 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10971
10972 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
10973 4 from rtx to rtx_insn *.
10974 (rs6000_final_prescan_insn): Likewise for first param.
10975 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
10976 local "insn".
10977 (rs6000_get_some_local_dynamic_name): Likewise.
10978 (output_cbranch): Likewise for param "insn".
10979 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
10980 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
10981 (rs6000_emit_allocate_stack): Likewise for local "insn".
10982 (load_cr_save): Likewise.
10983 (restore_saved_cr): Likewise.
10984 (restore_saved_lr): Likewise.
10985 (emit_cfa_restores): Likewise.
10986 (rs6000_output_function_epilogue): Likewise for locals "insn" and
10987 "deleted_debug_label".
10988 (rs6000_output_mi_thunk): Likewise for local "insn".
10989 (rs6000_final_prescan_insn): Likewise for param "insn".
10990
10991 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10992
10993 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
10994 Strengthen param "insn" from rtx to rtx_insn *.
10995 * config/picochip/picochip.c (picochip_current_prescan_insn):
10996 Likewise for this variable.
10997 (picochip_final_prescan_insn): Likewise for param "insn".
10998
10999 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11000
11001 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11002 from rtx to rtx_insn *.
11003 (pa_output_indirect_call): Likewise.
11004 (pa_adjust_insn_length): Likewise.
11005 (pa_attr_length_millicode_call): Likewise.
11006 (pa_attr_length_call): Likewise.
11007 (pa_attr_length_indirect_call): Likewise.
11008
11009 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11010 "insn".
11011 (pa_attr_length_millicode_call): Likewise.
11012 (pa_attr_length_call): Likewise.
11013 (pa_output_call): Likewise.
11014 (pa_attr_length_indirect_call): Likewise.
11015 (pa_output_indirect_call): Likewise.
11016
11017 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11018
11019 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11020 Strengthen first param from rtx to rtx_insn *.
11021 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11022 param "insn".
11023
11024 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11025
11026 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11027 type from rtx to rtx_insn *.
11028 (mips_expand_call): Likewise.
11029 (mips_adjust_insn_length): Likewise for first param.
11030 (mips_output_conditional_branch): Likewise.
11031 (mips_output_order_conditional_branch): Likewise.
11032 (mips_final_prescan_insn): Likewise.
11033
11034 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11035 rtx_insn * for the SEQUENCE case.
11036 (SEQ_END): Likewise.
11037 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11038 (mips_emit_call_insn): Likewise, also for local "insn".
11039 (mips16_gp_pseudo_reg): Likewise for local "scan".
11040 (mips16_build_call_stub): Likewise for return type and for local
11041 "insn". Introduce a new local "pattern" so that "insn" can indeed
11042 be an insn.
11043 (mips_expand_call): Strengthen return type and local "insn" from
11044 rtx to rtx_insn *.
11045 (mips_block_move_loop): Strengthen local "label" from rtx to
11046 rtx_code_label *.
11047 (mips_expand_synci_loop): Likewise for locals "label",
11048 "end_label".
11049 (mips_set_frame_expr): Strengthen local "insn" from rtx to
11050 rtx_insn *.
11051 (mips16e_collect_argument_saves): Likewise for locals "insn",
11052 "next".
11053 (mips_find_gp_ref): Likewise for param of callback for "pred"
11054 param, and for local "insn".
11055 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11056 (mips_insn_has_flexible_gp_ref_p): Likewise.
11057 (mips_epilogue_emit_cfa_restores): Likewise for return type and
11058 local "insn".
11059 (mips_epilogue_set_cfa): Likewise for local "insn".
11060 (mips_expand_epilogue): Likewise.
11061 (mips_adjust_insn_length): Likewise for param "insn".
11062 (mips_output_conditional_branch): Likewise.
11063 (mips_output_order_conditional_branch): Likewise.
11064 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11065 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11066 "falu2_turn_enabled_insn".
11067 (mips_builtin_branch_and_move): Strengthen locals "true_label",
11068 "done_label" from rtx to rtx_code_label *.
11069 (struct mips16_constant): Likewise for field "label".
11070 (mips16_add_constant): Likewise for return type.
11071 (mips16_emit_constants_1): Strengthen return type and param "insn"
11072 from rtx to rtx_insn *.
11073 (mips16_emit_constants): Likewise for param "insn".
11074 (mips16_insn_length): Likewise.
11075 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11076 to rtx_code_label *.
11077 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11078 from rtx to rtx_insn *.
11079 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11080 "jump". Strengthen local "label" from rtx to rtx_code_label *.
11081 (r10k_simplify_address): Strengthen param "insn" and local
11082 "def_insn" from rtx to rtx_insn *.
11083 (r10k_safe_address_p): Strengthen param "insn" from rtx to
11084 rtx_insn *.
11085 (r10k_needs_protection_p_1): Update target type of cast of data
11086 from to rtx to rtx_insn *.
11087 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11088 rtx * to rtx_insn **.
11089 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11090 rtx_insn *.
11091 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11092 (mips_call_expr_from_insn): Likewise for param "insn".
11093 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11094 (mips_find_pic_call_symbol): Likewise for param "insn".
11095 (mips_annotate_pic_calls): Likewise for local "insn".
11096 (mips_sim_insn): Likewise for this variable.
11097 (struct mips_sim): Likewise for field "insn" within elements of
11098 last_set array.
11099 (mips_sim_wait_reg): Likewise for param "insn".
11100 (mips_sim_wait_regs): Likewise.
11101 (mips_sim_wait_units): Likewise.
11102 (mips_sim_wait_insn): Likewise.
11103 (mips_sim_issue_insn): Likewise.
11104 (mips_sim_finish_insn): Likewise.
11105 (mips_seq_time): Likewise for param "seq" and local "insn".
11106 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11107 locals "first", "second".
11108 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11109 "last", "last2", "next".
11110 (mips_avoid_hazard): Likewise for params "after", "insn".
11111 (mips_reorg_process_insns): Likewise for locals "insn",
11112 "last_insn", "subinsn", "next_insn".
11113 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11114 (mips16_split_long_branches): Likewise for locals "insn" "jump",
11115 "jump_sequence".
11116 (mips_output_mi_thunk): Likewise for local "insn".
11117 (mips_final_prescan_insn): Likewise for param "insn".
11118
11119 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11120
11121 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11122 Strengthen return type and local "insns" from rtx to rtx_insn *.
11123 (microblaze_legitimize_tls_address): Likewise for local "insns".
11124 (microblaze_block_move_loop): Strengthen local "label" from rtx
11125 to rtx_code_label *.
11126 (microblaze_expand_prologue): Strengthen two locals named "insn"
11127 from rtx to rtx_insn *.
11128 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11129 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11130 "insn". Strengthen locals "div_label", "div_end_label" from rtx
11131 to rtx_code_label *.
11132
11133 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11134
11135 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11136 param from rtx to rtx_insn *.
11137 (mep_reuse_lo): Likewise for third param.
11138 (mep_use_post_modify_p): Likewise for first param.
11139 (mep_core_address_length): Likewise.
11140 (mep_cop_address_length): Likewise.
11141 (mep_final_prescan_insn): Likewise.
11142 (mep_store_data_bypass_p): Likewise for both params.
11143 (mep_mul_hilo_bypass_p): Likewise.
11144 (mep_ipipe_ldc_p): Likewise for param.
11145
11146 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11147 (mep_rewrite_mult): Likewise.
11148 (mep_rewrite_mulsi3): Likewise.
11149 (mep_rewrite_maddsi3): Likewise.
11150 (mep_reuse_lo_p_1): Likewise.
11151 (mep_reuse_lo_p): Likewise.
11152 (mep_frame_expr): Likewise.
11153 (mep_make_parallel): Likewise for both params.
11154 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11155 local "insn".
11156 (mep_use_post_modify_p): Likewise for param "insn".
11157 (mep_core_address_length): Likewise.
11158 (mep_cop_address_length): Likewise.
11159 (mep_reg_set_in_function): Likewise for local "insn".
11160 (mep_asm_without_operands_p): Likewise.
11161 (F): Likewise for return type and param "x".
11162 (add_constant): Likewise for local "insn".
11163 (maybe_dead_move): Likewise for return type and local "insn".
11164 (mep_expand_prologue): Likewise for local "insn".
11165 (mep_final_prescan_insn): Likewise for param "insn".
11166 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11167 "next", "follow", "x".
11168 (mep_insert_repeat_label_last): Likewise for return type, param
11169 "last_insn", and locals "next", "prev". Strengthen param "label"
11170 from rtx to rtx_code_label *.
11171 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11172 rtx_insn *.
11173 (struct mep_doloop_end): Likewise for fields "insn" and
11174 "fallthrough".
11175 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
11176 Strengthen local "repeat_label" from rtx to rtx_code_label *.
11177 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
11178 rtx_insn *.
11179 (mep_invert_branch): Likewise for params "insn" and "after".
11180 (mep_reorg_erepeat): Likewise for param "insns" and locals
11181 "insn", "prev", "new_last", "barrier", "user". Strengthen local
11182 "l" from rtx to rtx_code_label *.
11183 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
11184 from rtx to rtx_insn *.
11185 (mep_reorg_addcombine): Likewise for param "insns" and locals
11186 "i", "n".
11187 (add_sp_insn_p): Likewise for param "insn".
11188 (mep_reorg_noframe): Likewise for param "insns" and locals
11189 "start_frame_insn", "end_frame_insn", "next".
11190 (mep_reorg): Likewise for local "insns".
11191 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
11192 cast.
11193 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
11194 (mep_mul_hilo_bypass_p): Likewise.
11195 (mep_ipipe_ldc_p): Likewise for param "insn".
11196 (mep_make_bundle): Likewise for return type, param "cop" and local
11197 "insn", splitting out the latter into a new local "seq" for when it
11198 is a SEQUENCE rather than an insn.
11199 (core_insn_p): Likewise for param "insn".
11200 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
11201 "last", "first", "note", "prev", "core_insn".
11202
11203 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11204
11205 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
11206 rtx to rtx_insn *.
11207 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
11208 (m68k_final_prescan_insn): Likewise for first param.
11209
11210 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11211 (m68k_set_frame_related): Likewise for param "insn".
11212 (output_btst): Likewise for param "insn".
11213 (m68k_final_prescan_insn): Likewise.
11214 (m68k_move_to_reg): Likewise for local "insn".
11215 (m68k_call_tls_get_addr): Likewise for local "insns".
11216 (m68k_call_m68k_read_tp): Likewise.
11217 (strict_low_part_peephole_ok): Likewise for param "first_insn".
11218 (m68k_output_mi_thunk): Likewise for local "insn".
11219
11220 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11221
11222 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11223 first param from rtx to rtx_insn *.
11224 (iq2000_adjust_insn_length): Likewise.
11225 (iq2000_output_conditional_branch): Likewise.
11226 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11227 "insn" and local "nop_insn".
11228 (iq2000_annotate_frame_insn): Likewise for param "insn".
11229 (iq2000_expand_prologue): Likewise for both locals "insn".
11230 (iq2000_adjust_insn_length): Likewise for param "insn".
11231 (iq2000_output_conditional_branch): Likewise.
11232
11233 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11234
11235 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11236 "insns" from rtx to rtx_insn *.
11237 (ia64_emit_cond_move): Likewise for locals "insn", "first".
11238 (struct spill_fill_data): Likewise for field "init_after" and for
11239 elements of array field "prev_insn".
11240 (spill_restore_mem): Likewise for locals "insn", "first".
11241 (do_spill): Likewise for local "insn".
11242 (do_restore): Likewise.
11243 (ia64_expand_prologue): Likewise.
11244 (ia64_expand_epilogue): Likewise.
11245 (emit_insn_group_barriers): Likewise for locals "insn",
11246 "last_label".
11247 (emit_all_insn_group_barriers): Likewise for locals "insn",
11248 "last".
11249 (dfa_stop_insn): Likewise for this global.
11250 (dfa_pre_cycle_insn): Likewise.
11251 (ia64_nop): Likewise.
11252 (final_emit_insn_group_barriers): Likewise for locals "insn",
11253 "last".
11254 (emit_predicate_relation_info): Likewise for locals "head", "n",
11255 "insn", "b", "a".
11256 (ia64_reorg): Likewise for local "insn".
11257 (ia64_output_mi_thunk): Likewise.
11258 (expand_vec_perm_interleave_2): Likewise for local "seq".
11259
11260 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11261
11262 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11263 param 1 "insn" from rtx to rtx_insn *.
11264 (ix86_use_lea_for_mov): Likewise.
11265 (ix86_avoid_lea_for_addr): Likewise.
11266 (ix86_split_lea_for_addr): Likewise.
11267 (ix86_lea_for_add_ok): Likewise.
11268 (ix86_output_call_insn): Likewise.
11269
11270 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11271 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11272 (ix86_output_function_epilogue): Likewise for locals "insn",
11273 "deleted_debug_label".
11274 (legitimize_tls_address): Likewise for local "insn".
11275 (get_some_local_dynamic_name): Likewise.
11276 (increase_distance): Likewise for params "prev", "next".
11277 (distance_non_agu_define_in_bb): Likewise for params "insn",
11278 "start" and locals "prev", "next".
11279 (distance_non_agu_define): Likewise for param "insn".
11280 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11281 locals "next", "prev".
11282 (distance_agu_use): Likewise for param "insn".
11283 (ix86_lea_outperforms): Likewise.
11284 (ix86_ok_to_clobber_flags): Likewise.
11285 (ix86_avoid_lea_for_add): Likewise.
11286 (ix86_use_lea_for_mov): Likewise.
11287 (ix86_avoid_lea_for_addr): Likewise.
11288 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11289 (ix86_split_lea_for_addr): Likewise for param "insn".
11290 (ix86_lea_for_add_ok): Likewise for param "insn".
11291 (ix86_expand_carry_flag_compare): Likewise for local
11292 "compare_seq".
11293 (ix86_expand_int_movcc): Likewise.
11294 (ix86_output_call_insn): Likewise for param "insn".
11295 (ix86_output_call_insn): Likewise for local "i".
11296 (x86_output_mi_thunk): Introduce local "insn", using it in place
11297 of "tmp" when dealing with insns.
11298 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11299 "start".
11300 (ix86_pad_returns): Likewise for locals "ret", "prev".
11301 (ix86_count_insn_bb): Likewise for local "insn".
11302 (ix86_pad_short_function): Likewise for locals "ret", "insn".
11303 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11304 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11305 (expand_vec_perm_interleave2): Likewise for local "seq".
11306 (expand_vec_perm_vperm2f128_vblend): Likewise.
11307 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
11308 call to for_each_rtx with for_each_rtx_in_insn.
11309
11310 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11311
11312 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
11313 "label" from rtx to rtx_code_label *.
11314 (ix86_expand_prologue): Likewise.
11315 (ix86_expand_split_stack_prologue): Likewise for locals "label",
11316 "varargs_label".
11317 (ix86_split_idivmod): Likewise for locals "end_label" and
11318 "qimode_label".
11319 (ix86_expand_branch): Likewise for local "label2".
11320 (ix86_expand_aligntest): Likewise for return type and local "label".
11321 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
11322 "top_label".
11323 (expand_movmem_epilogue): Likewise for the various locals named
11324 "label".
11325 (expand_setmem_epilogue): Likewise.
11326 (expand_small_movmem_or_setmem): Likewise for local "label".
11327 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11328 Strengthen param "done_label" from rtx * to rtx_code_label **.
11329 Strengthen locals "loop_label" and "label" from rtx to
11330 rtx_code_label *.
11331 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11332 Likewise for locals "loop_label", "label".
11333 (ix86_expand_set_or_movmem): Likewise for locals "label",
11334 "jump_around_label", "hot_label".
11335 (ix86_expand_strlensi_unroll_1): Likewise for locals
11336 "align_2_label", align_3_label", "align_4_label", "end_0_label",
11337 "end_2_label".
11338 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
11339 (void ix86_emit_i387_log1p): Likewise for locals "label1",
11340 "label2", "jump_label".
11341 (ix86_expand_sse_compare_and_jump): Likewise for return type and
11342 local "label".
11343 (ix86_expand_lfloorceil): Likewise for local "label".
11344 (ix86_expand_rint): Likewise.
11345 (ix86_expand_floorceildf_32): Likewise.
11346 (ix86_expand_floorceil): Likewise.
11347 (ix86_expand_rounddf_32): Likewise.
11348 (ix86_expand_trunc): Likewise.
11349 (ix86_expand_truncdf_32): Likewise.
11350 (ix86_expand_round): Likewise.
11351
11352 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11353
11354 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
11355 first param from rtx to rtx_insn *.
11356 (h8300_insn_length_from_table): Likewise.
11357 * config/h8300/h8300.c (F): Likewise for return type and param
11358 "x".
11359 (Fpa): Add a checked cast to rtx_insn *.
11360 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
11361 rtx_insn *.
11362 (final_prescan_insn): Likewise for param "insn".
11363 (h8300_binary_length): Likewise.
11364 (h8300_insn_length_from_table): Likewise.
11365
11366 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11367
11368 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
11369 Strengthen first param "insn" from rtx to rtx_insn *.
11370
11371 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
11372 Likewise.
11373 (frame_insn): Likewise for return type. Introduce local "insn"
11374 for use in place of local "x" for use as an rtx_insn *.
11375 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
11376 (epiphany_expand_prologue): Likewise for local "insn".
11377 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
11378 * config/epiphany/resolve-sw-modes.c
11379 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
11380 "seq".
11381
11382 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11383
11384 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
11385 param from rtx to rtx_insn *.
11386 (c6x_final_prescan_insn): Likewise for first param.
11387
11388 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
11389 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
11390 (c6x_expand_compare): Strengthen local "insns" from rtx to
11391 rtx_insn *.
11392 (c6x_get_unit_specifier): Likewise for param "insn".
11393 (c6x_print_unit_specifier_field): Likewise.
11394 (c6x_final_prescan_insn): Likewise.
11395 (emit_add_sp_const): Likewise for local "insn".
11396 (c6x_expand_prologue): Likewise.
11397
11398 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11399
11400 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
11401 param 1 from rtx to rtx_insn *.
11402 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
11403 the various locals named "insn".
11404 (expand_epilogue_reg_restore): Likewise.
11405 (frame_related_constant_load): Likewise.
11406 (add_to_reg): Likewise.
11407 (emit_link_insn): Likewise.
11408 (do_link): Likewise.
11409 (expand_interrupt_handler_prologue): Likewise.
11410 (branch_dest): Likewise for param "branch".
11411 (asm_conditional_branch): Likewise for param "insn".
11412 (gen_one_bundle): Likewise for elements of param "slot" and local
11413 "t".
11414 (bfin_gen_bundles): Likewise for locals "insn", "next" and
11415 elements of local "slot".
11416 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11417 "queue", "next_queue", "prev".
11418 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
11419 (add_sched_insns_for_speculation): Likewise for local "insn".
11420
11421 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11422
11423 * config/avr/avr-protos.h (output_movqi): Strengthen first param
11424 from rtx to rtx_insn *.
11425 (output_movhi): Likewise.
11426 (output_movsisf): Likewise.
11427 (avr_out_tstsi): Likewise.
11428 (avr_out_tsthi): Likewise.
11429 (avr_out_tstpsi): Likewise.
11430 (avr_out_compare): Likewise.
11431 (avr_out_compare64): Likewise.
11432 (avr_out_movpsi): Likewise.
11433 (ashlqi3_out): Likewise.
11434 (ashlhi3_out): Likewise.
11435 (ashlsi3_out): Likewise.
11436 (ashrqi3_out): Likewise.
11437 (ashrhi3_out): Likewise.
11438 (ashrsi3_out): Likewise.
11439 (lshrqi3_out): Likewise.
11440 (lshrhi3_out): Likewise.
11441 (lshrsi3_out): Likewise.
11442 (avr_out_ashlpsi3): Likewise.
11443 (avr_out_ashrpsi3): Likewise.
11444 (avr_out_lshrpsi3): Likewise.
11445 (avr_out_fract): Likewise.
11446 (avr_out_sbxx_branch): Likewise.
11447 (avr_out_round): Likewise.
11448 (avr_out_xload): Likewise.
11449 (avr_out_movmem): Likewise.
11450 (adjust_insn_length): Likewise.
11451 (avr_out_lpm): Likewise.
11452 (reg_unused_after): Likewise.
11453 (_reg_unused_after): Likewise.
11454 (avr_jump_mode): Likewise for second param.
11455 (jump_over_one_insn): Likewise for first param.
11456 (avr_final_prescan_insn): Likewise.
11457 (out_shift_with_cnt): Likewise for second param.
11458
11459 * config/avr/avr.c (get_sequence_length): Likewise for param
11460 "insns" and local "insn".
11461 (emit_push_byte): Likewise for local "insn".
11462 (emit_push_sfr): Likewise.
11463 (avr_prologue_setup_frame): Likewise for locals "insn",
11464 "fp_plus_insns", "sp_plus_insns".
11465 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
11466 "sp_plus_insns".
11467 (avr_jump_mode): Likewise for param "insn".
11468 (avr_final_prescan_insn): Likewise.
11469 (avr_find_unused_d_reg): Likewise.
11470 (avr_out_lpm_no_lpmx): Likewise.
11471 (avr_out_lpm): Likewise.
11472 (avr_out_xload): Likewise.
11473 (output_movqi): Likewise.
11474 (output_movhi): Likewise.
11475 (out_movqi_r_mr): Likewise.
11476 (out_movhi_r_mr): Likewise.
11477 (out_movsi_r_mr): Likewise.
11478 (out_movsi_mr_r): Likewise.
11479 (output_movsisf): Likewise.
11480 (avr_out_load_psi): Likewise.
11481 (avr_out_store_psi): Likewise.
11482 (avr_out_movpsi): Likewise.
11483 (out_movqi_mr_r): Likewise.
11484 (avr_out_movhi_mr_r_xmega): Likewise.
11485 (out_movhi_mr_r): Likewise.
11486 (compare_condition): Likewise for param "insn" and local "next".
11487 (compare_sign_p): Likewise for param "insn".
11488 (compare_diff_p): Likewise.
11489 (compare_eq_p): Likewise.
11490 (avr_out_compare): Likewise.
11491 (avr_out_compare64): Likewise.
11492 (avr_out_tsthi): Likewise.
11493 (avr_out_tstpsi): Likewise.
11494 (avr_out_tstsi): Likewise.
11495 (out_shift_with_cnt): Likewise.
11496 (ashlqi3_out): Likewise.
11497 (ashlhi3_out): Likewise.
11498 (avr_out_ashlpsi3): Likewise.
11499 (ashlsi3_out): Likewise.
11500 (ashrqi3_out): Likewise.
11501 (ashrhi3_out): Likewise.
11502 (avr_out_ashrpsi3): Likewise.
11503 (ashrsi3_out): Likewise.
11504 (lshrqi3_out): Likewise.
11505 (lshrhi3_out): Likewise.
11506 (avr_out_lshrpsi3): Likewise.
11507 (lshrsi3_out): Likewise.
11508 (avr_out_fract): Likewise.
11509 (avr_out_round): Likewise.
11510 (avr_adjust_insn_length): Likewise.
11511 (reg_unused_after): Likewise.
11512 (_reg_unused_after): Likewise.
11513 (avr_compare_pattern): Likewise.
11514 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
11515 and locals "branch1", "branch2", "insn2", "jump".
11516 (avr_reorg): Likewise for local "insn".
11517 (avr_2word_insn_p): Likewise for param "insn".
11518 (jump_over_one_insn_p): Likewise.
11519 (avr_out_sbxx_branch): Likewise.
11520 (avr_out_movmem): Likewise.
11521
11522 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11523
11524 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
11525 param from rtx to rtx_insn *.
11526 (thumb1_final_prescan_insn): Likewise.
11527 (thumb2_final_prescan_insn): Likewise.
11528
11529 * config/arm/arm.c (emit_set_insn): Strengthen return type from
11530 rtx to rtx_insn *.
11531 (struct minipool_node): Likewise for field "insn".
11532 (dump_minipool): Likewise for param "scan".
11533 (create_fix_barrier): Likewise for local "from". Strengthen local
11534 "label" from rtx to rtx_code_label *.
11535 (push_minipool_barrier): Strengthen param "insn" from rtx to
11536 rtx_insn *.
11537 (push_minipool_fix): Likewise.
11538 (note_invalid_constants): Likewise.
11539 (thumb2_reorg): Likewise for local "insn".
11540 (arm_reorg): Likewise.
11541 (thumb2_final_prescan_insn): Likewise for param
11542 "insn" and local "first_insn".
11543 (arm_final_prescan_insn): Likewise for param "insn" and locals
11544 "start_insn", "this_insn".
11545 (arm_debugger_arg_offset): Likewise for param "insn".
11546 (thumb1_emit_multi_reg_push): Likewise for return type and local
11547 "insn".
11548 (thumb1_final_prescan_insn): Likewise for param "insn".
11549 (thumb_far_jump_used_p): Likewise for local "insn".
11550 (thumb1_expand_prologue): Likewise.
11551 (arm_expand_epilogue_apcs_frame): Likewise.
11552 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
11553 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
11554 from rtx to rtx_code_label *.
11555 (arm_split_atomic_op): Likewise for local "label".
11556 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
11557
11558 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11559
11560 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11561 first param from rtx to rtx_insn *.
11562 (arc_verify_short): Likewise.
11563 (arc_short_long): Likewise.
11564 (arc_need_delay): Likewise.
11565
11566 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11567 "target_insn".
11568 (arc_ccfsm_advance): Likewise for param "insn" and locals
11569 "start_insn", "this_insn".
11570 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11571 (arc_ccfsm_post_advance): Likewise for param "insn".
11572 (arc_next_active_insn): Likewise for return type and param "insn".
11573 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
11574 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11575 (output_short_suffix): Likewise for local "insn".
11576 (arc_final_prescan_insn): Likewise for param "insn". Remove
11577 now-redundant checked cast.
11578 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11579 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11580 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
11581 for use where lc_set became an insn.
11582 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11583 rtx to rtx_insn *.
11584 (arc_get_insn_variants): Likewise for local "prev".
11585 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11586 "next".
11587 (arc_predicate_delay_insns): Likewise for local "insn".
11588 (arc_pad_return): Likewise for local "prev". For now, add a
11589 checked cast when extracting the insn from "final_sequence".
11590 (arc_short_long): Likewise for param "insn".
11591 (arc_need_delay): Likewise for param "insn" and local "next".
11592 (arc_label_align): Likewise for locals "prev", "next".
11593
11594 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11595
11596 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11597 "insn" from rtx to rtx_insn *.
11598 (alpha_gp_save_rtx): Likewise for local "seq".
11599 (alpha_instantiate_decls): Likewise for local "top".
11600 (get_some_local_dynamic_name): Likewise for local "insn".
11601 (alpha_does_function_need_gp): Likewise.
11602 (set_frame_related_p): Likewise for return type and for locals
11603 "seq" and "insn".
11604 (emit_frame_store_1): Likewise for local "insn".
11605 (alpha_expand_prologue): Likewise for locals "insn", "seq".
11606 (alpha_end_function): Likewise for local "insn".
11607 (alpha_output_mi_thunk_osf): Likewise.
11608 (alphaev4_insn_pipe): Likewise for param "insn".
11609 (alphaev5_insn_pipe): Likewise.
11610 (alphaev4_next_group): Likewise for return type and param 1
11611 "insn".
11612 (alphaev5_next_group): Likewise.
11613 (alpha_align_insns_1): Likewise for return type and param 1 of
11614 callback param "next_group", and for locals "i", "next", "prev",
11615 "where", "where2", "insn".
11616
11617 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
11618
11619 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11620 rather than modifying the stmt.
11621
11622 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11623
11624 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11625 cgraph_state conversion.
11626
11627 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11628
11629 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11630 Strengthen local "insns" from rtx to rtx_insn *.
11631 (aarch64_set_frame_expr): Likewise for local "insn".
11632 (aarch64_save_or_restore_fprs): Likewise.
11633 (aarch64_save_or_restore_callee_save_registers): Likewise.
11634 (aarch64_expand_prologue): Likewise.
11635 (aarch64_expand_epilogue): Likewise.
11636 (aarch64_output_mi_thunk): Likewise.
11637 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11638 "label2" from rtx to rtx_code_label *.
11639 (aarch64_split_atomic_op): Likewise for local "label".
11640
11641 2014-08-25 Martin Liska <mliska@suse.cz>
11642
11643 * cgraph.h (symtab_node):
11644 (bool needed_p (void)): created from decide_is_symbol_needed
11645 (bool referred_to_p (void)): created from referred_to_p
11646 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11647 * cgraph.h (cgraph_node):
11648 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11649 (void expand (void)): created from expand_function
11650 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11651 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11652 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11653 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11654 * cgraph.h (varpool_node):
11655 (static void add (tree decl): created from varpool_add_new_variable
11656 * cgraph.h (cgraph_edge):
11657 void remove (void);
11658 (void remove_caller (void)): created from cgraph_edge_remove_caller
11659 (void remove_callee (void)): created from cgraph_edge_remove_callee
11660 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
11661 created from cgraph_set_call_stmt
11662 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
11663 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
11664 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
11665 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
11666 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
11667 created from cgraph_speculative_call_info
11668 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
11669 int freq_scale, bool update_original)): created from cgraph_clone_edge
11670 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
11671 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
11672 (bool recursive_p (void)): created from cgraph_edge_recursive_p
11673 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11674 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11675 (static void rebuild_references (void)): created from cgraph_rebuild_references
11676 * cgraph.h (symbol_table):
11677 (create_reference): renamed from add_reference
11678 (maybe_create_reference): renamed from maybe_add_reference
11679 (void register_symbol (symtab_node *node)): new function
11680 (void clear_asm_symbols (void)): new function
11681 (void unregister (symtab_node *node)): new function
11682 (void release_symbol (cgraph_node *node, int uid)): new function
11683 (cgraph_node * allocate_cgraph_symbol (void)): new function
11684 (void initialize (void)): created from cgraph_init
11685 (symtab_node *first_symbol (void)):new function
11686 (asm_node *first_asm_symbol (void)):new function
11687 (symtab_node *first_defined_symbol (void)):new function
11688 (varpool_node *first_variable (void)):new function
11689 (varpool_node *next_variable (varpool_node *node)):new function
11690 (varpool_node *first_static_initializer (void)):new function
11691 (varpool_node *next_static_initializer (varpool_node *node)):new function
11692 (varpool_node *first_defined_variable (void)):new function
11693 (varpool_node *next_defined_variable (varpool_node *node)):new function
11694 (cgraph_node *first_defined_function (void)):new function
11695 (cgraph_node *next_defined_function (cgraph_node *node)):new function
11696 (cgraph_node *first_function (void)):new function
11697 (cgraph_node *next_function (cgraph_node *node)):new function
11698 (cgraph_node *first_function_with_gimple_body (void)):new function
11699 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11700 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11701 created from symtab_remove_unreachable_nodes
11702 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
11703 (void process_new_functions (void)): created from cgraph_process_new_functions
11704 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
11705 (bool output_variables (void)): created from varpool_node::output_variables
11706 (void output_asm_statements (void)): created from output_asm_statements
11707 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
11708 (void compile (void)): created from compile
11709 (void output_weakrefs (void)): created from output_weakrefs
11710 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
11711 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
11712 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
11713 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
11714 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
11715 created from cgraph_next_function_with_gimple_body
11716 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
11717 created from cgraph_remove_edge_removal_hook
11718 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
11719 created from cgraph_add_node_removal_hook
11720 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
11721 created from cgraph_remove_node_removal_hook
11722 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
11723 created from varpool_add_node_removal_hook
11724 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
11725 created from varpool_remove_node_removal_hook
11726 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
11727 created from cgraph_add_function_insertion_hook
11728 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
11729 created from cgraph_remove_function_insertion_hook
11730 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
11731 created from varpool_add_variable_insertion_hook
11732 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
11733 created from varpool_remove_variable_insertion_hook
11734 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
11735 created from cgraph_add_edge_duplication_hook
11736 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
11737 created from cgraph_remove_edge_duplication_hook
11738 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
11739 created from cgraph_add_node_duplication_hook
11740 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
11741 created from cgraph_remove_node_duplication_hook
11742 (void call_edge_removal_hooks (cgraph_edge *e)):
11743 created from cgraph_call_edge_removal_hooks
11744 (void call_cgraph_insertion_hooks (cgraph_node *node)):
11745 created from call_function_insertion_hooks
11746 (void call_cgraph_removal_hooks (cgraph_node *node)):
11747 created from cgraph_call_node_removal_hooks
11748 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
11749 created from cgraph_node::call_duplication_hooks
11750 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
11751 created from cgraph_call_edge_duplication_hooks
11752 (void call_varpool_removal_hooks (varpool_node *node)):
11753 created from varpool_call_node_removal_hooks
11754 (void call_varpool_insertion_hooks (varpool_node *node)):
11755 created from varpool_call_variable_insertion_hooks
11756 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
11757 created from insert_to_assembler_name_hash
11758 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
11759 created from unlink_from_assembler_name_hash
11760 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
11761 created from symtab_prevail_in_asm_name_hash
11762 (void symtab_initialize_asm_name_hash (void)):
11763 created from symtab_initialize_asm_name_hash
11764 (void change_decl_assembler_name (tree decl, tree name)):
11765 created from change_decl_assembler_name
11766 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
11767 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
11768 created from decl_assembler_name_hash
11769 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
11770 created from decl_assembler_name_equal
11771 (static hashval_t hash_node_by_assembler_name (const void *p)):
11772 created from hash_node_by_assembler_name
11773 (static int eq_assembler_name (const void *p1, const void *p2)):
11774 created from eq_assembler_name
11775
11776 2014-08-25 Marek Polacek <polacek@redhat.com>
11777
11778 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
11779
11780 2014-08-25 Petr Murzin <petr.murzin@intel.com>
11781
11782 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
11783 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
11784 SWI1248_AVX512BW mode iterator.
11785
11786 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
11787
11788 PR target/62111
11789 * config/sh/predicates.md (general_extend_operand): Disable
11790 TRUNCATE before reload completes.
11791
11792 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
11793
11794 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
11795
11796 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
11797
11798 PR target/61996
11799 * config/sh/sh.opt (musermode): Allow negative form.
11800 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
11801 targets that don't support it.
11802 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
11803 Document -mno-usermode option.
11804
11805 2014-08-24 Kito Cheng <kito@0xlab.org>
11806
11807 * system.h (CALLER_SAVE_PROFITABLE): Poison.
11808 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
11809 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
11810 * doc/tm.texi: Regenerate.
11811
11812 2014-08-24 Kito Cheng <kito@0xlab.org>
11813
11814 * ira.c: Fix typo in comment.
11815
11816 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
11817
11818 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
11819 Deprecate c++1y. Change language to reflect greater confidence in C++14.
11820
11821 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
11822
11823 PR target/62038
11824 * config/pa/pa.c (pa_output_function_epilogue): Don't set
11825 last_address when the current function is a thunk.
11826 (pa_asm_output_mi_thunk): When we don't have named sections or they
11827 are not being used, check that thunk can reach the stub table with a
11828 short branch.
11829
11830 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11831
11832 * web.c (union_match_dups): Strengthen param "insn" from rtx to
11833 rtx_insn *.
11834 (pass_web::execute): Likewise for local "insn".
11835
11836 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11837
11838 * var-tracking.c (struct micro_operation_def): Strengthen field
11839 "insn" from rtx to rtx_insn *.
11840 (struct emit_note_data_def): Likewise.
11841 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
11842 (vt_stack_adjustments): Likewise for local "insn".
11843 (adjust_insn): Likewise for param "insn".
11844 (val_store): Likewise.
11845 (val_resolve): Likewise.
11846 (struct count_use_info): Likewise for field "insn".
11847 (log_op_type): Likewise for param "insn".
11848 (reverse_op): Likewise.
11849 (prepare_call_arguments): Likewise.
11850 (add_with_sets): The initial param takes an insn, but we can't
11851 yet strengthen it from rtx to rtx_insn * since it's used as a
11852 cselib_record_sets_hook callback. For now rename initial param
11853 from "insn" to "uncast_insn", and introduce a local "insn" of
11854 the stronger rtx_insn * type, with a checked cast.
11855 (compute_bb_dataflow): Strengthen local "insn" from rtx to
11856 rtx_insn *.
11857 (emit_note_insn_var_location): Likewise.
11858 (emit_notes_for_changes): Likewise.
11859 (emit_notes_for_differences): Likewise.
11860 (next_non_note_insn_var_location): Likewise for return type and
11861 for param "insn".
11862 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
11863 (vt_initialize): Likewise for local "insn".
11864 (delete_debug_insns): Likewise for locals "insn" and "next".
11865
11866 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11867
11868 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
11869 rtx_insn *.
11870 (mark_constant_pool): Likewise for local "insn".
11871
11872 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11873
11874 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
11875 rtx to rtx_insn *.
11876 (dead_debug_promote_uses): Likewise.
11877 (dead_debug_insert_temp): Likewise.
11878
11879 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11880
11881 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
11882 from const_rtx to const rtx_insn *.
11883 (store_killed_after): Likewise. Strengthen locals "last", "act"
11884 from rtx to rtx_insn *.
11885 (store_killed_before): Strengthen param "insn" from const_rtx to
11886 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
11887 (find_moveable_store): Strengthen param "insn" from rtx to
11888 rtx_insn *.
11889 (compute_store_table): Likewise for local "insn".
11890 (insert_insn_start_basic_block): Likewise for param "insn" and
11891 locals "prev", "before", "insn".
11892 (insert_store): For now, add a checked cast to rtx_insn * on the
11893 result of gen_move_insn.
11894 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
11895 to rtx_insn *.
11896 (replace_store_insn): Likewise. For now, add a checked cast to
11897 rtx_insn * on the result of gen_move_insn.
11898
11899 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11900
11901 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
11902 rtx_insn *.
11903 (expand_sjlj_dispatch_table): Likewise.
11904
11905 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11906
11907 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
11908 "insn" from rtx to rtx_insn *.
11909
11910 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11911
11912 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
11913 "insn" from rtx to rtx_insn *.
11914 (dup_block_and_redirect): Likewise for param 3 "before".
11915
11916 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
11917 from rtx to rtx_insn *.
11918 (move_insn_for_shrink_wrap): Likewise.
11919 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
11920 (dup_block_and_redirect): Likewise for param "before" and local
11921 "insn".
11922 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
11923 "end".
11924 (convert_to_simple_return): Likewise for local "start".
11925
11926 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
11927 Strengthen local "insn" from rtx to rtx_insn *, for use when
11928 invoking requires_stack_frame_p.
11929
11930 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11931
11932 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
11933 rtx_insn *.
11934 (speculate_expr): Likewise for locals "orig_insn_rtx",
11935 "spec_insn_rtx".
11936 (eq_transformed_insns): Likewise for locals "i1", "i2".
11937 (check_for_new_jump): Likewise for return type and local "end".
11938 (find_new_jump): Likewise for return type and local "jump".
11939 (sel_split_edge): Likewise for local "jump".
11940 (sel_create_recovery_block): Likewise.
11941 (sel_redirect_edge_and_branch_force): Likewise.
11942 (sel_redirect_edge_and_branch): Likewise.
11943
11944 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11945
11946 * sel-sched.c (substitute_reg_in_expr): Strengthen local
11947 "new_insn" from rtx to rtx_insn *.
11948 (create_insn_rtx_with_rhs): Likewise for return type and for local
11949 "insn_rtx".
11950 (create_insn_rtx_with_lhs): Likewise.
11951 (create_speculation_check): Likewise for local "insn_rtx".
11952 (implicit_clobber_conflict_p): Likewise for local "insn".
11953 (get_expr_cost): Likewise.
11954 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
11955 (move_cond_jump): Likewise for locals "next", "prev", "link",
11956 "head", "from", "to".
11957
11958 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11959
11960 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
11961 "next" from rtx to rtx_insn *.
11962 (find_conditional_protection): Likewise for local "next".
11963 (is_conditionally_protected): Likewise for local "insn1".
11964 (is_pfree): Likewise for locals "insn1", "insn2".
11965
11966 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11967
11968 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
11969 from rtx to rtx_insn *.
11970
11971 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
11972 locals "insn1", "insn2" from rtx to rtx_insn *.
11973 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
11974 locals "insn", "prev", "last_jump", "next_tail".
11975 (schedule_ebb): Likewise for params "head", "tail".
11976 (schedule_ebbs): Likewise for locals "tail", "head".
11977
11978 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
11979 to rtx_insn on "last_insn" in one of the invocations of
11980 schedule_ebb.
11981
11982 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11983
11984 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
11985 "elem", "insn" from rtx to rtx_insn *.
11986 (change_spec_dep_to_hard): Likewise.
11987 (get_back_and_forw_lists): Likewise for local "con".
11988 (sd_add_dep): Likewise for locals "elem", "insn".
11989 (sd_resolve_dep): Likewise for locals "pro", "con".
11990 (sd_unresolve_dep): Likewise.
11991 (sd_delete_dep): Likewise.
11992 (chain_to_prev_insn): Likewise for local "pro".
11993 (find_inc): Likewise for locals "pro", "con".
11994
11995 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11996
11997 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
11998 to rtx_insn *.
11999 (reg_set_between_p): Strengthen local "insn" from const_rtx to
12000 const rtx_insn *.
12001 (modified_between_p): Strengthen local "insn" from rtx to
12002 rtx_insn *.
12003 (remove_reg_equal_equiv_notes_for_regno): Likewise.
12004 (keep_with_call_p): Strengthen local "i2" from const_rtx to
12005 const rtx_insn *.
12006
12007 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12008
12009 * resource.c (next_insn_no_annul): Strengthen local "next" from
12010 rtx to rtx_insn *.
12011 (mark_referenced_resources): Likewise for local "insn".
12012
12013 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12014
12015 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12016 to rtx_insn *.
12017 (find_reloads): Likewise for param 1.
12018 (subst_reloads): Likewise for sole param.
12019 (find_equiv_reg): Likwise for param 2.
12020 (regno_clobbered_p): Likwise for param 2.
12021 (reload): Likewise for param 1.
12022
12023 * caller-save.c (save_call_clobbered_regs): Strengthen local
12024 "insn" from rtx to rtx_insn *.
12025 (insert_one_insn): Likewise for local "insn".
12026
12027 * reload.c (this_insn): Likewise for this global.
12028 (find_reloads): Likewise for param "insn".
12029 (find_reloads_toplev): Likewise.
12030 (find_reloads_address): Likewise.
12031 (subst_reg_equivs): Likewise.
12032 (update_auto_inc_notes): Likewise.
12033 (find_reloads_address_1): Likewise.
12034 (find_reloads_subreg_address): Likewise.
12035 (subst_reloads): Likewise.
12036 (find_equiv_reg): Likewise, also for local "p".
12037 (regno_clobbered_p): Likewise for param "insn".
12038
12039 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12040 array.
12041 (spill_reg_store): Likewise for the elements of this array.
12042 (remove_init_insns): Likewise for local "equiv_insn".
12043 (will_delete_init_insn_p): Likewise for param "insn".
12044 (reload): Likewise for param ""first" and local "insn".
12045 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12046 rtx_insn *.
12047 (calculate_elim_costs_all_insns): Likewise.
12048 (delete_caller_save_insns): Likewise.
12049 (spill_failure): Likewise for param "insn".
12050 (delete_dead_insn): Likewise.
12051 (set_label_offsets): Likewise.
12052 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12053 "prev_insn".
12054 (elimination_costs_in_insn): Likewise for param "insn".
12055 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12056 when referring to an insn.
12057 (set_initial_label_offsets): Likewise.
12058 (set_offsets_for_label): Strengthen param "insn" from rtx to
12059 rtx_insn *.
12060 (init_eliminable_invariants): Likewise for param "first" and local
12061 "insn".
12062 (fixup_eh_region_note): Likewise for param "insn".
12063 (reload_as_needed): Likewise for locals "prev", "insn",
12064 "old_next", "old_prev", "next".
12065 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12066 "last".
12067 (reload_inheritance_insn): Strengthen elements of this array from
12068 rtx to rtx_insn *.
12069 (failed_reload): Likewise for param "insn".
12070 (choose_reload_regs): Likewise for local "insn". Replace use of
12071 NULL_RTX with NULL when referring to an insn.
12072 (input_reload_insns): Strengthen elements of this array from rtx
12073 to rtx_insn *.
12074 (other_input_address_reload_insns): Likewise for this global.
12075 (other_input_reload_insns): Likewise for this global.
12076 (input_address_reload_insns): Likwise for the elements of this
12077 array.
12078 (inpaddr_address_reload_insns): Likwise for the elements of this
12079 array.
12080 (output_reload_insns): Likewise for the elements of this array.
12081 (output_address_reload_insns): Likewise for the elements of this
12082 array.
12083 (outaddr_address_reload_insns): Likewise for the elements of this
12084 array.
12085 (operand_reload_insns): Likewise for this global.
12086 (other_operand_reload_insns): Likewise for this global.
12087 (other_output_reload_insns): Likewise for the elements of this
12088 array.
12089 (new_spill_reg_store): Likewise for the elements of this
12090 array.
12091 (emit_input_reload_insns): Likewise for locals "insn", "temp".
12092 Strengthen local "where" from rtx * to rtx_insn **.
12093 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12094 from rtx to rtx_insn *.
12095 (do_input_reload): Likewise for local "insn".
12096 (do_output_reload): Likewise for local "insn".
12097 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12098 (emit_insn_if_valid_for_reload): Likewise for return type and local
12099 "last". Add checked cast to rtx_insn when returning "insn" since
12100 this has been through emit_insn.
12101 (gen_reload): Strengthen return type and locals "last", "insn", "set"
12102 from rtx to rtx_insn *. Add checked cast to rtx_insn when
12103 returning "insn" since it's been through
12104 emit_insn_if_valid_for_reload at this point.
12105 (delete_output_reload): Strengthen param "insn" and locals
12106 "output_reload_insn", "i2" from rtx to rtx_insn *.
12107 (delete_address_reloads): Likewise for params "dead_insn",
12108 "current_insn" and locals "prev", "next".
12109 (delete_address_reloads_1): Likewise for params "dead_insn",
12110 "current_insn" and locals "prev", "i2".
12111 (inc_for_reload): Likewise for locals "last", "add_insn".
12112 (add_auto_inc_notes): Strengthen param "insn" from rtx to
12113 rtx_insn *.
12114
12115 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12116 param of this duplicate of the prototype from reload.h
12117
12118 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12119
12120 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12121 rtx to rtx_insn *.
12122 (regstat_bb_compute_calls_crossed): Likewise.
12123
12124 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12125
12126 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12127 to rtx_insn *.
12128 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12129 with an insn.
12130 (regrename_analyze): Strengthen local "insn" from rtx to
12131 rtx_insn *.
12132 (scan_rtx_reg): Likewise for param "insn".
12133 (scan_rtx_address): Likewise.
12134 (scan_rtx): Likewise.
12135 (restore_operands): Likewise.
12136 (record_out_operands): Likewise.
12137 (build_def_use): Likewise for local "insn". Replace use of
12138 NULL_RTX with NULL when dealing with an insn.
12139
12140 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12141
12142 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12143 * reginfo.c (reg_scan): Likewise, also for local "insn".
12144 (reg_scan_mark_refs): Likewise for param "insn".
12145 (init_subregs_of_mode): Likewise for local "insn".
12146
12147 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12148
12149 * regcprop.c (struct queued_debug_insn_change): Strengthen field
12150 "insn" from rtx to rtx_insn *.
12151 (replace_oldest_value_reg): Likewise for param "insn".
12152 (replace_oldest_value_addr): Likewise.
12153 (replace_oldest_value_mem): Likewise.
12154 (apply_debug_insn_changes): Likewise for local "last_insn".
12155 (copyprop_hardreg_forward_1): Likewise for local "insn".
12156
12157 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12158
12159 * reg-stack.c (next_flags_user): Strengthen return type and param
12160 "insn" from rtx to rtx_insn *.
12161 (straighten_stack): Likewise for param "insn".
12162 (check_asm_stack_operands): Likewise.
12163 (remove_regno_note): Likewise.
12164 (emit_pop_insn): Likewise for return type, param "insn", local
12165 "pop_insn".
12166 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
12167 "limit" from rtx to rtx_insn *.
12168 (swap_to_top): Likewise for param "insn".
12169 (move_for_stack_reg): Likewise.
12170 (move_nan_for_stack_reg): Likewise.
12171 (swap_rtx_condition): Likewise.
12172 (compare_for_stack_reg): Likewise.
12173 (subst_all_stack_regs_in_debug_insn): Likewise.
12174 (subst_stack_regs_pat): Likewise, and local "insn2".
12175 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
12176 rtx_insn *.
12177 (subst_stack_regs): Likewise.
12178 (change_stack): Likewise.
12179 (convert_regs_1): Likewise for locals "insn", "next".
12180
12181 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12182
12183 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
12184 rtx_insn *.
12185 (combine_set_extension): Likewise for param "curr_insn".
12186 (transform_ifelse): Likewise for param "def_insn".
12187 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
12188 from vec<rtx> * to vec<rtx_insn *> *.
12189 (is_cond_copy_insn): Likewise for param "insn".
12190 (struct ext_state): Strengthen the four vec fields from vec<rtx>
12191 to vec<rtx_insn *>.
12192 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
12193 local "def_insn" from rtx to rtx_insn *.
12194 (get_sub_rtx): Likewise for param "def_insn".
12195 (merge_def_and_ext): Likewise.
12196 (combine_reaching_defs): Likewise.
12197 (add_removable_extension): Likewise for param "insn".
12198 (find_removable_extensions): Likewise for local "insn".
12199 (find_and_remove_re): Likewise for locals "curr_insn" and
12200 "def_insn". Strengthen locals "reinsn_del_list" and
12201 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
12202
12203 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12204
12205 * recog.c (split_insn): Strengthen param "insn" and locals
12206 "first", "last" from rtx to rtx_insn *.
12207 (split_all_insns): Likewise for locals "insn", "next".
12208 (split_all_insns_noflow): Likewise.
12209
12210 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12211
12212 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12213 const rtx_insn *.
12214 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12215 (debug_rtx_find): Likewise for param 1 "x".
12216
12217 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12218 const_rtx to const rtx_insn *. Likewise for local "insn".
12219 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12220 (debug_rtx_find): Likewise for param 1 "x".
12221 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12222 from const_rtx to const rtx_insn * within the appropriate cases of
12223 the switch statement.
12224
12225 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12226 Strengthen local "insns" from rtx to rtx_insn * since this is
12227 passed to a call to debug_rtx_list.
12228
12229 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12230
12231 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12232 to rtx_insn *.
12233
12234 * function.c (stack_protect_epilogue): Add checked cast to
12235 rtx_insn for now when invoking predict_insn_def.
12236
12237 * predict.c (predict_insn): Strengthen param "insn" from rtx to
12238 rtx_insn *.
12239 (predict_insn_def): Likewise.
12240 (rtl_predict_edge): Likewise for local "last_insn".
12241 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12242 const rtx_insn *.
12243 (combine_predictions_for_insn): Strengthen param "insn" from rtx
12244 to rtx_insn *.
12245 (bb_estimate_probability_locally): Likewise for local "last_insn".
12246 (expensive_function_p): Likewise for local "insn".
12247
12248 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12249 local "jmp", since this is used when invoking predict_insn_def.
12250
12251 2014-08-22 Marek Polacek <polacek@redhat.com>
12252
12253 PR c++/62199
12254 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12255
12256 2014-08-22 Marek Polacek <polacek@redhat.com>
12257
12258 PR c/61271
12259 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12260 a comparison in parens.
12261 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12262 in parens.
12263
12264 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12265
12266 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12267 rtx_insn *.
12268
12269 * cprop.c (fis_get_condition): Likewise.
12270
12271 * postreload.c (reload_cse_regs): Likewise for param "first".
12272 (reload_cse_simplify): Likewise for param "insn".
12273 (reload_cse_regs_1): Likewise for local "insn".
12274 (reload_cse_simplify_set): Likewise for param "insn".
12275 (reload_cse_simplify_operands): Likewise.
12276 (struct reg_use): Likewise for field "insn".
12277 (reload_combine_purge_insn_uses): Likewise for param "insn".
12278 (fixup_debug_insns): Likewise for params "from", "to" and local
12279 "insn".
12280 (try_replace_in_use): Likewise for local "use_insn".
12281 (reload_combine_recognize_const_pattern): Likewise for param
12282 "insn" and locals "add_moved_after_insn", "use_insn".
12283 (reload_combine_recognize_pattern): Likewise for param "insn" and
12284 local "prev".
12285 (reload_combine): Likewise for locals "insn", "prev".
12286 (reload_combine_note_use): Likewise for param "insn".
12287 (move2add_use_add2_insn): Likewise.
12288 (move2add_use_add3_insn): Likewise.
12289 (reload_cse_move2add): Likewise, also for local "next".
12290 (move2add_note_store): Likewise for local "insn".
12291
12292 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12293
12294 * postreload-gcse.c (struct occr): Strengthen field "insn" from
12295 rtx to rtx_insn *.
12296 (struct unoccr): Likewise.
12297 (struct modifies_mem): Likewise.
12298 (alloc_mem): Likewise for local "insn".
12299 (insert_expr_in_table): Likewise for param "insn".
12300 (dump_expr_hash_table_entry): Likewise for local "insn".
12301 (oprs_unchanged_p): Likewise for param "insn".
12302 (load_killed_in_block_p): Likewise for local "setter".
12303 (record_last_reg_set_info): Likewise for param "insn".
12304 (record_last_reg_set_info_regno): Likewise.
12305 (record_last_mem_set_info): Likewise.
12306 (record_last_set_info): Likewise for local "last_set_insn".
12307 (record_opr_changes): Likewise for param "insn".
12308 (hash_scan_set): Likewise.
12309 (compute_hash_table): Likewise for local "insn".
12310 (get_avail_load_store_reg): Likewise for param "insn".
12311 (eliminate_partially_redundant_load): Likewise, also for locals
12312 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
12313 RTX for insns.
12314 (eliminate_partially_redundant_loads): Likewise for local "insn".
12315
12316 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12317
12318 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
12319 rtx to rtx_insn *.
12320 (expand_binop): Likewise for locals "entry_last", "last", "insns"
12321 (expand_twoval_unop): Likewise for locals entry_last", "last".
12322 (expand_twoval_binop): Likewise.
12323 (expand_twoval_binop_libfunc): Likewise for local "insns".
12324 (widen_leading): Likewise for local "last".
12325 (expand_doubleword_clz): Likewise for local "seq". Strengthen
12326 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
12327 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
12328 (expand_parity): Likewise for locals "last" and "seq".
12329 (expand_ffs): Likewise for local "seq". Strengthen local
12330 "nonzero_label" from rtx to rtx_code_label *.
12331 (expand_absneg_bit): Strengthen local "insns" from rtx to
12332 rtx_insn *.
12333 (expand_unop_direct): Likewise for local "last".
12334 (expand_unop): Likewise for locals "last", "insns".
12335 (expand_abs_nojump): Likewise for local "last".
12336 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
12337 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
12338 rtx_insn *.
12339 (expand_copysign_absneg): Strengthen local "label" from rtx to
12340 rtx_code_label *.
12341 (expand_copysign_bit): Strengthen local "insns" from rtx to
12342 rtx_insn *.
12343 (struct no_conflict_data): Likewise for fields "first", "insn".
12344 (emit_libcall_block_1): Likewise for param "insns" and locals
12345 "next", "last", "insn".
12346 (emit_libcall_block): For now, add a checked cast to rtx_insn *
12347 on "insns" when invoking emit_libcall_block_1. Ultimately we
12348 want to strengthen insns itself.
12349 (prepare_cmp_insn): Strengthen local "last" from rtx to
12350 rtx_insn *.
12351 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
12352 (prepare_float_lib_cmp): Likewise for local "insns".
12353 (emit_conditional_move): Likewise for local "last".
12354 (emit_conditional_add): Likewise.
12355 (have_sub2_insn): Likewise for local "seq".
12356 (expand_float): Likewise for local "insns". Strengthen locals
12357 "label", "neglabel" from rtx to rtx_code_label *.
12358 (expand_fix): Likewise for locals "last", "insn", "insns" (to
12359 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
12360 (expand_fixed_convert): Likewise for local "insns" (to
12361 rtx_insn *).
12362 (expand_sfix_optab): Likewise for local "last".
12363 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
12364 to rtx_code_label *.
12365 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
12366 from rtx to rtx_insn *.
12367 (expand_atomic_fetch_op): Likewise for local "insn".
12368 (maybe_legitimize_operand_same_code): Likewise for local "last".
12369 (maybe_legitimize_operands): Likewise.
12370
12371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12372
12373 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
12374 "insn" from rtx to rtx_insn *.
12375 (ps_rtl_insn): Likewise for return type.
12376 (doloop_register_get): Likewise for params "head", "tail" and
12377 locals "insn", "first_insn_not_to_check".
12378 (schedule_reg_move): Likewise for local "this_insn".
12379 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
12380 of gen_move_insn for now.
12381 (reset_sched_times): Strengthen local "insn" from rtx to
12382 rtx_insn *.
12383 (permute_partial_schedule): Likewise.
12384 (duplicate_insns_of_cycles): Likewise for local "u_insn".
12385 (dump_insn_location): Likewise for param "insn".
12386 (loop_canon_p): Likewise for local "insn".
12387 (sms_schedule): Likewise.
12388 (print_partial_schedule): Likewise.
12389 (ps_has_conflicts): Likewise.
12390
12391 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12392
12393 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
12394 "tailp" from rtx * to rtx_insn **.
12395
12396 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
12397 from rtx to rtx_insn *.
12398 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
12399 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
12400 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
12401 rtx to rtx_insn *.
12402 * modulo-sched.c (const_iteration_count): Strengthen return type
12403 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
12404 use of NULL_RTX with NULL when working with insns.
12405 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
12406 to rtx_insn *.
12407 (sms_schedule): Likewise.
12408 * sched-rgn.c (init_ready_list): Likewise, also for locals
12409 "src_head" and "src_next_tail".
12410 (compute_block_dependences): Likewise.
12411 (free_block_dependencies): Likewise.
12412 (debug_rgn_dependencies): Likewise.
12413 (free_rgn_deps): Likewise.
12414 (compute_priorities): Likewise.
12415 (schedule_region): Likewise.
12416 * sel-sched.c (find_ebb_boundaries): Likewise.
12417
12418 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
12419 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
12420
12421 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12422
12423 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
12424 from rtx to rtx_insn *.
12425 (new_seginfo): Likewise for param "insn".
12426 (create_pre_exit): Likewise for locals "last_insn",
12427 "before_return_copy", "return_copy".
12428 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
12429 "mode_set".
12430
12431 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12432
12433 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
12434 from rtx to rtx_insn *.
12435 (lra_push_insn): Likewise for 1st param.
12436 (lra_push_insn_and_update_insn_regno_info): Likewise.
12437 (lra_pop_insn): Likewise for return type.
12438 (lra_invalidate_insn_data): Likewise for 1st param.
12439 (lra_set_insn_deleted): Likewise.
12440 (lra_delete_dead_insn): Likewise.
12441 (lra_process_new_insns): Likewise for first 3 params.
12442 (lra_set_insn_recog_data): Likewise for 1st param.
12443 (lra_update_insn_recog_data): Likewise.
12444 (lra_set_used_insn_alternative): Likewise.
12445 (lra_invalidate_insn_regno_info): Likewise.
12446 (lra_update_insn_regno_info): Likewise.
12447 (lra_former_scratch_operand_p): Likewise.
12448 (lra_eliminate_regs_1): Likewise.
12449 (lra_get_insn_recog_data): Likewise.
12450
12451 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
12452 rtx to rtx_insn *.
12453
12454 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
12455 "mv1" and "mv2".
12456 (substitute_within_insn): New.
12457 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
12458 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
12459 Replace call to "substitute" with call to substitute_within_insn.
12460
12461 * lra-constraints.c (curr_insn): Strengthen from rtx to
12462 rtx_insn *.
12463 (get_equiv_with_elimination): Likewise for param "insn".
12464 (match_reload): Strengthen params "before" and "after" from rtx *
12465 to rtx_insn **.
12466 (emit_spill_move): Likewise for return type. Add a checked cast
12467 to rtx_insn * on result of gen_move_insn for now.
12468 (check_and_process_move): Likewise for local "before". Replace
12469 NULL_RTX with NULL when referring to insns.
12470 (process_addr_reg): Strengthen params "before" and "after" from
12471 rtx * to rtx_insn **.
12472 (insert_move_for_subreg): Likewise.
12473 (simplify_operand_subreg): Strengthen locals "before" and "after"
12474 from rtx to rtx_insn *.
12475 (process_address_1): Strengthen params "before" and "after" from
12476 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
12477 rtx to rtx_insn *.
12478 (process_address): Strengthen params "before" and "after" from
12479 rtx * to rtx_insn **.
12480 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
12481 (curr_insn_transform): Strengthen locals "before" and "after"
12482 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
12483 to insns.
12484 (loc_equivalence_callback): Update cast of "data", changing
12485 resulting type from rtx to rtx_insn *.
12486 (substitute_pseudo_within_insn): New.
12487 (inherit_reload_reg): Strengthen param "insn" from rtx to
12488 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
12489 NULL when referring to insns. Add a checked cast to rtx_insn *
12490 when using usage_insn to invoke lra_update_insn_regno_info.
12491 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
12492 likewise for locals "restore", "save". Add checked casts to
12493 rtx_insn * when using usage_insn to invoke
12494 lra_update_insn_regno_info and lra_process_new_insns. Replace
12495 NULL_RTX with NULL when referring to insns.
12496 (split_if_necessary): Strengthen param "insn" from rtx to
12497 rtx_insn *.
12498 (update_ebb_live_info): Likewise for params "head", "tail" and local
12499 "prev_insn".
12500 (get_last_insertion_point): Likewise for return type and local "insn".
12501 (get_live_on_other_edges): Likewise for local "last".
12502 (inherit_in_ebb): Likewise for params "head", "tail" and locals
12503 "prev_insn", "next_insn", "restore".
12504 (remove_inheritance_pseudos): Likewise for local "prev_insn".
12505 (undo_optional_reloads): Likewise for local "insn".
12506
12507 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
12508 "insn".
12509 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
12510 insns.
12511 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
12512 rtx_insn *.
12513 (spill_pseudos): Likewise for local "insn".
12514 (init_elimination): Likewise.
12515 (process_insn_for_elimination): Likewise for param "insn".
12516
12517 * lra-lives.c (curr_insn): Likewise.;
12518
12519 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
12520 (remove_pseudos): Likewise for param "insn".
12521 (spill_pseudos): Likewise for local "insn".
12522 (lra_final_code_change): Likewise for locals "insn", "curr".
12523
12524 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
12525 (lra_set_insn_deleted): Likewise.
12526 (lra_delete_dead_insn): Likewise, and for local "prev".
12527 (new_insn_reg): Likewise for param "insn".
12528 (lra_set_insn_recog_data): Likewise.
12529 (lra_update_insn_recog_data): Likewise.
12530 (lra_set_used_insn_alternative): Likewise.
12531 (get_insn_freq): Likewise.
12532 (invalidate_insn_data_regno_info): Likewise.
12533 (lra_invalidate_insn_regno_info): Likewise.
12534 (lra_update_insn_regno_info): Likewise.
12535 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
12536 vec<rtx_insn *>.
12537 (lra_push_insn_1): Strengthen param "insn" from rtx to
12538 rtx_insn *.
12539 (lra_push_insn): Likewise.
12540 (lra_push_insn_and_update_insn_regno_info): Likewise.
12541 (lra_pop_insn): Likewise for return type and local "insn".
12542 (push_insns): Likewise for params "from", "to", and local "insn".
12543 (setup_sp_offset): Likewise for params "from", "last" and locals
12544 "before", "insn".
12545 (lra_process_new_insns): Likewise for params "insn", "before",
12546 "after" and local "last".
12547 (struct sloc): Likewise for field "insn".
12548 (lra_former_scratch_operand_p): Likewise for param "insn".
12549 (remove_scratches): Likewise for locals "insn", "last".
12550 (check_rtl): Likewise for local "insn".
12551 (add_auto_inc_notes): Likewise for param "insn".
12552 (update_inc_notes): Likewise for local "insn".
12553 (lra): Replace NULL_RTX with NULL when referring to insn.
12554
12555 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12556
12557 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12558 to rtx_insn *.
12559 (resolve_reg_notes): Likewise.
12560 (resolve_simple_move): Likewise for return type, param "insn", and
12561 locals "insns", "minsn".
12562 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12563 (resolve_use): Likewise.
12564 (resolve_debug): Likewise.
12565 (find_decomposable_shift_zext): Likewise.
12566 (resolve_shift_zext): Likewise for return type, param "insn", and
12567 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
12568 (decompose_multiword_subregs): Likewise for local "insn",
12569 "orig_insn", "decomposed_shift", "end".
12570
12571 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12572
12573 * basic-block.h (basic_block split_edge_and_insert): Strengthen
12574 param "insns" from rtx to rtx_insn *.
12575
12576 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12577 rtx to rtx_insn *.
12578 (struct iv_to_split): Likewise.
12579 (loop_exit_at_end_p): Likewise for local "insn".
12580 (split_edge_and_insert): Likewise for param "insns".
12581 (compare_and_jump_seq): Likewise for return type, param "cinsn",
12582 and locals "seq", "jump".
12583 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12584 "branch_code"; update invocations of compare_and_jump_seq to
12585 eliminate NULL_RTX in favor of NULL.
12586 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12587 rtx to rtx_insn *.
12588 (reset_debug_uses_in_loop): Likewise.
12589 (analyze_insn_to_expand_var): Likewise for param "insn".
12590 (analyze_iv_to_split_insn): Likewise.
12591 (analyze_insns_in_loop): Likewise for local "insn".
12592 (insert_base_initialization): Likewise for param
12593 "insn" and local "seq".
12594 (split_iv): Likewise for param "insn" and local "seq".
12595 (expand_var_during_unrolling): Likewise for param "insn".
12596 (insert_var_expansion_initialization): Likewise for local "seq".
12597 (combine_var_copies_in_loop_exit): Likewise.
12598 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12599 "insn".
12600 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12601 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12602 "next".
12603
12604 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12605
12606 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12607 rtx_insn *.
12608 (iv_analyze_result): Likewise.
12609 (iv_analyze_expr): Likewise.
12610 (biv_p): Likewise.
12611
12612 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12613 local "def_insn" from rtx to rtx_insn *.
12614 (get_biv_step_1): Likewise for local "insn".
12615 (iv_analyze_expr): Likewise for param "insn".
12616 (iv_analyze_def): Likewise for local "insn".
12617 (iv_analyze_op): Likewise for param "insn".
12618 (iv_analyze): Likewise.
12619 (iv_analyze_result): Likewise.
12620 (biv_p): Likewise.
12621 (suitable_set_for_replacement): Likewise.
12622 (simplify_using_initial_values): Likewise for local "insn".
12623 (iv_number_of_iterations): Likewise for param "insn".
12624 (check_simple_exit): Add checked cast to rtx_insn when invoking
12625 iv_number_of_iterations for now (until get_condition is
12626 strengthened).
12627
12628 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12629 "insn" from rtx to rtx_insn *.
12630 (analyze_insns_in_loop): Likewise for local "insn".
12631
12632 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12633
12634 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12635 to rtx_insn *.
12636 (struct invariant): Likewise.
12637 (hash_invariant_expr_1): Likewise for param "insn".
12638 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12639 (find_exits): Likewise for local "insn".
12640 (create_new_invariant): Likewise for param "insn".
12641 (check_dependencies): Likewise.
12642 (find_invariant_insn): Likewise.
12643 (record_uses): Likewise.
12644 (find_invariants_insn): Likewise.
12645 (find_invariants_bb): Likewise for local "insn".
12646 (get_pressure_class_and_nregs): Likewise for param "insn".
12647 (calculate_loop_reg_pressure): Likewise for local "insn".
12648
12649 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12650
12651 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12652 to rtx_insn *.
12653 (add_test): Likewise for locals "seq", "jump".
12654 (doloop_modify): Likewise for locals "sequence", "jump_insn".
12655
12656 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12657
12658 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
12659 rtx_insn *.
12660 (rebuild_jump_labels_chain): Likewise for param "chain".
12661
12662 * cfgexpand.c (pass_expand::execute): Add checked cast to
12663 rtx_insn * when calling rebuild_jump_labels_chain in region where
12664 we know e->insns.r is non-NULL.
12665
12666 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
12667 rtx_insn *.
12668 (rebuild_jump_labels): Likewise.
12669 (rebuild_jump_labels_chain): Likewise for param "chain".
12670 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
12671 (init_label_info): Likewise for param "f".
12672 (maybe_propagate_label_ref): Likewise for params "jump_insn",
12673 "prev_nonjump_insn".
12674 (mark_all_labels): Likewise for param "f" and locals "insn",
12675 "prev_nonjump_insn".
12676
12677 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12678
12679 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12680 from rtx to rtx_insn *insn.
12681 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12682 (ira_add_allocno_copy): Likewise.
12683 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12684 rtx to rtx_insn *.
12685 (ira_create_copy): Likewise.
12686 (ira_add_allocno_copy): Likewise.
12687 (create_bb_allocnos): Likewise for local "insn".
12688 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12689 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12690 process_regs_for_copy for rtx_insn * param.
12691 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12692 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
12693 process_regs_for_copy for rtx_insn * param.
12694 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12695 * ira-costs.c (record_reg_classes): Likewise for param "insn".
12696 (record_operand_costs): Likewise.
12697 (scan_one_insn): Likewise for return type, and for param "insn".
12698 (process_bb_for_costs): Likewise for local "insn".
12699 (process_bb_node_for_hard_reg_moves): Likewise.
12700 * ira-emit.c (struct move): Likewise for field "insn".
12701 (create_move): Eliminate use of NULL_RTX when dealing with an
12702 rtx_insn *.
12703 (emit_move_list): Strengthen return type and locals "result",
12704 "insn" from rtx to rtx_insn *insn.
12705 (emit_moves): Likewise for locals "insns", "tmp".
12706 (ira_emit): Likewise for local "insn".
12707 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
12708 "insn".
12709 (find_call_crossed_cheap_reg): Likewise.
12710 (process_bb_node_lives): Likewise for local "insn".
12711 * ira.c (decrease_live_ranges_number): Likewise.
12712 (compute_regs_asm_clobbered): Likewise.
12713 (build_insn_chain): Likewise.
12714 (find_moveable_pseudos): Likewise, also locals "def_insn",
12715 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
12716 to rtx_insn **. Add a checked cast when assigning from
12717 "closest_use" into closest_uses array in a region where we know
12718 it's a non-NULL insn.
12719 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
12720 to rtx_insn *.
12721 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
12722 "last_interesting_insn", "uin".
12723 (move_unallocated_pseudos): Likewise for locals "def_insn",
12724 "move_insn", "newinsn".
12725
12726 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12727
12728 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
12729 Strengthen locals "done_label", "do_error" from rtx to
12730 rtx_code_label *.
12731 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
12732 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
12733 rtx_code_label *.
12734 (ubsan_expand_si_overflow_neg_check): Likewise for locals
12735 "done_label", "do_error" to rtx_code_label * and local "last" to
12736 rtx_insn *.
12737 (ubsan_expand_si_overflow_mul_check): Likewise for locals
12738 "done_label", "do_error", "large_op0", "small_op0_large_op1",
12739 "one_small_one_large", "both_ops_large", "after_hipart_neg",
12740 "after_lopart_neg", "do_overflow", "hipart_different" to
12741 rtx_code_label * and local "last" to rtx_insn *.
12742
12743 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12744
12745 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
12746 "insn" and "move_insn" from rtx to rtx_insn *.
12747
12748 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12749
12750 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
12751 rtx_insn *.
12752 (cheap_bb_rtx_cost_p): Likewise.
12753 (first_active_insn): Likewise for return type and local "insn".
12754 (last_active_insn): Likewise for return type and locals "insn",
12755 "head".
12756 (struct noce_if_info): Likewise for fields "jump", "insn_a",
12757 "insn_b".
12758 (end_ifcvt_sequence): Likewise for return type and locals "insn",
12759 "seq".
12760 (noce_try_move): Likewise for local "seq".
12761 (noce_try_store_flag): Likewise.
12762 (noce_try_store_flag_constants): Likewise.
12763 (noce_try_addcc): Likewise.
12764 (noce_try_store_flag_mask): Likewise.
12765 (noce_try_cmove): Likewise.
12766 (noce_try_minmax): Likewise.
12767 (noce_try_abs): Likewise.
12768 (noce_try_sign_mask): Likewise.
12769 (noce_try_bitop): Likewise.
12770 (noce_can_store_speculate_p): Likewise for local "insn".
12771 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
12772 seq".
12773 (check_cond_move_block): Likewise for local "insn".
12774 (cond_move_convert_if_block): Likewise.
12775 (cond_move_process_if_block): Likewise for locals "seq",
12776 "loc_insn".
12777 (noce_find_if_block): Likewise for local "jump".
12778 (merge_if_block): Likewise for local "last".
12779 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
12780 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
12781 (block_has_only_trap): Likewise for return type and local "trap".
12782 (find_if_case_1): Likewise for local "jump".
12783 (dead_or_predicable): Likewise for locals "head", "end", "jump",
12784 "insn".
12785
12786 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12787
12788 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
12789 "last_insn", "loop_end" from rtx to rtx_insn *.
12790
12791 * hw-doloop.c (scan_loop): Likewise for local "insn".
12792 (discover_loop): Likewise for param "tail_insn".
12793 (discover_loops): Likewise for local "tail".
12794
12795 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
12796 cast to rtx_insn * when assigning from an rtx local to a
12797 hwloop_info's "last_insn" field.
12798
12799 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12800
12801 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
12802 (add_delay_dependencies): Strengthen local "pro" from rtx to
12803 rtx_insn *.
12804 (recompute_todo_spec): Likewise.
12805 (dep_cost_1): Likewise for locals "insn", "used".
12806 (schedule_insn): Likewise for local "dbg".
12807 (schedule_insn): Likewise for locals "pro", "next".
12808 (unschedule_insns_until): Likewise for local "con".
12809 (restore_pattern): Likewise for local "next".
12810 (estimate_insn_tick): Likewise for local "pro".
12811 (resolve_dependencies): Likewise for local "next".
12812 (fix_inter_tick): Likewise.
12813 (fix_tick_ready): Likewise for local "pro".
12814 (add_to_speculative_block): Likewise for locals "check", "twin",
12815 "pro".
12816 (sched_extend_bb): Likewise for locals "end", "insn".
12817 (init_before_recovery): Likewise for local "x".
12818 (sched_create_recovery_block): Likewise for local "barrier".
12819 (create_check_block_twin): Likewise for local "pro".
12820 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
12821 "consumer".
12822 (unlink_bb_notes): Update for change to type of bb_header.
12823 Strengthen locals "prev", "label", "note", "next" from rtx to
12824 rtx_insn *.
12825 (clear_priorities): Likewise for local "pro".
12826
12827 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12828
12829 * gcse.c (struct occr): Strengthen field "insn" from rtx to
12830 rtx_insn *.
12831 (test_insn): Likewise for this global.
12832 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
12833 const rtx_insn *.
12834 (oprs_anticipatable_p): Likewise.
12835 (oprs_available_p): Likewise.
12836 (insert_expr_in_table): Strengthen param "insn" from rtx to
12837 rtx_insn *.
12838 (hash_scan_set): Likewise.
12839 (hash_scan_clobber): Likewise.
12840 (hash_scan_call): Likewise.
12841 (hash_scan_insn): Likewise.
12842 (compute_hash_table_work): Likewise for local "insn".
12843 (process_insert_insn): Likewise for return type and local "pat".
12844 (insert_insn_end_basic_block): Likewise for locals "new_insn",
12845 "pat", "pat_end", "maybe_cc0_setter".
12846 (pre_edge_insert): Likewise for local "insn".
12847 (pre_insert_copy_insn): Likewise for param "insn".
12848 (pre_insert_copies): Likewise for local "insn".
12849 (struct set_data): Likewise for field "insn".
12850 (single_set_gcse): Likewise for param "insn".
12851 (gcse_emit_move_after): Likewise.
12852 (pre_delete): Likewise for local "insn".
12853 (update_bb_reg_pressure): Likewise for param "from" and local
12854 "insn".
12855 (should_hoist_expr_to_dom): Likewise for param "from".
12856 (hoist_code): Likewise for local "insn".
12857 (get_pressure_class_and_nregs): Likewise for param "insn".
12858 (calculate_bb_reg_pressure): Likewise for local "insn".
12859 (compute_ld_motion_mems): Likewise.
12860
12861 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12862
12863 * genpeep.c (main): Rename param back from "uncast_ins1" to
12864 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
12865 checked cast.
12866
12867 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
12868
12869 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12870
12871 PR target/62195
12872 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
12873 documentation to state it is only for VSX operations.
12874
12875 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
12876 constraint only active if VSX.
12877
12878 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
12879 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
12880 (lfiwzx): Likewise.
12881
12882 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12883
12884 * fwprop.c (single_def_use_dom_walker::before_dom_children):
12885 Strengthen local "insn" from rtx to rtx_insn *.
12886 (use_killed_between): Likewise for param "target_insn".
12887 (all_uses_available_at): Likewise for param "target_insn" and
12888 local "next".
12889 (update_df_init): Likewise for params "def_insn", "insn".
12890 (update_df): Likewise for param "insn".
12891 (try_fwprop_subst): Likewise for param "def_insn" and local
12892 "insn".
12893 (free_load_extend): Likewise for param "insn".
12894 (forward_propagate_subreg): Likewise for param "def_insn" and
12895 local "use_insn".
12896 (forward_propagate_asm): Likewise for param "def_insn" and local
12897 "use_insn".
12898 (forward_propagate_and_simplify): Likewise for param "def_insn"
12899 and local "use_insn".
12900 (forward_propagate_into): Likewise for locals "def_insn" and
12901 "use_insn".
12902
12903 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12904
12905 * function.c (emit_initial_value_sets): Strengthen local "seq"
12906 from rtx to rtx_insn *.
12907 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
12908 local "seq".
12909 (instantiate_virtual_regs): Likewise for local "insn".
12910 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
12911 (reorder_blocks_1): Likewise for param "insns" and local "insn".
12912 (expand_function_end): Likewise for locals "insn" and "seq".
12913 (epilogue_done): Likewise for local "insn".
12914 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
12915 "last", "trial".
12916 (reposition_prologue_and_epilogue_notes): Likewise for locals
12917 "insn", "last", "note", "first".
12918 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
12919 (pass_match_asm_constraints::execute): Likewise for local "insn".
12920
12921 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12922
12923 * output.h (final_scan_insn): Strengthen return type from rtx to
12924 rtx_insn *.
12925 (final_forward_branch_p): Likewise for param.
12926 (current_output_insn): Likewise for this global.
12927
12928 * final.c (rtx debug_insn): Likewise for this variable.
12929 (current_output_insn): Likewise.
12930 (get_attr_length_1): Rename param "insn" to "uncast_insn",
12931 adding "insn" back in as an rtx_insn * with a checked cast, so
12932 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
12933 first param.
12934 (compute_alignments): Strengthen local "label" from rtx to
12935 rtx_insn *.
12936 (shorten_branches): Rename param from "first" to "uncast_first",
12937 introducing a new local rtx_insn * "first" using a checked cast to
12938 effectively strengthen "first" from rtx to rtx_insn * without
12939 affecting the type signature. Strengthen locals "insn", "seq",
12940 "next", "label" from rtx to rtx_insn *.
12941 (change_scope): Strengthen param "orig_insn" and local "insn" from
12942 rtx to rtx_insn *.
12943 (final_start_function): Rename param from "first" to "uncast_first",
12944 introducing a new local rtx_insn * "first" using a checked cast to
12945 effectively strengthen "first" from rtx to rtx_insn * without
12946 affecting the type signature. Strengthen local "insn" from rtx to
12947 rtx_insn *.
12948 (dump_basic_block_info): Strengthen param "insn" from rtx to
12949 rtx_insn *.
12950 (final): Rename param from "first" to "uncast_first",
12951 introducing a new local rtx_insn * "first" using a checked cast to
12952 effectively strengthen "first" from rtx to rtx_insn * without
12953 affecting the type signature. Strengthen locals "insn", "next"
12954 from rtx to rtx_insn *.
12955 (output_alternate_entry_point): Strengthen param "insn" from rtx to
12956 rtx_insn *.
12957 (call_from_call_insn): Strengthen param "insn" from rtx to
12958 rtx_call_insn *.
12959 (final_scan_insn): Rename param from "insn" to "uncast_insn",
12960 introducing a new local rtx_insn * "insn" using a checked cast to
12961 effectively strengthen "insn" from rtx to rtx_insn * without
12962 affecting the type signature. Strengthen return type and locals
12963 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
12964 now-redundant checked cast to rtx_insn * from both invocations of
12965 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
12966 introducing a local "call_insn" for use when invoking
12967 call_from_call_insn.
12968 (notice_source_line): Strengthen param "insn" from rtx to
12969 rtx_insn *.
12970 (leaf_function_p): Likewise for local "insn".
12971 (final_forward_branch_p): Likewise.
12972 (leaf_renumber_regs): Likewise for param "first".
12973 (rest_of_clean_state): Likewise for locals "insn" and "next".
12974 (self_recursive_call_p): Likewise for param "insn".
12975 (collect_fn_hard_reg_usage): Likewise for local "insn".
12976 (get_call_fndecl): Likewise for param "insn".
12977 (get_call_cgraph_rtl_info): Likewise.
12978 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
12979 introducing a new local rtx_insn * "insn" using a checked cast to
12980 effectively strengthen "insn" from rtx to rtx_insn * without
12981 affecting the type signature.
12982
12983 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
12984 cast when assigning from param "insn" to current_output_insn.
12985 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
12986 so that we can assign it back to current_output_insn.
12987
12988 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12989
12990 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
12991 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
12992 atmxt540s and atmxt540sreva devices.
12993 * config/avr/avr-tables.opt: Regenerate.
12994 * config/avr/t-multilib: Regenerate.
12995 * doc/avr-mmcu.texi: Regenerate.
12996
12997 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12998
12999 * expr.c (convert_move): Strengthen local "insns" from rtx to
13000 rtx_insn *.
13001 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13002 "top_label" from rtx to rtx_code_label *.
13003 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13004 rtx_insn *.
13005 (emit_single_push_insn): Likewise for locals "prev", "last".
13006 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13007 to rtx_code_label *.
13008 (store_constructor): Likewise for locals "loop_start", "loop_end".
13009 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13010 rtx_insn *.
13011 (expand_expr_real_2): Likewise.
13012 (expand_expr_real_1): Strengthen local "label" from rtx to
13013 rtx_code_label *.
13014
13015 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13016
13017 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13018 from rtx to rtx_insn *.
13019 (store_bit_field_1): Likewise.
13020 (extract_bit_field_1): Likewise.
13021 (expand_mult_const): Likewise for local "insns".
13022 (expmed_mult_highpart): Strengthen local "label" from rtx to
13023 rtx_code_label *.
13024 (expand_smod_pow2): Likewise.
13025 (expand_sdiv_pow2): Likewise.
13026 (expand_divmod): Strengthen locals "last", "insn" from rtx to
13027 rtx_insn *. Strengthen locals "label", "label1", "label2",
13028 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13029 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13030 (emit_store_flag): Likewise.
13031 (emit_store_flag_force): Strengthen local "label" from rtx to
13032 rtx_code_label *.
13033 (do_cmp_and_jump): Likewise for param "label".
13034
13035 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13036
13037 * explow.c (force_reg): Strengthen local "insn" from rtx to
13038 rtx_insn *.
13039 (adjust_stack_1): Likewise.
13040 (allocate_dynamic_stack_space): Likewise. Strengthen locals
13041 "final_label", "available_label", "space_available" from rtx to
13042 rtx_code_label *.
13043 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13044 (anti_adjust_stack_and_probe): Likewise.
13045
13046 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13047
13048 * except.h (sjlj_emit_function_exit_after): Strengthen param
13049 "after" from rtx to rtx_insn *. This is only called with
13050 result of get_last_insn (in function.c) so type-change should be
13051 self-contained.
13052
13053 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13054 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13055 to rtx_insn *. These fields are only used from except.c so this
13056 type-change should be self-contained to this patch.
13057
13058 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13059 local "last" from rtx to rtx_insn *.
13060 (dw2_build_landing_pads): Likewise for local "seq".
13061 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13062 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13063 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
13064 rtx to rtx_insn *.
13065 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13066 to rtx_insn *.
13067 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13068 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13069 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13070 referring to an insn. Strengthen local "dispatch_label" from
13071 rtx to rtx_code_label *.
13072 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13073 rtx_insn *.
13074 (expand_eh_return): Strengthen local "around_label" from
13075 rtx to rtx_code_label *.
13076 (convert_to_eh_region_ranges): Strengthen locals "iter",
13077 "last_action_insn", "first_no_action_insn",
13078 "first_no_action_insn_before_switch",
13079 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13080
13081 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13082
13083 * dwarf2out.c (last_var_location_insn): Strengthen this variable
13084 from rtx to rtx_insn *.
13085 (cached_next_real_insn): Likewise.
13086 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13087 working with insns.
13088 (dwarf2out_var_location): Strengthen locals "next_real",
13089 "next_note", "expected_next_loc_note", "last_start", "insn" from
13090 rtx to rtx_insn *.
13091
13092 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13093
13094 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13095 from rtx to rtx_insn *.
13096 (create_pseudo_cfg): Likewise for local "insn".
13097
13098 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13099
13100 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13101 from rtx to rtx_insn *.
13102 (df_bb_regno_last_def_find): Likewise.
13103
13104 * df-problems.c (df_rd_bb_local_compute): Likewise.
13105 (df_lr_bb_local_compute): Likewise.
13106 (df_live_bb_local_compute): Likewise.
13107 (df_chain_remove_problem): Likewise.
13108 (df_chain_create_bb): Likewise.
13109 (df_word_lr_bb_local_compute): Likewise.
13110 (df_remove_dead_eq_notes): Likewise for param "insn".
13111 (df_note_bb_compute): Likewise for local "insn".
13112 (simulate_backwards_to_point): Likewise.
13113 (df_md_bb_local_compute): Likewise.
13114
13115 * df-scan.c (df_scan_free_bb_info): Likewise.
13116 (df_scan_start_dump): Likewise.
13117 (df_scan_start_block): Likewise.
13118 (df_install_ref_incremental): Likewise for local "insn".
13119 (df_insn_rescan_all): Likewise.
13120 (df_reorganize_refs_by_reg_by_insn): Likewise.
13121 (df_reorganize_refs_by_insn_bb): Likewise.
13122 (df_recompute_luids): Likewise.
13123 (df_bb_refs_record): Likewise.
13124 (df_update_entry_exit_and_calls): Likewise.
13125 (df_bb_verify): Likewise.
13126
13127 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13128
13129 * ddg.h (struct ddg_node): Strengthen fields "insn" and
13130 "first_note" from rtx to rtx_insn *.
13131 (get_node_of_insn): Likewise for param 2 "insn".
13132 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13133
13134 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13135 rtx_insn *.
13136 (mem_write_insn_p): Likewise.
13137 (mem_access_insn_p): Likewise.
13138 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13139 (def_has_ccmode_p): Likewise for param "insn".
13140 (add_cross_iteration_register_deps): Likewise for locals
13141 "def_insn" and "use_insn".
13142 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13143 (build_intra_loop_deps): Likewise for local "src_insn".
13144 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13145 to rtx_insn *.
13146 (get_node_of_insn): Likewise for param "insn".
13147
13148 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13149
13150 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13151 (deletable_insn_p): Strengthen param "insn" from rtx to
13152 rtx_insn *. Add checked cast to rtx_call_insn when invoking
13153 find_call_stack_args, since this is guarded by CALL_P (insn).
13154 (marked_insn_p): Strengthen param "insn" from rtx to
13155 rtx_insn *.
13156 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
13157 invoking find_call_stack_args, since this is guarded by
13158 CALL_P (insn).
13159 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13160 rtx_insn *; we know this is an insn since this was called by
13161 mark_nonreg_stores.
13162 (mark_nonreg_stores_2): Likewise.
13163 (mark_nonreg_stores): Strengthen param "insn" from rtx to
13164 rtx_insn *.
13165 (find_call_stack_args): Strengthen param "call_insn" from rtx to
13166 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13167 to rtx_insn *.
13168 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13169 from rtx to rtx_insn *.
13170 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13171 "next", "ref_insn".
13172 (delete_unmarked_insns): Likewise for locals "insn", "next".
13173 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13174 (mark_reg_dependencies): Likewise for param "insn".
13175 (rest_of_handle_ud_dce): Likewise for local "insn".
13176 (word_dce_process_block): Likewise.
13177 (dce_process_block): Likewise.
13178
13179 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13180
13181 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
13182 from rtx to rtx_insn *.
13183 (struct change_cc_mode_args): Likewise for field "insn".
13184 (this_insn): Strengthen from rtx to rtx_insn *.
13185 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
13186 with insn.
13187 (validate_canon_reg): Strengthen param "insn" from rtx to
13188 rtx_insn *.
13189 (canon_reg): Likewise.
13190 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
13191 dealing with insn.
13192 (record_jump_equiv): Strengthen param "insn" from rtx to
13193 rtx_insn *.
13194 (try_back_substitute_reg): Likewise, also for locals "prev",
13195 "bb_head".
13196 (find_sets_in_insn): Likewise for param "insn".
13197 (canonicalize_insn): Likewise.
13198 (cse_insn): Likewise. Add a checked cast.
13199 (invalidate_from_clobbers): Likewise for param "insn".
13200 (invalidate_from_sets_and_clobbers): Likewise.
13201 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
13202 dealing with insn.
13203 (cse_prescan_path): Strengthen local "insn" from rtx to
13204 rtx_insn *.
13205 (cse_extended_basic_block): Likewise for locals "insn" and
13206 "prev_insn".
13207 (cse_main): Likewise for param "f".
13208 (check_for_label_ref): Likewise for local "insn".
13209 (set_live_p): Likewise for second param ("insn").
13210 (insn_live_p): Likewise for first param ("insn") and for local
13211 "next".
13212 (cse_change_cc_mode_insn): Likewise for first param "insn".
13213 (cse_change_cc_mode_insns): Likewise for first and second params
13214 "start" and "end".
13215 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13216 and "end".
13217 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13218 "cc_src_insn".
13219
13220 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13221 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13222 Anna Tikhonova <anna.tikhonova@intel.com>
13223 Ilya Tocar <ilya.tocar@intel.com>
13224 Andrey Turetskiy <andrey.turetskiy@intel.com>
13225 Ilya Verbin <ilya.verbin@intel.com>
13226 Kirill Yukhin <kirill.yukhin@intel.com>
13227 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13228
13229 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13230 New.
13231 * config/i386/sse.md
13232 (define_mode_iterator VI248_AVX2): Delete.
13233 (define_mode_iterator VI2_AVX2_AVX512BW): New.
13234 (define_mode_iterator VI48_AVX2): Ditto.
13235 (define_insn <shift_insn><mode>3): Delete.
13236 (define_insn "<shift_insn><mode>3<mask_name>" with
13237 VI2_AVX2_AVX512BW): New.
13238 (define_insn "<shift_insn><mode>3<mask_name>" with
13239 VI48_AVX2): Ditto.
13240
13241 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13242 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13243 Anna Tikhonova <anna.tikhonova@intel.com>
13244 Ilya Tocar <ilya.tocar@intel.com>
13245 Andrey Turetskiy <andrey.turetskiy@intel.com>
13246 Ilya Verbin <ilya.verbin@intel.com>
13247 Kirill Yukhin <kirill.yukhin@intel.com>
13248 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13249
13250 * config/i386/sse.md
13251 (define_mode_iterator VI4F_BRCST32x2): New.
13252 (define_mode_attr 64x2_mode): Ditto.
13253 (define_mode_attr 32x2mode): Ditto.
13254 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13255 with VI4F_BRCST32x2): Ditto.
13256 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13257 with V16FI mode iterator): Ditto.
13258 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13259 with V16FI): Ditto.
13260 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13261 with VI8F_BRCST64x2): Ditto.
13262
13263 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13264 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13265 Anna Tikhonova <anna.tikhonova@intel.com>
13266 Ilya Tocar <ilya.tocar@intel.com>
13267 Andrey Turetskiy <andrey.turetskiy@intel.com>
13268 Ilya Verbin <ilya.verbin@intel.com>
13269 Kirill Yukhin <kirill.yukhin@intel.com>
13270 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13271
13272 * config/i386/sse.md
13273 (define_mode_iterator VI8_AVX512VL): New.
13274 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13275
13276 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
13277
13278 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13279 (define_mode_iterator V48_AVX512VL): New.
13280 (define_mode_iterator V12_AVX512VL): Ditto.
13281 (define_insn <avx512>_load<mode>_mask): Split into two similar
13282 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13283 Refactor output template.
13284 (define_insn "<avx512>_store<mode>_mask"): Ditto.
13285
13286 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13287
13288 * cprop.c (struct occr): Strengthen field "insn" from rtx to
13289 rtx_insn *.
13290 (reg_available_p): Likewise for param "insn".
13291 (insert_set_in_table): Likewise.
13292 (hash_scan_set): Likewise.
13293 (hash_scan_insn): Likewise.
13294 (make_set_regs_unavailable): Likewise.
13295 (compute_hash_table_work): Likewise for local "insn".
13296 (reg_not_set_p): Strengthen param "insn" from const_rtx to
13297 const rtx_insn *.
13298 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13299 (try_replace_reg): Likewise.
13300 (find_avail_set): Likewise.
13301 (cprop_jump): Likewise for params "setcc", "jump".
13302 (constprop_register): Likewise for param "insn".
13303 (cprop_insn): Likewise.
13304 (do_local_cprop): Likewise.
13305 (local_cprop_pass): Likewise for local "insn".
13306 (bypass_block): Likewise for params "setcc" and "jump".
13307 (bypass_conditional_jumps): Likewise for locals "setcc" and
13308 "insn".
13309 (one_cprop_pass): Likewise for local "insn".
13310
13311 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13312
13313 * compare-elim.c (struct comparison_use): Strengthen field "insn"
13314 from rtx to rtx_insn *.
13315 (struct comparison): Likewise, also for field "prev_clobber".
13316 (conforming_compare): Likewise for param "insn".
13317 (arithmetic_flags_clobber_p): Likewise.
13318 (find_flags_uses_in_insn): Likewise.
13319 (find_comparison_dom_walker::before_dom_children): Likewise for
13320 locals "insn", "next", "last_clobber".
13321 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
13322
13323 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13324
13325 * combine-stack-adj.c (struct csa_reflist): Strengthen field
13326 "insn" from rtx to rtx_insn *.
13327 (single_set_for_csa): Likewise for param "insn".
13328 (record_one_stack_ref): Likewise.
13329 (try_apply_stack_adjustment): Likewise.
13330 (struct record_stack_refs_data): Likewise for field "insn".
13331 (maybe_move_args_size_note): Likewise for params "last" and "insn".
13332 (prev_active_insn_bb): Likewise for return type and param "insn".
13333 (next_active_insn_bb): Likewise.
13334 (force_move_args_size_note): Likewise for params "prev" and "last"
13335 and locals "test", "next_candidate", "prev_candidate".
13336 (combine_stack_adjustments_for_block): Strengthen locals
13337 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
13338 rtx_insn *.
13339
13340 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13341
13342 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
13343 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
13344 (subst_insn): Likewise for this variable.
13345 (added_links_insn): Likewise.
13346 (struct insn_link): Likewise for field "insn".
13347 (alloc_insn_link): Likewise for param "insn".
13348 (struct undobuf): Likewise for field "other_insn".
13349 (find_single_use): Likewise for param "insn" and local "next".
13350 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
13351 (delete_noop_moves): Likewise for locals "insn", "next".
13352 (create_log_links): Likewise for locals "insn", "use_insn".
13353 Strengthen local "next_use" from rtx * to rtx_insn **.
13354 (insn_a_feeds_b): Likewise for params "a", "b".
13355 (combine_instructions): Likewise for param "f" and locals "insn",
13356 "next", "prev", "first", "last_combined_insn", "link", "link1",
13357 "temp". Replace use of NULL_RTX with NULL when referring to
13358 insns.
13359 (setup_incoming_promotions): Likewise for param "first"
13360 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
13361 (can_combine_p): Likewise for params "insn", "i3", "pred",
13362 "pred2", "succ", "succ2" and for local "p".
13363 (combinable_i3pat): Likewise for param "i3".
13364 (cant_combine_insn_p): Likewise for param "insn".
13365 (likely_spilled_retval_p): Likewise.
13366 (adjust_for_new_dest): Likewise.
13367 (update_cfg_for_uncondjump): Likewise, also for local "insn".
13368 (try_combine): Likewise for return type and for params "i3", "i2",
13369 "i1", "i0", "last_combined_insn", and for locals "insn",
13370 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
13371 "i0_insn". Eliminate local "tem" in favor of new locals
13372 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
13373 checked cast for now to rtx_insn * on the return type of
13374 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
13375 insns.
13376 (find_split_point): Strengthen param "insn" from rtx to
13377 rtx_insn *.
13378 (simplify_set): Likewise for local "other_insn".
13379 (recog_for_combine): Likewise for param "insn".
13380 (record_value_for_reg): Likewise.
13381 (record_dead_and_set_regs_1): Likewise for local
13382 "record_dead_insn".
13383 (record_dead_and_set_regs): Likewise for param "insn".
13384 (record_promoted_value): Likewise.
13385 (check_promoted_subreg): Likewise.
13386 (get_last_value_validate): Likewise.
13387 (reg_dead_at_p): Likewise.
13388 (move_deaths): Likewise for param "to_insn".
13389 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
13390 and locals "place", "place2", "cc0_setter". Eliminate local "tem
13391 in favor of new locals "tem_note" and "tem_insn", the latter being
13392 an rtx_insn *.
13393 (distribute_links): Strengthen locals "place", "insn" from rtx to
13394 rtx_insn *.
13395
13396 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13397
13398 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
13399 than a const_rtx.
13400 (can_delete_label_p): Require a const rtx_code_label * rather than
13401 a const_rtx.
13402 (delete_insn): Add checked cast to rtx_code_label * when we know
13403 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
13404 rtx to rtx_insn *.
13405 (delete_insn_chain): Strengthen locals "prev" and "current" from
13406 rtx to rtx_insn *. Add a checked cast when assigning from
13407 "finish" (strengthening the params will come later). Add a
13408 checked cast to rtx_note * in region where we know
13409 NOTE_P (current).
13410 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
13411 rtx_insn *.
13412 (compute_bb_for_insn): Likewise.
13413 (free_bb_for_insn): Likewise for local "insn".
13414 (compute_bb_for_insn): Likewise.
13415 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
13416 local "insn" from rtx to rtx_insn *
13417 (flow_active_insn_p): Require a const rtx_insn * rather than a
13418 const_rtx.
13419 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
13420 rtx_insn *.
13421 (can_fallthru): Likewise for locals "insn" and "insn2".
13422 (bb_note): Likewise for local "note".
13423 (first_insn_after_basic_block_note): Likewise for local "note" and
13424 for return type.
13425 (rtl_split_block): Likewise for locals "insn" and "next".
13426 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
13427 "end".
13428 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
13429 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
13430 "prev", "tmp".
13431 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
13432 them), "kill_from", "barrier", "new_insn".
13433 (patch_jump_insn): Likewise for params "insn", "old_label".
13434 (redirect_branch_edge): Likewise for locals "old_label", "insn".
13435 (force_nonfallthru_and_redirect): Likewise for locals "insn",
13436 "old_label", "new_label".
13437 (rtl_tidy_fallthru_edge): Likewise for local "q".
13438 (rtl_split_edge): Likewise for locals "before", "last".
13439 (commit_one_edge_insertion): Likewise for locals "before",
13440 "after", "insns", "tmp", "last", adding a checked cast where
13441 currently necessary.
13442 (commit_edge_insertions): Likewise.
13443 (rtl_dump_bb): Likewise for locals "insn", "last".
13444 (print_rtl_with_bb): Likewise for local "x".
13445 (rtl_verify_bb_insns): Likewise for local "x".
13446 (rtl_verify_bb_pointers): Likewise for local "insn".
13447 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
13448 "head", "end".
13449 (rtl_verify_fallthru): Likewise for local "insn".
13450 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
13451 (purge_dead_edges): Likewise for local "insn".
13452 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
13453 (skip_insns_after_block): Likewise for return type and for locals
13454 "insn", "last_insn", "next_head", "prev".
13455 (record_effective_endpoints): Likewise for locals "next_insn",
13456 "insn", "end".
13457 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
13458 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
13459 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
13460 (duplicate_insn_chain): For now, add checked cast from rtx to
13461 rtx_insn * when returning insn.
13462 (cfg_layout_duplicate_bb): Likewise for local "insn".
13463 (cfg_layout_delete_block): Likewise for locals "insn", "next",
13464 "prev", "remaints".
13465 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
13466 (rtl_block_empty_p): Likewise.
13467 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
13468 "split_point", "last".
13469 (rtl_block_ends_with_call_p): Likewise for local "insn".
13470 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
13471 const rtx_insn *.
13472 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
13473 "split_at_insn" from rtx to rtx_insn *.
13474 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
13475 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
13476 to const rtx_insn *.
13477 (rtl_account_profile_record): Likewise.
13478
13479 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13480
13481 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
13482 rtx to rtx_insn *.
13483 (average_num_loop_insns): Likewise.
13484 (init_set_costs): Likewise for local "seq".
13485 (seq_cost): Likewise for param "seq", from const_rtx to const
13486 rtx_insn *.
13487
13488 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13489
13490 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
13491 rtx to rtx_insn *.
13492
13493 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13494
13495 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
13496 "f1" and "f2" from rtx * to rtx_insn **.
13497 (flow_find_head_matching_sequence): Likewise.
13498
13499 * cfgcleanup.c (try_simplify_condjump): Strengthen local
13500 "cbranch_insn" from rtx to rtx_insn *.
13501 (thread_jump): Likewise for local "insn".
13502 (try_forward_edges): Likewise for local "last".
13503 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
13504 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
13505 "real_b_end".
13506 (can_replace_by): Likewise for params "i1", "i2".
13507 (old_insns_match_p): Likewise.
13508 (merge_notes): Likewise.
13509 (walk_to_nondebug_insn): Likewise for param "i1".
13510 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
13511 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
13512 "afterlast1", "afterlast2" from rtx to rtx_insn *.
13513 (flow_find_head_matching_sequence): Strengthen params "f1" and
13514 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
13515 "last1", "last2", "beforelast1", "beforelast2" from rtx to
13516 rtx_insn *.
13517 (outgoing_edges_match): Likewise for locals "last1", "last2".
13518 (try_crossjump_to_edge): Likewise for local "insn".
13519 Replace call to for_each_rtx with for_each_rtx_in_insn.
13520
13521 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
13522 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
13523 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
13524 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
13525 (try_optimize_cfg): Strengthen local "last" from rtx to
13526 rtx_insn *.
13527 (delete_dead_jumptables): Likewise for locals "insn", "next",
13528 "label".
13529
13530 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
13531 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
13532 "rtx else_first_tail", to reflect the basic-block.h changes above.
13533
13534 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13535
13536 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
13537 rtx_insn *.
13538 (purge_dead_tablejump_edges): Likewise.
13539 (find_bb_boundaries): Likewise for locals "insn", "end",
13540 "flow_transfer_insn".
13541
13542 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13543
13544 * caller-save.c (save_call_clobbered_regs): Strengthen locals
13545 "ins" and "prev" from rtx to rtx_insn *.
13546
13547 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13548
13549 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
13550 rtx_insn *.
13551 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
13552 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
13553 "scan_start".
13554 (load_register_parameters): Likewise for local "before_arg".
13555 (check_sibcall_argument_overlap): Likewise for param "insn".
13556 (expand_call): Likewise for locals "normal_call_insns",
13557 "tail_call_insns", "insns", "before_call", "after_args",
13558 "before_arg", "last", "prev". Strengthen one of the "last" from
13559 rtx to rtx_call_insn *.
13560 (fixup_tail_calls): Strengthen local "insn" from rtx to
13561 rtx_insn *.
13562 (emit_library_call_value_1): Likewise for locals "before_call" and
13563 "last".
13564
13565 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13566
13567 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13568 and "last" from rtx to rtx_insn *.
13569 (expand_builtin_nonlocal_goto): Likewise for local "insn".
13570 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13571 rtx_call_insn *.
13572 (expand_errno_check): Strengthen local "lab" from rtx to
13573 rtx_code_label *.
13574 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13575 rtx_insn *.
13576 (expand_builtin_mathfn_2): Likewise.
13577 (expand_builtin_mathfn_ternary): Likewise.
13578 (expand_builtin_mathfn_3): Likewise.
13579 (expand_builtin_interclass_mathfn): Likewise for local "last".
13580 (expand_builtin_int_roundingfn): Likewise for local "insns".
13581 (expand_builtin_int_roundingfn_2): Likewise.
13582 (expand_builtin_strlen): Likewise for local "before_strlen".
13583 (expand_builtin_strncmp): Likewise for local "seq".
13584 (expand_builtin_signbit): Likewise for local "last".
13585 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13586 from rtx to rtx_code_label *.
13587 (expand_stack_restore): Strengthen local "prev" from rtx to
13588 rtx_insn *.
13589
13590 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13591
13592 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13593 to rtx_insn *.
13594 (struct btr_def_s): Likewise.
13595 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13596 const rtx_insn *.
13597 (add_btr_def): Likewise.
13598 (new_btr_user): Likewise.
13599 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13600 rtx to rtx_insn *.
13601 (link_btr_uses): Likewise.
13602 (move_btr_def): Likewise for locals "insp", "old_insn",
13603 "new_insn". Add checked cast to rtx_insn * for now on result of
13604 gen_move_insn.
13605 (can_move_up): Strengthen param "insn" from const_rtx to
13606 const rtx_insn *.
13607
13608 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13609
13610 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13611 rtx_insn *.
13612 (get_uncond_jump_length): Likewise for locals "label", "jump".
13613 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13614 "jump", "insn".
13615 (add_labels_and_missing_jumps): Likewise for local "new_jump".
13616 (fix_up_fall_thru_edges): Likewise for local "old_jump".
13617 (find_jump_block): Likewise for local "insn".
13618 (fix_crossing_conditional_branches): Likewise for locals
13619 "old_jump", "new_jump".
13620 (fix_crossing_unconditional_branches): Likewise for locals
13621 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13622 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13623
13624 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13625
13626 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13627 rtx to rtx_insn *.
13628 (struct mem_insn): Likewise for field "insn".
13629 (reg_next_use): Strengthen from rtx * to rtx_insn **.
13630 (reg_next_inc_use): Likewise.
13631 (reg_next_def): Likewise.
13632 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13633 from rtx to rtx_insn *.
13634 (move_insn_before): Likewise for param "next_insn" and local "insns".
13635 (attempt_change): Likewise for local "mov_insn".
13636 (try_merge): Likewise for param "last_insn".
13637 (get_next_ref): Likewise for return type and local "insn".
13638 Strengthen param "next_array" from rtx * to rtx_insn **.
13639 (parse_add_or_inc): Strengthen param "insn" from rtx to
13640 rtx_insn *.
13641 (find_inc): Likewise for locals "insn" and "other_insn" (three of
13642 the latter).
13643 (merge_in_block): Likewise for locals "insn", "curr",
13644 "other_insn".
13645 (pass_inc_dec::execute): Update allocations of the arrays to
13646 reflect the stronger types.
13647
13648 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13649
13650 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13651 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
13652 from rtx to rtx_code_label *.
13653
13654 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13655
13656 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
13657 to rtx_insn *.
13658
13659 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13660
13661 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
13662 generated a warning and prevented bootstrapping the compiler.
13663
13664 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13665
13666 * rtl.h (delete_related_insns): Strengthen return type from rtx to
13667 rtx_insn *.
13668
13669 * jump.c (delete_related_insns): Likewise, also for locals "next"
13670 and "prev".
13671
13672 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13673
13674 * genautomata.c (output_internal_insn_latency_func): When writing
13675 the function "internal_insn_latency" to insn-automata.c,
13676 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13677 allowing the optional guard function of (define_bypass) clauses to
13678 expect a pair of rtx_insn *, rather than a pair of rtx.
13679 (output_insn_latency_func): When writing the function
13680 "insn_latency", add an "uncast_" prefix to params "insn" and
13681 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13682 using checked casts from the params, thus enabling the above
13683 change to the generated "internal_insn_latency" function.
13684
13685 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
13686
13687 PR tree-optimization/62091
13688 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13689 handle correctly arrays.
13690 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13691 inheritance binfos.
13692 (record_known_type): Walk into inner type.
13693 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13694 condition on no type changes.
13695
13696 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13697
13698 * genattrtab.c (write_attr_get): Within the generated get_attr_
13699 functions, rename param "insn" to "uncast_insn" and reintroduce
13700 "insn" as an local rtx_insn * using a checked cast, so that "insn"
13701 is an rtx_insn * within insn-attrtab.c
13702
13703 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13704
13705 * output.h (peephole): Strengthen return type from rtx to
13706 rtx_insn *.
13707 * rtl.h (delete_for_peephole): Likewise for both params.
13708 * genpeep.c (main): In generated "peephole" function, strengthen
13709 return type and local "insn" from rtx to rtx_insn *. For now,
13710 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
13711 rtx_insn *, with a checked cast.
13712 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
13713 locals "insn", "next", "prev" from rtx to rtx_insn *.
13714
13715 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
13716
13717 PR tree-optimization/62112
13718 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
13719 * gimple-iterator.h (gsi_replace): Return bool.
13720 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
13721 moved from ref_may_alias_global_p.
13722 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
13723 New overloads.
13724 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
13725 (stmt_kills_ref_p_1): Rename...
13726 (stmt_kills_ref_p): ... to this.
13727 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
13728 stmt_kills_ref_p): Declare.
13729 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
13730 Move the self-assignment case...
13731 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
13732
13733 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13734
13735 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
13736
13737 * emit-rtl.c (try_split): Likewise, also for locals "before" and
13738 "after". For now, don't strengthen param "trial", which requires
13739 adding checked casts when returning it.
13740
13741 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13742
13743 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
13744 "label" from rtx to rtx_code_label *. Strengthen param 1 of
13745 "var_location" hook from rtx to rtx_insn *.
13746 (debug_nothing_rtx): Delete in favor of...
13747 (debug_nothing_rtx_code_label): New prototype.
13748 (debug_nothing_rtx_rtx): Delete unused prototype.
13749 (debug_nothing_rtx_insn): New prototype.
13750
13751 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
13752 invoking debug_hooks->var_location (in two places, one in a NOTE
13753 case of a switch statement, the other guarded by a CALL_P
13754 conditional. Add checked cast to rtx_code_label * when invoking
13755 debug_hooks->label (within CODE_LABEL case of switch statement).
13756
13757 * dbxout.c (dbx_debug_hooks): Update "label" hook from
13758 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13759 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
13760 (xcoff_debug_hooks): Likewise.
13761 * debug.c (do_nothing_debug_hooks): Likewise.
13762 (debug_nothing_rtx): Delete in favor of...
13763 (debug_nothing_rtx_insn): New function.
13764 (debug_nothing_rtx_rtx): Delete unused function.
13765 (debug_nothing_rtx_code_label): New function.
13766 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
13767 debug_nothing_rtx to debug_nothing_rtx_code_label.
13768 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
13769 to rtx_insn *.
13770 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
13771 debug_nothing_rtx to debug_nothing_rtx_insn.
13772 (sdbout_label): Strengthen param "insn" from rtx to
13773 rtx_code_label *.
13774 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
13775 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13776 "var_location" hook from debug_nothing_rtx to
13777 debug_nothing_rtx_insn.
13778
13779 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13780
13781 * recog.h (insn_output_fn): Update this function typedef to match
13782 the changes below to the generated output functions, strengthening
13783 the 2nd param from rtx to rtx_insn *.
13784
13785 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
13786 insn when invoking an output function, to match the new signature
13787 of insn_output_fn with a stronger second param.
13788
13789 * genconditions.c (write_header): In the generated code for
13790 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
13791 to match the other changes in this patch.
13792
13793 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
13794 the generated "gen_" functions from rtx to rtx_insn * within their
13795 implementations.
13796
13797 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
13798 the subfunctions within the generated "recog_", "split", "peephole2"
13799 function trees from rtx to rtx_insn *. For now, the top-level
13800 generated functions ("recog", "split", "peephole2") continue to
13801 take a plain rtx for "insn", to avoid introducing dependencies on
13802 other patches. Rename this 2nd param from "insn" to
13803 "uncast_insn", and reintroduce "insn" as a local variable of type
13804 rtx_insn *, initialized at the top of the generated function with
13805 a checked cast on "uncast_insn".
13806 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
13807 the generated "gen_" functions from rtx to rtx_insn * within their
13808 prototypes.
13809
13810 * genoutput.c (process_template): Strengthen the 2nd param within
13811 the generated "output_" functions "insn" from rtx to rtx_insn *.
13812
13813 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13814
13815 * tree-profile.c (tree_profiling): Skip external functions
13816 when doing coverage instrumentation.
13817 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
13818
13819 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13820
13821 * config/rs6000/altivec.h (vec_cpsgn): New #define.
13822 (vec_mergee): Likewise.
13823 (vec_mergeo): Likewise.
13824 (vec_cntlz): Likewise.
13825 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
13826 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
13827 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
13828 VMRGEW, and VMRGOW.
13829 * doc/extend.texi: Document various forms of vec_cpsgn,
13830 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
13831 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
13832 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
13833 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
13834 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
13835
13836 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13837
13838 * config/rs6000/rs6000.c (context.h): New include.
13839 (tree-pass.h): Likewise.
13840 (make_pass_analyze_swaps): New decl.
13841 (rs6000_option_override): Register pass_analyze_swaps.
13842 (swap_web_entry): New subsclass of web_entry_base (df.h).
13843 (special_handling_values): New enum.
13844 (union_defs): New function.
13845 (union_uses): Likewise.
13846 (insn_is_load_p): Likewise.
13847 (insn_is_store_p): Likewise.
13848 (insn_is_swap_p): Likewise.
13849 (rtx_is_swappable_p): Likewise.
13850 (insn_is_swappable_p): Likewise.
13851 (chain_purpose): New enum.
13852 (chain_contains_only_swaps): New function.
13853 (mark_swaps_for_removal): Likewise.
13854 (swap_const_vector_halves): Likewise.
13855 (adjust_subreg_index): Likewise.
13856 (permute_load): Likewise.
13857 (permute_store): Likewise.
13858 (handle_special_swappables): Likewise.
13859 (replace_swap_with_copy): Likewise.
13860 (dump_swap_insn_table): Likewise.
13861 (rs6000_analyze_swaps): Likewise.
13862 (pass_data_analyze_swaps): New pass_data.
13863 (pass_analyze_swaps): New rtl_opt_pass.
13864 (make_pass_analyze_swaps): New function.
13865 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
13866
13867 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13868
13869 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
13870 type from rtx to rtx_insn *.
13871 (create_copy_of_insn_rtx): Likewise.
13872 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
13873 (create_copy_of_insn_rtx): Likewise, also for local "res".
13874
13875 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13876
13877 * rtl.h (find_first_parameter_load): Strengthen return type from
13878 rtx to rtx_insn *.
13879 * rtlanal.c (find_first_parameter_load): Strengthen return type
13880 from rtx to rtx_insn *. Add checked cast for now, to postpone
13881 strengthening the params.
13882
13883 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13884
13885 PR fortran/44054
13886 * diagnostic.c: Set default caret.
13887 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
13888 line is needed.
13889 * diagnostic.h (struct diagnostic_context):
13890
13891 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13892
13893 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
13894 (sel_bb_head): Strengthen return type insn_t (currently just an
13895 rtx) to rtx_insn *.
13896 (sel_bb_end): Likewise.
13897
13898 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
13899 (sel_bb_head): Strengthen return type and local "head" from
13900 insn_t (currently just an rtx) to rtx_insn *.
13901 (sel_bb_end): Likewise for return type.
13902 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
13903 working with insn.
13904
13905 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13906
13907 * basic-block.h (get_last_bb_insn): Strengthen return type from
13908 rtx to rtx_insn *.
13909 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
13910 end".
13911
13912 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13913
13914 PR fortran/44054
13915 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
13916 to here ...
13917 (diagnostic_report_diagnostic): ... from here.
13918 * toplev.c (general_init): Move code to c-family.
13919
13920 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13921
13922 * df.h (web_entry_base): Replace existing struct web_entry with a
13923 new class web_entry_base with only the predecessor member.
13924 (unionfind_root): Remove declaration and move to class member.
13925 (unionfind_union): Remove declaration and move to friend
13926 function.
13927 (union_defs): Remove declaration.
13928 * web.c (web_entry_base::unionfind_root): Modify to be member
13929 function and adjust accessors.
13930 (unionfind_union): Modify to be friend function and adjust
13931 accessors.
13932 (web_entry): New subclass of web_entry_base containing the reg
13933 member.
13934 (union_match_dups): Modify for struct -> class changes.
13935 (union_defs): Likewise.
13936 (entry_register): Likewise.
13937 (pass_web::execute): Likewise.
13938
13939 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
13940
13941 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
13942 builtin define __VEC_ELEMENT_REG_ORDER__.
13943
13944 2014-08-20 Martin Jambor <mjambor@suse.cz>
13945 Wei Mi <wmi@google.com>
13946
13947 PR ipa/60449
13948 PR middle-end/61776
13949 * tree-ssa-operands.c (update_stmt_operands): Remove
13950 MODIFIED_NORETURN_CALLS.
13951 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
13952 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
13953 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
13954 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
13955 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
13956 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
13957 (gimple_call_set_ctrl_altering): New func.
13958 (gimple_call_ctrl_altering_p): Ditto.
13959 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
13960 (make_blocks): Use gimple_call_initialize_ctrl_altering.
13961 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
13962 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
13963 remove MODIFIED_NORETURN_CALLS.
13964
13965 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13966
13967 * coverage.c (coverage_compute_profile_id): Return non-0;
13968 also handle symbols with unique name.
13969 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
13970
13971 2014-08-20 Steve Ellcey <sellcey@mips.com>
13972
13973 PR middle-end/49191
13974 * doc/sourcebuild.texi (non_strict_align): New.
13975
13976 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13977
13978 * cgraphunit.c (ipa_passes, compile): Reshedule
13979 symtab_remove_unreachable_nodes passes; update comments.
13980 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
13981 TODO_remove_functions before the pass; the functions ought to be
13982 already removed.
13983 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
13984 TODO_remove_functions.
13985 * passes.c (pass_data_early_local_passes): Do not schedule function
13986 removal.
13987 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
13988
13989 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13990
13991 PR c/59304
13992 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
13993 before setting the option.
13994 * diagnostic.c (diagnostic_classify_diagnostic): Record
13995 command-line status.
13996
13997 2014-08-20 Richard Biener <rguenther@suse.de>
13998
13999 PR lto/62190
14000 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14001 to build uint{16,32,64}_type_node.
14002
14003 2014-08-20 Terry Guo <terry.guo@arm.com>
14004
14005 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14006 with immediate_operand.
14007
14008 2014-08-20 David Malcolm <dmalcolm@redhat.com>
14009
14010 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14011 "insn" from an as_a to a safe_as_a, for the case when "insn" is
14012 NULL.
14013
14014 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14015
14016 PR preprocessor/51303
14017 * incpath.c (remove_duplicates): Use cpp_warning.
14018
14019 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14020
14021 PR c/60975
14022 PR c/53063
14023 * doc/options.texi (CPP): Document it.
14024 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14025 * optc-gen.awk: Handle CPP.
14026 * opth-gen.awk: Likewise.
14027
14028 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14029
14030 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14031 rtx_insn *.
14032 (duplicate_insn_chain): Likewise.
14033 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14034 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
14035 checked cast for now (until we can strengthen the params in the
14036 same way).
14037 (duplicate_insn_chain): Likewise.
14038
14039 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14040
14041 * rtl.h (next_cc0_user): Strengthen return type from rtx to
14042 rtx_insn *.
14043 (prev_cc0_setter): Likewise.
14044
14045 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14046 rtx_insn *, adding checked casts for now as necessary.
14047 (prev_cc0_setter): Likewise.
14048
14049 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14050
14051 * expr.h (emit_move_insn): Strengthen return type from rtx to
14052 rtx_insn *.
14053 (emit_move_insn_1): Likewise.
14054 (emit_move_complex_push): Likewise.
14055 (emit_move_complex_parts): Likewise.
14056
14057 * expr.c (emit_move_via_integer): Strengthen return type from rtx
14058 to rtx_insn *. Replace use of NULL_RTX with NULL when working
14059 with insns.
14060 (emit_move_complex_push): Strengthen return type from rtx to
14061 rtx_insn *.
14062 (emit_move_complex): Likewise, also for local "ret".
14063 (emit_move_ccmode): Likewise.
14064 (emit_move_multi_word): Likewise for return type and locals
14065 "last_insn", "seq".
14066 (emit_move_insn_1): Likewise for return type and locals "result",
14067 "ret".
14068 (emit_move_insn): Likewise for return type and local "last_insn".
14069 (compress_float_constant): Likewise.
14070
14071 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14072
14073 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14074 from rtx to rtx_insn *.
14075
14076 * rtl.h (emit_insn_before): Likewise.
14077 (emit_insn_before_noloc): Likewise.
14078 (emit_insn_before_setloc): Likewise.
14079 (emit_jump_insn_before): Likewise.
14080 (emit_jump_insn_before_noloc): Likewise.
14081 (emit_jump_insn_before_setloc): Likewise.
14082 (emit_call_insn_before): Likewise.
14083 (emit_call_insn_before_noloc): Likewise.
14084 (emit_call_insn_before_setloc): Likewise.
14085 (emit_debug_insn_before): Likewise.
14086 (emit_debug_insn_before_noloc): Likewise.
14087 (emit_debug_insn_before_setloc): Likewise.
14088 (emit_label_before): Likewise.
14089 (emit_insn_after): Likewise.
14090 (emit_insn_after_noloc): Likewise.
14091 (emit_insn_after_setloc): Likewise.
14092 (emit_jump_insn_after): Likewise.
14093 (emit_jump_insn_after_noloc): Likewise.
14094 (emit_jump_insn_after_setloc): Likewise.
14095 (emit_call_insn_after): Likewise.
14096 (emit_call_insn_after_noloc): Likewise.
14097 (emit_call_insn_after_setloc): Likewise.
14098 (emit_debug_insn_after): Likewise.
14099 (emit_debug_insn_after_noloc): Likewise.
14100 (emit_debug_insn_after_setloc): Likewise.
14101 (emit_label_after): Likewise.
14102 (emit_insn): Likewise.
14103 (emit_debug_insn): Likewise.
14104 (emit_jump_insn): Likewise.
14105 (emit_call_insn): Likewise.
14106 (emit_label): Likewise.
14107 (gen_clobber): Likewise.
14108 (emit_clobber): Likewise.
14109 (gen_use): Likewise.
14110 (emit_use): Likewise.
14111 (emit): Likewise.
14112
14113 (emit_barrier_before): Strengthen return type from rtx to
14114 rtx_barrier *.
14115 (emit_barrier_after): Likewise.
14116 (emit_barrier): Likewise.
14117
14118 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
14119 from rtx to rtx_insn *. Add checked casts for now when converting
14120 "last" from rtx to rtx_insn *.
14121 (emit_insn_before_noloc): Likewise for return type.
14122 (emit_jump_insn_before_noloc): Likewise.
14123 (emit_call_insn_before_noloc): Likewise.
14124 (emit_debug_insn_before_noloc): Likewise.
14125 (emit_barrier_before): Strengthen return type and local "insn"
14126 from rtx to rtx_barrier *.
14127 (emit_label_before): Strengthen return type from rtx to
14128 rtx_insn *. Add checked cast for now when returning param
14129 (emit_pattern_after_noloc): Strengthen return type from rtx to
14130 rtx_insn *. Add checked casts for now when converting "last" from
14131 rtx to rtx_insn *.
14132 (emit_insn_after_noloc): Strengthen return type from rtx to
14133 rtx_insn *.
14134 (emit_jump_insn_after_noloc): Likewise.
14135 (emit_call_insn_after_noloc): Likewise.
14136 (emit_debug_insn_after_noloc): Likewise.
14137 (emit_barrier_after): Strengthen return type from rtx to
14138 rtx_barrier *.
14139 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14140 Add checked cast for now when converting "label" from rtx to
14141 rtx_insn *.
14142 (emit_pattern_after_setloc): Strengthen return type from rtx to
14143 rtx_insn *. Add checked casts for now when converting "last" from
14144 rtx to rtx_insn *.
14145 (emit_pattern_after): Strengthen return type from rtx to
14146 rtx_insn *.
14147 (emit_insn_after_setloc): Likewise.
14148 (emit_insn_after): Likewise.
14149 (emit_jump_insn_after_setloc): Likewise.
14150 (emit_jump_insn_after): Likewise.
14151 (emit_call_insn_after_setloc): Likewise.
14152 (emit_call_insn_after): Likewise.
14153 (emit_debug_insn_after_setloc): Likewise.
14154 (emit_debug_insn_after): Likewise.
14155 (emit_pattern_before_setloc): Likewise. Add checked casts for now
14156 when converting "last" from rtx to rtx_insn *.
14157 (emit_pattern_before): Strengthen return type from rtx to
14158 rtx_insn *.
14159 (emit_insn_before_setloc): Likewise.
14160 (emit_insn_before): Likewise.
14161 (emit_jump_insn_before_setloc): Likewise.
14162 (emit_jump_insn_before): Likewise.
14163 (emit_call_insn_before_setloc): Likewise.
14164 (emit_call_insn_before): Likewise.
14165 (emit_debug_insn_before_setloc): Likewise.
14166 (emit_debug_insn_before): Likewise.
14167 (emit_insn): Strengthen return type and locals "last", "insn",
14168 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
14169 within cases where we know we have an insn.
14170 (emit_debug_insn): Likewise.
14171 (emit_jump_insn): Likewise.
14172 (emit_call_insn): Strengthen return type and local "insn" from rtx
14173 to rtx_insn *.
14174 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
14175 a checked cast to rtx_insn * for now on "label".
14176 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
14177 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
14178 (emit_use): Likewise.
14179 (gen_use): Likewise, also for local "seq".
14180 (emit): Likewise for return type and local "insn".
14181 (rtx_insn): Likewise for return type and local "new_rtx".
14182
14183 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
14184 from rtx to rtx_barrier *.
14185
14186 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
14187 changed return type from rtx to rtx_insn *, we must update
14188 "emit_fn" type, and this in turn means updating...
14189 (frame_insn): ...this. Strengthen return type from rtx to
14190 rtx_insn *. Introduce a new local "insn" of the appropriate type.
14191
14192 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14193
14194 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
14195 rtx to rtx_jump_table_data *. Also for local.
14196 * rtl.h (emit_jump_table_data): Likewise.
14197
14198 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14199
14200 * basic-block.h (create_basic_block_structure): Strengthen third
14201 param "bb_note" from rtx to rtx_note *.
14202 * rtl.h (emit_note_before): Strengthen return type from rtx to
14203 rtx_note *.
14204 (emit_note_after): Likewise.
14205 (emit_note): Likewise.
14206 (emit_note_copy): Likewise. Also, strengthen param similarly.
14207 * function.h (struct rtl_data): Strengthen field
14208 "x_stack_check_probe_note" from rtx to rtx_note *.
14209
14210 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14211 from rtx to rtx_note *.
14212 * cfgrtl.c (create_basic_block_structure): Strengthen third param
14213 "bb_note" from rtx to rtx_note *.
14214 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
14215 when calling emit_note_copy.
14216 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14217 rtx_note *.
14218 (emit_note_after): Likewise.
14219 (emit_note_before): Likewise.
14220 (emit_note_copy): Likewise. Also, strengthen param similarly.
14221 (emit_note): Likewise.
14222 * except.c (emit_note_eh_region_end): Likewise for return type.
14223 Strengthen local "next" from rtx to rtx_insn *.
14224 (convert_to_eh_region_ranges): Strengthen local "note"
14225 from rtx to rtx_note *.
14226 * final.c (change_scope): Likewise.
14227 (reemit_insn_block_notes): Likewise, for both locals named "note".
14228 Also, strengthen local "insn" from rtx to rtx_insn *.
14229 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14230 rtx to rtx_note *.
14231 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14232 strengthen local "seq" from rtx to rtx_insn *.
14233 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14234 to rtx_note *.
14235 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14236 vec<rtx_note *>.
14237 (get_bb_note_from_pool): Strengthen return type from rtx to
14238 rtx_note *.
14239 (sel_create_basic_block): Strengthen local "new_bb_note" from
14240 insn_t to rtx_note *.
14241 * var-tracking.c (emit_note_insn_var_location): Strengthen local
14242 "note" from rtx to rtx_note *.
14243 (emit_notes_in_bb): Likewise.
14244
14245 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14246
14247 * function.h (struct rtl_data): Strengthen field
14248 "x_parm_birth_insn" from rtx to rtx_insn *.
14249 * function.c (struct assign_parm_data_all): Strengthen fields
14250 "first_conversion_insn" and "last_conversion_insn" from rtx to
14251 rtx_insn *.
14252
14253 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14254
14255 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14256 to rtx_insn *; also for local "var_end_seq".
14257 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14258 (maybe_cleanup_end_of_block): Likewise for param "last" and local
14259 "insn".
14260 (expand_gimple_cond): Likewise for locals "last2" and "last".
14261 (mark_transaction_restart_calls): Likewise for local "insn".
14262 (expand_gimple_stmt): Likewise for return type and locals "last"
14263 and "insn".
14264 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14265 (avoid_complex_debug_insns): Likewise for param "insn".
14266 (expand_debug_locations): Likewise for locals "insn", "last",
14267 "prev_insn" and "insn2".
14268 (expand_gimple_basic_block): Likewise for local "last".
14269 (construct_exit_block): Likewise for locals "head", "end",
14270 "orig_end".
14271 (pass_expand::execute): Likewise for locals "var_seq",
14272 "var_ret_seq", "next".
14273
14274 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14275
14276 * asan.h (asan_emit_stack_protection): Strengthen return type from
14277 rtx to rtx_insn *.
14278 * asan.c (asan_emit_stack_protection): Likewise. Add local
14279 "insns" to hold the return value.
14280
14281 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14282
14283 * basic-block.h (bb_note): Strengthen return type from rtx to
14284 rtx_note *.
14285 * sched-int.h (bb_note): Likewise.
14286 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
14287
14288 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14289
14290 * rtl.h (make_insn_raw): Strengthen return type from rtx to
14291 rtx_insn *.
14292
14293 * emit-rtl.c (make_insn_raw): Strengthen return type and local
14294 "insn" from rtx to rtx_insn *.
14295 (make_debug_insn_raw): Strengthen return type from rtx to
14296 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14297 (make_jump_insn_raw): Strengthen return type from rtx to
14298 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14299 (make_call_insn_raw): Strengthen return type from rtx to
14300 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14301 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14302 callback from rtx to rtx_insn *; likewise for local "insn" and
14303 "next", adding a checked cast to rtx_insn in the relevant cases of
14304 the switch statement.
14305 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14306 callback from rtx to rtx_insn *.
14307 (emit_pattern_after_setloc): Likewise.
14308 (emit_pattern_after): Likewise.
14309 (emit_pattern_before_setloc): Likewise.
14310 (emit_pattern_before): Likewise.
14311
14312 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14313
14314 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
14315 rtx_call_insn *.
14316 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
14317 accepting an rtx_insn *.
14318 (last_call_insn): Strengthen return type from rtx to
14319 rtx_call_insn *.
14320
14321 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14322
14323 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
14324 "insns" from rtx to rtx_insn *.
14325 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
14326 locals "insn" and "prev".
14327
14328 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14329
14330 * rtl.h (tablejump_p): Strengthen third param from rtx * to
14331 rtx_jump_table_data **.
14332
14333 * cfgbuild.c (make_edges): Introduce local "table", using it in
14334 place of "tmp" for jump table data.
14335 (find_bb_boundaries): Strengthen local "table" from rtx to
14336 rtx_jump_table_data *.
14337 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14338 (outgoing_edges_match): Likewise for locals "table1" and "table2".
14339 (try_crossjump_to_edge): Likewise.
14340 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
14341 "table".
14342 (patch_jump_insn): Introduce local "table", using it in place of
14343 "tmp" for jump table data.
14344 (force_nonfallthru_and_redirect): Introduce local "table", so that
14345 call to tablejump_p can receive an rtx_jump_table_data **. Update
14346 logic around the call to overwrite "note" appropriately if
14347 tablejump_p returns non-zero.
14348 (get_last_bb_insn): Introduce local "table", using it in place of
14349 "tmp" for jump table data.
14350 * dwarf2cfi.c (create_trace_edges): Likewise.
14351
14352 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
14353 from rtx to rtx_jump_table_data *.
14354 (create_fix_barrier): Strengthen local "tmp" from rtx to
14355 rtx_jump_table_data *.
14356 (arm_reorg): Likewise for local "table".
14357
14358 * config/s390/s390.c (s390_chunkify_start): Likewise.
14359
14360 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
14361
14362 * jump.c (delete_related_insns): Strengthen local "lab_next" from
14363 rtx to rtx_jump_table_data *.
14364
14365 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
14366 rtx_jump_table_data **. Add a checked cast when writing through
14367 the pointer: we know there that local "table" is non-NULL and that
14368 JUMP_TABLE_DATA_P (table) holds.
14369 (label_is_jump_target_p): Introduce local "table", using it in
14370 place of "tmp" for jump table data.
14371
14372 2014-08-19 Marek Polacek <polacek@redhat.com>
14373
14374 PR c++/62153
14375 * doc/invoke.texi: Document -Wbool-compare.
14376
14377 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14378
14379 * rtl.h (entry_of_function): Strengthen return type from rtx to
14380 rtx_insn *.
14381 * cfgrtl.c (entry_of_function): Likewise.
14382
14383 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14384
14385 * emit-rtl.h (get_insns): Strengthen return type from rtx to
14386 rtx_insn *, adding a checked cast for now.
14387 (get_last_insn): Likewise.
14388
14389 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14390
14391 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
14392 rtx_code_label *.
14393
14394 * emit-rtl.c (gen_label_rtx): Likewise.
14395
14396 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14397
14398 * rtl.h (previous_insn): Strengthen return type from rtx to
14399 rtx_insn *.
14400 (next_insn): Likewise.
14401 (prev_nonnote_insn): Likewise.
14402 (prev_nonnote_insn_bb): Likewise.
14403 (next_nonnote_insn): Likewise.
14404 (next_nonnote_insn_bb): Likewise.
14405 (prev_nondebug_insn): Likewise.
14406 (next_nondebug_insn): Likewise.
14407 (prev_nonnote_nondebug_insn): Likewise.
14408 (next_nonnote_nondebug_insn): Likewise.
14409 (prev_real_insn): Likewise.
14410 (next_real_insn): Likewise.
14411 (prev_active_insn): Likewise.
14412 (next_active_insn): Likewise.
14413
14414 * emit-rtl.c (next_insn): Strengthen return type from rtx to
14415 rtx_insn *, adding a checked cast.
14416 (previous_insn): Likewise.
14417 (next_nonnote_insn): Likewise.
14418 (next_nonnote_insn_bb): Likewise.
14419 (prev_nonnote_insn): Likewise.
14420 (prev_nonnote_insn_bb): Likewise.
14421 (next_nondebug_insn): Likewise.
14422 (prev_nondebug_insn): Likewise.
14423 (next_nonnote_nondebug_insn): Likewise.
14424 (prev_nonnote_nondebug_insn): Likewise.
14425 (next_real_insn): Likewise.
14426 (prev_real_insn): Likewise.
14427 (next_active_insn): Likewise.
14428 (prev_active_insn): Likewise.
14429
14430 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
14431 param "stepfunc" so that it returns an rtx_insn * rather than an
14432 rtx, to track the change to prev_nonnote_insn_bb, which is the
14433 only function this is called with.
14434 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
14435
14436 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
14437
14438 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
14439 assert.
14440
14441 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14442
14443 * coretypes.h (class rtx_debug_insn): Add forward declaration.
14444 (class rtx_nonjump_insn): Likewise.
14445 (class rtx_jump_insn): Likewise.
14446 (class rtx_call_insn): Likewise.
14447 (class rtx_jump_table_data): Likewise.
14448 (class rtx_barrier): Likewise.
14449 (class rtx_code_label): Likewise.
14450 (class rtx_note): Likewise.
14451
14452 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
14453 adding the invariant DEBUG_INSN_P (X).
14454 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
14455 the invariant NONJUMP_INSN_P (X).
14456 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
14457 the invariant JUMP_P (X).
14458 (class rtx_call_insn): New, a subclass of rtx_insn, adding
14459 the invariant CALL_P (X).
14460 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
14461 invariant JUMP_TABLE_DATA_P (X).
14462 (class rtx_barrier): New, a subclass of rtx_insn, adding the
14463 invariant BARRIER_P (X).
14464 (class rtx_code_label): New, a subclass of rtx_insn, adding
14465 the invariant LABEL_P (X).
14466 (class rtx_note): New, a subclass of rtx_insn, adding
14467 the invariant NOTE_P(X).
14468 (is_a_helper <rtx_debug_insn *>::test): New.
14469 (is_a_helper <rtx_nonjump_insn *>::test): New.
14470 (is_a_helper <rtx_jump_insn *>::test): New.
14471 (is_a_helper <rtx_call_insn *>::test): New.
14472 (is_a_helper <rtx_jump_table_data *>::test): New functions,
14473 overloaded for both rtx and rtx_insn *.
14474 (is_a_helper <rtx_barrier *>::test): New.
14475 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
14476 for both rtx and rtx_insn *.
14477 (is_a_helper <rtx_note *>::test): New.
14478
14479 2014-08-19 Marek Polacek <polacek@redhat.com>
14480
14481 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
14482 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14483 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
14484 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14485
14486 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14487
14488 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
14489 rtx_insn *. To help with transition, for now, convert from an
14490 access macro into a pair of functions: BND_TO, returning an
14491 rtx_insn *, and...
14492 (SET_BND_TO): New function, for use where BND_TO is used as an
14493 lvalue.
14494
14495 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
14496 SET_BND_TO.
14497 (BND_TO): New function, adding a checked cast.
14498 (SET_BND_TO): New function.
14499
14500 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
14501 SET_BND_TO.
14502 (compute_av_set_on_boundaries): Likewise.
14503
14504 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14505
14506 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
14507 destination if it is used in source.
14508 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
14509 (*popcount<mode>2_falsedep_1): Likewise.
14510
14511 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14512
14513 PR other/62168
14514 * configure.ac: Set install_gold_as_default to no first.
14515 * configure: Regenerated.
14516
14517 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14518
14519 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
14520 "note_list" field will eventually be an rtx_insn *. To help with
14521 transition, for now, convert from an access macro into a pair of
14522 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
14523 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
14524 used as an lvalue.
14525
14526 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
14527 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
14528
14529 * sel-sched-ir.c (init_bb): Likewise.
14530 (sel_restore_notes): Likewise.
14531 (move_bb_info): Likewise.
14532 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
14533 (SET_BB_NOTE_LIST): New function.
14534
14535 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14536
14537 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
14538 field will eventually be an rtx_insn *. To help with transition,
14539 for now, convert from an access macro into a pair of functions:
14540 VINSN_INSN_RTX, returning an rtx_insn *, and...
14541 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
14542 is used as an lvalue.
14543
14544 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
14545 SET_VINSN_INSN_RTX where it's used as an lvalue.
14546 (VINSN_INSN_RTX): New function.
14547 (SET_VINSN_INSN_RTX): New function.
14548
14549 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14550
14551 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
14552 eventually be rtx_insn *, but to help with transition, for now,
14553 convert from an access macro into a pair of functions: DEP_PRO
14554 returning an rtx_insn * and...
14555 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
14556 lvalue, returning an rtx&.
14557 (DEP_CON): Analogous changes to DEP_PRO above.
14558 (SET_DEP_CON): Likewise.
14559
14560 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14561 an lvalue to SET_DEP_CON.
14562 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14563 (sd_copy_back_deps): Likewise for DEP_CON.
14564 (DEP_PRO): New function, adding a checked cast for now.
14565 (DEP_CON): Likewise.
14566 (SET_DEP_PRO): New function.
14567 (SET_DEP_CON): Likewise.
14568
14569 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14570
14571 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14572 (extra_options): Add i386/cygwin.opt.
14573 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14574 (CPP_SPEC): Accept -pthread.
14575 (LINK_SPEC): Ditto.
14576 (GOMP_SELF_SPECS): Update comment.
14577 * config/i386/cygwin.opt: New file for -pthread flag.
14578
14579 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14580
14581 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14582 * df.h (DF_REF_INSN): Convert from a macro to a function, so
14583 that we can return an rtx_insn *.
14584
14585 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14586
14587 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14588 when building executables, not DLLs. Add --large-address-aware
14589 under the same conditions.
14590 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14591 when building executables, not DLLs. Add --large-address-aware
14592 under the same conditions when using -m32.
14593
14594 * config/i386/cygwin-stdint.h: Throughout, make type
14595 definitions dependent on target architecture, not host.
14596
14597 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14598
14599 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
14600 the return type from rtx to rtx_insn *, which will enable various
14601 conversions in followup patches. For now this is is done by a
14602 checked cast.
14603 (NEXT_INSN): Likewise.
14604 (SET_PREV_INSN): Convert to an inline function. This is intended
14605 for use as an lvalue, and so returns an rtx& to allow in-place
14606 modification.
14607 (SET_NEXT_INSN): Likewise.
14608
14609 2014-07-08 Mark Wielaard <mjw@redhat.com>
14610
14611 PR debug/59051
14612 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14613
14614 2014-08-19 Marek Polacek <polacek@redhat.com>
14615
14616 PR c/61271
14617 * cgraphunit.c (handle_alias_pairs): Fix condition.
14618
14619 2014-08-19 Richard Biener <rguenther@suse.de>
14620
14621 * gimple-fold.c (fold_gimple_assign): Properly build a
14622 null-pointer constant when devirtualizing addresses.
14623
14624 2014-07-07 Mark Wielaard <mjw@redhat.com>
14625
14626 * dwarf2out.c (decl_quals): New function.
14627 (modified_type_die): Take one cv_quals argument instead of two,
14628 one for const and one for volatile.
14629 (add_type_attribute): Likewise.
14630 (generic_parameter_die): Call add_type_attribute with one modifier
14631 argument.
14632 (base_type_for_mode): Likewise.
14633 (add_bounds_info): Likewise.
14634 (add_subscript_info): Likewise.
14635 (gen_array_type_die): Likewise.
14636 (gen_descr_array_type_die): Likewise.
14637 (gen_entry_point_die): Likewise.
14638 (gen_enumeration_type_die): Likewise.
14639 (gen_formal_parameter_die): Likewise.
14640 (gen_subprogram_die): Likewise.
14641 (gen_variable_die): Likewise.
14642 (gen_const_die): Likewise.
14643 (gen_field_die): Likewise.
14644 (gen_pointer_type_die): Likewise.
14645 (gen_reference_type_die): Likewise.
14646 (gen_ptr_to_mbr_type_die): Likewise.
14647 (gen_inheritance_die): Likewise.
14648 (gen_subroutine_type_die): Likewise.
14649 (gen_typedef_die): Likewise.
14650 (force_type_die): Likewise.
14651
14652 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14653
14654 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
14655 if unset.
14656 * configure: Regenerate.
14657
14658 2014-08-19 Richard Biener <rguenther@suse.de>
14659
14660 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
14661 DECL_EXTERNALs in BLOCKs as non-references.
14662 * tree-streamer-out.c (streamer_write_chain): Likewise.
14663
14664 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
14665 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14666 Anna Tikhonova <anna.tikhonova@intel.com>
14667 Ilya Tocar <ilya.tocar@intel.com>
14668 Andrey Turetskiy <andrey.turetskiy@intel.com>
14669 Ilya Verbin <ilya.verbin@intel.com>
14670 Kirill Yukhin <kirill.yukhin@intel.com>
14671 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14672
14673 * config/i386/sse.md
14674 (define_mode_iterator VI48_AVX512F): Delete.
14675 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14676 (define_mode_iterator VI2_AVX512VL): Ditto.
14677 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14678 Delete.
14679 (define_insn
14680 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14681 New.
14682 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14683 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14684 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14685 with VI48_AVX512F_AVX512VL): New.
14686 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14687 with VI2_AVX512VL): Ditto.
14688
14689 2014-08-19 Marek Polacek <polacek@redhat.com>
14690
14691 * doc/invoke.texi: Document -Wc99-c11-compat.
14692
14693 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14694
14695 * rtl.h (PREV_INSN): Split macro in two: the existing one,
14696 for rvalues, and...
14697 (SET_PREV_INSN): New macro, for use as an lvalue.
14698 (NEXT_INSN, SET_NEXT_INSN): Likewise.
14699
14700 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14701 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14702 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14703 (fixup_abnormal_edges): Likewise.
14704 (unlink_insn_chain): Likewise.
14705 (fixup_reorder_chain): Likewise.
14706 (cfg_layout_delete_block): Likewise.
14707 (cfg_layout_merge_blocks): Likewise.
14708 * combine.c (update_cfg_for_uncondjump): Likewise.
14709 * emit-rtl.c (link_insn_into_chain): Likewise.
14710 (remove_insn): Likewise.
14711 (delete_insns_since): Likewise.
14712 (reorder_insns_nobb): Likewise.
14713 (emit_insn_after_1): Likewise.
14714 * final.c (rest_of_clean_state): Likewise.
14715 (final_scan_insn): Likewise.
14716 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
14717 * haifa-sched.c (concat_note_lists): Likewise.
14718 (remove_notes): Likewise.
14719 (restore_other_notes): Likewise.
14720 (move_insn): Likewise.
14721 (unlink_bb_notes): Likewise.
14722 (restore_bb_notes): Likewise.
14723 * jump.c (delete_for_peephole): Likewise.
14724 * optabs.c (emit_libcall_block_1): Likewise.
14725 * reorg.c (emit_delay_sequence): Likewise.
14726 (fill_simple_delay_slots): Likewise.
14727 * sel-sched-ir.c (sel_move_insn): Likewise.
14728 (sel_remove_insn): Likewise.
14729 (get_bb_note_from_pool): Likewise.
14730 * sel-sched.c (move_nop_to_previous_block): Likewise.
14731
14732 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
14733 * config/c6x/c6x.c (gen_one_bundle): Likewise.
14734 (c6x_gen_bundles): Likewise.
14735 (hwloop_optimize): Likewise.
14736 * config/frv/frv.c (frv_function_prologue): Likewise.
14737 (frv_register_nop): Likewise.
14738 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
14739 (ia64_reorg): Likewise.
14740 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
14741 (mep_make_bundle): Likewise.
14742 (mep_bundle_insns): Likewise.
14743 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
14744 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
14745 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
14746
14747 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14748
14749 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
14750 return type from rtx to rtx_insn *.
14751 (BB_END): Likewise.
14752 (BB_HEADER): Likewise.
14753 (BB_FOOTER): Likewise.
14754 (SET_BB_HEAD): Convert to a function.
14755 (SET_BB_END): Likewise.
14756 (SET_BB_HEADER): Likewise.
14757 (SET_BB_FOOTER): Likewise.
14758
14759 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
14760 Strengthen the return type from rtx to rtx_insn *. For now, this
14761 is done by adding a checked cast, but this will eventually
14762 become a field lookup.
14763 (BB_END): Likewise.
14764 (BB_HEADER): Likewise.
14765 (BB_FOOTER): Likewise.
14766 (SET_BB_HEAD): New function, from macro of same name. This is
14767 intended for use as an lvalue, and so returns an rtx& to allow
14768 in-place modification.
14769 (SET_BB_END): Likewise.
14770 (SET_BB_HEADER): Likewise.
14771 (SET_BB_FOOTER): Likewise.
14772
14773 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14774
14775 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
14776 for rvalues, and...
14777 (SET_BB_HEAD): New macro, for use as a lvalue.
14778 (BB_END, SET_BB_END): Likewise.
14779 (BB_HEADER, SET_BB_HEADER): Likewise.
14780 (BB_FOOTER, SET_BB_FOOTER): Likewise.
14781
14782 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
14783 of BB_* macros into SET_BB_* macros.
14784 (fix_crossing_unconditional_branches): Likewise.
14785 * caller-save.c (save_call_clobbered_regs): Likewise.
14786 (insert_one_insn): Likewise.
14787 * cfgbuild.c (find_bb_boundaries): Likewise.
14788 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14789 (outgoing_edges_match): Likewise.
14790 (try_optimize_cfg): Likewise.
14791 * cfgexpand.c (expand_gimple_cond): Likewise.
14792 (expand_gimple_tailcall): Likewise.
14793 (expand_gimple_basic_block): Likewise.
14794 (construct_exit_block): Likewise.
14795 * cfgrtl.c (delete_insn): Likewise.
14796 (create_basic_block_structure): Likewise.
14797 (rtl_delete_block): Likewise.
14798 (rtl_split_block): Likewise.
14799 (emit_nop_for_unique_locus_between): Likewise.
14800 (rtl_merge_blocks): Likewise.
14801 (block_label): Likewise.
14802 (try_redirect_by_replacing_jump): Likewise.
14803 (emit_barrier_after_bb): Likewise.
14804 (fixup_abnormal_edges): Likewise.
14805 (record_effective_endpoints): Likewise.
14806 (relink_block_chain): Likewise.
14807 (fixup_reorder_chain): Likewise.
14808 (fixup_fallthru_exit_predecessor): Likewise.
14809 (cfg_layout_duplicate_bb): Likewise.
14810 (cfg_layout_split_block): Likewise.
14811 (cfg_layout_delete_block): Likewise.
14812 (cfg_layout_merge_blocks): Likewise.
14813 * combine.c (update_cfg_for_uncondjump): Likewise.
14814 * emit-rtl.c (add_insn_after): Likewise.
14815 (remove_insn): Likewise.
14816 (reorder_insns): Likewise.
14817 (emit_insn_after_1): Likewise.
14818 * haifa-sched.c (get_ebb_head_tail): Likewise.
14819 (restore_other_notes): Likewise.
14820 (move_insn): Likewise.
14821 (sched_extend_bb): Likewise.
14822 (fix_jump_move): Likewise.
14823 * ifcvt.c (noce_process_if_block): Likewise.
14824 (dead_or_predicable): Likewise.
14825 * ira.c (update_equiv_regs): Likewise.
14826 * reg-stack.c (change_stack): Likewise.
14827 * sel-sched-ir.c (sel_move_insn): Likewise.
14828 * sel-sched.c (move_nop_to_previous_block): Likewise.
14829
14830 * config/c6x/c6x.c (hwloop_optimize): Likewise.
14831 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
14832
14833 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14834
14835 * rtl.h (for_each_rtx_in_insn): New function.
14836 * rtlanal.c (for_each_rtx_in_insn): Likewise.
14837
14838 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14839
14840 * coretypes.h (class rtx_insn): Add forward declaration.
14841
14842 * rtl.h: Include is-a.h.
14843 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
14844 workaround to ensure gengtype knows inheritance is occurring,
14845 whilst continuing to use the pre-existing special-casing for
14846 rtx_def.
14847 (class rtx_insn): New subclass of rtx_def, adding the
14848 invariant that we're dealing with something we can sanely use
14849 INSN_UID, NEXT_INSN, PREV_INSN on.
14850 (is_a_helper <rtx_insn *>::test): New.
14851 (is_a_helper <const rtx_insn *>::test): New.
14852
14853 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14854
14855 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
14856
14857 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
14858
14859 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
14860 comdats as extern.
14861
14862 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
14863
14864 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
14865 to BUILT_IN_UNREACHABLE.
14866
14867 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
14868
14869 PR target/62011
14870 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
14871 New tune flag.
14872 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
14873 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
14874 (ffs<mode>2): Do not expand with tzcnt for
14875 TARGET_AVOID_FALSE_DEP_FOR_BMI.
14876 (ffssi2_no_cmove): Ditto.
14877 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
14878 (ctz<mode>2): New expander.
14879 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
14880 (*ctz<mode>2_falsedep): New insn.
14881 (*ctz<mode>2): Rename from ctz<mode>2.
14882 (clz<mode>2_lzcnt): New expander.
14883 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
14884 (*clz<mode>2_lzcnt_falsedep): New insn.
14885 (*clz<mode>2): Rename from ctz<mode>2.
14886 (popcount<mode>2): New expander.
14887 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
14888 (*popcount<mode>2_falsedep): New insn.
14889 (*popcount<mode>2): Rename from ctz<mode>2.
14890 (*popcount<mode>2_cmp): Remove.
14891 (*popcountsi2_cmp_zext): Ditto.
14892
14893 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
14894
14895 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
14896 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
14897 * config/microblaze/microblaze.h
14898 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
14899
14900 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
14901
14902 PR other/62168
14903 * configure.ac: Set install_gold_as_default to no for
14904 --enable-gold=no.
14905 * configure: Regenerated.
14906
14907 2014-08-18 Roman Gareev <gareevroman@gmail.com>
14908
14909 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
14910 * config.in: Add undef of HAVE_isl.
14911 * configure: Regenerate.
14912 * configure.ac: Add definition of HAVE_isl.
14913 * graphite-blocking.c: Add checking of HAVE_isl.
14914 * graphite-dependences.c: Likewise.
14915 * graphite-interchange.c: Likewise.
14916 * graphite-isl-ast-to-gimple.c: Likewise.
14917 * graphite-optimize-isl.c: Likewise.
14918 * graphite-poly.c: Likewise.
14919 * graphite-scop-detection.c: Likewise.
14920 * graphite-sese-to-poly.c: Likewise.
14921 * graphite.c: Likewise.
14922 * toplev.c: Replace the checking of HAVE_cloog with the checking
14923 of HAVE_isl.
14924
14925 2014-08-18 Richard Biener <rguenther@suse.de>
14926
14927 PR tree-optimization/62090
14928 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
14929 (fold_builtin_3): Do not fold snprintf.
14930 (fold_builtin_4): Likewise.
14931 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
14932 moved from builtins.c.
14933 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
14934 (gimple_fold_builtin): Do not fold sprintf here.
14935
14936 2014-08-18 Richard Biener <rguenther@suse.de>
14937
14938 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
14939 code to ...
14940 (maybe_canonicalize_mem_ref_addr): ... this function.
14941 (fold_stmt_1): Apply it here before all simplification.
14942
14943 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
14944
14945 PR ipa/61800
14946 * cgraph.h (cgraph_node::create_indirect_edge): Add
14947 compute_indirect_info param.
14948 * cgraph.c (cgraph_node::create_indirect_edge): Compute
14949 indirect_info only when it is required.
14950 * cgraphclones.c (cgraph_clone_edge): Do not recompute
14951 indirect_info fore cloned indirect edge.
14952
14953 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14954 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14955 Anna Tikhonova <anna.tikhonova@intel.com>
14956 Ilya Tocar <ilya.tocar@intel.com>
14957 Andrey Turetskiy <andrey.turetskiy@intel.com>
14958 Ilya Verbin <ilya.verbin@intel.com>
14959 Kirill Yukhin <kirill.yukhin@intel.com>
14960 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14961
14962 * config/i386/sse.md
14963 (define_mode_iterator VI8_AVX2_AVX512BW): New.
14964 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
14965
14966 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14967 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14968 Anna Tikhonova <anna.tikhonova@intel.com>
14969 Ilya Tocar <ilya.tocar@intel.com>
14970 Andrey Turetskiy <andrey.turetskiy@intel.com>
14971 Ilya Verbin <ilya.verbin@intel.com>
14972 Kirill Yukhin <kirill.yukhin@intel.com>
14973 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14974
14975 * config/i386/sse.md
14976 (define_mode_iterator VF1_AVX512VL): New.
14977 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
14978 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
14979 New.
14980
14981 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14982 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14983 Anna Tikhonova <anna.tikhonova@intel.com>
14984 Ilya Tocar <ilya.tocar@intel.com>
14985 Andrey Turetskiy <andrey.turetskiy@intel.com>
14986 Ilya Verbin <ilya.verbin@intel.com>
14987 Kirill Yukhin <kirill.yukhin@intel.com>
14988 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14989
14990 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
14991 * config/i386/i386.md
14992 (define_code_iterator any_float): New.
14993 (define_code_attr floatsuffix): New.
14994 * config/i386/sse.md
14995 (define_mode_iterator VF1_128_256VL): New.
14996 (define_mode_iterator VF2_512_256VL): New.
14997 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
14998 TARGET check.
14999 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15000 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15001 New.
15002 (define_mode_attr qq2pssuff): New.
15003 (define_mode_attr sselongvecmode): New.
15004 (define_mode_attr sselongvecmodelower): New.
15005 (define_mode_attr sseintvecmode3): New.
15006 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15007 New.
15008 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15009 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15010 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15011 (define_insn "ufloatv2siv2df2<mask_name>"): New.
15012
15013 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15014 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15015 Anna Tikhonova <anna.tikhonova@intel.com>
15016 Ilya Tocar <ilya.tocar@intel.com>
15017 Andrey Turetskiy <andrey.turetskiy@intel.com>
15018 Ilya Verbin <ilya.verbin@intel.com>
15019 Kirill Yukhin <kirill.yukhin@intel.com>
15020 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15021
15022 * config/i386/sse.md
15023 (define_mode_iterator VF2_AVX512VL): New.
15024 (define_mode_attr sseintvecmode2): New.
15025 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15026 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15027 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15028 (define_insn
15029 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15030 Ditto.
15031 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15032 Ditto.
15033 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15034 Ditto.
15035
15036 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15037 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15038 Anna Tikhonova <anna.tikhonova@intel.com>
15039 Ilya Tocar <ilya.tocar@intel.com>
15040 Andrey Turetskiy <andrey.turetskiy@intel.com>
15041 Ilya Verbin <ilya.verbin@intel.com>
15042 Kirill Yukhin <kirill.yukhin@intel.com>
15043 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15044
15045 * config/i386/i386.md
15046 (define_insn "*movoi_internal_avx"): Add evex version.
15047 (define_insn "*movti_internal"): Ditto.
15048
15049 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15050 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15051 Anna Tikhonova <anna.tikhonova@intel.com>
15052 Ilya Tocar <ilya.tocar@intel.com>
15053 Andrey Turetskiy <andrey.turetskiy@intel.com>
15054 Ilya Verbin <ilya.verbin@intel.com>
15055 Kirill Yukhin <kirill.yukhin@intel.com>
15056 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15057
15058 * config/i386/i386.md
15059 (define_attr "isa"): Add avx512dq, noavx512dq.
15060 (define_attr "enabled"): Ditto.
15061 * config/i386/sse.md
15062 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15063
15064 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15065 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15066 Anna Tikhonova <anna.tikhonova@intel.com>
15067 Ilya Tocar <ilya.tocar@intel.com>
15068 Andrey Turetskiy <andrey.turetskiy@intel.com>
15069 Ilya Verbin <ilya.verbin@intel.com>
15070 Kirill Yukhin <kirill.yukhin@intel.com>
15071 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15072
15073 * config/i386/i386.c
15074 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15075 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15076 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15077 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15078 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15079 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15080 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15081 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15082 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15083 * config/i386/sse.md
15084 (define_mode_iterator VMOVE): Allow V4TI mode.
15085 (define_mode_iterator V_AVX512VL): New.
15086 (define_mode_iterator V): New handling for AVX512VL.
15087 (define_insn "avx512f_load<mode>_mask"): Delete.
15088 (define_insn "<avx512>_load<mode>_mask"): New.
15089 (define_insn "avx512f_store<mode>_mask"): Delete.
15090 (define_insn "<avx512>_store<mode>_mask"): New.
15091
15092
15093 2014-08-18 Yury Gribov <y.gribov@samsung.com>
15094
15095 PR sanitizer/62089
15096 * asan.c (instrument_derefs): Fix bitfield check.
15097
15098 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15099
15100 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15101 * config/rs6000/htm.md (ttest): Remove clobber.
15102 * config/rs6000/predicates.md (any_mask_operand): New predicate.
15103 (and_operand): Reformat.
15104 (and_2rld_operand): New predicate.
15105 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15106 parameter.
15107 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15108 parameter. Handle AND directly.
15109 (rs6000_split_logical_di): Remove last parameter.
15110 (rs6000_split_logical): Remove last parameter. Remove obsolete
15111 comment.
15112 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15113 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15114 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
15115 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15116 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15117 and 5 anonymous splitters): Delete.
15118 (and<mode>3): New expander.
15119 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15120 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15121 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15122 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15123 (floatdisf2_internal1): Remove clobbers.
15124 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15125 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15126 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15127 (and<mode>3 for BOOL_128): Remove clobber.
15128 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
15129 rs6000_split_logical.
15130 (*bool<mode>3_internal for BOOL_128): Adjust call of
15131 rs6000_split_logical.
15132 (*boolc<mode>3_internal1 for BOOL_128,
15133 *boolc<mode>3_internal2 for BOOL_128,
15134 *boolcc<mode>3_internal1 for BOOL_128,
15135 *boolcc<mode>3_internal2 for BOOL_128,
15136 *eqv<mode>3_internal1 for BOOL_128,
15137 *eqv<mode>3_internal2 for BOOL_128,
15138 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15139 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15140 clobber.
15141 (*vec_reload_and_reg_<mptrsize>): Delete.
15142
15143 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15144
15145 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15146 and split, *boolccsi3_internal3 and split): Delete.
15147 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15148 *boolccdi3_internal3 and split): Delete.
15149 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15150 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
15151
15152 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15153
15154 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15155 and split, *boolcsi3_internal3 and split): Delete.
15156 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15157 *boolcdi3_internal3 and split): Delete.
15158 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15159
15160 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15161
15162 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15163 <'u'>: Also support printing the low-order 16 bits.
15164 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15165 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15166 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15167 *booldi3_internal3 and split): Delete.
15168 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15169 *bool<mode>3_dot2): New.
15170 (two anonymous define_splits for non_logical_cint_operand): Merge.
15171
15172 2014-08-17 Marek Polacek <polacek@redhat.com>
15173 Manuel López-Ibáñez <manu@gcc.gnu.org>
15174
15175 PR c/62059
15176 * diagnostic.c (adjust_line): Add gcc_checking_assert.
15177 (diagnostic_show_locus): Don't print caret diagnostic
15178 if a column is larger than the line_width.
15179
15180 2014-08-17 Roman Gareev <gareevroman@gmail.com>
15181
15182 * common.opt: Make the ISL AST generator to be the main code generator
15183 of Graphite.
15184
15185 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
15186
15187 * wide-int.h (generic_wide_int): Declare as class instead of struct.
15188
15189 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
15190
15191 PR target/61641
15192 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
15193 Declare.
15194 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
15195 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
15196 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
15197 Define.
15198 * config/pa/pa.md (begin_brtab): Delete insn.
15199 (end_brtab): Likewise.
15200
15201 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15202
15203 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
15204
15205 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
15206
15207 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15208 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15209 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15210 (get_dynamic_type): Remove.
15211 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15212 (clear_speculation): Bring to ipa-deivrt.h
15213 (get_class_context): Rename to ...
15214 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15215 (contains_type_p): Update.
15216 (get_dynamic_type): Rename to ...
15217 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15218 (possible_polymorphic_call_targets): UPdate.
15219 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15220 * ipa-prop.c (ipa_analyze_call_uses): Update.
15221
15222 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
15223
15224 * doc/invoke.texi (SH options): Document missing processor variant
15225 options. Remove references to Hitachi. Undocument deprecated mspace
15226 option.
15227
15228 2014-08-15 Jason Merrill <jason@redhat.com>
15229
15230 * tree.c (type_hash_canon): Uncomment assert.
15231
15232 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15233
15234 * input.h (in_system_header_at): Add comment.
15235
15236 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15237
15238 PR fortran/44054
15239 * diagnostic.c (build_message_string): Make it extern.
15240 * diagnostic.h (build_message_string): Make it extern.
15241
15242 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
15243
15244 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15245 load/store from/to non-floating class pseudo.
15246
15247 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15248
15249 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15250
15251 2014-08-15 Richard Biener <rguenther@suse.de>
15252
15253 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15254 (get_constraint_for_ssa_var): Remove dead code.
15255 (get_constraint_for_1): Adjust.
15256 (find_what_var_points_to): Likewise.
15257 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
15258
15259 2014-08-15 Ilya Tocar <tocarip@gmail.com>
15260
15261 PR target/61878
15262 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15263 (_mm512_mask_cmpge_epu32_mask): Ditto.
15264 (_mm512_cmpge_epu32_mask): Ditto.
15265 (_mm512_mask_cmpge_epi64_mask): Ditto.
15266 (_mm512_cmpge_epi64_mask): Ditto.
15267 (_mm512_mask_cmpge_epu64_mask): Ditto.
15268 (_mm512_cmpge_epu64_mask): Ditto.
15269 (_mm512_mask_cmple_epi32_mask): Ditto.
15270 (_mm512_cmple_epi32_mask): Ditto.
15271 (_mm512_mask_cmple_epu32_mask): Ditto.
15272 (_mm512_cmple_epu32_mask): Ditto.
15273 (_mm512_mask_cmple_epi64_mask): Ditto.
15274 (_mm512_cmple_epi64_mask): Ditto.
15275 (_mm512_mask_cmple_epu64_mask): Ditto.
15276 (_mm512_cmple_epu64_mask): Ditto.
15277 (_mm512_mask_cmplt_epi32_mask): Ditto.
15278 (_mm512_cmplt_epi32_mask): Ditto.
15279 (_mm512_mask_cmplt_epu32_mask): Ditto.
15280 (_mm512_cmplt_epu32_mask): Ditto.
15281 (_mm512_mask_cmplt_epi64_mask): Ditto.
15282 (_mm512_cmplt_epi64_mask): Ditto.
15283 (_mm512_mask_cmplt_epu64_mask): Ditto.
15284 (_mm512_cmplt_epu64_mask): Ditto.
15285 (_mm512_mask_cmpneq_epi32_mask): Ditto.
15286 (_mm512_mask_cmpneq_epu32_mask): Ditto.
15287 (_mm512_cmpneq_epu32_mask): Ditto.
15288 (_mm512_mask_cmpneq_epi64_mask): Ditto.
15289 (_mm512_cmpneq_epi64_mask): Ditto.
15290 (_mm512_mask_cmpneq_epu64_mask): Ditto.
15291 (_mm512_cmpneq_epu64_mask): Ditto.
15292 (_mm512_castpd_ps): Ditto.
15293 (_mm512_castpd_si512): Ditto.
15294 (_mm512_castps_pd): Ditto.
15295 (_mm512_castps_si512): Ditto.
15296 (_mm512_castsi512_ps): Ditto.
15297 (_mm512_castsi512_pd): Ditto.
15298 (_mm512_castpd512_pd128): Ditto.
15299 (_mm512_castps512_ps128): Ditto.
15300 (_mm512_castsi512_si128): Ditto.
15301 (_mm512_castpd512_pd256): Ditto.
15302 (_mm512_castps512_ps256): Ditto.
15303 (_mm512_castsi512_si256): Ditto.
15304 (_mm512_castpd128_pd512): Ditto.
15305 (_mm512_castps128_ps512): Ditto.
15306 (_mm512_castsi128_si512): Ditto.
15307 (_mm512_castpd256_pd512): Ditto.
15308 (_mm512_castps256_ps512): Ditto.
15309 (_mm512_castsi256_si512): Ditto.
15310 (_mm512_cmpeq_epu32_mask): Ditto.
15311 (_mm512_mask_cmpeq_epu32_mask): Ditto.
15312 (_mm512_mask_cmpeq_epu64_mask): Ditto.
15313 (_mm512_cmpeq_epu64_mask): Ditto.
15314 (_mm512_cmpgt_epu32_mask): Ditto.
15315 (_mm512_mask_cmpgt_epu32_mask): Ditto.
15316 (_mm512_mask_cmpgt_epu64_mask): Ditto.
15317 (_mm512_cmpgt_epu64_mask): Ditto.
15318 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
15319 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
15320 * config/i386/i386.c (enum ix86_builtins): Add
15321 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
15322 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
15323 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
15324 (bdesc_args): Add __builtin_ia32_si512_256si,
15325 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
15326 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
15327 __builtin_ia32_pd512_pd.
15328 (ix86_expand_args_builtin): Handle new FTYPEs.
15329 * config/i386/sse.md (castmode): Add 512-bit modes.
15330 (AVX512MODE2P): New.
15331 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
15332 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
15333
15334 2014-08-15 Richard Biener <rguenther@suse.de>
15335
15336 * fold-const.c (tree_swap_operands_p): Put all constants
15337 last, also strip sign-changing NOPs when considering further
15338 canonicalization. Canonicalize also when optimizing for size.
15339
15340 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15341
15342 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
15343 one_match > zero_match case to just before simple_sequence.
15344
15345 2014-08-15 Richard Biener <rguenther@suse.de>
15346
15347 * data-streamer.h (streamer_string_index, string_for_index):
15348 Remove.
15349 * data-streamer-out.c (streamer_string_index): Make static.
15350 * data-streamer-in.c (string_for_index): Likewise.
15351 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
15352 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
15353
15354 2014-08-15 Richard Biener <rguenther@suse.de>
15355
15356 PR tree-optimization/62031
15357 * tree-data-ref.c (dr_analyze_indices): Do not set
15358 DR_UNCONSTRAINED_BASE.
15359 (dr_may_alias_p): All indirect accesses have to go the
15360 formerly DR_UNCONSTRAINED_BASE path.
15361 * tree-data-ref.h (struct indices): Remove
15362 unconstrained_base member.
15363 (DR_UNCONSTRAINED_BASE): Remove.
15364
15365 2014-08-15 Jakub Jelinek <jakub@redhat.com>
15366
15367 PR middle-end/62092
15368 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
15369 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
15370 in OMP_CLAUSE_MAP in some outer target region.
15371
15372 2014-08-15 Bin Cheng <bin.cheng@arm.com>
15373
15374 * tree-ssa-loop-ivopts.c (ivopts_data): New field
15375 name_expansion_cache.
15376 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
15377 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
15378 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
15379 (difference_cannot_overflow_p): New parameter. Use affine
15380 expansion for equality check.
15381 (iv_elimination_compare_lt): Pass new argument.
15382
15383 2014-08-14 DJ Delorie <dj@redhat.com>
15384
15385 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
15386 variables to the accumulator.
15387
15388 * config/rl78/predicates.md (rl78_near_mem_operand): New.
15389 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
15390 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
15391 with far-far moves.
15392
15393 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
15394 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
15395 (umulqihi3_virt): Likewise.
15396 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
15397 (umulqihi3_real): Likewise.
15398
15399 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
15400
15401 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15402
15403 PR tree-optimization/62091
15404 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
15405 function_entry_reached.
15406 (walk_aliased_vdefs): Clear it here.
15407 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
15408
15409 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15410
15411 * ipa-utils.h (compare_virtual_tables): Declare.
15412 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
15413
15414 2014-08-14 Marek Polacek <polacek@redhat.com>
15415
15416 DR 458
15417 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
15418 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
15419
15420 2014-08-14 Tom de Vries <tom@codesourcery.com>
15421
15422 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
15423
15424 2014-08-14 Tom de Vries <tom@codesourcery.com>
15425
15426 PR rtl-optimization/62004
15427 PR rtl-optimization/62030
15428 * ifcvt.c (rtx_interchangeable_p): New function.
15429 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
15430 * emit-rtl.h (mem_attrs_eq_p): Declare.
15431
15432 2014-08-14 Roman Gareev <gareevroman@gmail.com>
15433
15434 * graphite-scop-detection.c:
15435 Add inclusion of cp-tree.h.
15436 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
15437 in case they are pointers to object types
15438
15439 2014-08-14 Richard Biener <rguenther@suse.de>
15440
15441 * BASE-VER: Change to 5.0.0
15442
15443 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15444 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15445 Anna Tikhonova <anna.tikhonova@intel.com>
15446 Ilya Tocar <ilya.tocar@intel.com>
15447 Andrey Turetskiy <andrey.turetskiy@intel.com>
15448 Ilya Verbin <ilya.verbin@intel.com>
15449 Kirill Yukhin <kirill.yukhin@intel.com>
15450 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15451
15452 * config/i386/sse.md (define_mode_attr avx512): New.
15453 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
15454 V4DI modes.
15455 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
15456 (define_mode_attr ssse3_avx2): Ditto.
15457 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
15458 (define_mode_attr avx2_avx512bw): New.
15459 (define_mode_attr ssedoublemodelower): New.
15460 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
15461 V32HI, V64QI modes.
15462 (define_mode_attr ssebytemode): Allow V8DI modes.
15463 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
15464 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
15465 (define_mode_attr ssePSmode2): New.
15466 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
15467 V16HI, V32HI modes.
15468 (define_mode_attr dbpsadbwmode): New.
15469 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
15470 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
15471 (vi8_sse4_1_avx2_avx512): New.
15472 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
15473 mode attribute.
15474 (define_mode_attr blendbits): Move before its immediate use.
15475
15476 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15477 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15478 Anna Tikhonova <anna.tikhonova@intel.com>
15479 Ilya Tocar <ilya.tocar@intel.com>
15480 Andrey Turetskiy <andrey.turetskiy@intel.com>
15481 Ilya Verbin <ilya.verbin@intel.com>
15482 Kirill Yukhin <kirill.yukhin@intel.com>
15483 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15484
15485 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
15486 * config/i386/subst.md
15487 (define_mode_iterator SUBST_V): Update.
15488 (define_mode_iterator SUBST_A): Ditto.
15489 (define_subst_attr "mask_operand7"): New.
15490 (define_subst_attr "mask_operand10"): New.
15491 (define_subst_attr "mask_operand_arg34") : New.
15492 (define_subst_attr "mask_expand_op3"): New.
15493 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
15494 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
15495 (define_subst_attr "mask_avx512vl_condition"): New.
15496 (define_subst_attr "round_mask_operand4"): Ditto.
15497 (define_subst_attr "round_mask_scalar_op3"): Delete.
15498 (define_subst_attr "round_mask_op4"): New.
15499 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
15500 V16SImode.
15501 (define_subst_attr "round_modev8sf_condition"): New.
15502 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
15503 <MODE>mode.
15504 (define_subst_attr "round_saeonly_mask_operand4"): New.
15505 (define_subst_attr "round_saeonly_mask_op4"): New.
15506 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
15507 V8DImode, V16SImode.
15508 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
15509 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
15510 (define_subst_attr "mask_expand4_args"): New.
15511 (define_subst "mask_expand4"): New.
15512
15513 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15514 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15515 Anna Tikhonova <anna.tikhonova@intel.com>
15516 Ilya Tocar <ilya.tocar@intel.com>
15517 Andrey Turetskiy <andrey.turetskiy@intel.com>
15518 Ilya Verbin <ilya.verbin@intel.com>
15519 Kirill Yukhin <kirill.yukhin@intel.com>
15520 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15521
15522 * config/i386/i386.md
15523 (define_attr "isa"): Add avx512bw,noavx512bw.
15524 (define_attr "enabled"): Ditto.
15525 (define_split): Add 32/64-bit mask logic.
15526 (define_insn "*k<logic>qi"): New.
15527 (define_insn "*k<logic>hi"): New.
15528 (define_insn "*anddi_1"): Add mask version.
15529 (define_insn "*andsi_1"): Ditto.
15530 (define_insn "*<code><mode>_1"): Ditto.
15531 (define_insn "*<code>hi_1"): Ditto.
15532 (define_insn "kxnor<mode>"): New.
15533 (define_insn "kunpcksi"): New.
15534 (define_insn "kunpckdi"): New.
15535 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
15536 (define_insn "*one_cmplhi2_1"): Ditto.
15537
15538 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15539 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15540 Anna Tikhonova <anna.tikhonova@intel.com>
15541 Ilya Tocar <ilya.tocar@intel.com>
15542 Andrey Turetskiy <andrey.turetskiy@intel.com>
15543 Ilya Verbin <ilya.verbin@intel.com>
15544 Kirill Yukhin <kirill.yukhin@intel.com>
15545 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15546
15547 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
15548 V32HImode.
15549
15550 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15551 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15552 Anna Tikhonova <anna.tikhonova@intel.com>
15553 Ilya Tocar <ilya.tocar@intel.com>
15554 Andrey Turetskiy <andrey.turetskiy@intel.com>
15555 Ilya Verbin <ilya.verbin@intel.com>
15556 Kirill Yukhin <kirill.yukhin@intel.com>
15557 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15558
15559 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
15560 registers.
15561 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15562 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15563 xmm/ymm16+ when availble.
15564 * config/i386/i386.h
15565 (HARD_REGNO_NREGS): Add mask regs.
15566 (VALID_AVX512F_REG_MODE): Ditto.
15567 (VALID_AVX512F_REG_MODE) : Define.
15568 (VALID_MASK_AVX512BW_MODE): Ditto.
15569 (reg_class) (MASK_REG_P(X)): Define.
15570 * config/i386/i386.md: Do not split long moves with mask register,
15571 use kmovb if avx512bw is availible.
15572 (movdi_internal): Handle mask registers.
15573
15574 2014-08-14 Richard Biener <rguenther@suse.de>
15575
15576 PR tree-optimization/62081
15577 * tree-ssa-loop.c (pass_fix_loops): New pass.
15578 (pass_tree_loop::gate): Do not fixup loops here.
15579 * tree-pass.h (make_pass_fix_loops): Declare.
15580 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15581
15582 2014-08-14 Richard Biener <rguenther@suse.de>
15583
15584 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15585 (type_hash_canon): ... this and avoid 2nd lookup for the add.
15586
15587 2014-08-14 Richard Biener <rguenther@suse.de>
15588
15589 PR tree-optimization/62090
15590 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15591 (fold_builtin_2): Do not fold sprintf.
15592 (fold_builtin_3): Likewise.
15593 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15594 moved from builtins.c.
15595 (gimple_fold_builtin): Fold sprintf.
15596
15597 2014-08-14 Richard Biener <rguenther@suse.de>
15598
15599 PR rtl-optimization/62079
15600 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15601 run cleanup_cfg.
15602
15603 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15604
15605 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15606 current_function_decl.
15607
15608 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15609
15610 * cgraph.c (cgraph_node::function_symbol): Fix wrong
15611 cgraph_function_node to cgraph_node::function_symbol
15612 refactoring.
15613
15614 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
15615
15616 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15617 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15618
15619 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
15620
15621 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15622 warning.
15623
15624 2014-08-13 Roman Gareev <gareevroman@gmail.com>
15625
15626 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15627 generator.
15628
15629 2014-08-12 Jakub Jelinek <jakub@redhat.com>
15630
15631 PR target/62025
15632 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15633 any registers that are used in mem_insn.
15634
15635 2014-08-12 Steve Ellcey <sellcey@mips.com>
15636
15637 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15638
15639 2014-08-12 Steve Ellcey <sellcey@mips.com>
15640
15641 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15642 (MULTILIB_DIRNAMES): Ditto.
15643 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15644 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15645 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15646 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15647 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15648 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15649
15650 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15651
15652 PR target/61413
15653 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15654 of __ARM_SIZEOF_WCHAR_T.
15655
15656 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15657
15658 PR target/62098
15659 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
15660 Remove unnecessary attributes.
15661
15662 2014-08-12 Yury Gribov <y.gribov@samsung.com>
15663
15664 * internal-fn.c (init_internal_fns): Fix off-by-one.
15665
15666 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15667 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15668 Anna Tikhonova <anna.tikhonova@intel.com>
15669 Ilya Tocar <ilya.tocar@intel.com>
15670 Andrey Turetskiy <andrey.turetskiy@intel.com>
15671 Ilya Verbin <ilya.verbin@intel.com>
15672 Kirill Yukhin <kirill.yukhin@intel.com>
15673 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15674
15675 * config/i386/i386.c (standard_sse_constant_opcode): Use
15676 vpxord/vpternlog if avx512 is availible.
15677
15678 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
15679
15680 PR middle-end/62103
15681 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15682 bitfields, that is when size doesn't match the size of type or the
15683 size of the constructor.
15684
15685 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15686
15687 * config/rs6000/constraints.md (wh constraint): New constraint,
15688 for FP registers if direct move is available.
15689 (wi constraint): New constraint, for VSX/FP registers that can
15690 handle 64-bit integers.
15691 (wj constraint): New constraint for VSX/FP registers that can
15692 handle 64-bit integers for direct moves.
15693 (wk constraint): New constraint for VSX/FP registers that can
15694 handle 64-bit doubles for direct moves.
15695 (wy constraint): Make documentation match implementation.
15696
15697 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15698 scalar_in_vmx_p field to simplify tests of whether SFmode or
15699 DFmode can go in the Altivec registers.
15700 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15701 (rs6000_setup_reg_addr_masks): Likewise.
15702 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
15703 field, and wh/wi/wj/wk constraints.
15704 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
15705 the wh/wi/wj/wk constraints.
15706 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
15707 upper registers, prefer VSX registers unless the operation is a
15708 memory operation with REG+OFFSET addressing.
15709
15710 * config/rs6000/vsx.md (VSr mode attribute): Add support for
15711 DImode. Change SFmode to use ww constraint instead of d to allow
15712 SF registers in the upper registers.
15713 (VSr2): Likewise.
15714 (VSr3): Likewise.
15715 (VSr5): Fix thinko in comment.
15716 (VSa): New mode attribute that is an alternative to wa, that
15717 returns the VSX register class that a mode can go in, but may not
15718 be the preferred register class.
15719 (VS_64dm): New mode attribute for appropriate register classes for
15720 referencing 64-bit elements of vectors for direct moves and normal
15721 moves.
15722 (VS_64reg): Likewise.
15723 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
15724 register allocator to only registers the data type can handle.
15725 (vsx_le_perm_load_<mode>): Likewise.
15726 (vsx_le_perm_store_<mode>): Likewise.
15727 (vsx_xxpermdi2_le_<mode>): Likewise.
15728 (vsx_xxpermdi4_le_<mode>): Likewise.
15729 (vsx_lxvd2x2_le_<mode>): Likewise.
15730 (vsx_lxvd2x4_le_<mode>): Likewise.
15731 (vsx_stxvd2x2_le_<mode>): Likewise.
15732 (vsx_add<mode>3): Likewise.
15733 (vsx_sub<mode>3): Likewise.
15734 (vsx_mul<mode>3): Likewise.
15735 (vsx_div<mode>3): Likewise.
15736 (vsx_tdiv<mode>3_internal): Likewise.
15737 (vsx_fre<mode>2): Likewise.
15738 (vsx_neg<mode>2): Likewise.
15739 (vsx_abs<mode>2): Likewise.
15740 (vsx_nabs<mode>2): Likewise.
15741 (vsx_smax<mode>3): Likewise.
15742 (vsx_smin<mode>3): Likewise.
15743 (vsx_sqrt<mode>2): Likewise.
15744 (vsx_rsqrte<mode>2): Likewise.
15745 (vsx_tsqrt<mode>2_internal): Likewise.
15746 (vsx_fms<mode>4): Likewise.
15747 (vsx_nfma<mode>4): Likewise.
15748 (vsx_eq<mode>): Likewise.
15749 (vsx_gt<mode>): Likewise.
15750 (vsx_ge<mode>): Likewise.
15751 (vsx_eq<mode>_p): Likewise.
15752 (vsx_gt<mode>_p): Likewise.
15753 (vsx_ge<mode>_p): Likewise.
15754 (vsx_xxsel<mode>): Likewise.
15755 (vsx_xxsel<mode>_uns): Likewise.
15756 (vsx_copysign<mode>3): Likewise.
15757 (vsx_float<VSi><mode>2): Likewise.
15758 (vsx_floatuns<VSi><mode>2): Likewise.
15759 (vsx_fix_trunc<mode><VSi>2): Likewise.
15760 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
15761 (vsx_x<VSv>r<VSs>i): Likewise.
15762 (vsx_x<VSv>r<VSs>ic): Likewise.
15763 (vsx_btrunc<mode>2): Likewise.
15764 (vsx_b2trunc<mode>2): Likewise.
15765 (vsx_floor<mode>2): Likewise.
15766 (vsx_ceil<mode>2): Likewise.
15767 (vsx_<VS_spdp_insn>): Likewise.
15768 (vsx_xscvspdp): Likewise.
15769 (vsx_xvcvspuxds): Likewise.
15770 (vsx_float_fix_<mode>2): Likewise.
15771 (vsx_set_<mode>): Likewise.
15772 (vsx_extract_<mode>_internal1): Likewise.
15773 (vsx_extract_<mode>_internal2): Likewise.
15774 (vsx_extract_<mode>_load): Likewise.
15775 (vsx_extract_<mode>_store): Likewise.
15776 (vsx_splat_<mode>): Likewise.
15777 (vsx_xxspltw_<mode>): Likewise.
15778 (vsx_xxspltw_<mode>_direct): Likewise.
15779 (vsx_xxmrghw_<mode>): Likewise.
15780 (vsx_xxmrglw_<mode>): Likewise.
15781 (vsx_xxsldwi_<mode>): Likewise.
15782 (vsx_xscvdpspn): Tighten constraints to only use register classes
15783 the types use.
15784 (vsx_xscvspdpn): Likewise.
15785 (vsx_xscvdpspn_scalar): Likewise.
15786
15787 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
15788 wj, and wk constraints.
15789 (GPR_REG_CLASS_P): New helper macro for register classes targeting
15790 general purpose registers.
15791
15792 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
15793 direct moves.
15794 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
15795 DImode instead of wm. Use wk constraint for direct move of DFmode
15796 instead of wm.
15797 (extendsidi2_lfiwax): Likewise.
15798 (lfiwax): Likewise.
15799 (lfiwzx): Likewise.
15800 (movdi_internal64): Likewise.
15801
15802 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
15803 wk constraints. Make the wy constraint documentation match them
15804 implementation.
15805
15806 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
15807
15808 Replacement of isl_int by isl_val
15809 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
15810 (compute_bounds_for_param): use isl_val instead of isl_int
15811 (compute_bounds_for_loop): likewise
15812 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
15813 (build_linearized_memory_access): use isl_val instead of isl_int
15814 (pdr_stride_in_loop): likewise
15815 * graphite-optimize-isl.c:
15816 (getPrevectorMap): use isl_val instead of isl_int
15817 * graphite-poly.c:
15818 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
15819 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
15820 (extern the_isl_ctx): declare
15821 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
15822 (extract_affine_gmp): likewise
15823 (wrap): likewise
15824 (build_loop_iteration_domains): likewise
15825 (add_param_constraints): likewise
15826
15827 2014-08-11 Richard Biener <rguenther@suse.de>
15828
15829 PR tree-optimization/62075
15830 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
15831 handle uses in patterns.
15832
15833 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15834 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15835 Anna Tikhonova <anna.tikhonova@intel.com>
15836 Ilya Tocar <ilya.tocar@intel.com>
15837 Andrey Turetskiy <andrey.turetskiy@intel.com>
15838 Ilya Verbin <ilya.verbin@intel.com>
15839 Kirill Yukhin <kirill.yukhin@intel.com>
15840 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15841
15842 * common/config/i386/i386-common.c
15843 (OPTION_MASK_ISA_AVX512VL_SET): Define.
15844 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
15845 (ix86_handle_option): Handle OPT_mavx512vl.
15846 * config/i386/cpuid.h (bit_AVX512VL): Define.
15847 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
15848 set -mavx512vl accordingly.
15849 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15850 OPTION_MASK_ISA_AVX512VL.
15851 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
15852 (ix86_option_override_internal): Define PTA_AVX512VL, handle
15853 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
15854 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
15855 * config/i386/i386.h (TARGET_AVX512VL): Define.
15856 (TARGET_AVX512VL_P(x)): Ditto.
15857 * config/i386/i386.opt: Add mavx512vl.
15858
15859 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
15860
15861 PR tree-optimization/62073
15862 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
15863 a basic block.
15864
15865 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15866 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15867 Anna Tikhonova <anna.tikhonova@intel.com>
15868 Ilya Tocar <ilya.tocar@intel.com>
15869 Andrey Turetskiy <andrey.turetskiy@intel.com>
15870 Ilya Verbin <ilya.verbin@intel.com>
15871 Kirill Yukhin <kirill.yukhin@intel.com>
15872 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15873
15874 * common/config/i386/i386-common.c
15875 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
15876 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
15877 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
15878 (ix86_handle_option): Handle OPT_mavx512bw.
15879 * config/i386/cpuid.h (bit_AVX512BW): Define.
15880 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
15881 set -mavx512bw accordingly.
15882 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15883 OPTION_MASK_ISA_AVX512BW.
15884 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
15885 (ix86_option_override_internal): Define PTA_AVX512BW, handle
15886 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
15887 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
15888 * config/i386/i386.h (TARGET_AVX512BW): Define.
15889 (TARGET_AVX512BW_P(x)): Ditto.
15890 * config/i386/i386.opt: Add mavx512bw.
15891
15892 2014-08-11 Richard Biener <rguenther@suse.de>
15893
15894 PR tree-optimization/62070
15895 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
15896 Remove SSA checking.
15897
15898 2014-08-11 Yury Gribov <y.gribov@samsung.com>
15899
15900 * asan.c (asan_check_flags): New enum.
15901 (build_check_stmt_with_calls): Removed function.
15902 (build_check_stmt): Split inlining logic to
15903 asan_expand_check_ifn.
15904 (instrument_derefs): Rename parameter.
15905 (instrument_mem_region_access): Rename parameter.
15906 (instrument_strlen_call): Likewise.
15907 (asan_expand_check_ifn): New function.
15908 (asan_instrument): Remove old code.
15909 (pass_sanopt::execute): Change handling of
15910 asan-instrumentation-with-call-threshold.
15911 (asan_clear_shadow): Fix formatting.
15912 (asan_function_start): Likewise.
15913 (asan_emit_stack_protection): Likewise.
15914 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
15915 Update description.
15916 * internal-fn.c (expand_ASAN_CHECK): New function.
15917 * internal-fn.def (ASAN_CHECK): New internal function.
15918 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
15919 Update description.
15920 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
15921 * tree.c: Small comment fix.
15922
15923 2014-08-11 Yury Gribov <y.gribov@samsung.com>
15924
15925 * gimple.c (gimple_call_fnspec): Support internal functions.
15926 (gimple_call_return_flags): Use const.
15927 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
15928 * internal-fn.def: Add fnspec information.
15929 * internal-fn.h (internal_fn_fnspec): New function.
15930 (init_internal_fns): Declare new function.
15931 * internal-fn.c (internal_fn_fnspec_array): New global variable.
15932 (init_internal_fns): New function.
15933 * tree-core.h: Update macro call.
15934 * tree.c (build_common_builtin_nodes): Initialize internal fns.
15935
15936 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
15937
15938 * lto-streamer.h (struct output_block::symbol): Change from
15939 struct symtab_node to plain symtab_node.
15940 (referenced_from_this_partition_p): Change first parameter
15941 from struct symtab_node to plain symtab_node.
15942
15943 2014-08-10 Marek Polacek <polacek@redhat.com>
15944
15945 PR c/51849
15946 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
15947
15948 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
15949
15950 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
15951 DECL correctly; do not give up on types in static storage.
15952
15953 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
15954
15955 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
15956
15957 2014-08-09 Roman Gareev <gareevroman@gmail.com>
15958
15959 * graphite-isl-ast-to-gimple.c:
15960 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
15961
15962 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
15963
15964 2014-08-08 Guozhi Wei <carrot@google.com>
15965
15966 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
15967
15968 2014-08-08 Cary Coutant <ccoutant@google.com>
15969
15970 * dwarf2out.c (get_skeleton_type_unit): Remove.
15971 (output_skeleton_debug_sections): Remove skeleton type units.
15972 (output_comdat_type_unit): Likewise.
15973 (dwarf2out_finish): Likewise.
15974
15975 2014-08-07 Yi Yang <ahyangyi@google.com>
15976
15977 * predict.c (expr_expected_value_1): Remove the redundant assignment.
15978
15979 2014-08-08 Richard Biener <rguenther@suse.de>
15980
15981 * lto-streamer.h (struct lto_input_block): Make it a class
15982 with a constructor.
15983 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
15984 (struct lto_function_header, struct lto_simple_header,
15985 struct lto_simple_header_with_strings,
15986 struct lto_decl_header, struct lto_function_header): Make
15987 a simple inheritance hieararchy. Remove unused fields.
15988 (struct lto_asm_header): Remove.
15989 * lto-streamer-out.c (produce_asm): Adjust.
15990 (lto_output_toplevel_asms): Likewise.
15991 (produce_asm_for_decls): Likewise.
15992 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
15993 * data-streamer-in.c (string_for_index): Likewise.
15994 * ipa-inline-analysis.c (inline_read_section): Likewise.
15995 * ipa-prop.c (ipa_prop_read_section): Likewise.
15996 (read_replacements_section): Likewise.
15997 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
15998 * lto-section-in.c (lto_create_simple_input_block): Likewise.
15999 (lto_destroy_simple_input_block): Likewise.
16000 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16001 (lto_input_toplevel_asms): Likewise.
16002
16003 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
16004 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16005 Anna Tikhonova <anna.tikhonova@intel.com>
16006 Ilya Tocar <ilya.tocar@intel.com>
16007 Andrey Turetskiy <andrey.turetskiy@intel.com>
16008 Ilya Verbin <ilya.verbin@intel.com>
16009 Kirill Yukhin <kirill.yukhin@intel.com>
16010 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16011
16012 * common/config/i386/i386-common.c
16013 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16014 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16015 (ix86_handle_option): Handle OPT_mavx512dq.
16016 * config/i386/cpuid.h (bit_AVX512DQ): Define.
16017 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16018 set -mavx512dq accordingly.
16019 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16020 OPTION_MASK_ISA_AVX512DQ.
16021 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16022 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16023 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16024 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16025 * config/i386/i386.h (TARGET_AVX512DQ): Define.
16026 (TARGET_AVX512DQ_P(x)): Ditto.
16027 * config/i386/i386.opt: Add mavx512dq.
16028
16029 2014-08-08 Richard Biener <rguenther@suse.de>
16030
16031 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16032 target_percent, target_percent_s): Export.
16033 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16034 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16035 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16036 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16037 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16038 Move to gimple-fold.c.
16039 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16040 strcat and strcpy.
16041 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16042 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16043 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16044 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16045 (rewrite_call_expr_array): Remove.
16046 (fold_builtin_sprintf_chk): Likewise.
16047 (fold_builtin_snprintf_chk): Likewise.
16048 (fold_builtin_varargs): Remove handling of sprintf_chk,
16049 vsprintf_chk, snprintf_chk and vsnprintf_chk.
16050 (gimple_fold_builtin_sprintf_chk): Remove.
16051 (gimple_fold_builtin_snprintf_chk): Likewise.
16052 (gimple_fold_builtin_varargs): Likewise.
16053 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16054 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16055 * gimple.c (gimple_seq_add_seq_without_update): New function.
16056 * gimple.h (gimple_seq_add_seq_without_update): Declare.
16057 * gimple-fold.c: Include output.h.
16058 (gsi_replace_with_seq_vops): New function, split out from ...
16059 (gimplify_and_update_call_from_tree): ... here.
16060 (replace_call_with_value): New function.
16061 (replace_call_with_call_and_fold): Likewise.
16062 (var_decl_component_p): Moved from builtins.c.
16063 (gimple_fold_builtin_memory_op): Moved from builtins.c
16064 fold_builtin_memory_op and rewritten to GIMPLE.
16065 (gimple_fold_builtin_memset): Likewise.
16066 (gimple_fold_builtin_strcpy): Likewise.
16067 (gimple_fold_builtin_strncpy): Likewise.
16068 (gimple_fold_builtin_strcat): Likewise.
16069 (gimple_fold_builtin_fputs): Likewise.
16070 (gimple_fold_builtin_memory_chk): Likewise.
16071 (gimple_fold_builtin_stxcpy_chk): Likewise.
16072 (gimple_fold_builtin_stxncpy_chk): Likewise.
16073 (gimple_fold_builtin_snprintf_chk): Likewise.
16074 (gimple_fold_builtin_sprintf_chk): Likewise.
16075 (gimple_fold_builtin_strlen): New function.
16076 (gimple_fold_builtin_with_strlen): New function split out from
16077 gimple_fold_builtin.
16078 (gimple_fold_builtin): Change signature and handle
16079 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16080 here. Call gimple_fold_builtin_with_strlen.
16081 (gimple_fold_call): Adjust.
16082
16083 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16084
16085 * calls.c (precompute_arguments): Check
16086 promoted_for_signed_and_unsigned_p and set the promoted mode.
16087 (promoted_for_signed_and_unsigned_p): New function.
16088 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16089 and set the promoted mode.
16090 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16091 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16092 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16093
16094
16095 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16096
16097 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16098 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16099 (expand_call): Likewise.
16100 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16101 to get promoted mode.
16102 * combine.c (record_promoted_value): Skip > 0 comparison with
16103 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16104 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16105 of SUBREG_PROMOTED_UNSIGNED_P.
16106 (convert_modes): Likewise.
16107 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16108 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16109 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16110 SUBREG_PROMOTED_UNSIGNED_SET.
16111 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16112 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16113 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16114 SUBREG_PROMOTED_SET.
16115 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16116 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16117 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16118 of SUBREG_PROMOTED_UNSIGNED_P.
16119 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16120 (SUBREG_PROMOTED_SET): New define.
16121 (SUBREG_PROMOTED_GET): Likewise.
16122 (SUBREG_PROMOTED_SIGN): Likewise.
16123 (SUBREG_PROMOTED_SIGNED_P): Likewise.
16124 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16125 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16126 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16127 instead of SUBREG_PROMOTED_UNSIGNED_GET.
16128 (nonzero_bits1): Skip > 0 comparison with the results as
16129 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16130 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16131 of !SUBREG_PROMOTED_UNSIGNED_P.
16132 * simplify-rtx.c (simplify_unary_operation_1): Use new
16133 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16134 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16135 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16136 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16137
16138 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
16139
16140 * ipa-devirt.c: Include gimple-pretty-print.h
16141 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16142 further tests.
16143 (decl_maybe_in_construction_p): Fix conditional on cdtor check
16144 (get_polymorphic_call_info): Fix return value
16145 (type_change_info): New sturcture based on ipa-prop
16146 variant.
16147 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16148 based on ipa-prop variant.
16149 (extr_type_from_vtbl_ptr_store): New function
16150 based on ipa-prop variant.
16151 (record_known_type): New function.
16152 (check_stmt_for_type_change): New function.
16153 (get_dynamic_type): New function.
16154 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16155 * tree-ssa-pre.c: ipa-utils.h
16156 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16157 machinery; sanity check with ipa-prop devirtualization.
16158 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16159 polymorphic flag.
16160
16161 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16162
16163 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16164 * alias.c, cfgexpand.c, cgraphbuild.c,
16165 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16166 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16167 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16168 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16169 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16170 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16171 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16172 dse.c, except.c, gengtype.c, gimple-expr.c,
16173 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16174 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
16175 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
16176 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
16177 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
16178 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
16179 pointer-set.h.
16180 * pointer-set.c: Remove file.
16181 * pointer-set.h: Remove file.
16182
16183 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16184
16185 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
16186 * config/arm/types.md (f_sels, f_seld): Delete.
16187
16188 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16189
16190 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
16191 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
16192 (aarch64_movdi_<mode>high): Likewise.
16193 (aarch64_mov<mode>high_di): Likewise.
16194 (aarch64_movdi_<mode>low): Likewise.
16195 (aarch64_mov<mode>low_di): Likewise.
16196 (aarch64_movtilow_tilow): Likewise.
16197 Add comment explaining usage of fp,simd attributes and of
16198 TARGET_FLOAT and TARGET_SIMD.
16199
16200 2014-08-07 Ian Bolton <ian.bolton@arm.com>
16201 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16202
16203 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
16204 Use MOVN when one of the half-words is 0xffff.
16205
16206 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16207
16208 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
16209
16210 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16211
16212 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
16213 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16214 (rfs_str): String corresponding to RFS_* constants.
16215 (rank_for_schedule_stats_t): New typedef.
16216 (rank_for_schedule_stats): New static variable.
16217 (rfs_result): New static function.
16218 (rank_for_schedule): Track statistics for deciding heuristics.
16219 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16220 static functions.
16221 (ready_sort): Use them for debug printouts.
16222 (schedule_block): Init statistics state. Print statistics on
16223 rank_for_schedule decisions.
16224
16225 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16226
16227 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16228
16229 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
16230
16231 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16232 constraint.
16233
16234 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16235
16236 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16237 function to not conflict.
16238 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16239 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16240 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16241 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16242 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16243 of pointer_map.
16244
16245 2014-08-07 Marek Polacek <polacek@redhat.com>
16246
16247 * fold-const.c (fold_binary_loc): Add folding of
16248 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16249
16250 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
16251
16252 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16253 instead of type size.
16254 (ASM_FINISH_DECLARE_OBJECT): Likewise.
16255
16256 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16257
16258 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16259 (*thumb1_movqi_insn): Likewise.
16260 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16261
16262 2014-08-07 Tom de Vries <tom@codesourcery.com>
16263
16264 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16265 (glibc_2_11_or_earlier): Remove effective-target keywords.
16266
16267 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16268
16269 * config/arm/arm.c (bdesc_2arg): Fix typo.
16270 (arm_atomic_assign_expand_fenv): Remove The default implementation.
16271
16272 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
16273
16274 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16275
16276 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
16277
16278 PR debug/61923
16279 * haifa-sched.c (advance_one_cycle): Fix dump.
16280 (schedule_block): Don't advance cycle if we are already at the
16281 beginning of the cycle.
16282
16283 2014-08-06 Martin Jambor <mjambor@suse.cz>
16284
16285 PR ipa/61393
16286 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16287
16288 2014-08-06 Richard Biener <rguenther@suse.de>
16289
16290 PR lto/62034
16291 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16292 SCCs here.
16293 (lto_input_tree): Pop SCCs here.
16294
16295 2014-08-06 Richard Biener <rguenther@suse.de>
16296
16297 PR tree-optimization/61320
16298 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16299 handle misaligned loads.
16300
16301 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
16302
16303 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16304 (aarch64_expand_vec_perm_const): Check for dup before zip.
16305
16306 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16307
16308 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16309 CONST_INT_P instead of GET_CODE and compare.
16310 (aarch64_select_cc_mode): Likewise.
16311 (aarch64_print_operand): Likewise.
16312 (aarch64_rtx_costs): Likewise.
16313 (aarch64_simd_valid_immediate): Likewise.
16314 (aarch64_simd_check_vect_par_cnst_half): Likewise.
16315 (aarch64_simd_emit_pair_result_insn): Likewise.
16316
16317 2014-08-05 David Malcolm <dmalcolm@redhat.com>
16318
16319 * gdbhooks.py (find_gcc_source_dir): New helper function.
16320 (class PassNames): New class, locating and parsing passes.def.
16321 (class BreakOnPass): New command "break-on-pass".
16322
16323 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
16324
16325 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
16326 getting olde.
16327
16328 2014-08-05 Richard Biener <rguenther@suse.de>
16329
16330 PR rtl-optimization/61672
16331 * emit-rtl.h (mem_attrs_eq_p): Declare.
16332 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
16333 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
16334 * cfgcleanup.c (merge_memattrs): Likewise.
16335 Include emit-rtl.h.
16336
16337 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16338
16339 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
16340 rather than singleton vectors.
16341 (vqdmlsls_lane_s32): Likewise.
16342
16343 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16344
16345 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
16346 Use VSDQ_HSI mode iterator.
16347 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16348 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
16349 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
16350 Use BUILTIN_VDQHS macro.
16351 (sqrdmulh_laneq): Likewise.
16352 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
16353 (vqdmlals_laneq_s32): Likewise.
16354 (vqdmlslh_laneq_s16): Likewise.
16355 (vqdmlsls_laneq_s32): Likewise.
16356 (vqdmulhh_laneq_s16): Likewise.
16357 (vqdmulhs_laneq_s32): Likewise.
16358 (vqrdmulhh_laneq_s16): Likewise.
16359 (vqrdmulhs_laneq_s32): Likewise.
16360
16361 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16362
16363 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
16364 (vmuld_laneq_f64): Likewise.
16365 (vmuls_laneq_f32): Likewise.
16366 (vmul_n_f64): Likewise.
16367 (vmuld_lane_f64): Reimplement in C.
16368 (vmuls_lane_f32): Likewise.
16369
16370 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16371
16372 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
16373 to reservation.
16374 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
16375
16376 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16377
16378 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
16379 (rbitsi2): Likewise.
16380 (*arm_rev): Set predicable and predicable_short_it attributes.
16381
16382 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16383
16384 * convert.c (convert_to_integer): Guard transformation to lrint by
16385 -fno-math-errno.
16386
16387 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16388
16389 * config/aarch64/aarch64-builtins.c
16390 (aarch64_simd_builtin_type_mode): Delete.
16391 (v8qi_UP): Remap to V8QImode.
16392 (v4hi_UP): Remap to V4HImode.
16393 (v2si_UP): Remap to V2SImode.
16394 (v2sf_UP): Remap to V2SFmode.
16395 (v1df_UP): Remap to V1DFmode.
16396 (di_UP): Remap to DImode.
16397 (df_UP): Remap to DFmode.
16398 (v16qi_UP):V16QImode.
16399 (v8hi_UP): Remap to V8HImode.
16400 (v4si_UP): Remap to V4SImode.
16401 (v4sf_UP): Remap to V4SFmode.
16402 (v2di_UP): Remap to V2DImode.
16403 (v2df_UP): Remap to V2DFmode.
16404 (ti_UP): Remap to TImode.
16405 (ei_UP): Remap to EImode.
16406 (oi_UP): Remap to OImode.
16407 (ci_UP): Map to CImode.
16408 (xi_UP): Remap to XImode.
16409 (si_UP): Remap to SImode.
16410 (sf_UP): Remap to SFmode.
16411 (hi_UP): Remap to HImode.
16412 (qi_UP): Remap to QImode.
16413 (aarch64_simd_builtin_datum): Make mode a machine_mode.
16414 (VAR1): Build builtin name.
16415 (aarch64_init_simd_builtins): Remove dead code.
16416
16417 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16418
16419 * graphite-isl-ast-to-gimple.c:
16420 (set_options): New function.
16421 (scop_to_isl_ast): Add calling of set_options.
16422
16423 2014-08-05 Jakub Jelinek <jakub@redhat.com>
16424
16425 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
16426 (analyze_iv_to_split_insn): Don't initialize them.
16427 (get_ivts_expr): Removed.
16428 (allocate_basic_variable, insert_base_initialization): Use
16429 SET_SRC instead of *get_ivts_expr.
16430 (split_iv): Use &SET_SRC instead of get_ivts_expr.
16431
16432 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16433
16434 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
16435 (translate_isl_ast_for_loop): Add checking of the
16436 flag_loop_parallelize_all.
16437 (ast_build_before_for): New function.
16438 (scop_to_isl_ast): Add checking of the
16439 flag_loop_parallelize_all.
16440 * graphite-dependences.c: Move the defenition of the
16441 scop_get_dependences from graphite-optimize-isl.c to this file.
16442 (apply_schedule_on_deps): Add checking of the ux's emptiness.
16443 (carries_deps): Add checking of the x's value.
16444 * graphite-optimize-isl.c: Move the defenition of the
16445 scop_get_dependences to graphite-dependences.c.
16446 * graphite-poly.h: Add declarations of scop_get_dependences
16447 and carries_deps.
16448
16449 2014-08-04 Rohit <rohitarulraj@freescale.com>
16450
16451 PR target/60102
16452 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
16453 names.
16454 (alt_reg_names): Likewise.
16455 (rs6000_dwarf_register_span): For SPE high registers, replace
16456 dwarf register numbers with GCC hard register numbers.
16457 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
16458 (rs6000_dbx_register_number): For SPE high registers, return dwarf
16459 register number for the corresponding GCC hard register number.
16460 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
16461 newly added GCC hard register numbers for SPE high registers.
16462 (DWARF_FRAME_REGISTERS): Likewise.
16463 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
16464 (DWARF_FRAME_REGNUM): Likewise.
16465 (FIXED_REGISTERS): Likewise.
16466 (CALL_USED_REGISTERS): Likewise.
16467 (CALL_REALLY_USED_REGISTERS): Likewise.
16468 (REG_ALLOC_ORDER): Likewise.
16469 (enum reg_class): Likewise.
16470 (REG_CLASS_NAMES): Likewise.
16471 (REG_CLASS_CONTENTS): Likewise.
16472 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
16473
16474 2014-08-04 Richard Biener <rguenther@suse.de>
16475
16476 * gimple-fold.h (gimple_fold_builtin): Remove.
16477 * gimple-fold.c (gimple_fold_builtin): Make static.
16478 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
16479 fold_stmt, not gimple_fold_builtin.
16480
16481 2014-08-04 Martin Liska <mliska@suse.cz>
16482
16483 * cgraph.h (csi_end_p): Removed.
16484 (csi_next): Likewise.
16485 (csi_node): Likewise.
16486 (csi_start): Likewise.
16487 (cgraph_node_in_set_p): Likewise.
16488 (cgraph_node_set_size): Likewise.
16489 (vsi_end_p): Likewise.
16490 (vsi_next): Likewise.
16491 (vsi_node): Likewise.
16492 (vsi_start): Likewise.
16493 (varpool_node_set_size): Likewise.
16494 (cgraph_node_set_nonempty_p): Likewise.
16495 (varpool_node_set_nonempty_p): Likewise.
16496 * cgraphunit.c (cgraph_process_new_functions): vec replaces
16497 cgraph_node_set.
16498 * ipa-inline-transform.c: Likewise.
16499 * ipa-utils.c (cgraph_node_set_new): Removed.
16500 (cgraph_node_set_add): Likewise.
16501 (cgraph_node_set_remove): Likewise.
16502 (cgraph_node_set_find): Likewise.
16503 (dump_cgraph_node_set): Likewise.
16504 (debug_cgraph_node_set): Likewise.
16505 (free_cgraph_node_set): Likewise.
16506 (varpool_node_set_new): Likewise.
16507 (varpool_node_set_add): Likewise.
16508 (varpool_node_set_remove): Likewise.
16509 (varpool_node_set_find): Likewise.
16510 (dump_varpool_node_set): Likewise.
16511 (free_varpool_node_set): Likewise.
16512 (debug_varpool_node_set): Likewise.
16513 * tree-emutls.c (struct tls_var_data):
16514 (emutls_index): Removed.
16515 (emutls_decl): Likewise.
16516 (gen_emutls_addr): Function implementation uses newly added
16517 hash_map<varpool_node *, tls_var_data>.
16518 (clear_access_vars): Likewise.
16519 (create_emultls_var): Likewise.
16520 (ipa_lower_emutls): Likewise.
16521 (reset_access): New function.
16522
16523 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16524
16525 * config/i386/i386.c (ix86_option_override_internal): Add
16526 PTA_RDRND and PTA_MOVBE for bdver4.
16527
16528 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16529 James Greenhalgh <james.greenhalgh@arm.com>
16530
16531 * doc/md.texi (clrsb): Document.
16532 (clz): Change reference to x into operand 1.
16533 (ctz): Likewise.
16534 (popcount): Likewise.
16535
16536 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16537
16538 PR target/61713
16539 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
16540 move to subtarget in serial version if result is ignored.
16541
16542 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16543 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16544
16545 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
16546 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
16547 (sched_analyze_insn): Update use of try_group_insn to
16548 sched_macro_fuse_insns.
16549 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
16550 arguments that are not conditional jumps.
16551
16552 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16553
16554 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
16555 family information. Handle BTVER2 cpu with cpuid family value.
16556
16557 2014-08-04 Tom de Vries <tom@codesourcery.com>
16558
16559 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16560 (glibc_2_11_or_earlier): Document effective-target keywords.
16561
16562 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16563
16564 * ipa-devirt.c (odr_type_warn_count): Add type.
16565 (possible_polymorphic_call_targets): Set it.
16566 (ipa_devirt): Use it.
16567
16568 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16569
16570 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16571 Document.
16572 * ipa-devirt.c: Include hash-map.h
16573 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16574 (clear_speculation): Break out of ...
16575 (get_class_context): ... here; speed up handling obviously useless
16576 speculations.
16577 (odr_type_warn_count, decl_warn_count): New structures.
16578 (final_warning_record): New structure.
16579 (final_warning_records): New static variable.
16580 (possible_polymorphic_call_targets): Cleanup handling of
16581 speculative info; do not build speculation when user do not care;
16582 record info about warnings when asked for.
16583 (add_decl_warning): New function.
16584 (type_warning_cmp): New function.
16585 (decl_warning_cmp): New function.
16586 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16587 (gate): Enable pass when warnings are requested.
16588 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16589 options.
16590
16591 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16592
16593 * hash-map.h (default_hashmap_traits::mark_key_deleted):
16594 Fix cast.
16595 (hash_map::remove): New method.
16596 (hash_map::traverse): New method.
16597 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16598 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16599 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16600 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16601 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16602 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16603 pointer_map.
16604
16605 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16606
16607 * hash-set.h: new File.
16608 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16609 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16610 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16611 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16612 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16613 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16614 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16615 varpool.c: Use hash_set instead of pointer_set.
16616
16617 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
16618
16619 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16620
16621 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16622
16623 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16624 for frame access when strict_p is false.
16625
16626 2014-08-01 Renlin Li <renlin.li@arm.com>
16627 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16628
16629 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16630 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16631 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16632 Declaration.
16633 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16634 predicate.
16635 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16636 aarch64_mem_pair_offset.
16637
16638 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16639
16640 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16641 offset.
16642 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16643 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16644
16645 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
16646
16647 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16648
16649 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
16650
16651 PR regression/61510
16652 * cgraphunit.c (analyze_functions): Use get_create rather than get
16653 for decls which are clones of abstract functions.
16654
16655 2014-08-01 Martin Liska <mliska@suse.cz>
16656
16657 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
16658 * ipa-prop.h (count_formal_params): Global function created from static.
16659 * ipa-prop.c (count_formal_params): Likewise.
16660 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
16661 profiles for semantically equivalent functions.
16662 * passes.c (do_per_function): If we load body of a function
16663 during WPA, this condition should behave same.
16664 * varpool.c (ctor_for_folding): More tolerant assert for variable
16665 aliases created during WPA.
16666
16667 2014-08-01 Martin Liska <mliska@suse.cz>
16668
16669 * doc/invoke.texi (Options That Control Optimization): Documentation
16670 for -foptimize-strlen introduced. Optimization levels default options
16671 fixed.
16672
16673 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16674
16675 * opts.c (common_handle_option): Handle -fsanitize=alignment.
16676 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16677 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16678 type to bool.
16679 * stor-layout.h (min_align_of_type): New prototype.
16680 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16681 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
16682 check.
16683 * ubsan.c: Include builtins.h.
16684 (ubsan_expand_bounds_ifn): Change return type to bool,
16685 always return true.
16686 (ubsan_expand_null_ifn): Change return type to bool, change
16687 argument to gimple_stmt_iterator *. Handle both null and alignment
16688 sanitization, take type from ckind argument's type rather than
16689 first argument.
16690 (instrument_member_call): Removed.
16691 (instrument_mem_ref): Remove t argument, add mem and base arguments.
16692 Handle both null and alignment sanitization, don't say whole
16693 struct access is member access. Build 3 argument IFN_UBSAN_NULL
16694 call instead of 2 argument.
16695 (instrument_null): Adjust instrument_mem_ref caller. Don't
16696 instrument calls here.
16697 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16698 like SANITIZE_NULL.
16699 * stor-layout.c (min_align_of_type): New function.
16700 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16701 Or it into SANITIZE_UNDEFINED.
16702 * doc/invoke.texi (-fsanitize=alignment): Document.
16703
16704 2014-07-31 Andi Kleen <ak@linux.intel.com>
16705
16706 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
16707
16708 2014-07-31 Andi Kleen <ak@linux.intel.com>
16709
16710 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
16711 inchash.
16712 (vn_reference_compute_hash): Dito.
16713 (vn_nary_op_compute_hash): Dito.
16714 (vn_phi_compute_hash): Dito.
16715 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
16716
16717 2014-07-31 Andi Kleen <ak@linux.intel.com>
16718
16719 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
16720 Rename to inchash:add_expr_commutative. Convert to inchash.
16721 (iterative_hash_hashable_expr): Rename to
16722 inchash:add_hashable_expr. Convert to inchash.
16723 (avail_expr_hash): Dito.
16724
16725 2014-07-31 Andi Kleen <ak@linux.intel.com>
16726
16727 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
16728 Convert to inchash.
16729
16730 2014-07-31 Andi Kleen <ak@linux.intel.com>
16731
16732 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
16733
16734 2014-07-31 Andi Kleen <ak@linux.intel.com>
16735
16736 * Makefile.in (OBJS): Add rtlhash.o
16737 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
16738 (loc_checksum): Dito.
16739 (loc_checksum_ordered): Dito.
16740 (hash_loc_operands): Dito.
16741 (hash_locs): Dito.
16742 (hash_loc_list): Dito.
16743 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
16744 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
16745 * rtlhash.c: New file.
16746 * rtlhash.h: New file.
16747
16748 2014-07-31 Andi Kleen <ak@linux.intel.com>
16749
16750 * inchash.h (inchash): Change inchash class to namespace.
16751 (class hash): ... Rename from inchash.
16752 (add_object): Move from macro to class template.
16753 * lto-streamer-out.c (hash_tree): Change inchash
16754 to inchash::hash.
16755 * tree.c (build_type_attribute_qual_variant): Dito.
16756 (type_hash_list): Dito.
16757 (attribute_hash_list): Dito.
16758 (iterative_hstate_expr): Rename to inchash::add_expr
16759 (build_range_type_1): Change inchash to inchash::hash
16760 and use hash::add_expr.
16761 (build_array_type_1): Dito.
16762 (build_function_type): Dito
16763 (build_method_type_directly): Dito.
16764 (build_offset_type): Dito.
16765 (build_complex_type): Dito.
16766 (make_vector_type): Dito.
16767 * tree.h (iterative_hash_expr): Dito.
16768
16769 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
16770
16771 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
16772
16773 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16774
16775 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
16776 correct alphabetical position.
16777 (vpaddd_f64): Rewrite using builtins.
16778 (vpaddd_s64): Move to correct alphabetical position.
16779 (vpaddd_u64): New.
16780
16781 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
16782
16783 PR target/61844
16784 * config/sh/sh.c (sh_legitimate_address_p,
16785 sh_legitimize_reload_address): Handle reg+reg address modes when
16786 ALLOW_INDEXED_ADDRESS is false.
16787 * config/sh/predicates.md (general_movsrc_operand,
16788 general_movdst_operand): Likewise.
16789
16790 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16791
16792 * config/aarch64/aarch64-builtins.c
16793 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
16794 BYTES_BIG_ENDIAN.
16795
16796 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16797
16798 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
16799 the generated mask based on BYTES_BIG_ENDIAN.
16800 (aarch64_simd_check_vect_par_cnst_half): New.
16801 * config/aarch64/aarch64-protos.h
16802 (aarch64_simd_check_vect_par_cnst_half): New.
16803 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
16804 the check out to aarch64_simd_check_vect_par_cnst_half.
16805 (vect_par_cnst_lo_half): Likewise.
16806 * config/aarch64/aarch64-simd.md
16807 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
16808 (move_hi_quad_<mode>): Always generate a low mask.
16809
16810 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16811
16812 * doc/invoke.texi (AVR Options): Add documentation about
16813 __AVR_DEVICE_NAME__ built-in macro.
16814
16815 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
16816
16817 PR target/61948
16818 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
16819 constraints are satisfied.
16820 (<shift>di3_neon): Likewise.
16821
16822 2014-07-31 Richard Biener <rguenther@suse.de>
16823
16824 PR tree-optimization/61964
16825 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
16826 by structural equality.
16827
16828 2014-07-31 Yury Gribov <y.gribov@samsung.com>
16829
16830 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
16831 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
16832 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
16833 New enums.
16834 * gcc.c (sanitize_spec_function): Support new option.
16835 (SANITIZER_SPEC): Remove now redundant check.
16836 * opts.c (common_handle_option): Support new option.
16837 (finish_options): Check for incompatibilities.
16838 * toplev.c (process_options): Split userspace-specific checks.
16839
16840 2014-07-31 Richard Biener <rguenther@suse.de>
16841
16842 * lto-streamer.h (struct output_block): Remove global.
16843 (struct data_in): Remove labels, num_named_labels and
16844 num_unnamed_labels.
16845 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
16846 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
16847
16848 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
16849
16850 PR c++/60517
16851 * common.opt (-Wreturn-local-addr): Moved from c.opt.
16852 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
16853 (isolate_path): New argument to avoid inserting a trap.
16854 (find_implicit_erroneous_behaviour): Handle returning the address
16855 of a local variable.
16856 (find_explicit_erroneous_behaviour): Likewise.
16857
16858 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
16859
16860 PR lto/61868
16861 * toplev.c (init_random_seed): Move piece of code never called to
16862 set_random_seed.
16863 (set_random_seed): see above.
16864
16865 2014-07-31 Tom de Vries <tom@codesourcery.com>
16866
16867 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
16868
16869 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
16870
16871 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
16872 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
16873
16874 2014-07-31 Richard Biener <rguenther@suse.de>
16875
16876 * data-streamer.h (streamer_write_data_stream): Declare here,
16877 renamed from ...
16878 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
16879 * lto-cgraph.c (lto_output_node): Adjust.
16880 (lto_output_varpool_node): Likewise.
16881 * data-streamer-out.c (streamer_string_index): Likewise.
16882 (streamer_write_data_stream, lto_append_block): Move from ...
16883 * lto-section-out.c (lto_output_data_stream,
16884 lto_append_block): ... here.
16885
16886 2014-07-30 Mike Stump <mikestump@comcast.net>
16887
16888 * configure.ac: Also check for popen.
16889 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
16890 * configure: Regenerate.
16891 * config.in: Regenerate.
16892
16893 2014-07-30 Martin Jambor <mjambor@suse.cz>
16894
16895 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
16896 parameter to gimple.
16897
16898 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16899
16900 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
16901 address as second parameter to __tpf_eh_return routine.
16902
16903 2014-07-30 Jiong Wang <jiong.wang@arm.com>
16904
16905 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
16906 Thumb2.
16907
16908 2014-07-30 Tom Tromey <tromey@redhat.com>
16909
16910 PR c/59855
16911 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
16912 * doc/extend.texi (Type Attributes): Document designated_init
16913 attribute.
16914
16915 2014-07-30 Roman Gareev <gareevroman@gmail.com>
16916
16917 * graphite-isl-ast-to-gimple.c:
16918 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
16919 (gcc_expression_from_isl_expression): Pass type to
16920 gcc_expression_from_isl_ast_expr_id.
16921
16922 2014-07-30 Richard Biener <rguenther@suse.de>
16923
16924 * lto-streamer.h (lto_write_data): New function.
16925 * langhooks.c (lhd_append_data): Do not free block.
16926 * lto-section-out.c (lto_write_data): New function writing
16927 raw data to the current section.
16928 (lto_write_stream): Adjust for langhook semantic change.
16929 (lto_destroy_simple_output_block): Write header directly.
16930 * lto-opts.c (lto_write_options): Write options directly.
16931 * lto-streamer-out.c (produce_asm): Write heaeder directly.
16932 (lto_output_toplevel_asms): Likewise.
16933 (copy_function_or_variable): Copy data directly.
16934 (write_global_references): Output index table directly.
16935 (lto_output_decl_state_refs): Likewise.
16936 (write_symbol): Write data directly.
16937 (produce_symtab): Adjust.
16938 (produce_asm_for_decls): Output header and refs directly.
16939
16940 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
16941
16942 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
16943 to speculative_targets
16944 (get_class_context): Fix handling of contextes without outer type;
16945 avoid matching non-polymorphic types in LTO.
16946 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
16947 parameter to speculative_targetsp; handle speculation.
16948 (dump_possible_polymorphic_call_targets): Update dumping.
16949
16950 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
16951
16952 * common.opt (Wodr): Enable by default.
16953
16954 2014-07-29 Olivier Hainque <hainque@adacore.com>
16955
16956 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
16957
16958 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
16959
16960 PR bootstrap/61914
16961 * gengtype.c (strtoken): New function.
16962 (create_user_defined_type): Replace strtok with strtoken.
16963
16964 2014-07-29 Nathan Sidwell <nathan@acm.org>
16965
16966 * gcov-io.c (gcov_var): Make hidden.
16967 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
16968 (gcov_do_dump): Declare.
16969 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
16970
16971 2014-07-29 Martin Jambor <mjambor@suse.cz>
16972
16973 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
16974 parameter to gimple.
16975 (sra_modify_assign): Likewise.
16976
16977 2014-07-29 Richard Biener <rguenther@suse.de>
16978
16979 PR middle-end/52478
16980 * expr.c (expand_expr_real_2): Revert last change.
16981
16982 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
16983
16984 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
16985 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
16986 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
16987 call.
16988 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
16989 (contains_type_p): Forward declare.
16990 (polymorphic_call_target_hasher::hash): Hash speculative info.
16991 (polymorphic_call_target_hasher::equal): Compare speculative info.
16992 (get_class_context): Handle speuclation.
16993 (contains_type_p): Update.
16994 (get_polymorphic_call_info_for_decl): Update.
16995 (walk_ssa_copies): Break out from ...
16996 (get_polymorphic_call_info): ... here; set speculative context
16997 before giving up.
16998 * ipa-prop.c (ipa_write_indirect_edge_info,
16999 ipa_read_indirect_edge_info): Stream speculative context.
17000 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17001 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17002 SPECULATIVE_MAYBE_DERIVED_TYPE).
17003 (possible_polymorphic_call_targets overriders): Update.
17004 (dump_possible_polymorphic_call_targets overriders): Update.
17005 (dump_possible_polymorphic_call_target_p overriders): Update.
17006
17007 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17008
17009 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17010 ipa-devirt path; fix thinko there.
17011
17012 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
17013
17014 * config/i386/i386.c (ix86_return_in_memory): Replace one
17015 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17016
17017 2014-07-28 Marek Polacek <polacek@redhat.com>
17018
17019 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
17020
17021 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
17022
17023 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17024 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17025 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17026 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17027 (USE_LD_AS_NEEDED): Likewise.
17028 (ASM_APP_ON): Likewise.
17029 (ASM_APP_OFF): Likewise.
17030 (TARGET_POSIX_IO): Likewise.
17031 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17032 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17033 (USE_LD_AS_NEEDED): Likewise.
17034 (ASM_APP_ON): Likewise.
17035 (ASM_APP_OFF): Likewise.
17036 (TARGET_POSIX_IO): Likewise.
17037
17038 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
17039
17040 PR middle-end/61734
17041 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17042 operators other than the equality operators.
17043
17044 2014-07-28 Richard Biener <rguenther@suse.de>
17045
17046 PR middle-end/52478
17047 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17048 sure to register SImode ones, not only >= word_mode ones.
17049 * expr.c (expand_expr_real_2): When expanding -ftrapv
17050 binops do not use OPTAB_LIB_WIDEN.
17051
17052 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
17053
17054 PR middle-end/61919
17055 * tree-outof-ssa.c (insert_partition_copy_on_edge)
17056 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17057 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17058 inserting them in the insn stream.
17059
17060 2014-07-28 Marek Polacek <polacek@redhat.com>
17061
17062 PR middle-end/61913
17063 * common.opt (Wodr): Add Var.
17064
17065 2014-07-28 Richard Biener <rguenther@suse.de>
17066
17067 PR tree-optimization/61921
17068 * tree-ssa-structalias.c (create_variable_info_for_1): Check
17069 if there is a varpool node before dereferencing it.
17070
17071 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17072
17073 * graphite-sese-to-poly.c:
17074 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17075 id of the pbb), which contains pointer to the pbb1.
17076
17077 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17078
17079 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17080
17081 * graphite-isl-ast-to-gimple.c:
17082 (graphite_create_new_guard): New function.
17083 (translate_isl_ast_node_if): New function.
17084 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17085
17086 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17087
17088 2014-07-27 Anthony Green <green@moxielogic.com>
17089
17090 * config.gcc: Add moxie-*-moxiebox* configuration.
17091 * config/moxie/moxiebox.h: New file.
17092
17093 2014-07-26 Andrew Pinski <apinski@cavium.com>
17094
17095 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17096 from the read only register.
17097
17098 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17099
17100 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17101 as the allocation class if it isn't likely to be spilled.
17102
17103 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17104
17105 * rtl.h (tls_referenced_p): Declare.
17106 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17107 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17108 (mips_cannot_force_const_mem): Use tls_referenced_p.
17109 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17110 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17111 instead of pa_tls_referenced_p.
17112 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17113 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17114 (pa_legitimate_constant_p): Likewise.
17115 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17116 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17117 (rs6000_cannot_force_const_mem, rs6000_emit_move)
17118 (rs6000_address_for_altivec): Use tls_referenced_p instead of
17119 rs6000_tls_referenced_p.
17120 (rs6000_tls_symbol_ref_1): Delete.
17121
17122 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
17123
17124 PR target/44551
17125 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17126 Optimize inverse of a VEC_CONCAT.
17127
17128 2014-07-25 Xinliang David Li <davidxl@google.com>
17129
17130 * params.def: New parameter.
17131 * coverage.c (get_coverage_counts): Check new flag.
17132 (coverage_compute_profile_id): Check new flag.
17133 (coverage_begin_function): Check new flag.
17134 (coverage_end_function): Check new flag.
17135 * value-prof.c (coverage_node_map_initialized_p): New function.
17136 (init_node_map): Populate map with all functions.
17137 * doc/invoke.texi: Document new parameter.
17138
17139 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
17140 Richard Biener <rguenther@suse.de>
17141
17142 * lto-streamer-out.c (struct sccs): Turn to ...
17143 (class DFS): ... this one; refactor the DFS walk so it can
17144 be re-done on per-SCC basis.
17145 (DFS::DFS): New constructor.
17146 (DFS::~DFS): New destructor.
17147 (hash_tree): Add new MAP argument holding in-SCC hash values;
17148 remove POINTER_TYPE hashing hack.
17149 (scc_entry_compare): Rename to ...
17150 (DFS::scc_entry_compare): ... this one.
17151 (hash_scc): Rename to ...
17152 (DFS::hash_scc): ... this one; pass output_block instead
17153 of streamer_cache; work harder to get unique and stable SCC
17154 hashes.
17155 (DFS_write_tree): Rename to ...
17156 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17157 (lto_output_tree): Update.
17158
17159 2014-07-25 Andi Kleen <ak@linux.intel.com>
17160
17161 * lto-streamer-out.c (hash_tree): Convert to inchash.
17162
17163 2014-07-25 Andi Kleen <ak@linux.intel.com>
17164
17165 * tree.c (build_type_attribute_qual_variant): Use inchash.
17166 (type_hash_list): Dito.
17167 (attribute_hash_list): Dito
17168 (iterative_hstate_expr): Dito.
17169 (iterative_hash_expr): Dito.
17170 (build_range_type_1): Dito.
17171 (build_array_type_1): Dito.
17172 (build_function_type): Dito.
17173 (build_method_type_directly): Dito.
17174 (build_offset_type): Dito.
17175 (build_complex_type): Dito.
17176 (make_vector_type): Dito.
17177 * tree.h (iterative_hash_expr): Add compat wrapper.
17178 (iterative_hstate_expr): Add.
17179
17180 2014-07-25 Andi Kleen <ak@linux.intel.com>
17181
17182 * Makefile.in (OBJS): Add inchash.o.
17183 (PLUGIN_HEADERS): Add inchash.h.
17184 * ipa-devirt.c: Include inchash.h.
17185 * lto-streamer-out.c: Dito.
17186 * tree-ssa-dom.c: Dito.
17187 * tree-ssa-pre.c: Dito.
17188 * tree-ssa-sccvn.c: Dito.
17189 * tree-ssa-tail-merge.c: Dito.
17190 * asan.c: Dito.
17191 * tree.c (iterative_hash_hashval_t): Move to ...
17192 (iterative_hash_host_wide_int): Move to ...
17193 * inchash.c: Here. New file.
17194 * tree.h (iterative_hash_hashval_t): Move to ...
17195 (iterative_hash_host_wide_int): Move to ...
17196 * inchash.h: Here. New file.
17197
17198 2014-07-25 Richard Biener <rguenther@suse.de>
17199
17200 PR middle-end/61762
17201 PR middle-end/61894
17202 * fold-const.c (native_encode_int): Add and handle offset
17203 parameter to do partial encodings of expr.
17204 (native_encode_fixed): Likewise.
17205 (native_encode_real): Likewise.
17206 (native_encode_complex): Likewise.
17207 (native_encode_vector): Likewise.
17208 (native_encode_string): Likewise.
17209 (native_encode_expr): Likewise.
17210 * fold-const.c (native_encode_expr): Add offset parameter
17211 defaulting to -1.
17212 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17213 (fold_ctor_reference): Handle all reads from tcc_constant
17214 ctors.
17215
17216 2014-07-25 Richard Biener <rguenther@suse.de>
17217
17218 * tree-inline.c (estimate_move_cost): Mark speed_p argument
17219 as possibly unused.
17220
17221 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17222
17223 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17224
17225 2014-07-24 Kyle McMartin <kyle@redhat.com>
17226
17227 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17228
17229 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17230
17231 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17232 Add prototype.
17233 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17234 function.
17235 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17236 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17237 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17238
17239 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17240
17241 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17242 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17243 aggregate types. Instead, *all* aggregate types, except for single-
17244 element or homogeneous float/vector aggregates, are quadword-aligned
17245 if required by their type alignment. Issue -Wpsabi note when a type
17246 is now treated differently than before.
17247
17248 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17249
17250 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17251 does not fit fully into floating-point registers, and there is still
17252 space in the register parameter area, use GPRs to pass those parts
17253 of the argument. Issue -Wpsabi note if any parameter is now treated
17254 differently than before.
17255 (rs6000_arg_partial_bytes): Update.
17256
17257 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
17258
17259 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17260
17261 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17262
17263 * rtl.h (target_rtl): Remove lang_dependent_initialized.
17264 * toplev.c (initialize_rtl): Don't use it. Move previously
17265 "language-dependent" calls to...
17266 (backend_init): ...here.
17267 (lang_dependent_init_target): Don't set lang_dependent_initialized.
17268 Assert that RTL initialization hasn't happend yet.
17269
17270 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17271
17272 PR rtl-optimization/61629
17273 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17274 they have already been initialized.
17275
17276 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17277
17278 PR middle-end/61268
17279 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17280 DECL_INCOMING_RTL and entry_parm.
17281 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17282 * calls.c (load_register_parameters): Likewise argument values.
17283 (emit_library_call_value_1, store_one_arg): Likewise argument
17284 save areas.
17285 * config/i386/i386.c (assign_386_stack_local): Likewise the local
17286 stack slot.
17287 * explow.c (validize_mem): Modify the argument in-place.
17288
17289 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17290
17291 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17292 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17293
17294 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17295
17296 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17297 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17298
17299 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17300
17301 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17302 (aarch64_save_callee_saves): New parameter "skip_wb".
17303 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17304
17305 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17306
17307 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17308 "wb_candidate2".
17309 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
17310
17311 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17312
17313 * graphite-isl-ast-to-gimple.c:
17314 (graphite_create_new_loop): Add calling of isl_id_free to properly
17315 decrement reference counts.
17316
17317 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
17318
17319 2014-07-24 Martin Liska <mliska@suse.cz>
17320 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
17321 function used.
17322 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
17323 (rs6000_code_end): Likewise.
17324
17325 2014-07-24 Martin Liska <mliska@suse.cz>
17326
17327 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
17328 symtab_node funtion used.
17329 (rs6000_xcoff_declare_object_name): Likewise.
17330
17331 2014-07-24 Martin Liska <mliska@suse.cz>
17332
17333 * cgraphunit.c (compile): Correct function used.
17334
17335 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17336
17337 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
17338 as non-indexable.
17339
17340 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17341
17342 PR lto/61802
17343 * varasm.c (bss_initializer_p): Handle offlined ctors.
17344 (align_variable, get_variable_align): Likewise.
17345 (make_decl_one_only): Likewise.
17346 (default_binds_local_p_1): Likewise.
17347 (decl_binds_to_current_def_p): Likewise.
17348 (get_variable_section): Get constructor if it is offlined.
17349 (assemble_variable_contents): Sanity check that the caller
17350 streamed in the ctor in LTO.
17351
17352 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17353
17354 * graphite-isl-ast-to-gimple.c:
17355 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
17356 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
17357 isl_ast_op_pdiv_r to the different case.
17358
17359 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
17360
17361 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17362
17363 PR middle-end/61876
17364 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
17365 when flag_errno_math is on.
17366
17367 2014-07-24 Martin Liska <mliska@suse.cz>
17368
17369 * cgraph.h (varpool_node):
17370 (availability get_availability (void)):
17371 created from cgraph_variable_initializer_availability
17372 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
17373 created from: cgraph_variable_initializer_availability
17374 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
17375 (void finalize_named_section_flags (void)):
17376 created from varpool_finalize_named_section_flags
17377 (bool assemble_decl (void)): created from varpool_assemble_decl
17378 (void analyze (void)): created from varpool_analyze_node
17379 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
17380 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
17381 (void remove_initializer (void)): created from varpool_remove_initializer
17382 (tree get_constructor (void)): created from varpool_get_constructor
17383 (bool externally_visible_p (void)): created from varpool_externally_visible_p
17384 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
17385 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
17386 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
17387 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
17388 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
17389 (static bool output_variables (void)): created from varpool_output_variables
17390 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
17391 created from varpool_extra_name_alias
17392 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
17393 (static void dump_varpool (FILE *f)): created from dump_varpool
17394 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
17395 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
17396 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
17397 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
17398 (void assemble_aliases (void)): created from assemble_aliases
17399
17400 2014-07-24 Martin Liska <mliska@suse.cz>
17401
17402 * cgraph.h (symtab_node):
17403 (void register_symbol (void)): created from symtab_register_node
17404 (void remove (void)): created from symtab_remove_node
17405 (void dump (FILE *f)): created from dump_symtab_node
17406 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
17407 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
17408 (struct ipa_ref *add_reference (symtab_node *referred_node,
17409 enum ipa_ref_use use_type)): created from add_reference
17410 (struct ipa_ref *add_reference (symtab_node *referred_node,
17411 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
17412 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
17413 gimple stmt)): created from maybe_add_reference
17414 (bool semantically_equivalent_p (symtab_node *target)): created from
17415 symtab_semantically_equivalent_p
17416 (void remove_from_same_comdat_group (void)): created from
17417 remove_from_same_comdat_group
17418 (void add_to_same_comdat_group (symtab_node *old_node)): created from
17419 symtab_add_to_same_comdat_group
17420 (void dissolve_same_comdat_group_list (void)): created from
17421 symtab_dissolve_same_comdat_group_list
17422 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
17423 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
17424 created from symtab_alias_ultimate_target
17425 (inline symtab_node *next_defined_symbol (void)): created from
17426 symtab_next_defined_symbol
17427 (bool resolve_alias (symtab_node *target)): created from
17428 symtab_resolve_alias
17429 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
17430 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
17431 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
17432 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
17433 (void set_section (const char *section)): created from set_section_1
17434 (enum availability get_availability (void)): created from symtab_node_availability
17435 (void make_decl_local (void)): created from symtab_make_decl_local
17436 (bool real_symbol_p (void)): created from symtab_read_node
17437 (can_be_discarded_p (void)): created from symtab_can_be_discarded
17438 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
17439 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
17440 symtab_in_same_comdat_p;
17441 (bool address_taken_from_non_vtable_p (void)): created from
17442 address_taken_from_non_vtable_p
17443 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
17444 (static void dump_table (FILE *)): created from dump_symtab
17445 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
17446 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
17447 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
17448 symtab_used_from_object_file_p
17449 (void dump_base (FILE *)): created from dump_symtab_base
17450 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
17451 (void unregister (void)): created from symtab_unregister_node
17452 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
17453 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
17454 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
17455 symtab_nonoverwritable_alias_1
17456 * cgraph.h (cgraph_node):
17457 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
17458 created from cgraph_remove_node_and_inline_clones
17459 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
17460 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
17461 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
17462 (cgraph_node *function_symbol (enum availability *avail = NULL)):
17463 created from cgraph_function_node
17464 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
17465 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
17466 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
17467 created from cgraph_create_clone
17468 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
17469 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
17470 created from cgraph_create_virtual_clone
17471 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
17472 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
17473 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
17474 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
17475 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
17476 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
17477 created from cgraph_function_version_info
17478 (struct cgraph_function_version_info *insert_new_function_version (void)):
17479 created from insert_new_cgraph_node_version
17480 (struct cgraph_function_version_info *function_version (void)): created from
17481 get_cgraph_node_version
17482 (void analyze (void)): created from analyze_function
17483 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
17484 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
17485 tree real_alias) cgraph_add_thunk
17486 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
17487 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
17488 created from cgraph_function_or_thunk_node
17489 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
17490 created from expand_thunk
17491 (void reset (void)): created from cgraph_reset_node
17492 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
17493 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
17494 (void remove (void)): created from cgraph_remove_node
17495 (void dump (FILE *f)): created from dump_cgraph_node
17496 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
17497 (bool get_body (void)): created from cgraph_get_body
17498 (void release_body (void)): created from cgraph_release_function_body
17499 (void unnest (void)): created from cgraph_unnest_node
17500 (void make_local (void)): created from cgraph_make_node_local
17501 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
17502 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
17503 gcov_type count, int freq)): created from cgraph_create_edge
17504 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
17505 gcov_type count, int freq)): created from cgraph_create_indirect_edge
17506 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
17507 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
17508 created from cgraph_create_edge_including_clones
17509 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
17510 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
17511 (void remove_callers (void)): created from cgraph_node_remove_callers
17512 (void remove_callees (void)): created from cgraph_node_remove_callees
17513 (enum availability get_availability (void)): created from cgraph_function_body_availability
17514 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
17515 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
17516 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
17517 (void call_duplication_hooks (cgraph_node *node2)): created from
17518 cgraph_call_node_duplication_hooks
17519 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
17520 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
17521 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
17522 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
17523 (void call_function_insertion_hooks (void)):
17524 created from cgraph_call_function_insertion_hooks
17525 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
17526 (bool local_p (void)): created from cgraph_local_node
17527 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
17528 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
17529 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
17530 (inline bool only_called_directly_or_aliased_p (void)):
17531 created from cgraph_only_called_directly_or_aliased_p
17532 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
17533 created from cgraph_will_be_removed_from_program_if_no_direct_calls
17534 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
17535 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
17536 (bool can_remove_if_no_direct_calls_p (void)):
17537 created from cgraph_can_remove_if_no_direct_calls_p
17538 (inline bool has_gimple_body_p (void)):
17539 created from cgraph_function_with_gimple_body_p
17540 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
17541 (static void dump_cgraph (FILE *f)): created from dump_cgraph
17542 (static inline void debug_cgraph (void)): created from debug_cgraph
17543 (static void record_function_versions (tree decl1, tree decl2)):
17544 created from record_function_versions
17545 (static void delete_function_version (tree decl)):
17546 created from delete_function_version
17547 (static void add_new_function (tree fndecl, bool lowered)):
17548 created from cgraph_add_new_function
17549 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
17550 (static cgraph_node * create (tree decl)): created from cgraph_create_node
17551 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
17552 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
17553 (static cgraph_node *get_for_asmname (tree asmname)):
17554 created from cgraph_node_for_asm
17555 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
17556 created from cgraph_same_body_alias
17557 (static bool used_from_object_file_p_worker (cgraph_node *node,
17558 void *): new function
17559 (static bool non_local_p (cgraph_node *node, void *)):
17560 created from cgraph_non_local_node_p_1
17561 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17562 created from verify_cgraph
17563 (static bool make_local (cgraph_node *node, void *)):
17564 created from cgraph_make_node_local
17565 (static cgraph_node *create_alias (tree alias, tree target)):
17566 created from cgraph_create_function_alias
17567 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17568 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17569 created from cgraph_create_edge_1
17570 * cgraph.h (varpool_node):
17571 (void remove (void)): created from varpool_remove_node
17572 (void dump (FILE *f)): created from dump_varpool_node
17573
17574 2014-07-24 Richard Biener <rguenther@suse.de>
17575
17576 PR ipa/61823
17577 * tree-ssa-structalias.c (create_variable_info_for_1):
17578 Use varpool_get_constructor.
17579 (create_variable_info_for): Likewise.
17580
17581 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17582
17583 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17584 subtract outgoing area size when restoring stack_pointer_rtx.
17585
17586 2014-07-24 Nick Clifton <nickc@redhat.com>
17587
17588 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17589 that operations are taking place in parallel.
17590 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17591
17592 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
17593
17594 * omp-low.c (extract_omp_for_data): Add missing break statement.
17595
17596 2014-07-24 Richard Biener <rguenther@suse.de>
17597
17598 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17599 * tree-inline.c (estimate_move_cost): Add speed_p parameter
17600 and adjust MOVE_RATIO query accordingly.
17601 (estimate_num_insns): Adjust callers.
17602 * ipa-prop.c (ipa_populate_param_decls): Likewise.
17603 * ipa-cp.c (gather_context_independent_values,
17604 estimate_local_effects): Likewise.
17605 * ipa-split.c (consider_split): Likewise.
17606
17607 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
17608
17609 * config/i386/driver-i386.c: Remove names of unused arguments and
17610 unnecessary unused attributes.
17611 * config/i386/host-mingw32.c: Likewise.
17612 * config/i386/i386.c: Likewise.
17613 * config/i386/winnt-stubs.c: Likewise.
17614 * config/i386/winnt.c: Likewise.
17615
17616 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17617
17618 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17619 (aarch64_gen_loadwb_pair): New helper function.
17620 (aarch64_expand_epilogue): Simplify code using new helper functions.
17621 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17622
17623 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17624
17625 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17626 (aarch64_gen_storewb_pair): New helper function.
17627 (aarch64_expand_prologue): Simplify code using new helper functions.
17628 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17629
17630 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17631
17632 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17633 Rename to aarch64_save_callee_saves, remove restore code.
17634 (aarch64_restore_callee_saves): New function.
17635
17636 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17637
17638 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17639 (aarch64_save_callee_saves): New function to handle reg save
17640 for both core and vectore regs.
17641
17642 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17643
17644 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17645 (aarch64_gen_store_pair): New helper function.
17646 (aarch64_save_or_restore_callee_save_registers)
17647 (aarch64_save_or_restore_fprs): Use new helper functions.
17648
17649 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17650
17651 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17652 (aarch64_save_or_restore_callee_save_registers)
17653 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
17654
17655 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17656
17657 * config/aarch64/aarch64.c
17658 (aarch64_save_or_restore_callee_save_registers)
17659 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
17660
17661 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17662
17663 * config/aarch64/aarch64.c
17664 (aarch64_save_or_restore_callee_save_registers)
17665 (aarch64_save_or_restore_fprs): Remove 'increment'.
17666
17667 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17668
17669 * config/aarch64/aarch64.c
17670 (aarch64_save_or_restore_callee_save_registers)
17671 (aarch64_save_or_restore_fprs): Use register offset in
17672 cfun->machine->frame.reg_offset.
17673
17674 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17675
17676 * config/aarch64/aarch64.c
17677 (aarch64_save_or_restore_callee_save_registers)
17678 (aarch64_save_or_restore_fprs): Remove base_rtx.
17679
17680 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17681
17682 * config/aarch64/aarch64.c
17683 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17684 to 'start_offset'. Remove local variable 'start_offset'.
17685
17686 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17687
17688 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17689 type to HOST_WIDE_INT.
17690
17691 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17692
17693 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17694 (aarch64_save_or_restore_fprs)
17695 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17696
17697 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17698
17699 * config/arm/t-rtems-eabi: Add
17700 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17701 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17702 mbig-endian/mthumb/march=armv7-r, and
17703 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
17704 multilibs.
17705
17706 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17707 Chris Johns <chrisj@rtems.org>
17708 Joel Sherrill <joel.sherrill@oarcorp.com>
17709
17710 * config.gcc: Add nios2-*-rtems*.
17711 * config/nios2/rtems.h: New file.
17712 * gcc/config/nios2/t-rtems: New file.
17713
17714 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
17715
17716 PR target/61396
17717 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
17718 constant numbers, not general constants.
17719 (rs6000_expand_vector_init): Ditto.
17720
17721 2014-07-23 Nathan Sidwell <nathan@acm.org>
17722
17723 * gcov-tool.c (gcov_list): Declare here.
17724 (set_gcov_list): Remove.
17725 (gcov_output_files): Set gcov_list directly.
17726
17727 2014-07-23 Host Schirmeier <horst@schirmeier.com>
17728
17729 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
17730
17731 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17732
17733 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
17734 callee-saved registers are available for padding purpose
17735 and r3 is not mandatory, then prefer use those callee-saved
17736 instead of r3.
17737
17738 2014-07-23 Richard Biener <rguenther@suse.de>
17739
17740 * params.def (PARAM_MAX_COMBINE_INSNS): New.
17741 * combine.c: Include statistics.h and params.h.
17742 (combine_instructions): Guard three and four insn combines
17743 with max-combine-insns value. Record statistics for combines
17744 performed.
17745 * doc/invoke.texi (max-combine-insns): Document new param.
17746
17747 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17748
17749 * graphite-isl-ast-to-gimple.c:
17750 (translate_isl_ast_node_block): New function.
17751 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
17752
17753 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
17754 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
17755
17756 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17757
17758 * graphite-isl-ast-to-gimple.c:
17759 (get_max_schedule_dimensions): New function.
17760 (extend_schedule): Likewise.
17761 (generate_isl_schedule): Add calling of extend_schedule and
17762 get_max_schedule_dimensions.
17763
17764 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17765
17766 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
17767 (case UNSPEC): Handle UNSPEC_RBIT.
17768
17769 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17770
17771 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
17772 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
17773
17774 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17775
17776 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
17777
17778 2014-07-22 Roman Gareev <gareevroman@gmail.com>
17779
17780 * graphite-isl-ast-to-gimple.c:
17781 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
17782 (ivs_params_clear):
17783 (build_iv_mapping): New function.
17784 (translate_isl_ast_node_user): Likewise.
17785 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
17786
17787 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
17788 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
17789 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
17790
17791 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17792
17793 PR target/55701
17794 * config/arm/arm.md (setmem): New pattern.
17795 * config/arm/arm-protos.h (struct tune_params): New fields.
17796 (arm_gen_setmem): New prototype.
17797 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17798 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17799 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17800 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17801 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17802 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17803 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17804 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17805 (arm_const_inline_cost): New function.
17806 (arm_block_set_max_insns): New function.
17807 (arm_block_set_non_vect_profit_p): New function.
17808 (arm_block_set_vect_profit_p): New function.
17809 (arm_block_set_unaligned_vect): New function.
17810 (arm_block_set_aligned_vect): New function.
17811 (arm_block_set_unaligned_non_vect): New function.
17812 (arm_block_set_aligned_non_vect): New function.
17813 (arm_block_set_vect, arm_gen_setmem): New functions.
17814
17815 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17816
17817 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
17818
17819 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
17820
17821 PR target/61855
17822 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
17823 out of #ifdef __OPTIMIZE__.
17824
17825 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
17826
17827 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
17828 different trapping status if -fnon-call-exceptions is enabled.
17829
17830 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
17831
17832 * expr.c (store_field): Handle VOIDmode for calls that return values
17833 in multiple locations.
17834
17835 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17836
17837 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
17838 (altivec_vsldoi_<mode>): Likewise.
17839
17840 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17841
17842 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
17843 to the number of characters in the line.
17844
17845 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17846
17847 * graphite-isl-ast-to-gimple.c: Add using of
17848 build_nonstandard_integer_type instead of int128_integer_type_node.
17849
17850 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
17851
17852 * toplev.c (output_stack_usage): Adjust the location of the warning.
17853
17854 2014-07-19 Daniel Cederman <cederman@gaisler.com>
17855
17856 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
17857 (*membar_storeload): Disable for LEON3.
17858
17859 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
17860
17861 PR rtl-optimization/61461
17862 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
17863
17864 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
17865
17866 PR target/61794
17867 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
17868 Fix instruction constraint.
17869 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
17870
17871 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
17872
17873 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
17874
17875 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
17876
17877 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
17878 GNU coding standards.
17879 (nds32_register_move_cost): Likewise.
17880 (nds32_memory_move_cost): Likewise.
17881 (nds32_address_cost): Likewise.
17882
17883 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17884
17885 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
17886
17887 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
17888
17889 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
17890 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
17891 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17892 (HAVE_sync_compare_and_swapqi): Define.
17893 (HAVE_sync_compare_and_swaphi): Likewise.
17894 (HAVE_sync_compare_and_swapsi): Likewise.
17895
17896 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
17897
17898 * config/mips/p5600.md: Add missing cpu tests.
17899
17900 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17901
17902 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
17903 (vmla_f64): Likewise.
17904 (vfms_f64): Likewise.
17905 (vmls_f64): Likewise.
17906
17907 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17908
17909 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
17910 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
17911
17912 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17913
17914 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
17915 (vmlal_high_lane_s32): Likewise.
17916 (vmlal_high_lane_u16): Likewise.
17917 (vmlal_high_lane_u32): Likewise.
17918 (vmlsl_high_lane_s16): Likewise.
17919 (vmlsl_high_lane_s32): Likewise.
17920 (vmlsl_high_lane_u16): Likewise.
17921 (vmlsl_high_lane_u32): Likewise.
17922
17923 2014-07-17 Terry Guo <terry.guo@arm.com>
17924
17925 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
17926 (alus_reg): Renamed to alus_sreg.
17927 * config/arm/arm-fixed.md: Change type of non-dsp instructions
17928 from alu_reg to alu_sreg. Change type of dsp instructions from
17929 alu_reg to alu_dsp_reg.
17930 * config/arm/thumb1.md: Likewise.
17931 * config/arm/thumb2.md: Likewise.
17932 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
17933 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
17934 with alu_sreg and alus_sreg.
17935 * config/arm/arm1026ejs.md (alu_op): Likewise.
17936 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
17937 * config/arm/arm926ejs.md (9_alu_op): Likewise.
17938 * config/arm/fa526.md (526_alu_op): Likewise.
17939 * config/arm/fa606te.md (606te_alu_op): Likewise.
17940 * config/arm/fa626te.md (626te_alu_op): Likewise.
17941 * config/arm/fa726te.md (726te_alu_op): Likewise.
17942 * config/arm/fmp626.md (mp626_alu_op): Likewise.
17943 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
17944 alu_sreg, alu_dsp_reg and alus_sreg.
17945 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
17946 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17947 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17948 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
17949 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
17950 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17951 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17952 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17953 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
17954 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
17955 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
17956 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
17957 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
17958 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
17959 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
17960 alus_reg to alus_sreg.
17961
17962 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
17963
17964 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
17965 infinity format.
17966
17967 2014-07-17 Richard Biener <rguenther@suse.de>
17968
17969 PR rtl-optimization/61801
17970 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
17971 don't set reg_pending_barrier if it appears in a debug-insn.
17972
17973 2014-07-16 DJ Delorie <dj@redhat.com>
17974
17975 * config/rx/rx.c (rx_option_override): Fix alignment values.
17976 (rx_align_for_label): Likewise.
17977
17978 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
17979
17980 PR target/61737.
17981 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
17982 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
17983 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
17984 functions.
17985 (cris_print_index, cris_print_operand, cris_constant_index_p)
17986 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
17987 (cris_address_cost): Ditto last CONSTANT_P.
17988 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
17989 callers changed. Yield cris_offsettable_symbol for non-PIC
17990 constant symbolic expressions including labels. Yield cris_unspec
17991 for all unspecs.
17992 (cris_expand_pic_call_address): New parameter MARKERP. Set its
17993 target to pic_offset_table_rtx for calls that will likely go
17994 through PLT, const0_rtx when they can't. All callers changed.
17995 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
17996 symbolic expressions to be PICified. Remove second, redundant,
17997 assert on can_create_pseudo_p returning non-zero. Use
17998 replace_equiv_address_nv, not replace_equiv_address, for final
17999 operand update.
18000 * config/cris/cris.md ("movsi"): Move variable t to pattern
18001 toplevel. Adjust assert for new cris_symbol_type member. Use
18002 CONSTANT_P instead of CONSTANT_ADDRESS_P.
18003 ("*movsi_internal") <case 9>: Make check for valid unspec operands
18004 for lapc stricter.
18005 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18006 ("call", "call_value"): Use second incoming operand as a marker
18007 for pic-offset-table-register being used.
18008 ("*expanded_call_non_v32", "*expanded_call_v32")
18009 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18010 second incoming operand to CALL, match cris_call_type_marker.
18011 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
18012 ("*expanded_call_side"): Ditto. Fix typo in comment.
18013 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18014 CONSTANT_P.
18015 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18016 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18017 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
18018 users changed. Add members cris_offsettable_symbol and cris_unspec.
18019 (cris_symbol_type): Rename from cris_pic_symbol_type.
18020 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18021 just CONSTANT_P.
18022 * config/cris/cris-protos.h (cris_symbol_type_of,
18023 cris_expand_pic_call_address): Adjust prototypes.
18024 (cris_legitimate_constant_p): New prototype.
18025
18026 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18027 an existing tmake_file. Don't add t-slibgcc and t-linux.
18028
18029 2014-07-17 Jason Merrill <jason@redhat.com>
18030
18031 PR c++/61623
18032 * symtab.c (symtab_remove_from_same_comdat_group): Also
18033 set_comdat_group to NULL_TREE.
18034 (verify_symtab): Fix diagnostic.
18035
18036 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
18037
18038 PR target/61662
18039 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18040
18041 2014-07-16 Dodji Seketeli <dodji@redhat.com>
18042
18043 Support location tracking for built-in macro tokens
18044 * input.h (is_location_from_builtin_token): New function declaration.
18045 * input.c (is_location_from_builtin_token): New function definition.
18046 * toplev.c (general_init): Tell libcpp what the pre-defined
18047 spelling location for built-in tokens is.
18048
18049 2014-07-16 Jakub Jelinek <jakub@redhat.com>
18050
18051 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18052 on the FUNCTION_DECL.
18053
18054 2014-07-16 Richard Biener <rguenther@suse.de>
18055
18056 PR other/61782
18057 * doc/extend.texi (always_inline): Clarify.
18058
18059 2014-07-15 Eric Christopher <echristo@gmail.com>
18060
18061 * doc/invoke.texi (Link Options): Document -z option.
18062
18063 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
18064
18065 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18066 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18067
18068 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
18069
18070 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18071
18072 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
18073
18074 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18075 varpool_assemble_decl.
18076 * varpool.c (varpool_assemble_decl): Assert that node->definition is
18077 true.
18078
18079 2014-07-15 Michael Matz <matz@suse.de>
18080
18081 PR rtl-optimization/61772
18082 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18083
18084 2014-07-15 Richard Biener <rguenther@suse.de>
18085
18086 * opts.c (default_options_table): Disable bit-ccp at -Og.
18087
18088 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18089
18090 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18091
18092 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18093
18094 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18095 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18096 call langhook for unknown declaration.
18097 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18098 * tree.h (DECL_ARGUMENTS): Update.
18099 * print-tree.c (print_node): Update.
18100 * tree-core.h (tree_decl_non_common): Remove arguments.
18101 (tree_function_decl): Add arguments.
18102
18103 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
18104
18105 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18106
18107 2014-07-14 Richard Biener <rguenther@suse.de>
18108
18109 PR tree-optimization/61779
18110 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18111 simplifying a condition.
18112
18113 2014-07-14 Richard Biener <rguenther@suse.de>
18114
18115 * builtins.c (c_strlen): Make only_value == 2 really only
18116 affect warning generation.
18117
18118 2014-07-14 Richard Biener <rguenther@suse.de>
18119
18120 PR tree-optimization/61757
18121 PR tree-optimization/61783
18122 PR tree-optimization/61787
18123 * tree-ssa-dom.c (record_equality): Revert canonicalization
18124 change and add comment.
18125 (propagate_rhs_into_lhs): Revert previous fix, removing
18126 loop depth restriction again.
18127
18128 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18129
18130 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18131 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18132 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18133 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18134 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18135 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18136 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18137
18138 2014-07-14 Richard Biener <rguenther@suse.de>
18139
18140 * cgraph.h (decl_in_symtab_p): Make inline.
18141
18142 2014-07-14 Jakub Jelinek <jakub@redhat.com>
18143
18144 PR middle-end/61294
18145 * doc/invoke.texi (-Wmemset-transposed-args): Document.
18146
18147 PR target/61656
18148 * config/i386/i386.c (classify_argument): Don't merge classes above
18149 number of words.
18150
18151 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
18152
18153 * cgraph.h (symtab_node): Add nonzero_address.
18154 (decl_in_symtab_p): Break out from ...
18155 (symtab_get_node): ... here.
18156 * fold-const.c: Include cgraph.h
18157 (tree_single_nonzero_warnv_p): Use symtab to determine
18158 if symbol is non-zero.
18159 * symtab.c (symtab_node::nonzero_address): New method.
18160
18161 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18162
18163 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18164 forgotten in previous commit.
18165
18166 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18167
18168 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18169 on builtin types.
18170 * ipa-devirt.c: Include stor-layout.h and intl.h
18171 (odr_subtypes_equivalent_p): New function.
18172 (warn_odr): New function.
18173 (warn_type_mismatch): New function.
18174 (odr_types_equivalent_p): New function.
18175 (add_type_duplicate): Use it.
18176 * common.opt (Wodr): New flag.
18177 * doc/invoke.texi (Wodr): Document new warning.
18178
18179 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18180
18181 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
18182 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18183 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
18184 (varpool_get_constructor): Push CTORS_IN timevar.
18185 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
18186
18187 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
18188
18189 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
18190 Remove VOID_FTYPE_PUSHORT.
18191 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
18192 Change code to USHORT_FTYPE_VOID.
18193 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
18194 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
18195 (ix86_atomic_assign_expand_fenv): Update for
18196 __builtin_ia32_fnstsw changes.
18197 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
18198 (fnstsw): Change operand 0 to nonimmediate operand.
18199
18200 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18201
18202 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
18203 (varpool_get_constructor): New function.
18204 (varpool_ctor_useable_for_folding_p): Break out from ...
18205 (ctor_for_folding): ... here; use varpool_get_constructor.
18206 (varpool_assemble_decl): Likewise.
18207 * lto-streamer.h (struct output_block): Turn cgraph_node
18208 to symbol filed.
18209 (lto_input_variable_constructor): Declare.
18210 * ipa-visibility.c (function_and_variable_visibility): Use
18211 varpool_get_constructor.
18212 * cgraph.h (varpool_get_constructor): Declare.
18213 (varpool_ctor_useable_for_folding_p): New function.
18214 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18215 parameter; return error_mark_node for non-trivial constructors.
18216 (lto_write_tree_1, DFS_write_tree): Update use of
18217 get_symbol_initial_value.
18218 (output_function): Update initialization of symbol.
18219 (output_constructor): New function.
18220 (copy_function): Rename to ..
18221 (copy_function_or_variable): ... this one; handle vars too.
18222 (lto_output): Output variable sections.
18223 * lto-streamer-in.c (input_constructor): New function.
18224 (lto_read_body): Rename from ...
18225 (lto_read_body_or_constructor): ... this one; handle vars too.
18226 (lto_input_variable_constructor): New function.
18227 * ipa-prop.c (ipa_prop_write_jump_functions,
18228 ipa_prop_write_all_agg_replacement): Update.
18229 * lto-cgraph.c (compute_ltrans_boundary): Use it.
18230 (output_cgraph_opt_summary): Set symbol to NULL.
18231
18232 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18233
18234 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18235 non-polymorphic types.
18236 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18237 * ipa-devirt.c (types_same_for_odr): Do not explode when one
18238 of types is not polymorphic.
18239
18240 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
18241
18242 * lra-constraints.c (remove_inheritance_pseudos): Process
18243 destination pseudo too.
18244
18245 2014-07-11 Rong Xu <xur@google.com>
18246
18247 * gcov-tool.c (gcov_output_files): Fix build error introduced in
18248 commit r212448.
18249
18250 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18251
18252 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18253 * config/avr/avr-devices.c (AVR_MCU): Same.
18254 (avr_mcu_types): add text start value to end of device list.
18255 * config/avr/avr-mcus.def: Add text section start for all devices.
18256 (ata5782): Add new avr5 device.
18257 (ata5831): Same.
18258 * config/avr/avr-tables.opt: Regenerate.
18259 * config/avr/avr.h: Add declaration for text section start handler.
18260 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18261 SPEC functions.
18262 (LINK_SPEC): Include text section start handler to linker spec.
18263 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18264 pass -Ttext option to linker if the text section start for the device
18265 is not zero.
18266 * config/avr/t-multilib: Regenerate.
18267 * doc/avr-mmcu.texi: Regenerate.
18268
18269 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
18270
18271 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18272 * config/rs6000/aix52.h (LINK_SPEC): Same.
18273 * config/rs6000/aix53.h (LINK_SPEC): Same.
18274 * config/rs6000/aix61.h (LINK_SPEC): Same.
18275 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18276
18277 2014-07-11 Roman Gareev <gareevroman@gmail.com>
18278
18279 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18280 (graphite_verify): New function.
18281 (ivs_params_clear): New function.
18282 (gcc_expression_from_isl_ast_expr_id): New function.
18283 (gcc_expression_from_isl_expr_int): New function.
18284 (binary_op_to_tree): New function.
18285 (ternary_op_to_tree): New function.
18286 (unary_op_to_tree): New function.
18287 (nary_op_to_tree): New function.
18288 (gcc_expression_from_isl_expr_op): New function.
18289 (gcc_expression_from_isl_expression): New function.
18290 (graphite_create_new_loop): New function.
18291 (translate_isl_ast_for_loop): New function.
18292 (get_upper_bound): New function.
18293 (graphite_create_new_loop_guard): New function.
18294 (translate_isl_ast_node_for): New function.
18295 (translate_isl_ast): New function.
18296 (add_parameters_to_ivs_params): New function.
18297 (scop_to_isl_ast): New parameter ip.
18298 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18299
18300 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18301
18302 * config/xtensa/predicates.md (call expander): Update for
18303 DECL_SECTION_NAME being string.
18304
18305 2014-07-11 Richard Biener <rguenther@suse.de>
18306
18307 PR middle-end/61473
18308 * builtins.c (fold_builtin_memory_op): Inline memory moves that
18309 can be implemented with a single load followed by a single store.
18310 (c_strlen): Only warn when only_value is not 2.
18311
18312 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
18313
18314 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
18315
18316 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
18317
18318 PR target/61561
18319 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
18320 (*movhi_bytes): Likewise.
18321 (*arm_movqi_insn): Likewise.
18322
18323 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
18324
18325 PR target/56858
18326 * config/alpha/alpha.c: Include tree-pass.h, context.h
18327 and pass_manager.h.
18328 (pass_data_handle_trap_shadows): New pass.
18329 (pass_handle_trap_shadows::gate): New pass gate function.
18330 (make_pass_handle_trap_shadows): New function.
18331 (rest_of_handle_trap_shadows): Ditto.
18332
18333 (alpha_align_insns_1): Rename from alpha_align_insns.
18334 (pass_data_align_insns): New pass.
18335 (pass_align_insns::gate): New pass gate function.
18336 (make_pass_aling_insns): New function.
18337 (rest_of_align_insns): Ditto.
18338 (alpha_align_insns): Ditto.
18339
18340 (alpha_option_override): Declare handle_trap_shadows info
18341 and align_insns_info. Register handle_trap_shadows and align_insns
18342 passes here.
18343 (alpha_reorg): Do not call alpha_trap_shadows and
18344 alpha_align_insn from here.
18345
18346 (alpha_pad_function_end): Do not skip BARRIERs.
18347
18348 2014-07-10 Rong Xu <xur@google.com>
18349
18350 Add gcov-tool: an offline gcda profile processing tool support.
18351 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
18352 (gcov_is_error): Ditto.
18353 (gcov_read_string): Ditto.
18354 (gcov_read_sync): Ditto.
18355 * gcov-io.h: Move counter defines to gcov-counter.def.
18356 * gcov-dump.c (tag_counters): Use gcov-counter.def.
18357 * coverage.c: Ditto.
18358 * gcov-tool.c: Offline gcda profile processing tool.
18359 (unlink_gcda_file): Remove one gcda file.
18360 (unlink_profile_dir): Remove gcda files from the profile path.
18361 (gcov_output_files): Output gcda files to an output dir.
18362 (profile_merge): Merge two profiles in directory.
18363 (print_merge_usage_message): Print merge usage.
18364 (merge_usage): Print merge usage and exit.
18365 (do_merge): Driver for profile merge sub-command.
18366 (profile_rewrite): Rewrite profile.
18367 (print_rewrite_usage_message): Print rewrite usage.
18368 (rewrite_usage): Print rewrite usage and exit.
18369 (do_rewrite): Driver for profile rewrite sub-command.
18370 (print_usage): Print gcov-info usage and exit.
18371 (print_version): Print gcov-info version.
18372 (process_args): Process arguments.
18373 (main): Main routine for gcov-tool.
18374 * Makefile.in: Build and install gcov-tool.
18375 * gcov-counter.def: New file split from gcov-io.h.
18376 * doc/gcc.texi: Include gcov-tool.texi.
18377 * doc/gcov-tool.texi: Document for gcov-tool.
18378
18379 2014-07-10 Richard Biener <rguenther@suse.de>
18380
18381 PR tree-optimization/61757
18382 * tree-ssa-dom.c (loop_depth_of_name): Restore.
18383 (propagate_rhs_into_lhs): Revert part of last change.
18384
18385 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
18386
18387 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
18388 FUNCTION_DECLs.
18389
18390 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
18391
18392 PR middle-end/53590
18393 * function.c (allocate_struct_function): Revert r188667 change.
18394
18395 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
18396
18397 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
18398
18399 * doc/install.texi: Remove links to defunct package providers for
18400 Solaris.
18401
18402 2014-07-09 Tom de Vries <tom@codesourcery.com>
18403
18404 * final.c (get_call_fndecl): Declare.
18405 (self_recursive_call_p): New function.
18406 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
18407
18408 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18409
18410 * ipa-devirt.c (record_node): Walk through aliases.
18411
18412 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18413
18414 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
18415
18416 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18417
18418 Revert:
18419 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18420
18421 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18422
18423 * ipa-visibility.c (function_and_variable_visibility): Remove
18424 temporary hack disabling local aliases on AIX.
18425
18426 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18427
18428 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
18429 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
18430
18431 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18432
18433 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
18434 * rs6000/rs6000.c: Inline output of .set instruction.
18435 (declare_alias_data): New struct.
18436 (rs6000_declare_alias): New function.
18437 (rs6000_xcoff_declare_function_name): Use it.
18438 (rs6000_xcoff_declare_object_name): New function.
18439 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
18440 (ASM_OUTPUT_DEF): Turn to empty definition.
18441
18442 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18443
18444 PR bootstrap/61679
18445 * hash-table.h: use hash_table::value_type instead of
18446 Descriptor::value_type in the return types of several methods.
18447
18448 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18449
18450 * tree-pass.h (pass_data): Remove has_execute member.
18451 * passes.c (execute_one_pass): Don't check pass->has_execute.
18452 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18453 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18454 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18455 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18456 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18457 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18458 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18459 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18460 gimple-low.c, gimple-ssa-isolate-paths.c,
18461 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18462 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
18463 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
18464 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
18465 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
18466 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18467 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
18468 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
18469 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
18470 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
18471 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
18472 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18473 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18474 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18475 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18476 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18477 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18478 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18479 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18480 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18481 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18482 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18483 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
18484 web.c: Remove initializer for pass_data::has_execute.
18485
18486 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18487
18488 * graphite-htab.h: Use hash_map instead of hash_table.
18489 * graphite-clast-to-gimple.c: Adjust.
18490 * passes.c: Use hash_map instead of hash_table.
18491 * sese.c: Likewise.
18492 * sese.h: Remove now unused code.
18493
18494 2014-07-08 Sriraman Tallam <tmsriram@google.com>
18495
18496 PR target/61599
18497 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
18498 than zero.
18499
18500 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18501
18502 PR rtl-optimization/61673
18503 * combine.c (simplify_comparison): Test just mode's sign bit
18504 in tmode rather than the sign bit and any bits above it.
18505
18506 2014-07-08 Roman Gareev <gareevroman@gmail.com>
18507
18508 * graphite-isl-ast-to-gimple.c (generate_isl_context):
18509 Add __isl_give to the declaration.
18510 (generate_isl_schedule): Likewise.
18511 (scop_to_isl_ast): Likewise.
18512
18513 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18514
18515 * config/arm/arm.c (cortexa5_extra_costs): New table.
18516 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
18517
18518 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18519
18520 PR tree-optimization/61725
18521 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
18522 range, use range_includes_zerop_p instead of integer_zerop on
18523 vr0->min, only use log2 of max if min is not negative.
18524
18525 2014-07-08 Richard Biener <rguenther@suse.de>
18526
18527 * tree-ssa-dom.h (loop_depth_of_name): Remove.
18528 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
18529 restriction on loop depth difference.
18530 (record_equality): Likewise.
18531 (propagate_rhs_into_lhs): Likewise. Simplify condition.
18532 (loop_depth_of_name): Remove.
18533 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
18534 restriction on loop depth difference.
18535 (init_copy_prop): Likewise.
18536
18537 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18538
18539 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
18540 parameter.
18541 (walk_aliased_vdefs): Likewise.
18542 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
18543 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
18544 (detect_type_change_from_memory_writes): Check if entry was reached.
18545
18546 2014-07-08 Richard Biener <rguenther@suse.de>
18547
18548 PR tree-optimization/61681
18549 * tree-ssa-structalias.c (find_what_var_points_to): Expand
18550 NONLOCAL inside ESCAPED.
18551
18552 2014-07-08 Richard Biener <rguenther@suse.de>
18553
18554 PR tree-optimization/61680
18555 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18556 Handle properly all read-write dependences with group accesses.
18557
18558 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
18559
18560 PR tree-optimization/61576
18561 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18562 block containing reduction statement is predecessor of phi basi block.
18563
18564 2014-07-08 Marek Polacek <polacek@redhat.com>
18565
18566 PR c/60226
18567 * fold-const.c (round_up_loc): Change the parameter type.
18568 Remove assert.
18569 * fold-const.h (round_up_loc): Adjust declaration.
18570 * stor-layout.c (finalize_record_size): Check for too large types.
18571
18572 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
18573
18574 * symtab.c: Include calls.h.
18575 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18576
18577 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
18578
18579 * config/rs6000/rs6000.c (output_vec_const_move): Handle
18580 little-endian code generation.
18581 * config/rs6000/spe.md (spe_evmergehi): Rename to...
18582 (vec_perm00_v2si): ... this. Handle little-endian code generation.
18583 (spe_evmergehilo): Rename to...
18584 (vec_perm01_v2si): ... this. Handle little-endian code generation.
18585 (spe_evmergelo): Rename to...
18586 (vec_perm11_v2si): ... this. Handle little-endian code generation.
18587 (spe_evmergelohi): Rename to...
18588 (vec_perm10_v2si): ... this. Handle little-endian code generation.
18589 (spe_evmergehi, spe_evmergehilo): New expanders.
18590 (spe_evmergelo, spe_evmergelohi): Likewise.
18591 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18592 (*frob_tf_ti): Likewise.
18593 (*frob_<mode>_di_2): Likewise.
18594 (*frob_tf_di_8_2): Likewise.
18595 (*frob_di_<mode>): Likewise.
18596 (*frob_ti_tf): Likewise.
18597 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18598 (*frob_ti_<mode>_8_2): Likewise.
18599 (*frob_ti_tf_2): Likewise.
18600 (mov_si<mode>_e500_subreg0): Rename to...
18601 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
18602 endianness only.
18603 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18604 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18605 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
18606 the big endianness only.
18607 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18608 (*mov_si<mode>_e500_subreg0_2): Rename to...
18609 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
18610 big big endianness only.
18611 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18612 (*mov_si<mode>_e500_subreg4): Rename to...
18613 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
18614 endianness only.
18615 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18616 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18617 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
18618 the big endianness only.
18619 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18620 pattern.
18621 (*mov_si<mode>_e500_subreg4_2): Rename to...
18622 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
18623 endianness only.
18624 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18625 (*mov_sitf_e500_subreg8): Rename to...
18626 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
18627 endianness only.
18628 (*mov_sitf_e500_subreg8_le): New instruction pattern.
18629 (*mov_sitf_e500_subreg8_2): Rename to...
18630 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
18631 endianness only.
18632 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18633 (*mov_sitf_e500_subreg12): Rename to...
18634 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
18635 endianness only.
18636 (*mov_sitf_e500_subreg12_le): New instruction pattern.
18637 (*mov_sitf_e500_subreg12_2): Rename to...
18638 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
18639 endianness only.
18640 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18641
18642 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
18643
18644 * asan.c (instrument_strlen_call): Do not instrument first byte
18645 in strlen if already instrumented.
18646
18647 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18648
18649 * config/arm/arm.opt (mwords-little-endian): Delete.
18650 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18651 of TARGET_LITTLE_WORDS.
18652 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18653 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
18654 warning.
18655 * doc/invoke.texi: Remove references to -mwords-little-endian.
18656
18657 2014-07-07 Jakub Jelinek <jakub@redhat.com>
18658
18659 * expmed.c (struct init_expmed_rtl): Change all fields but
18660 pow2 and cint from struct rtx_def to rtx.
18661 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
18662 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
18663 at the end again.
18664
18665 2014-07-06 Marek Polacek <polacek@redhat.com>
18666
18667 PR c/6940
18668 * doc/invoke.texi: Document -Wsizeof-array-argument.
18669
18670 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
18671
18672 * wide-int.h (wide_int_storage): Change declaration from struct
18673 to class.
18674
18675 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
18676
18677 * cgraph.c (cgraph_create_indirect_edge): Update call of
18678 get_polymorphic_call_info.
18679 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18680 (possible_polymorphic_call_targets): Add parameter call.
18681 (decl_maybe_in_construction_p): New predicate.
18682 (get_polymorphic_call_info): Add parameter call;
18683 use decl_maybe_in_construction_p.
18684 * gimple-fold.c (fold_gimple_assign): Update use of
18685 possible_polymorphic_call_targets.
18686 (gimple_fold_call): Likewise.
18687 * ipa-prop.c: Inlcude calls.h
18688 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18689 (param_type_may_change_p): New predicate.
18690 (detect_type_change_from_memory_writes): Break out from ...
18691 (detect_type_change): ... this one; use param_type_may_change_p.
18692 (detect_type_change_ssa): Use param_type_may_change_p.
18693 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18694
18695 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
18696
18697 PR target/49423
18698 * config/arm/arm-protos.h (arm_legitimate_address_p,
18699 arm_is_constant_pool_ref): Add prototypes.
18700 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18701 (arm_is_constant_pool_ref) New function.
18702 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
18703 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
18704 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
18705 operand. Remove pool_range and neg_pool_range attributes.
18706 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
18707 pool_range and neg_pool_range attributes.
18708 * config/arm/constraints.md (Uh): New constraint.
18709 (Uq): Don't allow constant pool references.
18710
18711 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
18712
18713 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
18714 (move_lo_quad_internal_be_<mode>): Likewise.
18715 (move_lo_quad_<mode>): Convert to define_expand.
18716 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
18717 (aarch64_simd_move_hi_quad_be_<mode>): New.
18718 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
18719 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
18720 (aarch64_combinez_be<mode>): New.
18721 (aarch64_combine<mode>): Convert to define_expand.
18722 (aarch64_combine_internal<mode>): New.
18723 (aarch64_simd_combine<mode>): Remove bogus RTL description.
18724
18725 2014-07-04 Tom de Vries <tom@codesourcery.com>
18726
18727 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
18728 combination of earlyclobber and read/write modifiers.
18729
18730 2014-07-04 Tom de Vries <tom@codesourcery.com>
18731
18732 * config/aarch64/aarch64-simd.md
18733 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
18734
18735 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
18736
18737 PR target/61714
18738 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
18739
18740 2014-07-04 Jakub Jelinek <jakub@redhat.com>
18741
18742 PR middle-end/61654
18743 * cgraphunit.c (expand_thunk): Call free_dominance_info.
18744
18745 PR tree-optimization/61684
18746 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
18747 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
18748
18749 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18750 Kito Cheng <kito@0xlab.org>
18751 Monk Chiang <sh.chiang04@gmail.com>
18752
18753 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
18754 (nds32_symbol_load_store_p): Move to ...
18755 (nds32_fp_as_gp_check_available): Move to ...
18756 * config/nds32/nds32-fp-as-gp.c: ... here.
18757 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
18758 extern declaration.
18759
18760 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18761 Kito Cheng <kito@0xlab.org>
18762 Monk Chiang <sh.chiang04@gmail.com>
18763
18764 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
18765 (nds32_expand_store_multiple): Move to ...
18766 (nds32_expand_movmemqi): Move to ...
18767 * config/nds32/nds32-memory-manipulation.c: ... here.
18768
18769 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18770 Kito Cheng <kito@0xlab.org>
18771 Monk Chiang <sh.chiang04@gmail.com>
18772
18773 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
18774 (nds32_output_casesi_pc_relative): Move to ...
18775 (nds32_output_casesi): Move to ...
18776 (nds32_mem_format): Move to ...
18777 (nds32_output_16bit_store): Move to ...
18778 (nds32_output_16bit_load): Move to ...
18779 (nds32_output_32bit_store): Move to ...
18780 (nds32_output_32bit_load): Move to ...
18781 (nds32_output_32bit_load_s): Move to ...
18782 (nds32_output_stack_push): Move to ...
18783 (nds32_output_stack_pop): Move to ...
18784 * config/nds32/nds32-md-auxiliary.c: ... here.
18785
18786 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18787 Ling-Hua Tseng <uranus@tinlans.org>
18788
18789 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
18790 the purpose of this file.
18791
18792 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18793 Kito Cheng <kito@0xlab.org>
18794 Monk Chiang <sh.chiang04@gmail.com>
18795
18796 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
18797 (nds32_address_cost): Move implementation to ...
18798 * config/nds32/nds32-cost.c: ... here.
18799 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
18800 (nds32_address_cost_impl): Declare.
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
18807 (nds32_consecutive_registers_load_store_p): Move to ...
18808 (nds32_valid_multiple_load_store): Move to ...
18809 (nds32_valid_stack_push_pop): Move to ...
18810 (nds32_can_use_bclr_p): Move to ...
18811 (nds32_can_use_bset_p): Move to ...
18812 (nds32_can_use_btgl_p): Move to ...
18813 (nds32_can_use_bitci_p): Move to ...
18814 * config/nds32/nds32-predicates.c: ... here.
18815
18816 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18817 Kito Cheng <kito@0xlab.org>
18818 Monk Chiang <sh.chiang04@gmail.com>
18819
18820 * config/nds32/nds32.c
18821 (nds32_expand_builtin_null_ftype_reg): Move to ...
18822 (nds32_expand_builtin_reg_ftype_imm): Move to ...
18823 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
18824 (nds32_init_builtins): Move implementation to ...
18825 (nds32_expand_builtin): Move implementation to ...
18826 * config/nds32/nds32-intrinsic.c: ... here.
18827 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
18828 (nds32_expand_builtin_impl): Declare.
18829
18830 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18831 Kito Cheng <kito@0xlab.org>
18832 Monk Chiang <sh.chiang04@gmail.com>
18833
18834 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
18835 (nds32_emit_section_tail_template): Move to ...
18836 (nds32_emit_isr_jmptbl_section): Move to ...
18837 (nds32_emit_isr_vector_section): Move to ...
18838 (nds32_emit_isr_reset_conten): Move to ...
18839 (nds32_check_isr_attrs_conflict): Move to ...
18840 (nds32_construct_isr_vectors_information): Move to ...
18841 (nds32_asm_file_start): Move implementation to ...
18842 (nds32_asm_file_end): Move implementation to ...
18843 * config/nds32/nds32-isr.c: ... here.
18844 * config/nds32/nds32-protos.h
18845 (nds32_check_isr_attrs_conflict): Declare.
18846 (nds32_construct_isr_vectors_information): Declare.
18847 (nds32_asm_file_start_for_isr): Declare.
18848 (nds32_asm_file_end_for_isr): Declare.
18849
18850 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18851 Kito Cheng <kito@0xlab.org>
18852 Monk Chiang <sh.chiang04@gmail.com>
18853
18854 * config.gcc (nds32*): Add new modules to extra_objs.
18855 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
18856 (nds32be-*-*): Likewise.
18857 * config/nds32/nds32-cost.c: New file.
18858 * config/nds32/nds32-fp-as-gp.c: New file.
18859 * config/nds32/nds32-intrinsic.c: New file.
18860 * config/nds32/nds32-isr.c: New file.
18861 * config/nds32/nds32-md-auxiliary.c: New file.
18862 * config/nds32/nds32-memory-manipulation.c: New file.
18863 * config/nds32/nds32-pipelines-auxiliary.c: New file.
18864 * config/nds32/nds32-predicates.c: New file.
18865 * config/nds32/t-nds32: New file.
18866
18867 2014-07-03 Jakub Jelinek <jakub@redhat.com>
18868
18869 PR tree-optimization/61682
18870 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
18871 using cases and when one of the operands is equal to 1.
18872
18873 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
18874
18875 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
18876 ashr<mode>3): Correct mode of operands[2].
18877 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
18878 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
18879 Correct mode of operands[2]. Fix split condition.
18880
18881 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
18882
18883 * arm.md (arch): Add armv6_or_vfpv3.
18884 (arch_enabled): Add test for the above.
18885 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
18886 on VFP9.
18887 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
18888
18889 2014-07-03 Jakub Jelinek <jakub@redhat.com>
18890
18891 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
18892 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
18893 HWI 1 and negate the unsigned value.
18894 * expmed.c (expand_sdiv_pow2): For modes wider than word always
18895 use AND instead of shift.
18896 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
18897
18898 2014-07-03 Marek Polacek <polacek@redhat.com>
18899
18900 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
18901 (-fsanitize=float-divide-by-zero): Move to the table with
18902 -fsanitize=undefined suboptions.
18903 (-fsanitize=float-cast-overflow): Likewise.
18904
18905 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
18906
18907 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
18908 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
18909 endianness.
18910
18911 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18912
18913 * loop-invariant.c (struct invariant): Add a new member: eqno;
18914 (find_identical_invariants): Update eqno;
18915 (create_new_invariant): Init eqno;
18916 (get_inv_cost): Compute comp_cost with eqno;
18917
18918 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
18919
18920 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
18921 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
18922 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
18923 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
18924 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
18925
18926 2014-07-02 Christian Bruel <christian.bruel@st.com>
18927
18928 PR target/29349
18929 PR target/53513
18930 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
18931 (make_preds_opaque): Delete.
18932 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
18933 (commit_mode_sets): New function.
18934 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
18935 Process all modes at once.
18936 * basic-block.h (pre_edge_lcm_avs): Declare.
18937 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
18938 Call clear_aux_for_edges. Fix comments.
18939 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
18940 (pre_edge_rev_lcm): Idem.
18941 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
18942 parameter.
18943 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
18944 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
18945 Idem.
18946 * config/i386/i386.c (x96_emit_mode_set): Idem.
18947 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
18948 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
18949 (fpscr_toggle) Disallow from delay slot.
18950 * target.def (emit_mode_set): Add prev_mode parameter.
18951 * doc/tm.texi: Regenerate.
18952
18953 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18954
18955 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
18956 variable i.
18957
18958 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
18959
18960 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
18961 vtable_pointer_value_to_vtable): Constify.
18962 (contains_polymorphic_type_p): Declare.
18963 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
18964 vtable_pointer_value_to_vtable): Constify.
18965 (contains_polymorphic_type_p): New predicate.
18966 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
18967 polymorphic types.
18968 (ipa_set_ancestor_jf): Likewise.
18969 (detect_type_change): Return false in easy cases.
18970 (compute_complex_assign_jump_func): Require type to contain
18971 polymorphic type.
18972 (compute_known_type_jump_func): Likewise.
18973
18974 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
18975
18976 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
18977 Remove.
18978 (type_in_anonymous_namespace_p): Constify argument.
18979 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
18980 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
18981 (main_odr_variant): New function.
18982 (hash_type_name): Make static; update assert; do not ICE on
18983 non-records.
18984 (types_same_for_odr): Bring here from tree.c; simplify and remove
18985 old structural comparing code that doesn't work for templates.
18986 (odr_hasher::equal): Update assert.
18987 (add_type_duplicate): Return true when bases should be computed;
18988 replace incomplete loader by complete; do not output duplicated
18989 warnings; do not ICE on non-records; set odr_violated flag.
18990 (get_odr_type): Be ready to replace incomplete type by complete
18991 one; work on ODR variants instead of main variants; reorder item
18992 in array so bases have still smaller indexes.
18993 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
18994 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
18995
18996 2014-07-01 Cary Coutant <ccoutant@google.com>
18997
18998 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
18999 lookup.
19000 (resolve_addr_in_expr): When replacing the rtx in a location list
19001 entry, get a new address table entry.
19002 (dwarf2out_finish): Call index_location_lists even if there are no
19003 addr_index_table entries yet.
19004
19005 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19006
19007 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19008 change for not being obvious.
19009
19010 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19011
19012 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19013 unused argument.
19014
19015 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19016
19017 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19018 (vcagt_f64): Likewise.
19019 (vcale_f64): Likewise.
19020 (vcaled_f64): Likewise.
19021 (vcales_f32): Likewise.
19022 (vcalt_f64): Likewise.
19023 (vcaltd_f64): Likewise.
19024 (vcalts_f32): Likewise.
19025
19026 2014-07-01 Marek Polacek <polacek@redhat.com>
19027
19028 * doc/invoke.texi: Document -Wint-conversion.
19029
19030 2014-07-01 Marek Polacek <polacek@redhat.com>
19031
19032 PR c/58286
19033 * doc/invoke.texi: Document -Wincompatible-pointer-types.
19034
19035 2014-07-01 Martin Liska <mliska@suse.cz>
19036
19037 IPA REF alias refactoring
19038 * cgraph.h (iterate_direct_aliases): New function.
19039 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19040 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19041 FOR_EACH_ALIAS added.
19042 (cgraph_for_node_and_aliases): Likewise.
19043 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19044 * ipa-inline.c (reset_edge_caches): Likewise.
19045 (update_caller_keys): Likewise.
19046 * trans-mem.c (ipa_tm_execute): Likewise.
19047 *varpool.c (varpool_analyze_node): Likewise.
19048 (varpool_for_node_and_aliases): Likewise.
19049 * ipa-ref.h (first_alias): New function.
19050 (last_alias): Likewise.
19051 (has_aliases_p): Likewise.
19052 * ipa-ref.c (ipa_ref::remove_reference): Removal function
19053 is sensitive to IPA_REF_ALIASes.
19054 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19055 are put at the beginning of the list.
19056 (symtab_node::iterate_direct_aliases): New function.
19057
19058 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19059
19060 Revert:
19061 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19062 type is complete.
19063 (write_ts_type_common_tree_pointers): Do not stream fields not set
19064 for incomplete types; do not stream duplicated fields for variants;
19065 sanity check that variant and type match.
19066 (write_ts_type_non_common_tree_pointers): Likewise.
19067 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19068 TYPE_SIZE whether type is complete.
19069 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19070 write_ts_type_common_tree_pointers
19071 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19072
19073 2014-06-30 Joseph Myers <joseph@codesourcery.com>
19074
19075 * var-tracking.c (add_stores): Return instead of asserting if old
19076 and new values for conditional store are the same.
19077
19078 2014-06-30 Richard Henderson <rth@redhat.com>
19079
19080 PR rtl-opt/61608
19081 PR target/39284
19082 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19083 the cfg if there were any changes.
19084 * passes.def: Revert move of peephole2 after reorder_blocks;
19085 move duplicate_computed_gotos before peephole2.
19086
19087 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
19088
19089 * except.c (emit_note_eh_region_end): New helper function.
19090 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19091 emit EH_REGION_END note.
19092 * jump.c (cleanup_barriers): Do not split a call and its
19093 corresponding CALL_ARG_LOCATION note.
19094
19095 2014-06-30 Jeff Law <law@redhat.com>
19096
19097 PR tree-optimization/61607
19098 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19099 deeper into the SSA_NAME_VALUE chain.
19100
19101 2014-06-30 Marek Polacek <polacek@redhat.com>
19102
19103 * convert.c (convert_to_integer): Don't instrument conversions if the
19104 function has no_sanitize_undefined attribute.
19105 * ubsan.c: Don't run the ubsan pass if the function has
19106 no_sanitize_undefined attribute.
19107
19108 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19109
19110 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19111 -fsanitize=undefined suboptions.
19112
19113 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
19114
19115 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19116 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19117 against bigendian and adjust indices.
19118
19119 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19120
19121 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
19122
19123 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
19124
19125 PR target/61633
19126 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19127 Add alternative; make early clobber. Adjust both split patterns
19128 to use operand 0 as the working register.
19129
19130 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19131
19132 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19133 as ira_object_id_map might be NULL, or 1.
19134
19135 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19136
19137 * loop-invariant.c (get_inv_cost): Handle register class.
19138 (gain_for_invariant): Check the register pressure of the inv
19139 and its overlapped register class, other than all.
19140
19141 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19142
19143 * doc/invoke.texi (Optimize Options): Fix descriptions of
19144 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19145
19146 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
19147
19148 * doc/extend.texi (Function Attributes): Update 'naked' attribute
19149 documentation.
19150
19151 2014-06-29 Tobias Grosser <tobias@grosser.es>
19152
19153 PR bootstrap/61650
19154 * graphite-isl-ast-to-gimple.c: Add missing guards.
19155
19156 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19157
19158 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19159 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19160 * flag-types.h: Add new enum fgraphite_generator.
19161 * graphite-isl-ast-to-gimple.c: New.
19162 * graphite-isl-ast-to-gimple.h: New.
19163 * graphite.c (graphite_transform_loops): Add choice of Graphite
19164 code generator, which depends on flag_graphite_code_gen.
19165
19166 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19167
19168 * graphite-dependences.c (subtract_commutative_associative_deps):
19169 Add NULL checking of the following variables: must_raw_no_source,
19170 may_raw_no_source, must_war_no_source, may_war_no_source,
19171 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19172 must_war, may_war, must_waw, may_waw.
19173
19174 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19175
19176 * graphite-clast-to-gimple.c: gloog is renamed to
19177 graphite_regenerate_ast_cloog. gloog_error is renamed to
19178 graphite_regenerate_error.
19179 * graphite-clast-to-gimple.h: The definition of the struct
19180 bb_pbb_def is moved to graphite-htab.h.
19181 Add inclusion of the hash-table.h.
19182 * graphite-htab.h: The declaration of the function gloog is moved
19183 to graphite-clast-to-gimple.h and renamed to
19184 graphite_regenerate_ast_cloog.
19185 * graphite.c (graphite_transform_loops): gloog is renamed
19186 to graphite_regenerate_ast_cloog.
19187
19188 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19189
19190 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19191 type is complete.
19192 (write_ts_type_common_tree_pointers): Do not stream fields not set
19193 for incomplete types; do not stream duplicated fields for variants;
19194 sanity check that variant and type match.
19195 (write_ts_type_non_common_tree_pointers): Likewise.
19196 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19197 TYPE_SIZE whether type is complete.
19198 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19199 write_ts_type_common_tree_pointers
19200 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19201
19202 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19203
19204 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
19205
19206 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19207
19208 * tree-inline.c (remap_type_1): Do not duplicate fields
19209 that are shared in between type and its main variant.
19210
19211 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19212
19213 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19214 of the type.
19215 (ipa_set_ancestor_jf) Likewise.
19216 (check_stmt_for_type_change): Check that we work on main variant.
19217 (detect_type_change): Look into main variant.
19218 (compute_known_type_jump_func): Check that main variant has BINFO.
19219
19220 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19221
19222 * ipa-devirt.c (set_type_binfo): New function.
19223 (add_type_duplicate): Use it.
19224 (get_odr_type): Sanity check that binfos points to main variants.
19225 (get_class_context): Be sure the context's outer_type is main variant.
19226 (contains_type_p): Walk main variant.
19227 (get_polymorphic_call_info_for_decl): Set outer_type to be
19228 main variant.
19229 (get_polymorphic_call_info): Likewise.
19230 (possible_polymorphic_call_targets): Sanity check that we operate
19231 on main variant.
19232
19233 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19234
19235 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19236
19237 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19238
19239 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19240 accidental change due to wide-int branch merge.
19241
19242 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19243
19244 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19245 compressed debug support.
19246 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19247 * configure: Regenerate.
19248 * config.in: Regenerate.
19249 * common.opt (compressed_debug_sections): New enum.
19250 (gz, gz=): New options.
19251 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19252 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19253 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19254 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19255 LINK_COMPRESS_DEBUG_SPEC.
19256 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19257 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19258 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19259 (Debugging Options): Document -gz[=type].
19260
19261 2014-06-27 Martin Jambor <mjambor@suse.cz>
19262
19263 PR ipa/61160
19264 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19265 args_to_skip, use those from node instead. Copy args_to_skip and
19266 combined_args_to_skip from node to the new thunk.
19267 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19268 (cgraph_create_virtual_clone): Moved computation of
19269 combined_args_to_skip...
19270 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19271
19272 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
19273
19274 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19275 redundant diagnostic machinary.
19276
19277 2014-06-27 Richard Biener <rguenther@suse.de>
19278
19279 * tree-ssa-math-opts.c (bswap_replace): Fix
19280 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19281
19282 2014-06-27 Martin Liska <mliska@suse.cz>
19283
19284 * gimple.h (gimple_location_safe): New function introduced.
19285 * cgraphunit.c (walk_polymorphic_call_targets): Usage
19286 of gimple_location_safe replaces gimple_location.
19287 (gimple_fold_call): Likewise.
19288 * ipa-devirt.c (ipa_devirt): Likewise.
19289 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19290 * ipa.c (walk_polymorphic_call_targets): Likewise.
19291 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19292
19293 2014-06-27 Jakub Jelinek <jakub@redhat.com>
19294
19295 PR tree-optimization/57233
19296 PR tree-optimization/61299
19297 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19298 functions.
19299 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
19300 would be lowered to scalar shifts, check if corresponding
19301 shifts and vector BIT_IOR_EXPR are supported and don't lower
19302 or lower just to narrower vector type in that case.
19303 * expmed.c (expand_shift_1): Fix up handling of vector
19304 shifts and rotates.
19305
19306 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
19307
19308 PR target/61586
19309 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
19310
19311 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
19312
19313 * doc/invoke.texi (-fsemantic-interposition): Document.
19314 * common.opt (fsemantic-interposition): New flag.
19315 * varasm.c (decl_replaceable_p): Use it.
19316
19317 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19318
19319 PR target/61542
19320 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
19321 extraction other than index 3.
19322
19323 2014-06-26 Teresa Johnson <tejohnson@google.com>
19324
19325 * doc/invoke.texi: Fix typo.
19326 * dumpfile.c: Add support for documented -fdump-* options
19327 optimized/missed/note/optall.
19328
19329 2014-06-26 Martin Jambor <mjambor@suse.cz>
19330
19331 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
19332 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
19333 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
19334 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
19335 * opts.c (default_options_optimization): Set
19336 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
19337 * doc/invoke.texi (allow-load-data-races)
19338 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
19339 (allow-store-data-races): Document the new default.
19340
19341 2014-06-26 Martin Jambor <mjambor@suse.cz>
19342
19343 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
19344 renamed to ipa_impossible_devirt_target. Fix typo.
19345 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
19346 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
19347 ipa_impossible_devirt_target.
19348
19349 2014-06-26 Richard Biener <rguenther@suse.de>
19350
19351 PR tree-optimization/61607
19352 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
19353 explaining why we restrict copies on loop depth.
19354 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19355 on loop depth.
19356 (record_equivalences_from_phis): Instead add it here.
19357
19358 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
19359
19360 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
19361 (LTO_WRAPPER_OBJS): New variable.
19362 (lto-wrapper$(exeext)): Use it.
19363 * collect2.c: Include "collect-utils.h".
19364 (verbose, debug): Remove variables.
19365 (at_file_supplied): No longer static.
19366 (tool_name): New variable.
19367 (do_wait, fork_execute, maybe_unlink): Don't declare.
19368 (tool_cleanup): No longer static.
19369 (notice): Remove function.
19370 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
19371 fork_execute calls.
19372 (collect_wait, do_wait, collect_execute): Remove functions.
19373 (maybe_unlink): No longer static.
19374 * collect2.h (verbose, debug): Don't declare.
19375 (at_file_supplied): Declare.
19376 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
19377 changed.
19378 (collect_execute): Replace with implementation from collect2, plus a
19379 new arg use_atfile. All callers changed.
19380 (collect_wait): Replace with implementation from collect2.
19381 (maybe_unlink_file): Remove function.
19382 (fork_execute): Replace with implementation from collect2, plus a
19383 new arg use_atfile. All callers changed.
19384 (do_wait): Add call to utils_cleanup to the error path.
19385 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
19386 (tool_cleanup): Adjust declarations.
19387 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
19388 * tlink.c: Include "collect-utils.h".
19389 (tlink_execute): New arg use_atfile. All callers changed.
19390 (tlink_init, tlink_execute): Remove declarations.
19391
19392 * collect-utils.c (save_temps): New variable.
19393 (do_wait): Use it instead of debug. Use fatal_error.
19394 * collect-utils.h (save_temps): Declare.
19395 * collect2.c (verbose): Rename from vflag. All uses changed.
19396 (tool_cleanup): New function, copied from collect_atexit.
19397 (collect_atexit, handler): Just call it.
19398 * collect2.h (verbose): Declaration renamed from vflag.
19399 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
19400 debug.
19401
19402 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
19403 (lto-wrapper$(exeext)): Link with collect-utils.o.
19404 * collect-utils.c: New file.
19405 * collect-utils.h: New file.
19406 * lto-wrapper.c: Include "collect-utils.h".
19407 (args_name): Delete variable.
19408 (tool_name): New variable.
19409 (tool_cleanup): New function.
19410 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
19411 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
19412 (fork_execute): Remove functions.
19413
19414 2014-06-26 Nick Clifton <nickc@redhat.com>
19415
19416 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
19417
19418 * doc/extend.texi (Function Attributes): Fix typo in description
19419 of RX vector attribute.
19420
19421 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19422
19423 * config.gcc (supported_defaults): Error when passing either
19424 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
19425
19426 2014-06-26 Richard Biener <rguenther@suse.de>
19427
19428 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19429 propagating volatile pointers.
19430
19431 2014-06-26 Richard Biener <rguenther@suse.de>
19432
19433 PR tree-optimization/61607
19434 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
19435 loop if we redirected its latch edge.
19436 (thread_block_1): Do not cancel loops prematurely.
19437
19438 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
19439
19440 * toplev.c (backend_init_target): Move init_emit_regs and
19441 init_regs to...
19442 (backend_init) ... here; skip ira_init_once and backend_init_target.
19443 (target_reinit) ... and here; clear
19444 this_target_rtl->lang_dependent_initialized.
19445 (lang_dependent_init_target): Clear
19446 this_target_rtl->lang_dependent_initialized;
19447 break out rtl initialization to ...
19448 (initialize_rtl): ... here; call also backend_init_target
19449 and ira_init_once.
19450 * toplev.h (initialize_rtl): New function.
19451 * function.c: Include toplev.h
19452 (init_function_start): Call initialize_rtl.
19453 * rtl.h (target_rtl): Add target_specific_initialized,
19454 lang_dependent_initialized.
19455
19456 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
19457 Jakub Jelinek <jakub@redhat.com>
19458
19459 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
19460
19461 2014-06-25 Tom de Vries <tom@codesourcery.com>
19462
19463 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
19464
19465 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19466
19467 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
19468 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
19469 Issue a strict overflow warning if appropriate.
19470
19471 2014-06-25 Martin Liska <mliska@suse.cz>
19472
19473 IPA REF refactoring
19474 * Makefile.in: Removed header file (ipa-ref-inline.h).
19475 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
19476 called.
19477 (cgraph_speculative_call_info): Likewise.
19478 (cgraph_for_node_thunks_and_aliases): Likewise.
19479 (cgraph_for_node_and_aliases): Likewise.
19480 (verify_cgraph_node): Likewise.
19481 * cgraph.h: Batch of IPA REF functions become member functions of
19482 symtab_node: add_reference, maybe_add_reference, clone_references,
19483 clone_referring, clone_reference, find_reference,
19484 remove_stmt_references, remove_all_references,
19485 remove_all_referring, dump_references, dump_referring,
19486 has_alias_p, iterate_reference, iterate_referring.
19487 * cgraphbuild.c (record_reference): New IPA REF function used.
19488 (record_type_list): Likewise.
19489 (record_eh_tables): Likewise.
19490 (mark_address): Likewise.
19491 (mark_load): Likewise.
19492 (mark_store): Likewise.
19493 (pass_build_cgraph_edges): Likewise.
19494 (rebuild_cgraph_edge): Likewise.
19495 (cgraph_rebuild_references): Likewise.
19496 (pass_remove_cgraph_callee_edges): Likewise.
19497 * cgraphclones.c (cgraph_clone_node): Likewise.
19498 (cgraph_create_virtual_clone): Likewise.
19499 (cgraph_materialize_clone): Likewise.
19500 (cgraph_materialize_all_clones): Likewise.
19501 * cgraphunit.c (cgraph_reset_node): Likewise.
19502 (cgraph_reset_node): Likewise.
19503 (analyze_function): Likewise.
19504 (assemble_thunks_and_aliases): Likewise.
19505 (expand_function): Likewise.
19506 * ipa-comdats.c (propagate_comdat_group): Likewise.
19507 (enqueue_references): Likewise.
19508 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
19509 (create_specialized_node): Likewise.
19510 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
19511 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
19512 * ipa-inline.c (reset_edge_caches): Likewise.
19513 (update_caller_keys): Likewise.
19514 (execute): Likewise.
19515 * ipa-prop.c (remove_described_reference): Likewise.
19516 (propagate_controlled_uses): Likewise.
19517 (ipa_edge_duplication_hook): Likewise.
19518 (ipa_modify_call_arguments): Likewise.
19519 * ipa-pure-const.c (propagate_pure_const): Likewise.
19520 * ipa-ref-inline.h: Header file removed, functions moved
19521 to symtab_node class.
19522 * ipa-ref.c (remove_reference): New class member function.
19523 (cannot_lead_to_return): New class member function.
19524 (referring_ref_list): Likewise.
19525 (referred_ref_list): Likewise.
19526 Rest of functions moved to symtab_node class.
19527 * ipa-ref.h: New member functions remove_reference,
19528 cannot_lead_to_return, referring_ref_list, referred_ref_list added
19529 to ipa_ref class.
19530 ipa_ref_list class has new member functions: first_reference,
19531 first_referring, clear, nreferences.
19532 * ipa-reference.c (analyze_function): New IPA REF function used.
19533 (write_node_summary_p): Likewise.
19534 (ipa_reference_write_optimization_summary): Likewise.
19535 * ipa-split.c (split_function): Likewise.
19536 * ipa-utils.c (ipa_reverse_postorder): Likewise.
19537 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
19538 (function_and_variable_visibility): Likewise.
19539 * ipa.c (has_addr_references_p): Likewise.
19540 (process_references): Argument type changed.
19541 (symtab_remove_unreachable_nodes): New IPA REF function used.
19542 (process_references): Likewise.
19543 (set_writeonly_bit): Likewise.
19544 * lto-cgraph.c: Implementation of new symtab_node member functions
19545 that uses new IPA REF functions.
19546 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
19547 function used.
19548 * lto-streamer-out.c (output_symbol_p): Likewise.
19549 * lto-streamer.h (referenced_from_this_partition_p): Argument type
19550 changed.
19551 * symtab.c: Implementation of new IPA REF API.
19552 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
19553 (ipa_tm_create_version): Likewise.
19554 (ipa_tm_execute): Likewise.
19555 * tree-emutls.c (gen_emutls_addr): Likewise.
19556 * tree-inline.c (copy_bb): Likewise.
19557 (delete_unreachable_blocks_update_callgraph): Likewise.
19558 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19559 (varpool_for_node_and_aliases): Likewise.
19560
19561 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19562
19563 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19564
19565 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19566
19567 PR bootstrap/61598
19568 * fold-const.c (fold_checksum_tree): Use a hash_table of const
19569 tree_node * instead of tree_node *.
19570 (fold): Adjust.
19571 (print_fold_checksum): Likewise.
19572 (fold_check_failed): Likewise.
19573 (debug_fold_checksum): Likewise.
19574 (fold_build1_stat_loc): Likewise.
19575 (fold_build2_stat_loc): Likewise.
19576 (fold_build3_stat_loc): Likewise.
19577 (fold_build_call_array_loc): Likewise.
19578
19579 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
19580
19581 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19582 implementation with call to...
19583 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19584 function.
19585 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19586 Declare.
19587
19588 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
19589
19590 PR tree-optimization/57742
19591 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19592 after replacing the statement.
19593
19594 2014-06-25 Nick Clifton <nickc@redhat.com>
19595
19596 * config/v850/v850.c (GHS_default_section_names): Change to const
19597 char * type.
19598 (GHS_current_section_names): Likewise.
19599 (v850_insert_attributes): Do not build strings, just assign the
19600 names directly. Change the type of 'chosen_section' to const
19601 char*.
19602 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19603 directly to the array entry.
19604 * config/v850/v850.h (GHS_default_section_names): Change to const
19605 char * type.
19606 (GHS_current_section_names): Likewise.
19607
19608 2014-06-25 Jakub Jelinek <jakub@redhat.com>
19609
19610 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19611 (LANG_HOOKS_DECLS): Add it.
19612 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19613 has correct type.
19614 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19615 * langhooks.h (struct lang_hooks_for_decls): Add
19616 omp_clause_linear_ctor hook.
19617 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19618 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
19619 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
19620 combined simd loop use omp_clause_linear_ctor hook.
19621
19622 2014-06-24 Cong Hou <congh@google.com>
19623
19624 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19625 pattern recognition.
19626 (type_conversion_p): PROMOTION is true if it's a type promotion
19627 conversion, and false otherwise. Return true if the given expression
19628 is a type conversion one.
19629 * tree-vectorizer.h: Adjust the number of patterns.
19630 * tree.def: Add SAD_EXPR.
19631 * optabs.def: Add sad_optab.
19632 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19633 * expr.c (expand_expr_real_2): Likewise.
19634 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19635 * gimple.c (get_gimple_rhs_num_ops): Likewise.
19636 * optabs.c (optab_for_tree_code): Likewise.
19637 * tree-cfg.c (estimate_operator_cost): Likewise.
19638 * tree-ssa-operands.c (get_expr_operands): Likewise.
19639 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19640 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19641 * doc/generic.texi: Add document for SAD_EXPR.
19642 * doc/md.texi: Add document for ssad and usad.
19643
19644 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19645
19646 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19647 qualification in cast.
19648
19649 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
19650
19651 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19652 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19653 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19654 (tree_function_decl): ... here.
19655 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
19656 streaming of vindex to ...
19657 (write_ts_function_decl_tree_pointers): ... here.
19658 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19659 Do not stream DECL_VINDEX.
19660 (lto_input_ts_function_decl_tree_pointers): Stream it here.
19661
19662 2014-06-24 Catherine Moore <clm@codesourcery.com>
19663 Sandra Loosemore <sandra@codesourcery.com>
19664
19665 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
19666 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
19667 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
19668
19669 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19670
19671 * doc/invoke.texi (Warning Options): Remove duplicated
19672 -Wmaybe-uninitialized.
19673
19674 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19675
19676 PR tree-optimization/57742
19677 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19678 (handle_builtin_malloc, handle_builtin_memset): New functions.
19679 (strlen_optimize_stmt): Call them.
19680 * passes.def: Move strlen after loop+dom but before vrp.
19681
19682 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19683
19684 PR target/61570
19685 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19686 model family 6 CPU with has_longmode never use a CPU without
19687 64-bit support.
19688
19689 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
19690
19691 PR target/61570
19692 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19693 the last change.
19694
19695 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19696
19697 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19698 * dominance.c (iterate_fix_dominators): Use hash_map instead of
19699 pointer_map.
19700 * hash-map.h: New file.
19701 * ipa-comdats.c: Use hash_map instead of pointer_map.
19702 * ipa.c: Likewise.
19703 * lto-section-out.c: Adjust.
19704 * lto-streamer.h: Replace pointer_map with hash_map.
19705 * symtab.c (verify_symtab): Likewise.
19706 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
19707 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
19708 * tree-streamer.h: Likewise.
19709 * tree-streamer.c: Adjust.
19710 * pointer-set.h: Remove pointer_map.
19711
19712 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19713
19714 * hash-table.h: Add a template arg to choose between storing values
19715 and storing pointers to values, and then provide partial
19716 specializations for both.
19717 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
19718 should store, not the type values should point to.
19719 * tree-into-ssa.c (var_info_hasher): Likewise.
19720 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19721 * tree-complex.c: Adjust.
19722 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
19723 table instead of int_tree_map *.
19724 * tree-parloops.c: Adjust.
19725 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
19726 type is being stored.
19727 * tree-vectorizer.c: Adjust.
19728
19729 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19730
19731 * hash-table.h: Remove a layer of indirection from hash_table so that
19732 it contains the hash table's data instead of a pointer to the data.
19733 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
19734 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
19735 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
19736 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
19737 fold-const.c, gcse.c, ggc-common.c,
19738 gimple-ssa-strength-reduction.c, gimplify.c,
19739 graphite-clast-to-gimple.c, graphite-dependences.c,
19740 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
19741 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19742 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
19743 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
19744 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
19745 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
19746 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
19747 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
19748 tree-ssa-live.c, tree-ssa-loop-im.c,
19749 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
19750 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
19751 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19752 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
19753 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
19754 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
19755 vtable-verify.c, vtable-verify.h: Adjust.
19756
19757 2014-06-24 Richard Biener <rguenther@suse.de>
19758
19759 PR tree-optimization/61572
19760 * tree-ssa-sink.c (statement_sink_location): Do not sink
19761 loads from hard registers.
19762
19763 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19764
19765 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
19766 not mentioned in clauses use private clause if the iterator is
19767 declared in #pragma omp for simd, and when adding lastprivate
19768 instead, add it to the outer #pragma omp for too. Diagnose
19769 if the variable is private in outer context. For simd collapse > 1
19770 loops, replace all iterators with temporaries.
19771 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
19772 same even in collapse > 1 loops.
19773
19774 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
19775 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
19776 non-NULL.
19777 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
19778 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
19779 non-NULL.
19780 (gimplify_adjust_omp_clauses): Likewise.
19781 * omp-low.c (lower_rec_simd_input_clauses,
19782 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
19783 safelen the same as safelen(1).
19784 * tree-nested.c (convert_nonlocal_omp_clauses,
19785 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
19786 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
19787 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
19788 Fixup handling of GIMPLE_OMP_TARGET.
19789 (convert_tramp_reference_stmt, convert_gimple_call): Handle
19790 GIMPLE_OMP_TARGET.
19791
19792 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
19793
19794 PR tree-optimization/61554
19795 * tree-ssa-propagate.c: Include "bitmap.h".
19796 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
19797 properly update constructor/destructor.
19798 (substitute_and_fold_dom_walker::before_dom_children):
19799 Remove call to gimple_purge_dead_eh_edges, add bb->index to
19800 need_eh_cleaup instead.
19801 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
19802 need_eh_cleanup.
19803
19804 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19805
19806 * varpool.c (dump_varpool_node): Dump used_by_single_function.
19807 * tree-pass.h (make_pass_ipa_single_use): New pass.
19808 * cgraph.h (used_by_single_function): New flag.
19809 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
19810 Stream it.
19811 * passes.def (pass_ipa_single_use): Scedule.
19812 * ipa.c (BOTTOM): New macro.
19813 (meet): New function
19814 (propagate_single_user): New function.
19815 (ipa_single_use): New function.
19816 (pass_data_ipa_single_use): New pass.
19817 (pass_ipa_single_use): New pass.
19818 (pass_ipa_single_use::gate): New gate.
19819 (make_pass_ipa_single_use): New function.
19820
19821 2014-06-23 Kai Tietz <ktietz@redhat.com>
19822
19823 PR target/39284
19824 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
19825 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
19826
19827 2014-06-23 Richard Biener <rguenther@suse.de>
19828
19829 * tree-ssa-loop.c (gate_loop): New function.
19830 (pass_tree_loop::gate): Call it.
19831 (pass_data_tree_no_loop, pass_tree_no_loop,
19832 make_pass_tree_no_loop): New.
19833 * tree-vectorizer.c: Include tree-scalar-evolution.c
19834 (pass_slp_vectorize::execute): Initialize loops and SCEV if
19835 required.
19836 (pass_slp_vectorize::clone): New method.
19837 * timevar.def (TV_TREE_NOLOOP): New.
19838 * tree-pass.h (make_pass_tree_no_loop): Declare.
19839 * passes.def (pass_tree_no_loop): New pass group with
19840 SLP vectorizer.
19841
19842 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
19843
19844 PR target/61570
19845 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
19846 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
19847
19848 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
19849
19850 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
19851 "yes" where needed.
19852
19853 2014-06-23 Alan Modra <amodra@gmail.com>
19854
19855 PR bootstrap/61583
19856 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
19857 to zero on debug statements.
19858
19859 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
19860
19861 PR target/60825
19862 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
19863 Ignore third operand if present by marking qualifier_internal.
19864
19865 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
19866
19867 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
19868 vector extension.
19869 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
19870 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
19871 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
19872 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
19873 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
19874 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
19875 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
19876 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
19877 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
19878 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
19879 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
19880 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
19881 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
19882 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
19883 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
19884 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
19885 logic in GCC vector extensions
19886
19887 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
19888 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
19889 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
19890 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
19891 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
19892 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
19893 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
19894 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
19895 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
19896 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
19897
19898 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
19899
19900 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
19901 extensions.
19902
19903 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
19904 (vget_low_s64): Use __GET_LOW macro.
19905 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
19906 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
19907 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
19908 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
19909 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
19910
19911 (vcombine_s64): Use GCC vector extensions; remove cast.
19912 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
19913 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
19914 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
19915 Fix type signature; remove cast.
19916
19917 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
19918
19919 PR target/60825
19920 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
19921 V1DFmode.
19922 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
19923 add V1DFmode
19924 (BUILTIN_VD1): New.
19925 (BUILTIN_VD_RE): Remove.
19926 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
19927 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
19928 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
19929 variant but not df.
19930 (vreinterpretv1df*, vreinterpret*v1df): New.
19931 (vreinterpretdf*, vreinterpret*df): Remove.
19932 * config/aarch64/aarch64-simd.md (aarch64_create,
19933 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
19934 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
19935 (VD1): New.
19936 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
19937 (vcreate_f64): Remove cast, use v1df builtin.
19938 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
19939 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
19940 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
19941 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
19942 vmov_n_f64, vst1_f64): Use gcc vector extensions.
19943 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
19944 add range check using __builtin_aarch64_im_lane_boundsi.
19945 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
19946 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
19947 type signature, use gcc vector extensions.
19948 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
19949 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
19950 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
19951 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
19952 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
19953 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
19954 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
19955 vreinterpret_u64_f64): Use v1df builtin not df.
19956
19957 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
19958
19959 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
19960 vector registers.
19961
19962 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19963
19964 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
19965 priority directly.
19966
19967 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19968
19969 * loop-invariant.c (pre_check_invariant_p): New function.
19970 (find_invariant_insn): Call pre_check_invariant_p.
19971
19972 2014-06-22 Richard Henderson <rth@redhat.com>
19973
19974 PR target/61565
19975 * compare-elim.c (struct comparison): Add eh_note.
19976 (find_comparison_dom_walker::before_dom_children): Don't eliminate
19977 a redundant comparison in a different EH region. Purge EH edges if
19978 necessary.
19979
19980 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19981
19982 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
19983 (var_shift): Use it.
19984 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
19985 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19986 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19987 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19988 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19989 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
19990 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
19991 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
19992 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
19993 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
19994 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
19995 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
19996 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
19997 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
19998 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
19999 *rotldi3_internal15be): Use the new attribute. Merge register and
20000 integer alternatives.
20001
20002 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20003
20004 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20005 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20006 split, *ashrdi3_internal3 and split): Delete, merge into...
20007 (ashr<mode>3): New expander.
20008 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20009 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
20010
20011 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20012
20013 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20014 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20015 *rotldi3_internal3 and split): Delete, merge into...
20016 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20017 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
20018 Use "rotlw" extended mnemonic.
20019
20020 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20021
20022 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20023 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20024 and split, *ashldi3_internal3 and split): Delete, merge into...
20025 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20026 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
20027
20028 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20029
20030 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20031 (lshrsi3, two anonymous define_insns and define_splits,
20032 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20033 *lshrdi3_internal3 and split): Delete, merge into...
20034 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20035 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
20036
20037 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20038
20039 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20040 Remove "O" alternative.
20041
20042 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
20043
20044 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20045 (mips_move_from_gpr_cost): Likewise.
20046 (mips_register_move_cost): Update accordingly.
20047 (mips_secondary_reload_class): Remove name of in_p.
20048
20049 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
20050
20051 PR target/61503
20052 * config/i386/i386.md (x86_64_shrd, x86_shrd,
20053 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20054
20055 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20056
20057 * config/nios2/nios2.c: Include "builtins.h".
20058
20059 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20060
20061 * cgraph.h (tls_model_names): New variable.
20062 * print-tree.c (print_node): Simplify.
20063 * varpool.c (tls_model_names): New variable.
20064 (dump_varpool_node): Output tls model.
20065
20066 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20067
20068 * ipa-visibility.c (function_and_variable_visibility): Disable
20069 temporarily local aliases for some targets.
20070
20071 2014-06-20 Marek Polacek <polacek@redhat.com>
20072
20073 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20074 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20075 into SANITIZE_UNDEFINED.
20076 * doc/invoke.texi: Describe -fsanitize=bounds.
20077 * gimplify.c (gimplify_call_expr): Add gimplification of internal
20078 functions created in the FEs.
20079 * internal-fn.c: Move "internal-fn.h" after "tree.h".
20080 (expand_UBSAN_BOUNDS): New function.
20081 * internal-fn.def (UBSAN_BOUNDS): New internal function.
20082 * internal-fn.h: Don't define internal functions here.
20083 * opts.c (common_handle_option): Add -fsanitize=bounds.
20084 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20085 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20086 * tree-core.h: Define internal functions here.
20087 (struct tree_base): Add ifn field.
20088 * tree-pretty-print.c: Include "internal-fn.h".
20089 (dump_generic_node): Handle functions without CALL_EXPR_FN.
20090 * tree.c (get_callee_fndecl): Likewise.
20091 (build_call_expr_internal_loc): New function.
20092 * tree.def (CALL_EXPR): Update description.
20093 * tree.h (CALL_EXPR_IFN): Define.
20094 (build_call_expr_internal_loc): Declare.
20095 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20096 types.
20097 (ubsan_type_descriptor): Change bool parameter to enum
20098 ubsan_print_style. Adjust the code. Add handling of
20099 UBSAN_PRINT_ARRAY.
20100 (ubsan_expand_bounds_ifn): New function.
20101 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20102 (ubsan_build_overflow_builtin): Likewise.
20103 (instrument_bool_enum_load): Likewise.
20104 (ubsan_instrument_float_cast): Likewise.
20105 * ubsan.h (enum ubsan_print_style): New enum.
20106 (ubsan_expand_bounds_ifn): Declare.
20107 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
20108
20109 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
20110
20111 * config/rs6000/rs6000.md: Append `DONE' to preparation
20112 statements of `bswap' pattern splitters.
20113
20114 2014-06-20 Tom de Vries <tom@codesourcery.com>
20115
20116 * target.def (call_fusage_contains_non_callee_clobbers): Update
20117 definition.
20118 * doc/tm.texi: Regenerate.
20119
20120 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20121 Max Ostapenko <m.ostapenko@partner.samsung.com>
20122
20123 PR sanitizer/61547
20124 * asan.c (instrument_strlen_call): Fixed instrumentation of
20125 trailing byte.
20126
20127 2014-06-20 Martin Jambor <mjambor@suse.cz>
20128
20129 PR ipa/61540
20130 * ipa-prop.c (impossible_devirt_target): New function.
20131 (try_make_edge_direct_virtual_call): Use it, also instead of
20132 asserting.
20133
20134 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20135 Max Ostapenko <m.ostapenko@partner.samsung.com>
20136
20137 PR sanitizer/61530
20138 * asan.c (build_check_stmt): Add condition.
20139
20140 2014-06-20 Martin Jambor <mjambor@suse.cz>
20141
20142 PR ipa/61211
20143 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20144 expanded clones.
20145
20146 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20147
20148 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20149 Update comments.
20150 (VCONQ): Make comment more helpful.
20151 (VCON): Delete.
20152 * config/aarch64/aarch64-simd.md
20153 (aarch64_sqdmulh_lane<mode>):
20154 Use VCOND for operands 2. Update lane checking and flipping logic.
20155 (aarch64_sqrdmulh_lane<mode>): Likewise.
20156 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20157 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20158 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20159 attribute of operand 3 to VCOND.
20160 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20161 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20162 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20163 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20164 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20165 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20166 define_insn.
20167 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20168 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20169 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20170 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20171 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20172 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20173 operand to VCOND. Update lane flipping and bounds checking logic.
20174 (aarch64_sqdmlal2_lane<mode>): Likewise.
20175 (aarch64_sqdmlsl_lane<mode>): Likewise.
20176 (aarch64_sqdmull_lane<mode>): Likewise.
20177 (aarch64_sqdmull2_lane<mode>): Likewise.
20178 (aarch64_sqdmlal_laneq<mode>):
20179 Replace VCON usage with VCONQ.
20180 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
20181 (aarch64_sqdmlal2_laneq<mode>): Emit
20182 aarch64_sqdmlal2_laneq<mode>_internal insn.
20183 Replace VCON with VCONQ.
20184 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
20185 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20186 (aarch64_sqdmull_laneq<mode>): Emit
20187 aarch64_sqdmull_laneq<mode>_internal insn.
20188 Replace VCON with VCONQ.
20189 (aarch64_sqdmull2_laneq<mode>): Emit
20190 aarch64_sqdmull2_laneq<mode>_internal insn.
20191 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
20192 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
20193 of 3rd argument to int16x4_t.
20194 (vqdmlalh_lane_s16): Likewise.
20195 (vqdmlslh_lane_s16): Likewise.
20196 (vqdmull_high_lane_s16): Likewise.
20197 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
20198 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
20199 (vqdmlsl_lane_s16): Likewise.
20200 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
20201 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
20202 (vqdmlals_lane_s32): Likewise.
20203 (vqdmlsls_lane_s32): Likewise.
20204 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
20205 (vqdmulls_lane_s32): Likewise.
20206 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
20207 (vqdmlsl_lane_s32): Likewise.
20208 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
20209 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
20210 (vqrdmulhh_lane_s16): Likewise.
20211 (vqdmlsl_high_lane_s16): Likewise.
20212 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20213 (vqdmlsl_high_lane_s32): Likewise.
20214 (vqrdmulhs_lane_s32): Likewise.
20215
20216 2014-06-20 Tom de Vries <tom@codesourcery.com>
20217
20218 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20219 get_call_reg_set_usage.
20220
20221 2014-06-20 Tom de Vries <tom@codesourcery.com>
20222
20223 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20224 it contains all call_used_regs.
20225
20226 2014-06-20 Tom de Vries <tom@codesourcery.com>
20227
20228 * final.c (collect_fn_hard_reg_usage): Add and use variable
20229 function_used_regs.
20230
20231 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20232
20233 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20234 (set_init_priority, get_init_priority, set_fini_priority,
20235 get_fini_priority): New methods.
20236 * tree.c (init_priority_for_decl): Remove.
20237 (init_ttree): Do not initialize init priority.
20238 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20239 (decl_priority_info): Remove.
20240 (decl_init_priority_insert): Rewrite.
20241 (decl_fini_priority_insert): Rewrite.
20242 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20243 tree_priority_map_marked_p): Remove.
20244 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20245 * lto-streamer-out.c (hash_tree): Do not hash priorities.
20246 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20247 not output priorities.
20248 (pack_ts_function_decl_value_fields): Likewise.
20249 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20250 not input priorities.
20251 (unpack_ts_function_decl_value_fields): Likewise.
20252 * symtab.c (symbol_priority_map): Declare.
20253 (init_priority_hash): Declare.
20254 (symtab_unregister_node): Unregister from priority hash, too.
20255 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20256 New methods.
20257 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20258 (symbol_priority_info): New function.
20259 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20260 New methods.
20261 * tree-core.h (tree_priority_map): Remove.
20262
20263 2014-06-20 Jakub Jelinek <jakub@redhat.com>
20264
20265 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20266 0xff to uint64_t before shifting it up.
20267
20268 2014-06-20 Julian Brown <julian@codesourcery.com>
20269 Chung-Lin Tang <cltang@codesourcery.com>
20270
20271 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20272 TARGET_THUMB1_ONLY. Add comments.
20273
20274 2014-06-19 Tom de Vries <tom@codesourcery.com>
20275
20276 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20277 return type to void.
20278 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20279
20280 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20281
20282 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20283 as "move", from depends_on.
20284
20285 2014-06-19 Terry Guo <terry.guo@arm.com>
20286
20287 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20288 stage.
20289
20290 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20291
20292 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20293 Remove cr5.
20294 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
20295
20296 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
20297
20298 PR target/61550
20299 * config/sh/sh.c (prepare_move_operands): Don't process TLS
20300 addresses here if reload in progress or completed.
20301
20302 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20303
20304 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20305 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20306 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20307 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20308 (mips_register_priority): New function that implements the target
20309 hook TARGET_REGISTER_PRIORITY.
20310 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
20311 (mips_lra_p): Likewise for TARGET_LRA_P.
20312 (TARGET_REGISTER_PRIORITY): Define macro.
20313 (TARGET_SPILL_CLASS): Likewise.
20314 (TARGET_LRA_P): Likewise.
20315 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
20316 classes.
20317 (REG_CLASS_NAMES): Likewise.
20318 (REG_CLASS_CONTENTS): Likewise.
20319 (BASE_REG_CLASS): Use M16_SP_REGS.
20320 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
20321 New set attribute to enable alternatives depending on the register
20322 allocator used.
20323 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
20324 (*lea64): Disable pattern for MIPS16.
20325 * config/mips/mips.opt (mlra): New option.
20326
20327 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20328
20329 * lra-constraints.c (base_to_reg): New function.
20330 (process_address): Use new function.
20331
20332 2014-06-18 Tom de Vries <tom@codesourcery.com>
20333
20334 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
20335 * config/aarch64/aarch64.c
20336 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
20337 (aarch64_emit_call_insn): New function.
20338 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
20339 of emit_call_insn.
20340 * config/aarch64/aarch64.md (define_expand "call_internal")
20341 (define_expand "call_value_internal", define_expand "sibcall_internal")
20342 (define_expand "sibcall_value_internal"): New.
20343 (define_expand "call", define_expand "call_value")
20344 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
20345 expand variant and aarch64_emit_call_insn.
20346
20347 2014-06-18 Radovan Obradovic <robradovic@mips.com>
20348 Tom de Vries <tom@codesourcery.com>
20349
20350 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
20351 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20352 Redefine to true.
20353 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
20354 clobbers to CALL_INSN_FUNCTION_USAGE.
20355 (define_expand "sibcall_internal")
20356 (define_expand "sibcall_value_internal"): New.
20357 (define_expand "call", define_expand "call_value"): Add argument to
20358 arm_emit_call_insn.
20359 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
20360 (define_expand "sibcall_value"): Use sibcall_value_internal and
20361 arm_emit_call_insn.
20362
20363 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20364
20365 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
20366
20367 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20368
20369 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
20370 __udivmoddi4.
20371
20372 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20373
20374 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
20375 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
20376 annotations. Fix DWARF information.
20377
20378 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20379
20380 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
20381 __udivmoddi4, and fixups for negative operands.
20382
20383 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20384
20385 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
20386
20387 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20388
20389 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
20390 to __udivmoddi4.
20391
20392 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20393
20394 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
20395 manipulation.
20396
20397 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20398
20399 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
20400 describing register usage on function entry and exit.
20401
20402 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20403
20404 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
20405 (__aeabi_ldivmod): Fix whitespace.
20406
20407 2014-06-18 Andreas Schwab <schwab@suse.de>
20408
20409 * doc/md.texi (Standard Names): Use @itemx for grouped items.
20410 Remove blank line after @item.
20411
20412 2014-06-18 Richard Henderson <rth@redhat.com>
20413
20414 PR target/61545
20415 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
20416
20417 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20418
20419 * config/arm/arm.c (neon_vector_mem_operand): Allow register
20420 POST_MODIFY for neon loads and stores.
20421 (arm_print_operand): Output post-index register for neon loads and
20422 stores.
20423
20424 2014-06-18 Richard Biener <rguenther@suse.de>
20425
20426 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
20427
20428 2014-06-18 Richard Biener <rguenther@suse.de>
20429
20430 * tree-pass.h (make_pass_dce_loop): Remove.
20431 * passes.def: Replace pass_dce_loop with pass_dce.
20432 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
20433 changed free niter estimates and reset the scev cache.
20434 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
20435 make_pass_dce_loop): Remove.
20436 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
20437 (fini_copy_prop): Return whether something changed. Always
20438 let substitute_and_fold perform DCE and free niter estimates
20439 and reset the scev cache if so.
20440 (execute_copy_prop): If sth changed schedule cleanup-cfg.
20441 (pass_data_copy_prop): Do not unconditionally schedule
20442 cleanup-cfg or update-ssa.
20443
20444 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
20445
20446 PR tree-optimization/61518
20447 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20448 reduction var is used in reduction stmt or phi-function only.
20449
20450 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20451
20452 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
20453
20454 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
20455
20456 PR tree-optimization/61517
20457 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
20458 whose rhs's first tree is the source expression instead of the
20459 expression itself.
20460 (find_bswap_or_nop): Likewise.
20461 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
20462 gimple stmt whose rhs's first tree is the source. In the memory source
20463 case, move the stmt to be replaced close to one of the original load to
20464 avoid the problem of a store between the load and the stmt's original
20465 location.
20466 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
20467 signature.
20468
20469 2014-06-18 Andreas Schwab <schwab@suse.de>
20470
20471 PR rtl-optimization/54555
20472 * postreload.c (move2add_use_add2_insn): Substitute
20473 STRICT_LOW_PART only if it is cheaper.
20474
20475 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
20476
20477 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
20478 Do not use unspec as call operand. Use memory_operand instead of
20479 memory_nox32_operand and add "m" operand constraint. Disable
20480 pattern for TARGET_X32.
20481 (*sibcall_pop_memory): Ditto.
20482 (*sibcall_value_memory): Ditto.
20483 (*sibcall_value_pop_memory): Ditto.
20484 (sibcall peepholes): Merge SImode and DImode patterns using
20485 W mode iterator. Use memory_operand instead of memory_nox32_operand.
20486 Disable pattern for TARGET_X32. Check if eliminated register is
20487 really dead after call insn. Generate call RTX without unspec operand.
20488 (sibcall_value peepholes): Ditto.
20489 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
20490 instead of memory_nox32_operand. Check if eliminated register is
20491 really dead after call insn. Generate call RTX without unspec operand.
20492 (sibcall_value_pop peepholes): Ditto.
20493 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
20494
20495 2014-06-18 Terry Guo <terry.guo@arm.com>
20496
20497 PR target/61544
20498 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
20499 reach the head.
20500
20501 2014-06-18 Olivier Hainque <hainque@adacore.com>
20502
20503 * tree-core.h (tree_block): Add an "end_locus" field, allowing
20504 memorization of the end of block source location.
20505 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
20506 * gimplify.c (gimplify_bind_expr): Propagate the block start and
20507 end source location info we have on the block entry/exit code we
20508 generate.
20509
20510 2014-06-18 Richard Biener <rguenther@suse.de>
20511
20512 * common.opt (fssa-phiopt): New option.
20513 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
20514 but not with -Og.
20515 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
20516 * doc/invoke.texi (-fssa-phiopt): Document.
20517
20518 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20519
20520 * genattrtab.c (n_bypassed): New variable.
20521 (process_bypasses): Initialise n_bypassed.
20522 Count number of bypassed reservations.
20523 (make_automaton_attrs): Allocate space for bypassed reservations
20524 rather than number of bypasses.
20525
20526 2014-06-18 Richard Biener <rguenther@suse.de>
20527
20528 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
20529 we propagated anything.
20530 (substitute_and_fold_dom_walker::before_dom_children): Something
20531 changed if we propagated into PHI arguments.
20532 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
20533 we removed a stmt.
20534
20535 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
20536
20537 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
20538 vector case.
20539 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
20540 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
20541 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
20542 Introduces alternative way of loads group permutaions.
20543 (vect_transform_grouped_load): Try alternative way of permutations.
20544
20545 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20546
20547 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
20548 changed in ORT_TARGET region, don't jump to do_outer.
20549 (struct gimplify_adjust_omp_clauses_data): New type.
20550 (gimplify_adjust_omp_clauses_1): Adjust for data being
20551 a struct gimplify_adjust_omp_clauses_data pointer instead
20552 of tree *. Pass pre_p as a new argument to
20553 lang_hooks.decls.omp_finish_clause hook.
20554 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
20555 splay_tree_foreach to pass both list_p and pre_p.
20556 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
20557 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
20558 gimplify_adjust_omp_clauses callers.
20559 * langhooks.c (lhd_omp_finish_clause): New function.
20560 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20561 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20562 * langhooks.h (struct lang_hooks_for_decls): Add a new
20563 gimple_seq * argument to omp_finish_clause hook.
20564 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20565 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20566 (scan_omp_parallel, lower_omp_for): When adding
20567 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20568 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20569 * tree-nested.c (convert_nonlocal_omp_clauses,
20570 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20571 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20572
20573 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
20574
20575 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20576 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20577
20578 2014-06-17 Xinliang David Li <davidxl@google.com>
20579
20580 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20581 * passes.c (pass_init_dump_file): Do not set initialize
20582 flag to false unconditionally.
20583
20584 2014-06-17 Richard Biener <rguenther@suse.de>
20585
20586 * genopinit.c (main): Use vec<>::qsort method.
20587 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20588 Likewise.
20589 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20590
20591 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
20592
20593 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20594 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20595 (mips_move_to_gpr_cost): Remove ST_REGS case.
20596 (mips_move_from_gpr_cost): Likewise.
20597 (mips_register_move_cost): Likewise.
20598 (mips_secondary_reload_class): Likewise.
20599
20600 2014-06-17 Richard Biener <rguenther@suse.de>
20601
20602 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20603 (pass_all_optimizations): Move 3rd copy-prop pass from after
20604 fre to before ifcombine/phiopt.
20605
20606 2014-06-17 Richard Biener <rguenther@suse.de>
20607
20608 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20609 and allow all blocks to be forwarders.
20610
20611 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
20612
20613 PR target/61483
20614 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20615 variable 'size'; calculate 'size' right in the front; use
20616 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20617 pcum->aapcs_stack_words.
20618
20619 2014-06-17 Nick Clifton <nickc@redhat.com>
20620
20621 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20622 (umulhi3, mulsidi3, umulsidi3): Likewise.
20623
20624 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
20625
20626 PR middle-end/61508
20627 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20628 check for section name.
20629
20630 2014-06-17 Richard Biener <rguenther@suse.de>
20631
20632 * tree-ssa-propagate.c: Include domwalk.h.
20633 (substitute_and_fold): Outline main worker into a domwalker ...
20634 (substitute_and_fold_dom_walker::before_dom_children): ... here.
20635 Schedule stmts we can fully propagate for removal. Remove
20636 poor-mans DCE.
20637 (substitute_and_fold): Apply a dominator walk to perform
20638 substitution. Process stmts scheduled for removal here.
20639
20640 2014-06-17 Richard Biener <rguenther@suse.de>
20641
20642 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20643 of PHI node moving.
20644
20645 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20646
20647 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20648 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20649 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20650 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20651 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20652 TARGET_HARD_FLOAT.
20653 (get_fpscr) : Likewise.
20654
20655 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20656
20657 PR rtl-optimization/61325
20658 * lra-constraints.c (valid_address_p): Add forward declaration.
20659 (simplify_operand_subreg): Check address validity before and after
20660 alter_reg of memory subreg.
20661
20662 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
20663
20664 * config/i386/i386.c (decide_alg): Correctly handle
20665 maximum size of stringop algorithm.
20666
20667 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20668
20669 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
20670
20671 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20672
20673 PR rtl-optimization/61522
20674 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20675
20676 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
20677
20678 Revert:
20679 * symtab.c (symtab_node::reset_section): New method.
20680 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20681 for localization.
20682 * cgraph.h (reset_section): Declare.
20683 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20684 do not consider comdat locals.
20685 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20686 for new symbol.
20687 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20688 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20689 reset sections of symbols dragged out of the comdats.
20690 (function_and_variable_visibility): Reset sections of
20691 localized symbols.
20692
20693 2014-06-16 Richard Biener <rguenther@suse.de>
20694
20695 PR tree-optimization/61482
20696 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20697 [-INF(OVF), +INF(OVF)] range.
20698
20699 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20700
20701 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20702 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
20703 handling 32-bit multiplication.
20704
20705 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
20706
20707 PR middle-end/61430
20708 * lra-lives.c (process_bb_lives): Skip creating copy during
20709 insn scan when src/dest has constrained to same regno.
20710
20711 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20712
20713 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
20714 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
20715
20716 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20717
20718 * asan.c (check_func): New function.
20719 (maybe_create_ssa_name): Likewise.
20720 (build_check_stmt_with_calls): Likewise.
20721 (use_calls_p): Likewise.
20722 (report_error_func): Change interface.
20723 (build_check_stmt): Allow non-integer lengths; add support
20724 for new parameter.
20725 (asan_instrument): Likewise.
20726 (instrument_mem_region_access): Moved code to build_check_stmt.
20727 (instrument_derefs): Likewise.
20728 (instrument_strlen_call): Likewise.
20729 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
20730 * doc/invoke.texi: Describe new parameter.
20731 * params.def: Define new parameter.
20732 * params.h: Likewise.
20733 * sanitizer.def: Describe new builtins.
20734
20735 2014-06-16 Richard Biener <rguenther@suse.de>
20736
20737 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20738 Make all defs available at the end.
20739 (eliminate): If we remove a PHI node schedule cfg-cleanup.
20740
20741 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20742
20743 PR plugins/45078
20744 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
20745
20746 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
20747
20748 PR bootstrap/61516
20749 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
20750 initialization. Replace remaining use of uid.
20751
20752 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20753
20754 * c-family/c-common.c (handle_tls_model_attribute): Use
20755 set_decl_tls_model.
20756 * c-family/c-common.c (handle_tls_model_attribute): Use
20757 set_decl_tls_model.
20758 * cgraph.h (struct varpool_node): Add tls_model.
20759 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
20760 * tree.h (DECL_TLS_MODEL): Update.
20761 (DECL_THREAD_LOCAL_P): Check that variable is static.
20762 (decl_tls_model): Declare.
20763 (set_decl_tls_model): Declare.
20764 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
20765 set symbol prorperties.
20766 (get_emutls_init_templ_addr): Cleanup.
20767 (new_emutls_decl): Update.
20768 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
20769 (lto_input_varpool_node): Likewise.
20770 * lto-streamer-out.c (hash_tree): Likewise.
20771 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20772 not stream DECL_TLS_MODEL.
20773 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
20774 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
20775
20776 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20777
20778 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
20779
20780 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20781
20782 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
20783 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
20784 lists.
20785 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
20786 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
20787 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
20788 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
20789 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
20790 (df_get_artificial_defs, df_get_artificial_uses)
20791 (df_single_def, df_single_use): Update accordingly.
20792 (df_refs_chain_dump): Take the first element in a linked list as
20793 parameter, rather than a pointer to an array of pointers.
20794 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
20795 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
20796 (df_chain_create_bb_process_use): Likewise.
20797 (df_md_bb_local_compute_process_def): Likewise.
20798 * fwprop.c (process_defs, process_uses): Likewise.
20799 (register_active_defs, update_uses): Likewise.
20800 (forward_propagate_asm): Update for new df_ref linking.
20801 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
20802 (df_null_ref_rec, df_null_mw_rec): Likewise.
20803 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
20804 explicitly.
20805 (df_scan_free_bb_info): Remove check for null artificial_defs.
20806 (df_install_ref_incremental): Adjust for new df_ref linking.
20807 Use a single-element insertion rather than a full sort.
20808 (df_ref_chain_delete_du_chain): Take the first element
20809 in a linked list as parameter, rather than a pointer to an array of
20810 pointers.
20811 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
20812 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
20813 (df_insn_info_delete): Remove check for null defs and call to
20814 df_scan_free_mws_vec.
20815 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
20816 null rather than df_null_*_rec.
20817 (df_insn_rescan_debug_internal): Likewise, and update null
20818 checks in the same way. Remove check for null defs.
20819 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
20820 Move a single element rather doing a full sort.
20821 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
20822 linking.
20823 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
20824 Initialize df_ref and df_mw_hardreg lists to null rather than
20825 df_null_*_rec.
20826 (df_ref_compare): Take df_refs as parameter, transferring the
20827 old interface to...
20828 (df_ref_ptr_compare): ...this new function.
20829 (df_sort_and_compress_refs): Update accordingly.
20830 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
20831 old interface to...
20832 (df_mw_ptr_compare): ...this new function.
20833 (df_sort_and_compress_mws): Update accordingly.
20834 (df_install_refs, df_install_mws): Return a linked list rather than
20835 an array of pointers.
20836 (df_refs_add_to_chains): Assert that old lists are empty rather
20837 than freeing them.
20838 (df_insn_refs_verify): Don't handle null defs speciailly.
20839 * web.c (union_match_dups): Update for new df_ref linking.
20840
20841 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20842
20843 * df.h (df_ref_create, df_ref_remove): Delete.
20844 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
20845 (df_ref_remove): Likewise.
20846
20847 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20848
20849 * df.h (df_single_def, df_single_use): New functions.
20850 * ira.c (find_moveable_pseudos): Use them.
20851
20852 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20853
20854 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
20855 * df-problems.c (df_note_bb_compute): Use it.
20856 * regstat.c (regstat_bb_compute_ri): Likewise.
20857
20858 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20859
20860 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
20861 * cse.c (cse_extended_basic_block): Use them.
20862 * dce.c (mark_artificial_use): Likewise.
20863 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
20864 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20865 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
20866 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
20867 (df_simulate_initialize_backwards): Likewise.
20868 (df_simulate_finalize_backwards): Likewise.
20869 (df_simulate_initialize_forwards): Likewise.
20870 (df_md_simulate_artificial_defs_at_top): Likewise.
20871 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20872 * regrename.c (init_rename_info): Likewise.
20873 * regstat.c (regstat_bb_compute_ri): Likewise.
20874 (regstat_bb_compute_calls_crossed): Likewise.
20875
20876 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20877
20878 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
20879 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
20880 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
20881 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
20882 * combine.c (create_log_links): Likewise.
20883 * compare-elim.c (find_flags_uses_in_insn): Likewise.
20884 (try_eliminate_compare): Likewise.
20885 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
20886 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
20887 (remove_reg_equal_equiv_notes_for_defs): Likewise.
20888 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
20889 (word_dce_process_block, dce_process_block): Likewise.
20890 * ddg.c (def_has_ccmode_p): Likewise.
20891 * df-core.c (df_bb_regno_first_def_find): Likewise.
20892 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
20893 * df-problems.c (df_rd_simulate_one_insn): Likewise.
20894 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20895 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
20896 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
20897 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
20898 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
20899 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
20900 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
20901 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
20902 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20903 * fwprop.c (local_ref_killed_between_p): Likewise.
20904 (all_uses_available_at, free_load_extend): Likewise.
20905 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
20906 * hw-doloop.c (scan_loop): Likewise.
20907 * ifcvt.c (dead_or_predicable): Likewise.
20908 * init-regs.c (initialize_uninitialized_regs): Likewise.
20909 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
20910 (process_bb_node_lives): Likewise.
20911 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
20912 (find_moveable_pseudos): Likewise.
20913 * loop-invariant.c (check_dependencies, record_uses): Likewise.
20914 * recog.c (peep2_find_free_register): Likewise.
20915 * ree.c (get_defs): Likewise.
20916 * regstat.c (regstat_bb_compute_ri): Likewise.
20917 (regstat_bb_compute_calls_crossed): Likewise.
20918 * sched-deps.c (find_inc, find_mem): Likewise.
20919 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
20920 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
20921 * shrink-wrap.c (requires_stack_frame_p): Likewise.
20922 (prepare_shrink_wrap): Likewise.
20923 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
20924 * web.c (union_defs, pass_web::execute): Likewise.
20925 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
20926 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
20927
20928 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
20929
20930 * lra-assign.c (assign_by_spills): Add code to assign vector regs
20931 to inheritance pseudos.
20932 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
20933
20934 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
20935
20936 PR target/61415
20937 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
20938 (BU_MISC_2): Rename to ...
20939 (BU_LDBL128_2): ... this.
20940 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
20941 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
20942 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20943 RS6000_BTM_LDBL128.
20944 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
20945 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
20946 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
20947 (unpacktf_1): Likewise.
20948 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
20949 (__builtin_longdouble_dw1): Likewise.
20950 * doc/sourcebuild.texi (longdouble128): Document.
20951
20952 2014-06-13 Jeff Law <law@redhat.com>
20953
20954 PR rtl-optimization/61094
20955 PR rtl-optimization/61446
20956 * ree.c (combine_reaching_defs): Get the mode for the copy from
20957 the extension insn rather than the defining insn.
20958
20959 2014-06-13 Dehao Chen <dehao@google.com>
20960
20961 * dwarf2out.c (add_linkage_name): Emit more linkage name.
20962
20963 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
20964
20965 * doc/install.texi (--enable-linker-plugin-configure-flags)
20966 (--enable-linker-plugin-flags): Document new flags.
20967
20968 2014-06-13 Martin Jambor <mjambor@suse.cz>
20969
20970 PR ipa/61186
20971 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
20972 cache_token if returning early.
20973
20974 2014-06-13 Nick Clifton <nickc@redhat.com>
20975
20976 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
20977 requested alignment is active.
20978 (LABEL_ALIGN): Likewise.
20979 (LOOP_ALIGN): Likewise.
20980
20981 2014-06-13 Richard Biener <rguenther@suse.de>
20982
20983 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20984 Rewrite to propagate the VN result into all uses where
20985 possible and to remove stmts becoming dead because of that.
20986 (eliminate): Generalize stmt removal handling, remove in
20987 reverse dominator order to support proper debug stmt
20988 generation. Update stmts before removing stmts.
20989 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
20990
20991 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
20992
20993 PR tree-optimization/61375
20994 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
20995 symbolic number cannot be represented in an uint64_t.
20996 (find_bswap_or_nop_1): Likewise.
20997
20998 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
20999
21000 * symtab.c (symtab_node::reset_section): New method.
21001 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21002 for localization.
21003 * cgraph.h (reset_section): Declare.
21004 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21005 do not consider comdat locals.
21006 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21007 for new symbol.
21008 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21009 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21010 reset sections of symbols dragged out of the comdats.
21011 (function_and_variable_visibility): Reset sections of
21012 localized symbols.
21013
21014 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21015
21016 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21017 to use symtab and decl_binds_to_current_def_p
21018 * tree-vectorizer.c (increase_alignment): Increase alignment
21019 of alias target, too.
21020
21021 2014-06-12 Jakub Jelinek <jakub@redhat.com>
21022
21023 PR middle-end/61486
21024 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21025 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21026 if outer combined construct is distribute.
21027 (gimplify_omp_for): For OMP_DISTRIBUTE set
21028 gimplify_omp_ctxp->distribute.
21029 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21030 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21031 mapping into decl map.
21032
21033 2014-06-12 Jason Merrill <jason@redhat.com>
21034
21035 * common.opt (fabi-version): Change default to 0.
21036
21037 2014-06-12 Jason Merrill <jason@redhat.com>
21038
21039 * toplev.c (process_options): Reject -fabi-version=1.
21040
21041 2014-06-12 Jeff Law <law@redhat.com>
21042
21043 PR tree-optimization/61009
21044 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21045 value when we stop processing a block due to problematic PHIs.
21046
21047 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
21048
21049 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21050 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21051 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21052 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21053 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21054 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21055 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21056 are not in the spec.
21057
21058 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
21059
21060 PR target/59843
21061 * config/aarch64/aarch64-modes.def: Add V1DFmode.
21062 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21063 Support V1DFmode.
21064
21065 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
21066
21067 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21068
21069 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
21070
21071 PR target/61443
21072 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21073 loading from address spaces.
21074
21075 2014-06-12 Martin Liska <mliska@suse.cz>
21076
21077 PR ipa/61462
21078 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21079 statement is reachable.
21080
21081 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21082
21083 * symtab.c (section_hash): New hash.
21084 (symtab_unregister_node): Clear section before freeing.
21085 (hash_section_hash_entry): New haser.
21086 (eq_sections): New function.
21087 (symtab_node::set_section_for_node): New method.
21088 (set_section_1): Update.
21089 (symtab_node::set_section): Take string instead of tree as parameter.
21090 (symtab_resolve_alias): Update.
21091 * cgraph.h (section_hash_entry_d): New structure.
21092 (section_hash_entry): New typedef.
21093 (cgraph_node): Change comdat_group_ to x_comdat_group,
21094 change section_ to x_section and turn into section_hash_entry;
21095 update accestors; put set_section_for_node offline.
21096 * tree.c (decl_section_name): Turn into string.
21097 (set_decl_section_name): Change parameter to be string.
21098 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21099 * sdbout.c (sdbout_one_type): Update.
21100 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21101 * varasm.c (IN_NAMED_SECTION, get_named_section,
21102 resolve_unique_section, hot_function_section, get_named_text_section,
21103 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21104 make_decl_rtl, default_unique_section): Update.
21105 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21106 (c6x_elf_unique_section): Update.
21107 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21108 * config/pa/pa.c (pa_function_section): Update.
21109 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21110 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21111 * config/arc/arc.c (arc_in_small_data_p): Update.
21112 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21113 * config/mcore/mcore.c (mcore_unique_section): Update.
21114 * config/mips/mips.c (mips16_build_function_stub): Update.
21115 (mips16_build_call_stub): Update.
21116 (mips_function_rodata_section): Update.
21117 (mips_in_small_data_p): Update.
21118 * config/score/score.c (score_in_small_data_p): Update.
21119 * config/rx/rx.c (rx_in_small_data): Update.
21120 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21121 (rs6000_xcoff_asm_named_section): Update.
21122 (rs6000_xcoff_unique_section): Update.
21123 * config/frv/frv.c (frv_string_begins_with): Update.
21124 (frv_in_small_data_p): Update.
21125 * config/v850/v850.c (v850_encode_data_area): Update.
21126 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21127 (bfin_handle_l1_data_attribute): Update.
21128 (bfin_handle_l2_attribute): Update.
21129 * config/mep/mep.c (mep_unique_section): Update.
21130 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21131 Update.
21132 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21133 (h8300_handle_tiny_data_attribute): Update.
21134 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21135 (m32r_in_small_data_p): Update.
21136 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21137 * config/i386/i386.c (ix86_in_large_data_p): Update.
21138 * config/i386/winnt.c (i386_pe_unique_section): Update.
21139 * config/darwin.c (darwin_function_section): Update.
21140 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21141 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21142 (new_emutls_decl): Update.
21143 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21144 input_varpool_node): Update.
21145 (ead_string_cst): Turn to ...
21146 (read_string): ... this one.
21147 * dwarf2out.c (secname_for_decl): Update.
21148 * asan.c (asan_protect_global): Update.
21149
21150 2014-06-11 DJ Delorie <dj@redhat.com>
21151
21152 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21153 cache lines.
21154 * config/rx/rx.c (rx_option_override): Likewise.
21155 (rx_align_for_label): Likewise.
21156
21157 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21158
21159 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
21160
21161 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21162 prototype.
21163
21164 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21165
21166 * common.md: New file.
21167 * doc/md.texi: Update description of generic, machine-independent
21168 constraints.
21169 * config/s390/constraints.md (e): Delete.
21170 * Makefile.in (md_file): Include common.md.
21171 * config/m32c/t-m32c (md_file): Likewise.
21172 * genpreds.c (general_mem): New array.
21173 (generic_constraint_letters): Remove constraints now defined by
21174 common.md.
21175 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21176 Allow the first character to be '<' or '>' as well.
21177 * genoutput.c (general_mem): New array.
21178 (indep_constraints): Remove constraints now defined by common.md.
21179 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21180 Remove special handling of 'm'.
21181 * ira-costs.c (record_reg_classes): Remove special handling of
21182 constraints now defined by common.md.
21183 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21184 * ira-lives.c (single_reg_class): Likewise.
21185 (ira_implicitly_set_insn_hard_regs): Likewise.
21186 * lra-constraints.c (reg_class_from_constraints): Likewise.
21187 (process_alt_operands, process_address, curr_insn_transform): Likewise.
21188 * postreload.c (reload_cse_simplify_operands): Likewise.
21189 * reload.c (push_secondary_reload, scratch_reload_class)
21190 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21191 * reload1.c (maybe_fix_stack_asms): Likewise.
21192 * targhooks.c (default_secondary_reload): Likewise.
21193 * stmt.c (parse_output_constraint): Likewise.
21194 * recog.c (preprocess_constraints): Likewise.
21195 (constrain_operands, peep2_find_free_register): Likewise.
21196 (asm_operand_ok): Likewise, but add a comment saying why 'o'
21197 must be handled specially.
21198
21199 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21200
21201 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
21202 * genpreds.c (have_const_dbl_constraints): Delete.
21203 (add_constraint): Don't set it.
21204 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
21205 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
21206 constraints using the lookup_constraint logic.
21207 * ira-lives.c (single_reg_class): Likewise.
21208 * ira.c (ira_setup_alts): Likewise.
21209 * lra-constraints.c (process_alt_operands): Likewise.
21210 * recog.c (asm_operand_ok, constrain_operands): Likewise.
21211 * reload.c (find_reloads): Likewise.
21212
21213 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21214
21215 * genpreds.c (const_int_start, const_int_end): New variables.
21216 (choose_enum_order): Output CONST_INT constraints before memory
21217 constraints.
21218 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21219 Add CT_CONST_INT.
21220 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21221 * ira.c (ira_setup_alts): Likewise.
21222 * lra-constraints.c (process_alt_operands): Likewise.
21223 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21224 * reload.c (find_reloads): Likewise.
21225
21226 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21227
21228 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21229 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
21230 * recog.c (preprocess_constraints): Update accordingly.
21231
21232 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21233
21234 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21235 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21236 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21237 * genpreds.c (print_type_tree): New function.
21238 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21239 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21240 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21241 Write out enum constraint_type and get_constraint_type.
21242 * lra-constraints.c (satisfies_memory_constraint_p): Take a
21243 constraint_num rather than a constraint string.
21244 (satisfies_address_constraint_p): Likewise.
21245 (reg_class_from_constraints): Avoid old constraint macros.
21246 (process_alt_operands, process_address_1): Likewise.
21247 (curr_insn_transform): Likewise.
21248 * ira-costs.c (record_reg_classes): Likewise.
21249 (record_operand_costs): Likewise.
21250 * ira-lives.c (single_reg_class): Likewise.
21251 (ira_implicitly_set_insn_hard_regs): Likewise.
21252 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21253 * postreload.c (reload_cse_simplify_operands): Likewise.
21254 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21255 (constrain_operands, peep2_find_free_register): Likewise.
21256 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21257 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21258 * reload1.c (maybe_fix_stack_asms): Likewise.
21259 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21260 * targhooks.c (default_secondary_reload): Likewise.
21261 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21262 to EXTRA_CONSTRAINT_STR.
21263 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21264
21265 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21266
21267 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21268 (write_constraint_satisfied_p_array): ...this new function.
21269 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21270 an array.
21271 (write_insn_preds_c): Update accordingly.
21272
21273 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21274
21275 * genpreds.c (write_lookup_constraint): Rename to...
21276 (write_lookup_constraint_1): ...this.
21277 (write_lookup_constraint_array): New function.
21278 (write_tm_preds_h): Define lookup_constraint as an inline function
21279 that uses write_lookup_constraint_array where possible.
21280 (write_insn_preds_c): Update for the changes above.
21281
21282 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21283
21284 * doc/md.texi (regclass_for_constraint): Rename to...
21285 (reg_class_for_constraint): ...this.
21286 * genpreds.c (num_constraints, enum_order, register_start)
21287 (register_end, satisfied_start, memory_start, memory_end)
21288 (address_start, address_end): New variables.
21289 (add_constraint): Count the number of constraints.
21290 (choose_enum_order): New function.
21291 (write_enum_constraint_num): Iterate over enum_order.
21292 (write_regclass_for_constraint): Rename to...
21293 (write_reg_class_for_constraint_1): ...this and update output
21294 accordingly.
21295 (write_constraint_satisfied_p): Rename to...
21296 (write_constraint_satisfied_p_1): ...this and update output
21297 accordingly. Do nothing if all extra constraints are register
21298 constraints.
21299 (write_insn_extra_memory_constraint): Delete.
21300 (write_insn_extra_address_constraint): Delete.
21301 (write_range_function): New function.
21302 (write_tm_preds_h): Define constraint_satisfied_p and
21303 reg_class_for_constraint as inline functions that do a range check
21304 before calling the out-of-line function. Use write_range_function
21305 to implement insn_extra_{register,memory,address}_constraint,
21306 the first of which is new.
21307 (write_insn_preds_c): Update after above changes to write_* functions.
21308 (main): Call choose_enum_order.
21309
21310 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
21311
21312 PR tree-optimization/61306
21313 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
21314 expression instead of its size.
21315 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
21316 false to prevent optimization when the result is unpredictable due to
21317 arithmetic right shift of signed type with highest byte is set.
21318 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
21319 (init_symbolic_number): Likewise.
21320 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
21321 when the result is unpredictable due to sign extension.
21322
21323 2014-06-11 Terry Guo <terry.guo@arm.com>
21324
21325 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
21326 (*thumb1_addsi3): Ditto.
21327 (*thumb_subdi3): Ditto.
21328 (thumb1_subsi3_insn): Ditto.
21329 (*thumb_mulsi3): Ditto.
21330 (*thumb_mulsi3_v6): Ditto.
21331 (*thumb1_andsi3_insn): Ditto.
21332 (thumb1_bicsi3): Ditto.
21333 (*thumb1_iorsi3_insn): Ditto.
21334 (*thumb1_xorsi3_insn): Ditto.
21335 (*thumb1_ashlsi3): Ditto.
21336 (*thumb1_ashrsi3): Ditto.
21337 (*thumb1_lshrsi3): Ditto.
21338 (*thumb1_rotrsi3): Ditto.
21339 (*thumb1_negdi2): Ditto.
21340 (*thumb1_negsi2): Ditto.
21341 (*thumb1_abssi2): Ditto.
21342 (*thumb1_neg_abssi2): Ditto.
21343 (*thumb1_one_cmplsi2): Ditto.
21344 (*thumb1_zero_extendhisi2): Ditto.
21345 (*thumb1_zero_extendqisi2): Ditto.
21346 (*thumb1_zero_extendqisi2_v6): Ditto.
21347 (thumb1_extendhisi2): Ditto.
21348 (thumb1_extendqisi2): Ditto.
21349 (*thumb1_movdi_insn): Ditto.
21350 (*thumb1_movsi_insn): Ditto.
21351 (*thumb1_movhi_insn): Ditto.
21352 (thumb_movhi_clobber): Ditto.
21353 (*thumb1_movqi_insn): Ditto.
21354 (*thumb1_movhf): Ditto.
21355 (*thumb1_movsf_insn): Ditto.
21356 (*thumb_movdf_insn): Ditto.
21357 (movmem12b): Ditto.
21358 (movmem8b): Ditto.
21359 (cbranchqi4): Ditto.
21360 (cbranchsi4_insn): Ditto.
21361 (cbranchsi4_scratch): Ditto.
21362 (*negated_cbranchsi4): Ditto.
21363 (*tbit_cbranch): Ditto.
21364 (*tlobits_cbranch): Ditto.
21365 (*tstsi3_cbranch): Ditto.
21366 (*cbranchne_decr1): Ditto.
21367 (*addsi3_cbranch): Ditto.
21368 (*addsi3_cbranch_scratch): Ditto.
21369 (*thumb_cmpdi_zero): Ditto.
21370 (cstoresi_eq0_thumb1): Ditto.
21371 (cstoresi_ne0_thumb1): Ditto.
21372 (*cstoresi_eq0_thumb1_insn): Ditto.
21373 (*cstoresi_ne0_thumb1_insn): Ditto.
21374 (cstoresi_nltu_thumb1): Ditto.
21375 (cstoresi_ltu_thumb1): Ditto.
21376 (thumb1_addsi3_addgeu): Ditto.
21377 (*thumb_jump): Ditto.
21378 (*call_reg_thumb1_v5): Ditto.
21379 (*call_reg_thumb1): Ditto.
21380 (*call_value_reg_thumb1_v5): Ditto.
21381 (*call_value_reg_thumb1): Ditto.
21382 (*call_insn): Ditto.
21383 (*call_value_insn): Ditto.
21384 (thumb1_casesi_internal_pic): Ditto.
21385 (thumb1_casesi_dispatch): Ditto.
21386 (*thumb1_indirect_jump): Ditto.
21387 (prologue_thumb1_interwork): Ditto.
21388 (*epilogue_insns): Ditto.
21389 (consttable_1): Ditto.
21390 (consttable_2): Ditto.
21391 (tablejump): Ditto.
21392 (*thumb1_tablejump): Ditto.
21393 (thumb_eh_return): Ditto.
21394 (define_peephole2): Two of them are thumb1 only and got moved into
21395 new file thumb1.md.
21396 (define_split): Six of them are thumb1 only and got moved into new
21397 file thumb1.md.
21398 * config/arm/thumb1.md: New file comprised of above thumb1 only
21399 patterns.
21400
21401 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21402
21403 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
21404 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
21405 dependencies.
21406 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
21407 (aarch64_crc_builtin_datum): New struct.
21408 (aarch64_crc_builtin_data): New.
21409 (aarch64_init_crc32_builtins): New function.
21410 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
21411 (aarch64_crc32_expand_builtin): New.
21412 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
21413 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21414 __ARM_FEATURE_CRC32 when appropriate.
21415 (TARGET_CRC32): Define.
21416 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
21417 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
21418 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
21419 (aarch64_<crc_variant>): New pattern.
21420 * config/aarch64/arm_acle.h: New file.
21421 * config/aarch64/iterators.md (CRC): New int iterator.
21422 (crc_variant, crc_mode): New int attributes.
21423 * doc/aarch64-acle-intrinsics.texi: New file.
21424 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
21425 Include aarch64-acle-intrinsics.texi.
21426
21427 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
21428
21429 * tree-vect-data-refs.c (vect_grouped_store_supported): New
21430 check for stores group of length 3.
21431 (vect_permute_store_chain): New permutations for stores group of
21432 length 3.
21433 * tree-vect-stmts.c (vect_model_store_cost): Change cost
21434 of vec_perm_shuffle for the new permutations.
21435
21436 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21437
21438 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
21439 table rewriting temporarily on targets not supporting ONE_ONLY.
21440
21441 2014-06-11 Richard Biener <rguenther@suse.de>
21442
21443 PR middle-end/61437
21444 Revert
21445 2014-06-04 Richard Biener <rguenther@suse.de>
21446
21447 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21448 TREE_PUBLIC and DECL_EXTERNAL decls.
21449
21450 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21451
21452 * varasm.c (set_implicit_section): New function.
21453 (resolve_unique_section): Use it to set implicit section
21454 for aliases, too.
21455 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
21456 (default_function_section): Likewise.
21457 (decl_binds_to_current_def_p): Constify argument.
21458 * varasm.h (decl_binds_to_current_def_p): Update prototype.
21459 * asan.c (asan_protect_global): Use
21460 symtab_get_node (decl)->implicit_section.
21461 * symtab.c (dump_symtab_base): Dump implicit sections.
21462 (verify_symtab_base): Verify sanity of sectoins and comdats.
21463 (symtab_resolve_alias): Alias share the section of its target.
21464 (set_section_1): New function.
21465 (symtab_node::set_section): Move here, recurse to aliases.
21466 (verify_symtab): Check for duplicated symtab lists.
21467 * tree-core.h (implicit_section_name_p): Remove.
21468 * tree-vect-data-refs.c: Include varasm.h.
21469 (vect_can_force_dr_alignment_p): Fix conditional on when
21470 decl bints to current definition; use
21471 symtab_get_node (decl)->implicit_section.
21472 * cgraph.c (cgraph_make_node_local_1): Fix section set.
21473 * cgraph.h (struct symtab_node): Add implicit_section.
21474 (set_section): Rename to ...
21475 (set_section_for_node): ... this one.
21476 (set_section): Declare.
21477 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
21478 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21479 input_overwrite_node, input_varpool_node): Stream implicit_section.
21480 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
21481 removal; it will fail in LTO.
21482
21483 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21484
21485 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
21486 Change second alternative type to f_mcr.
21487 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
21488 and 12th alternatives' types to f_mcr and f_mrc.
21489 (*movdi_aarch64): Same for 12th and 13th alternatives.
21490 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
21491 (aarch64_movtilow_tilow): Change type to fmov.
21492
21493 2014-06-10 Jiong Wang <jiong.wang@arm.com>
21494
21495 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
21496 (aarch64_save_or_restore_callee_save_registers): Fix layout.
21497
21498 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21499
21500 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
21501 New expander.
21502 (aarch64_sqrdmulh_lane<mode>): Likewise.
21503 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21504 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21505 (aarch64_sqdmulh_laneq<mode>): New expander.
21506 (aarch64_sqrdmulh_laneq<mode>): Likewise.
21507 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
21508 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
21509 (aarch64_sqdmulh_lane<mode>): New expander.
21510 (aarch64_sqrdmulh_lane<mode>): Likewise.
21511 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21512 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21513 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
21514 (aarch64_sqdmlal_laneq<mode>): Likewise.
21515 (aarch64_sqdmlsl_lane<mode>): Likewise.
21516 (aarch64_sqdmlsl_laneq<mode>): Likewise.
21517 (aarch64_sqdmlal2_lane<mode>): Likewise.
21518 (aarch64_sqdmlal2_laneq<mode>): Likewise.
21519 (aarch64_sqdmlsl2_lane<mode>): Likewise.
21520 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21521 (aarch64_sqdmull_lane<mode>): Likewise.
21522 (aarch64_sqdmull_laneq<mode>): Likewise.
21523 (aarch64_sqdmull2_lane<mode>): Likewise.
21524 (aarch64_sqdmull2_laneq<mode>): Likewise.
21525
21526 2014-06-10 Richard Biener <rguenther@suse.de>
21527
21528 PR tree-optimization/61438
21529 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
21530 (eliminate_dom_walker::before_dom_children): Only try to inhibit
21531 insertion of IVs if running PRE.
21532 (eliminate): Adjust.
21533 (pass_pre::execute): Likewise.
21534 (pass_fre::execute): Likewise.
21535
21536 2014-06-10 Richard Biener <rguenther@suse.de>
21537
21538 PR middle-end/61456
21539 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21540 Do not use the main variant for the type comparison.
21541 (ncr_compar): Likewise.
21542 (nonoverlapping_component_refs_p): Likewise.
21543
21544 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
21545
21546 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
21547 REG_CFA_RESTORE mode.
21548
21549 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
21550
21551 * config/i386/i386.c (expand_vec_perm_pblendv): New.
21552 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
21553 expand_vec_perm_pblendv.
21554
21555 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21556
21557 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21558 available.
21559 Simplify description of __crc32d and __crc32cd intrinsics.
21560 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21561 availability.
21562
21563 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
21564
21565 PR lto/61334
21566 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21567 * config.in: Regenerate.
21568 * configure: Likewise.
21569
21570 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21571
21572 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21573 and public vars.
21574 (intersect_static_var_sets): Remove.
21575 (propagate): Do not prune local statics.
21576
21577 2014-06-10 Jakub Jelinek <jakub@redhat.com>
21578
21579 PR fortran/60928
21580 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21581 Set lastprivate_firstprivate even if omp_private_outer_ref
21582 langhook returns true.
21583 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21584 langhook, call unshare_expr on new_var and call
21585 build_outer_var_ref to get the last argument.
21586
21587 2014-06-10 Marek Polacek <polacek@redhat.com>
21588
21589 PR c/60988
21590 * doc/extend.texi: Add cindex for transparent_union.
21591
21592 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
21593
21594 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21595 init_symbolic_number ().
21596
21597 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
21598
21599 PR middle-end/61141
21600 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21601 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21602 (verify_rtl_sharing): Likewise.
21603
21604 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
21605
21606 PR c++/54442
21607 * tree.c (build_qualified_type): Use a canonical type for
21608 TYPE_CANONICAL.
21609
21610 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21611
21612 * config/arm/arm-modes.def: Remove XFmode.
21613
21614 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
21615
21616 PR target/61062
21617 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21618 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21619 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21620 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21621 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21622 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21623 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21624 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21625 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21626
21627 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
21628
21629 * tree-core.h (tree_decl_with_vis): Remove section_name.
21630
21631 2014-06-09 Kito Cheng <kito@0xlab.org>
21632
21633 * ira.c (ira): Don't call init_caller_save if LRA enabled
21634 since LRA use its own infrastructure to handle that.
21635
21636 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21637
21638 * symtab.c (dump_symtab_base): Update dumping.
21639 (symtab_make_decl_local): Clear only DECL_COMDAT.
21640 * tree-vect-data-refs.c (Check that variable is static before
21641 tampering with sections.
21642 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21643 (cgraph_create_virtual_clone): Likewise.
21644 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21645 (decl_section_name, set_decl_section_name): New accessors.
21646 (find_decls_types_r): Do not walk section name
21647 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21648 (decl_comdat_group, decl_comdat_group_id): Constify.
21649 (decl_section_name, set_decl_section_name): Update.
21650 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21651 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21652 (cgraph_make_node_local_1): Clear section and comdat group.
21653 * cgraph.h (set_comdat_group): Sanity check.
21654 (get_section, set_section): New.
21655 * ipa-comdats.c (ipa_comdats): Use get_section.
21656 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
21657 * lto-streamer-out.c: Do not follow section names.
21658 * c-family/c-common.c (handle_section_attribute): Update.
21659 * lto-cgraph.c (lto_output_node): Output section.
21660 (lto_output_varpool_node): Likewise.
21661 (read_comdat_group): Rename to ...
21662 (read_identifier): ... this one.
21663 (read_string_cst): New function.
21664 (input_node, input_varpool_node): Input section names.
21665 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21666 (new_emutls_decl): Update.
21667 (secname_for_decl): Check section names only of static vars.
21668 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
21669 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
21670 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21671 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21672 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
21673 * config/mcore/mcore.c (mcore_unique_section): Likewise.
21674 * config/mips/mips.c (mips16_build_function_stub): Likewise.
21675 * config/v850/v850.c (v850_insert_attributes): Likewise.
21676 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21677 Likewise.
21678 (h8300_handle_tiny_data_attribute): Likewise.
21679 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21680 (bfin_handle_l2_attribute): Likewise.
21681
21682 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21683
21684 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21685 remove static initializer.
21686
21687 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21688
21689 * varasm.c (use_blocks_for_decl_p): Check symbol table
21690 instead of alias attribute.
21691 (place_block_symbol): Recurse on aliases.
21692
21693 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21694
21695 * ipa-visibility.c: Include varasm.h
21696 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21697
21698 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21699
21700 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21701 outputting aliases.
21702
21703 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
21704
21705 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
21706 from test_insn into GGC space escape via SET_SRC.
21707
21708 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
21709
21710 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
21711 call statement, if any.
21712 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
21713 statements, if any. Tidy up.
21714
21715 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21716
21717 PR target/61431
21718 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
21719 iterators, VSX_D that handles 64-bit types, and VSX_LE that
21720 handles swapping the two 64-bit double words on little endian
21721 systems. Include V1TImode and optionally TImode in VSX_LE so that
21722 these types are properly swapped. Change all of the insns and
21723 splits that do the 64-bit swaps to use VSX_LE.
21724 (vsx_le_perm_load_<mode>): Likewise.
21725 (vsx_le_perm_store_<mode>): Likewise.
21726 (splitters for little endian memory operations): Likewise.
21727 (vsx_xxpermdi2_le_<mode>): Likewise.
21728 (vsx_lxvd2x2_le_<mode>): Likewise.
21729 (vsx_stxvd2x2_le_<mode>): Likewise.
21730
21731 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
21732
21733 PR target/61423
21734 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
21735 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
21736 and corresponding splitters. Zero extend general register
21737 or memory input operand to XMM temporary. Enable for
21738 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
21739 (floatunssi<mode>2): Update expander predicate.
21740
21741 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
21742
21743 PR rtl-optimization/61325
21744 * lra-constraints.c (process_address_1): Check scale equal to one
21745 to prevent transformation: base + scale * index => base + new_reg.
21746
21747 2014-06-06 Richard Biener <rguenther@suse.de>
21748
21749 PR tree-optimization/59299
21750 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
21751 a def operand.
21752 (nearest_common_dominator_of_uses): Likewise.
21753 (statement_sink_location): Adjust. Support sinking loads.
21754
21755 2014-06-06 Martin Jambor <mjambor@suse.cz>
21756
21757 * ipa-prop.c (get_place_in_agg_contents_list): New function.
21758 (build_agg_jump_func_from_list): Likewise.
21759 (determine_known_aggregate_parts): Renamed to
21760 determine_locally_known_aggregate_parts. Moved some functionality
21761 to the two functions above, removed bound checks.
21762
21763 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
21764
21765 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
21766 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
21767 (aarch64_progress_pointer): Likewise.
21768 (aarch64_copy_one_part_and_move_pointers): Likewise.
21769 (aarch64_expand_movmen): Likewise.
21770 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
21771 * config/aarch64/aarch64.md (movmem<mode>): New.
21772
21773 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
21774
21775 * targhooks.c (default_add_stmt_cost): Call target specific
21776 hook instead of default one.
21777
21778 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
21779
21780 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
21781 endianness instead of host endianness.
21782 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
21783 comments.
21784
21785 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21786
21787 PR debug/53927
21788 * function.c (instantiate_decls): Process the saved static chain.
21789 (expand_function_start): If not optimizing, save the static chain
21790 onto the stack.
21791 * tree-nested.c (convert_all_function_calls): Always create the static
21792 chain for nested functions if not optimizing.
21793
21794 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21795
21796 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
21797
21798 2014-06-06 Richard Biener <rguenther@suse.de>
21799
21800 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
21801 (construct_init_block): Likewise.
21802 (construct_exit_block): Likewise.
21803 (pass_expand::execute): Likewise.
21804 * graphite.c (graphite_transforms): Replace check for current_loops
21805 with a check for > 1 loops.
21806 (pass_graphite_transforms::execute): Adjust.
21807 * ipa-split.c (split_function): Remove check for current_loops.
21808 * omp-low.c (expand_parallel_call): Likewise.
21809 (expand_omp_for_init_counts): Likewise.
21810 (extract_omp_for_update_vars): Likewise.
21811 (expand_omp_for_generic): Likewise.
21812 (expand_omp_sections): Likewise.
21813 (expand_omp_target): Likewise.
21814 * tracer.c (tail_duplicate): Likewise.
21815 (pass_tracer::execute): Likewise.
21816 * trans-mem.c (expand_transaction): Likewise.
21817 * tree-complex.c (expand_complex_div_wide): Likewise.
21818 * tree-eh.c (lower_resx): Likewise.
21819 (cleanup_empty_eh_merge_phis): Likewise.
21820 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
21821 current_loops with a check for > 1 loops.
21822 (pass_predcom::execute): Adjust.
21823 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
21824 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
21825 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
21826 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
21827 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
21828 * tree-switch-conversion.c (process_switch): Likewise.
21829 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
21830 * tree-vrp.c (vrp_visit_phi_node): Likewise.
21831 (execute_vrp): Likewise.
21832 * ubsan.c (ubsan_expand_null_ifn): Likewise.
21833
21834 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21835
21836 * rtl.h (insn_location): Declare.
21837 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
21838 with UNKNOWN_LOCATION.
21839 * emit-rtl.c (insn_location): New function.
21840 * final.c (notice_source_line): Check that the instruction has a
21841 location before retrieving it and use insn_location.
21842 * modulo-sched.c (loop_single_full_bb_p): Likewise.
21843 * print-rtl.c (print_rtx): Likewise.
21844
21845 2014-06-06 Richard Biener <rguenther@suse.de>
21846
21847 * passes.def: Move 2nd VRP pass before phi-only-cprop.
21848
21849 2014-06-06 Christian Bruel <christian.bruel@st.com>
21850
21851 PR tree-optimization/43934
21852 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
21853 cost.
21854
21855 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
21856
21857 * ira-lives.c (single_reg_class): Add missing break. Explicitly
21858 return NO_REGS for extra address and memory constraints. Handle
21859 operands that match (or are equivalent to something that matches)
21860 extra constant constraints. Ignore other non-register operands.
21861
21862 2014-06-06 Alan Modra <amodra@gmail.com>
21863
21864 PR target/61300
21865 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
21866 * doc/tm.texi: Regenerate.
21867 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
21868 Use throughout in place of REG_PARM_STACK_SPACE.
21869 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
21870 "incoming" param. Pass to rs6000_function_parms_need_stack.
21871 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
21872 prototype_p when incoming. Use function decl when incoming
21873 to handle K&R style functions.
21874 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
21875 (INCOMING_REG_PARM_STACK_SPACE): Define.
21876
21877 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21878
21879 PR target/52472
21880 * cfgexpand.c (expand_debug_expr): Use address space of nested
21881 TREE_TYPE for ADDR_EXPR and MEM_REF.
21882
21883 2014-06-05 Jeff Law <law@redhat.com>
21884
21885 PR tree-optimization/61289
21886 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
21887 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
21888 looking for those which match LHS. All callers changed.
21889 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
21890 parameters and code which manipulated them. All callers changed.
21891 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
21892 and DST_MAP parameters. Simplify invalidation code by just calling
21893 invalidate_equivalences. All callers changed.
21894 (thread_across_edge): Simplify now that we don't need to maintain
21895 the map of equivalences to invalidate.
21896
21897 2014-06-05 Kai Tietz <ktietz@redhat.com>
21898 Richard Henderson <rth@redhat.com>
21899
21900 PR target/46219
21901 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
21902 checking for !TARGET_X32.
21903 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
21904 (sibcall_intern): New define_insn, plus required peepholes.
21905 (sibcall_pop_intern): Likewise.
21906 (sibcall_value_intern): Likewise.
21907 (sibcall_value_pop_intern): Likewise.
21908
21909 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
21910
21911 * tree-inline.c (tree_function_versioning): Check DF info existence
21912 before accessing it.
21913
21914 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21915
21916 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
21917 frame_size.
21918 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
21919 aarch64_frame hard_fp_offset and frame_size.
21920 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
21921 frame_size; remove original_frame_size.
21922 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
21923 (aarch64_initial_elimination_offset): Remove frame_size and
21924 offset. Use aarch64_frame frame_size.
21925
21926 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21927 Jiong Wang <jiong.wang@arm.com>
21928 Renlin <renlin.li@arm.com>
21929
21930 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
21931 initialization of R30 offset. Update offset. Iterate core
21932 regisers upto X30. Remove X29, X30 specific code.
21933
21934 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21935 Jiong Wang <jiong.wang@arm.com>
21936
21937 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
21938 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
21939 (aarch64_register_saved_on_entry): Adjust test.
21940
21941 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21942
21943 * config/aarch64/aarch64.h (machine_function): Move
21944 saved_varargs_size from here...
21945 (aarch64_frame): ... to here.
21946
21947 * config/aarch64/aarch64.c (aarch64_expand_prologue)
21948 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
21949 (aarch64_initial_elimination_offset)
21950 (aarch64_setup_incoming_varargs): Adjust location of
21951 saved_varargs_size.
21952
21953 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21954
21955 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
21956 layout comment.
21957
21958 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
21959 Prachi Godbole <Prachi.Godbole@imgtec.com>
21960
21961 * config/mips/mips-cpus.def: Add definition for p5600. Updated
21962 mips32r5 entry to use PROCESSOR_P5600.
21963 * config/mips/mips-tables.opt: Regenerate.
21964 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
21965 * config/mips/mips.c (mips_fmadd_bypass): New function.
21966 (mips_rtx_cost_data): Add costs for p5600.
21967 (mips_issue_rate): Add support for p5600.
21968 (mips_multipass_dfa_lookahead): Likewise.
21969 * config/mips/mips.h (TUNE_P5600): New define.
21970 (TUNE_MACC_CHAINS): Add TUNE_P5600.
21971 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
21972 * config/mips/mips.md: Include p5600.md.
21973 (processor): Add p5600.
21974 * config/mips/p5600.md: New file.
21975
21976 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
21977
21978 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
21979 * config/i386/predicates.md (palignr_operand): New.
21980 Indicates if permutation is suitable for palignr instruction.
21981
21982 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
21983
21984 PR tree-optimization/61319
21985 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21986 stmt belongs to loop.
21987
21988 2014-06-05 Richard Biener <rguenther@suse.de>
21989
21990 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
21991 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
21992 (lookup_tmp_var): Adjust.
21993 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
21994
21995 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21996
21997 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
21998
21999 2014-06-05 Marek Polacek <polacek@redhat.com>
22000
22001 PR c/49706
22002 * doc/invoke.texi: Document -Wlogical-not-parentheses.
22003
22004 2014-06-04 Tom de Vries <tom@codesourcery.com>
22005
22006 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22007 CONST_INT.
22008
22009 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
22010
22011 PR tree-optimization/61385
22012 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22013
22014 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
22015
22016 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
22017 changed to use fatal_error.
22018 (main): Ensure lto_wrapper_cleanup is run atexit.
22019
22020 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22021
22022 * lra-constraints.c (valid_address_p): Move earlier in file.
22023 (address_eliminator): New structure.
22024 (satisfies_memory_constraint_p): New function.
22025 (satisfies_address_constraint_p): Likewise.
22026 (process_alt_operands, process_address, curr_insn_transform): Use them.
22027
22028 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22029
22030 * lra-int.h (lra_static_insn_data): Make operand_alternative a
22031 const pointer.
22032 (target_lra_int, default_target_lra_int, this_target_lra_int)
22033 (op_alt_data): Delete.
22034 * lra.h (lra_init): Delete.
22035 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22036 (init_insn_code_data_once): Remove op_alt_data handling.
22037 (finish_insn_code_data_once): Likewise.
22038 (init_op_alt_data): Delete.
22039 (get_static_insn_data): Initialize operand_alternative to null.
22040 (free_insn_recog_data): Cast operand_alternative before freeing it.
22041 (setup_operand_alternative): Take the operand_alternative as
22042 parameter and assume it isn't already cached in the static
22043 insn data.
22044 (lra_set_insn_recog_data): Update accordingly.
22045 (lra_init): Delete.
22046 * ira.c (ira_init): Don't call lra_init.
22047 * target-globals.h (this_target_lra_int): Declare.
22048 (target_globals): Remove lra_int.
22049 (restore_target_globals): Update accordingly.
22050 * target-globals.c: Don't include lra-int.h.
22051 (default_target_globals, save_target_globals): Remove lra_int.
22052
22053 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22054
22055 * recog.h (operand_alternative): Convert reg_class, reject,
22056 matched and matches into bitfields.
22057 (preprocess_constraints): New overload.
22058 (preprocess_insn_constraints): New function.
22059 (preprocess_constraints): Take the insn as parameter.
22060 (recog_op_alt): Change into a pointer.
22061 (target_recog): Add x_op_alt.
22062 * recog.c (asm_op_alt): New variable.
22063 (recog_op_alt): Change into a pointer.
22064 (preprocess_constraints): New overload, replacing the old function
22065 definition with one that doesn't use global state.
22066 (preprocess_insn_constraints): New function.
22067 (preprocess_constraints): Use them. Take the insn as parameter.
22068 Use asm_op_alt for asms.
22069 (recog_init): Free existing x_op_alt entries.
22070 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22071 pointer const.
22072 (make_early_clobber_and_input_conflicts): Likewise.
22073 (process_bb_node_lives): Pass the insn to process_constraints.
22074 * reg-stack.c (check_asm_stack_operands): Likewise.
22075 (subst_asm_stack_regs): Likewise.
22076 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22077 * regrename.c (build_def_use): Likewise.
22078 * sched-deps.c (sched_analyze_insn): Likewise.
22079 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22080 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22081 (note_invalid_constants): Likewise.
22082 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22083 (ix86_legitimate_combined_insn): Make operand_alternative pointer
22084 const.
22085
22086 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22087
22088 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22089 * ira-lives.c (check_and_make_def_conflict): Check for disabled
22090 alternatives.
22091 (make_early_clobber_and_input_conflicts): Likewise.
22092 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22093
22094 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22095
22096 * recog.h (alternative_class): New function.
22097 (which_op_alt): Return a const recog_op_alt.
22098 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22099 (subst_asm_stack_regs): Likewise.
22100 * config/arm/arm.c (note_invalid_constants): Likewise.
22101 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
22102 the operand_alternative; use alternative class instead.
22103 * sel-sched.c (get_reg_class): Likewise.
22104 * regrename.c (build_def_use): Likewise.
22105 (hide_operands, restore_operands, record_out_operands): Update type
22106 accordingly.
22107
22108 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22109
22110 * recog.h (recog_op_alt): Convert to a flat array.
22111 (which_op_alt): New function.
22112 * recog.c (recog_op_alt): Convert to a flat array.
22113 (preprocess_constraints): Update accordingly, grouping all
22114 operands of the same alternative together, rather than the
22115 other way around.
22116 * ira-lives.c (check_and_make_def_conflict): Likewise.
22117 (make_early_clobber_and_input_conflicts): Likewise.
22118 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22119 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22120 (subst_asm_stack_regs): Likewise.
22121 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22122 * regrename.c (hide_operands, record_out_operands): Likewise.
22123 (build_def_use): Likewise.
22124 * sel-sched.c (get_reg_class): Likewise.
22125 * config/arm/arm.c (note_invalid_constants): Likewise.
22126
22127 2014-06-04 Jason Merrill <jason@redhat.com>
22128
22129 PR c++/51253
22130 PR c++/61382
22131 * gimplify.c (gimplify_arg): Non-static.
22132 * gimplify.h: Declare it.
22133
22134 2014-06-04 Richard Biener <rguenther@suse.de>
22135
22136 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22137 TREE_PUBLIC and DECL_EXTERNAL decls.
22138
22139 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
22140
22141 * regcprop.c (copyprop_hardreg_forward_1): Account for
22142 HARD_REGNO_CALL_PART_CLOBBERED.
22143
22144 2014-06-04 Richard Biener <rguenther@suse.de>
22145
22146 * configure.ac: Check whether the underlying type of int64_t
22147 is long or long long.
22148 * configure: Regenerate.
22149 * config.in: Likewise.
22150 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22151 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22152
22153 2014-06-04 Richard Biener <rguenther@suse.de>
22154
22155 PR tree-optimization/60098
22156 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22157 we hit a kill.
22158 (dse_optimize_stmt): Simplify, now that we found a kill
22159 earlier.
22160
22161 2014-06-04 Richard Biener <rguenther@suse.de>
22162
22163 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22164 of accesses with non-invariant address.
22165
22166 2014-06-04 Martin Liska <mliska@suse.cz>
22167
22168 * cgraph.h (cgraph_make_wrapper): New function introduced.
22169 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22170 * ipa-inline.h (inline_analyze_function): The function is global.
22171 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22172
22173 2014-06-04 Martin Liska <mliska@suse.cz>
22174
22175 * tree.h (private_lookup_attribute_starting): New function.
22176 (lookup_attribute_starting): Likewise.
22177 * tree.c (private_lookup_attribute_starting): Likewise.
22178
22179 2014-06-04 Martin Liska <mliska@suse.cz>
22180
22181 * cgraph.h (expand_thunk): New argument added.
22182 (address_taken_from_non_vtable_p): New global function.
22183 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
22184 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
22185 * cgraphunit.c (analyze_function): Likewise.
22186 (assemble_thunks_and_aliases): Argument added to call.
22187 (expand_thunk): New argument forces to produce GIMPLE thunk.
22188
22189 2014-06-04 Martin Liska <mliska@suse.cz>
22190
22191 * coverage.h (coverage_compute_cfg_checksum): Argument added.
22192 * coverage.c (coverage_compute_cfg_checksum): Likewise.
22193 * profile.c (branch_prob): Likewise.
22194
22195 2014-06-04 Martin Jambor <mjambor@suse.cz>
22196
22197 PR ipa/61340
22198 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
22199 handler for switch on an ipa_ref_use enum.
22200 * ipa-reference.c (analyze_function): Likewise.
22201
22202 2014-06-04 Kai Tietz <ktietz@redhat.com>
22203
22204 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
22205 from old call-instruction.
22206
22207 2014-06-04 Bin Cheng <bin.cheng@arm.com>
22208
22209 * config/aarch64/aarch64.c (aarch64_classify_address)
22210 (aarch64_legitimize_reload_address): Support full addressing modes
22211 for vector modes.
22212 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22213 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22214
22215 2014-06-03 Andrew Pinski <apinski@cavium.com>
22216
22217 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22218 for OP0.
22219
22220 2014-06-03 Andrew Pinski <apinski@cavium.com>
22221
22222 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22223 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22224
22225 2014-06-03 Kai Tietz <ktietz@redhat.com>
22226
22227 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22228 for 64-bit ms-abi.
22229
22230 2014-06-03 Dehao Chen <dehao@google.com>
22231
22232 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22233 the same loop.
22234
22235 2014-06-03 Marek Polacek <polacek@redhat.com>
22236
22237 PR c/60439
22238 * doc/invoke.texi: Document -Wswitch-bool.
22239 * function.c (stack_protect_epilogue): Cast controlling expression of
22240 the switch to int.
22241 * gengtype.c (walk_type): Generate switch expression with its
22242 controlling expression cast to int.
22243
22244 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
22245
22246 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22247 and attiny841.
22248 * config/avr/avr-tables.opt: Regenerate.
22249 * config/avr/t-multilib: Regenerate.
22250 * doc/avr-mmcu.texi: Regenerate.
22251
22252 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
22253 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22254
22255 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22256 (ata6617c, ata664251): Add new avr35 devices.
22257 (ata6612c): Add new avr4 device.
22258 (ata6613c, ata6614q): Add new avr5 devices.
22259 * config/avr/avr-tables.opt: Regenerate.
22260 * config/avr/t-multilib: Regenerate.
22261 * doc/avr-mmcu.texi: Regenerate.
22262
22263 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22264
22265 * gcc/config/aarch64/aarch64-builtins.c
22266 (aarch64_types_binop_ssu_qualifiers): New static data.
22267 (TYPES_BINOP_SSU): Define.
22268 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22269 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22270 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22271 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22272 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22273 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22274 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22275 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22276 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22277 suffix to builtin function name, remove cast.
22278 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22279 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22280 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22281
22282 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22283
22284 * gcc/config/aarch64/aarch64-builtins.c
22285 (aarch64_types_binop_uus_qualifiers,
22286 aarch64_types_shift_to_unsigned_qualifiers,
22287 aarch64_types_unsigned_shiftacc_qualifiers): Define.
22288 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22289 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22290 sqshlu_n, uqshl_n): Update qualifiers.
22291 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22292 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22293 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22294 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22295 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22296 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22297 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22298 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22299 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22300 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22301 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22302 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22303 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22304 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22305 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22306 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22307 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22308 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22309 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
22310 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
22311 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
22312 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
22313 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
22314 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
22315 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
22316 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
22317 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
22318
22319 2014-06-03 Teresa Johnson <tejohnson@google.com>
22320
22321 * tree-sra.c (modify_function): Record caller nodes after rebuild.
22322
22323 2014-06-02 Jason Merrill <jason@redhat.com>
22324
22325 PR c++/61020
22326 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
22327
22328 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22329
22330 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
22331 location == 0.
22332
22333 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22334
22335 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
22336 New pattern.
22337 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
22338 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
22339 * config/aarch64/iterators.md (REVERSE): New iterator.
22340 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
22341 (rev_op): New int_attribute.
22342 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
22343 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
22344 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
22345 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
22346 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
22347 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
22348 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
22349 Replace temporary __asm__ with __builtin_shuffle.
22350
22351 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22352
22353 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
22354 mips64r5.
22355 * config/mips/mips-tables.opt: Regenerate.
22356 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
22357 to use mips_isa_rev rather than ISA_MIPS32R2.
22358 * config/mips/mips.h (ISA_MIPS32R3): New define.
22359 (ISA_MIPS32R5): New define.
22360 (ISA_MIPS64R3): New define.
22361 (ISA_MIPS64R5): New define.
22362 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
22363 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
22364 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
22365 and mips64r5.
22366 (MIPS_ISA_SYNCI_SPEC): Likewise.
22367 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
22368 (LINK_SPEC): Added mips32r3 and mips32r5.
22369 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
22370 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
22371 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
22372 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
22373 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
22374 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
22375 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
22376
22377 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22378
22379 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
22380 options.
22381 * config/mips/mips.opt (mxpa): New option.
22382 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
22383 assembler.
22384
22385 2014-06-03 Martin Jambor <mjambor@suse.cz>
22386
22387 PR ipa/61160
22388 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
22389 thunks.
22390
22391 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
22392
22393 PR tree-optimization/61328
22394 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
22395 initialization from find_bswap_or_nop_1.
22396 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
22397 in source_expr2 before using the size value the function sets. Also
22398 make use of init_symbolic_number () in both the old place and
22399 find_bswap_or_nop_load () to avoid reading uninitialized memory when
22400 doing recursion in the GIMPLE_BINARY_RHS case.
22401
22402 2014-06-03 Richard Biener <rguenther@suse.de>
22403
22404 PR tree-optimization/61383
22405 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
22406 stmts can't trap.
22407
22408 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
22409
22410 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
22411 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
22412 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
22413 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
22414 in this file.
22415 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
22416 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
22417 * system.h: ...here and make it unconditional.
22418 * target.def (conditional_register_usage): Mention
22419 define_register_constraint instead of old-style constraint macros.
22420 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
22421 * doc/tm.texi: Regenerate.
22422 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
22423 protected by !USE_MD_CONSTRAINTS.
22424 * config/frv/frv.md: Remove quote from old version of documentation.
22425 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
22426 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
22427 CONST_DOUBLE_OK_FOR_LETTER.
22428 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
22429
22430 2014-06-02 Andrew Pinski <apinski@cavium.com>
22431
22432 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
22433 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
22434 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
22435 file whose name depends on -mabi= and -mbig-endian.
22436 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
22437 Handle LP64 better and handle ilp32 too.
22438 (MULTILIB_OPTIONS): Delete.
22439 (MULTILIB_DIRNAMES): Delete.
22440
22441 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
22442
22443 * expr.h: Remove prototypes of functions defined in builtins.c.
22444 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
22445 Remove prototypes of functions defined in builtins.c.
22446 * builtins.h: Update prototype list to include all exported functions.
22447 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
22448 no_c99_libc_has_function): Move to targhooks.c
22449 (build_string_literal, build_call_expr_loc_array,
22450 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
22451 to tree.c.
22452 (expand_builtin_object_size, fold_builtin_object_size): Make static.
22453 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
22454 no_c99_libc_has_function): Relocate from builtins.c.
22455 * tree.c: Include builtins.h.
22456 (build_call_expr_loc_array, build_call_expr_loc_vec,
22457 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
22458 from builtins.c.
22459 * fold-const.h (fold_fma): Move prototype to builtins.h.
22460 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
22461 * asan.c: Include builtins.h.
22462 * cfgexpand.c: Likewise.
22463 * convert.c: Likewise.
22464 * emit-rtl.c: Likewise.
22465 * except.c: Likewise.
22466 * expr.c: Likewise.
22467 * fold-const.c: Likewise.
22468 * gimple-fold.c: Likewise.
22469 * gimple-ssa-strength-reduction.c: Likewise.
22470 * gimplify.c: Likewise.
22471 * ipa-inline.c: Likewise.
22472 * ipa-prop.c: Likewise.
22473 * lto-streamer-out.c: Likewise.
22474 * stmt.c: Likewise.
22475 * tree-inline.c: Likewise.
22476 * tree-object-size.c: Likewise.
22477 * tree-sra.c: Likewise.
22478 * tree-ssa-ccp.c: Likewise.
22479 * tree-ssa-forwprop.c: Likewise.
22480 * tree-ssa-loop-ivcanon.c: Likewise.
22481 * tree-ssa-loop-ivopts.c: Likewise.
22482 * tree-ssa-math-opts.c: Likewise.
22483 * tree-ssa-reassoc.c: Likewise.
22484 * tree-ssa-threadedge.c: Likewise.
22485 * tree-streamer-in.c: Likewise.
22486 * tree-vect-data-refs.c: Likewise.
22487 * tree-vect-patterns.c: Likewise.
22488 * tree-vect-stmts.c: Likewise.
22489 * config/aarch64/aarch64.c: Likewise.
22490 * config/alpha/alpha.c: Likewise.
22491 * config/arc/arc.c: Likewise.
22492 * config/arm/arm.c: Likewise.
22493 * config/avr/avr.c: Likewise.
22494 * config/bfin/bfin.c: Likewise.
22495 * config/c6x/c6x.c: Likewise.
22496 * config/cr16/cr16.c: Likewise.
22497 * config/cris/cris.c: Likewise.
22498 * config/epiphany/epiphany.c: Likewise.
22499 * config/fr30/fr30.c: Likewise.
22500 * config/frv/frv.c: Likewise.
22501 * config/h8300/h8300.c: Likewise.
22502 * config/i386/i386.c: Likewise.
22503 * config/i386/winnt.c: Likewise.
22504 * config/ia64/ia64.c: Likewise.
22505 * config/iq2000/iq2000.c: Likewise.
22506 * config/lm32/lm32.c: Likewise.
22507 * config/m32c/m32c.c: Likewise.
22508 * config/m32r/m32r.c: Likewise.
22509 * config/m68k/m68k.c: Likewise.
22510 * config/mcore/mcore.c: Likewise.
22511 * config/mep/mep.c: Likewise.
22512 * config/microblaze/microblaze.c: Likewise.
22513 * config/mips/mips.c: Likewise.
22514 * config/mmix/mmix.c: Likewise.
22515 * config/mn10300/mn10300.c: Likewise.
22516 * config/moxie/moxie.c: Likewise.
22517 * config/msp430/msp430.c: Likewise.
22518 * config/nds32/nds32.c: Likewise.
22519 * config/pa/pa.c: Likewise.
22520 * config/pdp11/pdp11.c: Likewise.
22521 * config/picochip/picochip.c: Likewise.
22522 * config/rl78/rl78.c: Likewise.
22523 * config/rs6000/rs6000.c: Likewise.
22524 * config/rx/rx.c: Likewise.
22525 * config/s390/s390.c: Likewise.
22526 * config/score/score.c: Likewise.
22527 * config/sh/sh.c: Likewise.
22528 * config/sparc/sparc.c: Likewise.
22529 * config/spu/spu.c: Likewise.
22530 * config/stormy16/stormy16.c: Likewise.
22531 * config/tilegx/tilegx.c: Likewise.
22532 * config/tilepro/tilepro.c: Likewise.
22533 * config/v850/v850.c: Likewise.
22534 * config/vax/vax.c: Likewise.
22535 * config/xtensa/xtensa.c: Likewise.
22536
22537 2014-06-02 Jeff Law <law@redhat.com>
22538
22539 PR rtl-optimization/61094
22540 * ree.c (combine_reaching_defs): Do not reextend an insn if it
22541 was marked as do_no_reextend. If a copy is needed to eliminate
22542 an extension, then mark it as do_not_reextend.
22543
22544 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
22545
22546 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
22547
22548 2014-06-02 Richard Henderson <rth@redhat.com>
22549
22550 PR target/61336
22551 * config/alpha/alpha.c (print_operand_address): Allow symbolic
22552 addresses inside asms. Use output_operand_lossage instead of
22553 gcc_unreachable.
22554
22555 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
22556
22557 PR target/61239
22558 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22559 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22560
22561 2014-06-02 Tom de Vries <tom@codesourcery.com>
22562
22563 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22564 case that x has VOIDmode.
22565
22566 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
22567
22568 * varasm.c (copy_constant): Delete function.
22569 (build_constant_desc): Don't call it.
22570
22571 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22572
22573 PR target/61154
22574 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22575 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22576 with immediate_operand.
22577
22578 2014-06-02 Andreas Schwab <schwab@suse.de>
22579
22580 * config/ia64/ia64.c
22581 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22582 pending_data_specs first.
22583
22584 2014-06-02 Richard Biener <rguenther@suse.de>
22585
22586 PR tree-optimization/61378
22587 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22588 valueized_anything.
22589
22590 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
22591
22592 * config/i386/constraints.md (Bw): Rename from 'w'.
22593 (Bz): Rename from 'z'.
22594 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22595
22596 2014-06-01 Kai Tietz <ktietz@redhat.com>
22597
22598 PR target/61377
22599 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22600 * config/i386/i386.md (sibcall_insn_operand): Use Bs
22601 instead of m constraint.
22602
22603 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
22604
22605 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22606 a separate alternative where the scratch operand 2 is marked as
22607 early clobber.
22608
22609 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
22610
22611 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22612 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22613 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22614 and __builtins_arm_get_fpscr.
22615 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22616 __builtins_arm_get_fpscr.
22617 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22618 __builtins_arm_ldfpscr.
22619 (arm_atomic_assign_expand_fenv): New function.
22620 * config/arm/vfp.md (set_fpscr): New pattern.
22621 (get_fpscr) : Likewise.
22622 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22623 VUNSPEC_SET_FPSCR.
22624 * doc/extend.texi (AARCH64 Built-in Functions) : Document
22625 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22626
22627 2014-05-30 Jakub Jelinek <jakub@redhat.com>
22628
22629 * asan.c (report_error_func): Add SLOW_P argument, use
22630 BUILT_IN_ASAN_*_N if set.
22631 (build_check_stmt): Likewise.
22632 (instrument_derefs): If T has insufficient alignment,
22633 force same handling as for odd sizes.
22634
22635 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22636 BUILT_IN_ASAN_REPORT_STORE_N): New.
22637 * asan.c (struct asan_mem_ref): Change access_size type to
22638 HOST_WIDE_INT.
22639 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22640 update_mem_ref_hash_table): Likewise.
22641 (asan_mem_ref_hasher::hash): Hash in a HWI.
22642 (report_error_func): Change size_in_bytes argument to HWI.
22643 Use *_N builtins if size_in_bytes is larger than 16 or not power of
22644 two.
22645 (build_shadow_mem_access): New function.
22646 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
22647 Handle size_in_bytes not power of two or larger than 16.
22648 (instrument_derefs): Don't give up if size_in_bytes is not
22649 power of two or is larger than 16.
22650
22651 2014-05-30 Kai Tietz <ktietz@redhat.com>
22652
22653 PR target/60104
22654 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
22655 for sibling-tail-calls.
22656 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
22657 to its use.
22658 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
22659 (sibcall_insn_operand): Add check for sibcall_memory_operand.
22660
22661 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22662
22663 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
22664 * config/avr/avr-tables.opt: Regenerate.
22665 * config/avr/t-multilib: Regenerate.
22666 * doc/avr-mmcu.texi: Regenerate.
22667
22668 2014-05-30 Ian Lance Taylor <iant@google.com>
22669
22670 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
22671 target("sse").
22672
22673 2014-05-30 Tom de Vries <tom@codesourcery.com>
22674
22675 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22676 Redefine as true.
22677
22678 2014-05-30 Tom de Vries <tom@codesourcery.com>
22679
22680 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22681 * lra.c (initialize_lra_reg_info_element): Add init of
22682 actual_call_used_reg_set field.
22683 (lra): Call lra_create_live_ranges before lra_inheritance for
22684 -fuse-caller-save.
22685 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22686 -fuse-caller-save.
22687 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22688 instead of call_used_reg_set for -fuse-caller-save.
22689 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22690
22691 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22692
22693 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22694 to mov_imm.
22695 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22696
22697 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
22698
22699 * ira.c (ira_get_dup_out_num): Check for output operands at
22700 the start of the loop. Handle cases where an included alternative
22701 follows an excluded one.
22702
22703 2014-05-29 Mike Stump <mikestump@comcast.net>
22704
22705 PR debug/61352
22706 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
22707 post ld passes when lto is used.
22708
22709 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
22710
22711 PR rtl-optimization/61325
22712 * lra-constraints.c (process_address): Rename to process_address_1.
22713 (process_address): New function.
22714
22715 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
22716
22717 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
22718 TYPES_BINOPV): New static data.
22719 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
22720 New builtin.
22721 * config/aarch64/aarch64-simd.md (aarch64_ext,
22722 aarch64_im_lane_boundsi): New patterns.
22723 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
22724 patterns for EXT.
22725 (aarch64_evpc_ext): New function.
22726
22727 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
22728
22729 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
22730 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
22731 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
22732 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
22733 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
22734
22735 2014-05-29 Tom de Vries <tom@codesourcery.com>
22736
22737 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
22738
22739 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
22740 Richard Sandiford <rdsandiford@googlemail.com>
22741
22742 * arm/iterators.md (shiftable_ops): New code iterator.
22743 (t2_binop0, arith_shift_insn): New code attributes.
22744 * arm/predicates.md (shift_nomul_operator): New predicate.
22745 * arm/arm.md (insn_enabled): Delete.
22746 (enabled): Remove insn_enabled test.
22747 (*arith_shiftsi): Delete. Replace with ...
22748 (*<arith_shift_insn>_multsi): ... new pattern.
22749 (*<arith_shift_insn>_shiftsi): ... new pattern.
22750 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
22751
22752 2014-05-29 Radovan Obradovic <robradovic@mips.com>
22753 Tom de Vries <tom@codesourcery.com>
22754
22755 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
22756 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
22757 clobber.
22758 (mips_split_call): Use POST_CALL_TMP_REG.
22759 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
22760
22761 2014-05-29 Tom de Vries <tom@codesourcery.com>
22762
22763 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
22764 with #ifdef STACK_REGS.
22765
22766 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
22767
22768 * varasm.c (get_variable_section): Walk aliases.
22769 (place_block_symbol): Walk aliases.
22770
22771 2014-05-28 Tom de Vries <tom@codesourcery.com>
22772
22773 Revert:
22774 2014-05-28 Tom de Vries <tom@codesourcery.com>
22775
22776 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22777 * lra.c (initialize_lra_reg_info_element): Add init of
22778 actual_call_used_reg_set field.
22779 (lra): Call lra_create_live_ranges before lra_inheritance for
22780 -fuse-caller-save.
22781 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22782 -fuse-caller-save.
22783 * lra-constraints.c (need_for_call_save_p): Use
22784 actual_call_used_reg_set instead of call_used_reg_set for
22785 -fuse-caller-save.
22786 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22787
22788 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22789
22790 * doc/md.texi: Document that the % constraint character must
22791 be at the beginning of the string.
22792 * genoutput.c (validate_insn_alternatives): Check that '=',
22793 '+' and '%' only appear at the beginning of a constraint.
22794 * ira.c (commutative_constraint_p): Delete.
22795 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
22796 at the start of the string.
22797 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
22798 duplicate '='s.
22799 * config/arm/neon.md (bicdi3_neon): Likewise.
22800 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
22801 (slt_si, sltu_si): Likewise.
22802 * config/vax/vax.md (sbcdi3): Likewise.
22803 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
22804 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
22805 (mul64): Move '%' to beginning of constraint.
22806 * config/arm/arm.md (*xordi3_insn): Likewise.
22807 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
22808 (xorsi3): Likewise.
22809
22810 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22811
22812 * doc/md.texi: Document the restrictions on the "enabled" attribute.
22813
22814 2014-05-28 Jason Merrill <jason@redhat.com>
22815
22816 PR c++/47202
22817 * cgraph.h (symtab_node::get_comdat_group_id): New.
22818 * cgraphunit.c (analyze_functions): Call it.
22819 * symtab.c (dump_symtab_node): Likewise.
22820 * tree.c (decl_comdat_group_id): New.
22821 * tree.h: Declare it.
22822 * lto-streamer-out.c (write_symbol): Use it.
22823 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
22824
22825 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
22826
22827 PR bootstrap/PR61146
22828 * wide-int.cc: Do not include longlong.h when compiling with clang.
22829
22830 2014-05-28 Richard Biener <rguenther@suse.de>
22831
22832 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
22833 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
22834 (vrp_visit_assignment_or_call): Print less vertical space.
22835 (vrp_visit_stmt): Likewise.
22836 (vrp_visit_phi_node): Likewise. For a PHI argument with
22837 VR_VARYING range consider recording it as copy.
22838
22839 2014-05-28 Richard Biener <rguenther@suse.de>
22840
22841 Revert
22842 2014-05-28 Richard Biener <rguenther@suse.de>
22843
22844 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22845
22846 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
22847
22848 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
22849 sufficiently aligned and an offset is used at the same time.
22850 (expand_expr_real_1): Likewise.
22851
22852 2014-05-28 Richard Biener <rguenther@suse.de>
22853
22854 PR middle-end/61045
22855 * fold-const.c (fold_comparison): When folding
22856 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
22857 the sign of the remaining constant operand stays the same.
22858
22859 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
22860
22861 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
22862 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
22863 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
22864 to the assembler.
22865 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
22866 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
22867 (m32bit-doubles) Likewise.
22868 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
22869 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
22870 option for RL78.
22871
22872 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22873
22874 * configure.ac ($gcc_cv_ld_clearcap): New test.
22875 * configure: Regenerate.
22876 * config.in: Regenerate.
22877 * config/sol2.opt (mclear-hwcap): New option.
22878 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
22879 * config/sol2-clearcap.map: Moved here from
22880 testsuite/gcc.target/i386/clearcap.map.
22881 * config/sol2-clearcapv2.map: Move here from
22882 gcc.target/i386/clearcapv2.map.
22883 * config/t-sol2 (install): Depend on install-clearcap-map.
22884 (install-clearcap-map): New target.
22885 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
22886 -mclear-hwcap.
22887
22888 2014-05-28 Richard Biener <rguenther@suse.de>
22889
22890 * hwint.h (*_HALF_WIDE_INT*): Move to ...
22891 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
22892 ... here and remove the rest.
22893 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22894
22895 2014-05-28 Richard Biener <rguenther@suse.de>
22896
22897 PR tree-optimization/61335
22898 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
22899 new range fails, drop to varying.
22900
22901 2014-05-28 Olivier Hainque <hainque@adacore.com>
22902
22903 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
22904 (CPP_SPEC): Add entry for -mcpu=8548.
22905 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
22906 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
22907
22908 2014-05-28 Tom de Vries <tom@codesourcery.com>
22909
22910 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22911 * lra.c (initialize_lra_reg_info_element): Add init of
22912 actual_call_used_reg_set field.
22913 (lra): Call lra_create_live_ranges before lra_inheritance for
22914 -fuse-caller-save.
22915 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22916 -fuse-caller-save.
22917 * lra-constraints.c (need_for_call_save_p): Use
22918 actual_call_used_reg_set instead of call_used_reg_set for
22919 -fuse-caller-save.
22920 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22921
22922 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22923 Tom de Vries <tom@codesourcery.com>
22924
22925 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
22926 to gccoptlist.
22927 (@item -fuse-caller-save): New item.
22928
22929 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22930 Tom de Vries <tom@codesourcery.com>
22931
22932 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
22933 OPT_fuse_caller_save.
22934
22935 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22936 Tom de Vries <tom@codesourcery.com>
22937
22938 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
22939 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
22940 get_call_reg_set_usage.
22941 * resource.c (mark_set_resources, mark_target_live_regs): Use
22942 get_call_reg_set_usage.
22943 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
22944 field.
22945 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
22946 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
22947 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22948 * ira-build.c (ira_create_allocno): Init
22949 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22950 (create_cap_allocno, propagate_allocno_info)
22951 (propagate_some_info_from_allocno)
22952 (copy_info_to_removed_store_destinations): Handle
22953 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22954 * ira-costs.c (ira_tune_allocno_costs): Use
22955 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
22956
22957 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22958 Tom de Vries <tom@codesourcery.com>
22959
22960 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
22961 and function_used_regs_valid fields.
22962 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
22963 find_all_hard_reg_sets.
22964 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
22965 (get_call_reg_set_usage): New function.
22966 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
22967 * regs.h (get_call_reg_set_usage): Declare.
22968
22969 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
22970
22971 PR libgcc/61152
22972 * config/dbx.h (License): Add Runtime Library Exception.
22973 * config/newlib-stdint.h (License): Same.
22974 * config/rtems.h (License): Same
22975 * config/initfini-array.h (License): Same
22976 * config/v850/v850.h (License): Same.
22977 * config/v850/v850-opts.h (License): Same
22978 * config/v850/rtems.h (License): Same.
22979
22980 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
22981
22982 PR target/61044
22983 * doc/extend.texi (Local Labels): Note that label differences are
22984 not supported for AVR.
22985
22986 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22987 Olivier Hainque <hainque@adacore.com>
22988
22989 * rtl.h (set_for_reg_notes): Declare.
22990 * emit-rtl.c (set_for_reg_notes): New function.
22991 (set_unique_reg_note): Use it.
22992 * optabs.c (add_equal_note): Likewise
22993
22994 2014-05-27 Andrew Pinski <apinski@cavium.com>
22995
22996 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
22997 Use <w> for the register in assembly template.
22998 (stack_protect_test): Use the mode of operands[0] for the result.
22999 (stack_protect_test_<mode>): Use <w> for the register
23000 in assembly template.
23001
23002 2014-05-27 DJ Delorie <dj@redhat.com>
23003
23004 * config/rx/rx.c (add_vector_labels): New.
23005 (rx_output_function_prologue): Call it.
23006 (rx_handle_func_attribute): Don't require empty arguments.
23007 (rx_handle_vector_attribute): New.
23008 (rx_attribute_table): Add "vector" attribute.
23009 * doc/extend.texi (interrupt, vector): Document new/changed
23010 RX-specific attributes.
23011
23012 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23013
23014 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23015
23016 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23017 predicate to detect a negative quotient.
23018
23019 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23020
23021 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23022 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23023 Add X - Y CMP 0 to X CMP Y transformation.
23024 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23025
23026 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
23027
23028 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23029 before printing.
23030
23031 2014-05-27 Steve Ellcey <sellcey@mips.com>
23032
23033 * config/mips/mips.c: Add include of cgraph.h.
23034
23035 2014-05-27 Richard Biener <rguenther@suse.de>
23036
23037 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23038
23039 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23040
23041 PR libgcc/61152
23042 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23043 * config/arm/arm-cores.def (License): Same.
23044 * config/arm/arm-opts.h (License): Same.
23045 * config/arm/aout.h (License): Same.
23046 * config/arm/bpabi.h (License): Same.
23047 * config/arm/elf.h (License): Same.
23048 * config/arm/linux-elf.h (License): Same.
23049 * config/arm/linux-gas.h (License): Same.
23050 * config/arm/netbsd-elf.h (License): Same.
23051 * config/arm/uclinux-eabi.h (License): Same.
23052 * config/arm/uclinux-elf.h (License): Same.
23053 * config/arm/vxworks.h (License): Same.
23054
23055 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23056
23057 * config/arm/neon.md (neon_bswap<mode>): New pattern.
23058 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23059 (arm_init_neon_builtins): Handle NEON_BSWAP.
23060 Define required type nodes.
23061 (arm_expand_neon_builtin): Handle NEON_BSWAP.
23062 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23063 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23064 * config/arm/iterators.md (VDQHSD): New mode iterator.
23065
23066 2014-05-27 Richard Biener <rguenther@suse.de>
23067
23068 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23069 Try using literal operands when comparing value-ranges failed.
23070
23071 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23072
23073 * ira.c (commutative_operand): Adjust for change to recog_data.
23074 [Missing from previous commit.]
23075
23076 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23077
23078 * system.h (TEST_BIT): New macro.
23079 * recog.h (alternative_mask): New type.
23080 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23081 (recog_data_d): Replace alternative_enabled_p array with
23082 enabled_alternatives.
23083 (target_recog): New structure.
23084 (default_target_recog, this_target_recog): Declare.
23085 (get_enabled_alternatives, recog_init): Likewise.
23086 * recog.c (default_target_recog, this_target_recog): New variables.
23087 (get_enabled_alternatives): New function.
23088 (extract_insn): Use it.
23089 (recog_init): New function.
23090 (preprocess_constraints, constrain_operands): Adjust for change to
23091 recog_data.
23092 * postreload.c (reload_cse_simplify_operands): Likewise.
23093 * reload.c (find_reloads): Likewise.
23094 * ira-costs.c (record_reg_classes): Likewise.
23095 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
23096 all alternatives after a disabled one would be skipped.
23097 (ira_implicitly_set_insn_hard_regs): Likewise.
23098 * ira.c (ira_setup_alts): Adjust for change to recog_data.
23099 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23100 with enabled_alternatives.
23101 * lra.c (free_insn_recog_data): Update accordingly.
23102 (lra_update_insn_recog_data): Likewise.
23103 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
23104 * lra-constraints.c (process_alt_operands): Likewise. Handle
23105 only_alternative as part of the enabled mask.
23106 * target-globals.h (this_target_recog): Declare.
23107 (target_globals): Add a recog field.
23108 (restore_target_globals): Restore this_target_recog.
23109 * target-globals.c: Include recog.h.
23110 (default_target_globals): Initialize recog field.
23111 (save_target_globals): Likewise.
23112 * reginfo.c (reinit_regs): Call recog_init.
23113 * toplev.c (backend_init_target): Likewise.
23114
23115 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23116
23117 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23118 rather than any named insn's code.
23119
23120 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23121
23122 PR libgcc/61152
23123 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23124 * config/arm/arm-cores.def (License): Same.
23125
23126 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
23127
23128 * tree.h (decl_comdat_group): Declare.
23129 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23130 * tree.c (decl_comdat_group): Here.
23131
23132 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
23133
23134 PR rtl-optimization/61222
23135 * combine.c (simplify_shift_const_1): When moving a PLUS outside
23136 the shift, truncate the PLUS operand to the result mode.
23137
23138 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
23139
23140 PR target/61271
23141 * config/i386/i386.c (ix86_rtx_costs)
23142 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23143 Fix condition.
23144
23145 2014-05-26 Martin Jambor <mjambor@suse.cz>
23146
23147 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23148 subreg uses.
23149
23150 2014-05-26 Richard Biener <rguenther@suse.de>
23151
23152 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23153 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23154 Provide specializations.
23155 (wi::int_traits <HOST_WIDE_INT>,
23156 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23157
23158 2014-05-26 Alan Modra <amodra@gmail.com>
23159
23160 PR target/61098
23161 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23162 params and return a bool. Remove dead code. Update comment.
23163 Assert we have a const_int source. Remove bogus code from
23164 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
23165 handling of constants > 2G and reg_equal note, from..
23166 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
23167 return value. Update comment. If we can, use a new pseudo
23168 for intermediate calculations.
23169 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23170 prototype.
23171 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23172 call to rs6000_emit_set_const in splitter.
23173 (movdi_internal64+2, +3): Likewise.
23174
23175 2014-05-26 Richard Biener <rguenther@suse.de>
23176
23177 * system.h: Define __STDC_FORMAT_MACROS before
23178 including inttypes.h.
23179 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
23180 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
23181 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
23182 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
23183 HOST_WIDEST_INT_C): Remove.
23184 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
23185 if C99 inttypes.h is not available.
23186 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
23187 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
23188 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
23189 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
23190 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
23191 (struct output_info): Likewise.
23192 (print_statistics): Adjust.
23193 (dump_bitmap_statistics): Likewise.
23194 * bt-load.c (migrate_btr_defs): Print with PRId64.
23195 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
23196 (MAX_SAFE_MULTIPLIER): Adjust.
23197 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
23198 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
23199 dump_cgraph_node): Likewise.
23200 * final.c (dump_basic_block_info): Likewise.
23201 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
23202 * gcov.c (format_gcov): Likewise.
23203 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
23204 for calculation.
23205 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
23206 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
23207 (inline_small_functions, dump_overall_stats, dump_inline_stats):
23208 Use PRId64 for dumping.
23209 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
23210 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23211 (add_allocno_hard_regs): Adjust.
23212 * loop-doloop.c (doloop_modify): Print using PRId64.
23213 * loop-iv.c (inverse): Compute in uint64_t.
23214 (determine_max_iter, iv_number_of_iterations): Likewise.
23215 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23216 Print using PRId64.
23217 * lto-streamer-out.c (write_symbol): Use uint64_t.
23218 * mcf.c (CAP_INFINITY): Use int64_t maximum.
23219 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23220 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23221 * modulo-sched.c (const_iteration_count): Use int64_t.
23222 (sms_schedule): Dump using PRId64.
23223 * predict.c (dump_prediction): Likewise.
23224 * pretty-print.h (pp_widest_integer): Remove.
23225 * profile.c (get_working_sets, is_edge_inconsistent,
23226 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23227 * tree-pretty-print.c (pp_double_int): Remove case handling
23228 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23229 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23230 and adjust users.
23231 (pass_optimize_bswap::execute): Remove restriction on hosts.
23232 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23233 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23234 * tree.c (widest_int_cst_value): Remove.
23235 * tree.h (widest_int_cst_value): Likewise.
23236 * value-prof.c (dump_histogram_value): Print using PRId64.
23237 * gengtype.c (main): Also inject int64_t.
23238 * ggc-page.c (struct max_alignment): Use int64_t.
23239 * alloc-pool.c (struct allocation_object_def): Likewise.
23240 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23241 for computation.
23242 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23243 * doc/tm.texi: Regenerated.
23244 * gengtype-lex.l (IWORD): Handle [u]int64_t.
23245 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23246 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23247 mmix_output_register_setting): Use [u]int64_t in prototypes.
23248 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23249 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23250 mmix_output_octa, mmix_output_shifted_value): Adjust.
23251 (mmix_intval): Adjust. Remove unreachable case.
23252 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23253
23254 2014-05-26 Richard Biener <rguenther@suse.de>
23255
23256 * configure.ac: Drop __int64 type check. Insist that we
23257 found uint64_t and int64_t.
23258 * hwint.h (HOST_BITS_PER___INT64): Remove.
23259 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23260 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23261 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23262 (HOST_WIDEST_FAST_INT): Remove __int64 case.
23263 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23264 for dst_q_src_df_rms_cdt.
23265 * configure: Regenerate.
23266 * config.in: Likewise.
23267
23268 2014-05-26 Michael Tautschnig <mt@debian.org>
23269
23270 PR target/61249
23271 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23272 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23273
23274 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23275
23276 PR rtl-optimization/61278
23277 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23278
23279 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23280
23281 PR rtl-optimization/61220
23282 Part of PR rtl-optimization/61225
23283 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23284 insn; skip split_edge for a block with only one successor.
23285
23286 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23287
23288 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23289 for variables.
23290
23291 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23292
23293 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23294 (update_vtable_references): New function.
23295 (function_and_variable_visibility): Rewrite also vtable initializers.
23296 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23297
23298 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23299
23300 * ggc.h (ggc_grow): New function.
23301 * ggc-none.c (ggc_grow): New function.
23302 * ggc-page.c (ggc_grow): Likewise.
23303
23304 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23305
23306 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23307 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23308 comdat_can_be_unshared_p, cgraph_externally_visible_p,
23309 varpool_externally_visible_p, can_replace_by_local_alias,
23310 update_visibility_by_resolution_info, function_and_variable_visibility,
23311 pass_data_ipa_function_and_variable_visibility,
23312 make_pass_ipa_function_and_variable_visibility,
23313 whole_program_function_and_variable_visibility,
23314 pass_data_ipa_whole_program_visibility,
23315 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
23316 * cgraph.h (cgraph_local_node_p): Declare.
23317 * ipa-visibility.c: New file.
23318 * Makefile.in (OBJS): Add ipa-visiblity.o
23319
23320 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23321
23322 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
23323 that var decl is available.
23324
23325 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23326
23327 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
23328 symtab_node pointer.
23329 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
23330 (find_decls_types_r): Do not walk COMDAT_GROUP.
23331 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
23332 * varasm.c (make_decl_one_only): Use set_comdat_group;
23333 create node if needed.
23334 * ipa-inline-transform.c (save_inline_function_body): Update
23335 way we decl->symtab mapping.
23336 * symtab.c (symtab_hash, hash_node, eq_node
23337 symtab_insert_node_to_hashtable): Remove.
23338 (symtab_register_node): Update.
23339 (symtab_unregister_node): Update.
23340 (symtab_get_node): Reimplement as inline function.
23341 (symtab_add_to_same_comdat_group): Update.
23342 (symtab_dissolve_same_comdat_group_list): Update.
23343 (dump_symtab_base): Update.
23344 (verify_symtab_base): Update.
23345 (symtab_make_decl_local): Update.
23346 (fixup_same_cpp_alias_visibility): Update.
23347 (symtab_nonoverwritable_alias): Update.
23348 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
23349 * ipa.c (update_visibility_by_resolution_info): UPdate.
23350 * bb-reorder.c: Include cgraph.h
23351 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
23352 with comdat groups.
23353 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
23354 * cgraph.c (cgraph_get_create_node): Update.
23355 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
23356 and comdat_group_.
23357 (symtab_get_node): Make inline.
23358 (symtab_insert_node_to_hashtable): Remove.
23359 (symtab_can_be_discarded): Update.
23360 (decl_comdat_group): New function.
23361 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
23362 Update.
23363 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
23364 comdat group name.
23365 (read_comdat_group): New function.
23366 (input_node, input_varpool_node): Use it.
23367 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
23368 comdat groups.
23369 * mips.c (mips_start_unique_function): Likewise.
23370 (ix86_code_end): Likewise.
23371 (rs6000_code_end): Likweise.
23372 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
23373
23374 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23375
23376 * gengtype-state.c (fatal_reading_state): Bring offline.
23377 * optabs.c (widening_optab_handler): Bring offline.
23378 * optabs.h (widening_optab_handler): Likewise.
23379 * final.c (get_attr_length_1): Likewise.
23380
23381 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23382
23383 * sched-int.h (sd_iterator_cond): Manually tail recurse.
23384
23385 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23386
23387 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
23388 (ppc440-compare): Include shift with dot.
23389 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
23390 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
23391 without dot.
23392 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
23393 without dot.
23394 (e6500_sfx2): Include it.
23395 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
23396 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
23397 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
23398 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
23399 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
23400 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
23401 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
23402 *lshiftrt_internal1le, *lshiftrt_internal1be,
23403 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
23404 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
23405 *rotldi3_internal10le, *rotldi3_internal10be,
23406 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
23407 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
23408 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
23409 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
23410 define_insns): Use type "shift" in the appropriate alternatives.
23411
23412 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23413
23414 * config/rs6000/rs6000.md (type): Add "logical". Delete
23415 "fast_compare".
23416 (dot): Adjust comment.
23417 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
23418 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
23419 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
23420 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
23421 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
23422 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
23423 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
23424 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23425
23426 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23427 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23428 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23429 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23430 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23431 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23432 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23433 * config/rs6000/8540.md (ppc8540_su): Adjust.
23434 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23435 cell-cmp-microcoded): Adjust.
23436 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23437 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23438 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23439 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23440 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23441 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23442 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23443 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23444 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23445 Adjust.
23446 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23447 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
23448 Adjust. Adjust comment.
23449 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23450 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23451
23452 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23453
23454 * config/rs6000/rs6000.md (type): Add "add".
23455 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
23456 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
23457 define_insns): Use it.
23458 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23459
23460 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23461 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23462 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23463 * config/rs6000/601.md (ppc601-integer): Adjust.
23464 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23465 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23466 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23467 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23468 * config/rs6000/8540.md (ppc8540_su): Adjust.
23469 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23470 cell-cmp-microcoded): Adjust.
23471 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23472 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23473 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23474 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23475 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23476 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23477 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23478 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23479 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23480 Adjust.
23481 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23482 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
23483 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23484 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23485
23486 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23487
23488 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
23489 "delayed_compare", "var_delayed_compare".
23490 (var_shift): New attribute.
23491 (cell_micro): Adjust.
23492 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
23493 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
23494 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
23495 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23496 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23497 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23498 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23499 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
23500 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
23501 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23502 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
23503 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
23504 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
23505 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
23506 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
23507 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
23508 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
23509 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
23510 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
23511 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
23512 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
23513 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
23514 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
23515 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23516 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23517
23518 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23519 * config/rs6000/440.md (ppc440-integer): Adjust.
23520 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23521 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
23522 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23523 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23524 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23525 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23526 * config/rs6000/8540.md (ppc8540_su): Adjust.
23527 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23528 cell-cmp-microcoded): Adjust.
23529 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
23530 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23531 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
23532 e500mc64_delayed): Adjust.
23533 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
23534 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
23535 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23536 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
23537 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
23538 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
23539 power6-delayed-compare, power6-var-delayed-compare): Adjust.
23540 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
23541 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
23542 Adjust comment.
23543 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23544 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23545
23546 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23547
23548 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
23549 (bits): New mode_attr.
23550 (idiv_ldiv): Delete mode_attr.
23551 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
23552 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23553 rs6000_adjust_priority, is_nonpipeline_insn,
23554 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23555
23556 * config/rs6000/40x.md (ppc403-idiv): Adjust.
23557 * config/rs6000/440.md (ppc440-idiv): Adjust.
23558 * config/rs6000/476.md (ppc476-idiv): Adjust.
23559 * config/rs6000/601.md (ppc601-idiv): Adjust.
23560 * config/rs6000/603.md (ppc603-idiv): Adjust.
23561 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23562 ppc620-ldiv): Adjust.
23563 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23564 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23565 * config/rs6000/8540.md (ppc8540_divide): Adjust.
23566 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23567 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23568 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23569 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23570 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23571 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23572 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23573 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23574 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23575 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23576 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23577 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23578 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23579 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23580 * config/rs6000/titan.md (titan_fxu_div): Adjust.
23581
23582 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23583
23584 * config/rs6000/rs6000.md (type): Delete "insert_word",
23585 "insert_dword". Add "insert".
23586 (size): Update comment.
23587 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23588 insn_must_be_first_in_group): Adjust.
23589 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23590 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23591 *insvsi_internal6, insvdi_internal): Adjust.
23592
23593 * config/rs6000/40x.md (ppc403-integer): Adjust.
23594 * config/rs6000/440.md (ppc440-integer): Adjust.
23595 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23596 * config/rs6000/601.md (ppc601-integer): Adjust.
23597 * config/rs6000/603.md (ppc603-integer): Adjust.
23598 * config/rs6000/6xx.md (ppc604-integer): Adjust.
23599 * config/rs6000/7450.md (ppc7450-integer): Adjust.
23600 * config/rs6000/7xx.md (ppc750-integer): Adjust.
23601 * config/rs6000/8540.md (ppc8540_su): Adjust.
23602 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23603 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23604 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23605 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23606 * config/rs6000/e5500.md (e5500_sfx): Adjust.
23607 * config/rs6000/e6500.md (e6500_sfx): Adjust.
23608 * config/rs6000/mpc.md (mpccore-integer): Adjust.
23609 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23610 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23611 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23612 * config/rs6000/power7.md (power7-integer): Adjust.
23613 * config/rs6000/power8.md (power8-1cyc): Adjust.
23614 * config/rs6000/rs64.md (rs64a-integer): Adjust.
23615 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23616
23617 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23618
23619 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
23620 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23621 (size): New attribute.
23622 (dot): New attribute.
23623 (cell_micro): Adjust.
23624 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23625 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23626 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23627 umuldi3_highpart): Adjust.
23628 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23629 rs6000_adjust_priority, is_nonpipeline_insn,
23630 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23631
23632 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23633 ppc405-imul3): Adjust.
23634 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23635 * config/rs6000/476.md (ppc476-imul): Adjust.
23636 * config/rs6000/601.md (ppc601-imul): Adjust.
23637 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23638 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23639 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23640 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23641 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23642 Adjust.
23643 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23644 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23645 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23646 cell-imul): Adjust.
23647 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23648 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23649 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23650 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23651 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23652 * config/rs6000/mpc.md (mpccore-imul): Adjust.
23653 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23654 power4-lmul, power4-imul, power4-imul3): Adjust.
23655 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
23656 power5-lmul, power5-imul, power5-imul3): Adjust.
23657 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
23658 power6-lmul, power6-imul, power6-imul3): Adjust.
23659 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
23660 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
23661
23662 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
23663 rs64a-lmul): Adjust.
23664 * config/rs6000/titan.md (titan_imul): Adjust.
23665
23666 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23667
23668 * config/rs6000/rs6000.md (type): Add new value "halfmul".
23669 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
23670 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
23671 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
23672 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
23673 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23674 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23675 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23676 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23677 * config/rs6000/titan.md: Delete nonsensical comment.
23678 (titan_imul): Add type imul3.
23679 (titan_mulhw): Remove type imul3; add type halfmul.
23680
23681 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23682
23683 * config/rs6000/rs6000.md (type): Reorder, reformat.
23684
23685 2014-05-23 Martin Jambor <mjambor@suse.cz>
23686
23687 PR tree-optimization/53787
23688 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23689 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23690 analysis_done, update all uses.
23691 * ipa-prop.c: Include domwalk.h
23692 (param_analysis_info): Removed.
23693 (param_aa_status): New type.
23694 (ipa_bb_info): Likewise.
23695 (func_body_info): Likewise.
23696 (ipa_get_bb_info): New function.
23697 (aa_overwalked): Likewise.
23698 (find_dominating_aa_status): Likewise.
23699 (parm_bb_aa_status_for_bb): Likewise.
23700 (parm_preserved_before_stmt_p): Changed to use new param AA info.
23701 (load_from_unmodified_param): Accept func_body_info as a parameter
23702 instead of parms_ainfo.
23703 (parm_ref_data_preserved_p): Changed to use new param AA info.
23704 (parm_ref_data_pass_through_p): Likewise.
23705 (ipa_load_from_parm_agg_1): Likewise. Update callers.
23706 (compute_complex_assign_jump_func): Changed to use new param AA info.
23707 (compute_complex_ancestor_jump_func): Likewise.
23708 (ipa_compute_jump_functions_for_edge): Likewise.
23709 (ipa_compute_jump_functions): Removed.
23710 (ipa_compute_jump_functions_for_bb): New function.
23711 (ipa_analyze_indirect_call_uses): Likewise, moved variable
23712 declarations down.
23713 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
23714 and info, moved variable declarations down.
23715 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
23716 node and info.
23717 (ipa_analyze_stmt_uses): Likewise.
23718 (ipa_analyze_params_uses): Removed.
23719 (ipa_analyze_params_uses_in_bb): New function.
23720 (ipa_analyze_controlled_uses): Likewise.
23721 (free_ipa_bb_info): Likewise.
23722 (analysis_dom_walker): New class.
23723 (ipa_analyze_node): Handle node-specific forbidden analysis,
23724 initialize and free func_body_info, use dominator walker.
23725 (ipcp_modif_dom_walker): New class.
23726 (ipcp_transform_function): Create and free func_body_info, use
23727 ipcp_modif_dom_walker, moved a lot of functionality there.
23728
23729 2014-05-23 Marek Polacek <polacek@redhat.com>
23730 Jakub Jelinek <jakub@redhat.com>
23731
23732 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
23733 * gcc.c (sanitize_spec_function): Likewise.
23734 * convert.c (convert_to_integer): Include "ubsan.h". Add
23735 floating-point to integer instrumentation.
23736 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
23737 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
23738 SANITIZE_NONDEFAULT.
23739 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
23740 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
23741 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
23742 * ubsan.c: Include "realmpfr.h" and "dfp.h".
23743 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
23744 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
23745 float/double/long double.
23746 (ubsan_instrument_float_cast): New function.
23747 * ubsan.h (ubsan_instrument_float_cast): Declare.
23748
23749 2014-05-23 Jiong Wang <jiong.wang@arm.com>
23750
23751 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
23752 predicate.
23753 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
23754 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
23755 Adjust for tailcalling through registers.
23756 * config/aarch64/aarch64.h (enum reg_class): New caller save
23757 register class.
23758 (REG_CLASS_NAMES): Likewise.
23759 (REG_CLASS_CONTENTS): Likewise.
23760 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
23761 Allow tailcalling without decls.
23762
23763 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23764
23765 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23766 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
23767
23768 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
23769 gsi, and variables v_* to v*.
23770
23771 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
23772
23773 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
23774
23775 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23776
23777 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
23778 * omp-low.c: Update accordingly.
23779
23780 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
23781 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
23782 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
23783 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
23784 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
23785 GF_OMP_TARGET_KIND_UPDATE.
23786
23787 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23788 Explicitly enumerate the expected region types.
23789
23790 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
23791
23792 PR other/56955
23793 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
23794 documentation; the old documentation didn't clearly state the
23795 constraints on the contents of the pointed-to storage.
23796
23797 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23798
23799 Fix bootstrap error on ia64
23800 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
23801 Return default value.
23802
23803 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
23804
23805 PR tree-optimization/54733
23806 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
23807 (CMPNOP): Define.
23808 (find_bswap_or_nop_load): New.
23809 (find_bswap_1): Renamed to ...
23810 (find_bswap_or_nop_1): This. Also add support for memory source.
23811 (find_bswap): Renamed to ...
23812 (find_bswap_or_nop): This. Also add support for memory source and
23813 detection of bitwise operations equivalent to load in target
23814 endianness.
23815 (execute_optimize_bswap): Likewise. Also move its leading comment back
23816 in place and split statement transformation into ...
23817 (bswap_replace): This.
23818
23819 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23820
23821 PR rtl-optimization/61215
23822 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
23823 simplify_gen_subreg until final substitution.
23824
23825 2014-05-23 Alan Modra <amodra@gmail.com>
23826
23827 PR target/61231
23828 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
23829 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
23830 Use "Y" constraint rather than "m".
23831
23832 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
23833
23834 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
23835 define.
23836 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
23837 New function declaration.
23838 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
23839 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
23840 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
23841 (aarch64_init_builtins) : Initialize builtins
23842 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23843 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23844 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
23845 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
23846 and __builtins_aarch64_set_fpsr.
23847 (aarch64_atomic_assign_expand_fenv): New function.
23848 * config/aarch64/aarch64.md (set_fpcr): New pattern.
23849 (get_fpcr) : Likewise.
23850 (set_fpsr) : Likewise.
23851 (get_fpsr) : Likewise.
23852 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
23853 and UNSPECV_SET_FPSR.
23854 * doc/extend.texi (AARCH64 Built-in Functions) : Document
23855 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23856 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23857
23858 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23859
23860 PR rtl-optimization/60969
23861 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
23862 constraints. Set up mem cost for NO_REGS case.
23863
23864 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
23865
23866 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
23867
23868 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
23869
23870 * config/darwin.c: Include "lto-section-names.h".
23871 (LTO_SEGMENT_NAME): Don't define.
23872 * config/i386/winnt.c: Include "lto-section-names.h".
23873 * lto-streamer.c: Include "lto-section-names.h".
23874 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
23875 * lto-wrapper.c: Include "lto-section-names.h".
23876 (LTO_SECTION_NAME_PREFIX): Don't define.
23877 * lto-section-names.h: New file.
23878 * cgraphunit.c: Include "lto-section-names.h".
23879
23880 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
23881
23882 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
23883
23884 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
23885
23886 PR target/61208
23887 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
23888
23889 2014-05-22 Nick Clifton <nickc@redhat.com>
23890
23891 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
23892
23893 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
23894
23895 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
23896 -> (T)A transformation to integer types.
23897
23898 2014-05-22 Teresa Johnson <tejohnson@google.com>
23899
23900 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
23901 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
23902 (gcov_rewrite): Use gcov_nonruntime_assert.
23903 (gcov_open): Ditto.
23904 (gcov_write_words): Ditto.
23905 (gcov_write_length): Ditto.
23906 (gcov_read_words): Use gcov_nonruntime_assert, and remove
23907 gcc_assert from IN_LIBGCOV code.
23908 (gcov_read_summary): Use gcov_error to flag profile corruption.
23909 (gcov_sync): Use gcov_nonruntime_assert.
23910 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
23911 (gcov_histo_index): Use gcov_nonruntime_assert.
23912 (static void gcov_histogram_merge): Ditto.
23913 (compute_working_sets): Ditto.
23914 * gcov-io.h (gcov_nonruntime_assert): Define.
23915 (gcov_error): Define for !IN_LIBGCOV
23916
23917 2014-05-22 Richard Biener <rguenther@suse.de>
23918
23919 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23920 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
23921 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
23922 and deallocation site.
23923 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23924 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
23925 passing through the incoming points-to set.
23926 (handle_lhs_call): Use flags argument instead of recomputing it.
23927 (find_func_aliases_for_call): Call handle_lhs_call with proper
23928 call return flags.
23929
23930 2014-05-22 Jakub Jelinek <jakub@redhat.com>
23931
23932 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
23933 all padding bits in REAL_VALUE_TYPE are cleared.
23934
23935 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23936
23937 Cleanup and improve multipass_dfa_lookahead_guard
23938 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
23939 (core2i7_first_cycle_multipass_begin,)
23940 (core2i7_first_cycle_multipass_issue,)
23941 (core2i7_first_cycle_multipass_backtrack): Update signature.
23942 * config/ia64/ia64.c
23943 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
23944 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
23945 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
23946 hook definition.
23947 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
23948 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
23949 values.
23950 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
23951 return values.
23952 * doc/tm.texi: Regenerate.
23953 * doc/tm.texi.in
23954 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
23955 * haifa-sched.c (ready_try): Make signed to allow negative values.
23956 (rebug_ready_list_1): Update.
23957 (choose_ready): Simplify.
23958 (sched_extend_ready_list): Update.
23959
23960 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23961
23962 Remove IA64 speculation tweaking flags
23963 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
23964 speculation tuning flags.
23965 (msched-prefer-non-data-spec-insns,)
23966 (msched-prefer-non-control-spec-insns): Obsolete options.
23967 * haifa-sched.c (choose_ready): Remove handling of
23968 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23969 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
23970 and PREFER_NON_DATA_SPEC.
23971 * sel-sched.c (process_spec_exprs): Remove handling of
23972 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23973
23974 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23975
23976 Improve scheduling debug output
23977 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
23978 (advance_one_cycle): Update.
23979 (schedule_insn, queue_to_ready): Add debug printouts.
23980 (debug_ready_list_1): New static function.
23981 (debug_ready_list): Update.
23982 (max_issue): Add debug printouts.
23983 (dump_insn_stream): New static function.
23984 (schedule_block): Use it. Also better indent printouts.
23985
23986 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23987
23988 Fix sched_insn debug counter
23989 * haifa-sched.c (schedule_insn): Update.
23990 (struct haifa_saved_data): Add nonscheduled_insns_begin.
23991 (save_backtrack_point, restore_backtrack_point): Update.
23992 (first_nonscheduled_insn): New static function.
23993 (queue_to_ready, choose_ready): Use it.
23994 (schedule_block): Init nonscheduled_insns_begin.
23995 (sched_emit_insn): Update.
23996
23997
23998 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23999
24000 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24001 to GENERAL_REGS.
24002 (aarch64_secondary_reload) : LikeWise.
24003 (aarch64_class_max_nregs) : Remove CORE_REGS.
24004 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24005 (REG_CLASS_NAMES) : Likewise.
24006 (REG_CLASS_CONTENTS) : LikeWise.
24007 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24008
24009 2014-05-21 Guozhi Wei <carrot@google.com>
24010
24011 PR target/61202
24012 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24013 constraint.
24014 (vqdmulhq_n_s16): Likewise.
24015
24016 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24017
24018 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24019
24020 2014-05-21 Marek Polacek <polacek@redhat.com>
24021
24022 PR sanitizer/61272
24023 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24024
24025 2014-05-21 Martin Jambor <mjambor@suse.cz>
24026
24027 * doc/invoke.texi (Optimize Options): Document parameters
24028 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24029 ipa-cp-array-index-hint-bonus.
24030
24031 2014-05-21 Mark Wielaard <mjw@redhat.com>
24032
24033 PR debug/16063
24034 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24035 version >= 3 or not strict DWARF.
24036 * langhooks.h (struct lang_hooks_for_types): Add
24037 enum_underlying_base_type.
24038 * langhooks.c (lhd_enum_underlying_base_type): New function.
24039 * gcc/langhooks.h (struct lang_hooks_for_types): Add
24040 enum_underlying_base_type.
24041 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24042 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24043 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24044
24045 2014-05-21 Richard Biener <rguenther@suse.de>
24046
24047 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24048
24049 2014-05-21 John Marino <gnugcc@marino.st>
24050
24051 * config.gcc (*-*-dragonfly*): New target.
24052 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24053 * configure: Regenerate.
24054 * config/dragonfly-stdint.h: New.
24055 * config/dragonfly.h: New.
24056 * config/dragonfly.opt: New.
24057 * config/i386/dragonfly.h: New.
24058 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24059
24060 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24061
24062 * tree.def (VOID_CST): New.
24063 * tree-core.h (TI_VOID): New.
24064 * tree.h (void_node): New.
24065 * tree.c (tree_node_structure_for_code, tree_code_size)
24066 (iterative_hash_expr): Handle VOID_CST.
24067 (build_common_tree_nodes): Initialize void_node.
24068
24069 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
24070
24071 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24072 functions.
24073 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24074
24075 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24076 more places.
24077
24078 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24079 flag_reorder_blocks_and_partition.
24080 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24081
24082 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
24083
24084 PR target/54236
24085 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
24086 constraints.
24087 (*addc_r_t): Add new insn_and_split.
24088
24089 2014-05-21 Jakub Jelinek <jakub@redhat.com>
24090
24091 PR middle-end/61252
24092 * omp-low.c (handle_simd_reference): New function.
24093 (lower_rec_input_clauses): Use it. Defer adding reference
24094 initialization even for reduction without placeholder if in simd,
24095 handle it properly later on.
24096
24097 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24098
24099 PR tree-optimization/60899
24100 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24101 assume all static symbols will have definition wile parsing and
24102 check the do have definition later in compilation; check that
24103 variable referring symbol will be output before concluding that
24104 reference is safe; be conservative for referring local statics;
24105 be more precise about when comdat is output in other partition.
24106
24107 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24108
24109 PR bootstrap/60984
24110 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24111 parameter.
24112 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24113 (ipa_inline): Loop inline_to_all_callers until no more aliases
24114 are removed.
24115
24116 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24117
24118 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24119 set writeonly flag only for vars actually written to.
24120
24121 2014-05-20 Dehao Chen <dehao@google.com>
24122
24123 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24124 and callee count to get clone count.
24125 * tree-inline.c (expand_call_inline): Use callee count instead of bb
24126 count in copy_body.
24127
24128 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
24129
24130 PR rtl-optimization/61243
24131 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24132
24133 2014-05-20 Xinliang David Li <davidxl@google.com>
24134
24135 * cgraphunit.c (walk_polymorphic_call_targets): Add
24136 dbgcnt and fopt-info support.
24137 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24138 * ipa-devirt.c (ipa_devirt): Ditto.
24139 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24140 * ipa.c (walk_polymorphic_call_targets): Ditto.
24141 * gimple-fold.c (fold_gimple_assign): Ditto.
24142 (gimple_fold_call): Ditto.
24143 * dbgcnt.def: New counter.
24144
24145 2014-05-20 DJ Delorie <dj@redhat.com>
24146
24147 * config/msp430/msp430.md (split): Don't allow subregs when
24148 splitting SImode adds.
24149 (andneghi): Fix subtraction logic.
24150 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24151
24152 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24153
24154 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24155 symbols.
24156 * except.c (switch_to_exception_section, resolve_unique_section,
24157 get_named_text_section, default_function_rodata_section,
24158 align_variable, get_block_for_decl, default_section_type_flags):
24159 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24160 * symtab.c (symtab_add_to_same_comdat_group,
24161 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24162 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24163 Likewise.
24164 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24165 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24166 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24167 (c6x_function_in_section_p): Likewise.
24168 * config/darwin.c (machopic_select_section): Likewise.
24169 * config/arm/arm.c (arm_function_in_section_p): Likewise.
24170 * config/mips/mips.c (mips_function_rodata_section): Likewise.
24171 * config/mep/mep.c (mep_select_section): LIkewise.
24172 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24173
24174 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
24175
24176 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
24177 EH region of calls to pure functions that can throw an exception.
24178 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
24179 (copy_reference_ops_from_call): Also copy the EH region of the call if
24180 it can throw an exception.
24181
24182 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24183
24184 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
24185 nested VEC_SELECTs that are inverses of each other.
24186
24187 2014-05-20 Richard Biener <rguenther@suse.de>
24188
24189 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
24190 (extract_and_process_scc_for_name): not here.
24191 (cond_dom_walker::before_dom_children): Only process
24192 stmts that end the BB in interesting ways.
24193 (run_scc_vn): Mark param uses as visited.
24194
24195 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24196
24197 * config/arm/arm.md (arith_shiftsi): Do not predicate for
24198 arm_restrict_it.
24199
24200 2014-05-20 Nick Clifton <nickc@redhat.com>
24201
24202 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
24203 (msp430_gimplify_va_arg_expr): New function.
24204 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
24205
24206 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
24207 operand 0 in order to prevent confusion about the number of
24208 registers involved.
24209
24210 2014-05-20 Richard Biener <rguenther@suse.de>
24211
24212 PR tree-optimization/61221
24213 * tree-ssa-pre.c (el_to_update): Remove.
24214 (eliminate_dom_walker::before_dom_children): Handle released
24215 VDEFs by value-numbering them to the associated VUSE. Update
24216 stmt immediately for substituted call address.
24217 (eliminate): Remove delayed stmt updating code.
24218 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24219 possibly late re-numbered vuses.
24220 (vn_reference_lookup_2): Adjust.
24221 (vn_reference_lookup_pieces): Likewise.
24222 (vn_reference_lookup): Likewise.
24223
24224 2014-05-20 Richard Biener <rguenther@suse.de>
24225
24226 * config.gcc: Remove need_64bit_hwint.
24227 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24228 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24229 it to be true.
24230 * config.in: Regenerate.
24231 * configure: Likewise.
24232
24233 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
24234
24235 * doc/extend.texi: Create Label Attributes section,
24236 move all label attributes into it and reference it.
24237
24238 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
24239
24240 * arm.c (thumb1_reorg): When scanning backwards skip anything
24241 that's not a proper insn.
24242
24243 2014-05-19 Richard Biener <rguenther@suse.de>
24244
24245 PR tree-optimization/61221
24246 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24247 Do nothing for unreachable blocks.
24248 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24249 Improve unreachability detection.
24250
24251 2014-05-19 Richard Biener <rguenther@suse.de>
24252
24253 PR tree-optimization/61209
24254 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24255
24256 2014-05-19 Nick Clifton <nickc@redhat.com>
24257
24258 * except.c (init_eh): Fix computation of builtin setjmp buffer
24259 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24260
24261 2014-05-19 Richard Biener <rguenther@suse.de>
24262
24263 PR tree-optimization/61184
24264 * tree-vrp.c (is_negative_overflow_infinity): Use
24265 TREE_OVERFLOW_P and do that check first.
24266 (is_positive_overflow_infinity): Likewise.
24267 (is_overflow_infinity): Likewise.
24268 (vrp_operand_equal_p): Properly treat operands with
24269 differing overflow as not equal.
24270
24271 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
24272
24273 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24274 shift simplification where it was intended.
24275
24276 2014-05-19 Christian Bruel <christian.bruel@st.com>
24277
24278 PR target/61195
24279 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24280
24281 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
24282
24283 PR target/61084
24284 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24285 than wide_int.
24286
24287 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24288
24289 * reg-notes.def (CROSSING_JUMP): Likewise.
24290 * rtl.h (rtx_def): Update comment for jump flag.
24291 (CROSSING_JUMP_P): Define.
24292 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24293 of a REG_CROSSING_JUMP note.
24294 * cfghooks.c (tidy_fallthru_edges): Likewise.
24295 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24296 * emit-rtl.c (try_split): Likewise.
24297 * haifa-sched.c (sched_create_recovery_edges): Likewise.
24298 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24299 * jump.c (redirect_jump_2): Likewise.
24300 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24301 (relax_delay_slots): Likewise.
24302 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24303 (bbit_di): Likewise.
24304 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24305 * config/sh/sh.md (jump_compact): Likewise.
24306 * bb-reorder.c (rotate_loop): Likewise.
24307 (pass_duplicate_computed_gotos::execute): Likewise.
24308 (add_reg_crossing_jump_notes): Rename to...
24309 (update_crossing_jump_flags): ...this.
24310 (pass_partition_blocks::execute): Update accordingly.
24311
24312 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24313
24314 * tree.h: Remove extraneous template <>.
24315
24316 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24317
24318 * ipa.c (symtab_remove_unreachable_nodes): Remove
24319 symbol from comdat group if its body was eliminated.
24320 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
24321 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
24322 (symtab_unregister_node): ... this one.
24323 (verify_symtab_base): More strict checking of comdats.
24324 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
24325
24326 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24327
24328 * tree-pass.h (make_pass_ipa_comdats): New pass.
24329 * timevar.def (TV_IPA_COMDATS): New timevar.
24330 * passes.def (pass_ipa_comdats): Add.
24331 * Makefile.in (OBJS): Add ipa-comdats.o
24332 * ipa-comdats.c: New file.
24333
24334 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24335
24336 * ipa.c (update_visibility_by_resolution_info): New function.
24337 (function_and_variable_visibility): Use it.
24338
24339 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24340
24341 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
24342 New functions.
24343 (FOR_EACH_DEFINED_SYMBOL): New macro.
24344 (varpool_first_static_initializer, varpool_next_static_initializer,
24345 varpool_first_defined_variable, varpool_next_defined_variable):
24346 Fix comments.
24347 (symtab_in_same_comdat_p): Correctly deal with inline functions.
24348
24349 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24350
24351 * ggc-page.c (ggc_handle_finalizers): Add comment.
24352
24353 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24354
24355 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
24356 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
24357 (ggc_internal_cleared_alloc): Likewise.
24358 * ggc-page.c (finalizer): New class.
24359 (vec_finalizer): Likewise.
24360 (globals::finalizers): New member.
24361 (globals::vec_finalizers): Likewise.
24362 (ggc_internal_alloc): Record the finalizer if any for the block being
24363 allocated.
24364 (ggc_handle_finalizers): New function.
24365 (ggc_collect): Call ggc_handle_finalizers.
24366 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
24367 finalizer.
24368 (ggc_internal_cleared_alloc): Likewise.
24369 (finalize): New function.
24370 (need_finalization_p): Likewise.
24371 (ggc_alloc): Install the type's destructor as the finalizer if it
24372 might do something.
24373 (ggc_cleared_alloc): Likewise.
24374 (ggc_vec_alloc): Likewise.
24375 (ggc_cleared_vec_alloc): Likewise.
24376
24377 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24378
24379 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
24380
24381 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24382
24383 * alias.c (record_alias_subset): Adjust.
24384 * bitmap.c (bitmap_element_allocate): Likewise.
24385 (bitmap_gc_alloc_stat): Likewise.
24386 * cfg.c (init_flow): Likewise.
24387 (alloc_block): Likewise.
24388 (unchecked_make_edge): Likewise.
24389 * cfgloop.c (alloc_loop): Likewise.
24390 (flow_loops_find): Likewise.
24391 (rescan_loop_exit): Likewise.
24392 * cfgrtl.c (init_rtl_bb_info): Likewise.
24393 * cgraph.c (insert_new_cgraph_node_version): Likewise.
24394 (cgraph_allocate_node): Likewise.
24395 (cgraph_create_edge_1): Likewise.
24396 (cgraph_allocate_init_indirect_info): Likewise.
24397 * cgraphclones.c (cgraph_clone_edge): Likewise.
24398 * cgraphunit.c (add_asm_node): Likewise.
24399 (init_lowered_empty_function): Likewise.
24400 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
24401 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24402 (alpha_use_linkage): Likewise.
24403 * config/arc/arc.c (arc_init_machine_status): Likewise.
24404 * config/arm/arm.c (arm_init_machine_status): Likewise.
24405 * config/avr/avr.c (avr_init_machine_status): Likewise.
24406 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24407 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
24408 * config/cris/cris.c (cris_init_machine_status): Likewise.
24409 * config/darwin.c (machopic_indirection_name): Likewise.
24410 (darwin_build_constant_cfstring): Likewise.
24411 (darwin_enter_string_into_cfstring_table): Likewise.
24412 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
24413 * config/frv/frv.c (frv_init_machine_status): Likewise.
24414 * config/i386/i386.c (get_dllimport_decl): Likewise.
24415 (ix86_init_machine_status): Likewise.
24416 (assign_386_stack_local): Likewise.
24417 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24418 (i386_pe_maybe_record_exported_symbol): Likewise.
24419 (i386_pe_record_stub): Likewise.
24420 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24421 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24422 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24423 (m32c_note_pragma_address): Likewise.
24424 * config/mep/mep.c (mep_init_machine_status): Likewise.
24425 (mep_note_pragma_flag): Likewise.
24426 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24427 (mips16_local_alias): Likewise.
24428 (mips_init_machine_status): Likewise.
24429 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24430 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24431 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
24432 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
24433 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
24434 * config/pa/pa.c (pa_init_machine_status): Likewise.
24435 (pa_get_deferred_plabel): Likewise.
24436 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
24437 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24438 (rs6000_init_machine_status): Likewise.
24439 (output_toc): Likewise.
24440 * config/s390/s390.c (s390_init_machine_status): Likewise.
24441 * config/score/score.c (score_output_external): Likewise.
24442 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24443 * config/spu/spu.c (spu_init_machine_status): Likewise.
24444 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
24445 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
24446 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24447 * coverage.c (coverage_end_function): Likewise.
24448 * dbxout.c (dbxout_init): Likewise.
24449 * doc/gty.texi: Don't mention variable_size attribute.
24450 * dwarf2cfi.c (new_cfi): Adjust.
24451 (new_cfi_row): Likewise.
24452 (copy_cfi_row): Likewise.
24453 (create_cie_data): Likewise.
24454 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
24455 (new_loc_descr): Likewise.
24456 (find_AT_string_in_table): Likewise.
24457 (add_addr_table_entry): Likewise.
24458 (new_die): Likewise.
24459 (add_var_loc_to_decl): Likewise.
24460 (clone_die): Likewise.
24461 (clone_as_declaration): Likewise.
24462 (break_out_comdat_types): Likewise.
24463 (new_loc_list): Likewise.
24464 (add_loc_descr_to_each): Likewise.
24465 (add_location_or_const_value_attribute): Likewise.
24466 (add_linkage_name): Likewise.
24467 (lookup_filename): Likewise.
24468 (dwarf2out_var_location): Likewise.
24469 (new_line_info_table): Likewise.
24470 (dwarf2out_init): Likewise.
24471 (mem_loc_descriptor): Likewise.
24472 (loc_descriptor): Likewise.
24473 (add_const_value_attribute): Likewise.
24474 (tree_add_const_value_attribute): Likewise.
24475 (comp_dir_string): Likewise.
24476 (dwarf2out_vms_debug_main_pointer): Likewise.
24477 (string_cst_pool_decl): Likewise.
24478 * emit-rtl.c (set_mem_attrs): Likewise.
24479 (get_reg_attrs): Likewise.
24480 (start_sequence): Likewise.
24481 (init_emit): Likewise.
24482 (init_emit_regs): Likewise.
24483 * except.c (init_eh_for_function): Likewise.
24484 (gen_eh_region): Likewise.
24485 (gen_eh_region_catch): Likewise.
24486 (gen_eh_landing_pad): Likewise.
24487 (add_call_site): Likewise.
24488 * function.c (add_frame_space): Likewise.
24489 (insert_temp_slot_address): Likewise.
24490 (assign_stack_temp_for_type): Likewise.
24491 (get_hard_reg_initial_val): Likewise.
24492 (allocate_struct_function): Likewise.
24493 (prepare_function_start): Likewise.
24494 (types_used_by_var_decl_insert): Likewise.
24495 * gengtype.c (variable_size_p): Remove function.
24496 (enum alloc_quantity): Remove enum.
24497 (write_typed_alloc_def): Remove function.
24498 (write_typed_struct_alloc_def): Likewise.
24499 (write_typed_typedef_alloc_def): Likewise.
24500 (write_typed_alloc_defns): Likewise.
24501 (main): Adjust.
24502 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
24503 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
24504 * ggc.h (ggc_alloc): new function.
24505 (ggc_cleared_alloc): Likewise.
24506 (ggc_vec_alloc): Template on type of vector element, and remove
24507 element size argument.
24508 (ggc_cleared_vec_alloc): Likewise.
24509 * gimple.c (gimple_build_omp_for): Adjust.
24510 (gimple_copy): Likewise.
24511 * ipa-cp.c (get_replacement_map): Likewise.
24512 (find_aggregate_values_for_callers_subset): Likewise.
24513 (known_aggs_to_agg_replacement_list): Likewise.
24514 * ipa-devirt.c (get_odr_type): Likewise.
24515 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
24516 (read_agg_replacement_chain): Likewise.
24517 * loop-iv.c (get_simple_loop_desc): Likewise.
24518 * lto-cgraph.c (input_node_opt_summary): Likewise.
24519 * lto-section-in.c (lto_new_in_decl_state): Likewise.
24520 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24521 (input_eh_region): Likewise.
24522 (input_eh_lp): Likewise.
24523 (input_cfg): Likewise.
24524 * optabs.c (set_optab_libfunc): Likewise.
24525 (init_tree_optimization_optabs): Likewise.
24526 (set_conv_libfunc): Likewise.
24527 * passes.c (do_per_function_toporder): Likewise.
24528 * rtl.h: Don't use variable_size gty attribute.
24529 * sese.c (if_region_set_false_region): Adjust.
24530 * stringpool.c (gt_pch_save_stringpool): Likewise.
24531 * target-globals.c (save_target_globals): Likewise.
24532 * toplev.c (general_init): Likewise.
24533 * trans-mem.c (record_tm_replacement): Likewise.
24534 (split_bb_make_tm_edge): Likewise.
24535 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24536 * tree-data-ref.h (lambda_vector_new): Likewise.
24537 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24538 * tree-iterator.c (tsi_link_before): Likewise.
24539 (tsi_link_after): Likewise.
24540 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24541 * tree-ssa-loop-niter.c (record_estimate): Likewise.
24542 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24543 * tree-ssa-operands.h: Don't use variable_size gty attribute.
24544 * tree-ssa.c (init_tree_ssa): Adjust.
24545 * tree-ssanames.c (set_range_info): Likewise.
24546 (get_ptr_info): Likewise.
24547 (duplicate_ssa_name_ptr_info): Likewise.
24548 (duplicate_ssa_name_range_info): Likewise.
24549 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
24550 (unpack_ts_fixed_cst_value_fields): Likewise.
24551 * tree.c (build_fixed): Likewise.
24552 (build_real): Likewise.
24553 (build_string): Likewise.
24554 (decl_priority_info): Likewise.
24555 (decl_debug_expr_insert): Likewise.
24556 (decl_value_expr_insert): Likewise.
24557 (decl_debug_args_insert): Likewise.
24558 (type_hash_add): Likewise.
24559 (build_omp_clause): Likewise.
24560 * ubsan.c (decl_for_type_insert): Likewise.
24561 * varasm.c (get_unnamed_section): Likewise.
24562 (get_noswitch_section): Likewise.
24563 (get_section): Likewise.
24564 (get_block_for_section): Likewise.
24565 (create_block_symbol): Likewise.
24566 (build_constant_desc): Likewise.
24567 (create_constant_pool): Likewise.
24568 (force_const_mem): Likewise.
24569 (record_tm_clone_pair): Likewise.
24570 * varpool.c (varpool_create_empty_node): Likewise.
24571
24572 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24573
24574 * dwarf2out.c (tree_add_const_value_attribute): Call
24575 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24576 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24577 instead of ggc_internal_<x>alloc_stat.
24578 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24579 (ggc_realloc): Likewise.
24580 * ggc-none.c (ggc_internal_alloc): Likewise.
24581 (ggc_internal_cleared_alloc): Likewise.
24582 * ggc-page.c: Likewise.
24583 * ggc.h (ggc_internal_alloc_stat): Likewise.
24584 (ggc_internal_alloc): Remove macro.
24585 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24586 (ggc_internal_cleared_alloc): Remove macro.
24587 (GGC_RESIZEVEC): Adjust.
24588 (ggc_resizevar): Remove macro.
24589 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24590 (ggc_internal_cleared_vec_alloc_stat): Likewise.
24591 (ggc_internal_vec_cleared_alloc): Remove macro.
24592 (ggc_alloc_atomic_stat): Drop _stat suffix.
24593 (ggc_alloc_atomic): Remove macro.
24594 (ggc_alloc_cleared_atomic): Remove macro.
24595 (ggc_alloc_string_stat): Drop _stat suffix.
24596 (ggc_alloc_string): Remove macro.
24597 (ggc_alloc_rtx_def_stat): Adjust.
24598 (ggc_alloc_tree_node_stat): Likewise.
24599 (ggc_alloc_cleared_tree_node_stat): Likewise.
24600 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24601 (ggc_alloc_cleared_simd_clone_stat): Likewise.
24602 * gimple.c (gimple_build_omp_for): Likewise.
24603 (gimple_copy): Likewise.
24604 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24605 * toplev.c (realloc_for_line_map): Adjust.
24606 * tree-data-ref.h (lambda_vector_new): Likewise.
24607 * tree-phinodes.c (allocate_phi_node): Likewise.
24608 * tree.c (grow_tree_vec_stat): Likewise.
24609 * vec.h (va_gc::reserve): Adjust.
24610
24611 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
24612
24613 * config/microblaze/microblaze.c (break_handler): New Declaration.
24614 (microblaze_break_function_p,microblaze_is_break_handler): New.
24615 (compute_frame_size): Use microblaze_break_function_p.
24616 Add the test of break_handler.
24617 (microblaze_function_prologue) : Add the test of variable
24618 break_handler. Check the fnname by BREAK_HANDLER_NAME.
24619 (microblaze_function_epilogue) : Add the test of break_handler.
24620 (microblaze_globalize_label) : Add the test of break_handler.
24621 Check the name by BREAK_HANDLER_NAME.
24622
24623 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24624
24625 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24626 microblaze_is_break_handler test.
24627 (call_internal1,call_value_intern): Use microblaze_break_function_p.
24628 Use SYMBOL_REF_DECL.
24629
24630 * config/microblaze/microblaze-protos.h
24631 (microblaze_break_function_p,microblaze_is_break_handler):
24632 New Declaration.
24633
24634 * doc/extend.texi (MicroBlaze break_handler Functions): Document
24635 new MicroBlaze break_handler functions.
24636
24637 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24638
24639 * doc/extend.texi (Size of an asm): Move node text according
24640 to its @menu entry position.
24641
24642 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
24643
24644 PR tree-optimization/61140
24645 PR tree-optimization/61150
24646 PR tree-optimization/61197
24647 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24648
24649 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24650
24651 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
24652
24653 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
24654
24655 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
24656 __SIZEOF_INT128__ is defined.
24657
24658 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24659
24660 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
24661 (rs6000_delegitimize_address): Use it.
24662
24663 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24664
24665 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
24666 inplace argument. Store the new address in the original MEM when true.
24667 * emit-rtl.c (change_address_1): Likewise.
24668 (adjust_address_1, adjust_automodify_address_1, offset_address):
24669 Update accordingly.
24670 * rtl.h (plus_constant): Add an inplace argument.
24671 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
24672 when true. Avoid generating (plus X (const_int 0)).
24673 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24674 in-place. Pass true to plus_constant.
24675 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24676
24677 2014-05-16 Dehao Chen <dehao@google.com>
24678
24679 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24680
24681 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24682
24683 PR target/54089
24684 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24685 patterns.
24686 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24687
24688 2014-05-16 Dehao Chen <dehao@google.com>
24689
24690 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24691 optimize_function_for_size_p.
24692 * regs.h (REG_FREQ_FROM_BB): Likewise.
24693
24694 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24695
24696 PR target/51244
24697 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24698 negt_reg_operand cases.
24699 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24700 predicate.
24701 * config/sh/predicates.md (cbranch_treg_value): Simplify.
24702
24703 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24704
24705 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
24706 target variants.
24707
24708 2014-05-16 David Malcolm <dmalcolm@redhat.com>
24709
24710 Revert:
24711 2014-04-29 David Malcolm <dmalcolm@redhat.com>
24712
24713 * tree-cfg.c (dump_function_to_file): Dump the return type of
24714 functions, in a line to itself before the function body, mimicking
24715 the layout of a C function.
24716
24717 2014-05-16 Dehao Chen <dehao@google.com>
24718
24719 * cfghooks.c (make_forwarder_block): Use direct computation to
24720 get fall-through edge's count and frequency.
24721
24722 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
24723
24724 * config/arc/arc.c (arc_init): Fix typo in error message.
24725 * config/i386/i386.c (ix86_expand_builtin): Likewise.
24726 (split_stack_prologue_scratch_regno): Likewise.
24727 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
24728 word from error message.
24729
24730 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24731
24732 * ira-costs.c: Fix typo in comment.
24733
24734 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
24735
24736 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
24737
24738 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
24739
24740 * varpool.c (dump_varpool_node): Dump write-only flag.
24741 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
24742 write-only flag.
24743 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
24744 write-only variables.
24745 * ipa.c (process_references): New function.
24746 (set_readonly_bit): New function.
24747 (set_writeonly_bit): New function.
24748 (clear_addressable_bit): New function.
24749 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
24750 fix handling of aliases.
24751 * cgraph.h (struct varpool_node): Add writeonly flag.
24752
24753 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
24754
24755 PR rtl-optimization/60969
24756 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
24757 Calculate costs for this case.
24758
24759 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
24760
24761 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
24762 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
24763
24764 2014-05-16 Richard Biener <rguenther@suse.de>
24765
24766 PR tree-optimization/61194
24767 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
24768 bool patterns ending in a COND_EXPR.
24769
24770 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24771
24772 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
24773
24774 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24775
24776 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
24777 where we were unable to cost an RTX.
24778
24779 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24780
24781 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
24782 HIGH, LO_SUM.
24783
24784 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24785 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24786
24787 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
24788
24789 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24790 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24791
24792 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
24793 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
24794
24795 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24796 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24797
24798 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
24799 operators.
24800
24801 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24802 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24803
24804 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24805 DIV/MOD.
24806
24807 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24808 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24809
24810 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
24811 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
24812
24813 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24814 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24815
24816 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24817 rotates and shifts.
24818
24819 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24820 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24821
24822 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
24823 ZERO_EXTEND and SIGN_EXTEND better.
24824
24825 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24826 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24827
24828 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
24829 logical operations.
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): Use address
24835 costs when costing loads and stores to memory.
24836
24837 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24838 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
24839
24840 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
24841 for SET RTX.
24842
24843 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24844
24845 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
24846
24847 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24848 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24849
24850 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
24851 to...
24852 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
24853 well formed.
24854 (aarch64_rtx_mult_cost): New.
24855 (aarch64_rtx_costs): Use it, refactor as appropriate.
24856
24857 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24858 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24859
24860 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
24861 emit instructions, return number of instructions which would
24862 be emitted.
24863 (aarch64_add_constant): Update call to aarch64_build_constant.
24864 (aarch64_output_mi_thunk): Likewise.
24865 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
24866 a CONST_DOUBLE.
24867
24868 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24869
24870 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
24871 (TARGET_RTX_COSTS): Call it.
24872
24873 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24874
24875 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
24876 (cortexa57_vector_cost): Likewise.
24877 (cortexa57_tunings): Use them.
24878
24879 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24880
24881 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
24882 (cpu_addrcost_table): Use it.
24883 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
24884 (aarch64_address_cost): Rewrite using aarch64_classify_address,
24885 move it.
24886
24887 2014-05-16 Richard Biener <rguenther@suse.de>
24888
24889 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
24890 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
24891 (visit_phi): Ignore edges marked as not executable.
24892 (class cond_dom_walker): New.
24893 (cond_dom_walker::before_dom_children): Value-number
24894 control statements and mark successor edges as not
24895 executable if possible.
24896 (run_scc_vn): First walk all control statements in
24897 dominator order, marking edges as not executable.
24898 * tree-inline.c (copy_edges_for_bb): Be not confused
24899 about random edge flags.
24900
24901 2014-05-16 Richard Biener <rguenther@suse.de>
24902
24903 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
24904
24905 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
24906
24907 PR target/61193
24908 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
24909 (__TM_simple_begin): Use it.
24910 (__TM_begin): Likewise.
24911
24912 2014-05-15 Martin Jambor <mjambor@suse.cz>
24913
24914 PR ipa/61085
24915 * ipa-prop.c (update_indirect_edges_after_inlining): Check
24916 type_preserved flag when the indirect edge is polymorphic.
24917
24918 2014-05-15 Martin Jambor <mjambor@suse.cz>
24919
24920 PR tree-optimization/61090
24921 * tree-sra.c (sra_modify_expr): Pass the current gsi to
24922 build_ref_for_model.
24923
24924 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24925
24926 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
24927 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
24928
24929 2014-05-15 Jakub Jelinek <jakub@redhat.com>
24930
24931 PR tree-optimization/61158
24932 * fold-const.c (fold_binary_loc): If X is zero-extended and
24933 shiftc >= prec, make sure zerobits is all ones instead of
24934 invoking undefined behavior.
24935
24936 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24937
24938 * regcprop.h: New file.
24939 * regcprop.c (skip_debug_insn_p): New decl.
24940 (replace_oldest_value_reg): Check skip_debug_insn_p.
24941 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
24942 * shrink-wrap.c: Include regcprop.h.
24943 (prepare_shrink_wrap): Call
24944 copyprop_hardreg_forward_bb_without_debug_insn.
24945
24946 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24947
24948 * shrink-wrap.h: Update comment.
24949 * shrink-wrap.c: Update comment.
24950 (next_block_for_reg): Rename to live_edge_for_reg.
24951 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
24952 (move_insn_for_shrink_wrap): Split live_edge.
24953 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
24954
24955 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
24956
24957 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
24958 Delete.
24959 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
24960 * config/sparc/sparc.md (fptype_ut699): New attribute.
24961 (in_branch_delay): Return false if -mfix-ut699 is specified and
24962 fptype_ut699 is set to single.
24963 (truncdfsf2): Add fptype_ut699 attribute.
24964 (fix_truncdfsi2): Likewise.
24965 (floatsisf2): Change fptype attribute.
24966 (fix_truncsfsi2): Likewise.
24967 (negtf2_notv9): Delete.
24968 (negtf2_v9): Likewise.
24969 (negtf2_hq): New instruction.
24970 (negtf2): New instruction and splitter.
24971 (negdf2_notv9): Rewrite.
24972 (abstf2_notv9): Delete.
24973 (abstf2_hq_v9): Likewise.
24974 (abstf2_v9): Likewise.
24975 (abstf2_hq): New instruction.
24976 (abstf2): New instruction and splitter.
24977 (absdf2_notv9): Rewrite.
24978
24979 2014-05-14 Cary Coutant <ccoutant@google.com>
24980
24981 PR debug/61013
24982 * opts.c (common_handle_option): Don't special-case "-g".
24983 (set_debug_level): Default to at least level 2 with "-g".
24984
24985 2014-05-14 DJ Delorie <dj@redhat.com>
24986
24987 * config/msp430/msp430.c (msp430_builtin): Add
24988 MSP430_BUILTIN_DELAY_CYCLES.
24989 (msp430_init_builtins): Register void __delay_cycles(long long).
24990 (msp430_builtin_decl): Add it.
24991 (cg_magic_constant): New.
24992 (msp430_expand_delay_cycles): New.
24993 (msp430_expand_builtin): Call it.
24994 (msp430_print_operand_raw): Change integer printing from "int" to
24995 HOST_WIDE_INT.
24996 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
24997 (delay_cycles_start): New.
24998 (delay_cycles_end): New.
24999 (delay_cycles_32): New.
25000 (delay_cycles_32x): New.
25001 (delay_cycles_16): New.
25002 (delay_cycles_16x): New.
25003 (delay_cycles_2): New.
25004 (delay_cycles_1): New.
25005 * doc/extend.texi: Document __delay_cycles().
25006
25007 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
25008
25009 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25010 length attribute computation.
25011
25012 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
25013
25014 PR debug/61188
25015 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25016
25017 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
25018
25019 PR target/61084
25020 * config/sparc/sparc.md: Fix types of low and high in DI constant
25021 splitter. Use gen_int_mode in some other splitters.
25022
25023 2014-05-14 Martin Jambor <mjambor@suse.cz>
25024
25025 PR ipa/60897
25026 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25027
25028 2014-05-14 James Norris <jnorris@codesourcery.com>
25029
25030 * omp-low.c (expand_parallel_call): Remove shadow variable.
25031 (expand_omp_taskreg): Likewise.
25032
25033 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
25034
25035 * common/config/i386/i386-common.c
25036 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25037 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25038 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25039 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25040 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25041 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25042 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25043 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25044 xsavecintrin.h, xsavesintrin.h.
25045 (x86_64-*-*): Ditto.
25046 * config/i386/clflushoptintrin.h: New.
25047 * config/i386/xsavecintrin.h: Ditto.
25048 * config/i386/xsavesintrin.h: Ditto.
25049 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25050 (bit_XSAVES): Ditto.
25051 (bit_XSAVES): Ditto.
25052 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25053 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25054 -mno-clflushopt.
25055 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25056 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25057 OPTION_MASK_ISA_XSAVES.
25058 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25059 -mxsavec, -mxsaves.
25060 (PTA_CLFLUSHOPT) Define.
25061 (PTA_XSAVEC): Ditto.
25062 (PTA_XSAVES): Ditto.
25063 (ix86_option_override_internal): Handle new options.
25064 (ix86_valid_target_attribute_inner_p): Ditto.
25065 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25066 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25067 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25068 (bdesc_special_args): Add __builtin_ia32_xsaves,
25069 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25070 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25071 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25072 (ix86_expand_builtin): Handle new builtins.
25073 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25074 (TARGET_CLFLUSHOPT_P): Ditto.
25075 (TARGET_XSAVEC): Ditto.
25076 (TARGET_XSAVEC_P): Ditto.
25077 (TARGET_XSAVES): Ditto.
25078 (TARGET_XSAVES_P): Ditto.
25079 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25080 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25081 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25082 (ANY_XRSTOR): New.
25083 (ANY_XRSTOR64): Ditto.
25084 (xrstor): Ditto.
25085 (xrstor): Change into <xrstor>.
25086 (xrstor_rex64): Change into <xrstor>_rex64.
25087 (xrstor64): Change into <xrstor>64
25088 (clflushopt): New.
25089 * config/i386/i386.opt (mclflushopt): New.
25090 (mxsavec): Ditto.
25091 (mxsaves): Ditto.
25092 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25093 xsavecintrin.h.
25094 * doc/invoke.texi: Document new options.
25095
25096 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25097
25098 PR rtl-optimization/60866
25099 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25100 Default it to -1. Pass it down to init_simplejump_data.
25101 (init_simplejump_data): New parameter old_seqno. Pass it down
25102 to get_seqno_for_a_jump.
25103 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
25104 initializing new jump seqno as a last resort. Add comment.
25105 (sel_redirect_edge_and_branch): Save old seqno of the conditional
25106 jump and pass it down to sel_init_new_insn.
25107 (sel_redirect_edge_and_branch_force): Likewise.
25108
25109 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
25110
25111 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25112 shifted values to avoid build warning.
25113
25114 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25115
25116 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25117 * cfgrtl.c (rtl_merge_blocks): Fix comment.
25118 (cfg_layout_merge_blocks): Likewise.
25119 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25120
25121 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25122
25123 PR rtl-optimization/60901
25124 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25125 bb predecessor belongs to the same scheduling region. Adjust comment.
25126
25127 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
25128
25129 * doc/sourcebuild.texi: (dfp_hw): Document.
25130 (p8vector_hw): Likewise.
25131 (powerpc_eabi_ok): Likewise.
25132 (powerpc_elfv2): Likewise.
25133 (powerpc_htm_ok): Likewise.
25134 (ppc_recip_hw): Likewise.
25135 (vsx_hw): Likewise.
25136
25137 2014-05-13 Cary Coutant <ccoutant@google.com>
25138
25139 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25140
25141 2014-05-13 David Malcolm <dmalcolm@redhat.com>
25142
25143 * gengtype-parse.c (require3): Eliminate in favor of...
25144 (require4): New.
25145 (require_template_declaration): Update to support optional single *
25146 on a type.
25147
25148 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25149 (create_user_defined_type): Handle a single level of explicit
25150 pointerness within template arguments.
25151 (struct write_types_data): Add field "kind".
25152 (filter_type_name): Handle "*" character.
25153 (write_user_func_for_structure_ptr): Require a write_types_data
25154 rather than just a prefix string, so that we can look up the kind
25155 of the wtd and use it as an index into wrote_user_func_for_ptr,
25156 ensuring that such functions are written at most once. Support
25157 subclasses by invoking the marking function of the ultimate base class.
25158 (write_user_func_for_structure_body): Require a write_types_data
25159 rather than just a prefix string, so that we can pass this to
25160 write_user_func_for_structure_ptr.
25161 (write_func_for_structure): Likewise.
25162 (ggc_wtd): Add initializer of new "kind" field.
25163 (pch_wtd): Likewise.
25164
25165 * gengtype.h (enum write_types_kinds): New.
25166 (struct type): Add field wrote_user_func_for_ptr to the "s"
25167 union member.
25168
25169 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25170
25171 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25172 instead of const_binop.
25173 (fold_binary_loc): Likewise.
25174
25175 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25176
25177 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
25178 calculation to match get_ref_base_and_extent.
25179
25180 2014-05-13 Catherine Moore <clm@codesourcery.com>
25181 Sandra Loosemore <sandra@codesourcery.com>
25182
25183 * configure.ac: Fix assembly for explicit JALR relocation check.
25184 * configure: Regenerate.
25185
25186 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25187
25188 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
25189 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
25190 Remove associated type declarations and initialisations.
25191 (arm_expand_neon_builtin): Likewise.
25192 (neon_emit_pair_result_insn): Delete.
25193 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
25194 * config/arm/neon.md (neon_vtrn<mode>): Delete.
25195 (neon_vzip<mode>): Likewise.
25196 (neon_vuzp<mode>): Likewise.
25197
25198 2014-05-13 Richard Biener <rguenther@suse.de>
25199
25200 PR ipa/60973
25201 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
25202 it needs revisiting whether the call still may be tail-called.
25203
25204 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25205
25206 * rtl.def (SYMBOL_REF): Remove middle "0" field.
25207 * rtl.h (block_symbol): Reduce number of fields to 2.
25208 (rtx_def): Add u2.symbol_ref_flags.
25209 (SYMBOL_REF_FLAGS): Use it.
25210 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25211 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25212 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25213 Lower index of SYMBOL_REF_DATA.
25214 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25215 Print SYMBOL_REF_FLAGS at the same time.
25216 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25217
25218 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25219
25220 * rtl.def (VAR_LOCATION): Remove "i" field.
25221 * rtl.h (rtx_def): Add u2.var_location_status.
25222 (PAT_VAR_LOCATION_STATUS): Use it.
25223 (gen_rtx_VAR_LOCATION): Declare.
25224 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25225 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25226 * var-tracking.c (emit_note_insn_var_location): Remove casts.
25227
25228 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25229
25230 * rtl.def (scratch): Fix outdated comment and remove "0" field.
25231 * gengtype.c (adjust_field_rtx_def): Update accordingly.
25232
25233 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25234
25235 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25236 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25237 * rtl.h (rtx_def): Add insn_uid to u2 field.
25238 (RTX_FLAG_CHECK8): Delete in favor of...
25239 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25240 (INSN_DELETED_P): Update accordingly.
25241 (INSN_UID): Use u2.insn_uid.
25242 (INSN_CHAIN_CODE_P): Define.
25243 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25244 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25245 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25246 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25247 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25248 indices accordingly.
25249 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25250 Update indices for insn-chain rtxes.
25251 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25252 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25253 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25254 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25255 * combine.c (try_combine): Likewise.
25256 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25257
25258 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25259
25260 * rtl.def (REG): Remove middle field.
25261 * rtl.h (rtx_def): Add orignal_regno to u2.
25262 (ORIGINAL_REGNO): Use it instead of field 1.
25263 (REG_ATTRS): Lower field index accordingly.
25264 * gengtype.c (adjust_field_rtx_def): Remove handling of
25265 ORIGINAL_REGNO. Move REG_ATTRS index down.
25266 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25267 code that prints the REGNO.
25268
25269 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25270
25271 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25272 GENERATOR_FILE.
25273
25274 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25275
25276 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25277
25278 2014-05-13 Bin Cheng <bin.cheng@arm.com>
25279
25280 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25281 (alloc_iv): Lower base expressions containing ADDR_EXPR.
25282
25283 2014-05-13 Ian Bolton <ian.bolton@arm.com>
25284
25285 * config/aarch64/aarch64-protos.h
25286 (aarch64_hard_regno_caller_save_mode): New prototype.
25287 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25288 New function.
25289 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25290
25291 2014-05-13 Christian Bruel <christian.bruel@st.com>
25292
25293 * target.def (mode_switching): New hook vector.
25294 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25295 (mode_exit, modepriority_to_mode): Likewise.
25296 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25297 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25298 * target.h: Include tm.h and hard-reg-set.h.
25299 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25300 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25301 * doc/tm.texi Regenerate.
25302 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25303 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25304 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25305 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25306 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25307 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25308 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25309 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
25310 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
25311 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
25312 (ix86_emit_mode_set): Hookify.
25313 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
25314 Delete.
25315 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25316 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
25317 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
25318 (epiphany_mode_priority_to_mode): Remove declaration.
25319 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
25320 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
25321 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
25322 Likewise.
25323 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
25324 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
25325 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
25326
25327 2014-05-13 Jakub Jelinek <jakub@redhat.com>
25328
25329 PR target/61060
25330 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
25331 is const0_rtx, return immediately. Don't test count == 0 when
25332 it is always true.
25333
25334 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25335
25336 * Makefile.in: add shrink-wrap.o.
25337 * config/i386/i386.c: include "shrink-wrap.h"
25338 * function.c: Likewise.
25339 (requires_stack_frame_p, next_block_for_reg,
25340 move_insn_for_shrink_wrap, prepare_shrink_wrap,
25341 dup_block_and_redirect): Move to shrink-wrap.c
25342 (thread_prologue_and_epilogue_insns): Extract three code segments
25343 as functions in shrink-wrap.c
25344 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
25345 shrink-wrap.h
25346 * shrink-wrap.c: New file.
25347 * shrink-wrap.h: New file.
25348
25349 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25350
25351 * doc/extend.texi: Reflect current numbers of pragmas. Remove
25352 reference to Solaris.
25353
25354 2014-05-12 Mike Stump <mikestump@comcast.net>
25355
25356 PR other/31778
25357 * genattrtab.c (filename): Add.
25358 (convert_set_attr_alternative): Improve error message.
25359 (check_defs): Restore read_md_filename for error messages.
25360 (gen_insn): Save filename.
25361
25362 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
25363
25364 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
25365 -fno-local-ivars and -fivar-visibility.
25366 * c-family/c.opt: Make -Wshadow also implicitly enable
25367 -Wshadow-ivar.
25368
25369 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25370
25371 * doc/tm.texi: Remove reference to deleted macro.
25372 * doc/tm.texi.in: Likewise.
25373
25374 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25375
25376 PR target/60991
25377 * config/avr/avr.c (avr_out_store_psi): Use correct constant
25378 to restore Y.
25379
25380 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
25381
25382 PR libgcc/61152
25383 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
25384 * config/arm/aout.h (License): Same.
25385 * config/arm/bpabi.h (License): Same.
25386 * config/arm/elf.h (License): Same.
25387 * config/arm/linux-elf.h (License): Same.
25388 * config/arm/linux-gas.h (License): Same.
25389 * config/arm/netbsd-elf.h (License): Same.
25390 * config/arm/uclinux-eabi.h (License): Same.
25391 * config/arm/uclinux-elf.h (License): Same.
25392 * config/arm/vxworks.h (License): Same.
25393
25394 2014-05-11 Jakub Jelinek <jakub@redhat.com>
25395
25396 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
25397 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
25398 number of operands to 3.
25399 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
25400 * tree-nested.c (convert_nonlocal_omp_clauses,
25401 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
25402 * gimplify.c (gimplify_scan_omp_clauses): Handle
25403 OMP_CLAUSE_LINEAR_STMT.
25404 * omp-low.c (lower_rec_input_clauses): Fix typo.
25405 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
25406 cast between Fortran boolean_type_node and C _Bool if
25407 needed.
25408
25409 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
25410
25411 PR tree-optimization/61136
25412 * wide-int.h (multiple_of_p): Define a version that doesn't return
25413 the quotient.
25414 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
25415 integer_zerop/const_binop pair.
25416 (multiple_of_p): Likewise, converting both operands to widest_int
25417 precision.
25418
25419 2014-05-09 Teresa Johnson <tejohnson@google.com>
25420
25421 * cgraphunit.c (analyze_functions): Use correct dump file.
25422
25423 2014-05-09 Florian Weimer <fweimer@redhat.com>
25424
25425 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
25426 expand_used_vars.
25427 (stack_protect_return_slot_p): New function.
25428 (expand_used_vars): Call stack_protect_decl_p and
25429 stack_protect_return_slot_p for -fstack-protector-strong.
25430
25431 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
25432 Andrew Haley <aph@redhat.com>
25433 Richard Sandiford <rdsandiford@googlemail.com>
25434
25435 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
25436 pages.
25437
25438 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
25439
25440 PR middle-end/61111
25441 * fold-const.c (fold_binary_loc): Changed width of mask.
25442
25443 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25444
25445 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
25446 unsigned int initializers for regno_in, regno_out.
25447
25448 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25449
25450 PR target/61055
25451 * config/avr/avr.md (cc): Add new attribute set_vzn.
25452 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
25453 Set cc insn attribute to set_vzn instead of set_zn for alternatives
25454 with INC, DEC or NEG.
25455 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
25456 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
25457 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
25458
25459 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25460
25461 Revert:
25462 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25463
25464 * wide-int.cc (UTItype): Define.
25465 (UDWtype): Define for appropriate W_TYPE_SIZE.
25466
25467 2014-05-09 Richard Biener <rguenther@suse.de>
25468
25469 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
25470 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
25471 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
25472 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
25473 ssa_propagate): Adjust.
25474
25475 2014-05-08 Jeff Law <law@redhat.com>
25476
25477 PR tree-optimization/61009
25478 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
25479 tri-state rather than a boolean. When a block is too big to
25480 thread through, inform caller via negative return value.
25481 (thread_across_edge): If a block was too big for normal threading,
25482 then it's too big for a joiner too, so remove temporary equivalences
25483 and return immediately.
25484
25485 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
25486 Matthias Klose <doko@ubuntu.com>
25487
25488 PR driver/61106
25489 * optc-gen.awk: Fix option handling for -Wunused-parameter.
25490
25491 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25492
25493 PR target/59952
25494 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
25495
25496 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25497
25498 PR target/61092
25499 * config/alpha/alpha.c: Include gimple-iterator.h.
25500 (alpha_gimple_fold_builtin): New function. Move
25501 ALPHA_BUILTIN_UMULH folding from ...
25502 (alpha_fold_builtin): ... here.
25503 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
25504
25505 2014-05-08 Wei Mi <wmi@google.com>
25506
25507 PR target/58066
25508 * config/i386/i386.c (ix86_compute_frame_layout): Update
25509 preferred_stack_boundary for call, expanded from tls descriptor.
25510 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
25511 to depend on SP register.
25512 (*tls_local_dynamic_base_32_gnu): Ditto.
25513 (*tls_local_dynamic_32_once): Ditto.
25514 (tls_global_dynamic_64_<mode>): Set
25515 ix86_tls_descriptor_calls_expanded_in_cfun.
25516 (tls_local_dynamic_base_64_<mode>): Ditto.
25517 (tls_global_dynamic_32): Set
25518 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
25519 to depend on SP register.
25520 (tls_local_dynamic_base_32): Ditto.
25521
25522 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25523
25524 * config/arm/arm_neon.h: Update comment.
25525 * config/arm/neon-docgen.ml: Delete.
25526 * config/arm/neon-gen.ml: Delete.
25527 * doc/arm-neon-intrinsics.texi: Update comment.
25528
25529 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25530
25531 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
25532 and v4sf versions.
25533 (vand, vorr, veor, vorn, vbic): Remove.
25534 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
25535 iterator.
25536 (neon_vsub_unspec): Likewise.
25537 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
25538
25539 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25540
25541 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
25542 (vadd_s16): Likewise.
25543 (vadd_s32): Likewise.
25544 (vadd_f32): Likewise.
25545 (vadd_u8): Likewise.
25546 (vadd_u16): Likewise.
25547 (vadd_u32): Likewise.
25548 (vadd_s64): Likewise.
25549 (vadd_u64): Likewise.
25550 (vaddq_s8): Likewise.
25551 (vaddq_s16): Likewise.
25552 (vaddq_s32): Likewise.
25553 (vaddq_s64): Likewise.
25554 (vaddq_f32): Likewise.
25555 (vaddq_u8): Likewise.
25556 (vaddq_u16): Likewise.
25557 (vaddq_u32): Likewise.
25558 (vaddq_u64): Likewise.
25559 (vmul_s8): Likewise.
25560 (vmul_s16): Likewise.
25561 (vmul_s32): Likewise.
25562 (vmul_f32): Likewise.
25563 (vmul_u8): Likewise.
25564 (vmul_u16): Likewise.
25565 (vmul_u32): Likewise.
25566 (vmul_p8): Likewise.
25567 (vmulq_s8): Likewise.
25568 (vmulq_s16): Likewise.
25569 (vmulq_s32): Likewise.
25570 (vmulq_f32): Likewise.
25571 (vmulq_u8): Likewise.
25572 (vmulq_u16): Likewise.
25573 (vmulq_u32): Likewise.
25574 (vsub_s8): Likewise.
25575 (vsub_s16): Likewise.
25576 (vsub_s32): Likewise.
25577 (vsub_f32): Likewise.
25578 (vsub_u8): Likewise.
25579 (vsub_u16): Likewise.
25580 (vsub_u32): Likewise.
25581 (vsub_s64): Likewise.
25582 (vsub_u64): Likewise.
25583 (vsubq_s8): Likewise.
25584 (vsubq_s16): Likewise.
25585 (vsubq_s32): Likewise.
25586 (vsubq_s64): Likewise.
25587 (vsubq_f32): Likewise.
25588 (vsubq_u8): Likewise.
25589 (vsubq_u16): Likewise.
25590 (vsubq_u32): Likewise.
25591 (vsubq_u64): Likewise.
25592 (vand_s8): Likewise.
25593 (vand_s16): Likewise.
25594 (vand_s32): Likewise.
25595 (vand_u8): Likewise.
25596 (vand_u16): Likewise.
25597 (vand_u32): Likewise.
25598 (vand_s64): Likewise.
25599 (vand_u64): Likewise.
25600 (vandq_s8): Likewise.
25601 (vandq_s16): Likewise.
25602 (vandq_s32): Likewise.
25603 (vandq_s64): Likewise.
25604 (vandq_u8): Likewise.
25605 (vandq_u16): Likewise.
25606 (vandq_u32): Likewise.
25607 (vandq_u64): Likewise.
25608 (vorr_s8): Likewise.
25609 (vorr_s16): Likewise.
25610 (vorr_s32): Likewise.
25611 (vorr_u8): Likewise.
25612 (vorr_u16): Likewise.
25613 (vorr_u32): Likewise.
25614 (vorr_s64): Likewise.
25615 (vorr_u64): Likewise.
25616 (vorrq_s8): Likewise.
25617 (vorrq_s16): Likewise.
25618 (vorrq_s32): Likewise.
25619 (vorrq_s64): Likewise.
25620 (vorrq_u8): Likewise.
25621 (vorrq_u16): Likewise.
25622 (vorrq_u32): Likewise.
25623 (vorrq_u64): Likewise.
25624 (veor_s8): Likewise.
25625 (veor_s16): Likewise.
25626 (veor_s32): Likewise.
25627 (veor_u8): Likewise.
25628 (veor_u16): Likewise.
25629 (veor_u32): Likewise.
25630 (veor_s64): Likewise.
25631 (veor_u64): Likewise.
25632 (veorq_s8): Likewise.
25633 (veorq_s16): Likewise.
25634 (veorq_s32): Likewise.
25635 (veorq_s64): Likewise.
25636 (veorq_u8): Likewise.
25637 (veorq_u16): Likewise.
25638 (veorq_u32): Likewise.
25639 (veorq_u64): Likewise.
25640 (vbic_s8): Likewise.
25641 (vbic_s16): Likewise.
25642 (vbic_s32): Likewise.
25643 (vbic_u8): Likewise.
25644 (vbic_u16): Likewise.
25645 (vbic_u32): Likewise.
25646 (vbic_s64): Likewise.
25647 (vbic_u64): Likewise.
25648 (vbicq_s8): Likewise.
25649 (vbicq_s16): Likewise.
25650 (vbicq_s32): Likewise.
25651 (vbicq_s64): Likewise.
25652 (vbicq_u8): Likewise.
25653 (vbicq_u16): Likewise.
25654 (vbicq_u32): Likewise.
25655 (vbicq_u64): Likewise.
25656 (vorn_s8): Likewise.
25657 (vorn_s16): Likewise.
25658 (vorn_s32): Likewise.
25659 (vorn_u8): Likewise.
25660 (vorn_u16): Likewise.
25661 (vorn_u32): Likewise.
25662 (vorn_s64): Likewise.
25663 (vorn_u64): Likewise.
25664 (vornq_s8): Likewise.
25665 (vornq_s16): Likewise.
25666 (vornq_s32): Likewise.
25667 (vornq_s64): Likewise.
25668 (vornq_u8): Likewise.
25669 (vornq_u16): Likewise.
25670 (vornq_u32): Likewise.
25671 (vornq_u64): Likewise.
25672
25673 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25674
25675 * wide-int.cc (UTItype): Define.
25676 (UDWtype): Define for appropriate W_TYPE_SIZE.
25677
25678 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
25679
25680 PR tree-optimization/59100
25681 * tree-ssa-phiopt.c: Include tree-inline.h.
25682 (neutral_element_p, absorbing_element_p): New functions.
25683 (value_replacement): Handle conditional binary operations with a
25684 neutral or absorbing element.
25685
25686 2014-05-08 Richard Biener <rguenther@suse.de>
25687
25688 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25689 folding the expression.
25690 (valueize_expr): Remove.
25691 (visit_reference_op_load): Do not valueize the result of
25692 vn_get_expr_for.
25693 (simplify_binary_expression): Likewise.
25694 (simplify_unary_expression): Likewise.
25695
25696 2014-05-08 Richard Biener <rguenther@suse.de>
25697
25698 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25699 looking at TYPE_ARG_TYPES.
25700
25701 2014-05-08 Richard Biener <rguenther@suse.de>
25702
25703 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
25704 pointer propagation special-case.
25705
25706 2014-05-08 Bin Cheng <bin.cheng@arm.com>
25707
25708 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
25709 core part of address expressions.
25710
25711 2014-05-08 Alan Modra <amodra@gmail.com>
25712
25713 PR target/60737
25714 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
25715 loads and stores when -mno-strict-align at any alignment.
25716 (expand_block_clear): Similarly. Also correct calculation of
25717 instruction count.
25718
25719 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
25720
25721 PR middle-end/39246
25722 * tree-complex.c (expand_complex_move): Keep line info when expanding
25723 complex move.
25724 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
25725 of complex expression. Use new argument to display correct location
25726 for values coming from phi statement.
25727 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
25728 (warn_uninitialized_phi): Pass location of phi argument to
25729 warn_uninit.
25730 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
25731 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
25732
25733 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25734
25735 * config/rs6000/predicates.md (indexed_address_mem): New.
25736 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
25737 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
25738 fpstore_ux, fpstore_u.
25739 (sign_extend, indexed, update): New.
25740 (cell_micro): Adjust.
25741 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
25742 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
25743 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
25744 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
25745 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
25746 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
25747 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
25748 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
25749 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
25750 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
25751 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
25752 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
25753 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
25754 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
25755 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
25756
25757 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
25758 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
25759 *vsx_extract_<mode>_store): Adjust.
25760 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
25761 is_cracked_insn, insn_must_be_first_in_group,
25762 insn_must_be_last_in_group): Adjust.
25763
25764 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
25765 Adjust.
25766 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
25767 ppc440-fpstore): Adjust.
25768 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
25769 ppc476-fpstore): Adjust.
25770 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
25771 ppc601-fpstore): Adjust.
25772 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
25773 Adjust.
25774 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
25775 Adjust.
25776 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
25777 ppc7450-fpstore): Adjust.
25778 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
25779 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
25780 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
25781 Adjust.
25782 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
25783 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
25784 cell-fpstore, cell-fpstore-update): Adjust.
25785 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
25786 ppce300c3_store, ppce300c3_fpstore): Adjust.
25787 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
25788 e500mc_fpstore): Adjust.
25789 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
25790 e500mc64_store, e500mc64_fpstore): Adjust.
25791 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
25792 e5500_fpstore): Adjust.
25793 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
25794 e6500_fpstore): Adjust.
25795 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
25796 Adjust.
25797 * config/rs6000/power4.md (power4-load, power4-load-ext,
25798 power4-load-ext-update, power4-load-ext-update-indexed,
25799 power4-load-update-indexed, power4-load-update, power4-fpload,
25800 power4-fpload-update, power4-store, power4-store-update,
25801 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
25802 Adjust.
25803 * config/rs6000/power5.md (power5-load, power5-load-ext,
25804 power5-load-ext-update, power5-load-ext-update-indexed,
25805 power5-load-update-indexed, power5-load-update, power5-fpload,
25806 power5-fpload-update, power5-store, power5-store-update,
25807 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
25808 Adjust.
25809 * config/rs6000/power6.md (power6-load, power6-load-ext,
25810 power6-load-update, power6-load-update-indexed,
25811 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
25812 power6-fpload-update, power6-store, power6-store-update,
25813 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
25814 Adjust.
25815 * config/rs6000/power7.md (power7-load, power7-load-ext,
25816 power7-load-update, power7-load-update-indexed,
25817 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
25818 power7-fpload-update, power7-store, power7-store-update,
25819 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
25820 Adjust.
25821 * config/rs6000/power8.md (power8-load, power8-load-update,
25822 power8-load-ext, power8-load-ext-update, power8-fpload,
25823 power8-fpload-update, power8-store, power8-store-update-indexed,
25824 power8-fpstore, power8-fpstore-update): Adjust.
25825 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
25826 Adjust.
25827 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
25828 titan_lsu_store, titan_lsu_fpstore): Adjust.
25829 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
25830
25831 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25832
25833 PR target/60884
25834 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
25835 unrolled byte insns. Emit address increments after move insns.
25836
25837 2014-05-07 David Malcolm <dmalcolm@redhat.com>
25838
25839 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
25840 const_gimple, rather than a gimple.
25841 (gimple_call_builtin_p): Likewise, for the three variants.
25842
25843 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
25844 (gimple_call_builtin_p): Likewise, for the three variants.
25845
25846 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25847
25848 PR tree-optimization/61095
25849 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
25850
25851 2014-05-07 Richard Biener <rguenther@suse.de>
25852
25853 PR tree-optimization/61034
25854 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
25855 (maybe_skip_until): Use translate to take into account
25856 lattices when trying to do disambiguations.
25857 (get_continuation_for_phi_1): Likewise.
25858 (get_continuation_for_phi): Adjust for added translate arguments.
25859 (walk_non_aliased_vuses): Likewise.
25860 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
25861 (walk_non_aliased_vuses): Likewise.
25862 (call_may_clobber_ref_p_1): Declare.
25863 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
25864 calls. Stop early if we are only supposed to disambiguate.
25865 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
25866
25867 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
25868
25869 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
25870 Emit an error when the function has arguments.
25871
25872 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
25873
25874 * cfgloop.h (unswitch_loops): Remove.
25875 * doc/passes.texi: Remove references to loop-unswitch.c
25876 * timevar.def (TV_LOOP_UNSWITCH): Remove.
25877
25878 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
25879
25880 * tree-vect-data-refs.c (vect_grouped_load_supported): New
25881 check for loads group of length 3.
25882 (vect_permute_load_chain): New permutations for loads group of
25883 length 3.
25884 * tree-vect-stmts.c (vect_model_load_cost): Change cost
25885 of vec_perm_shuffle for the new permutations.
25886
25887 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
25888
25889 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
25890 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
25891 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
25892 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
25893 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
25894 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
25895 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
25896 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
25897
25898 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
25899
25900 * loop-unswitch.c: Delete.
25901
25902 2014-05-07 Richard Biener <rguenther@suse.de>
25903
25904 * config.gcc: Always set need_64bit_hwint to yes.
25905
25906 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
25907
25908 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
25909 of using optimize_size.
25910
25911 2014-05-06 Mike Stump <mikestump@comcast.net>
25912
25913 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
25914
25915 2014-05-06 Joseph Myers <joseph@codesourcery.com>
25916
25917 * config/i386/sse.md (*mov<mode>_internal)
25918 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
25919 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
25920 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
25921 (*<code><mode>3, *andnot<mode>3<mask_name>)
25922 (<mask_codefor><code><mode>3<mask_name>): Only consider
25923 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
25924
25925 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25926
25927 Revert:
25928 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
25929
25930 * lra-constraints.c (valid_address_p): Move earlier in file.
25931 Add a constraint argument to the address_info version.
25932 (satisfies_memory_constraint_p): New function.
25933 (satisfies_address_constraint_p): Likewise.
25934 (process_alt_operands, curr_insn_transform): Use them.
25935 (process_address): Pass the constraint to valid_address_p when
25936 checking address operands.
25937
25938 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
25939
25940 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
25941 to their respective blocks. Fix inadvertent use of "node".
25942
25943 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25944
25945 * emit-rtl.c (init_derived_machine_modes): New functionm, split
25946 out from...
25947 (init_emit_once): ...here.
25948 * rtl.h (init_derived_machine_modes): Declare.
25949 * toplev.c (do_compile): Call it even if no_backend.
25950
25951 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
25952 Mike Stump <mikestump@comcast.net>
25953 Richard Sandiford <rdsandiford@googlemail.com>
25954 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25955
25956 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
25957 (rtx_equal_for_memref_p): Update comment.
25958 (adjust_offset_for_component_ref): Use wide-int interfaces.
25959 * builtins.c (get_object_alignment_2): Likewise.
25960 (c_readstr): Likewise.
25961 (target_char_cast): Add comment.
25962 (determine_block_size): Use wide-int interfaces.
25963 (expand_builtin_signbit): Likewise.
25964 (fold_builtin_int_roundingfn): Likewise.
25965 (fold_builtin_bitop): Likewise.
25966 (fold_builtin_bswap): Likewise.
25967 (fold_builtin_logarithm): Use signop.
25968 (fold_builtin_pow): Likewise.
25969 (fold_builtin_memory_op): Use wide-int interfaces.
25970 (fold_builtin_object_size): Likewise.
25971 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
25972 nb_iterations_estimate.
25973 (record_niter_bound): Use wide-int interfaces.
25974 (get_estimated_loop_iterations_int): Likewise.
25975 (get_estimated_loop_iterations): Likewise.
25976 (get_max_loop_iterations): Likewise.
25977 * cfgloop.h: Include wide-int.h.
25978 (struct nb_iter_bound): Change bound to widest_int.
25979 (struct loop): Change nb_iterations_upper_bound and
25980 nb_iterations_estimate to widest_int.
25981 (record_niter_bound): Switch to use widest_int.
25982 (get_estimated_loop_iterations): Likewise.
25983 (get_max_loop_iterations): Likewise.
25984 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
25985 update for wide-int.
25986 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
25987 * combine.c (try_combine): Likewise.
25988 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
25989 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
25990 interfaces.
25991 (aarch64_float_const_representable_p): Likewise.
25992 * config/arc/arc.c: Include wide-int.h.
25993 (arc_can_use_doloop_p): Use wide-int interfaces.
25994 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
25995 (vfp3_const_double_index): Likewise.
25996 * config/avr/avr.c (avr_out_round): Likewise.
25997 (avr_fold_builtin): Likewise.
25998 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
25999 (bfin_can_use_doloop_p): Likewise.
26000 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26001 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26002 * config/i386/i386.c: Include wide-int.h.
26003 (ix86_data_alignment): Use wide-int interfaces.
26004 (ix86_local_alignment): Likewise.
26005 (ix86_emit_swsqrtsf): Update real_from_integer.
26006 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26007 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26008 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26009 (zero_constant): Likewise.
26010 (input_operand): Likewise.
26011 (splat_input_operand): Likewise.
26012 (non_logical_cint_operand): Change const_double to const_wide_int.
26013 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26014 (easy_altivec_constant): Remove comment.
26015 (paired_expand_vector_init): Use CONSTANT_P.
26016 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26017 (rs6000_emit_move): Update checks.
26018 (rs6000_aggregate_candidate): Use wide-int interfaces.
26019 (rs6000_expand_ternop_builtin): Likewise.
26020 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26021 (rs6000_assemble_integer): Likewise.
26022 (rs6000_hash_constant): Likewise.
26023 (output_toc): Likewise.
26024 (rs6000_rtx_costs): Likewise.
26025 (rs6000_emit_swrsqrt); Update call to real_from_integer.
26026 * config/rs6000/rs6000-c.c: Include wide-int.h.
26027 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26028 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26029 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26030 Handle CONST_WIDE_INT.
26031 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26032 Use tree_fits_uhwi_p.
26033 * config/sparc/sparc.c: Include wide-int.h.
26034 (sparc_fold_builtin): Use wide-int interfaces.
26035 * config/vax/vax.c: Include wide-int.h.
26036 (vax_float_literal): Use real_from_integer.
26037 * coretypes.h (struct hwivec_def): New.
26038 (hwivec): New.
26039 (const_hwivec): New.
26040 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26041 (equiv_constant): Handle CONST_WIDE_INT.
26042 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26043 (cselib_hash_rtx): Handle CONST_WIDE_INT.
26044 * dbxout.c (stabstr_U): Use wide-int interfaces.
26045 (dbxout_type): Update to use cst_fits_shwi_p.
26046 * defaults.h (LOG2_BITS_PER_UNIT): Define.
26047 (TARGET_SUPPORTS_WIDE_INT): Add default.
26048 * dfp.c: Include wide-int.h.
26049 (decimal_real_to_integer2): Use wide-int interfaces and rename to
26050 decimal_real_to_integer.
26051 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26052 decimal_real_to_integer.
26053 * doc/generic.texi (Constant expressions): Update for wide_int.
26054 * doc/rtl.texi (const_double): Likewise.
26055 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26056 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26057 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26058 (REAL_VALUE_FROM_INT): Remove.
26059 (TARGET_SUPPORTS_WIDE_INT): New.
26060 * doc/tm.texi: Regenerate.
26061 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26062 * double-int.h: Include wide-int.h.
26063 (struct wi::int_traits): New.
26064 * dwarf2out.c (get_full_len): New.
26065 (dw_val_equal_p): Add case dw_val_class_wide_int.
26066 (size_of_loc_descr): Likewise.
26067 (output_loc_operands): Likewise.
26068 (insert_double): Remove.
26069 (insert_wide_int): New.
26070 (add_AT_wide): New.
26071 (print_die): Add case dw_val_class_wide_int.
26072 (attr_checksum): Likewise.
26073 (attr_checksum_ordered): Likewise.
26074 (same_dw_val_p): Likewise.
26075 (size_of_die): Likewise.
26076 (value_format): Likewise.
26077 (output_die): Likewise.
26078 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26079 Use wide-int.
26080 (clz_loc_descriptor): Use wide-int interfaces.
26081 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
26082 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
26083 (round_up_to_align): Use wide-int interfaces.
26084 (field_byte_offset): Likewise.
26085 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
26086 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
26087 CONST_DOUBLE handling. Use wide-int interfaces.
26088 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
26089 (gen_enumeration_type_die): Use add_AT_wide.
26090 (hash_loc_operands): Add case dw_val_class_wide_int.
26091 (compare_loc_operands): Likewise.
26092 * dwarf2out.h: Include wide-int.h.
26093 (wide_int_ptr): New.
26094 (enum dw_val_class): Add dw_val_class_wide_int.
26095 (struct dw_val_struct): Add val_wide.
26096 * emit-rtl.c (const_wide_int_htab): New.
26097 (const_wide_int_htab_hash): New.
26098 (const_wide_int_htab_eq): New.
26099 (lookup_const_wide_int): New.
26100 (const_double_htab_hash): Use wide-int interfaces.
26101 (const_double_htab_eq): Likewise.
26102 (rtx_to_double_int): Conditionally compile for wide-int.
26103 (immed_double_int_const): Rename to immed_wide_int_const and
26104 update for wide-int.
26105 (immed_double_const): Conditionally compile for wide-int.
26106 (init_emit_once): Use wide-int interfaces.
26107 * explow.c (plus_constant): Likewise.
26108 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
26109 (lshift_value): Use wide-int interfaces.
26110 (expand_mult): Likewise.
26111 (choose_multiplier): Likewise.
26112 (expand_smod_pow2): Likewise.
26113 (make_tree): Likewise.
26114 * expr.c (convert_modes): Consolidate handling of constants.
26115 Use wide-int interfaces.
26116 (emit_group_load_1): Add note.
26117 (store_expr): Update comment.
26118 (get_inner_reference): Use wide-int interfaces.
26119 (expand_constructor): Update comment.
26120 (expand_expr_real_2): Use wide-int interfaces.
26121 (expand_expr_real_1): Likewise.
26122 (reduce_to_bit_field_precision): Likewise.
26123 (const_vector_from_tree): Likewise.
26124 * final.c: Include wide-int-print.h.
26125 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
26126 * fixed-value.c: Include wide-int.h.
26127 (fixed_from_string): Use wide-int interfaces.
26128 (fixed_to_decimal): Likewise.
26129 (fixed_convert_from_real): Likewise.
26130 (real_convert_from_fixed): Likewise.
26131 * fold-const.h (mem_ref_offset): Return an offset_int.
26132 (div_if_zero_remainder): Remove code parameter.
26133 * fold-const.c (div_if_zero_remainder): Remove code parameter.
26134 Use wide-int interfaces.
26135 (may_negate_without_overflow_p): Use wide-int interfaces.
26136 (negate_expr_p): Likewise.
26137 (fold_negate_expr): Likewise.
26138 (int_const_binop_1): Likewise.
26139 (const_binop): Likewise.
26140 (fold_convert_const_int_from_int): Likewise.
26141 (fold_convert_const_int_from_real): Likewise.
26142 (fold_convert_const_int_from_fixed): Likewise.
26143 (fold_convert_const_fixed_from_int): Likewise.
26144 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
26145 (sign_bit_p): Use wide-int interfaces.
26146 (make_range_step): Likewise.
26147 (build_range_check): Likewise. Pass an integer of the correct type
26148 instead of using integer_one_node.
26149 (range_predecessor): Pass an integer of the correct type instead
26150 of using integer_one_node.
26151 (range_successor): Likewise.
26152 (merge_ranges): Likewise.
26153 (unextend): Use wide-int interfaces.
26154 (extract_muldiv_1): Likewise.
26155 (fold_div_compare): Likewise.
26156 (fold_single_bit_test): Likewise.
26157 (fold_sign_changed_comparison): Likewise.
26158 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26159 (fold_plusminus_mult_expr): Use wide-int interfaces.
26160 (native_encode_int): Likewise.
26161 (native_interpret_int): Likewise.
26162 (fold_unary_loc): Likewise.
26163 (pointer_may_wrap_p): Likewise.
26164 (size_low_cst): Likewise.
26165 (mask_with_tz): Likewise.
26166 (fold_binary_loc): Likewise.
26167 (fold_ternary_loc): Likewise.
26168 (multiple_of_p): Likewise.
26169 (tree_call_nonnegative_warnv_p): Update calls to
26170 tree_int_cst_min_precision and real_from_integer.
26171 (fold_negate_const): Use wide-int interfaces.
26172 (fold_abs_const): Likewise.
26173 (fold_relational_const): Use tree_int_cst_lt.
26174 (round_up_loc): Use wide-int interfaces.
26175 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
26176 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
26177 * gengtype.c: Remove include of double-int.h.
26178 (do_typedef): Use wide-int interfaces.
26179 (open_base_files): Add wide-int.h.
26180 (main): Add offset_int and widest_int typedefs.
26181 * gengtype-lex.l: Handle "^".
26182 (CXX_KEYWORD): Add "static".
26183 * gengtype-parse.c (require3): New.
26184 (require_template_declaration): Handle constant template arguments
26185 and nested templates.
26186 * gengtype-state.c: Don't include "double-int.h".
26187 * genpreds.c (write_one_predicate_function): Update comment.
26188 (write_tm_constrs_h): Add check for hval and lval use in
26189 CONST_WIDE_INT.
26190 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
26191 (add_to_sequence): Likewise.
26192 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
26193 and const_double_operand.
26194 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
26195 interfaces.
26196 * gimple-fold.c (get_base_constructor): Likewise.
26197 (fold_array_ctor_reference): Likewise.
26198 (fold_nonarray_ctor_reference): Likewise.
26199 (fold_const_aggregate_ref_1): Likewise.
26200 (gimple_val_nonnegative_real_p): Likewise.
26201 (gimple_fold_indirect_ref): Likewise.
26202 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
26203 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
26204 (struct slsr_cand_d): Change index to be widest_int.
26205 (struct incr_info_d): Change incr to be widest_int.
26206 (alloc_cand_and_find_basis): Use wide-int interfaces.
26207 (slsr_process_phi): Likewise.
26208 (backtrace_base_for_ref): Likewise. Return a widest_int.
26209 (restructure_reference): Take a widest_int instead of a double_int.
26210 (slsr_process_ref): Use wide-int interfaces.
26211 (create_mul_ssa_cand): Likewise.
26212 (create_mul_imm_cand): Likewise.
26213 (create_add_ssa_cand): Likewise.
26214 (create_add_imm_cand): Take a widest_int instead of a double_int.
26215 (slsr_process_add): Use wide-int interfaces.
26216 (slsr_process_cast): Likewise.
26217 (slsr_process_copy): Likewise.
26218 (dump_candidate): Likewise.
26219 (dump_incr_vec): Likewise.
26220 (replace_ref): Likewise.
26221 (cand_increment): Likewise. Return a widest_int.
26222 (cand_abs_increment): Likewise.
26223 (replace_mult_candidate): Take a widest_int instead of a double_int.
26224 (replace_unconditional_candidate): Use wide-int interfaces.
26225 (incr_vec_index): Take a widest_int instead of a double_int.
26226 (create_add_on_incoming_edge): Likewise.
26227 (create_phi_basis): Use wide-int interfaces.
26228 (replace_conditional_candidate): Likewise.
26229 (record_increment): Take a widest_int instead of a double_int.
26230 (record_phi_increments): Use wide-int interfaces.
26231 (phi_incr_cost): Take a widest_int instead of a double_int.
26232 (lowest_cost_path): Likewise.
26233 (total_savings): Likewise.
26234 (analyze_increments): Use wide-int interfaces.
26235 (ncd_with_phi): Take a widest_int instead of a double_int.
26236 (ncd_of_cand_and_phis): Likewise.
26237 (nearest_common_dominator_for_cands): Likewise.
26238 (insert_initializers): Use wide-int interfaces.
26239 (all_phi_incrs_profitable): Likewise.
26240 (replace_one_candidate): Likewise.
26241 (replace_profitable_candidates): Likewise.
26242 * godump.c: Include wide-int-print.h.
26243 (go_output_typedef): Use wide-int interfaces.
26244 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26245 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26246 (build_loop_iteration_domains): Likewise.
26247 * hooks.h: Include wide-int.h rather than double-int.h.
26248 (hook_bool_dint_dint_uint_bool_true): Delete.
26249 (hook_bool_wint_wint_uint_bool_true): Declare.
26250 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26251 (hook_bool_wint_wint_uint_bool_true): New.
26252 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26253 interfaces.
26254 (ubsan_expand_si_overflow_mul_check): Likewise.
26255 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26256 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26257 (get_ancestor_addr_info): Likewise.
26258 (ipa_modify_call_arguments): Likewise.
26259 * loop-doloop.c (doloop_modify): Likewise.
26260 (doloop_optimize): Likewise.
26261 * loop-iv.c (iv_number_of_iterations): Likewise.
26262 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26263 (unroll_loop_constant_iterations): Likewise.
26264 (decide_unroll_runtime_iterations): Likewise.
26265 (unroll_loop_runtime_iterations): Likewise.
26266 (decide_peel_simple): Likewise.
26267 (decide_unroll_stupid): Likewise.
26268 * lto-streamer-in.c (streamer_read_wi): Add.
26269 (input_cfg): Use wide-int interfaces.
26270 (lto_input_tree_1): Likewise.
26271 * lto-streamer-out.c (streamer_write_wi): Add.
26272 (hash_tree): Use wide-int interfaces.
26273 (output_cfg): Likewise.
26274 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26275 (GTFILES): Add wide-int.h and signop.h.
26276 (TAGS): Look for .cc files too.
26277 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26278 * optabs.c (expand_subword_shift): Likewise.
26279 (expand_doubleword_shift): Likewise.
26280 (expand_absneg_bit): Likewise.
26281 (expand_copysign_absneg): Likewise.
26282 (expand_copysign_bit): Likewise.
26283 * postreload.c (reload_cse_simplify_set): Likewise.
26284 * predict.c (predict_iv_comparison): Likewise.
26285 * pretty-print.h: Include wide-int-print.h.
26286 (pp_wide_int) New.
26287 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26288 * print-tree.c: Include wide-int-print.h.
26289 (print_node_brief): Use wide-int interfaces.
26290 (print_node): Likewise.
26291 * read-rtl.c (validate_const_wide_int): New.
26292 (read_rtx_code): Add CONST_WIDE_INT case.
26293 * real.c: Include wide-int.h.
26294 (real_to_integer2): Delete.
26295 (real_to_integer): New function, returning a wide_int.
26296 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26297 (ten_to_ptwo): Update call to real_from_integer.
26298 (real_digit): Likewise.
26299 * real.h: Include signop.h, wide-int.h and insn-modes.h.
26300 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26301 (REAL_VALUE_TO_INT): Delete.
26302 (real_to_integer): Declare a wide-int form.
26303 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26304 * recog.c (const_int_operand): Improve comment.
26305 (const_scalar_int_operand): New.
26306 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26307 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26308 (split_double): Likewise.
26309 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
26310 (rtx_size): Likewise.
26311 (rtx_alloc_stat_v): New.
26312 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
26313 (cwi_output_hex): New.
26314 (iterative_hash_rtx): Handle CONST_WIDE_INT.
26315 (cwi_check_failed_bounds): New.
26316 * rtl.def (CONST_WIDE_INT): New.
26317 * rtl.h: Include <utility> and wide-int.h.
26318 (struct hwivec_def): New.
26319 (CWI_GET_NUM_ELEM): New.
26320 (CWI_PUT_NUM_ELEM): New.
26321 (struct rtx_def): Add num_elem and hwiv.
26322 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
26323 (CASE_CONST_UNIQUE): Likewise.
26324 (CASE_CONST_ANY): Likewise.
26325 (CONST_SCALAR_INT_P): Likewise.
26326 (CONST_WIDE_INT_P): New.
26327 (CWI_ELT): New.
26328 (HWIVEC_CHECK): New.
26329 (cwi_check_failed_bounds): New.
26330 (CWI_ELT): New.
26331 (HWIVEC_CHECK): New.
26332 (CONST_WIDE_INT_VEC) New.
26333 (CONST_WIDE_INT_NUNITS) New.
26334 (CONST_WIDE_INT_ELT) New.
26335 (rtx_mode_t): New type.
26336 (wi::int_traits <rtx_mode_t>): New.
26337 (wi::shwi): New.
26338 (wi::min_value): New.
26339 (wi::max_value): New.
26340 (rtx_alloc_v) New.
26341 (const_wide_int_alloc): New.
26342 (immed_wide_int_const): New.
26343 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
26344 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
26345 * signop.h: New file.
26346 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
26347 (simplify_const_unary_operation): Use wide-int interfaces.
26348 (simplify_binary_operation_1): Likewise.
26349 (simplify_const_binary_operation): Likewise.
26350 (simplify_const_relational_operation): Likewise.
26351 (simplify_immed_subreg): Likewise.
26352 * stmt.c (expand_case): Likewise.
26353 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
26354 signop rather than a bool.
26355 * stor-layout.c (layout_type): Use wide-int interfaces.
26356 (initialize_sizetypes): Update calls to
26357 set_min_and_max_values_for_integral_type.
26358 (set_min_and_max_values_for_integral_type): Take a signop rather
26359 than a bool. Use wide-int interfaces.
26360 (fixup_signed_type): Update accordingly. Remove
26361 HOST_BITS_PER_DOUBLE_INT limit.
26362 (fixup_unsigned_type): Likewise.
26363 * system.h (STATIC_CONSTANT_P): New.
26364 (STATIC_ASSERT): New.
26365 * target.def (can_use_doloop_p): Take widest_ints rather than
26366 double_ints.
26367 * target.h: Include wide-int.h rather than double-int.h.
26368 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
26369 than double_ints.
26370 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
26371 rather than INT_CST_LT_UNSIGNED.
26372 (can_use_doloop_if_innermost): Take widest_ints rather than
26373 double_ints.
26374 * tree-affine.c: Include wide-int-print.h.
26375 (double_int_ext_for_comb): Delete.
26376 (wide_int_ext_for_comb): New.
26377 (aff_combination_zero): Use wide-int interfaces.
26378 (aff_combination_const): Take a widest_int instead of a double_int.
26379 (aff_combination_elt): Use wide-int interfaces.
26380 (aff_combination_scale): Take a widest_int instead of a double_int.
26381 (aff_combination_add_elt): Likewise.
26382 (aff_combination_add_cst): Likewise.
26383 (aff_combination_add): Use wide-int interfaces.
26384 (aff_combination_convert): Likewise.
26385 (tree_to_aff_combination): Likewise.
26386 (add_elt_to_tree): Take a widest_int instead of a double_int.
26387 (aff_combination_to_tree): Use wide-int interfaces.
26388 (aff_combination_remove_elt): Likewise.
26389 (aff_combination_add_product): Take a widest_int instead of
26390 a double_int.
26391 (aff_combination_mult): Use wide-int interfaces.
26392 (aff_combination_expand): Likewise.
26393 (double_int_constant_multiple_p): Delete.
26394 (wide_int_constant_multiple_p): New.
26395 (aff_combination_constant_multiple_p): Take a widest_int pointer
26396 instead of a double_int pointer.
26397 (print_aff): Use wide-int interfaces.
26398 (get_inner_reference_aff): Take a widest_int pointer
26399 instead of a double_int pointer.
26400 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
26401 * tree-affine.h: Include wide-int.h.
26402 (struct aff_comb_elt): Change type of coef to widest_int.
26403 (struct affine_tree_combination): Change type of offset to widest_int.
26404 (double_int_ext_for_comb): Delete.
26405 (wide_int_ext_for_comb): New.
26406 (aff_combination_const): Use widest_int instead of double_int.
26407 (aff_combination_scale): Likewise.
26408 (aff_combination_add_elt): Likewise.
26409 (aff_combination_constant_multiple_p): Likewise.
26410 (get_inner_reference_aff): Likewise.
26411 (aff_comb_cannot_overlap_p): Likewise.
26412 (aff_combination_zero_p): Use wide-int interfaces.
26413 * tree.c: Include tree.h.
26414 (init_ttree): Use make_int_cst.
26415 (tree_code_size): Removed code for INTEGER_CST case.
26416 (tree_size): Add INTEGER_CST case.
26417 (make_node_stat): Update comment.
26418 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
26419 (build_int_cst_type): Use wide-int interfaces.
26420 (double_int_to_tree): Likewise.
26421 (double_int_fits_to_tree_p): Delete.
26422 (force_fit_type_double): Delete.
26423 (force_fit_type): New.
26424 (int_cst_hash_hash): Use wide-int interfaces.
26425 (int_cst_hash_eq): Likewise.
26426 (build_int_cst_wide): Delete.
26427 (wide_int_to_tree): New.
26428 (cache_integer_cst): Use wide-int interfaces.
26429 (build_low_bits_mask): Likewise.
26430 (cst_and_fits_in_hwi): Likewise.
26431 (real_value_from_int_cst): Likewise.
26432 (make_int_cst_stat): New.
26433 (integer_zerop): Use wide_int interfaces.
26434 (integer_onep): Likewise.
26435 (integer_all_onesp): Likewise.
26436 (integer_pow2p): Likewise.
26437 (integer_nonzerop): Likewise.
26438 (tree_log2): Likewise.
26439 (tree_floor_log2): Likewise.
26440 (tree_ctz): Likewise.
26441 (int_size_in_bytes): Likewise.
26442 (mem_ref_offset): Return an offset_int rather than a double_int.
26443 (build_type_attribute_qual_variant): Use wide_int interfaces.
26444 (type_hash_eq): Likewise
26445 (tree_int_cst_equal): Likewise.
26446 (tree_int_cst_lt): Delete.
26447 (tree_int_cst_compare): Likewise.
26448 (tree_fits_shwi_p): Use wide_int interfaces.
26449 (tree_fits_uhwi_p): Likewise.
26450 (tree_int_cst_sign_bit): Likewise.
26451 (tree_int_cst_sgn): Likewise.
26452 (tree_int_cst_min_precision): Take a signop rather than a bool.
26453 (simple_cst_equal): Use wide_int interfaces.
26454 (compare_tree_int): Likewise.
26455 (iterative_hash_expr): Likewise.
26456 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
26457 INT_CST_LT.
26458 (get_type_static_bounds): Use wide_int interfaces.
26459 (tree_int_cst_elt_check_failed): New.
26460 (build_common_tree_nodes): Reordered to set prec before filling in
26461 value.
26462 (int_cst_value): Check cst_and_fits_in_hwi.
26463 (widest_int_cst_value): Use wide_int interfaces.
26464 (upper_bound_in_type): Likewise.
26465 (lower_bound_in_type): Likewise.
26466 (num_ending_zeros): Likewise.
26467 (drop_tree_overflow): Likewise.
26468 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
26469 (gen_conditions_for_pow_cst_base): Likewise.
26470 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
26471 (group_case_labels_stmt): Use wide-int interfaces.
26472 (verify_gimple_assign_binary): Likewise.
26473 (print_loop): Likewise.
26474 * tree-chrec.c (tree_fold_binomial): Likewise.
26475 * tree-core.h (struct tree_base): Add int_length.
26476 (struct tree_int_cst): Change rep of value.
26477 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
26478 (dr_may_alias_p): Likewise.
26479 (max_stmt_executions_tree): Likewise.
26480 * tree.def (INTEGER_CST): Update comment.
26481 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
26482 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
26483 * tree-dump.c: Include wide-int.h and wide-int-print.h.
26484 (dequeue_and_dump): Use wide-int interfaces.
26485 * tree.h: Include wide-int.h.
26486 (NULL_TREE): Moved to earlier loc in file.
26487 (TREE_INT_CST_ELT_CHECK): New.
26488 (tree_int_cst_elt_check_failed): New.
26489 (TYPE_SIGN): New.
26490 (TREE_INT_CST): Delete.
26491 (TREE_INT_CST_LOW): Use wide-int interfaces.
26492 (TREE_INT_CST_HIGH): Delete.
26493 (TREE_INT_CST_NUNITS): New.
26494 (TREE_INT_CST_EXT_NUNITS): Likewise.
26495 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
26496 (TREE_INT_CST_ELT): Likewise.
26497 (INT_CST_LT): Delete.
26498 (tree_int_cst_elt_check): New (two forms).
26499 (type_code_size): Update comment.
26500 (make_int_cst_stat, make_int_cst): New.
26501 (tree_to_double_int): Delete.
26502 (double_int_fits_to_tree_p): Delete.
26503 (force_fit_type_double): Delete.
26504 (build_int_cstu): Replace with out-of-line function.
26505 (build_int_cst_wide): Delete.
26506 (tree_int_cst_lt): Define inline.
26507 (tree_int_cst_le): New.
26508 (tree_int_cst_compare): Define inline.
26509 (tree_int_cst_min_precision): Take a signop rather than a bool.
26510 (wi::int_traits <const_tree>): New.
26511 (wi::int_traits <tree>): New.
26512 (wi::extended_tree): New.
26513 (wi::int_traits <wi::extended_tree>): New.
26514 (wi::to_widest): New.
26515 (wi::to_offset): New.
26516 (wi::fits_to_tree_p): New.
26517 (wi::min_value): New.
26518 (wi::max_value): New.
26519 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
26520 (copy_tree_body_r): Likewise.
26521 * tree-object-size.c (compute_object_offset): Likewise.
26522 (addr_object_size): Likewise.
26523 * tree-predcom.c: Include wide-int-print.h.
26524 (struct dref_d): Change type of offset to widest_int.
26525 (dump_dref): Call wide-int printer.
26526 (aff_combination_dr_offset): Use wide-int interfaces.
26527 (determine_offset): Take a widest_int pointer rather than a
26528 double_int pointer.
26529 (split_data_refs_to_components): Use wide-int interfaces.
26530 (suitable_component_p): Likewise.
26531 (order_drefs): Likewise.
26532 (add_ref_to_chain): Likewise.
26533 (valid_initializer_p): Likewise.
26534 (determine_roots_comp): Likewise.
26535 * tree-pretty-print.c: Include wide-int-print.h.
26536 (dump_generic_node): Use wide-int interfaces.
26537 * tree-sra.c (sra_ipa_modify_expr): Likewise.
26538 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
26539 (move_fixed_address_to_symbol): Likewise.
26540 (move_hint_to_base): Likewise.
26541 (move_pointer_to_base): Likewise.
26542 (move_variant_to_index): Likewise.
26543 (most_expensive_mult_to_index): Likewise.
26544 (addr_to_parts): Likewise.
26545 (copy_ref_info): Likewise.
26546 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26547 (indirect_refs_may_alias_p): Likewise.
26548 (stmt_kills_ref_p_1): Likewise.
26549 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
26550 * tree-ssa-ccp.c: Update comment at top of file. Include
26551 wide-int-print.h.
26552 (struct prop_value_d): Change type of mask to widest_int.
26553 (extend_mask): New function.
26554 (dump_lattice_value): Use wide-int interfaces.
26555 (get_default_value): Likewise.
26556 (set_constant_value): Likewise.
26557 (set_value_varying): Likewise.
26558 (valid_lattice_transition): Likewise.
26559 (set_lattice_value): Likewise.
26560 (value_to_double_int): Delete.
26561 (value_to_wide_int): New.
26562 (get_value_from_alignment): Use wide-int interfaces.
26563 (get_value_for_expr): Likewise.
26564 (do_dbg_cnt): Likewise.
26565 (ccp_finalize): Likewise.
26566 (ccp_lattice_meet): Likewise.
26567 (bit_value_unop_1): Use widest_ints rather than double_ints.
26568 (bit_value_binop_1): Likewise.
26569 (bit_value_unop): Use wide-int interfaces.
26570 (bit_value_binop): Likewise.
26571 (bit_value_assume_aligned): Likewise.
26572 (evaluate_stmt): Likewise.
26573 (ccp_fold_stmt): Likewise.
26574 (visit_cond_stmt): Likewise.
26575 (ccp_visit_stmt): Likewise.
26576 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26577 (constant_pointer_difference): Likewise.
26578 (associate_pointerplus): Likewise.
26579 (combine_conversions): Likewise.
26580 * tree-ssa-loop.h: Include wide-int.h.
26581 (struct tree_niter_desc): Change type of max to widest_int.
26582 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26583 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26584 (remove_redundant_iv_tests): Likewise.
26585 (canonicalize_loop_induction_variables): Likewise.
26586 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26587 (constant_multiple_of): Take a widest_int pointer instead of
26588 a double_int pointer.
26589 (get_computation_aff): Use wide-int interfaces.
26590 (ptr_difference_cost): Likewise.
26591 (difference_cost): Likewise.
26592 (get_loop_invariant_expr_id): Likewise.
26593 (get_computation_cost_at): Likewise.
26594 (iv_elimination_compare_lt): Likewise.
26595 (may_eliminate_iv): Likewise.
26596 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26597 instead of double_int.
26598 (max_loop_iterations): Likewise.
26599 (max_stmt_executions): Likewise.
26600 (estimated_stmt_executions): Likewise.
26601 * tree-ssa-loop-niter.c: Include wide-int-print.h.
26602 (split_to_var_and_offset): Use wide-int interfaces.
26603 (determine_value_range): Likewise.
26604 (bound_difference_of_offsetted_base): Likewise.
26605 (bounds_add): Take a widest_int instead of a double_int.
26606 (number_of_iterations_ne_max): Use wide-int interfaces.
26607 (number_of_iterations_ne): Likewise.
26608 (number_of_iterations_lt_to_ne): Likewise.
26609 (assert_loop_rolls_lt): Likewise.
26610 (number_of_iterations_lt): Likewise.
26611 (number_of_iterations_le): Likewise.
26612 (number_of_iterations_cond): Likewise.
26613 (number_of_iterations_exit): Likewise.
26614 (finite_loop_p): Likewise.
26615 (derive_constant_upper_bound_assign): Likewise.
26616 (derive_constant_upper_bound): Return a widest_int.
26617 (derive_constant_upper_bound_ops): Likewise.
26618 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26619 (record_estimate): Take a widest_int rather than a double_int.
26620 (record_nonwrapping_iv): Use wide-int interfaces.
26621 (double_int_cmp): Delete.
26622 (wide_int_cmp): New.
26623 (bound_index): Take a widest_int rather than a double_int.
26624 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26625 (maybe_lower_iteration_bound): Likewise.
26626 (estimate_numbers_of_iterations_loop): Likewise.
26627 (estimated_loop_iterations): Take a widest_int pointer than than
26628 a double_int pointer.
26629 (estimated_loop_iterations_int): Use wide-int interfaces.
26630 (max_loop_iterations): Take a widest_int pointer than than
26631 a double_int pointer.
26632 (max_loop_iterations_int): Use wide-int interfaces.
26633 (max_stmt_executions): Take a widest_int pointer than than
26634 a double_int pointer.
26635 (estimated_stmt_executions): Likewise.
26636 (n_of_executions_at_most): Use wide-int interfaces.
26637 (scev_probably_wraps_p): Likewise.
26638 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26639 to real_to_integer.
26640 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26641 interfaces.
26642 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26643 double_ints. Adjust for trailing_wide_ints <3> representation.
26644 (set_nonzero_bits): Likewise.
26645 (get_range_info): Return wide_ints rather than double_ints.
26646 Adjust for trailing_wide_ints <3> representation.
26647 (get_nonzero_bits): Likewise.
26648 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26649 representation.
26650 * tree-ssanames.h (struct range_info_def): Replace min, max and
26651 nonzero_bits with a trailing_wide_ints <3>.
26652 (set_range_info): Use wide_int_refs rather than double_ints.
26653 (set_nonzero_bits): Likewise.
26654 (get_range_info): Return wide_ints rather than double_ints.
26655 (get_nonzero_bits): Likewise.
26656 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
26657 * tree-ssa-pre.c (phi_translate_1): Likewise.
26658 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
26659 (acceptable_pow_call): Likewise.
26660 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
26661 interfaces.
26662 (vn_reference_fold_indirect): Likewise.
26663 (vn_reference_maybe_forwprop_address): Likewise.
26664 (valueize_refs_1): Likewise.
26665 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
26666 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
26667 tree_int_cst_lt and tree_int_cst_le.
26668 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
26669 interfaces.
26670 (streamer_alloc_tree): Likewise.
26671 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
26672 (streamer_write_tree_header): Likewise.
26673 (streamer_write_integer_cst): Likewise.
26674 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26675 (build_constructors): Likewise.
26676 (array_value_type): Likewise.
26677 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26678 (vect_check_gather): Likewise.
26679 * tree-vect-generic.c (build_replicated_const): Likewise.
26680 (expand_vector_divmod): Likewise.
26681 * tree-vect-loop.c (vect_transform_loop): Likewise.
26682 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26683 (vect_do_peeling_for_alignment): Likewise.
26684 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26685 * tree-vrp.c: Include wide-int.h.
26686 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26687 (extract_range_from_assert): Use wide-int interfaces.
26688 (vrp_int_const_binop): Likewise.
26689 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26690 double_int pointers.
26691 (ranges_from_anti_range): Use wide-int interfaces.
26692 (quad_int_cmp): Delete.
26693 (quad_int_pair_sort): Likewise.
26694 (extract_range_from_binary_expr_1): Use wide-int interfaces.
26695 (extract_range_from_unary_expr_1): Likewise.
26696 (adjust_range_with_scev): Likewise.
26697 (masked_increment): Take and return wide_ints rather than double_ints.
26698 (register_edge_assert_for_2): Use wide-int interfaces.
26699 (check_array_ref): Likewise.
26700 (search_for_addr_array): Likewise.
26701 (maybe_set_nonzero_bits): Likewise.
26702 (union_ranges): Pass an integer of the correct type instead of
26703 using integer_one_node.
26704 (intersect_ranges): Likewise.
26705 (simplify_truth_ops_using_ranges): Likewise.
26706 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
26707 (range_fits_type_p): Likewise.
26708 (simplify_cond_using_ranges): Likewise. Take a signop rather than
26709 a bool.
26710 (simplify_conversion_using_ranges): Use wide-int interfaces.
26711 (simplify_float_conversion_using_ranges): Likewise.
26712 (vrp_finalize): Likewise.
26713 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
26714 (gimple_stringops_transform): Likewise.
26715 * varasm.c (decode_addr_const): Likewise.
26716 (const_hash_1): Likewise.
26717 (const_rtx_hash_1): Likewise
26718 (output_constant): Likewise.
26719 (array_size_for_constructor): Likewise.
26720 (output_constructor_regular_field): Likewise.
26721 (output_constructor_bitfield): Likewise.
26722 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
26723 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
26724 GENERATOR_FILEs.
26725 * gencheck.c: Define BITS_PER_UNIT.
26726 * wide-int.cc: New.
26727 * wide-int.h: New.
26728 * wide-int-print.cc: New.
26729 * wide-int-print.h: New.
26730
26731 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26732
26733 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
26734
26735 2014-05-06 Richard Biener <rguenther@suse.de>
26736
26737 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
26738 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
26739 (TODO_verify_all): Adjust.
26740 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
26741 TODO_verify_stmts and TODO_verify_rtl_sharing.
26742 * bb-reorder.c: Likewise.
26743 * cfgexpand.c: Likewise.
26744 * cprop.c: Likewise.
26745 * cse.c: Likewise.
26746 * function.c: Likewise.
26747 * fwprop.c: Likewise.
26748 * gcse.c: Likewise.
26749 * gimple-ssa-isolate-paths.c: Likewise.
26750 * gimple-ssa-strength-reduction.c: Likewise.
26751 * ipa-split.c: Likewise.
26752 * loop-init.c: Likewise.
26753 * loop-unroll.c: Likewise.
26754 * lower-subreg.c: Likewise.
26755 * modulo-sched.c: Likewise.
26756 * postreload-gcse.c: Likewise.
26757 * predict.c: Likewise.
26758 * recog.c: Likewise.
26759 * sched-rgn.c: Likewise.
26760 * store-motion.c: Likewise.
26761 * tracer.c: Likewise.
26762 * trans-mem.c: Likewise.
26763 * tree-call-cdce.c: Likewise.
26764 * tree-cfg.c: Likewise.
26765 * tree-cfgcleanup.c: Likewise.
26766 * tree-complex.c: Likewise.
26767 * tree-eh.c: Likewise.
26768 * tree-emutls.c: Likewise.
26769 * tree-if-conv.c: Likewise.
26770 * tree-into-ssa.c: Likewise.
26771 * tree-loop-distribution.c: Likewise.
26772 * tree-object-size.c: Likewise.
26773 * tree-parloops.c: Likewise.
26774 * tree-pass.h: Likewise.
26775 * tree-sra.c: Likewise.
26776 * tree-ssa-ccp.c: Likewise.
26777 * tree-ssa-copy.c: Likewise.
26778 * tree-ssa-copyrename.c: Likewise.
26779 * tree-ssa-dce.c: Likewise.
26780 * tree-ssa-dom.c: Likewise.
26781 * tree-ssa-dse.c: Likewise.
26782 * tree-ssa-forwprop.c: Likewise.
26783 * tree-ssa-ifcombine.c: Likewise.
26784 * tree-ssa-loop-ch.c: Likewise.
26785 * tree-ssa-loop-ivcanon.c: Likewise.
26786 * tree-ssa-loop.c: Likewise.
26787 * tree-ssa-math-opts.c: Likewise.
26788 * tree-ssa-phiopt.c: Likewise.
26789 * tree-ssa-phiprop.c: Likewise.
26790 * tree-ssa-pre.c: Likewise.
26791 * tree-ssa-reassoc.c: Likewise.
26792 * tree-ssa-sink.c: Likewise.
26793 * tree-ssa-strlen.c: Likewise.
26794 * tree-ssa-tail-merge.c: Likewise.
26795 * tree-ssa-uncprop.c: Likewise.
26796 * tree-switch-conversion.c: Likewise.
26797 * tree-tailcall.c: Likewise.
26798 * tree-vect-generic.c: Likewise.
26799 * tree-vectorizer.c: Likewise.
26800 * tree-vrp.c: Likewise.
26801 * tsan.c: Likewise.
26802 * var-tracking.c: Likewise.
26803 * bt-load.c: Likewise.
26804 * cfgcleanup.c: Likewise.
26805 * combine-stack-adj.c: Likewise.
26806 * combine.c: Likewise.
26807 * compare-elim.c: Likewise.
26808 * config/epiphany/resolve-sw-modes.c: Likewise.
26809 * config/i386/i386.c: Likewise.
26810 * config/mips/mips.c: Likewise.
26811 * config/s390/s390.c: Likewise.
26812 * config/sh/sh_treg_combine.cc: Likewise.
26813 * config/sparc/sparc.c: Likewise.
26814 * dce.c: Likewise.
26815 * dse.c: Likewise.
26816 * final.c: Likewise.
26817 * ifcvt.c: Likewise.
26818 * mode-switching.c: Likewise.
26819 * passes.c: Likewise.
26820 * postreload.c: Likewise.
26821 * ree.c: Likewise.
26822 * reg-stack.c: Likewise.
26823 * regcprop.c: Likewise.
26824 * regrename.c: Likewise.
26825 * web.c: Likewise.
26826
26827 2014-05-06 Richard Biener <rguenther@suse.de>
26828
26829 PR middle-end/61070
26830 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
26831 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
26832
26833 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
26834
26835 PR ipa/60965
26836 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
26837
26838 2014-05-05 Radovan Obradovic <robradovic@mips.com>
26839 Tom de Vries <tom@codesourcery.com>
26840
26841 * target.def (call_fusage_contains_non_callee_clobbers): New
26842 DEFHOOKPOD.
26843 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
26844 Hooks to @menu.
26845 (@node Miscellaneous Register Hooks): New node.
26846 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
26847 * doc/tm.texi: Regenerate.
26848
26849 2014-05-05 Marek Polacek <polacek@redhat.com>
26850
26851 PR driver/61065
26852 * opts.c (common_handle_option): Call error_at instead of warning_at.
26853
26854 2014-05-05 Richard Biener <rguenther@suse.de>
26855
26856 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
26857 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
26858 under the TODO_verify_il umbrella.
26859
26860 2014-05-05 Richard Biener <rguenther@suse.de>
26861
26862 * passes.c (execute_function_todo): Move TODO_verify_flow under
26863 the TODO_verify_ul umbrella.
26864
26865 2014-05-05 Richard Biener <rguenther@suse.de>
26866
26867 PR middle-end/61010
26868 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
26869 X & CST away from a CST that is the mask of a mode.
26870
26871 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26872
26873 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
26874 int argument to enum machine_mode.
26875 (picochip_class_max_nregs): Ditto.
26876 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
26877 (picochip_class_max_nregs): Ditto.
26878
26879 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26880
26881 * target.def: Add new target hook.
26882 * doc/tm.texi: Regenerate.
26883 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
26884 * targhooks.c (default_keep_leaf_when_profiled): New function.
26885
26886 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
26887 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
26888
26889 2014-05-05 Bin Cheng <bin.cheng@arm.com>
26890
26891 PR tree-optimization/60363
26892 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
26893 (copy_phi_args): New parameters. Call get_value_locus_in_path.
26894 (update_destination_phis): New parameter.
26895 (create_edge_and_update_destination_phis): Ditto.
26896 (ssa_fix_duplicate_block_edges): Pass new arguments.
26897 (thread_single_edge): Ditto.
26898
26899 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
26900
26901 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
26902 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
26903 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
26904 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
26905 Use RS6000_BTM_HARD_FLOAT.
26906 (BU_MISC_2): Likewise.
26907 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
26908 RS6000_BTM_HARD_FLOAT.
26909 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
26910 is explicitly used.
26911 (rs6000_invalid_builtin): Add hard floating builtin support.
26912 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
26913 hard float builtins.
26914 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
26915
26916 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26917
26918 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
26919 Add missing function* argument.
26920
26921 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26922
26923 * lra-constraints.c (valid_address_p): Move earlier in file.
26924 Add a constraint argument to the address_info version.
26925 (satisfies_memory_constraint_p): New function.
26926 (satisfies_address_constraint_p): Likewise.
26927 (process_alt_operands, curr_insn_transform): Use them.
26928 (process_address): Pass the constraint to valid_address_p when
26929 checking address operands.
26930
26931 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26932
26933 * config/mips/mips.c (mips_isa_rev): New variable.
26934 (mips_set_architecture): Set it.
26935 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
26936 from mips_isa_rev.
26937 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
26938 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
26939 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
26940 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
26941 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
26942 conditions in terms of mips_isa_rev.
26943 (mips_isa_rev): Declare.
26944
26945 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26946
26947 * config/sh/sh-mem.cc: Use tabs instead of spaces.
26948 (prob_unlikely, prob_likely): Make variables const.
26949
26950 2014-05-03 Denis Chertykov <chertykov@gmail.com>
26951
26952 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
26953
26954 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26955
26956 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
26957
26958 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26959
26960 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
26961 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
26962 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
26963 functions.
26964 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
26965 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
26966 sh_pass_in_reg_p.
26967 Replace usage of ROUND_REG with sh_round_reg.
26968 Use CEIL instead of ROUND_ADVANCE.
26969
26970 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26971
26972 PR target/61026
26973 * config/sh/sh.c: Include stdlib headers before everything else.
26974
26975 2014-05-02 Jakub Jelinek <jakub@redhat.com>
26976
26977 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
26978 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
26979 (gimplify_adjust_omp_clauses): Simd region is never
26980 directly nested in combined parallel. Instead, for linear
26981 with copyin/copyout, if in combined for simd loop, make decl
26982 firstprivate/lastprivate on OMP_FOR.
26983 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
26984 expand_omp_for_static_chunk): When setting endvar, also set
26985 fd->loop.v to the same value.
26986
26987 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26988
26989 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
26990
26991 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
26992
26993 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
26994 expression.
26995
26996 2014-05-02 Marek Polacek <polacek@redhat.com>
26997
26998 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
26999
27000 2014-05-02 Kito Cheng <kito@0xlab.org>
27001
27002 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27003 to a C expression marco.
27004 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27005 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27006 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27007 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27008 HONOR_REG_ALLOC_ORDER.
27009 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27010
27011 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27012
27013 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27014
27015 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27016
27017 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27018
27019 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27020
27021 * tree-if-conv.c (is_cond_scalar_reduction): New function.
27022 (convert_scalar_cond_reduction): Likewise.
27023 (predicate_scalar_phi): Add recognition and transformation
27024 of simple conditioanl reduction to be vectorizable.
27025
27026 2014-05-01 Marek Polacek <polacek@redhat.com>
27027
27028 PR c/43245
27029 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27030
27031 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
27032
27033 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27034 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27035 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27036 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27037 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27038 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27039 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27040 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27041
27042 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
27043
27044 * config/arc/arc.opt (mlra): Move comment above option name
27045 to avoid mis-parsing as language options.
27046
27047 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27048
27049 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27050 * config/sol2.h: ... here.
27051 * config/sol2-10.h: Remove.
27052
27053 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27054 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27055 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27056 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27057 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27058 * config/sol2.h: ... here.
27059 (SECTION_NAME_FORMAT): Don't redefine.
27060 (STARTFILE_ARCH32_SPEC): Rename to ...
27061 (STARTFILE_ARCH_SPEC): ... this.
27062 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27063 * config/sparc/sol2.h: ... here.
27064 (SECTION_NAME_FORMAT): Don't undef.
27065 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27066 (SUBTARGET_EXTRA_SPECS): Remove.
27067 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27068
27069 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27070 (MD_STARTFILE_PREFIX): Remove.
27071 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27072 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27073 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27074 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27075 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27076 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27077 * config/i386/sol2.h: ... here.
27078 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27079 * config/i386/sol2-bi.h: Remove.
27080 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27081 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27082
27083 * config/i386/t-sol2-64: Rename to ...
27084 * config/i386/t-sol2: ... this.
27085 * config/sparc/t-sol2-64: Rename to ...
27086 * config/sparc/t-sol2: ... this.
27087
27088 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27089 sol2_tm_file_head, sol2_tm_file_tail.
27090 Include ${cpu_type}/sol2.h before sol2.h.
27091 Remove sol2-10.h.
27092 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27093 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27094 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27095 Reflect i386/t-sol2-64 renaming.
27096 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27097 Reflect sparc/t-sol2-64 renaming.
27098
27099 2014-04-30 Richard Biener <rguenther@suse.de>
27100
27101 * passes.c (execute_function_todo): Move TODO_verify_stmts
27102 and TODO_verify_ssa under the TODO_verify_il umbrella.
27103 * tree-ssa.h (verify_ssa): Adjust prototype.
27104 * tree-ssa.c (verify_ssa): Add parameter to tell whether
27105 we should verify SSA operands.
27106 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27107 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27108 whether we should verify whether not throwing stmts have EH info.
27109 * graphite-scop-detection.c (create_sese_edges): Adjust.
27110 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27111 * tree-eh.c (lower_try_finally_switch): Do not add the
27112 default case label twice.
27113
27114 2014-04-30 Marek Polacek <polacek@redhat.com>
27115
27116 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27117 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27118 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27119 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27120
27121 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
27122
27123 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27124 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27125 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27126 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27127 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27128 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27129 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27130 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27131
27132 2014-04-29 David Malcolm <dmalcolm@redhat.com>
27133
27134 * tree-cfg.c (dump_function_to_file): Dump the return type of
27135 functions, in a line to itself before the function body, mimicking
27136 the layout of a C function.
27137
27138 2014-04-29 Jakub Jelinek <jakub@redhat.com>
27139
27140 PR tree-optimization/60971
27141 * tree-tailcall.c (process_assignment): Reject conversions which
27142 reduce precision.
27143
27144 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27145
27146 * calls.c (initialize_argument_information): Always treat
27147 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27148 (expand_call): Likewise.
27149 (emit_library_call_calue_1): Likewise.
27150 * expr.c (PUSH_ARGS_REVERSED): Do not define.
27151 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27152 code accordingly.
27153
27154 2014-04-29 Nick Clifton <nickc@redhat.com>
27155
27156 * config/msp430/msp430.md (umulsidi): Fix typo.
27157 (mulhisi3): Enable even inside interrupt handlers.
27158 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27159 bigger return address pushed in large mode.
27160
27161 2014-04-29 Nick Clifton <nickc@redhat.com>
27162
27163 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27164 (arc_init_reg_tables): Use a machine_mode enum to iterate over
27165 available modes.
27166 * config/m32r/m32r.c (init_reg_tables): Likewise.
27167 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27168 enum to hold the modes.
27169
27170 2014-04-29 Richard Biener <rguenther@suse.de>
27171
27172 * dominance.c (free_dominance_info): Add overload with
27173 function parameter.
27174 (dom_info_state): Likewise.
27175 (dom_info_available_p): Likewise.
27176 * basic-block.h (free_dominance_info, dom_info_state,
27177 dom_info_available_p): Declare overloads.
27178 * passes.c (execute_function_todo): Verify that verifiers
27179 don't change dominator info state. Drop dominator info
27180 for IPA pass invocations.
27181 * cgraph.c (release_function_body): Restore asserts that
27182 dominator information is released.
27183
27184 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
27185
27186 * doc/invoke.texi: Fix typo.
27187 * tree-vrp.c: Fix typos.
27188 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
27189
27190 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27191
27192 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
27193
27194 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27195
27196 * config/aarch64/aarch64-builtins.c
27197 (aarch64_types_storestruct_lane_qualifiers): New.
27198 (TYPES_STORESTRUCT_LANE): Likewise.
27199 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
27200 (st3_lane): Likewise.
27201 (st4_lane): Likewise.
27202 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
27203 (vec_store_lanesci_lane<mode>): Likewise.
27204 (vec_store_lanesxi_lane<mode>): Likewise.
27205 (aarch64_st2_lane<VQ:mode>): Likewise.
27206 (aarch64_st3_lane<VQ:mode>): Likewise.
27207 (aarch64_st4_lane<VQ:mode>): Likewise.
27208 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
27209 * config/aarch64/arm_neon.h
27210 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27211 use new macro arguments.
27212 (__ST3_LANE_FUNC): Likewise.
27213 (__ST4_LANE_FUNC): Likewise.
27214 * config/aarch64/iterators.md (V_TWO_ELEM): New.
27215 (V_THREE_ELEM): Likewise.
27216 (V_FOUR_ELEM): Likewise.
27217
27218 2014-04-28 David Malcolm <dmalcolm@redhat.com>
27219
27220 * doc/gimple.texi: Replace the description of the now-defunct
27221 union gimple_statement_d with a diagram showing the
27222 gimple_statement_base class hierarchy and its relationships to
27223 the GSS_ and GIMPLE_ enums.
27224
27225 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27226
27227 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27228 * config/aarch64/aarch64.c
27229 (aarch64_cannot_change_mode_class): Weaken conditions.
27230 (aarch64_modes_tieable_p): New.
27231 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27232
27233 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
27234
27235 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27236 (loadsync_<mode>): Change mode.
27237 (load_quadpti, store_quadpti): New.
27238 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27239 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27240
27241 2014-04-28 Martin Jambor <mjambor@suse.cz>
27242
27243 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27244 same alias type as the original statement.
27245 (subreplacement_assignment_data): New type.
27246 (handle_unscalarized_data_in_subtree): New type of parameter,
27247 generate new memory accesses with same alias type as the original
27248 statement.
27249 (load_assign_lhs_subreplacements): Likewise.
27250 (sra_modify_constructor_assign): Generate new memory accesses with
27251 same alias type as the original statement.
27252
27253 2014-04-28 Richard Biener <rguenther@suse.de>
27254
27255 * tree-pass.h (TODO_verify_il): Define.
27256 (TODO_verify_all): Complete properly.
27257 * passes.c (execute_function_todo): Move existing loop-closed
27258 SSA verification under TODO_verify_il.
27259 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27260 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27261 Fix tree sharing issue.
27262
27263 2014-04-28 Richard Biener <rguenther@suse.de>
27264
27265 PR middle-end/60092
27266 * builtins.def (DEF_C11_BUILTIN): Add.
27267 (BUILT_IN_ALIGNED_ALLOC): Likewise.
27268 * coretypes.h (enum function_class): Add function_c11_misc.
27269 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27270 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27271 (call_may_clobber_ref_p_1): Likewise.
27272 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27273 (mark_all_reaching_defs_necessary_1): Likewise.
27274 (propagate_necessity): Likewise.
27275 (eliminate_unnecessary_stmts): Likewise.
27276 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27277
27278 2014-04-28 Richard Biener <rguenther@suse.de>
27279
27280 * tree-vrp.c (vrp_var_may_overflow): Remove.
27281 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27282 with overflow immediately bump to one before that value and
27283 let iteration figure out overflow status.
27284
27285 2014-04-28 Richard Biener <rguenther@suse.de>
27286
27287 * configure.ac: Do valgrind header checks unconditionally.
27288 Add --enable-valgrind-annotations.
27289 * system.h: Guard valgrind header inclusion with
27290 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27291 * alloc-pool.c (pool_alloc, pool_free): Use
27292 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27293 to guard possibly dead code.
27294 * config.in: Regenerated.
27295 * configure: Likewise.
27296
27297 2014-04-28 Jeff Law <law@redhat.com>
27298
27299 PR tree-optimization/60902
27300 * tree-ssa-threadedge.c
27301 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27302 over real defs when invalidating outputs from statements that do not
27303 produce useful outputs for threading.
27304
27305 2014-04-28 Richard Biener <rguenther@suse.de>
27306
27307 PR tree-optimization/60979
27308 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27309 SCOPs that end in a block with a successor with abnormal
27310 predecessors.
27311
27312 2014-04-28 Richard Biener <rguenther@suse.de>
27313
27314 * tree-pass.h (execute_pass_list): Adjust prototype.
27315 * passes.c (pass_manager::execute_early_local_passes): Adjust.
27316 (do_per_function): Change callback signature, push all actual
27317 work to the callbals.
27318 (do_per_function_toporder): Likewise.
27319 (execute_function_dump): Adjust.
27320 (execute_function_todo): Likewise.
27321 (clear_last_verified): Likewise.
27322 (verify_curr_properties): Likewise.
27323 (update_properties_after_pass): Likewise.
27324 (execute_pass_list_1): Split out from ...
27325 (execute_pass_list): ... here. Adjust.
27326 (execute_ipa_pass_list): Likewise.
27327 * cgraphunit.c (cgraph_add_new_function): Adjust.
27328 (analyze_function): Likewise.
27329 (expand_function): Likewise.
27330 * cgraph.c (release_function_body): Free dominance info
27331 here instead of asserting it was magically freed elsewhere.
27332
27333 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
27334
27335 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
27336 * configure: Regenerate.
27337 * config/sparc/sparc.opt (muser-mode): New option.
27338 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
27339 for LEON3.
27340 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
27341 * doc/invoke.texi (SPARC options): Document -muser-mode.
27342
27343 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
27344
27345 * cselib.c (find_slot_memmode): Delete.
27346 (cselib_hasher): Change compare_type to a struct.
27347 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
27348 constants.
27349 (preserve_constants_and_equivs): Adjust for new compare_type.
27350 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
27351 (wrap_constant): Delete.
27352 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
27353
27354 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27355
27356 * doc/install.texi (Building with profile feedback): Remove
27357 outdated sentence.
27358
27359 2014-04-26 Tom de Vries <tom@codesourcery.com>
27360
27361 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
27362 array accesses.
27363
27364 2014-04-25 Cary Coutant <ccoutant@google.com>
27365
27366 PR debug/60929
27367 * dwarf2out.c (should_move_die_to_comdat): A type definition
27368 can contain a subprogram definition, but don't move it to a
27369 comdat unit.
27370 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
27371 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
27372 from original DIE.
27373 (clone_tree_hash): Rename to...
27374 (clone_tree_partial): ...this; change callers. Copy
27375 DW_TAG_subprogram DIEs as declarations.
27376 (copy_decls_walk): Don't copy children of a declaration into a
27377 type unit.
27378
27379 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
27380
27381 PR target/60969
27382 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
27383 alternative 12.
27384
27385 2014-04-25 Jiong Wang <jiong.wang@arm.com>
27386
27387 * config/arm/predicates.md (call_insn_operand): Add long_call check.
27388 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
27389 reg for long_call.
27390 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
27391 restriction.
27392
27393 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27394
27395 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
27396
27397 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27398
27399 PR tree-optimization/60930
27400 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
27401 creating a multiply candidate by folding two constant
27402 multiplicands when the result overflows.
27403
27404 2014-04-25 Jakub Jelinek <jakub@redhat.com>
27405
27406 PR tree-optimization/60960
27407 * tree-vect-generic.c (expand_vector_operation): Only call
27408 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
27409
27410 2014-04-25 Tom de Vries <tom@codesourcery.com>
27411
27412 * expr.c (clobber_reg_mode): New function.
27413 * expr.h (clobber_reg): New function.
27414
27415 2014-04-25 Tom de Vries <tom@codesourcery.com>
27416
27417 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
27418 clobbers.
27419
27420 2014-04-25 Radovan Obradovic <robradovic@mips.com>
27421 Tom de Vries <tom@codesourcery.com>
27422
27423 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
27424 handle.
27425 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
27426 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
27427 new argument to find_all_hard_reg_sets call.
27428
27429 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27430
27431 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
27432 Use HOST_WIDE_INT_C for mask literal.
27433 (aarch_rev16_shleft_mask_imm_p): Likewise.
27434
27435 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
27436
27437 PR target/60941
27438 * config/sparc/sparc.md (ashlsi3_extend): Delete.
27439
27440 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
27441
27442 PR preprocessor/56540
27443 * config/i386/i386-c.c (ix86_target_macros): Define
27444 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
27445
27446 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27447
27448 * configure.ac (tga_func): Remove.
27449 (LIB_TLS_SPEC): Remove.
27450 * configure: Regenerate.
27451 * config.in: Regenerate.
27452 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
27453
27454 2014-04-25 Richard Biener <rguenther@suse.de>
27455
27456 PR ipa/60912
27457 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
27458 call stmt use/clobber sets during stmt walk instead of
27459 walking the possibly incomplete set of caller edges.
27460
27461 2014-04-25 Richard Biener <rguenther@suse.de>
27462
27463 PR ipa/60911
27464 * passes.c (apply_ipa_transforms): Inline into only caller ...
27465 (execute_one_pass): ... here. Properly bring in function
27466 bodies for nodes we want to apply IPA transforms to.
27467
27468 2014-04-24 Cong Hou <congh@google.com>
27469
27470 PR tree-optimization/60896
27471 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
27472 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
27473 (vect_mark_pattern_stmts): Set the def type of all statements in
27474 PATTERN_DEF_SEQ as vect_internal_def.
27475
27476 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27477
27478 * doc/extend.texi (PowerPC Built-in Functions): Document new
27479 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
27480 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
27481
27482 * config/rs6000/predicates.md (const_0_to_3_operand): New
27483 predicate to match 0..3 integer constants.
27484
27485 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
27486 to support adding miscellaneous builtin functions.
27487 (BU_DFP_MISC_2): Likewise.
27488 (BU_P7_MISC_1): Likewise.
27489 (BU_P7_MISC_2): Likewise.
27490 (BU_P8V_MISC_3): Likewise.
27491 (BU_MISC_1): Likewise.
27492 (BU_MISC_2): Likewise.
27493 (DIVWE): Add extended divide builtin functions.
27494 (DIVWEO): Likewise.
27495 (DIVWEU): Likewise.
27496 (DIVWEUO): Likewise.
27497 (DIVDE): Likewise.
27498 (DIVDEO): Likewise.
27499 (DIVDEU): Likewise.
27500 (DIVDEUO): Likewise.
27501 (DXEX): Add decimal floating-point builtin functions.
27502 (DXEXQ): Likewise.
27503 (DDEDPD): Likewise.
27504 (DDEDPDQ): Likewise.
27505 (DENBCD): Likewise.
27506 (DENBCDQ): Likewise.
27507 (DIEX): Likewise.
27508 (DIEXQ): Likewise.
27509 (DSCLI): Likewise.
27510 (DSCLIQ): Likewise.
27511 (DSCRI): Likewise.
27512 (DSCRIQ): Likewise.
27513 (CDTBCD): Add new BCD builtin functions.
27514 (CBCDTD): Likewise.
27515 (ADDG6S): Likewise.
27516 (BCDADD): Likewise.
27517 (BCDADD_LT): Likewise.
27518 (BCDADD_EQ): Likewise.
27519 (BCDADD_GT): Likewise.
27520 (BCDADD_OV): Likewise.
27521 (BCDSUB): Likewise.
27522 (BCDSUB_LT): Likewise.
27523 (BCDSUB_EQ): Likewise.
27524 (BCDSUB_GT): Likewise.
27525 (BCDSUB_OV): Likewise.
27526 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
27527 (UNPACK_TD): Likewise.
27528 (PACK_TF): Likewise.
27529 (UNPACK_TF): Likewise.
27530 (UNPACK_TF_0): Likewise.
27531 (UNPACK_TF_1): Likewise.
27532 (PACK_V1TI): Likewise.
27533 (UNPACK_V1TI): Likewise.
27534
27535 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27536 support for decimal floating point builtin functions.
27537 (rs6000_expand_ternop_builtin): Add checks for the new builtin
27538 functions that take constant arguments.
27539 (rs6000_invalid_builtin): Add decimal floating point builtin support.
27540 (rs6000_init_builtins): Setup long double, _Decimal64, and
27541 _Decimal128 types for new builtin functions.
27542 (builtin_function_type): Set the unsigned flags appropriately for
27543 the new builtin functions.
27544 (rs6000_opt_masks): Add support for decimal floating point builtin
27545 functions.
27546
27547 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
27548 floating point builtin functions.
27549 (RS6000_BTM_COMMON): Likewise.
27550 (RS6000_BTI_long_double): Likewise.
27551 (RS6000_BTI_dfloat64): Likewise.
27552 (RS6000_BTI_dfloat128): Likewise.
27553 (long_double_type_internal_node): Likewise.
27554 (dfloat64_type_internal_node): Likewise.
27555 (dfloat128_type_internal_node): Likewise.
27556
27557 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
27558 2.07 bcd arithmetic instructions.
27559 (UNSPEC_BCDSUB): Likewise.
27560 (UNSPEC_BCD_OVERFLOW): Likewise.
27561 (UNSPEC_BCD_ADD_SUB): Likewise.
27562 (bcd_add_sub): Likewise.
27563 (BCD_TEST): Likewise.
27564 (bcd<bcd_add_sub>): Likewise.
27565 (bcd<bcd_add_sub>_test): Likewise.
27566 (bcd<bcd_add_sub>_test2): Likewise.
27567 (bcd<bcd_add_sub>_<code>): Likewise.
27568 (peephole2 for combined bcd ops): Likewise.
27569
27570 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27571 decimal floating point builtin functions.
27572 (UNSPEC_DENBCD): Likewise.
27573 (UNSPEC_DXEX): Likewise.
27574 (UNSPEC_DIEX): Likewise.
27575 (UNSPEC_DSCLI): Likewise.
27576 (UNSPEC_DSCRI): Likewise.
27577 (D64_D128): Likewise.
27578 (dfp_suffix): Likewise.
27579 (dfp_ddedpd_<mode>): Likewise.
27580 (dfp_denbcd_<mode>): Likewise.
27581 (dfp_dxex_<mode>): Likewise.
27582 (dfp_diex_<mode>): Likewise.
27583 (dfp_dscli_<mode>): Likewise.
27584 (dfp_dscri_<mode>): Likewise.
27585
27586 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27587 builtin functions.
27588 (UNSPEC_CDTBCD): Likewise.
27589 (UNSPEC_CBCDTD): Likewise.
27590 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27591 (UNSPEC_DIVEO): Likewise.
27592 (UNSPEC_DIVEU): Likewise.
27593 (UNSPEC_DIVEUO): Likewise.
27594 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27595 pack/unpack 128-bit types.
27596 (UNSPEC_PACK_128BIT): Likewise.
27597 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27598 (udiv<mode>3): Use idiv_ldiv mode attribute.
27599 (div<mode>3): Likewise.
27600 (addg6s): Add new BCD builtin functions.
27601 (cdtbcd): Likewise.
27602 (cbcdtd): Likewise.
27603 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27604 (div_extend): Likewise.
27605 (div<div_extend>_<mode>"): Likewise.
27606 (FP128_64): Add support for new builtin functions to pack/unpack
27607 128-bit types.
27608 (unpack<mode>): Likewise.
27609 (unpacktf_0): Likewise.
27610 (unpacktf_1): Likewise.
27611 (unpack<mode>_dm): Likewise.
27612 (unpack<mode>_nodm): Likewise.
27613 (pack<mode>): Likewise.
27614 (unpackv1ti): Likewise.
27615 (packv1ti): Likewise.
27616
27617 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
27618
27619 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27620 is disabled.
27621
27622 2014-04-24 Jakub Jelinek <jakub@redhat.com>
27623
27624 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27625 * gimplify.c (omp_is_private): Change last argument's type to int.
27626 Only diagnose lastprivate if the simd argument is 1, only diagnose
27627 linear if the simd argument is 2.
27628 (gimplify_omp_for): Adjust omp_is_private callers. When adding
27629 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
27630 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
27631 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27632 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27633 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27634 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27635 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27636 * tree-nested.c (convert_nonlocal_omp_clauses,
27637 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27638
27639 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
27640
27641 PR target/60822
27642 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27643 operand 1.
27644
27645 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
27646
27647 * flag-types.h (enum ivar_visibility): Add.
27648
27649 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
27650
27651 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27652 function * argument.
27653
27654 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
27655
27656 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
27657
27658 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27659 Tom de Vries <tom@codesourcery.com>
27660
27661 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
27662 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
27663 reg-note.
27664 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
27665 * emit-rtl.c (try_split): Same.
27666
27667 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27668 Tom de Vries <tom@codesourcery.com>
27669
27670 * common.opt (fuse-caller-save): New option.
27671
27672 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
27673
27674 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27675 elements for big-endian.
27676
27677 2014-04-24 Richard Biener <rguenther@suse.de>
27678
27679 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27680 during TER and instead use the sepops interface for expanding
27681 non-GIMPLE_SINGLE_RHS.
27682
27683 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27684
27685 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27686 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27687
27688 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27689
27690 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27691 assembler 64-bit option.
27692 * configure: Regenerate.
27693
27694 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27695
27696 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27697 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27698 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27699 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27700 (TARGET_CRYPTO): Take TARGET_SIMD into account.
27701
27702 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27703
27704 * config/aarch64/aarch64-builtins.c
27705 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
27706 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
27707 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
27708 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
27709 builtins.
27710 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
27711 (Vrevsuff): New mode attribute.
27712
27713 2014-04-24 Terry Guo <terry.guo@arm.com>
27714
27715 * config/arm/arm.h (machine_function): Define variable
27716 after_arm_reorg here.
27717 * config/arm/arm.c (after_arm_reorg): Remove the definition.
27718 (arm_split_constant): Update the way to access variable
27719 after_arm_reorg.
27720 (arm_reorg): Ditto.
27721 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
27722
27723 2014-04-23 Tom de Vries <tom@codesourcery.com>
27724
27725 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
27726
27727 2014-04-23 David Malcolm <dmalcolm@redhat.com>
27728
27729 * is-a.h: Update comments to reflect the following changes to the
27730 "pointerness" of the API, making the template parameter match the
27731 return type, allowing use of is-a.h with typedefs of pointers.
27732 (is_a_helper::cast): Return a T rather then a pointer to a T, so
27733 that the return type matches the parameter to the is_a_helper.
27734 (as_a): Likewise.
27735 (dyn_cast): Likewise.
27736
27737 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
27738 pointer from the is-a.h API.
27739
27740 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
27741 (is_a_helper <cgraph_node *>::test): ...this, matching change to
27742 is-a.h API.
27743 (is_a_helper <varpool_node>::test): Likewise, convert to...
27744 (is_a_helper <varpool_node *>::test): ...this.
27745
27746 (varpool_first_variable): Update for removal of implicit pointer
27747 from the is-a.h API.
27748 (varpool_next_variable): Likewise.
27749 (varpool_first_static_initializer): Likewise.
27750 (varpool_next_static_initializer): Likewise.
27751 (varpool_first_defined_variable): Likewise.
27752 (varpool_next_defined_variable): Likewise.
27753 (cgraph_first_defined_function): Likewise.
27754 (cgraph_next_defined_function): Likewise.
27755 (cgraph_first_function): Likewise.
27756 (cgraph_next_function): Likewise.
27757 (cgraph_first_function_with_gimple_body): Likewise.
27758 (cgraph_next_function_with_gimple_body): Likewise.
27759 (cgraph_alias_target): Likewise.
27760 (varpool_alias_target): Likewise.
27761 (cgraph_function_or_thunk_node): Likewise.
27762 (varpool_variable_node): Likewise.
27763 (symtab_real_symbol_p): Likewise.
27764 * cgraphunit.c (referred_to_p): Likewise.
27765 (analyze_functions): Likewise.
27766 (handle_alias_pairs): Likewise.
27767 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
27768 * gimple-ssa.h (gimple_vuse_op): Likewise.
27769 (gimple_vdef_op): Likewise.
27770 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
27771 * gimple.c (gimple_build_asm_1): Likewise.
27772 (gimple_build_try): Likewise.
27773 (gimple_build_resx): Likewise.
27774 (gimple_build_eh_dispatch): Likewise.
27775 (gimple_build_omp_for): Likewise.
27776 (gimple_omp_for_set_clauses): Likewise.
27777
27778 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
27779 (is_a_helper <gimple_statement_asm *>::test): ...this.
27780 (is_a_helper <gimple_statement_bind>::test): Convert to...
27781 (is_a_helper <gimple_statement_bind *>::test): ...this.
27782 (is_a_helper <gimple_statement_call>::test): Convert to...
27783 (is_a_helper <gimple_statement_call *>::test): ...this.
27784 (is_a_helper <gimple_statement_catch>::test): Convert to...
27785 (is_a_helper <gimple_statement_catch *>::test): ...this.
27786 (is_a_helper <gimple_statement_resx>::test): Convert to...
27787 (is_a_helper <gimple_statement_resx *>::test): ...this.
27788 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
27789 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
27790 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
27791 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
27792 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
27793 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
27794 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
27795 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
27796 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
27797 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
27798 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
27799 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
27800 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
27801 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
27802 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
27803 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
27804 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
27805 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
27806 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
27807 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
27808 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
27809 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
27810 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
27811 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
27812 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
27813 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
27814 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
27815 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
27816 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
27817 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
27818 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
27819 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
27820 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
27821 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
27822 (is_a_helper <gimple_statement_phi>::test): Convert to...
27823 (is_a_helper <gimple_statement_phi *>::test): ...this.
27824 (is_a_helper <gimple_statement_transaction>::test): Convert to...
27825 (is_a_helper <gimple_statement_transaction *>::test): ...this.
27826 (is_a_helper <gimple_statement_try>::test): Convert to...
27827 (is_a_helper <gimple_statement_try *>::test): ...this.
27828 (is_a_helper <gimple_statement_wce>::test): Convert to...
27829 (is_a_helper <gimple_statement_wce *>::test): ...this.
27830 (is_a_helper <const gimple_statement_asm>::test): Convert to...
27831 (is_a_helper <const gimple_statement_asm *>::test): ...this.
27832 (is_a_helper <const gimple_statement_bind>::test): Convert to...
27833 (is_a_helper <const gimple_statement_bind *>::test): ...this.
27834 (is_a_helper <const gimple_statement_call>::test): Convert to...
27835 (is_a_helper <const gimple_statement_call *>::test): ...this.
27836 (is_a_helper <const gimple_statement_catch>::test): Convert to...
27837 (is_a_helper <const gimple_statement_catch *>::test): ...this.
27838 (is_a_helper <const gimple_statement_resx>::test): Convert to...
27839 (is_a_helper <const gimple_statement_resx *>::test): ...this.
27840 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
27841 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
27842 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
27843 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
27844 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
27845 Convert to...
27846 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
27847 ...this.
27848 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
27849 Convert to...
27850 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
27851 ...this.
27852 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
27853 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
27854 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
27855 to...
27856 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
27857 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
27858 to...
27859 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
27860 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
27861 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
27862 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
27863 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
27864 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
27865 to...
27866 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
27867 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
27868 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
27869 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
27870 to...
27871 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
27872 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
27873 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
27874 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
27875 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
27876 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
27877 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
27878 (is_a_helper <const gimple_statement_phi>::test): Convert to...
27879 (is_a_helper <const gimple_statement_phi *>::test): ...this.
27880 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
27881 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
27882 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
27883 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
27884 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
27885 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
27886 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
27887 to...
27888 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
27889 ...this.
27890 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
27891 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
27892
27893 (gimple_use_ops): Update for removal of implicit pointer from the
27894 is-a.h API.
27895 (gimple_set_use_ops): Likewise.
27896 (gimple_vuse): Likewise.
27897 (gimple_vdef): Likewise.
27898 (gimple_vuse_ptr): Likewise.
27899 (gimple_vdef_ptr): Likewise.
27900 (gimple_set_vuse): Likewise.
27901 (gimple_set_vdef): Likewise.
27902 (gimple_omp_return_set_lhs): Likewise.
27903 (gimple_omp_return_lhs): Likewise.
27904 (gimple_omp_return_lhs_ptr): Likewise.
27905 (gimple_call_fntype): Likewise.
27906 (gimple_call_set_fntype): Likewise.
27907 (gimple_call_set_internal_fn): Likewise.
27908 (gimple_call_use_set): Likewise.
27909 (gimple_call_clobber_set): Likewise.
27910 (gimple_bind_vars): Likewise.
27911 (gimple_bind_set_vars): Likewise.
27912 (gimple_bind_body_ptr): Likewise.
27913 (gimple_bind_set_body): Likewise.
27914 (gimple_bind_add_stmt): Likewise.
27915 (gimple_bind_block): Likewise.
27916 (gimple_bind_set_block): Likewise.
27917 (gimple_asm_ninputs): Likewise.
27918 (gimple_asm_noutputs): Likewise.
27919 (gimple_asm_nclobbers): Likewise.
27920 (gimple_asm_nlabels): Likewise.
27921 (gimple_asm_input_op): Likewise.
27922 (gimple_asm_input_op_ptr): Likewise.
27923 (gimple_asm_output_op): Likewise.
27924 (gimple_asm_output_op_ptr): Likewise.
27925 (gimple_asm_set_output_op): Likewise.
27926 (gimple_asm_clobber_op): Likewise.
27927 (gimple_asm_set_clobber_op): Likewise.
27928 (gimple_asm_label_op): Likewise.
27929 (gimple_asm_set_label_op): Likewise.
27930 (gimple_asm_string): Likewise.
27931 (gimple_catch_types): Likewise.
27932 (gimple_catch_types_ptr): Likewise.
27933 (gimple_catch_handler_ptr): Likewise.
27934 (gimple_catch_set_types): Likewise.
27935 (gimple_catch_set_handler): Likewise.
27936 (gimple_eh_filter_types): Likewise.
27937 (gimple_eh_filter_types_ptr): Likewise.
27938 (gimple_eh_filter_failure_ptr): Likewise.
27939 (gimple_eh_filter_set_types): Likewise.
27940 (gimple_eh_filter_set_failure): Likewise.
27941 (gimple_eh_must_not_throw_fndecl): Likewise.
27942 (gimple_eh_must_not_throw_set_fndecl): Likewise.
27943 (gimple_eh_else_n_body_ptr): Likewise.
27944 (gimple_eh_else_e_body_ptr): Likewise.
27945 (gimple_eh_else_set_n_body): Likewise.
27946 (gimple_eh_else_set_e_body): Likewise.
27947 (gimple_try_eval_ptr): Likewise.
27948 (gimple_try_cleanup_ptr): Likewise.
27949 (gimple_try_set_eval): Likewise.
27950 (gimple_try_set_cleanup): Likewise.
27951 (gimple_wce_cleanup_ptr): Likewise.
27952 (gimple_wce_set_cleanup): Likewise.
27953 (gimple_phi_capacity): Likewise.
27954 (gimple_phi_num_args): Likewise.
27955 (gimple_phi_result): Likewise.
27956 (gimple_phi_result_ptr): Likewise.
27957 (gimple_phi_set_result): Likewise.
27958 (gimple_phi_arg): Likewise.
27959 (gimple_phi_set_arg): Likewise.
27960 (gimple_resx_region): Likewise.
27961 (gimple_resx_set_region): Likewise.
27962 (gimple_eh_dispatch_region): Likewise.
27963 (gimple_eh_dispatch_set_region): Likewise.
27964 (gimple_omp_critical_name): Likewise.
27965 (gimple_omp_critical_name_ptr): Likewise.
27966 (gimple_omp_critical_set_name): Likewise.
27967 (gimple_omp_for_clauses): Likewise.
27968 (gimple_omp_for_clauses_ptr): Likewise.
27969 (gimple_omp_for_set_clauses): Likewise.
27970 (gimple_omp_for_collapse): Likewise.
27971 (gimple_omp_for_index): Likewise.
27972 (gimple_omp_for_index_ptr): Likewise.
27973 (gimple_omp_for_set_index): Likewise.
27974 (gimple_omp_for_initial): Likewise.
27975 (gimple_omp_for_initial_ptr): Likewise.
27976 (gimple_omp_for_set_initial): Likewise.
27977 (gimple_omp_for_final): Likewise.
27978 (gimple_omp_for_final_ptr): Likewise.
27979 (gimple_omp_for_set_final): Likewise.
27980 (gimple_omp_for_incr): Likewise.
27981 (gimple_omp_for_incr_ptr): Likewise.
27982 (gimple_omp_for_set_incr): Likewise.
27983 (gimple_omp_for_pre_body_ptr): Likewise.
27984 (gimple_omp_for_set_pre_body): Likewise.
27985 (gimple_omp_parallel_clauses): Likewise.
27986 (gimple_omp_parallel_clauses_ptr): Likewise.
27987 (gimple_omp_parallel_set_clauses): Likewise.
27988 (gimple_omp_parallel_child_fn): Likewise.
27989 (gimple_omp_parallel_child_fn_ptr): Likewise.
27990 (gimple_omp_parallel_set_child_fn): Likewise.
27991 (gimple_omp_parallel_data_arg): Likewise.
27992 (gimple_omp_parallel_data_arg_ptr): Likewise.
27993 (gimple_omp_parallel_set_data_arg): Likewise.
27994 (gimple_omp_task_clauses): Likewise.
27995 (gimple_omp_task_clauses_ptr): Likewise.
27996 (gimple_omp_task_set_clauses): Likewise.
27997 (gimple_omp_task_child_fn): Likewise.
27998 (gimple_omp_task_child_fn_ptr): Likewise.
27999 (gimple_omp_task_set_child_fn): Likewise.
28000 (gimple_omp_task_data_arg): Likewise.
28001 (gimple_omp_task_data_arg_ptr): Likewise.
28002 (gimple_omp_task_set_data_arg): Likewise.
28003 (gimple_omp_taskreg_clauses): Likewise.
28004 (gimple_omp_taskreg_clauses_ptr): Likewise.
28005 (gimple_omp_taskreg_set_clauses): Likewise.
28006 (gimple_omp_taskreg_child_fn): Likewise.
28007 (gimple_omp_taskreg_child_fn_ptr): Likewise.
28008 (gimple_omp_taskreg_set_child_fn): Likewise.
28009 (gimple_omp_taskreg_data_arg): Likewise.
28010 (gimple_omp_taskreg_data_arg_ptr): Likewise.
28011 (gimple_omp_taskreg_set_data_arg): Likewise.
28012 (gimple_omp_task_copy_fn): Likewise.
28013 (gimple_omp_task_copy_fn_ptr): Likewise.
28014 (gimple_omp_task_set_copy_fn): Likewise.
28015 (gimple_omp_task_arg_size): Likewise.
28016 (gimple_omp_task_arg_size_ptr): Likewise.
28017 (gimple_omp_task_set_arg_size): Likewise.
28018 (gimple_omp_task_arg_align): Likewise.
28019 (gimple_omp_task_arg_align_ptr): Likewise.
28020 (gimple_omp_task_set_arg_align): Likewise.
28021 (gimple_omp_single_clauses): Likewise.
28022 (gimple_omp_single_clauses_ptr): Likewise.
28023 (gimple_omp_single_set_clauses): Likewise.
28024 (gimple_omp_target_clauses): Likewise.
28025 (gimple_omp_target_clauses_ptr): Likewise.
28026 (gimple_omp_target_set_clauses): Likewise.
28027 (gimple_omp_target_child_fn): Likewise.
28028 (gimple_omp_target_child_fn_ptr): Likewise.
28029 (gimple_omp_target_set_child_fn): Likewise.
28030 (gimple_omp_target_data_arg): Likewise.
28031 (gimple_omp_target_data_arg_ptr): Likewise.
28032 (gimple_omp_target_set_data_arg): Likewise.
28033 (gimple_omp_teams_clauses): Likewise.
28034 (gimple_omp_teams_clauses_ptr): Likewise.
28035 (gimple_omp_teams_set_clauses): Likewise.
28036 (gimple_omp_sections_clauses): Likewise.
28037 (gimple_omp_sections_clauses_ptr): Likewise.
28038 (gimple_omp_sections_set_clauses): Likewise.
28039 (gimple_omp_sections_control): Likewise.
28040 (gimple_omp_sections_control_ptr): Likewise.
28041 (gimple_omp_sections_set_control): Likewise.
28042 (gimple_omp_for_set_cond): Likewise.
28043 (gimple_omp_for_cond): Likewise.
28044 (gimple_omp_atomic_store_set_val): Likewise.
28045 (gimple_omp_atomic_store_val): Likewise.
28046 (gimple_omp_atomic_store_val_ptr): Likewise.
28047 (gimple_omp_atomic_load_set_lhs): Likewise.
28048 (gimple_omp_atomic_load_lhs): Likewise.
28049 (gimple_omp_atomic_load_lhs_ptr): Likewise.
28050 (gimple_omp_atomic_load_set_rhs): Likewise.
28051 (gimple_omp_atomic_load_rhs): Likewise.
28052 (gimple_omp_atomic_load_rhs_ptr): Likewise.
28053 (gimple_omp_continue_control_def): Likewise.
28054 (gimple_omp_continue_control_def_ptr): Likewise.
28055 (gimple_omp_continue_set_control_def): Likewise.
28056 (gimple_omp_continue_control_use): Likewise.
28057 (gimple_omp_continue_control_use_ptr): Likewise.
28058 (gimple_omp_continue_set_control_use): Likewise.
28059 (gimple_transaction_body_ptr): Likewise.
28060 (gimple_transaction_label): Likewise.
28061 (gimple_transaction_label_ptr): Likewise.
28062 (gimple_transaction_set_body): Likewise.
28063 (gimple_transaction_set_label): Likewise.
28064
28065 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28066 * ipa-inline-analysis.c (inline_write_summary): Likewise.
28067 * ipa-ref.c (ipa_record_reference): Likewise.
28068 * ipa-reference.c (analyze_function): Likewise.
28069 (ipa_reference_write_optimization_summary): Likewise.
28070 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28071 (address_taken_from_non_vtable_p): Likewise.
28072 (comdat_can_be_unshared_p_1): Likewise.
28073 * lto-cgraph.c (lto_output_ref): Likewise.
28074 (add_references): Likewise.
28075 (compute_ltrans_boundary): Likewise.
28076 (output_symtab): Likewise.
28077 (input_ref): Likewise.
28078 (input_cgraph_1): Likewise.
28079 (output_cgraph_opt_summary): Likewise.
28080 * lto-streamer-out.c (lto_output): Likewise.
28081 (output_symbol_p): Likewise.
28082 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28083 (lsei_start_function_in_partition): Likewise.
28084 (lsei_next_variable_in_partition): Likewise.
28085 (lsei_start_variable_in_partition): Likewise.
28086 * symtab.c (insert_to_assembler_name_hash): Likewise.
28087 (unlink_from_assembler_name_hash): Likewise.
28088 (symtab_unregister_node): Likewise.
28089 (symtab_remove_node): Likewise.
28090 (dump_symtab_node): Likewise.
28091 (verify_symtab_base): Likewise.
28092 (verify_symtab_node): Likewise.
28093 (symtab_make_decl_local): Likewise.
28094 (symtab_alias_ultimate_target): Likewise.
28095 (symtab_resolve_alias): Likewise.
28096 (symtab_get_symbol_partitioning_class): Likewise.
28097 * tree-phinodes.c (allocate_phi_node): Likewise.
28098 (reserve_phi_args_for_new_edge): Likewise.
28099 (remove_phi_args): Likewise.
28100 * varpool.c (varpool_node_for_asm): Likewise.
28101 (varpool_remove_unreferenced_decls): Likewise.
28102
28103 2014-04-23 Jeff Law <law@redhat.com>
28104
28105 PR tree-optimization/60902
28106 * tree-ssa-threadedge.c
28107 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28108 invalidate outputs from statements that do not produce useful
28109 outputs for threading.
28110
28111 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
28112
28113 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28114 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28115 machine descriptions for Stack Smashing Protector.
28116
28117 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
28118
28119 * aarch64.md (<optab>_rol<mode>3): New pattern.
28120 (<optab>_rolsi3_uxtw): Likewise.
28121 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28122
28123 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
28124
28125 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28126 (arm_cortex_a12_tune): Likewise.
28127
28128 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28129
28130 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28131
28132 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28133
28134 * config/arm/arm.md (arm_rev16si2): New pattern.
28135 (arm_rev16si2_alt): Likewise.
28136 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28137
28138 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28139
28140 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28141 (rev16<mode>2_alt): Likewise.
28142 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28143 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28144 (aarch_rev16_shleft_mask_imm_p): Likewise.
28145 (aarch_rev16_p_1): Likewise.
28146 (aarch_rev16_p): Likewise.
28147 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28148 (aarch_rev16_shright_mask_imm_p): Likewise.
28149 (aarch_rev16_shleft_mask_imm_p): Likewise.
28150
28151 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28152
28153 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28154 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28155 rev cost.
28156 (cortex_a53_extra_costs): Likewise.
28157 (cortex_a57_extra_costs): Likewise.
28158 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28159 (cortexa7_extra_costs): Likewise.
28160 (cortexa8_extra_costs): Likewise.
28161 (cortexa12_extra_costs): Likewise.
28162 (cortexa15_extra_costs): Likewise.
28163 (v7m_extra_costs): Likewise.
28164 (arm_new_rtx_costs): Handle BSWAP.
28165
28166 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28167
28168 * config/arm/arm.c (cortexa8_extra_costs): New table.
28169 (arm_cortex_a8_tune): New tuning struct.
28170 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28171
28172 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28173
28174 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
28175
28176 2014-04-23 Richard Biener <rguenther@suse.de>
28177
28178 * Makefile.in (OBJS): Remove loop-unswitch.o.
28179 * tree-pass.h (make_pass_rtl_unswitch): Remove.
28180 * passes.def (pass_rtl_unswitch): Likewise.
28181 * loop-init.c (gate_rtl_unswitch): Likewise.
28182 (rtl_unswitch): Likewise.
28183 (pass_data_rtl_unswitch): Likewise.
28184 (pass_rtl_unswitch): Likewise.
28185 (make_pass_rtl_unswitch): Likewise.
28186 * rtl.h (reversed_condition): Likewise.
28187 (compare_and_jump_seq): Likewise.
28188 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
28189 and make static.
28190 * loop-unroll.c (compare_and_jump_seq): Likewise.
28191
28192 2014-04-23 Richard Biener <rguenther@suse.de>
28193
28194 PR tree-optimization/60903
28195 * tree-ssa-loop-im.c (analyze_memory_references): Remove
28196 commented code block.
28197 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
28198 loop flags to newly created BBs and edges.
28199
28200 2014-04-23 Nick Clifton <nickc@redhat.com>
28201
28202 * config/msp430/msp430.c (msp430_handle_option): Move function
28203 to msp430-common.c
28204 (msp430_option_override): Simplify mcu and mcpu option handling.
28205 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
28206 support for -mhwmult command line option.
28207 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
28208 -mhwmult command line option.
28209 (msp430_hwmult_enabled): Delete.
28210 (msp43o_output_labelref): Add support for -mhwmult command line option.
28211 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28212 (umulsidi3): Likewise.
28213 * config/msp430/msp430.opt (mmcu): Add Report attribute.
28214 (mcpu, mlarge, msmall): Likewise.
28215 (mhwmult): New option.
28216 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28217 prototype.
28218 (msp430_is_f5_mcu): Remove prototype.
28219 (msp430_use_f5_series_hwmult): Add prototype.
28220 * config/msp430/msp430-opts.h: New file.
28221 * common/config/msp430: New directory.
28222 * common/config/msp430/msp430-common.c: New file.
28223 * config.gcc (msp430): Remove target_has_targetm_common.
28224 * doc/invoke.texi: Document -mhwmult command line option.
28225
28226 2014-04-23 Nick Clifton <nickc@redhat.com>
28227
28228 * config/i386/cygwin.h (ENDFILE_SPEC): Include
28229 default-manifest.o if it can be found in the search path.
28230 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28231
28232 2014-04-23 Terry Guo <terry.guo@arm.com>
28233
28234 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28235
28236 2014-04-23 Richard Biener <rguenther@suse.de>
28237
28238 PR middle-end/60895
28239 * tree-inline.c (declare_return_variable): Use mark_addressable.
28240
28241 2014-04-23 Richard Biener <rguenther@suse.de>
28242
28243 PR middle-end/60891
28244 * loop-init.c (loop_optimizer_init): Make sure to apply
28245 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28246
28247 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28248
28249 PR sanitizer/60275
28250 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28251 New options.
28252 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28253 if flag_sanitize_undefined_trap_on_error.
28254 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28255 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28256 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28257 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28258 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28259 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28260 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28261 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28262 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28263 * ubsan.c (ubsan_instrument_unreachable): Return
28264 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28265 (ubsan_expand_null_ifn): Emit __builtin_trap ()
28266 if flag_sanitize_undefined_trap_on_error and
28267 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28268 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28269 instrument_bool_enum_load): Emit __builtin_trap () if
28270 flag_sanitize_undefined_trap_on_error and
28271 __builtin_handle_*_abort () if !flag_sanitize_recover.
28272 * doc/invoke.texi (-fsanitize-recover,
28273 -fsanitize-undefined-trap-on-error): Document.
28274
28275 2014-04-22 Christian Bruel <christian.bruel@st.com>
28276
28277 * config/sh/sh.md (mov<mode>): Replace movQIHI.
28278 Force immediates to SImode.
28279
28280 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
28281
28282 * config/nios2/nios2.md (UNSPEC_ROUND): New.
28283 (lroundsfsi2): New.
28284 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28285 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28286 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28287 (nios2_fpu_insn): Add entry for round.
28288 (N2FPU_NO_ERRNO_P): Define.
28289 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28290 flag_errno_math.
28291 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28292
28293 2014-04-22 Richard Henderson <rth@redhat.com>
28294
28295 * config/aarch64/aarch64 (addti3, subti3): New expanders.
28296 (add<GPI>3_compare0): Remove leading * from name.
28297 (add<GPI>3_carryin): Likewise.
28298 (sub<GPI>3_compare0): Likewise.
28299 (sub<GPI>3_carryin): Likewise.
28300 (<su_optab>mulditi3): New expander.
28301 (multi3): New expander.
28302 (madd<GPI>): Remove leading * from name.
28303
28304 2014-04-22 Martin Jambor <mjambor@suse.cz>
28305
28306 * cgraphclones.c (cgraph_function_versioning): Copy
28307 ipa_transforms_to_apply instead of asserting it is empty.
28308
28309 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
28310
28311 PR target/60868
28312 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
28313 on count_exp to get mode.
28314
28315 2014-04-22 Andrew Pinski <apinski@cavium.com>
28316
28317 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28318 Handle TLS for ILP32.
28319 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
28320 (tlsie_small_<mode>): this and handle PTR.
28321 (tlsie_small_sidi): New pattern.
28322 (tlsle_small): Change to an expand to handle ILP32.
28323 (tlsle_small_<mode>): New pattern.
28324 (tlsdesc_small): Rename to ...
28325 (tlsdesc_small_<mode>): this and handle PTR.
28326
28327 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28328
28329 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
28330
28331 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28332
28333 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28334 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
28335 (aarch64_types_signed_poly_qualifiers): Likewise.
28336 (aarch64_types_unsigned_signed_qualifiers): Likewise.
28337 (aarch64_types_poly_signed_qualifiers): Likewise.
28338 (TYPES_REINTERP_SS): Type macro added.
28339 (TYPES_REINTERP_SU): Likewise.
28340 (TYPES_REINTERP_SP): Likewise.
28341 (TYPES_REINTERP_US): Likewise.
28342 (TYPES_REINTERP_PS): Likewise.
28343 (aarch64_fold_builtin): New expression folding added.
28344 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
28345 Declarations removed.
28346 (REINTERP_SS): Declarations added.
28347 (REINTERP_US): Likewise.
28348 (REINTERP_PS): Likewise.
28349 (REINTERP_SU): Likewise.
28350 (REINTERP_SP): Likewise.
28351 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
28352 (vreinterpretq_p8_f64): Likewise.
28353 (vreinterpret_p16_f64): Likewise.
28354 (vreinterpretq_p16_f64): Likewise.
28355 (vreinterpret_f32_f64): Likewise.
28356 (vreinterpretq_f32_f64): Likewise.
28357 (vreinterpret_f64_f32): Likewise.
28358 (vreinterpret_f64_p8): Likewise.
28359 (vreinterpret_f64_p16): Likewise.
28360 (vreinterpret_f64_s8): Likewise.
28361 (vreinterpret_f64_s16): Likewise.
28362 (vreinterpret_f64_s32): Likewise.
28363 (vreinterpret_f64_s64): Likewise.
28364 (vreinterpret_f64_u8): Likewise.
28365 (vreinterpret_f64_u16): Likewise.
28366 (vreinterpret_f64_u32): Likewise.
28367 (vreinterpret_f64_u64): Likewise.
28368 (vreinterpretq_f64_f32): Likewise.
28369 (vreinterpretq_f64_p8): Likewise.
28370 (vreinterpretq_f64_p16): Likewise.
28371 (vreinterpretq_f64_s8): Likewise.
28372 (vreinterpretq_f64_s16): Likewise.
28373 (vreinterpretq_f64_s32): Likewise.
28374 (vreinterpretq_f64_s64): Likewise.
28375 (vreinterpretq_f64_u8): Likewise.
28376 (vreinterpretq_f64_u16): Likewise.
28377 (vreinterpretq_f64_u32): Likewise.
28378 (vreinterpretq_f64_u64): Likewise.
28379 (vreinterpret_s64_f64): Likewise.
28380 (vreinterpretq_s64_f64): Likewise.
28381 (vreinterpret_u64_f64): Likewise.
28382 (vreinterpretq_u64_f64): Likewise.
28383 (vreinterpret_s8_f64): Likewise.
28384 (vreinterpretq_s8_f64): Likewise.
28385 (vreinterpret_s16_f64): Likewise.
28386 (vreinterpretq_s16_f64): Likewise.
28387 (vreinterpret_s32_f64): Likewise.
28388 (vreinterpretq_s32_f64): Likewise.
28389 (vreinterpret_u8_f64): Likewise.
28390 (vreinterpretq_u8_f64): Likewise.
28391 (vreinterpret_u16_f64): Likewise.
28392 (vreinterpretq_u16_f64): Likewise.
28393 (vreinterpret_u32_f64): Likewise.
28394 (vreinterpretq_u32_f64): Likewise.
28395
28396 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28397
28398 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28399 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
28400 (vreinterpret_p8_s8): Likewise.
28401 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
28402 (vreinterpret_p8_s16): Likewise.
28403 (vreinterpret_p8_s32): Likewise.
28404 (vreinterpret_p8_s64): Likewise.
28405 (vreinterpret_p8_f32): Likewise.
28406 (vreinterpret_p8_u8): Likewise.
28407 (vreinterpret_p8_u16): Likewise.
28408 (vreinterpret_p8_u32): Likewise.
28409 (vreinterpret_p8_u64): Likewise.
28410 (vreinterpret_p8_p16): Likewise.
28411 (vreinterpretq_p8_s8): Likewise.
28412 (vreinterpretq_p8_s16): Likewise.
28413 (vreinterpretq_p8_s32): Likewise.
28414 (vreinterpretq_p8_s64): Likewise.
28415 (vreinterpretq_p8_f32): Likewise.
28416 (vreinterpretq_p8_u8): Likewise.
28417 (vreinterpretq_p8_u16): Likewise.
28418 (vreinterpretq_p8_u32): Likewise.
28419 (vreinterpretq_p8_u64): Likewise.
28420 (vreinterpretq_p8_p16): Likewise.
28421 (vreinterpret_p16_s8): Likewise.
28422 (vreinterpret_p16_s16): Likewise.
28423 (vreinterpret_p16_s32): Likewise.
28424 (vreinterpret_p16_s64): Likewise.
28425 (vreinterpret_p16_f32): Likewise.
28426 (vreinterpret_p16_u8): Likewise.
28427 (vreinterpret_p16_u16): Likewise.
28428 (vreinterpret_p16_u32): Likewise.
28429 (vreinterpret_p16_u64): Likewise.
28430 (vreinterpret_p16_p8): Likewise.
28431 (vreinterpretq_p16_s8): Likewise.
28432 (vreinterpretq_p16_s16): Likewise.
28433 (vreinterpretq_p16_s32): Likewise.
28434 (vreinterpretq_p16_s64): Likewise.
28435 (vreinterpretq_p16_f32): Likewise.
28436 (vreinterpretq_p16_u8): Likewise.
28437 (vreinterpretq_p16_u16): Likewise.
28438 (vreinterpretq_p16_u32): Likewise.
28439 (vreinterpretq_p16_u64): Likewise.
28440 (vreinterpretq_p16_p8): Likewise.
28441 (vreinterpret_f32_s8): Likewise.
28442 (vreinterpret_f32_s16): Likewise.
28443 (vreinterpret_f32_s32): Likewise.
28444 (vreinterpret_f32_s64): Likewise.
28445 (vreinterpret_f32_u8): Likewise.
28446 (vreinterpret_f32_u16): Likewise.
28447 (vreinterpret_f32_u32): Likewise.
28448 (vreinterpret_f32_u64): Likewise.
28449 (vreinterpret_f32_p8): Likewise.
28450 (vreinterpret_f32_p16): Likewise.
28451 (vreinterpretq_f32_s8): Likewise.
28452 (vreinterpretq_f32_s16): Likewise.
28453 (vreinterpretq_f32_s32): Likewise.
28454 (vreinterpretq_f32_s64): Likewise.
28455 (vreinterpretq_f32_u8): Likewise.
28456 (vreinterpretq_f32_u16): Likewise.
28457 (vreinterpretq_f32_u32): Likewise.
28458 (vreinterpretq_f32_u64): Likewise.
28459 (vreinterpretq_f32_p8): Likewise.
28460 (vreinterpretq_f32_p16): Likewise.
28461 (vreinterpret_s64_s8): Likewise.
28462 (vreinterpret_s64_s16): Likewise.
28463 (vreinterpret_s64_s32): Likewise.
28464 (vreinterpret_s64_f32): Likewise.
28465 (vreinterpret_s64_u8): Likewise.
28466 (vreinterpret_s64_u16): Likewise.
28467 (vreinterpret_s64_u32): Likewise.
28468 (vreinterpret_s64_u64): Likewise.
28469 (vreinterpret_s64_p8): Likewise.
28470 (vreinterpret_s64_p16): Likewise.
28471 (vreinterpretq_s64_s8): Likewise.
28472 (vreinterpretq_s64_s16): Likewise.
28473 (vreinterpretq_s64_s32): Likewise.
28474 (vreinterpretq_s64_f32): Likewise.
28475 (vreinterpretq_s64_u8): Likewise.
28476 (vreinterpretq_s64_u16): Likewise.
28477 (vreinterpretq_s64_u32): Likewise.
28478 (vreinterpretq_s64_u64): Likewise.
28479 (vreinterpretq_s64_p8): Likewise.
28480 (vreinterpretq_s64_p16): Likewise.
28481 (vreinterpret_u64_s8): Likewise.
28482 (vreinterpret_u64_s16): Likewise.
28483 (vreinterpret_u64_s32): Likewise.
28484 (vreinterpret_u64_s64): Likewise.
28485 (vreinterpret_u64_f32): Likewise.
28486 (vreinterpret_u64_u8): Likewise.
28487 (vreinterpret_u64_u16): Likewise.
28488 (vreinterpret_u64_u32): Likewise.
28489 (vreinterpret_u64_p8): Likewise.
28490 (vreinterpret_u64_p16): Likewise.
28491 (vreinterpretq_u64_s8): Likewise.
28492 (vreinterpretq_u64_s16): Likewise.
28493 (vreinterpretq_u64_s32): Likewise.
28494 (vreinterpretq_u64_s64): Likewise.
28495 (vreinterpretq_u64_f32): Likewise.
28496 (vreinterpretq_u64_u8): Likewise.
28497 (vreinterpretq_u64_u16): Likewise.
28498 (vreinterpretq_u64_u32): Likewise.
28499 (vreinterpretq_u64_p8): Likewise.
28500 (vreinterpretq_u64_p16): Likewise.
28501 (vreinterpret_s8_s16): Likewise.
28502 (vreinterpret_s8_s32): Likewise.
28503 (vreinterpret_s8_s64): Likewise.
28504 (vreinterpret_s8_f32): Likewise.
28505 (vreinterpret_s8_u8): Likewise.
28506 (vreinterpret_s8_u16): Likewise.
28507 (vreinterpret_s8_u32): Likewise.
28508 (vreinterpret_s8_u64): Likewise.
28509 (vreinterpret_s8_p8): Likewise.
28510 (vreinterpret_s8_p16): Likewise.
28511 (vreinterpretq_s8_s16): Likewise.
28512 (vreinterpretq_s8_s32): Likewise.
28513 (vreinterpretq_s8_s64): Likewise.
28514 (vreinterpretq_s8_f32): Likewise.
28515 (vreinterpretq_s8_u8): Likewise.
28516 (vreinterpretq_s8_u16): Likewise.
28517 (vreinterpretq_s8_u32): Likewise.
28518 (vreinterpretq_s8_u64): Likewise.
28519 (vreinterpretq_s8_p8): Likewise.
28520 (vreinterpretq_s8_p16): Likewise.
28521 (vreinterpret_s16_s8): Likewise.
28522 (vreinterpret_s16_s32): Likewise.
28523 (vreinterpret_s16_s64): Likewise.
28524 (vreinterpret_s16_f32): Likewise.
28525 (vreinterpret_s16_u8): Likewise.
28526 (vreinterpret_s16_u16): Likewise.
28527 (vreinterpret_s16_u32): Likewise.
28528 (vreinterpret_s16_u64): Likewise.
28529 (vreinterpret_s16_p8): Likewise.
28530 (vreinterpret_s16_p16): Likewise.
28531 (vreinterpretq_s16_s8): Likewise.
28532 (vreinterpretq_s16_s32): Likewise.
28533 (vreinterpretq_s16_s64): Likewise.
28534 (vreinterpretq_s16_f32): Likewise.
28535 (vreinterpretq_s16_u8): Likewise.
28536 (vreinterpretq_s16_u16): Likewise.
28537 (vreinterpretq_s16_u32): Likewise.
28538 (vreinterpretq_s16_u64): Likewise.
28539 (vreinterpretq_s16_p8): Likewise.
28540 (vreinterpretq_s16_p16): Likewise.
28541 (vreinterpret_s32_s8): Likewise.
28542 (vreinterpret_s32_s16): Likewise.
28543 (vreinterpret_s32_s64): Likewise.
28544 (vreinterpret_s32_f32): Likewise.
28545 (vreinterpret_s32_u8): Likewise.
28546 (vreinterpret_s32_u16): Likewise.
28547 (vreinterpret_s32_u32): Likewise.
28548 (vreinterpret_s32_u64): Likewise.
28549 (vreinterpret_s32_p8): Likewise.
28550 (vreinterpret_s32_p16): Likewise.
28551 (vreinterpretq_s32_s8): Likewise.
28552 (vreinterpretq_s32_s16): Likewise.
28553 (vreinterpretq_s32_s64): Likewise.
28554 (vreinterpretq_s32_f32): Likewise.
28555 (vreinterpretq_s32_u8): Likewise.
28556 (vreinterpretq_s32_u16): Likewise.
28557 (vreinterpretq_s32_u32): Likewise.
28558 (vreinterpretq_s32_u64): Likewise.
28559 (vreinterpretq_s32_p8): Likewise.
28560 (vreinterpretq_s32_p16): Likewise.
28561 (vreinterpret_u8_s8): Likewise.
28562 (vreinterpret_u8_s16): Likewise.
28563 (vreinterpret_u8_s32): Likewise.
28564 (vreinterpret_u8_s64): Likewise.
28565 (vreinterpret_u8_f32): Likewise.
28566 (vreinterpret_u8_u16): Likewise.
28567 (vreinterpret_u8_u32): Likewise.
28568 (vreinterpret_u8_u64): Likewise.
28569 (vreinterpret_u8_p8): Likewise.
28570 (vreinterpret_u8_p16): Likewise.
28571 (vreinterpretq_u8_s8): Likewise.
28572 (vreinterpretq_u8_s16): Likewise.
28573 (vreinterpretq_u8_s32): Likewise.
28574 (vreinterpretq_u8_s64): Likewise.
28575 (vreinterpretq_u8_f32): Likewise.
28576 (vreinterpretq_u8_u16): Likewise.
28577 (vreinterpretq_u8_u32): Likewise.
28578 (vreinterpretq_u8_u64): Likewise.
28579 (vreinterpretq_u8_p8): Likewise.
28580 (vreinterpretq_u8_p16): Likewise.
28581 (vreinterpret_u16_s8): Likewise.
28582 (vreinterpret_u16_s16): Likewise.
28583 (vreinterpret_u16_s32): Likewise.
28584 (vreinterpret_u16_s64): Likewise.
28585 (vreinterpret_u16_f32): Likewise.
28586 (vreinterpret_u16_u8): Likewise.
28587 (vreinterpret_u16_u32): Likewise.
28588 (vreinterpret_u16_u64): Likewise.
28589 (vreinterpret_u16_p8): Likewise.
28590 (vreinterpret_u16_p16): Likewise.
28591 (vreinterpretq_u16_s8): Likewise.
28592 (vreinterpretq_u16_s16): Likewise.
28593 (vreinterpretq_u16_s32): Likewise.
28594 (vreinterpretq_u16_s64): Likewise.
28595 (vreinterpretq_u16_f32): Likewise.
28596 (vreinterpretq_u16_u8): Likewise.
28597 (vreinterpretq_u16_u32): Likewise.
28598 (vreinterpretq_u16_u64): Likewise.
28599 (vreinterpretq_u16_p8): Likewise.
28600 (vreinterpretq_u16_p16): Likewise.
28601 (vreinterpret_u32_s8): Likewise.
28602 (vreinterpret_u32_s16): Likewise.
28603 (vreinterpret_u32_s32): Likewise.
28604 (vreinterpret_u32_s64): Likewise.
28605 (vreinterpret_u32_f32): Likewise.
28606 (vreinterpret_u32_u8): Likewise.
28607 (vreinterpret_u32_u16): Likewise.
28608 (vreinterpret_u32_u64): Likewise.
28609 (vreinterpret_u32_p8): Likewise.
28610 (vreinterpret_u32_p16): Likewise.
28611 (vreinterpretq_u32_s8): Likewise.
28612 (vreinterpretq_u32_s16): Likewise.
28613 (vreinterpretq_u32_s32): Likewise.
28614 (vreinterpretq_u32_s64): Likewise.
28615 (vreinterpretq_u32_f32): Likewise.
28616 (vreinterpretq_u32_u8): Likewise.
28617 (vreinterpretq_u32_u16): Likewise.
28618 (vreinterpretq_u32_u64): Likewise.
28619 (vreinterpretq_u32_p8): Likewise.
28620 (vreinterpretq_u32_p16): Likewise.
28621
28622 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28623
28624 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28625 Pattern extended.
28626 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28627 (sqabs): Likewise.
28628 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28629 (vqnegd_s64): Likewise.
28630 (vqabs_s64): Likewise.
28631 (vqabsd_s64): Likewise.
28632
28633 2014-04-22 Richard Henderson <rth@redhat.com>
28634
28635 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28636 computation to the top of the loop.
28637
28638 2014-04-22 Renlin <renlin.li@arm.com>
28639 Jiong Wang <jiong.wang@arm.com>
28640
28641 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28642 * config/aarch64/aarch64.c (aarch64_layout_frame)
28643 (aarch64_initial_elimination_offset): Likewise.
28644
28645 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
28646
28647 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28648 Fix indentation.
28649
28650 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
28651
28652 * machmode.h (bitwise_mode_for_mode): Declare.
28653 * stor-layout.h (bitwise_type_for_mode): Likewise.
28654 * stor-layout.c (bitwise_mode_for_mode): New function.
28655 (bitwise_type_for_mode): Likewise.
28656 * builtins.c (fold_builtin_memory_op): Use it instead of
28657 int_mode_for_mode and build_nonstandard_integer_type.
28658
28659 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28660
28661 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
28662 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
28663 (*-*-solaris2*): Simplify.
28664 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
28665 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
28666 *-*-solaris2.9* handling.
28667
28668 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
28669 as bug.
28670 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
28671 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
28672 handling, simplify.
28673 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28674 * configure: Regenerate.
28675
28676 * config/i386/sol2-9.h: Remove.
28677
28678 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28679 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28680 Remove Solaris 9 references.
28681
28682 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
28683
28684 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28685 (floatuns<GPI:mode><GPF:mode>2): Remove.
28686 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28687 and floatuns conversions.
28688 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28689 and floatuns conversions.
28690 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28691 (w1,w2): New mode attributes for inequal width conversions.
28692
28693 2014-04-22 Renlin Li <Renlin.Li@arm.com>
28694
28695 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28696 the output asm format.
28697
28698 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28699
28700 * config/aarch64/aarch64-simd.md
28701 (aarch64_cm<optab>di): Always split.
28702 (*aarch64_cm<optab>di): New.
28703 (aarch64_cmtstdi): Always split.
28704 (*aarch64_cmtstdi): New.
28705
28706 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28707
28708 PR tree-optimization/60823
28709 * omp-low.c (ipa_simd_modify_function_body): Go through
28710 all SSA_NAMEs and for those refering to vector arguments
28711 which are going to be replaced adjust SSA_NAME_VAR and,
28712 if it is a default definition, change it into a non-default
28713 definition assigned at the beginning of function from new_decl.
28714 (ipa_simd_modify_stmt_ops): Rewritten.
28715 * tree-dfa.c (set_ssa_default_def): When removing default def,
28716 check for NULL loc instead of NULL *loc.
28717
28718 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28719
28720 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
28721 restrictions on core registers for DImode values in Thumb2.
28722
28723 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28724
28725 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
28726 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
28727
28728 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28729
28730 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
28731 (*iordi_notzesidi_di): Likewise.
28732 (*iordi_notsesidi_di): Likewise.
28733
28734 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28735
28736 * config/arm/arm-protos.h (tune_params): New struct members.
28737 * config/arm/arm.c: Initialise tune_params per processor.
28738 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
28739 for speed, based on new tune_params.
28740
28741 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28742
28743 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
28744 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
28745 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
28746 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
28747 * config/aarch64/arm_neon.h (vrnd_f64): Added.
28748 (vrnda_f64): Likewise.
28749 (vrndi_f64): Likewise.
28750 (vrndm_f64): Likewise.
28751 (vrndn_f64): Likewise.
28752 (vrndp_f64): Likewise.
28753 (vrndx_f64): Likewise.
28754
28755 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28756
28757 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
28758 GET_MODE_SIZE argument is enum machine_mode.
28759
28760 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28761
28762 PR target/60910
28763 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
28764 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
28765
28766 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
28767
28768 PR middle-end/60281
28769 * asan.c (asan_emit_stack_protection): Force the base to align to
28770 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
28771 appropriate bits if STRICT_ALIGNMENT.
28772 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
28773 when asan is on.
28774 (expand_used_vars): Leave a space in the stack frame for alignment
28775 if STRICT_ALIGNMENT.
28776
28777 2014-04-21 David Malcolm <dmalcolm@redhat.com>
28778
28779 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
28780 than a gimple.
28781 (gimple_store_p): Likewise.
28782 (gimple_assign_load_p): Likewise.
28783 (gimple_assign_cast_p): Likewise.
28784 (gimple_clobber_p): Likewise.
28785
28786 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
28787 rather than a gimple.
28788 (gimple_assign_cast_p): Likewise.
28789
28790 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28791
28792 PR target/60735
28793 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
28794 If mode is DDmode and TARGET_E500_DOUBLE allow move.
28795
28796 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
28797 more debug information for E500 if -mdebug=reg.
28798
28799 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
28800
28801 PR target/60909
28802 * config/i386/i386.c (ix86_expand_builtin)
28803 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
28804 register for target RTX.
28805 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
28806
28807 2014-04-18 Cong Hou <congh@google.com>
28808
28809 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
28810 the widen-mult pattern by handling two operands with different sizes,
28811 and operands whose size is smaller than half of the result type.
28812
28813 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
28814
28815 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
28816 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
28817 (do_estimate_edge_time): Compute it.
28818 * ipa-inline.c (want_inline_small_function_p): Bypass
28819 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
28820
28821 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
28822
28823 * ipa-inline.c (spec_rem): New static variable.
28824 (dump_overall_stats): New function.
28825 (dump_inline_stats): New function.
28826
28827 2014-04-18 Richard Henderson <rth@redhat.com>
28828
28829 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
28830 to GET_MODE_SIZE, not a reg_class_t.
28831
28832 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28833
28834 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
28835 (vsx_xxmrglw_<mode>): Likewise.
28836
28837 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
28838
28839 PR target/60876
28840 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
28841 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
28842 (rs6000_init_hard_regno_mode_ok): Likewise.
28843
28844 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
28845
28846 * ipa-inline.c (inline_small_functions): Account only non-cold
28847 functions.
28848 * doc/invoke.texi (inline-unit-growth): Update documentation.
28849
28850 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
28851
28852 * config/rs6000/rs6000.md (addti3, subti3): New.
28853
28854 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
28855
28856 PR target/60863
28857 * config/i386/i386.c (ix86_expand_clear): Remove outdated
28858 comment. Check optimize_insn_for_size_p instead of
28859 optimize_insn_for_speed_p.
28860
28861 2014-04-17 Martin Jambor <mjambor@suse.cz>
28862
28863 * gimple-iterator.c (gsi_start_edge): New function.
28864 * gimple-iterator.h (gsi_start_edge): Declare.
28865 * tree-sra.c (single_non_eh_succ): New function.
28866 (disqualify_ops_if_throwing_stmt): Renamed to
28867 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
28868 having one non-EH successor BB.
28869 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
28870 generate loads into replacements.
28871 (sra_modify_assign): Likewise and and also use the simple path for
28872 such statements.
28873 (sra_modify_function_body): Commit statements on edges.
28874
28875 2014-04-17 Richard Biener <rguenther@suse.de>
28876
28877 PR middle-end/60849
28878 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
28879 comparison results and add clarifying comment.
28880
28881 2014-04-17 Jakub Jelinek <jakub@redhat.com>
28882
28883 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
28884 (blank_mode): Initialize it.
28885 (emit_mode_size_inline, emit_mode_nunits_inline,
28886 emit_mode_inner_inline): New functions.
28887 (emit_insn_modes_h): Call them and surround their output with
28888 #if GCC_VERSION >= 4001 ... #endif.
28889 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
28890 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
28891 mode_* arrays if the argument is __builtin_constant_p.
28892 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
28893 is enum machine_mode.
28894
28895 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28896
28897 * passes.c (opt_pass::execute): Adjust.
28898 (pass_manager::execute_pass_mode_switching): Likewise.
28899 (early_local_passes::execute): Likewise.
28900 (execute_one_pass): Pass cfun to the pass's execute method.
28901 * tree-pass.h (opt_pass::execute): Add function * argument.
28902 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28903 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28904 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28905 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28906 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28907 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
28908 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
28909 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28910 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28911 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
28912 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
28913 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
28914 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
28915 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
28916 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28917 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28918 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28919 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
28920 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
28921 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28922 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28923 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28924 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28925 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28926 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28927 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28928 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28929 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28930 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28931 Adjust.
28932
28933 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28934
28935 * passes.c (opt_pass::gate): Take function * argument.
28936 (gate_all_early_local_passes): Merge into
28937 (early_local_passes::gate): this.
28938 (gate_all_early_optimizations): Merge into
28939 (all_early_optimizations::gate): this.
28940 (gate_all_optimizations): Mege into
28941 (all_optimizations::gate): this.
28942 (gate_all_optimizations_g): Merge into
28943 (all_optimizations_g::gate): this.
28944 (gate_rest_of_compilation): Mege into
28945 (rest_of_compilation::gate): this.
28946 (gate_postreload): Merge into
28947 (postreload::gate): this.
28948 (dump_one_pass): Pass cfun to the pass's gate method.
28949 (execute_ipa_summary_passes): Likewise.
28950 (execute_one_pass): Likewise.
28951 (ipa_write_summaries_2): Likewise.
28952 (ipa_write_optimization_summaries_1): Likewise.
28953 (ipa_read_summaries_1): Likewise.
28954 (ipa_read_optimization_summaries_1): Likewise.
28955 (execute_ipa_stmt_fixups): Likewise.
28956 * tree-pass.h (opt_pass::gate): Add function * argument.
28957 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
28958 combine-stack-adj.c, combine.c, compare-elim.c,
28959 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28960 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
28961 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
28962 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
28963 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28964 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28965 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28966 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
28967 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
28968 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
28969 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28970 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28971 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
28972 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28973 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28974 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28975 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28976 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28977 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28978 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28979 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28980 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28981 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
28982 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
28983 var-tracking.c, vtable-verify.c, web.c: Adjust.
28984
28985 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28986
28987 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
28988 * configure: Regenerate.
28989
28990 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28991
28992 * passes.c (dump_one_pass): don't check pass->has_gate.
28993 (execute_ipa_summary_passes): Likewise.
28994 (execute_one_pass): Likewise.
28995 (ipa_write_summaries_2): Likewise.
28996 (ipa_write_optimization_summaries_1): Likewise.
28997 (ipa_read_optimization_summaries_1): Likewise.
28998 (execute_ipa_stmt_fixups): Likewise.
28999 * tree-pass.h (pass_data::has_gate): Remove.
29000 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29001 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29002 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29003 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29004 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29005 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29006 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29007 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29008 gimple-low.c, gimple-ssa-isolate-paths.c,
29009 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29010 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29011 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29012 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29013 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29014 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29015 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29016 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29017 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29018 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29019 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29020 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29021 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29022 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29023 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29024 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29025 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29026 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29027 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29028 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29029 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29030 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29031 Adjust.
29032
29033 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29034
29035 * pass_manager.h (pass_manager::register_dump_files_1): Remove
29036 declaration.
29037 * passes.c (pass_manager::register_dump_files_1): Merge into
29038 (pass_manager::register_dump_files): this, and remove its handling of
29039 properties since the pass always has the properties anyway.
29040 (pass_manager::pass_manager): Adjust.
29041
29042 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29043
29044 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29045 * passes.c (pass_manager::register_dump_files_1): Remove dead code
29046 dealing with properties.
29047 (pass_manager::register_dump_files): Adjust.
29048
29049 2014-03-20 Mark Wielaard <mjw@redhat.com>
29050
29051 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29052 then represent the bound as normal constant value.
29053
29054 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29055
29056 PR target/60847
29057 Forward port from 4.8 branch
29058 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
29059
29060 * config/i386/bmiintrin.h (_blsi_u32): New.
29061 (_blsi_u64): Ditto.
29062 (_blsr_u32): Ditto.
29063 (_blsr_u64): Ditto.
29064 (_blsmsk_u32): Ditto.
29065 (_blsmsk_u64): Ditto.
29066 (_tzcnt_u32): Ditto.
29067 (_tzcnt_u64): Ditto.
29068
29069 2014-04-17 Kito Cheng <kito@0xlab.org>
29070
29071 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29072
29073 2014-04-17 Richard Biener <rguenther@suse.de>
29074
29075 PR middle-end/60849
29076 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29077 boolean results for comparisons.
29078
29079 2014-04-17 Richard Biener <rguenther@suse.de>
29080
29081 PR tree-optimization/60836
29082 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29083 initial PHI args to be gimple values.
29084
29085 2014-04-17 Richard Biener <rguenther@suse.de>
29086
29087 PR tree-optimization/60841
29088 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29089 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29090 of stmts to SLP build.
29091 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29092 (vect_analyze_slp): Likewise.
29093 (vect_analyze_slp_instance): Likewise.
29094 (vect_build_slp_tree): Limit overall SLP tree growth.
29095 * tree-vectorizer.h (vect_analyze_data_refs,
29096 vect_analyze_slp): Adjust prototypes.
29097
29098 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29099
29100 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29101 Silvermont.
29102
29103 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29104
29105 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29106 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29107 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29108 for TARGET_SLOW_PSHUFB
29109
29110 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29111
29112 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29113 * config/i386/i386.c (intel_cost): Ditto.
29114
29115 2014-04-17 Joey Ye <joey.ye@arm.com>
29116
29117 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29118
29119 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29120
29121 * opts.c (common_handle_option): Disable -fipa-reference coorectly
29122 with -fuse-profile.
29123
29124 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29125
29126 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29127 (type_all_derivations_known_p): New predicate.
29128 (type_all_ctors_visible_p): New predicate.
29129 (type_possibly_instantiated_p): New predicate.
29130 (get_odr_type): Compute all_derivations_known.
29131 (dump_odr_type): Dump the flag.
29132 (maybe_record_type): Cleanup.
29133 (record_target_from_binfo): Add bases_to_consider array;
29134 record bases for types w/o instances and skip CXX destructor.
29135 (possible_polymorphic_call_targets_1): Add bases_to_consider
29136 and consider_construction parameters; check if type may have instance.
29137 (get_polymorphic_call_info): Set maybe_in_construction to true
29138 when we know nothing.
29139 (record_targets_from_bases): Skip CXX destructors; they are
29140 never called for types in construction.
29141 (possible_polymorphic_call_targets): Do not record target when
29142 type may not have instance.
29143
29144 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29145
29146 PR ipa/60854
29147 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29148 external aliases alive, too.
29149
29150 2014-04-16 Andrew Pinski <apinski@cavium.com>
29151
29152 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29153 definition.
29154
29155 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29156
29157 * final.c (compute_alignments): Do not apply loop alignment to a block
29158 falling through to the exit.
29159
29160 2014-04-16 Catherine Moore <clm@codesourcery.com>
29161
29162 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29163 Adjust constraints for microMIPS store patterns.
29164
29165 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29166
29167 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29168
29169 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29170
29171 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29172 (append_use): Run at -O0.
29173 (append_vdef): Likewise.
29174 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
29175 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
29176
29177 2014-04-16 Jakub Jelinek <jakub@redhat.com>
29178
29179 PR tree-optimization/60844
29180 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
29181 (propagate_op_to_single_use, remove_visited_stmt_chain,
29182 linearize_expr, repropagate_negates, reassociate_bb): Use it
29183 instead of gsi_remove.
29184
29185 2014-04-16 Martin Jambor <mjambor@suse.cz>
29186
29187 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
29188 ipa_transforms_to_apply.
29189 (cgraph_function_versioning): Assert that old_node has empty
29190 ipa_transforms_to_apply.
29191 * trans-mem.c (ipa_tm_create_version): Likewise.
29192 * tree-inline.c (tree_function_versioning): Do not duplicate
29193 ipa_transforms_to_apply.
29194
29195 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29196
29197 PR target/60817
29198 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
29199 x86_64-*-* cases.
29200 Pass necessary as flags on 64-bit Solaris/x86.
29201 Use lowercase relocs for x86_64-*-*.
29202 * configure: Regenerate.
29203
29204 2014-04-15 Jan Hubicka <jh@suse.cz>
29205
29206 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
29207 (maybe_record_node, likely_target_p): Use it.
29208
29209 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29210
29211 PR target/60839
29212 Revert following patch
29213
29214 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29215
29216 PR target/60735
29217 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29218 software floating point or no floating point registers, do not
29219 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29220 in GPRs that occurs after we tested for GPRs that would never be
29221 true.
29222
29223 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29224 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29225 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29226 specifically allow DDmode, since that does not use the SPE SIMD
29227 instructions.
29228
29229 2014-03-21 Mark Wielaard <mjw@redhat.com>
29230
29231 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29232 as unsigned or int depending on type and value used.
29233
29234 2014-04-15 Richard Biener <rguenther@suse.de>
29235
29236 PR rtl-optimization/56965
29237 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29238 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29239 ... here.
29240 * alias.c (true_dependence_1): Do not call
29241 nonoverlapping_component_refs_p.
29242 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29243 nonoverlapping_component_refs_p.
29244 (indirect_refs_may_alias_p): Likewise.
29245
29246 2014-04-15 Teresa Johnson <tejohnson@google.com>
29247
29248 * cfg.c (dump_bb_info): Fix flags check.
29249 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29250
29251 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29252
29253 PR rtl-optimization/60663
29254 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29255 avoid 0 cost.
29256
29257 2014-04-15 Richard Biener <rguenther@suse.de>
29258
29259 * lto-streamer.h (LTO_major_version): Bump to 4.
29260
29261 2014-04-15 Richard Biener <rguenther@suse.de>
29262
29263 * common.opt (lto_partition_model): New enum.
29264 (flto-partition=): Merge separate options with a single with argument,
29265 add -flto-partition=one support.
29266 * flag-types.h (enum lto_partition_model): Declare.
29267 * opts.c (finish_options): Remove duplicate -flto-partition=
29268 option check.
29269 * lto-wrapper.c (run_gcc): Adjust.
29270
29271 2014-04-15 Richard Biener <rguenther@suse.de>
29272
29273 * alias.c (ncr_compar): New function.
29274 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29275
29276 2014-04-15 Richard Biener <rguenther@suse.de>
29277
29278 * alias.c (record_component_aliases): Do not walk BINFOs.
29279
29280 2014-04-15 Richard Biener <rguenther@suse.de>
29281
29282 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29283 Add struct function argument and adjust.
29284 (find_func_aliases_for_call): Likewise.
29285 (find_func_aliases): Likewise.
29286 (find_func_clobbers): Likewise.
29287 (intra_create_variable_infos): Likewise.
29288 (compute_points_to_sets): Likewise.
29289 (ipa_pta_execute): Adjust. Do not push/pop cfun.
29290
29291 2014-04-15 Richard Biener <rguenther@suse.de>
29292
29293 * tree.c (iterative_hash_expr): Use enum tree_code_class
29294 to store TREE_CODE_CLASS.
29295 (tree_block): Likewise.
29296 (tree_set_block): Likewise.
29297 * tree.h (fold_build_pointer_plus_loc): Use
29298 convert_to_ptrofftype_loc.
29299
29300 2014-04-15 Jakub Jelinek <jakub@redhat.com>
29301
29302 PR plugins/59335
29303 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29304 added in 4.9.
29305
29306 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
29307
29308 * cfgloop.h (struct loop): Move force_vectorize down.
29309 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
29310 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
29311 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
29312 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
29313 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
29314 * tree-core.h (enum annot_expr_kind): Add new kind values.
29315 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
29316 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
29317 kinds.
29318 * tree.def (ANNOTATE_EXPR): Tweak comment.
29319
29320 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29321
29322 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
29323 cxa_pure_virtual).
29324
29325 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
29326
29327 * tree.h (TYPE_IDENTIFIER): Declare.
29328 * tree.c (subrange_type_for_debug_p): Use it.
29329 * godump.c (go_format_type): Likewise.
29330 * dwarf2out.c (is_cxx_auto, modified_type_die,
29331 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
29332 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
29333
29334 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29335
29336 PR lto/60820
29337 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
29338
29339 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
29340
29341 * config/i386/i386.c (examine_argument): Return bool. Return true if
29342 parameter should be passed in memory.
29343 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
29344 (construct_container): Update calls to examine_argument.
29345 (function_arg_advance_64): Ditto.
29346 (return_in_memory_32): Merge with ix86_return_in_memory.
29347 (return_in_memory_64): Ditto.
29348 (return_in_memory_ms_64): Ditto.
29349
29350 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29351
29352 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
29353 * coverage.c (coverage_compute_profile_id): Handle externally visible
29354 symbols.
29355
29356 2014-04-14 Martin Jambor <mjambor@suse.cz>
29357
29358 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
29359 DECL_DISREGARD_INLINE_LIMITS functions.
29360
29361 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29362
29363 PR target/60827
29364 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
29365
29366 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29367
29368 PR target/60827
29369 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
29370 optimize_insn_for_speed_p instead of
29371 optimize_function_for_speed_p.
29372
29373 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
29374
29375 * doc/invoke.texi (free): Document AArch64.
29376
29377 2014-04-14 Richard Biener <rguenther@suse.de>
29378
29379 PR tree-optimization/60042
29380 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
29381 (insert_into_preds_of_block): Do not prevent PHI insertion
29382 for REFERENCE exprs here ...
29383 (eliminate_dom_walker::before_dom_children): ... but prevent
29384 their use here under similar conditions when applied to the
29385 IL after PRE optimizations.
29386
29387 2014-04-14 Richard Biener <rguenther@suse.de>
29388
29389 * passes.def: Move early points-to after early SRA.
29390
29391 2014-04-14 Richard Biener <rguenther@suse.de>
29392
29393 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
29394 check for which sign-changes we allow when forwarding
29395 a converted value into a switch.
29396
29397 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29398
29399 * stor-layout.c (place_field): Finalize non-constant offset for the
29400 field, if any.
29401
29402 2014-04-14 Richard Biener <rguenther@suse.de>
29403
29404 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
29405 as argument.
29406 (expand_switch_using_bit_tests_p): Likewise.
29407 (process_switch): Compute and pass on speed_p based on the
29408 switch stmt.
29409 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
29410 optimize_bb_for_speed_p.
29411
29412 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29413
29414 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
29415 * function.h (struct function): Rename has_force_vect_loops into
29416 has_force_vectorize_loops.
29417 * lto-streamer-in.c (input_cfg): Adjust for renaming.
29418 (input_struct_function_base): Likewise.
29419 * lto-streamer-out.c (output_cfg): Likewise.
29420 (output_struct_function_base): Likewise.
29421 * omp-low.c (expand_omp_simd): Likewise.
29422 * tree-cfg.c (move_sese_region_to_fn): Likewise.
29423 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
29424 (version_loop_for_if_conversion): Likewise.
29425 (tree_if_conversion): Likewise.
29426 (main_tree_if_conversion): Likewise.
29427 (gate_tree_if_conversion): Likewise.
29428 * tree-inline.c (copy_loops): Likewise.
29429 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
29430 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
29431 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
29432 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
29433 * tree-vectorizer.c (vectorize_loops): Likewise.
29434 * tree-vectorizer.h (unlimited_cost_model): Likewise.
29435
29436 2014-04-14 Richard Biener <rguenther@suse.de>
29437
29438 PR lto/60720
29439 * lto-streamer-out.c (wrap_refs): New function.
29440 (lto_output): Wrap symbol references in global initializes in
29441 type-preserving MEM_REFs.
29442
29443 2014-04-14 Christian Bruel <christian.bruel@st.com>
29444
29445 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
29446
29447 2014-04-14 Christian Bruel <christian.bruel@st.com>
29448
29449 * config/sh/sh.md (setmemqi): New expand pattern.
29450 * config/sh/sh.h (CLEAR_RATIO): Define.
29451 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
29452 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
29453
29454 2014-04-14 Richard Biener <rguenther@suse.de>
29455
29456 PR middle-end/55022
29457 * fold-const.c (negate_expr_p): Don't negate directional rounding
29458 division.
29459 (fold_negate_expr): Likewise.
29460
29461 2014-04-14 Richard Biener <rguenther@suse.de>
29462
29463 PR tree-optimization/59817
29464 PR tree-optimization/60453
29465 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
29466 recursion to catch all CHRECs in the scalar evolution and restrict
29467 the predicate for the remains appropriately.
29468
29469 2014-04-12 Catherine Moore <clm@codesourcery.com>
29470
29471 * config/mips/constraints.md: Add new register constraint "kb".
29472 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
29473 (*movhi_internal): Likewise.
29474 (*movqi_internal): Likewise.
29475 * config/mips/mips.h (M16_STORE_REGS): New register class.
29476 (REG_CLASS_NAMES): Add M16_STORE_REGS.
29477 (REG_CLASS_CONTENTS): Likewise.
29478 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
29479
29480 2014-04-11 Tobias Burnus <burnus@net-b.de>
29481
29482 PR c/60194
29483 * doc/invoke.texi (-Wformat-signedness): Document it.
29484 (Wformat=2): Mention that this enables -Wformat-signedness.
29485
29486 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29487
29488 * common/config/epiphany/epiphany-common.c
29489 (epiphany_option_optimization_table): Enable section anchors by
29490 default at -O1 or higher.
29491 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
29492 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
29493 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
29494 carries no extra cost.
29495 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
29496 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
29497 * config/epiphany/predicates.md (memclob_operand): New predicate.
29498 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
29499 Use memclob_operand predicate and X constraint for operand 3.
29500
29501 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29502
29503 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
29504 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
29505 its operands.
29506
29507 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29508
29509 PR rtl-optimization/60651
29510 * mode-switching.c (optimize_mode_switching): Make sure to emit
29511 sets of a lower numbered entity before sets of a higher numbered
29512 entity to a mode of the same or lower priority.
29513 When creating a seginfo for a basic block that starts with a code
29514 label, move the insertion point past the code label.
29515 (new_seginfo): Document and enforce requirement that
29516 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
29517 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
29518 * doc/tm.texi: Regenerate.
29519
29520 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
29521
29522 PR target/60811
29523 * config/arc/arc.c (arc_save_restore): Fix assert typo.
29524
29525 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29526
29527 * BASE-VER: Set to 4.10.0.
29528
29529 2014-04-11 Tobias Burnus <burnus@net-b.de>
29530
29531 PR other/59055
29532 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
29533 * doc/gcc.texi (Service): Update description in the @menu
29534 * doc/invoke.texi (Option Summary): Remove misplaced and
29535 duplicated @menu.
29536
29537 2014-04-11 Steve Ellcey <sellcey@mips.com>
29538 Jakub Jelinek <jakub@redhat.com>
29539
29540 PR middle-end/60556
29541 * expr.c (convert_move): Use emit_store_flag_force instead of
29542 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
29543 argument to it.
29544
29545 2014-04-11 Richard Biener <rguenther@suse.de>
29546
29547 PR middle-end/60797
29548 * varasm.c (assemble_alias): Avoid endless error reporting
29549 recursion by setting TREE_ASM_WRITTEN.
29550
29551 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29552
29553 * config/s390/s390.md: Add a splitter for NOT rtx.
29554
29555 2014-04-11 Jakub Jelinek <jakub@redhat.com>
29556
29557 PR rtl-optimization/60663
29558 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29559
29560 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
29561 Jakub Jelinek <jakub@redhat.com>
29562
29563 PR lto/60567
29564 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29565 flag from decl_node to node.
29566
29567 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29568
29569 PR debug/60655
29570 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29571 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29572 ameliorating the cases where it can be.
29573
29574 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
29575
29576 Revert
29577 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29578
29579 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29580 (loadsync_<mode>): Change mode.
29581 (load_quadpti, store_quadpti): New.
29582 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29583 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29584 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29585
29586 2014-04-09 Cong Hou <congh@google.com>
29587
29588 PR testsuite/60773
29589 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29590 documentation.
29591
29592 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29593
29594 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29595 instead of vnor to exploit possible fusion opportunity in the
29596 future.
29597 (altivec_expand_vec_perm_const_le): Likewise.
29598
29599 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29600
29601 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29602 (loadsync_<mode>): Change mode.
29603 (load_quadpti, store_quadpti): New.
29604 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29605 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29606
29607 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
29608
29609 PR target/60763
29610 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29611 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29612 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29613
29614 2014-04-08 Richard Biener <rguenther@suse.de>
29615
29616 PR middle-end/60706
29617 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29618 a 64bit widest int print double-int similar to on HWI64 hosts.
29619
29620 2014-04-08 Richard Biener <rguenther@suse.de>
29621
29622 PR tree-optimization/60785
29623 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29624 default defs properly.
29625
29626 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
29627
29628 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29629 (Weffc++): Likewise.
29630
29631 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
29632
29633 * ipa-devirt.c (maybe_record_node): When node is not recorded,
29634 set completep to false rather than true.
29635
29636 2014-04-07 Douglas B Rupp <rupp@adacore.com>
29637
29638 PR target/60504
29639 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29640 ARM_TARGET2_DWARF_FORMAT.
29641
29642 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
29643
29644 PR target/60609
29645 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29646 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29647 ADDR_DIFF_VEC.
29648
29649 2014-04-07 Richard Biener <rguenther@suse.de>
29650
29651 PR tree-optimization/60766
29652 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29653 (may_eliminate_iv): Convert cand_value_at result to desired type.
29654
29655 2014-04-07 Jason Merrill <jason@redhat.com>
29656
29657 PR c++/60731
29658 * common.opt (-fno-gnu-unique): Add.
29659 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
29660
29661 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29662
29663 * haifa-sched.c: Fix outdated function reference and minor
29664 grammar errors in introductory comment.
29665
29666 2014-04-07 Richard Biener <rguenther@suse.de>
29667
29668 PR middle-end/60750
29669 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
29670 for noreturn calls.
29671 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
29672
29673 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
29674
29675 PR debug/55794
29676 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29677 size accounting for thunks.
29678 (pa_asm_output_mi_thunk): Use final_start_function() and
29679 final_end_function() to output function start and end directives.
29680
29681 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29682
29683 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29684 device specific ISA/ feature information. Remove short_sp and
29685 errata_skip ds. Add avr_device_specific_features enum to have device
29686 specific info.
29687 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29688 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29689 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29690 updated device specific info.
29691 * config/avr/avr-mcus.def: Merge device specific details to
29692 dev_attribute field.
29693 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29694 errata_skip.
29695 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29696 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29697 assembler if RMW isa supported by current device.
29698 * config/avr/genmultilib.awk: Update as device info structure changed.
29699 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29700
29701 2014-04-04 Cong Hou <congh@google.com>
29702
29703 PR tree-optimization/60656
29704 * tree-vect-stmts.c (supportable_widening_operation):
29705 Fix a bug that elements in a vector with vect_used_by_reduction
29706 property are incorrectly reordered when the operation on it is not
29707 consistant with the one in reduction operation.
29708
29709 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
29710
29711 PR rtl-optimization/60155
29712 * gcse.c (record_set_data): New function.
29713 (single_set_gcse): New function.
29714 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
29715 (hoist_code): Likewise.
29716 (get_pressure_class_and_nregs): Likewise.
29717
29718 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
29719
29720 * explow.c (probe_stack_range): Emit a final optimization blockage.
29721
29722 2014-04-04 Anthony Green <green@moxielogic.com>
29723
29724 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
29725 typos.
29726
29727 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
29728
29729 PR ipa/59626
29730 * lto-cgraph.c (input_overwrite_node): Check that partitioning
29731 flags are set only during streaming.
29732 * ipa.c (process_references, walk_polymorphic_call_targets,
29733 symtab_remove_unreachable_nodes): Drop bodies of always inline
29734 after early inlining.
29735 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
29736
29737 2014-04-04 Jakub Jelinek <jakub@redhat.com>
29738 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29739
29740 PR debug/60655
29741 * dwarf2out.c (const_ok_for_output_1): Reject expressions
29742 containing a NOT.
29743
29744 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29745
29746 PR bootstrap/60743
29747 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
29748 duration.
29749 (cortex_a53_fdivd): Likewise.
29750
29751 2014-04-04 Martin Jambor <mjambor@suse.cz>
29752
29753 PR ipa/60640
29754 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
29755 Adjust all callers.
29756 * cgraph.c (clone_of_p): Also return true if thunks match.
29757 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
29758 cgraph_function_or_thunk_node and an obsolete comment.
29759 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
29760 file.
29761 (build_function_decl_skip_args): Likewise.
29762 (set_new_clone_decl_and_node_flags): New function.
29763 (duplicate_thunk_for_node): Likewise.
29764 (redirect_edge_duplicating_thunks): Likewise.
29765 (cgraph_clone_node): New parameter args_to_skip, pass it to
29766 redirect_edge_duplicating_thunks which is called instead of
29767 cgraph_redirect_edge_callee.
29768 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
29769 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
29770
29771 2014-04-04 Jeff Law <law@redhat.com>
29772
29773 PR target/60657
29774 * config/arm/predicates.md (const_int_I_operand): New predicate.
29775 (const_int_M_operand): Similarly.
29776 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
29777 const_int_operand.
29778 (insv_t2, extv_reg, extzv_t2): Likewise.
29779 (load_multiple_with_writeback): Similarly for const_int_I_operand.
29780 (pop_multiple_with_writeback_and_return): Likewise.
29781 (vfp_pop_multiple_with_writeback): Likewise
29782
29783 2014-04-04 Richard Biener <rguenther@suse.de>
29784
29785 PR ipa/60746
29786 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
29787 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
29788 non-GIMPLE_LABELs.
29789 * gimplify.h (gimple_add_tmp_var_fn): Declare.
29790 * gimplify.c (gimple_add_tmp_var_fn): New function.
29791 * gimple-expr.h (create_tmp_reg_fn): Declare.
29792 * gimple-expr.c (create_tmp_reg_fn): New function.
29793 * gimple-low.c (record_vars_into): Don't change cfun.
29794 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
29795 code generation without cfun.
29796
29797 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
29798
29799 PR bootstrap/60719
29800 * Makefile.in (install-driver): Fix shell scripting.
29801
29802 2014-04-03 Cong Hou <congh@google.com>
29803
29804 PR tree-optimization/60505
29805 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
29806 threshold of number of iterations below which no vectorization
29807 will be done.
29808 * tree-vect-loop.c (new_loop_vec_info):
29809 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
29810 * tree-vect-loop.c (vect_analyze_loop_operations):
29811 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
29812 * tree-vect-loop.c (vect_transform_loop):
29813 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
29814 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
29815 of iterations of the loop and see if we should build the epilogue.
29816
29817 2014-04-03 Richard Biener <rguenther@suse.de>
29818
29819 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
29820 (streamer_tree_cache_create): Adjust.
29821 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
29822 to allow optional nodes array.
29823 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
29824 (streamer_tree_cache_append): Likewise.
29825 (streamer_tree_cache_create): Create nodes array optionally
29826 as specified by parameter.
29827 * lto-streamer-out.c (create_output_block): Avoid maintaining
29828 the node array in the writer cache.
29829 (DFS_write_tree): Remove assertion.
29830 (produce_asm_for_decls): Free the out decl state hash table early.
29831 * lto-streamer-in.c (lto_data_in_create): Adjust for
29832 streamer_tree_cache_create prototype change.
29833
29834 2014-04-03 Richard Biener <rguenther@suse.de>
29835
29836 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
29837 set TREE_CHAIN to NULL_TREE.
29838
29839 2014-04-03 Richard Biener <rguenther@suse.de>
29840
29841 PR tree-optimization/60740
29842 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
29843 over all GIMPLE_COND operands.
29844
29845 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
29846
29847 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
29848 (Weffc++): Remove Scott's numbering, merge lists and reference
29849 Wnon-virtual-dtor.
29850
29851 2014-04-03 Nick Clifton <nickc@redhat.com>
29852
29853 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
29854 properly.
29855
29856 2014-04-03 Martin Jambor <mjambor@suse.cz>
29857
29858 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
29859 mention gcc_unreachable before failing.
29860 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
29861 removed symbols.
29862
29863 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
29864
29865 PR ipa/60659
29866 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
29867 inconsistent code and instead mark the context inconsistent.
29868 (possible_polymorphic_call_targets): For inconsistent contexts
29869 return empty complete list.
29870
29871 2014-04-02 Anthony Green <green@moxielogic.com>
29872
29873 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
29874 (extendqisi2, extendhisi2): Define.
29875 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
29876 (WCHAR_TYPE): Change to unsigned int.
29877
29878 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29879
29880 PR tree-optimization/60733
29881 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
29882 insertion point for PHI candidates to be the end of the feeding
29883 block for the PHI argument.
29884
29885 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
29886
29887 PR rtl-optimization/60650
29888 * lra-constraints.c (process_alt_operands): Decrease reject for
29889 earlyclobber matching.
29890
29891 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29892
29893 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
29894
29895 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29896
29897 * config/spu/spu.c (pad_bb): Do not crash when the last
29898 insn is CODE_FOR_blockage.
29899
29900 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29901
29902 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
29903 lies outside the target mode.
29904
29905 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29906
29907 PR target/60735
29908 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29909 software floating point or no floating point registers, do not
29910 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29911 in GPRs that occurs after we tested for GPRs that would never be
29912 true.
29913
29914 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29915 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29916 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29917 specifically allow DDmode, since that does not use the SPE SIMD
29918 instructions.
29919
29920 2014-04-02 Richard Biener <rguenther@suse.de>
29921
29922 PR middle-end/60729
29923 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
29924 MODE_INTs. Properly use negv_optab.
29925 (expand_abs): Likewise.
29926
29927 2014-04-02 Richard Biener <rguenther@suse.de>
29928
29929 PR bootstrap/60719
29930 * Makefile.in (install-driver): Guard extra installs with special
29931 names properly.
29932
29933 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
29934
29935 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29936 Document vec_vgbbd.
29937
29938 2014-04-01 Richard Henderson <rth@redhat.com>
29939
29940 PR target/60704
29941 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
29942 alternative enabled before register allocation.
29943
29944 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
29945
29946 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
29947 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
29948 typo.
29949 (nios2_large_got_address): Remove unneeded 'sym' parameter.
29950 (nios2_got_address): Update nios2_large_got_address call site.
29951 (nios2_delegitimize_address): New function.
29952 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
29953 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
29954 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
29955
29956 2014-04-01 Martin Husemann <martin@duskware.de>
29957
29958 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
29959 for -mabi=32.
29960
29961 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
29962
29963 PR rtl-optimization/60604
29964 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
29965 check from register_operand.
29966 (register_operand): Redefine in terms of general_operand.
29967 (nonmemory_operand): Use register_operand for the non-constant cases.
29968
29969 2014-04-01 Richard Biener <rguenther@suse.de>
29970
29971 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
29972
29973 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
29974
29975 * doc/invoke.texi (mapp-regs): Clarify.
29976
29977 2014-03-31 Ulrich Drepper <drepper@gmail.com>
29978
29979 * config/i386/avx512fintrin.h (__v32hi): Define type.
29980 (__v64qi): Likewise.
29981 (_mm512_set1_epi8): Define.
29982 (_mm512_set1_epi16): Define.
29983 (_mm512_set4_epi32): Define.
29984 (_mm512_set4_epi64): Define.
29985 (_mm512_set4_pd): Define.
29986 (_mm512_set4_ps): Define.
29987 (_mm512_setr4_epi64): Define.
29988 (_mm512_setr4_epi32): Define.
29989 (_mm512_setr4_pd): Define.
29990 (_mm512_setr4_ps): Define.
29991 (_mm512_setzero_epi32): Define.
29992
29993 2014-03-31 Martin Jambor <mjambor@suse.cz>
29994
29995 PR middle-end/60647
29996 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
29997 callsite_arguments_match_p. Updated all callers. Also check types of
29998 corresponding formal parameters and actual arguments.
29999 (not_all_callers_have_enough_arguments_p) Renamed to
30000 some_callers_have_mismatched_arguments_p.
30001
30002 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
30003
30004 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30005
30006 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
30007
30008 PR target/60034
30009 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30010 section anchor.
30011
30012 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
30013
30014 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30015 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30016 Split out
30017 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30018 Use FMAMODE_NOVF512 mode iterator.
30019 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30020 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30021 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30022 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30023 Split out
30024 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30025 Use VF_128_256 mode iterator.
30026 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30027 Ditto.
30028
30029 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30030
30031 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30032 static chain if needed.
30033
30034 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30035
30036 PR target/60697
30037 * lra-constraints.c (index_part_to_reg): New.
30038 (process_address): Use it.
30039
30040 2014-03-27 Jeff Law <law@redhat.com>
30041 Jakub Jelinek <jakub@redhat.com>
30042
30043 PR target/60648
30044 * expr.c (do_tablejump): Use simplify_gen_binary rather than
30045 gen_rtx_{PLUS,MULT} to build up the address expression.
30046
30047 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30048 creating non-canonical RTL.
30049
30050 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30051
30052 PR ipa/60243
30053 * ipa-inline.c (want_inline_small_function_p): Short circuit large
30054 functions; reorganize to make cheap checks first.
30055 (inline_small_functions): Do not estimate growth when dumping;
30056 it is expensive.
30057 * ipa-inline.h (inline_summary): Add min_size.
30058 (growth_likely_positive): New function.
30059 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30060 (set_cond_stmt_execution_predicate): Cleanup.
30061 (estimate_edge_size_and_time): Compute min_size.
30062 (estimate_calls_size_and_time): Likewise.
30063 (estimate_node_size_and_time): Likewise.
30064 (inline_update_overall_summary): Update min_size.
30065 (do_estimate_edge_time): Likewise.
30066 (do_estimate_edge_size): Update.
30067 (do_estimate_edge_hints): Update.
30068 (growth_likely_positive): New function.
30069
30070 2014-03-28 Jakub Jelinek <jakub@redhat.com>
30071
30072 PR target/60693
30073 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30074 also if addr has VOIDmode.
30075
30076 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30077
30078 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30079 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30080 Declare extern.
30081 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30082 instructions as well as AdvancedSIMD loads.
30083
30084 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30085
30086 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30087 Use crypto_aese type.
30088 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30089 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30090 crypto_aese, crypto_aesmc. Move to types.md.
30091 * config/arm/types.md (crypto_aes): Split into crypto_aese,
30092 crypto_aesmc.
30093 * config/arm/iterators.md (crypto_type): Likewise.
30094
30095 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30096
30097 * cgraph.c: Include expr.h and tree-dfa.h.
30098 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30099 remove LHS.
30100
30101 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30102
30103 PR target/60675
30104 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30105 regs from checking multi-reg pseudos.
30106
30107 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30108
30109 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30110
30111 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30112
30113 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30114 if it would clobber the stack pointer, even temporarily.
30115
30116 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
30117
30118 * mode-switching.c: Make small adjustments to the top comment.
30119
30120 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
30121
30122 * config/rs6000/constraints.md (wD constraint): New constraint to
30123 match the constant integer to get the top DImode/DFmode out of a
30124 vector in a VSX register.
30125
30126 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30127 match the constant integer to get the top DImode/DFmode out of a
30128 vector in a VSX register.
30129
30130 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30131 for ISA 2.07.
30132
30133 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30134 vbpermq builtins.
30135
30136 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30137 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30138
30139 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30140 Optimize vec_extract of 64-bit values, where the value being
30141 extracted is in the top word, where we can use scalar
30142 instructions. Add direct move and store support. Combine the big
30143 endian/little endian vector select load support into a single insn.
30144 (vsx_extract_<mode>_internal1): Likewise.
30145 (vsx_extract_<mode>_internal2): Likewise.
30146 (vsx_extract_<mode>_load): Likewise.
30147 (vsx_extract_<mode>_store): Likewise.
30148 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30149 combined into vsx_extract_<mode>_load.
30150 (vsx_extract_<mode>_one_le): Likewise.
30151
30152 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30153 define the top 64-bit vector element.
30154
30155 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30156 constraint.
30157
30158 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30159 Document vec_vbpermq builtin.
30160
30161 PR target/60672
30162 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30163 enable use of xxsldwi and xxpermdi builtin functions.
30164 (vec_xxpermdi): Likewise.
30165
30166 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30167 Document use of vec_xxsldwi and vec_xxpermdi builtins.
30168
30169 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
30170
30171 PR rtl-optimization/60650
30172 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30173 first_p. Use it.
30174 (find_spills_for): New.
30175 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
30176 Spill all pseudos on the second iteration.
30177
30178 2014-03-27 Marek Polacek <polacek@redhat.com>
30179
30180 PR c/50347
30181 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
30182 types.
30183
30184 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30185
30186 * config/s390/s390.c (s390_can_use_return_insn): Check for
30187 call-saved FPRs on 31 bit.
30188
30189 2014-03-27 Jakub Jelinek <jakub@redhat.com>
30190
30191 PR middle-end/60682
30192 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
30193 if they need regimplification, just drop them instead of
30194 calling gimple_regimplify_operands on them.
30195
30196 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
30197
30198 PR target/60580
30199 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
30200 (aarch64_frame_pointer_required): Adjust logic.
30201 (aarch64_can_eliminate): Adjust logic.
30202 (aarch64_override_options_after_change): Adjust logic.
30203
30204 2014-03-27 Dehao Chen <dehao@google.com>
30205
30206 * ipa-inline.c (early_inliner): Update node's inline info.
30207
30208 2014-03-26 Dehao Chen <dehao@google.com>
30209
30210 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30211 compiler inserted conditional jumps for NAN float check.
30212
30213 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30214
30215 * ubsan.h (ubsan_create_data): Change second argument's type
30216 to const location_t *.
30217 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30218 _("<unknown>").
30219 (ubsan_create_data): Change second argument to const location_t *PLOC.
30220 Create Loc field whenever PLOC is non-NULL.
30221 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30222 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30223 callers.
30224
30225 PR other/59545
30226 * real.c (real_to_integer2): Change type of low to UHWI.
30227
30228 2014-03-26 Tobias Burnus <burnus@net-b.de>
30229
30230 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30231 (CILK_SELF_SPECS): New define.
30232 (driver_self_specs): Use it.
30233
30234 2014-03-26 Richard Biener <rguenther@suse.de>
30235
30236 * tree-pretty-print.c (percent_K_format): Implement special
30237 case for LTO and its stripped down BLOCK tree.
30238
30239 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30240
30241 PR sanitizer/60636
30242 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30243
30244 * tree-vrp.c (simplify_internal_call_using_ranges): If only
30245 one range is range_int_cst_p, but not both, at least optimize
30246 addition/subtraction of 0 and multiplication by 0 or 1.
30247 * gimple-fold.c (gimple_fold_call): Fold
30248 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30249 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30250 INTEGER_CSTs, try to fold at least x * 0 and y - y.
30251
30252 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
30253
30254 PR rtl-optimization/60452
30255 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30256 <case REG>: Return 1 for invalid offsets from the frame pointer.
30257
30258 2014-03-26 Marek Polacek <polacek@redhat.com>
30259
30260 PR c/37428
30261 * doc/extend.texi (C Extensions): Mention variable-length arrays in
30262 a structure/union.
30263
30264 2014-03-26 Marek Polacek <polacek@redhat.com>
30265
30266 PR c/39525
30267 * doc/extend.texi (Designated Inits): Describe what happens to omitted
30268 field members.
30269
30270 2014-03-26 Marek Polacek <polacek@redhat.com>
30271
30272 PR other/59545
30273 * ira-color.c (update_conflict_hard_regno_costs): Perform the
30274 multiplication in unsigned type.
30275
30276 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30277
30278 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30279
30280 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30281
30282 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30283
30284 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30285
30286 PR ipa/60315
30287 * cif-code.def (UNREACHABLE) New code.
30288 * ipa-inline.c (inline_small_functions): Skip edges to
30289 __builtlin_unreachable.
30290 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30291 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30292 predicate to __bulitin_unreachable.
30293 (set_cond_stmt_execution_predicate): Fix issue when
30294 invert_tree_comparison returns ERROR_MARK.
30295 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30296 propagate to inline clones.
30297 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30298 to unreachable.
30299 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30300 * cgraphclones.c (cgraph_clone_node): If call destination is already
30301 ureachable, do not redirect it back.
30302 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30303 unreachable.
30304
30305 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30306
30307 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30308 Do not modify inline clones.
30309
30310 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30311
30312 * config/i386/i386.md (general_sext_operand): New mode attr.
30313 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
30314 don't generate (sign_extend (const_int)).
30315 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
30316 operands[2]. Use We constraint instead of <i> and
30317 <general_sext_operand> predicate instead of <general_operand>.
30318 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
30319 * config/i386/constraints.md (We): New constraint.
30320 * config/i386/predicates.md (x86_64_sext_operand,
30321 sext_operand): New predicates.
30322
30323 2014-03-25 Martin Jambor <mjambor@suse.cz>
30324
30325 PR ipa/60600
30326 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
30327 inconsistent devirtualizations to __builtin_unreachable.
30328
30329 2014-03-25 Marek Polacek <polacek@redhat.com>
30330
30331 PR c/35449
30332 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
30333
30334 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
30335
30336 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
30337 order of elements for big-endian.
30338
30339 2014-03-25 Richard Biener <rguenther@suse.de>
30340
30341 PR middle-end/60635
30342 * gimplify-me.c (gimple_regimplify_operands): Update the
30343 re-gimplifed stmt.
30344
30345 2014-03-25 Martin Jambor <mjambor@suse.cz>
30346
30347 PR ipa/59176
30348 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
30349 (lto_output_varpool_node): Likewise.
30350 (input_overwrite_node): Likewise.
30351 (input_varpool_node): Likewise.
30352
30353 2014-03-25 Richard Biener <rguenther@suse.de>
30354
30355 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
30356 (run_gcc): Likewise.
30357
30358 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30359
30360 * combine.c (simplify_compare_const): Add MODE argument.
30361 Handle mode_width 0 as very large mode_width.
30362 (try_combine, simplify_comparison): Adjust callers.
30363
30364 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
30365 type to avoid signed integer overflow.
30366 * explow.c (plus_constant): Likewise.
30367
30368 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
30369
30370 * doc/generic.texi: Correct typos.
30371
30372 2014-03-24 Tobias Burnus <burnus@net-b.de>
30373
30374 * doc/invoke.texi (-flto): Expand section about
30375 using static libraries with LTO.
30376
30377 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30378
30379 PR rtl-optimization/60501
30380 * optabs.def (addptr3_optab): New optab.
30381 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
30382 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
30383 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
30384
30385 * lra.c (emit_add3_insn): Use the addptr pattern if available.
30386
30387 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
30388
30389 2014-03-24 Ulrich Drepper <drepper@gmail.com>
30390
30391 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
30392 _mm512_set1_pd.
30393
30394 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
30395 (_mm256_undefined_ps): Define.
30396 (_mm256_undefined_pd): Define.
30397 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
30398 (_mm_undefined_pd): Define.
30399 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
30400 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
30401 (_mm512_undefined_ps): Define.
30402 (_mm512_undefined_pd): Define.
30403 Use _mm*_undefined_*.
30404 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
30405
30406 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
30407
30408 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
30409 (lshr_simd): DI mode added.
30410 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
30411 (aarch64_ushr_simddi): Likewise.
30412 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
30413 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
30414 (vshrd_n_u64): Likewise.
30415
30416 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30417
30418 * Makefile.in (s-macro_list): Depend on cc1.
30419
30420 2014-03-23 Teresa Johnson <tejohnson@google.com>
30421
30422 * ipa-utils.c (ipa_print_order): Use specified dump file.
30423
30424 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
30425
30426 PR rtl-optimization/60601
30427 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
30428
30429 * gcc.c (eval_spec_function): Initialize save_growing_value.
30430
30431 2014-03-22 Jakub Jelinek <jakub@redhat.com>
30432
30433 PR sanitizer/60613
30434 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
30435 code == MINUS_EXPR, never swap op0 with op1.
30436
30437 * toplev.c (init_local_tick): Avoid signed integer multiplication
30438 overflow.
30439 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
30440 shift by first operand's bitsize.
30441
30442 2014-03-21 Jakub Jelinek <jakub@redhat.com>
30443
30444 PR target/60610
30445 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
30446 redefine to 1 or 0.
30447 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
30448 TARGET_ISA_64BIT_P(x).
30449
30450 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30451
30452 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
30453 pattern for vector nor instead of subtract from splat(-1).
30454 (altivec_expand_vec_perm_const_le): Likewise.
30455
30456 2014-03-21 Richard Henderson <rth@twiddle.net>
30457
30458 PR target/60598
30459 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
30460 related insns after epilogue_completed.
30461
30462 2014-03-21 Martin Jambor <mjambor@suse.cz>
30463
30464 PR ipa/59176
30465 * cgraph.h (symtab_node): New flag body_removed.
30466 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
30467 when removing bodies.
30468 * symtab.c (dump_symtab_base): Dump body_removed flag.
30469 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
30470 had their bodies removed.
30471
30472 2014-03-21 Martin Jambor <mjambor@suse.cz>
30473
30474 PR ipa/60419
30475 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
30476 in the border.
30477
30478 2014-03-21 Richard Biener <rguenther@suse.de>
30479
30480 PR tree-optimization/60577
30481 * tree-core.h (struct tree_base): Document nothrow_flag use
30482 in DECL_NONALIASED.
30483 * tree.h (DECL_NONALIASED): New.
30484 (may_be_aliased): Adjust.
30485 * coverage.c (build_var): Set DECL_NONALIASED.
30486
30487 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30488
30489 * expr.c (expand_expr_real_1): Remove outdated comment.
30490
30491 2014-03-20 Jakub Jelinek <jakub@redhat.com>
30492
30493 PR middle-end/60597
30494 * ira.c (adjust_cleared_regs): Call copy_rtx on
30495 *reg_equiv[REGNO (loc)].src_p before passing it to
30496 simplify_replace_fn_rtx.
30497
30498 PR target/60568
30499 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
30500 into CONST, put pic register as first operand of PLUS. Use
30501 gen_const_mem for both 32-bit and 64-bit PIC got loads.
30502
30503 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30504
30505 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
30506
30507 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30508
30509 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
30510 around for store forwarding issue in the FPU on the UT699.
30511 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
30512 loads and operations if -mfix-ut699 is specified.
30513 (divtf3_hq): Tweak attribute.
30514 (sqrttf2_hq): Likewise.
30515
30516 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30517
30518 * calls.c (store_one_arg): Remove incorrect const qualification on the
30519 type of the temporary.
30520 * cfgexpand.c (expand_return): Likewise.
30521 * expr.c (expand_constructor): Likewise.
30522 (expand_expr_real_1): Likewise.
30523
30524 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30525
30526 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
30527 of parts.
30528
30529 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
30530
30531 PR target/60039
30532 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
30533
30534 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
30535
30536 * config/arm/aarch-common-protos.h
30537 (alu_cost_table): Fix spelling of "extend".
30538 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
30539
30540 2014-03-19 Richard Biener <rguenther@suse.de>
30541
30542 PR middle-end/60553
30543 * tree-core.h (tree_type_common): Re-order pointer members
30544 to reduce recursion depth during GC walks.
30545
30546 2014-03-19 Marek Polacek <polacek@redhat.com>
30547
30548 PR sanitizer/60569
30549 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
30550 before accessing it.
30551
30552 2014-03-19 Richard Biener <rguenther@suse.de>
30553
30554 PR lto/59543
30555 * lto-streamer-in.c (input_function): In WPA stage do not drop
30556 debug stmts.
30557
30558 2014-03-19 Jakub Jelinek <jakub@redhat.com>
30559
30560 PR tree-optimization/60559
30561 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30562 with build_zero_cst assignment.
30563
30564 2014-03-18 Kai Tietz <ktietz@redhat.com>
30565
30566 PR rtl-optimization/56356
30567 * sdbout.c (sdbout_parms): Verify that parms'
30568 incoming argument is valid.
30569 (sdbout_reg_parms): Likewise.
30570
30571 2014-03-18 Richard Henderson <rth@redhat.com>
30572
30573 PR target/60562
30574 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30575 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
30576 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30577
30578 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
30579
30580 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30581 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30582 Italicize plugin event names in description. Explain that
30583 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
30584 Remind that no GCC functions should be called after PLUGIN_FINISH.
30585 Explain what pragmas with expansion are.
30586
30587 2014-03-18 Martin Liska <mliska@suse.cz>
30588
30589 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30590 gimple call statement is update.
30591 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30592 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30593
30594 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30595
30596 PR sanitizer/60557
30597 * ubsan.c (ubsan_instrument_unreachable): Call
30598 initialize_sanitizer_builtins.
30599 (ubsan_pass): Likewise.
30600
30601 PR sanitizer/60535
30602 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30603 varpool_finalize_decl instead of rest_of_decl_compilation.
30604
30605 2014-03-18 Richard Biener <rguenther@suse.de>
30606
30607 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30608 by using bitmap_and_compl instead of bitmap_and_compl_into.
30609 (df_rd_transfer_function): Likewise.
30610
30611 2014-03-18 Richard Biener <rguenther@suse.de>
30612
30613 * doc/lto.texi (fresolution): Fix typo.
30614
30615 2014-03-18 Richard Biener <rguenther@suse.de>
30616
30617 * doc/invoke.texi (flto): Update for changes in 4.9.
30618
30619 2014-03-18 Richard Biener <rguenther@suse.de>
30620
30621 * doc/loop.texi: Remove section on the removed lambda framework.
30622 Update loop docs with recent changes in preserving loop structure.
30623
30624 2014-03-18 Richard Biener <rguenther@suse.de>
30625
30626 * doc/lto.texi (-fresolution): Document.
30627
30628 2014-03-18 Richard Biener <rguenther@suse.de>
30629
30630 * doc/contrib.texi: Adjust my name.
30631
30632 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30633
30634 PR ipa/58721
30635 * internal-fn.c: Include diagnostic-core.h.
30636 (expand_BUILTIN_EXPECT): New function.
30637 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30638 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30639 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30640 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30641 IFN_BUILTIN_EXPECT.
30642 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30643 Revert 3 argument __builtin_expect code.
30644 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30645 * gimple-fold.c (gimple_fold_call): Likewise.
30646 * tree.h (fold_builtin_expect): New prototype.
30647 * builtins.c (build_builtin_expect_predicate): Add predictor
30648 argument, if non-NULL, create 3 argument __builtin_expect.
30649 (fold_builtin_expect): No longer static. Add ARG2 argument,
30650 pass it through to build_builtin_expect_predicate.
30651 (fold_builtin_2): Adjust caller.
30652 (fold_builtin_3): Handle BUILT_IN_EXPECT.
30653 * internal-fn.def (BUILTIN_EXPECT): New.
30654
30655 2014-03-18 Tobias Burnus <burnus@net-b.de>
30656
30657 PR ipa/58721
30658 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
30659 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
30660 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
30661
30662 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
30663
30664 PR ipa/58721
30665 * predict.c (combine_predictions_for_bb): Fix up formatting.
30666 (expr_expected_value_1, expr_expected_value): Add predictor argument,
30667 fill what it points to if non-NULL.
30668 (tree_predict_by_opcode): Adjust caller, use the predictor.
30669 * predict.def (PRED_COMPARE_AND_SWAP): Add.
30670
30671 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
30672
30673 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30674 proper constant for the store mode.
30675
30676 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
30677
30678 * symtab.c (change_decl_assembler_name): Fix transparent alias
30679 chain construction.
30680
30681 2014-03-16 Renlin Li <Renlin.Li@arm.com>
30682
30683 * config/aarch64/aarch64.c: Correct the comments about the
30684 aarch64 stack layout.
30685
30686 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
30687
30688 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30689 check for GF_OMP_FOR_KIND_FOR.
30690
30691 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
30692
30693 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30694 ymm and zmm register names.
30695
30696 2014-03-17 Jakub Jelinek <jakub@redhat.com>
30697
30698 PR target/60516
30699 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30700 note creation for the 2010-08-31 changes.
30701
30702 2014-03-17 Marek Polacek <polacek@redhat.com>
30703
30704 PR middle-end/60534
30705 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
30706 as -fno-tree-loop-vectorize.
30707 (expand_omp_simd): Likewise.
30708
30709 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
30710
30711 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
30712 (eligible_for_call_delay): New prototype.
30713 * config/sparc/sparc.c (tls_call_delay): Rename into...
30714 (eligible_for_call_delay): ...this. Return false if the instruction
30715 cannot be put in the delay slot of a branch.
30716 (eligible_for_restore_insn): Simplify.
30717 (eligible_for_return_delay): Return false if the instruction cannot be
30718 put in the delay slot of a branch and simplify.
30719 (eligible_for_sibcall_delay): Return false if the instruction cannot be
30720 put in the delay slot of a branch.
30721 * config/sparc/sparc.md (fix_ut699): New attribute.
30722 (tls_call_delay): Delete.
30723 (in_call_delay): Reimplement.
30724 (eligible_for_sibcall_delay): Rename into...
30725 (in_sibcall_delay): ...this.
30726 (eligible_for_return_delay): Rename into...
30727 (in_return_delay): ...this.
30728 (in_branch_delay): Reimplement.
30729 (in_uncond_branch_delay): Delete.
30730 (in_annul_branch_delay): Delete.
30731
30732 2014-03-14 Richard Henderson <rth@redhat.com>
30733
30734 PR target/60525
30735 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
30736 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
30737 (*floathi<X87MODEF>2_i387_with_temp): Remove.
30738 (floathi splitters): Remove.
30739 (float<SWI48x>xf2): New pattern.
30740 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
30741 code that tried to handle DImode for 32-bit, but which was excluded
30742 by the pattern's condition. Drop allocation of stack temporary.
30743 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
30744 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
30745 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
30746 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
30747 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
30748 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
30749 (*float<SWI48><MODEF>2_sse_interunit): Remove.
30750 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
30751 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
30752 (*float<SWI48x><X87MODEF>2_i387): Remove.
30753 (all float _with_temp splitters): Remove.
30754 (*float<SWI48x><MODEF>2_i387): New pattern.
30755 (*float<SWI48><MODEF>2_sse): New pattern.
30756 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
30757 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
30758
30759 2014-03-14 Jakub Jelinek <jakub@redhat.com>
30760 Marek Polacek <polacek@redhat.com>
30761
30762 PR middle-end/60484
30763 * common.opt (dump_base_name_prefixed): New Variable.
30764 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
30765 if x_dump_base_name_prefixed is already set, set it at the end.
30766
30767 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
30768
30769 PR rtl-optimization/60508
30770 * lra-constraints.c (get_reload_reg): Add new parameter
30771 in_subreg_p.
30772 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
30773 Pass the new parameter values.
30774
30775 2014-03-14 Richard Biener <rguenther@suse.de>
30776
30777 * common.opt: Revert unintented changes from r205065.
30778 * opts.c: Likewise.
30779
30780 2014-03-14 Richard Biener <rguenther@suse.de>
30781
30782 PR middle-end/60518
30783 * cfghooks.c (split_block): Properly adjust all loops the
30784 block was a latch of.
30785
30786 2014-03-14 Martin Jambor <mjambor@suse.cz>
30787
30788 PR lto/60461
30789 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
30790 and simplify it.
30791
30792 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
30793
30794 PR target/59396
30795 * config/avr/avr.c (avr_set_current_function): Pass function name
30796 through default_strip_name_encoding before sanity checking instead
30797 of skipping the first char of the assembler name.
30798
30799 2014-03-13 Richard Henderson <rth@redhat.com>
30800
30801 PR debug/60438
30802 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
30803 (ix86_force_to_memory, ix86_free_from_memory): Remove.
30804 * config/i386/i386-protos.h: Likewise.
30805 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
30806 in the expander instead of a splitter.
30807 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
30808 any possibility of requiring a memory.
30809 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
30810 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
30811 (fp branch splitters): Update for ix86_split_fp_branch.
30812 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
30813 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
30814 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
30815 (*fop_<MODEF>_2_i387): Remove f/r alternative.
30816 (*fop_<MODEF>_3_i387): Likewise.
30817 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
30818 (splitters for the fop_* register patterns): Remove.
30819 (fscalexf4_i387): Rename from *fscalexf4_i387.
30820 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
30821
30822 2014-03-13 Jakub Jelinek <jakub@redhat.com>
30823
30824 PR tree-optimization/59779
30825 * tree-dfa.c (get_ref_base_and_extent): Use double_int
30826 type for bitsize and maxsize instead of HOST_WIDE_INT.
30827
30828 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
30829
30830 PR rtl-optimization/57320
30831 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
30832 the CFG after thread_prologue_and_epilogue_insns.
30833
30834 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
30835
30836 PR rtl-optimization/57189
30837 * lra-constraints.c (process_alt_operands): Disfavor spilling
30838 vector pseudos.
30839
30840 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
30841
30842 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
30843
30844 2014-03-13 Jakub Jelinek <jakub@redhat.com>
30845
30846 PR tree-optimization/59025
30847 PR middle-end/60418
30848 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
30849 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
30850
30851 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
30852
30853 PR target/60486
30854 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
30855 calls of avr_out_plus_1.
30856
30857 2014-03-13 Bin Cheng <bin.cheng@arm.com>
30858
30859 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
30860 BB's single pred and update the father loop's latch info later.
30861
30862 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
30863
30864 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
30865 (VEC_M): Likewise.
30866 (VEC_N): Likewise.
30867 (VEC_R): Likewise.
30868 (VEC_base): Likewise.
30869 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
30870 registers, we need to swap double words in little endian mode.
30871
30872 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
30873 to be a container mode for 128-bit integer operations added in ISA
30874 2.07. Unlike TImode and PTImode, the preferred register set is
30875 the Altivec/VMX registers for the 128-bit operations.
30876
30877 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
30878 declarations.
30879 (rs6000_split_128bit_ok_p): Likewise.
30880
30881 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
30882 macros for creating ISA 2.07 normal and overloaded builtin
30883 functions with 3 arguments.
30884 (BU_P8V_OVERLOAD_3): Likewise.
30885 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
30886 for use as overloaded functions.
30887 (VPERM_1TI_UNS): Likewise.
30888 (VSEL_1TI): Likewise.
30889 (VSEL_1TI_UNS): Likewise.
30890 (ST_INTERNAL_1ti): Likewise.
30891 (LD_INTERNAL_1ti): Likewise.
30892 (XXSEL_1TI): Likewise.
30893 (XXSEL_1TI_UNS): Likewise.
30894 (VPERM_1TI): Likewise.
30895 (VPERM_1TI_UNS): Likewise.
30896 (XXPERMDI_1TI): Likewise.
30897 (SET_1TI): Likewise.
30898 (LXVD2X_V1TI): Likewise.
30899 (STXVD2X_V1TI): Likewise.
30900 (VEC_INIT_V1TI): Likewise.
30901 (VEC_SET_V1TI): Likewise.
30902 (VEC_EXT_V1TI): Likewise.
30903 (EQV_V1TI): Likewise.
30904 (NAND_V1TI): Likewise.
30905 (ORC_V1TI): Likewise.
30906 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
30907 added in ISA 2.07. Add both normal 'altivec' builtins, and the
30908 overloaded builtin.
30909 (VADDUQM): Likewise.
30910 (VSUBCUQ): Likewise.
30911 (VADDEUQM): Likewise.
30912 (VADDECUQ): Likewise.
30913 (VSUBEUQM): Likewise.
30914 (VSUBECUQ): Likewise.
30915
30916 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
30917 __int128_t and __uint128_t types.
30918 (__uint128_type): Likewise.
30919 (altivec_categorize_keyword): Add support for vector __int128_t,
30920 vector __uint128_t, vector __int128, and vector unsigned __int128
30921 as a container type for TImode operations that need to be done in
30922 VSX/Altivec registers.
30923 (rs6000_macro_to_expand): Likewise.
30924 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
30925 to support 128-bit integer instructions vaddcuq, vadduqm,
30926 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
30927 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
30928
30929 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
30930 for V1TImode, and set up preferences to use VSX/Altivec registers.
30931 Setup VSX reload handlers.
30932 (rs6000_debug_reg_global): Likewise.
30933 (rs6000_init_hard_regno_mode_ok): Likewise.
30934 (rs6000_preferred_simd_mode): Likewise.
30935 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
30936 (easy_altivec_constant): Likewise.
30937 (output_vec_const_move): Likewise.
30938 (rs6000_expand_vector_set): Convert V1TImode set and extract to
30939 simple move.
30940 (rs6000_expand_vector_extract): Likewise.
30941 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
30942 addressing.
30943 (rs6000_const_vec): Add support for V1TImode.
30944 (rs6000_emit_le_vsx_load): Swap double words when loading or
30945 storing TImode/V1TImode.
30946 (rs6000_emit_le_vsx_store): Likewise.
30947 (rs6000_emit_le_vsx_move): Likewise.
30948 (rs6000_emit_move): Add support for V1TImode.
30949 (altivec_expand_ld_builtin): Likewise.
30950 (altivec_expand_st_builtin): Likewise.
30951 (altivec_expand_vec_init_builtin): Likewise.
30952 (altivec_expand_builtin): Likewise.
30953 (rs6000_init_builtins): Add support for V1TImode type. Add
30954 support for ISA 2.07 128-bit integer builtins. Define type names
30955 for the VSX/Altivec vector types.
30956 (altivec_init_builtins): Add support for overloaded vector
30957 functions with V1TImode type.
30958 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
30959 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
30960 external function.
30961 (rs6000_split_128bit_ok_p): Likewise.
30962 (rs6000_handle_altivec_attribute): Create V1TImode from vector
30963 __int128_t and vector __uint128_t.
30964
30965 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
30966 and mode attributes.
30967 (VSX_M): Likewise.
30968 (VSX_M2): Likewise.
30969 (VSm): Likewise.
30970 (VSs): Likewise.
30971 (VSr): Likewise.
30972 (VSv): Likewise.
30973 (VS_scalar): Likewise.
30974 (VS_double): Likewise.
30975 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
30976
30977 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
30978 we support the ISA 2.07 128-bit integer arithmetic instructions.
30979 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
30980 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
30981 and TImode types for use with the builtin functions.
30982 (V1TI_type_node): Likewise.
30983 (unsigned_V1TI_type_node): Likewise.
30984 (intTI_type_internal_node): Likewise.
30985 (uintTI_type_internal_node): Likewise.
30986
30987 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
30988 128-bit builtin functions.
30989 (UNSPEC_VADDEUQM): Likewise.
30990 (UNSPEC_VADDECUQ): Likewise.
30991 (UNSPEC_VSUBCUQ): Likewise.
30992 (UNSPEC_VSUBEUQM): Likewise.
30993 (UNSPEC_VSUBECUQ): Likewise.
30994 (VM): Add V1TImode to vector mode iterators.
30995 (VM2): Likewise.
30996 (VI_unit): Likewise.
30997 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
30998 (altivec_vaddcuq): Likewise.
30999 (altivec_vsubuqm): Likewise.
31000 (altivec_vsubcuq): Likewise.
31001 (altivec_vaddeuqm): Likewise.
31002 (altivec_vaddecuq): Likewise.
31003 (altivec_vsubeuqm): Likewise.
31004 (altivec_vsubecuq): Likewise.
31005
31006 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31007 mode iterators.
31008 (BOOL_128): Likewise.
31009 (BOOL_REGS_OUTPUT): Likewise.
31010 (BOOL_REGS_OP1): Likewise.
31011 (BOOL_REGS_OP2): Likewise.
31012 (BOOL_REGS_UNARY): Likewise.
31013 (BOOL_REGS_AND_CR0): Likewise.
31014
31015 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31016 128-bit integer builtin support.
31017 (vec_vadduqm): Likewise.
31018 (vec_vaddecuq): Likewise.
31019 (vec_vaddeuqm): Likewise.
31020 (vec_vsubecuq): Likewise.
31021 (vec_vsubeuqm): Likewise.
31022 (vec_vsubcuq): Likewise.
31023 (vec_vsubuqm): Likewise.
31024
31025 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31026 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31027 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31028 128-bit integer add/subtract to ISA 2.07.
31029
31030 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
31031
31032 * config/arc/arc.c (arc_predicate_delay_insns):
31033 Fix third argument passed to conditionalize_nonjump.
31034
31035 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
31036
31037 * config/aarch64/aarch64-builtins.c
31038 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31039 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31040 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31041 instead of __builtin_lfloor.
31042 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31043
31044 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31045
31046 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31047 (tree_ssa_ifcombine_bb_1): New function.
31048 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
31049 is an empty forwarder block to then_bb or vice versa and then_bb
31050 and else_bb are effectively swapped.
31051
31052 2014-03-12 Christian Bruel <christian.bruel@st.com>
31053
31054 PR target/60264
31055 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31056 REG_CFA_DEF_CFA note.
31057 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31058 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31059
31060 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31061
31062 PR tree-optimization/60454
31063 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31064
31065 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31066
31067 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31068 Do not define target_cpu_default2 to generic.
31069 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31070 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31071 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31072
31073 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31074 Marc Glisse <marc.glisse@inria.fr>
31075
31076 PR tree-optimization/60502
31077 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31078 instead of build_low_bits_mask.
31079
31080 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31081
31082 PR middle-end/60482
31083 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31084 if there are multiple uses, but op doesn't live on E edge.
31085 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31086 clobber stmts before __builtin_unreachable.
31087
31088 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
31089
31090 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31091 hard_frame_pointer_rtx.
31092 * cse.c (cse_insn): Remove volatile check.
31093 * cselib.c (cselib_process_insn): Likewise.
31094 * dse.c (scan_insn): Likewise.
31095
31096 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31097
31098 * config/arc/arc.c (conditionalize_nonjump): New function,
31099 broken out of ...
31100 (arc_ifcvt): ... this.
31101 (arc_predicate_delay_insns): Use it.
31102
31103 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31104
31105 * config/arc/predicates.md (extend_operand): During/after reload,
31106 allow const_int_operand.
31107 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31108 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
31109 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31110 to "i".
31111 (umulsi3_highpart_i): Likewise.
31112
31113 2014-03-11 Richard Biener <rguenther@suse.de>
31114
31115 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31116 Add asserts to guard possible wrong-code bugs.
31117
31118 2014-03-11 Richard Biener <rguenther@suse.de>
31119
31120 PR tree-optimization/60429
31121 PR tree-optimization/60485
31122 * tree-ssa-structalias.c (set_union_with_increment): Properly
31123 take into account all fields that overlap the shifted vars.
31124 (do_sd_constraint): Likewise.
31125 (do_ds_constraint): Likewise.
31126 (get_constraint_for_ptr_offset): Likewise.
31127
31128 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
31129
31130 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31131 (nios2_compute_frame_layout):
31132 Add calculation of cfun->machine->fp_save_offset.
31133 (nios2_expand_prologue): Correct setting of frame pointer register
31134 in prologue.
31135 (nios2_expand_epilogue): Update recovery of stack pointer from
31136 frame pointer accordingly.
31137 (nios2_initial_elimination_offset): Update calculation of offset
31138 for eliminating to HARD_FRAME_POINTER_REGNUM.
31139
31140 2014-03-10 Jakub Jelinek <jakub@redhat.com>
31141
31142 PR ipa/60457
31143 * ipa.c (symtab_remove_unreachable_nodes): Don't call
31144 cgraph_get_create_node on VAR_DECLs.
31145
31146 2014-03-10 Richard Biener <rguenther@suse.de>
31147
31148 PR middle-end/60474
31149 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31150
31151 2014-03-08 Douglas B Rupp <rupp@gnat.com>
31152
31153 * config/vms/vms.opt (vms_float_format): New variable.
31154
31155 2014-03-08 Tobias Burnus <burnus@net-b.de>
31156
31157 * doc/invoke.texi (-fcilkplus): Update implementation status.
31158
31159 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
31160 Richard Biener <rguenther@suse.de>
31161
31162 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31163 consistently accross all TUs.
31164 (run_gcc): Enable -fshort-double automatically at link at link-time
31165 and disallow override.
31166
31167 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
31168
31169 PR target/58271
31170 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31171 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31172 if they can't be used.
31173
31174 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31175
31176 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
31177 for Solaris 11/x86 ld.
31178 * configure: Regenerate.
31179
31180 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31181
31182 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
31183 (LIB_TLS_SPEC): Save as ld_tls_libs.
31184 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
31185 (HAVE_AS_IX86_TLSLDM): New test.
31186 * configure, config.in: Regenerate.
31187 * config/i386/i386.c (legitimize_tls_address): Fall back to
31188 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
31189 cannot support TLS_MODEL_LOCAL_DYNAMIC.
31190 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
31191 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
31192
31193 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
31194
31195 * common.opt (fira-loop-pressure): Mark as optimization.
31196
31197 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
31198
31199 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
31200 an OpenMP mappable type.
31201
31202 2014-03-06 Matthias Klose <doko@ubuntu.com>
31203
31204 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
31205 MULTILIB_OSDIRNAMES is not defined.
31206
31207 2014-03-06 Jakub Jelinek <jakub@redhat.com>
31208 Meador Inge <meadori@codesourcery.com>
31209
31210 PR target/58595
31211 * config/arm/arm.c (arm_tls_symbol_p): Remove.
31212 (arm_legitimize_address): Call legitimize_tls_address for any
31213 arm_tls_referenced_p expression, handle constant addend. Call it
31214 before testing for !TARGET_ARM.
31215 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31216
31217 2014-03-06 Richard Biener <rguenther@suse.de>
31218
31219 PR middle-end/60445
31220 PR lto/60424
31221 PR lto/60427
31222 Revert
31223 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31224
31225 * tree-streamer.c (record_common_node): Assert we don't record
31226 nodes with type double.
31227 (preload_common_node): Skip type double, complex double and double
31228 pointer since it is now frontend dependent due to fshort-double option.
31229
31230 2014-03-06 Richard Biener <rguenther@suse.de>
31231
31232 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31233 or -fno-lto is specified and the linker has full plugin support.
31234 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31235 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31236 * lto-wrapper.c (merge_and_complain): Merge compile-time
31237 optimization levels.
31238 (run_gcc): And pass it through to the link options.
31239
31240 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
31241
31242 PR debug/60381
31243 Revert:
31244 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31245 PR debug/59992
31246 * cselib.c (remove_useless_values): Skip to avoid quadratic
31247 behavior if the condition moved from...
31248 (cselib_process_insn): ... here holds.
31249
31250 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31251
31252 PR plugins/59335
31253 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31254 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31255
31256 PR plugins/59335
31257 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31258 (TM_H): Add x86-tune.def.
31259
31260 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31261
31262 * config/aarch64/aarch64.c (generic_tunings):
31263 Use cortexa57_extra_costs.
31264
31265 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31266
31267 PR lto/60404
31268 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31269 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31270 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31271 cost for in_lto_p.
31272
31273 2014-03-04 Heiher <r@hev.cc>
31274
31275 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31276 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31277
31278 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
31279
31280 * config/i386/predicates.md (const2356_operand): Change to ...
31281 (const2367_operand): ... this.
31282 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31283 const2367_operand.
31284 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31285 (*avx512pf_scatterpf<mode>sf): Ditto.
31286 (avx512pf_scatterpf<mode>df): Ditto.
31287 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31288 (*avx512pf_scatterpf<mode>df): Ditto.
31289 * config/i386/i386.c (ix86_expand_builtin): Update
31290 incorrect hint operand error message.
31291
31292 2014-03-04 Richard Biener <rguenther@suse.de>
31293
31294 * lto-section-in.c (lto_get_section_data): Fix const cast.
31295
31296 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31297
31298 * tree-streamer.c (record_common_node): Assert we don't record
31299 nodes with type double.
31300 (preload_common_node): Skip type double, complex double and double
31301 pointer since it is now frontend dependent due to fshort-double option.
31302
31303 2014-03-04 Richard Biener <rguenther@suse.de>
31304
31305 PR lto/60405
31306 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31307 (lto_input_toplevel_asms): Likewise.
31308 * lto-section-in.c (lto_get_section_data): Instead do it here
31309 for every section.
31310
31311 2014-03-04 Richard Biener <rguenther@suse.de>
31312
31313 PR tree-optimization/60382
31314 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
31315 dead PHIs a reduction.
31316
31317 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
31318
31319 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
31320 hint value.
31321 (_mm_prefetch): Move out of GCC target("sse") pragma.
31322 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
31323 GCC target("prfchw") pragma.
31324 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
31325 for locality <= 2.
31326 * config/i386/i386.c (ix86_option_override_internal): Enable
31327 -mprfchw with -mprefetchwt1.
31328
31329 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31330
31331 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
31332 Mark as varying.
31333
31334 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31335
31336 * opts.h (CL_PCH_IGNORE): Define.
31337 * targhooks.c (option_affects_pch_p):
31338 Return false for options that have CL_PCH_IGNORE set.
31339 * opt-functions.awk: Process PchIgnore.
31340 * doc/options.texi: Document PchIgnore.
31341
31342 * config/arc/arc.opt (misize): Add PchIgnore property.
31343
31344 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31345
31346 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
31347 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
31348 constraint on constants to permit them being loaded into
31349 GENERAL_REGS or BASE_REGS.
31350
31351 2014-03-03 Nick Clifton <nickc@redhat.com>
31352
31353 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
31354 anti-cacnonical alternatives.
31355 (negandhi3_real): New pattern.
31356 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
31357
31358 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31359
31360 * config/avr/avr-mcus.def: Remove atxmega16x1.
31361 * config/avr/avr-tables.opt: Regenerate.
31362 * config/avr/t-multilib: Regenerate.
31363 * doc/avr-mmcu.texi: Regenerate.
31364
31365 2014-03-03 Tobias Grosser <tobias@grosser.es>
31366 Mircea Namolaru <mircea.namolaru@inria.fr>
31367
31368 PR tree-optimization/58028
31369 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
31370 scalar dimensions.
31371
31372 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31373
31374 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
31375 not handled by recognizers.
31376
31377 2014-03-03 Jakub Jelinek <jakub@redhat.com>
31378
31379 PR middle-end/60175
31380 * function.c (expand_function_end): Don't emit
31381 clobber_return_register sequence if clobber_after is a BARRIER.
31382 * cfgexpand.c (construct_exit_block): Append instructions before
31383 return_label to prev_bb.
31384
31385 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31386
31387 * config/rs6000/constraints.md: Document reserved use of "wc".
31388
31389 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31390
31391 PR ipa/60150
31392 * ipa.c (function_and_variable_visibility): When dissolving comdat
31393 group, also set all symbols to local.
31394
31395 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31396
31397 PR ipa/60306
31398
31399 Revert:
31400 2013-12-14 Jan Hubicka <jh@suse.cz>
31401 PR middle-end/58477
31402 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
31403
31404 2014-03-02 Jon Beniston <jon@beniston.com>
31405
31406 PR bootstrap/48230
31407 PR bootstrap/50927
31408 PR bootstrap/52466
31409 PR target/46898
31410 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
31411 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
31412 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
31413 (simple_return, *simple_return): New patterns
31414 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
31415 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
31416
31417 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
31418
31419 * dwarf2out.c (gen_subprogram_die): Tidy.
31420
31421 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
31422
31423 PR target/60071
31424 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
31425 (*mov_t_msb_neg_negc): ... this new insn.
31426
31427 2014-02-28 Jason Merrill <jason@redhat.com>
31428
31429 PR c++/58678
31430 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
31431 function.
31432
31433 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31434
31435 PR c++/60314
31436 * dwarf2out.c (decltype_auto_die): New static.
31437 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
31438 (gen_type_die_with_usage): Handle 'decltype(auto)'.
31439 (is_cxx_auto): Likewise.
31440
31441 2014-02-28 Ian Bolton <ian.bolton@arm.com>
31442
31443 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
31444 we are not using general regs only.
31445
31446 2014-02-28 Richard Biener <rguenther@suse.de>
31447
31448 PR target/60280
31449 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
31450 previous fix and only allow to remove trivial pre-headers
31451 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
31452 (remove_forwarder_block): Properly update the latch of a loop.
31453
31454 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31455
31456 PR debug/59992
31457 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
31458 (cselib_preserved_hash_table): New.
31459 (preserve_constants_and_equivs): Move preserved vals to it.
31460 (cselib_find_slot): Look it up first.
31461 (cselib_init): Initialize it.
31462 (cselib_finish): Release it.
31463 (dump_cselib_table): Dump it.
31464
31465 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31466
31467 PR debug/59992
31468 * cselib.c (remove_useless_values): Skip to avoid quadratic
31469 behavior if the condition moved from...
31470 (cselib_process_insn): ... here holds.
31471
31472 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31473
31474 PR debug/57232
31475 * var-tracking.c (vt_initialize): Apply the same condition to
31476 preserve the CFA base value.
31477
31478 2014-02-28 Joey Ye <joey.ye@arm.com>
31479
31480 PR target/PR60169
31481 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
31482 if reload in progress or completed.
31483
31484 2014-02-28 Tobias Burnus <burnus@net-b.de>
31485
31486 PR middle-end/60147
31487 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
31488 NAMELIST_DECL.
31489
31490 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
31491
31492 * doc/tm.texi.in (Condition Code Status): Update documention for
31493 relative locations of cc0-setter and cc0-user.
31494
31495 2014-02-27 Jeff Law <law@redhat.com>
31496
31497 PR rtl-optimization/52714
31498 * combine.c (try_combine): When splitting an unrecognized PARALLEL
31499 into two independent simple sets, if I3 is a jump, ensure the
31500 pattern we place into I3 is a (set (pc) ...).
31501
31502 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
31503 Jeff Law <law@redhat.com>
31504
31505 PR rtl-optimization/49847
31506 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
31507 are in different blocks.
31508 * doc/tm.texi (Condition Code Status): Update documention for
31509 relative locations of cc0-setter and cc0-user.
31510
31511 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
31512
31513 PR target/59222
31514 * lra.c (lra_emit_add): Check SUBREG too.
31515
31516 2014-02-27 Andreas Schwab <schwab@suse.de>
31517
31518 * config/m68k/m68k.c (m68k_option_override): Disable
31519 -flive-range-shrinkage for classic m68k.
31520 (m68k_override_options_after_change): Likewise.
31521
31522 2014-02-27 Marek Polacek <polacek@redhat.com>
31523
31524 PR middle-end/59223
31525 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
31526 -Wmaybe-uninitialized.
31527
31528 2014-02-27 Alan Modra <amodra@gmail.com>
31529
31530 PR target/57936
31531 * reload1.c (emit_input_reload_insns): When reload_override_in,
31532 set old to rl->in_reg when rl->in_reg is a subreg.
31533
31534 2014-02-26 Richard Biener <rguenther@suse.de>
31535
31536 PR bootstrap/60343
31537 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
31538
31539 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31540
31541 * common/config/i386/predicates.md (const1256_operand): Remove.
31542 (const2356_operand): New.
31543 (const_1_to_2_operand): Remove.
31544 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31545 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31546 (*avx512pf_gatherpf<mode>sf): Ditto.
31547 (avx512pf_gatherpf<mode>df): Ditto.
31548 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31549 (*avx512pf_gatherpf<mode>df): Ditto.
31550 (avx512pf_scatterpf<mode>sf): Ditto.
31551 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31552 (*avx512pf_scatterpf<mode>sf): Ditto.
31553 (avx512pf_scatterpf<mode>df): Ditto.
31554 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31555 (*avx512pf_scatterpf<mode>df): Ditto.
31556 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
31557
31558 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
31559
31560 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31561 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31562 (_mm512_mask_testn_epi64_mask): Move to ...
31563 * config/i386/avx512cdintrin.h: Here.
31564 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31565 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31566 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31567 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31568 TARGET_AVX512F from TARGET_AVX512CD.
31569
31570 2014-02-26 Richard Biener <rguenther@suse.de>
31571
31572 PR ipa/60327
31573 * ipa.c (walk_polymorphic_call_targets): Properly guard
31574 call to inline_update_overall_summary.
31575
31576 2014-02-26 Bin Cheng <bin.cheng@arm.com>
31577
31578 PR target/60280
31579 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31580 and latches only if requested. Fix latch if it is removed.
31581 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31582 LOOPS_HAVE_PREHEADERS.
31583
31584 2014-02-25 Andrew Pinski <apinski@cavium.com>
31585
31586 * builtins.c (expand_builtin_thread_pointer): Create a new target
31587 when the target is NULL.
31588
31589 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
31590
31591 PR rtl-optimization/60317
31592 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31593 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31594 * lra-assigns.c: Include params.h.
31595 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31596 other reload pseudos considerations.
31597
31598 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31599
31600 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31601 to use canonical form for nor<mode>3.
31602
31603 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31604
31605 PR target/55426
31606 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31607 conversions.
31608
31609 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31610
31611 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31612 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31613 (ix86_handle_option): Handle OPT_mprefetchwt1.
31614 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31615 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31616 PREFETCHWT1 CPUID.
31617 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31618 OPTION_MASK_ISA_PREFETCHWT1.
31619 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31620 (PTA_PREFETCHWT1): New.
31621 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31622 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31623 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31624 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31625 (*prefetch_avx512pf_<mode>_: Change into ...
31626 (*prefetch_prefetchwt1_<mode>: This.
31627 * config/i386/i386.opt (mprefetchwt1): New.
31628 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31629 (_mm_prefetch): Handle intent to write.
31630 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31631
31632 2014-02-25 Richard Biener <rguenther@suse.de>
31633
31634 PR middle-end/60291
31635 * emit-rtl.c (mem_attrs_htab): Remove.
31636 (mem_attrs_htab_hash): Likewise.
31637 (mem_attrs_htab_eq): Likewise.
31638 (set_mem_attrs): Always allocate new mem-attrs when something changed.
31639 (init_emit_once): Do not allocate mem_attrs_htab.
31640
31641 2014-02-25 Richard Biener <rguenther@suse.de>
31642
31643 PR lto/60319
31644 * lto-opts.c (lto_write_options): Output non-explicit conservative
31645 -fwrapv, -fno-trapv and -fno-strict-overflow.
31646 * lto-wrapper.c (merge_and_complain): Handle merging those options.
31647 (run_gcc): And pass them through.
31648
31649 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31650
31651 * sel-sched.c (calculate_new_fences): New parameter ptime.
31652 Calculate it as a maximum over all fence cycles.
31653 (sel_sched_region_2): Adjust the call to calculate_new_fences.
31654 Print the final schedule timing when sched_verbose.
31655
31656 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31657
31658 PR rtl-optimization/60292
31659 * sel-sched.c (fill_vec_av_set): Do not reset target availability
31660 bit fot the fence instruction.
31661
31662 2014-02-24 Alangi Derick <alangiderick@gmail.com>
31663
31664 * calls.h: Fix typo in comment.
31665
31666 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
31667
31668 * config/pa/pa.c (pa_output_move_double): Don't valididate when
31669 adjusting offsetable addresses.
31670
31671 2014-02-24 Guozhi Wei <carrot@google.com>
31672
31673 * sparseset.h (sparseset_pop): Fix the wrong index.
31674
31675 2014-02-24 Walter Lee <walt@tilera.com>
31676
31677 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31678 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31679 triplet.
31680 * common/config/tilegx/tilegx-common.c
31681 (TARGET_DEFAULT_TARGET_FLAGS): Define.
31682 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31683 (LINK_SPEC): Ditto.
31684 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31685 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31686 (tilegx_gimplify_va_arg_expr): Handle big endian.
31687 (tilegx_expand_unaligned_load): Ditto.
31688 (tilegx_expand_unaligned_store): Ditto.
31689 (TARGET_RETURN_IN_MSB): New.
31690 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31691 (TARGET_ENDIAN_DEFAULT): New.
31692 (TARGET_BIG_ENDIAN): Handle big endian.
31693 (BYTES_BIG_ENDIAN): Ditto.
31694 (WORDS_BIG_ENDIAN): Ditto.
31695 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31696 (ENDIAN_SPEC): New.
31697 (EXTRA_SPECS): New.
31698 * config/tilegx/tilegx.md (extv): Handle big endian.
31699 (extzv): Ditto.
31700 (insn_st<n>): Ditto.
31701 (insn_st<n>_add<bitsuffix>): Ditto.
31702 (insn_stnt<n>): Ditto.
31703 (insn_stnt<n>_add<bitsuffix>):Ditto.
31704 (vec_interleave_highv8qi): Handle big endian.
31705 (vec_interleave_highv8qi_be): New.
31706 (vec_interleave_highv8qi_le): New.
31707 (insn_v1int_h): Handle big endian.
31708 (vec_interleave_lowv8qi): Handle big endian.
31709 (vec_interleave_lowv8qi_be): New.
31710 (vec_interleave_lowv8qi_le): New.
31711 (insn_v1int_l): Handle big endian.
31712 (vec_interleave_highv4hi): Handle big endian.
31713 (vec_interleave_highv4hi_be): New.
31714 (vec_interleave_highv4hi_le): New.
31715 (insn_v2int_h): Handle big endian.
31716 (vec_interleave_lowv4hi): Handle big endian.
31717 (vec_interleave_lowv4hi_be): New.
31718 (vec_interleave_lowv4hi_le): New.
31719 (insn_v2int_l): Handle big endian.
31720 (vec_interleave_highv2si): Handle big endian.
31721 (vec_interleave_highv2si_be): New.
31722 (vec_interleave_highv2si_le): New.
31723 (insn_v4int_h): Handle big endian.
31724 (vec_interleave_lowv2si): Handle big endian.
31725 (vec_interleave_lowv2si_be): New.
31726 (vec_interleave_lowv2si_le): New.
31727 (insn_v4int_l): Handle big endian.
31728 * config/tilegx/tilegx.opt (mbig-endian): New option.
31729 (mlittle-endian): New option.
31730 * doc/install.texi: Document tilegxbe-linux.
31731 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
31732
31733 2014-02-24 Martin Jambor <mjambor@suse.cz>
31734
31735 PR ipa/60266
31736 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
31737 there are no parameter descriptors.
31738
31739 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
31740
31741 PR rtl-optimization/60268
31742 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
31743 initialization to ...
31744 (sched_rgn_init): ... here.
31745 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
31746
31747 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31748
31749 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
31750 names.
31751
31752 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
31753
31754 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
31755 definition.
31756
31757 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31758
31759 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
31760 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
31761
31762 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31763
31764 * config/microblaze/predicates.md: Add cmp_op predicate.
31765 * config/microblaze/microblaze.md: Add branch_compare instruction
31766 which uses cmp_op predicate and emits cmp insn before branch.
31767 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
31768 to microblaze_expand_conditional_branch and consolidate logic.
31769 (microblaze_expand_conditional_branch): emit branch_compare
31770 insn instead of handling cmp op separate from branch insn.
31771
31772 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31773
31774 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
31775 to permit subregs.
31776
31777 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31778
31779 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
31780 define_insn with define_expand and new define_insn
31781 *altivec_lve<VI_char>x_internal.
31782 (altivec_stve<VI_char>x): Replace define_insn with define_expand
31783 and new define_insn *altivec_stve<VI_char>x_internal.
31784 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
31785 prototype.
31786 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
31787 lve*x built-ins.
31788 (altivec_expand_stvex_be): New function.
31789
31790 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
31791
31792 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
31793 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
31794 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
31795 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
31796
31797 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
31798
31799 PR target/60298
31800 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
31801 instead of emit_move_insn.
31802
31803 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31804
31805 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
31806 vspltw with vsldoi.
31807 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
31808 gen_altivec_vsumsws.
31809
31810 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31811
31812 * config/rs6000/altivec.md (altivec_lvxl): Rename as
31813 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
31814 (altivec_lvxl_<mode>): New define_expand incorporating
31815 -maltivec=be semantics where needed.
31816 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
31817 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
31818 semantics where needed.
31819 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
31820 (altivec_stvx_<mode>): New define_expand incorporating
31821 -maltivec=be semantics where needed.
31822 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
31823 VM2 iterator instead of V4SI.
31824 (altivec_stvxl_<mode>): New define_expand incorporating
31825 -maltivec=be semantics where needed.
31826 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
31827 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
31828 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
31829 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
31830 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
31831 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
31832 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
31833 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
31834 ALTIVEC_BUILTIN_STVXL.
31835 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
31836 (altivec_expand_stvx_be): Likewise.
31837 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
31838 (altivec_expand_lvx_be): Likewise.
31839 (altivec_expand_stvx_be): Likewise.
31840 (altivec_expand_builtin): Add cases for
31841 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
31842 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
31843 (altivec_init_builtins): Add definitions for
31844 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
31845 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
31846
31847 2014-02-21 Catherine Moore <clm@codesourcery.com>
31848
31849 * doc/invoke.texi (mvirt, mno-virt): Document.
31850 * config/mips/mips.opt (mvirt): New option.
31851 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
31852
31853 2014-02-21 Richard Biener <rguenther@suse.de>
31854
31855 PR tree-optimization/60276
31856 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
31857 (STMT_VINFO_MIN_NEG_DIST): New macro.
31858 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
31859 STMT_VINFO_MIN_NEG_DIST.
31860 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
31861 made for negative dependence distances still hold.
31862
31863 2014-02-21 Richard Biener <rguenther@suse.de>
31864
31865 PR middle-end/60291
31866 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
31867 DECL_INITIAL for globals not in the current function context.
31868
31869 2014-02-21 Jakub Jelinek <jakub@redhat.com>
31870
31871 PR tree-optimization/56490
31872 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
31873 * tree-ssa-uninit.c: Include params.h.
31874 (compute_control_dep_chain): Add num_calls argument, return false
31875 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
31876 num_calls to recursive call.
31877 (find_predicates): Change dep_chain into normal array,
31878 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
31879 variable and adjust compute_control_dep_chain caller.
31880 (find_def_preds): Likewise.
31881
31882 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
31883
31884 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
31885 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
31886
31887 2014-02-21 Nick Clifton <nickc@redhat.com>
31888
31889 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
31890 (pushhi1): Likewise.
31891 (popqi1): Add mode to pre_dec.
31892 (pophi1): Likewise.
31893
31894 2014-02-21 Jakub Jelinek <jakub@redhat.com>
31895
31896 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
31897 mode for mask of V8SFmode permutation.
31898
31899 2014-02-20 Richard Henderson <rth@redhat.com>
31900
31901 PR c++/60272
31902 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
31903 a new pseudo for OLDVAL.
31904
31905 2014-02-20 Jakub Jelinek <jakub@redhat.com>
31906
31907 PR target/57896
31908 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
31909 gen_reg_rtx if d->testing_p.
31910 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
31911 if d->testing_p and we will certainly return true.
31912 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
31913 if d->testing_p.
31914
31915 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
31916
31917 * emit-rtl.c (gen_reg_rtx): Assert that
31918 crtl->emit.regno_pointer_align_length is non-zero.
31919
31920 2014-02-20 Richard Henderson <rth@redhat.com>
31921
31922 PR c++/60272
31923 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
31924 on failure the store back into EXPECT.
31925
31926 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
31927 Sandra Loosemore <sandra@codesourcery.com>
31928
31929 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
31930 * config/nios2/nios2.c (nios2_function_profiler): Add
31931 -fPIC (flag_pic == 2) support.
31932 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
31933 (nios2_large_offset_p): New function.
31934 (nios2_unspec_reloc_p): Move up position, update to use
31935 nios2_large_offset_p.
31936 (nios2_unspec_address): Remove function.
31937 (nios2_unspec_offset): New function.
31938 (nios2_large_got_address): New function.
31939 (nios2_got_address): Add large offset support.
31940 (nios2_legitimize_tls_address): Update usage of removed and new
31941 functions.
31942 (nios2_symbol_binds_local_p): New function.
31943 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
31944 (nios2_legitimize_address): Update to use nios2_large_offset_p.
31945 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
31946 (nios2_print_operand): Merge H/L processing, add hiadj/lo
31947 processing for (const (unspec ...)).
31948 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
31949
31950 2014-02-20 Richard Biener <rguenther@suse.de>
31951
31952 * tree-cfg.c (replace_uses_by): Mark altered BBs before
31953 doing the substitution.
31954 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
31955
31956 2014-02-20 Martin Jambor <mjambor@suse.cz>
31957
31958 PR ipa/55260
31959 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
31960 info when checking whether lattices are bottom.
31961
31962 2014-02-20 Richard Biener <rguenther@suse.de>
31963
31964 PR middle-end/60221
31965 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
31966 regions at -O0.
31967
31968 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
31969
31970 PR ipa/58555
31971 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
31972 parameter specifying the scaling.
31973 (inline_call): Update.
31974 (want_inline_recursively): Guard division by zero.
31975 (recursive_inlining): Update.
31976 * ipa-inline.h (clone_inlined_nodes): Update.
31977
31978 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
31979
31980 PR target/60204
31981 * config/i386/i386.c (classify_argument): Pass structures of size
31982 64 bytes or less in register.
31983
31984 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
31985 Kirill Yukhin <kirill.yukhin@intel.com>
31986
31987 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
31988 (_mm_rcp28_round_ss): Ditto.
31989 (_mm_rsqrt28_round_sd): Ditto.
31990 (_mm_rsqrt28_round_ss): Ditto.
31991 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
31992 (_mm_rcp14_round_ss): Ditto.
31993 (_mm_rsqrt14_round_sd): Ditto.
31994 (_mm_rsqrt14_round_ss): Ditto.
31995 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
31996 the first input operand, get rid of match_dup.
31997 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
31998 attribute to sse.
31999 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32000 Ditto.
32001 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32002 operand as the first input operand, set type attribute.
32003 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32004 Set type attribute.
32005 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32006 operand as the first input operand, set type attribute.
32007
32008 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32009
32010 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32011 bit of zero.
32012
32013 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
32014
32015 PR target/60207
32016 * config/i386/i386.c (construct_container): Remove TFmode check
32017 for X86_64_INTEGER_CLASS.
32018
32019 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
32020
32021 PR target/59794
32022 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32023 only when -Wpsabi is enabled.
32024
32025 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
32026
32027 PR target/59799
32028 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32029 passing arrays in registers are the same as for structs, so remove the
32030 special case for them.
32031
32032 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
32033
32034 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32035 destination type, extract only the valid bits if the source type is not
32036 integral and has a different mode.
32037
32038 2014-02-19 Richard Biener <rguenther@suse.de>
32039
32040 PR ipa/60243
32041 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32042 for all calls.
32043
32044 2014-02-19 Richard Biener <rguenther@suse.de>
32045
32046 PR ipa/60243
32047 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32048 (ipa_modify_call_arguments): Emit an argument load explicitely and
32049 preserve virtual SSA form there and for the replacement call.
32050 Do not update SSA form nor free dominance info.
32051
32052 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32053
32054 * ipa.c (function_and_variable_visibility): Also clear WEAK
32055 flag when disolving COMDAT_GROUP.
32056
32057 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32058
32059 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32060 * ipa-prop.c (ipa_set_jf_known_type): Return early when
32061 not devirtualizing.
32062 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32063 do more sanity checks.
32064 (detect_type_change): Return true when giving up early.
32065 (compute_complex_assign_jump_func): Fix type parameter of
32066 ipa_set_ancestor_jf.
32067 (compute_complex_ancestor_jump_func): Likewise.
32068 (update_jump_functions_after_inlining): Fix updating of
32069 ancestor function.
32070 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32071
32072 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32073
32074 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32075 inline clones when edge disappears.
32076
32077 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
32078
32079 PR target/60203
32080 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32081 Split 64-bit moves into 2 patterns. Do not allow the use of
32082 direct move for TDmode in little endian, since the decimal value
32083 has little endian bytes within a word, but the 64-bit pieces are
32084 ordered in a big endian fashion, and normal subreg's of TDmode are
32085 not allowed.
32086 (mov<mode>_64bit_dm): Likewise.
32087 (movtd_64bit_nodm): Likewise.
32088
32089 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32090
32091 PR tree-optimization/60174
32092 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32093 statement of an SSA_NAME that occurs in an abnormal PHI node.
32094
32095 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32096
32097 PR sanitizer/60142
32098 * final.c (SEEN_BB): Remove.
32099 (SEEN_NOTE, SEEN_EMITTED): Renumber.
32100 (final_scan_insn): Don't force_source_line on second
32101 NOTE_INSN_BASIC_BLOCK.
32102
32103 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
32104
32105 PR target/60205
32106 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32107 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32108 (type_natural_mode): Warn ABI change when %zmm register is not
32109 available for AVX512F vector value passing.
32110
32111 2014-02-18 Kai Tietz <ktietz@redhat.com>
32112
32113 PR target/60193
32114 * config/i386/i386.c (ix86_expand_prologue): Use value in
32115 rax register as displacement when restoring %r10 or %rax.
32116 Fix wrong offset when restoring both registers.
32117
32118 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32119
32120 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32121 assertion with conditional return.
32122
32123 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32124 Uros Bizjak <ubizjak@gmail.com>
32125
32126 PR driver/60233
32127 * config/i386/driver-i386.c (host_detect_local_cpu): If
32128 YMM state is not saved by the OS, also clear has_f16c. Move
32129 CPUID 0x80000001 handling before YMM state saving checking.
32130
32131 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
32132
32133 PR rtl-optimization/58960
32134 * haifa-sched.c (alloc_global_sched_pressure_data): New,
32135 factored out from ...
32136 (sched_init): ... here.
32137 (free_global_sched_pressure_data): New, factored out from ...
32138 (sched_finish): ... here.
32139 * sched-int.h (free_global_sched_pressure_data): Declare.
32140 * sched-rgn.c (nr_regions_initial): New static global.
32141 (haifa_find_rgns): Initialize it.
32142 (schedule_region): Disable sched-pressure for the newly
32143 generated regions.
32144
32145 2014-02-17 Richard Biener <rguenther@suse.de>
32146
32147 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32148 release SSA defs of pattern stmts.
32149
32150 2014-02-17 Richard Biener <rguenther@suse.de>
32151
32152 * tree-inline.c (expand_call_inline): Release the virtual
32153 operand defined by the call we are about to inline.
32154
32155 2014-02-17 Richard Biener <rguenther@suse.de>
32156
32157 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32158
32159 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
32160 Ilya Tocar <ilya.tocar@intel.com>
32161
32162 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32163 arguments order in builtin.
32164 (_mm512_permutexvar_epi64): Ditto.
32165 (_mm512_mask_permutexvar_epi64): Ditto
32166 (_mm512_maskz_permutexvar_epi32): Ditto
32167 (_mm512_permutexvar_epi32): Ditto
32168 (_mm512_mask_permutexvar_epi32): Ditto
32169
32170 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32171
32172 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32173 (p8_vmrgow): Likewise.
32174
32175 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32176
32177 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
32178 endian targets.
32179
32180 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
32181
32182 PR target/60203
32183 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
32184 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
32185 into 64-bit and 32-bit moves. On 64-bit moves, add support for
32186 using direct move instructions on ISA 2.07. Also adjust
32187 instruction length for 64-bit.
32188 (mov<mode>_64bit, TFmode/TDmode): Likewise.
32189 (mov<mode>_32bit, TFmode/TDmode): Likewise.
32190
32191 2014-02-15 Alan Modra <amodra@gmail.com>
32192
32193 PR target/58675
32194 PR target/57935
32195 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32196 find_replacement on parts of insn rtl that might be reloaded.
32197
32198 2014-02-15 Richard Biener <rguenther@suse.de>
32199
32200 PR tree-optimization/60183
32201 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
32202 (tree_ssa_phiprop): Calculate and free post-dominators.
32203
32204 2014-02-14 Jeff Law <law@redhat.com>
32205
32206 PR rtl-optimization/60131
32207 * ree.c (get_extended_src_reg): New function.
32208 (combine_reaching_defs): Use it rather than assuming location of REG.
32209 (find_and_remove_re): Verify first operand of extension is
32210 a REG before adding the insns to the copy list.
32211
32212 2014-02-14 Roland McGrath <mcgrathr@google.com>
32213
32214 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32215 * configure: Regenerated.
32216 * config.in: Regenerated.
32217 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32218 instead of ASM_SHORT.
32219
32220 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
32221 Richard Earnshaw <rearnsha@arm.com>
32222
32223 PR rtl-optimization/59535
32224 * lra-constraints.c (process_alt_operands): Encourage alternative
32225 when unassigned pseudo class is superset of the alternative class.
32226 (inherit_reload_reg): Don't inherit when optimizing for code size.
32227 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32228 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32229 modes not less than 4 for Thumb1.
32230
32231 2014-02-14 Kyle McMartin <kyle@redhat.com>
32232
32233 PR pch/60010
32234 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32235
32236 2014-02-14 Richard Biener <rguenther@suse.de>
32237
32238 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32239 (get_frame_arg): Drop the assert with langhook types_compatible_p.
32240 Do not strip INDIRECT_REFs.
32241
32242 2014-02-14 Richard Biener <rguenther@suse.de>
32243
32244 PR lto/60179
32245 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32246 DECL_FUNCTION_SPECIFIC_TARGET.
32247 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32248 * tree-streamer-out.c (pack_ts_target_option): Remove.
32249 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32250 (write_ts_function_decl_tree_pointers): Do not stream
32251 DECL_FUNCTION_SPECIFIC_TARGET.
32252 * tree-streamer-in.c (unpack_ts_target_option): Remove.
32253 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32254 (lto_input_ts_function_decl_tree_pointers): Do not stream
32255 DECL_FUNCTION_SPECIFIC_TARGET.
32256
32257 2014-02-14 Jakub Jelinek <jakub@redhat.com>
32258
32259 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32260 (get_initial_def_for_induction, vectorizable_induction): Ignore
32261 debug stmts when looking for exit_phi.
32262 (vectorizable_live_operation): Fix up condition.
32263
32264 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32265
32266 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32267 nreverse() because it changes the content of original tree list.
32268
32269 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32270
32271 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32272 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32273
32274 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32275
32276 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32277 GNU coding standards.
32278
32279 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32280
32281 PR debug/60152
32282 * dwarf2out.c (gen_subprogram_die): Don't call
32283 add_calling_convention_attribute if subr_die is old_die.
32284
32285 2014-02-13 Sharad Singhai <singhai@google.com>
32286
32287 * doc/optinfo.texi: Fix order of nodes.
32288
32289 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
32290
32291 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32292 operands[2], not operands[3].
32293
32294 2014-02-13 Richard Biener <rguenther@suse.de>
32295
32296 PR bootstrap/59878
32297 * doc/install.texi (ISL): Update recommended version to 0.12.2,
32298 mention the possibility of an in-tree build.
32299 (CLooG): Update recommended version to 0.18.1, mention the
32300 possibility of an in-tree build and clarify that the ISL
32301 bundled with CLooG does not work.
32302
32303 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32304
32305 PR target/43546
32306 * expr.c (compress_float_constant): If x is a hard register,
32307 extend into a pseudo and then move to x.
32308
32309 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
32310
32311 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
32312 caused by bad second argument to warning_at() with -mhotpatch and
32313 nested functions (e.g. with gfortran).
32314
32315 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
32316
32317 * opts.c (option_name): Remove "enabled by default" rider.
32318
32319 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
32320
32321 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
32322
32323 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
32324 Uros Bizjak <ubizjak@gmail.com>
32325
32326 PR target/60151
32327 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
32328 * configure: Regenerated.
32329
32330 2014-02-12 Richard Biener <rguenther@suse.de>
32331
32332 * vec.c (vec_prefix::calculate_allocation): Move as
32333 inline variant to vec.h.
32334 (vec_prefix::calculate_allocation_1): New out-of-line version.
32335 * vec.h (vec_prefix::calculate_allocation_1): Declare.
32336 (vec_prefix::m_has_auto_buf): Rename to ...
32337 (vec_prefix::m_using_auto_storage): ... this.
32338 (vec_prefix::calculate_allocation): Inline the easy cases
32339 and dispatch to calculate_allocation_1 which doesn't need the
32340 prefix address.
32341 (va_heap::reserve): Use gcc_checking_assert.
32342 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
32343 m_using_auto_storage.
32344 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
32345 member and adjust.
32346 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
32347 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
32348 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
32349
32350 2014-02-12 Richard Biener <rguenther@suse.de>
32351
32352 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
32353 when we found a dependence.
32354
32355 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
32356
32357 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
32358 common code...
32359 (maybe_fold_stmt): ... into this new function.
32360 * omp-low.c (lower_omp): Update comment.
32361
32362 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
32363 last use.
32364
32365 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
32366 dereference.
32367
32368 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
32369
32370 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
32371 identifiers in comments.
32372 (cortexa53_extra_costs): Likewise.
32373 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
32374 (cortexa7_extra_costs): Likewise.
32375 (cortexa12_extra_costs): Likewise.
32376 (cortexa15_extra_costs): Likewise.
32377 (v7m_extra_costs): Likewise.
32378
32379 2014-02-12 Richard Biener <rguenther@suse.de>
32380
32381 PR middle-end/60092
32382 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
32383 of posix_memalign being successful.
32384 (lower_stmt): Restrict lowering of posix_memalign to when
32385 -ftree-bit-ccp is enabled.
32386
32387 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32388
32389 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
32390 arg_loc.
32391 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
32392
32393 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
32394
32395 PR rtl-optimization/60116
32396 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
32397 other_insn once the combination has been validated.
32398
32399 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
32400
32401 PR lto/59468
32402 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
32403 and wrapper.
32404 * ipa-devirt.c: Include demangle.h
32405 (odr_violation_reported): New static variable.
32406 (add_type_duplicate): Update odr_violations.
32407 (maybe_record_node): Add completep parameter; update it.
32408 (record_target_from_binfo): Add COMPLETEP parameter;
32409 update it as needed.
32410 (possible_polymorphic_call_targets_1): Likewise.
32411 (struct polymorphic_call_target_d): Add nonconstruction_targets;
32412 rename FINAL to COMPLETE.
32413 (record_targets_from_bases): Sanity check we found the binfo;
32414 fix COMPLETEP updating.
32415 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
32416 parameter, fix computing of COMPLETEP.
32417 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
32418 at LTO time do demangling.
32419 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
32420 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
32421 parameter.
32422 (gimple_get_virt_method_for_binfo): Likewise.
32423 * gimple-fold.h (gimple_get_virt_method_for_binfo,
32424 gimple_get_virt_method_for_vtable): Update prototypes.
32425
32426 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
32427
32428 PR target/49008
32429 * genautomata.c (add_presence_absence): Fix typo with
32430 {final_}presence_list.
32431
32432 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
32433
32434 PR target/60137
32435 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
32436 for VSX/Altivec vectors that land in GPR registers.
32437
32438 2014-02-11 Richard Henderson <rth@redhat.com>
32439 Jakub Jelinek <jakub@redhat.com>
32440
32441 PR debug/59776
32442 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
32443 around drhs if type conversion to lacc->type is not useless.
32444
32445 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32446
32447 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
32448 tuning struct.
32449 (cortex-a57.cortex-a53): Likewise.
32450 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
32451
32452 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32453
32454 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
32455 arm_restrict_it.
32456
32457 2014-02-11 Renlin Li <Renlin.Li@arm.com>
32458
32459 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
32460 add_options_for_arm_vfp3.
32461
32462 2014-02-11 Jeff Law <law@redhat.com>
32463
32464 PR middle-end/54041
32465 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
32466 object with an undesirable mode.
32467
32468 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32469
32470 PR libgomp/60107
32471 * config/i386/sol2-9.h: New file.
32472 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
32473 *-*-solaris2.9*): Use it.
32474
32475 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32476
32477 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
32478 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
32479
32480 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32481
32482 * config/microblaze/microblaze.c: Extend mcpu version format
32483
32484 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
32485
32486 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
32487
32488 2014-02-10 Richard Henderson <rth@redhat.com>
32489
32490 PR target/59927
32491 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
32492 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
32493 ms-abi vs -mno-accumulate-outgoing-args.
32494 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
32495 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
32496 respect to ms-abi.
32497
32498 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
32499
32500 PR middle-end/60080
32501 * cfgexpand.c (expand_asm_operands): Attach source location to
32502 ASM_INPUT rtx objects.
32503 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
32504
32505 2014-02-10 Nick Clifton <nickc@redhat.com>
32506
32507 * config/mn10300/mn10300.c (popcount): New function.
32508 (mn10300_expand_prologue): Include saved registers in stack usage
32509 count.
32510
32511 2014-02-10 Jeff Law <law@redhat.com>
32512
32513 PR middle-end/52306
32514 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
32515 when changing the SET_DEST of a prior insn to avoid an input reload.
32516
32517 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32518
32519 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
32520 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
32521 -mcall-openbsd, or -mcall-linux.
32522 (CC1_ENDIAN_BIG_SPEC): Remove.
32523 (CC1_ENDIAN_LITTLE_SPEC): Remove.
32524 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32525 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
32526 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
32527 and %cc1_endian_default.
32528 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32529
32530 2014-02-10 Richard Biener <rguenther@suse.de>
32531
32532 PR tree-optimization/60115
32533 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
32534 MEM_REF handling. Properly verify that the accesses are not
32535 out of the objects bound.
32536
32537 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32538
32539 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
32540 coretex to cortex.
32541
32542 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
32543
32544 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
32545 proper constants and fix formatting.
32546 (possible_polymorphic_call_targets): Fix formatting.
32547
32548 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
32549 Ilya Tocar <ilya.tocar@intel.com>
32550
32551 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
32552 (_mm512_loadu_epi32): Renamed into...
32553 (_mm512_loadu_si512): This.
32554 (_mm512_storeu_epi32): Renamed into...
32555 (_mm512_storeu_si512): This.
32556 (_mm512_maskz_ceil_ps): Removed.
32557 (_mm512_maskz_ceil_pd): Ditto.
32558 (_mm512_maskz_floor_ps): Ditto.
32559 (_mm512_maskz_floor_pd): Ditto.
32560 (_mm512_floor_round_ps): Ditto.
32561 (_mm512_floor_round_pd): Ditto.
32562 (_mm512_ceil_round_ps): Ditto.
32563 (_mm512_ceil_round_pd): Ditto.
32564 (_mm512_mask_floor_round_ps): Ditto.
32565 (_mm512_mask_floor_round_pd): Ditto.
32566 (_mm512_mask_ceil_round_ps): Ditto.
32567 (_mm512_mask_ceil_round_pd): Ditto.
32568 (_mm512_maskz_floor_round_ps): Ditto.
32569 (_mm512_maskz_floor_round_pd): Ditto.
32570 (_mm512_maskz_ceil_round_ps): Ditto.
32571 (_mm512_maskz_ceil_round_pd): Ditto.
32572 (_mm512_expand_pd): Ditto.
32573 (_mm512_expand_ps): Ditto.
32574 * config/i386/i386.c (ix86_builtins): Remove
32575 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32576 (bdesc_args): Ditto.
32577 * config/i386/predicates.md (const1256_operand): New.
32578 (const_1_to_2_operand): Ditto.
32579 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32580 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32581 (*avx512pf_gatherpf<mode>sf): Ditto.
32582 (avx512pf_gatherpf<mode>df): Ditto.
32583 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32584 (*avx512pf_gatherpf<mode>df): Ditto.
32585 (avx512pf_scatterpf<mode>sf): Ditto.
32586 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32587 (*avx512pf_scatterpf<mode>sf): Ditto.
32588 (avx512pf_scatterpf<mode>df): Ditto.
32589 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32590 (*avx512pf_scatterpf<mode>df): Ditto.
32591 (avx512f_expand<mode>): Removed.
32592 (<shift_insn><mode>3<mask_name>): Change predicate type.
32593
32594 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32595
32596 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32597 not at the end of datarefs vector use ordered_remove to avoid
32598 reordering datarefs vector.
32599
32600 PR c/59984
32601 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32602 mark local addressable non-static vars as GOVD_PRIVATE
32603 instead of GOVD_LOCAL.
32604 * omp-low.c (lower_omp_for): Move gimple_bind_vars
32605 and BLOCK_VARS of gimple_bind_block to new_stmt rather
32606 than copying them.
32607
32608 PR middle-end/60092
32609 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32610 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32611 assume_aligned or alloc_align attributes.
32612 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32613 arguments. Handle also assume_aligned and alloc_align attributes.
32614 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
32615 calls to functions with assume_aligned or alloc_align attributes.
32616 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32617
32618 2014-02-08 Terry Guo <terry.guo@arm.com>
32619
32620 * doc/invoke.texi: Document ARM -march=armv7e-m.
32621
32622 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32623
32624 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32625 flag on __cilkrts_rethrow builtin.
32626
32627 PR ipa/60026
32628 * ipa-cp.c (determine_versionability): Fail at -O0
32629 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32630 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32631
32632 Revert:
32633 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32634
32635 PR ipa/60026
32636 * tree-inline.c (copy_forbidden): Fail for
32637 __attribute__((optimize (0))) functions.
32638
32639 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32640
32641 * varpool.c: Include pointer-set.h.
32642 (varpool_remove_unreferenced_decls): Variables in other partitions
32643 will not be output; be however careful to not lose information
32644 about partitioning.
32645
32646 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32647
32648 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32649 lookup in the vtable constructor.
32650
32651 2014-02-07 Jeff Law <law@redhat.com>
32652
32653 PR target/40977
32654 * config/m68k/m68k.md (ashldi_extsi): Turn into a
32655 define_insn_and_split.
32656
32657 * ipa-inline.c (inline_small_functions): Fix typos.
32658
32659 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32660
32661 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
32662 (s390_can_use_return_insn): Declare.
32663 * config/s390/s390.h (EPILOGUE_USES): Define.
32664 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
32665 instructions.
32666 (s390_chunkify_start): Handle return JUMP_LABELs.
32667 (s390_early_mach): Emit a main_pool instruction on the entry edge.
32668 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
32669 (s390_can_use_return_insn): New functions.
32670 (s390_fix_long_loop_prediction): Handle conditional returns.
32671 (TARGET_SET_UP_BY_PROLOGUE): Define.
32672 * config/s390/s390.md (ANY_RETURN): New code iterator.
32673 (*creturn, *csimple_return, return, simple_return): New patterns.
32674
32675 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32676
32677 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32678 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
32679 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
32680 REG_CFA_RESTORE list when deciding not to restore a register.
32681
32682 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32683
32684 * config/s390/s390.c: Include tree-pass.h and context.h.
32685 (s390_early_mach): New function, split out from...
32686 (s390_emit_prologue): ...here.
32687 (pass_data_s390_early_mach): New pass structure.
32688 (pass_s390_early_mach): New class.
32689 (s390_option_override): Create and register early_mach pass.
32690 Move to end of file.
32691
32692 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32693
32694 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32695 to match for the exit block.
32696
32697 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32698
32699 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32700 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32701 Reject misaligned operands.
32702
32703 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32704
32705 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
32706
32707 2014-02-07 Richard Biener <rguenther@suse.de>
32708
32709 PR middle-end/60092
32710 * gimple-low.c (lower_builtin_posix_memalign): New function.
32711 (lower_stmt): Call it to lower posix_memalign in a way
32712 to make alignment info accessible.
32713
32714 2014-02-07 Jakub Jelinek <jakub@redhat.com>
32715
32716 PR c++/60082
32717 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
32718 __builtin_setjmp_receiver.
32719
32720 2014-02-07 Richard Biener <rguenther@suse.de>
32721
32722 PR middle-end/60092
32723 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
32724 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
32725 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32726 Handle BUILT_IN_POSIX_MEMALIGN.
32727 (find_func_clobbers): Likewise.
32728 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32729 (call_may_clobber_ref_p_1): Likewise.
32730
32731 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32732
32733 PR ipa/59918
32734 * ipa-devirt.c (record_target_from_binfo): Remove overactive
32735 sanity check.
32736
32737 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32738
32739 PR ipa/59469
32740 * lto-cgraph.c (lto_output_node): Use
32741 symtab_get_symbol_partitioning_class.
32742 (lto_output_varpool_node): likewise.
32743 (symtab_get_symbol_partitioning_class): Move here from
32744 lto/lto-partition.c
32745 * cgraph.h (symbol_partitioning_class): Likewise.
32746 (symtab_get_symbol_partitioning_class): Declare.
32747
32748 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32749
32750 * ggc.h (ggc_internal_cleared_alloc): New macro.
32751 * vec.h (vec_safe_copy): Handle memory stats.
32752 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
32753 * target-globals.c (save_target_globals): Likewise.
32754
32755 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32756
32757 PR target/60077
32758 * expr.c (emit_move_resolve_push): Export; be bit more selective
32759 on when to clear alias set.
32760 * expr.h (emit_move_resolve_push): Declare.
32761 * function.h (struct function): Add tail_call_marked.
32762 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
32763 * config/i386/i386-protos.h (ix86_expand_push): Remove.
32764 * config/i386/i386.md (TImode move expander): De not call
32765 ix86_expand_push.
32766 (FP push expanders): Preserve memory attributes.
32767 * config/i386/sse.md (push<mode>1): Remove.
32768 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
32769 (ix86_expand_push): Remove.
32770 * config/i386/mmx.md (push<mode>1): Remove.
32771
32772 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32773
32774 PR rtl-optimization/60030
32775 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
32776 lopart with paradoxical subreg before shifting it up by hprec.
32777
32778 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32779
32780 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
32781 Remove extra newline at end of file.
32782 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
32783 (arm_issue_rate): Handle cortexa57.
32784 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
32785 (cortex-a57.cortex-a53): Likewise.
32786
32787 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32788
32789 PR target/59575
32790 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
32791 don't record in REG_FRAME_RELATED_EXPR registers not set in that
32792 bitmask.
32793 (arm_expand_prologue): Adjust all callers.
32794 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
32795 info, registers also at the lowest numbered registers side. Use
32796 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
32797 XEXP.
32798
32799 PR debug/59992
32800 * var-tracking.c (adjust_mems): Before adding a SET to
32801 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
32802
32803 2014-02-06 Alan Modra <amodra@gmail.com>
32804
32805 PR target/60032
32806 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
32807 change SDmode to DDmode when lra_in_progress.
32808
32809 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32810
32811 PR middle-end/59150
32812 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
32813 free_data_ref on the dr first, and before goto again also set dr
32814 to the next dr. For simd_lane_access, free old datarefs[i] before
32815 overwriting it. For get_vectype_for_scalar_type failure, don't
32816 free_data_ref if simd_lane_access.
32817
32818 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
32819
32820 PR target/60062
32821 * tree.h (opts_for_fn): New inline function.
32822 (opt_for_fn): Define.
32823 * config/i386/i386.c (ix86_function_regparm): Use
32824 opt_for_fn (decl, optimize) instead of optimize.
32825
32826 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
32827
32828 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
32829 for SYMBOL_REF in large memory model.
32830
32831 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32832
32833 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
32834 and crypto support.
32835 (cortex-a57): Likewise.
32836 (cortex-a57.cortex-a53): Likewise.
32837
32838 2014-02-06 Yury Gribov <y.gribov@samsung.com>
32839 Kugan Vivekanandarajah <kuganv@linaro.org>
32840
32841 * config/arm/arm.c (arm_vector_alignment_reachable): Check
32842 unaligned_access.
32843 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
32844
32845 2014-02-06 Richard Biener <rguenther@suse.de>
32846
32847 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
32848 set_loop_copy and initialize_original_copy_tables.
32849
32850 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
32851
32852 * config/aarch64/aarch64-simd.md
32853 (aarch64_ashr_simddi): Change QI to SI.
32854
32855 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
32856 Jakub Jelinek <jakub@redhat.com>
32857
32858 PR middle-end/60013
32859 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
32860 of the dataflow.
32861
32862 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32863
32864 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
32865 CODE_FOR_altivec_vpku[hw]um to
32866 CODE_FOR_altivec_vpku[hw]um_direct.
32867 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
32868 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
32869 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
32870 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
32871
32872 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32873
32874 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
32875 generation for -maltivec=be.
32876 (altivec_vsumsws): Simplify redundant test.
32877
32878 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32879
32880 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
32881 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
32882 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
32883 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
32884 gen_altivec_vpkuwum.
32885 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
32886 BYTES_BIG_ENDIAN.
32887 (altivec_vpks<VI_char>ss): Likewise.
32888 (altivec_vpks<VI_char>us): Likewise.
32889 (altivec_vpku<VI_char>us): Likewise.
32890 (altivec_vpku<VI_char>um): Likewise.
32891 (altivec_vpku<VI_char>um_direct): New (copy of
32892 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
32893 internal use).
32894 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
32895 target is little endian and -maltivec=be is not specified.
32896 (*altivec_vupkhs<VU_char>_direct): New (copy of
32897 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
32898 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
32899 target is little endian and -maltivec=be is not specified.
32900 (*altivec_vupkls<VU_char>_direct): New (copy of
32901 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
32902 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
32903 little endian and -maltivec=be is not specified.
32904 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
32905 little endian and -maltivec=be is not specified.
32906
32907 2014-02-05 Richard Henderson <rth@redhat.com>
32908
32909 PR debug/52727
32910 * combine-stack-adj.c: Revert r206943.
32911 * sched-int.h (struct deps_desc): Add last_args_size.
32912 * sched-deps.c (init_deps): Initialize it.
32913 (sched_analyze_insn): Add OUTPUT dependencies between insns that
32914 contain REG_ARGS_SIZE notes.
32915
32916 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
32917
32918 * lto-cgraph.c (asm_nodes_output): Make global.
32919 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
32920 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
32921 (driver_handle_option): Handle OPT_fwpa.
32922
32923 2014-02-05 Jakub Jelinek <jakub@redhat.com>
32924
32925 PR ipa/59947
32926 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
32927 a comment typo and formatting issue. If odr_hash hasn't been
32928 created, return vNULL and set *completep to false.
32929
32930 PR middle-end/57499
32931 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
32932 bb with no successors.
32933
32934 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
32935
32936 PR target/59718
32937 * doc/invoke.texi (-march): Clarify documentation for ARM.
32938 (-mtune): Likewise.
32939 (-mcpu): Likewise.
32940
32941 2014-02-05 Richard Biener <rguenther@suse.de>
32942
32943 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
32944 when not vectorizing because of too many alias checks.
32945 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32946 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
32947
32948 2014-02-05 Nick Clifton <nickc@redhat.com>
32949
32950 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
32951 accept extended registers in any mode when compiling for the MN10300.
32952
32953 2014-02-05 Yury Gribov <y.gribov@samsung.com>
32954
32955 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
32956 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
32957 sanitization attributes.
32958 (can_inline_edge_p): Likewise.
32959 (sanitize_attrs_match_for_inline_p): New function.
32960
32961 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32962
32963 * ipa-prop.c (detect_type_change): Shor circuit testing of
32964 type changes on THIS pointer.
32965
32966 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
32967
32968 PR target/59777
32969 * config/pa/pa.c (legitimize_tls_address): Return original address
32970 if not passed a SYMBOL_REF rtx.
32971 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
32972 addresses.
32973 (pa_emit_move_sequence): Simplify TLS source operands.
32974 (pa_legitimate_constant_p): Reject all TLS constants.
32975 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
32976 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
32977
32978 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32979
32980 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
32981 groups when we know they are controlled by LTO.
32982 * varasm.c (default_binds_local_p_1): If object is in other partition,
32983 it will be resolved locally.
32984
32985 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
32986
32987 * config/host-linux.c (linux_gt_pch_use_address): Don't
32988 use SSIZE_MAX because it is not always defined.
32989
32990 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
32991
32992 PR bootstrap/59913
32993 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
32994 threshold for pseudo splitting.
32995 (update_ebb_live_info): Process call argument hard registers and
32996 hard registers from insn definition too.
32997 (max_small_class_regs_num): New constant.
32998 (inherit_in_ebb): Update live hard regs through EBBs. Update
32999 reloads_num only for small register classes. Don't split for
33000 outputs of jumps.
33001
33002 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
33003
33004 PR ipa/60058
33005 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33006 is non-null.
33007
33008 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33009
33010 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33011 visibility is safe.
33012
33013 2014-02-04 Marek Polacek <polacek@redhat.com>
33014
33015 * gdbinit.in (pel): Define.
33016
33017 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33018
33019 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33020 behavior.
33021
33022 2014-02-04 Richard Biener <rguenther@suse.de>
33023
33024 PR lto/59723
33025 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33026 in function context local.
33027 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33028 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33029 similar to LTO_imported_decl_ref.
33030
33031 2014-02-04 Jakub Jelinek <jakub@redhat.com>
33032
33033 PR tree-optimization/60002
33034 * cgraphclones.c (build_function_decl_skip_args): Clear
33035 DECL_LANG_SPECIFIC.
33036
33037 PR tree-optimization/60023
33038 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33039 false to gsi_replace.
33040 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33041 has been in some EH region and vec_stmt could throw, add
33042 vec_stmt into the same EH region.
33043 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33044 has no lhs, ignore it.
33045 * internal-fn.c (expand_MASK_LOAD): Likewise.
33046
33047 PR ipa/60026
33048 * tree-inline.c (copy_forbidden): Fail for
33049 __attribute__((optimize (0))) functions.
33050
33051 PR other/58712
33052 * omp-low.c (simd_clone_struct_copy): If from->inbranch
33053 is set, copy one less argument.
33054 (expand_simd_clones): Don't subtract clone_info->inbranch
33055 from simd_clone_struct_alloc argument.
33056
33057 PR rtl-optimization/57915
33058 * recog.c (simplify_while_replacing): If all unary/binary/relational
33059 operation arguments are constant, attempt to simplify those.
33060
33061 PR middle-end/59261
33062 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33063 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33064
33065 2014-02-04 Richard Biener <rguenther@suse.de>
33066
33067 PR tree-optimization/60012
33068 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33069 TBAA disambiguation to all DDRs.
33070
33071 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33072
33073 PR target/59788
33074 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33075 (LINK_SPEC): Use it for -shared, -shared-libgcc.
33076
33077 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33078
33079 PR ipa/59882
33080 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33081
33082 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33083
33084 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33085 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33086
33087 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33088
33089 PR ipa/59831
33090 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33091 to figure out targets of polymorphic calls with known decl.
33092 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33093 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33094 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33095 (get_polymorphic_call_info): ... here.
33096 (get_polymorphic_call_info_from_invariant): New function.
33097
33098 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33099
33100 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33101 lookup via vtable pointer; check for type consistency
33102 and turn inconsitent facts into UNREACHABLE.
33103 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33104 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33105 type inconsistent querries; return UNREACHABLE instead.
33106
33107 2014-02-03 Richard Henderson <rth@twiddle.net>
33108
33109 PR tree-opt/59924
33110 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33111 already processed this node.
33112 (normalize_one_pred_1): Pass along mark_set.
33113 (normalize_one_pred): Create and destroy a pointer_set_t.
33114 (normalize_one_pred_chain): Likewise.
33115
33116 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
33117
33118 PR gcov-profile/58602
33119 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33120
33121 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33122
33123 PR ipa/59831
33124 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33125 -fno-devirtualize; try to devirtualize by the knowledge of
33126 virtual table pointer given by aggregate propagation.
33127 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33128 (ipa_print_node_jump_functions): Dump also offset that
33129 is relevant for polymorphic calls.
33130 (determine_known_aggregate_parts): Add arg_type parameter; use it
33131 instead of determining the type from pointer type.
33132 (ipa_compute_jump_functions_for_edge): Update call of
33133 determine_known_aggregate_parts.
33134 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33135 (gimple_get_virt_method_for_binfo): ... here; simplify using
33136 vtable_pointer_value_to_vtable.
33137 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33138 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33139 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33140 (vtable_pointer_value_to_vtable): Break out from ...; handle also
33141 POINTER_PLUS_EXPR.
33142 (vtable_pointer_value_to_binfo): ... here.
33143 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33144
33145 2014-02-03 Teresa Johnson <tejohnson@google.com>
33146
33147 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33148 redef of outer loop index variable.
33149
33150 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
33151
33152 PR c++/53017
33153 PR c++/59211
33154 * doc/extend.texi (Function Attributes): Typo.
33155
33156 2014-02-03 Cong Hou <congh@google.com>
33157
33158 PR tree-optimization/60000
33159 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33160 if the vectorized statement is a store. A store statement can only
33161 appear at the end of pattern statements.
33162
33163 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33164
33165 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33166 (ix86_option_override_internal): Default long double to 64-bit for
33167 32-bit Bionic and to 128-bit for 64-bit Bionic.
33168
33169 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33170 TARGET_LONG_DOUBLE_128 is true.
33171 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33172
33173 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33174 (mlong-double-64): Negate -mlong-double-128.
33175 (mlong-double-128): New option.
33176
33177 * config/i386/i386-c.c (ix86_target_macros): Define
33178 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
33179
33180 * doc/invoke.texi: Document -mlong-double-128.
33181
33182 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33183
33184 PR rtl-optimization/60024
33185 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
33186
33187 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
33188
33189 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
33190
33191 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33192
33193 PR rtl-optimization/57662
33194 * sel-sched.c (code_motion_path_driver): Do not mark already not
33195 existing blocks in the visiting bitmap.
33196
33197 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33198
33199 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
33200 on the insn being emitted.
33201
33202 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
33203 Will Deacon <will.deacon@arm.com>
33204
33205 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
33206
33207 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33208
33209 * config/arm/arm-tables.opt: Regenerate.
33210
33211 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33212
33213 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33214 for vector types other than V16QImode.
33215 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33216 define_expand, and call altivec_expand_vec_perm_le when producing
33217 code with little endian element order.
33218 (*altivec_vperm_<mode>_internal): New insn having previous
33219 behavior of altivec_vperm_<mode>.
33220 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33221 altivec_expand_vec_perm_le when producing code with little endian
33222 element order.
33223 (*altivec_vperm_<mode>_uns_internal): New insn having previous
33224 behavior of altivec_vperm_<mode>_uns.
33225
33226 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33227
33228 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33229 (altivec_vsumsws): Add handling for -maltivec=be with a little
33230 endian target.
33231 (altivec_vsumsws_direct): New.
33232 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33233 gen_altivec_vsumsws.
33234
33235 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33236
33237 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33238 vtable_pointer_value_to_binfo): New functions.
33239 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33240 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33241
33242 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
33243
33244 * config/nios2/nios2.md (load_got_register): Initialize GOT
33245 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33246 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33247
33248 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33249
33250 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33251 preserverd by passthrough, do not propagate the type.
33252
33253 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33254
33255 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33256 (mips_atomic_assign_expand_fenv): New function.
33257 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33258
33259 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33260
33261 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33262 (__builtin_mips_set_fcsr): Likewise.
33263 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33264 MIPS_USI_FTYPE_VOID.
33265 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33266 (mips16_expand_set_fcsr): Likewise.
33267 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33268 (mips16_set_fcsr_stub): Likewise.
33269 (mips16_get_fcsr_one_only_stub): New class.
33270 (mips16_set_fcsr_one_only_stub): Likewise.
33271 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33272 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33273 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33274 (hard_float): New availability predicate.
33275 (mips_builtins): Add get_fcsr and set_fcsr.
33276 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33277 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33278 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33279 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33280 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33281 patterns.
33282
33283 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33284
33285 * config/mips/mips.c (mips_one_only_stub): New class.
33286 (mips_need_mips16_rdhwr_p): Replace with...
33287 (mips16_rdhwr_stub): ...this new variable.
33288 (mips16_stub_call_address): New function.
33289 (mips16_rdhwr_one_only_stub): New class.
33290 (mips_expand_thread_pointer): Use mips16_stub_call_address.
33291 (mips_output_mips16_rdhwr): Delete.
33292 (mips_finish_stub): New function.
33293 (mips_code_end): Use it to handle rdhwr stubs.
33294
33295 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
33296
33297 PR target/60017
33298 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33299 when calculating size of integer atomic types.
33300
33301 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
33302
33303 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33304
33305 2014-02-01 Jakub Jelinek <jakub@redhat.com>
33306
33307 PR tree-optimization/60003
33308 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33309 * profile.c (branch_prob): Use gimple_call_builtin_p
33310 to check for BUILT_IN_SETJMP_RECEIVER.
33311 * tree-inline.c (copy_bb): Call notice_special_calls.
33312
33313 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
33314
33315 PR bootstrap/59985
33316 * lra-constraints.c (process_alt_operands): Update reload_sum only
33317 on the first pass.
33318
33319 2014-01-31 Richard Henderson <rth@redhat.com>
33320
33321 PR middle-end/60004
33322 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
33323 until after else_eh is processed.
33324
33325 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33326
33327 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
33328 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
33329 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
33330 in smmintrin.h, remove them.
33331 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
33332 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
33333 * config/i386/i386.md (ROUND_SAE): Fix value.
33334 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
33335 (const48_operand): New.
33336 * config/i386/subst.md (round), (round_expand): Use
33337 const_4_or_8_to_11_operand.
33338 (round_saeonly), (round_saeonly_expand): Use const48_operand.
33339
33340 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33341
33342 * config/i386/constraints.md (Yk): Swap meaning with k.
33343 * config/i386/i386.md (movhi_internal): Change Yk to k.
33344 (movqi_internal): Ditto.
33345 (*k<logic><mode>): Ditto.
33346 (*andhi_1): Ditto.
33347 (*andqi_1): Ditto.
33348 (kandn<mode>): Ditto.
33349 (*<code>hi_1): Ditto.
33350 (*<code>qi_1): Ditto.
33351 (kxnor<mode>): Ditto.
33352 (kortestzhi): Ditto.
33353 (kortestchi): Ditto.
33354 (kunpckhi): Ditto.
33355 (*one_cmplhi2_1): Ditto.
33356 (*one_cmplqi2_1): Ditto.
33357 * config/i386/sse.md (): Change k to Yk.
33358 (avx512f_load<mode>_mask): Ditto.
33359 (avx512f_blendm<mode>): Ditto.
33360 (avx512f_store<mode>_mask): Ditto.
33361 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
33362 (avx512f_storedqu<mode>_mask): Ditto.
33363 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
33364 Ditto.
33365 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
33366 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
33367 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
33368 (avx512f_maskcmp<mode>3): Ditto.
33369 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
33370 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
33371 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
33372 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
33373 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
33374 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
33375 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
33376 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
33377 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
33378 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
33379 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
33380 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
33381 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
33382 (vec_extract_lo_<mode>_maskm): Ditto.
33383 (vec_extract_hi_<mode>_maskm): Ditto.
33384 (avx512f_vternlog<mode>_mask): Ditto.
33385 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
33386 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
33387 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
33388 (avx512f_<code>v8div16qi2_mask): Ditto.
33389 (avx512f_<code>v8div16qi2_mask_store): Ditto.
33390 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
33391 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
33392 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
33393 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
33394 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33395 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33396 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33397 (*avx512pf_scatterpf<mode>df_mask): Ditto.
33398 (avx512cd_maskb_vec_dupv8di): Ditto.
33399 (avx512cd_maskw_vec_dupv16si): Ditto.
33400 (avx512f_vpermi2var<mode>3_maskz): Ditto.
33401 (avx512f_vpermi2var<mode>3_mask): Ditto.
33402 (avx512f_vpermi2var<mode>3_mask): Ditto.
33403 (avx512f_vpermt2var<mode>3_maskz): Ditto.
33404 (*avx512f_gathersi<mode>): Ditto.
33405 (*avx512f_gathersi<mode>_2): Ditto.
33406 (*avx512f_gatherdi<mode>): Ditto.
33407 (*avx512f_gatherdi<mode>_2): Ditto.
33408 (*avx512f_scattersi<mode>): Ditto.
33409 (*avx512f_scatterdi<mode>): Ditto.
33410 (avx512f_compress<mode>_mask): Ditto.
33411 (avx512f_compressstore<mode>_mask): Ditto.
33412 (avx512f_expand<mode>_mask): Ditto.
33413 * config/i386/subst.md (mask): Change k to Yk.
33414 (mask_scalar_merge): Ditto.
33415 (sd): Ditto.
33416
33417 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
33418
33419 * doc/extend.texi (Vector Extensions): Document ?: in C++.
33420
33421 2014-01-31 Richard Biener <rguenther@suse.de>
33422
33423 PR middle-end/59990
33424 * builtins.c (fold_builtin_memory_op): Make sure to not
33425 use a floating-point mode or a boolean or enumeral type for
33426 the copy operation.
33427
33428 2014-01-30 DJ Delorie <dj@redhat.com>
33429
33430 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
33431 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
33432 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
33433 whenever main() has an epilogue.
33434
33435 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33436
33437 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
33438 unused variable "field".
33439 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
33440 (vsx_mergeh_<mode>): Likewise.
33441 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
33442 (altivec_vmrghh): Likewise.
33443 (altivec_vmrghw): Likewise.
33444 (altivec_vmrglb): Likewise.
33445 (altivec_vmrglh): Likewise.
33446 (altivec_vmrglw): Likewise.
33447 (altivec_vspltb): Add missing uses.
33448 (altivec_vsplth): Likewise.
33449 (altivec_vspltw): Likewise.
33450 (altivec_vspltsf): Likewise.
33451
33452 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33453
33454 PR target/59923
33455 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
33456 frame related instructions.
33457
33458 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
33459
33460 PR rtl-optimization/59959
33461 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
33462 any reload of register whose subreg is invalid.
33463
33464 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33465
33466 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
33467 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
33468 Add missing return type - void.
33469
33470 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33471
33472 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
33473 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
33474 remove element index adjustment for endian (now handled in vsx.md
33475 and altivec.md).
33476 (altivec_expand_vec_perm_const): Use
33477 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
33478 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
33479 (vsx_xxspltw_<mode>): Adjust element index for little endian.
33480 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
33481 define_expand and a new define_insn *altivec_vspltb_internal;
33482 adjust for -maltivec=be on a little endian target.
33483 (altivec_vspltb_direct): New.
33484 (altivec_vsplth): Divide into a define_expand and a new
33485 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
33486 little endian target.
33487 (altivec_vsplth_direct): New.
33488 (altivec_vspltw): Divide into a define_expand and a new
33489 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
33490 little endian target.
33491 (altivec_vspltw_direct): New.
33492 (altivec_vspltsf): Divide into a define_expand and a new
33493 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
33494 a little endian target.
33495
33496 2014-01-30 Richard Biener <rguenther@suse.de>
33497
33498 PR tree-optimization/59993
33499 * tree-ssa-forwprop.c (associate_pointerplus): Check we
33500 can propagate form the earlier stmt and avoid the transform
33501 when the intermediate result is needed.
33502
33503 2014-01-30 Alangi Derick <alangiderick@gmail.com>
33504
33505 * README.Portability: Fix typo.
33506
33507 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
33508
33509 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
33510 comparison_operator with ordered_comparison_operator.
33511
33512 2014-01-30 Nick Clifton <nickc@redhat.com>
33513
33514 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
33515 Rename to mn10300_store_multiple_regs.
33516 * config/mn10300/mn10300.c: Likewise.
33517 * config/mn10300/mn10300.md (store_movm): Fix typo: call
33518 store_multiple_regs.
33519 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
33520 Call mn10300_store_multiple_regs.
33521
33522 2014-01-30 Nick Clifton <nickc@redhat.com>
33523 DJ Delorie <dj@redhat.com>
33524
33525 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
33526 %fp 2 to keep registers after it properly word-aligned.
33527 (rl78_alloc_physical_registers_umul): Handle the case where both
33528 input operands are the same.
33529
33530 2014-01-30 Richard Biener <rguenther@suse.de>
33531
33532 PR tree-optimization/59903
33533 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
33534 check properly.
33535
33536 2014-01-30 Jason Merrill <jason@redhat.com>
33537
33538 PR c++/59633
33539 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
33540
33541 PR c++/59645
33542 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
33543
33544 2014-01-30 Richard Biener <rguenther@suse.de>
33545
33546 PR tree-optimization/59951
33547 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
33548
33549 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
33550
33551 PR target/59784
33552 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
33553 SFmode to DFmode case.
33554
33555 2014-01-29 DJ Delorie <dj@redhat.com>
33556
33557 * config/msp430/msp430.opt (-minrt): New.
33558 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33559 if -minrt given.
33560 (ENDFILE_SPEC): Likewise.
33561
33562 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
33563
33564 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33565 (estimate_function_body_sizes): Use it.
33566
33567 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
33568
33569 PR c++/58561
33570 * dwarf2out.c (is_cxx_auto): New.
33571 (is_base_type): Use it.
33572 (gen_type_die_with_usage): Likewise.
33573
33574 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33575
33576 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
33577 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33578 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33579 -maltivec=be with LE targets.
33580 (vsx_mergeh_<mode>): Likewise.
33581 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33582 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33583 (altivec_vmrghb): Replace with define_expand and new
33584 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33585 (altivec_vmrghb_direct): New define_insn.
33586 (altivec_vmrghh): Replace with define_expand and new
33587 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33588 (altivec_vmrghh_direct): New define_insn.
33589 (altivec_vmrghw): Replace with define_expand and new
33590 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33591 (altivec_vmrghw_direct): New define_insn.
33592 (*altivec_vmrghsf): Adjust for endianness.
33593 (altivec_vmrglb): Replace with define_expand and new
33594 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33595 (altivec_vmrglb_direct): New define_insn.
33596 (altivec_vmrglh): Replace with define_expand and new
33597 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33598 (altivec_vmrglh_direct): New define_insn.
33599 (altivec_vmrglw): Replace with define_expand and new
33600 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33601 (altivec_vmrglw_direct): New define_insn.
33602 (*altivec_vmrglsf): Adjust for endianness.
33603 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33604 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33605 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33606 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33607 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33608 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33609 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33610 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33611
33612 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
33613
33614 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33615 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33616 whitespace.
33617
33618 2014-01-29 Richard Biener <rguenther@suse.de>
33619
33620 PR tree-optimization/58742
33621 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33622 associate_pointerplus_align.
33623 (associate_pointerplus_diff): New function.
33624 (associate_pointerplus): Likewise. Call associate_pointerplus_align
33625 and associate_pointerplus_diff.
33626
33627 2014-01-29 Richard Biener <rguenther@suse.de>
33628
33629 * lto-streamer.h (LTO_major_version): Bump to 3.
33630 (LTO_minor_version): Reset to 0.
33631
33632 2014-01-29 Renlin Li <Renlin.Li@arm.com>
33633
33634 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33635 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33636 (arm_file_start): Generate correct asm header for armv7ve.
33637 * config/arm/bpabi.h: Add multilib support for armv7ve.
33638 * config/arm/driver-arm.c: Change the architectures of cortex-a7
33639 and cortex-a15 to armv7ve.
33640 * config/arm/t-aprofile: Add multilib support for armv7ve.
33641 * doc/invoke.texi: Document -march=armv7ve.
33642
33643 2014-01-29 Richard Biener <rguenther@suse.de>
33644
33645 PR tree-optimization/58742
33646 * tree-ssa-forwprop.c (associate_plusminus): Return true
33647 if we changed sth, defer EH cleanup to ...
33648 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
33649 (simplify_mult): New function.
33650
33651 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33652
33653 PR middle-end/59917
33654 PR tree-optimization/59920
33655 * tree.c (build_common_builtin_nodes): Remove
33656 __builtin_setjmp_dispatcher initialization.
33657 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
33658 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
33659 instead of gsi_after_labels + manually skipping debug stmts.
33660 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
33661 ignore bbs with IFN_ABNORMAL_DISPATCHER.
33662 * tree-inline.c (copy_edges_for_bb): Remove
33663 can_make_abnormal_goto argument, instead add abnormal_goto_dest
33664 argument. Ignore computed_goto_p stmts. Don't call
33665 make_abnormal_goto_edges. If a call might need abnormal edges
33666 for non-local gotos, see if it already has an edge to
33667 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
33668 with true argument, don't do anything then, otherwise add
33669 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
33670 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
33671 caller.
33672 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
33673 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33674 (lower_stmt): Don't set data->calls_builtin_setjmp.
33675 (lower_builtin_setjmp): Adjust comment.
33676 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33677 * tree-cfg.c (found_computed_goto): Remove.
33678 (factor_computed_gotos): Remove.
33679 (make_goto_expr_edges): Return bool, true for computed gotos.
33680 Don't call make_abnormal_goto_edges.
33681 (build_gimple_cfg): Don't set found_computed_goto, don't call
33682 factor_computed_gotos.
33683 (computed_goto_p): No longer static.
33684 (make_blocks): Don't set found_computed_goto.
33685 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33686 (make_edges): If make_goto_expr_edges returns true, push bb
33687 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33688 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33689 vector. Record mapping between bbs and OpenMP regions if there
33690 are any, adjust make_gimple_omp_edges caller. Call
33691 handle_abnormal_edges.
33692 (make_abnormal_goto_edges): Remove.
33693 * tree-cfg.h (make_abnormal_goto_edges): Remove.
33694 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33695 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33696 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33697 * internal-fn.def (ABNORMAL_DISPATCHER): New.
33698 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33699 filling *region also set *region_idx to (*region)->entry->index.
33700
33701 PR other/58712
33702 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
33703 For REGs set ORIGINAL_REGNO.
33704
33705 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
33706
33707 * doc/md.texi: Mention that a target shouldn't implement
33708 vec_widen_(s|u)mul_even/odd pair if it is less efficient
33709 than hi/lo pair.
33710
33711 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33712
33713 PR tree-optimization/59594
33714 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
33715 a copy of the datarefs vector rather than the vector itself.
33716
33717 2014-01-28 Jason Merrill <jason@redhat.com>
33718
33719 PR c++/53756
33720 * dwarf2out.c (auto_die): New static.
33721 (gen_type_die_with_usage): Handle C++1y 'auto'.
33722 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
33723 on definition.
33724
33725 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
33726
33727 PR target/59672
33728 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
33729 (SPEC_X32): Likewise.
33730 (SPEC_64): Likewise.
33731 * config/i386/i386.c (ix86_option_override_internal): Turn off
33732 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
33733 for TARGET_16BIT.
33734 (x86_file_start): Output .code16gcc for TARGET_16BIT.
33735 * config/i386/i386.h (TARGET_16BIT): New macro.
33736 (TARGET_16BIT_P): Likewise.
33737 * config/i386/i386.opt: Add m16.
33738 * doc/invoke.texi: Document -m16.
33739
33740 2014-01-28 Jakub Jelinek <jakub@redhat.com>
33741
33742 PR preprocessor/59935
33743 * input.c (location_get_source_line): Bail out on when line number
33744 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
33745
33746 2014-01-28 Richard Biener <rguenther@suse.de>
33747
33748 PR tree-optimization/58742
33749 * tree-ssa-forwprop.c (associate_plusminus): Handle
33750 pointer subtraction of the form (T)(P + A) - (T)P.
33751
33752 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33753
33754 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
33755 at const_int_cost.
33756
33757 2014-01-28 Richard Biener <rguenther@suse.de>
33758
33759 Revert
33760 2014-01-28 Richard Biener <rguenther@suse.de>
33761
33762 PR rtl-optimization/45364
33763 PR rtl-optimization/59890
33764 * var-tracking.c (local_get_addr_clear_given_value): Handle
33765 already cleared slot.
33766 (val_reset): Handle not allocated local_get_addr_cache.
33767 (vt_find_locations): Use post-order on the inverted CFG.
33768
33769 2014-01-28 Richard Biener <rguenther@suse.de>
33770
33771 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
33772
33773 2014-01-28 Richard Biener <rguenther@suse.de>
33774
33775 PR rtl-optimization/45364
33776 PR rtl-optimization/59890
33777 * var-tracking.c (local_get_addr_clear_given_value): Handle
33778 already cleared slot.
33779 (val_reset): Handle not allocated local_get_addr_cache.
33780 (vt_find_locations): Use post-order on the inverted CFG.
33781
33782 2014-01-28 Alan Modra <amodra@gmail.com>
33783
33784 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
33785 * configure.ac <recursive call for build != host>: Define
33786 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
33787 and LD_FOR_BUILD too.
33788 * configure: Regenerate.
33789
33790 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
33791
33792 * config/i386/i386.c (get_builtin_code_for_version): Separate
33793 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
33794 Broadwell from Haswell.
33795
33796 2014-01-27 Steve Ellcey <sellcey@mips.com>
33797
33798 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33799 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
33800 * config/mips/mips.c (mips_option_override): Change setting
33801 of TARGET_DSP.
33802 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
33803 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
33804 Change from Mask to Var.
33805
33806 2014-01-27 Jeff Law <law@redhat.com>
33807
33808 * ipa-inline.c (inline_small_functions): Fix typo.
33809
33810 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
33811
33812 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
33813 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
33814 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
33815 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
33816 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
33817 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
33818 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
33819 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
33820 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
33821 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
33822 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
33823 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
33824 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
33825 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
33826 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
33827 (_mm512_storeu_epi64): Ditto.
33828 (_mm512_cmpge_epi32_mask): Ditto.
33829 (_mm512_cmpge_epu32_mask): Ditto.
33830 (_mm512_cmpge_epi64_mask): Ditto.
33831 (_mm512_cmpge_epu64_mask): Ditto.
33832 (_mm512_cmple_epi32_mask): Ditto.
33833 (_mm512_cmple_epu32_mask): Ditto.
33834 (_mm512_cmple_epi64_mask): Ditto.
33835 (_mm512_cmple_epu64_mask): Ditto.
33836 (_mm512_cmplt_epi32_mask): Ditto.
33837 (_mm512_cmplt_epu32_mask): Ditto.
33838 (_mm512_cmplt_epi64_mask): Ditto.
33839 (_mm512_cmplt_epu64_mask): Ditto.
33840 (_mm512_cmpneq_epi32_mask): Ditto.
33841 (_mm512_cmpneq_epu32_mask): Ditto.
33842 (_mm512_cmpneq_epi64_mask): Ditto.
33843 (_mm512_cmpneq_epu64_mask): Ditto.
33844 (_mm512_expand_pd): Ditto.
33845 (_mm512_expand_ps): Ditto.
33846 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
33847 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
33848 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
33849 * config/i386/i386.c (ix86_builtins): Add
33850 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
33851 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
33852 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
33853 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
33854 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
33855 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
33856 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
33857 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
33858 IX86_BUILTIN_PMOVUSQW512_MEM.
33859 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
33860 __builtin_ia32_pmovsqd512mem_mask,
33861 __builtin_ia32_pmovqd512mem_mask,
33862 __builtin_ia32_pmovusqw512mem_mask,
33863 __builtin_ia32_pmovsqw512mem_mask,
33864 __builtin_ia32_pmovqw512mem_mask,
33865 __builtin_ia32_pmovusdw512mem_mask,
33866 __builtin_ia32_pmovsdw512mem_mask,
33867 __builtin_ia32_pmovdw512mem_mask,
33868 __builtin_ia32_pmovqb512mem_mask,
33869 __builtin_ia32_pmovusqb512mem_mask,
33870 __builtin_ia32_pmovsqb512mem_mask,
33871 __builtin_ia32_pmovusdb512mem_mask,
33872 __builtin_ia32_pmovsdb512mem_mask,
33873 __builtin_ia32_pmovdb512mem_mask.
33874 (bdesc_args): Add __builtin_ia32_expanddf512,
33875 __builtin_ia32_expandsf512.
33876 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
33877 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
33878 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
33879 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
33880 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
33881 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
33882 (avx512f_<code>v8div16qi2_mask_store): This.
33883 (avx512f_expand<mode>): New.
33884
33885 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
33886
33887 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
33888 New.
33889 (_mm512_mask_prefetch_i64gather_pd): Ditto.
33890 (_mm512_prefetch_i32scatter_pd): Ditto.
33891 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
33892 (_mm512_prefetch_i64scatter_pd): Ditto.
33893 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
33894 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
33895 (_mm512_mask_prefetch_i64gather_ps): Ditto.
33896 (_mm512_prefetch_i32scatter_ps): Ditto.
33897 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
33898 (_mm512_prefetch_i64scatter_ps): Ditto.
33899 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
33900 * config/i386/i386-builtin-types.def: Define
33901 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
33902 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
33903 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
33904 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
33905 IX86_BUILTIN_SCATTERPFQPD.
33906 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
33907 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
33908 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
33909 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
33910 __builtin_ia32_scatterpfqps.
33911 (ix86_expand_builtin): Expand new built-ins.
33912 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
33913 fix memory access data type.
33914 (*avx512pf_gatherpf<mode>_mask): Ditto.
33915 (*avx512pf_gatherpf<mode>): Ditto.
33916 (avx512pf_scatterpf<mode>): Ditto.
33917 (*avx512pf_scatterpf<mode>_mask): Ditto.
33918 (*avx512pf_scatterpf<mode>): Ditto.
33919 (GATHER_SCATTER_SF_MEM_MODE): New.
33920 (avx512pf_gatherpf<mode>df): Ditto.
33921 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33922 (*avx512pf_scatterpf<mode>df): Ditto.
33923
33924 2014-01-27 Jakub Jelinek <jakub@redhat.com>
33925
33926 PR bootstrap/59934
33927 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
33928 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
33929 reached.
33930
33931 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
33932
33933 * common/config/arm/arm-common.c
33934 (arm_rewrite_mcpu): Handle multiple names.
33935 * config/arm/arm.h
33936 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33937
33938 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
33939
33940 * gimple-builder.h (create_gimple_tmp): Delete.
33941
33942 2014-01-27 Christian Bruel <christian.bruel@st.com>
33943
33944 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
33945 words comparisons.
33946
33947 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
33948
33949 * config/pa/pa.md (call): Generate indirect long calls to non-local
33950 functions when outputing 32-bit code.
33951 (call_value): Likewise except for special call to buggy powf function.
33952
33953 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
33954 portable runtime and PIC indirect calls.
33955 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
33956 and PIC call sequences. Use ldo instead of blr to set return register
33957 in PIC call sequence.
33958
33959 2014-01-25 Walter Lee <walt@tilera.com>
33960
33961 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
33962 avoid clobbering a live register.
33963
33964 2014-01-25 Walter Lee <walt@tilera.com>
33965
33966 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
33967 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
33968 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
33969 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
33970
33971 2014-01-25 Walter Lee <walt@tilera.com>
33972
33973 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
33974 arguments on even registers.
33975 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
33976 STACK_BOUNDARY.
33977 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
33978 (BIGGEST_ALIGNMENT): Ditto.
33979 (BIGGEST_FIELD_ALIGNMENT): Ditto.
33980
33981 2014-01-25 Walter Lee <walt@tilera.com>
33982
33983 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
33984 insns before bundling.
33985 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
33986
33987 2014-01-25 Walter Lee <walt@tilera.com>
33988
33989 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
33990 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
33991 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
33992
33993 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
33994
33995 * config/mips/constraints.md (kl): Delete.
33996 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
33997 define expands, using...
33998 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
33999 instructions for MIPS16.
34000 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34001 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34002
34003 2014-01-25 Walter Lee <walt@tilera.com>
34004
34005 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34006 (clzdi2): Ditto.
34007 (ffsdi2): Ditto.
34008
34009 2014-01-25 Walter Lee <walt@tilera.com>
34010
34011 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34012 (TARGET_EXPAND_TO_RTL_HOOK): Define.
34013
34014 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34015
34016 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34017 Handle XOR.
34018
34019 2014-01-25 Jakub Jelinek <jakub@redhat.com>
34020
34021 * print-rtl.c (in_call_function_usage): New var.
34022 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34023 EXPR_LIST mode as mode and not as reg note name.
34024
34025 PR middle-end/59561
34026 * cfgloopmanip.c (copy_loop_info): If
34027 loop->warned_aggressive_loop_optimizations, make sure
34028 the flag is set in target loop too.
34029
34030 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
34031
34032 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34033 flag_cilkplus.
34034 * builtins.def: Likewise.
34035 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34036 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34037 * ira.c (ira_setup_eliminable_regset): Likewise.
34038 * omp-low.c (gate_expand_omp): Likewise.
34039 (execute_lower_omp): Likewise.
34040 (diagnose_sb_0): Likewise.
34041 (gate_diagnose_omp_blocks): Likewise.
34042 (simd_clone_clauses_extract): Likewise.
34043 (gate): Likewise.
34044
34045 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34046
34047 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34048 correction for little endian...
34049 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34050 here.
34051
34052 2014-01-24 Jeff Law <law@redhat.com>
34053
34054 PR tree-optimization/59919
34055 * tree-vrp.c (find_assert_locations_1): Do not register asserts
34056 for non-returning calls.
34057
34058 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
34059
34060 * common/config/aarch64/aarch64-common.c
34061 (aarch64_rewrite_mcpu): Handle multiple names.
34062 * config/aarch64/aarch64.h
34063 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34064
34065 2014-01-24 Dodji Seketeli <dodji@redhat.com>
34066
34067 * input.c (add_file_to_cache_tab): Handle the case where fopen
34068 returns NULL.
34069
34070 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
34071
34072 PR target/59929
34073 * config/i386/i386.md (pushsf splitter): Get stack adjustment
34074 from push operand if code of push isn't PRE_DEC.
34075
34076 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
34077
34078 PR target/59909
34079 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34080 -mquad-memory-atomic. Update -mquad-memory documentation to say
34081 it is only used for non-atomic loads/stores.
34082
34083 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34084 -mquad-memory or -mquad-memory-atomic switches.
34085
34086 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34087 -mquad-memory-atomic to ISA 2.07 support.
34088
34089 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34090 to separate support of normal quad word memory operations (ldq, stq)
34091 from the atomic quad word memory operations.
34092
34093 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34094 support to separate non-atomic quad word operations from atomic
34095 quad word operations. Disable non-atomic quad word operations in
34096 little endian mode so that we don't have to swap words after the
34097 load and before the store.
34098 (quad_load_store_p): Add comment about atomic quad word support.
34099 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34100 options printed with -mdebug=reg.
34101
34102 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34103 -mquad-memory-atomic as the test for whether we have quad word
34104 atomic instructions.
34105 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34106 or -mp8-vector are used, allow byte/half-word atomic operations.
34107
34108 * config/rs6000/sync.md (load_lockedti): Insure that the address
34109 is a proper indexed or indirect address for the lqarx instruction.
34110 On little endian systems, swap the hi/lo registers after the lqarx
34111 instruction.
34112 (load_lockedpti): Use indexed_or_indirect_operand predicate to
34113 insure the address is valid for the lqarx instruction.
34114 (store_conditionalti): Insure that the address is a proper indexed
34115 or indirect address for the stqcrx. instruction. On little endian
34116 systems, swap the hi/lo registers before doing the stqcrx.
34117 instruction.
34118 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34119 insure the address is valid for the stqcrx. instruction.
34120
34121 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34122 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34123 type of quad memory support is available.
34124
34125 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
34126
34127 PR regression/59915
34128 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34129 there is a danger of looping.
34130
34131 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
34132
34133 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34134 force flag_ira_loop_pressure if set via command line.
34135
34136 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34137
34138 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34139 (ashr_simd): New builtin handling DI mode.
34140 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34141 (aarch64_sshr_simddi): New match pattern.
34142 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34143 (vshrd_n_s64): Likewise.
34144 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34145
34146 2014-01-23 Nick Clifton <nickc@redhat.com>
34147
34148 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34149 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34150 favour of mcu specific scripts.
34151 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34152 430x multilibs.
34153
34154 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34155 Alex Velenko <Alex.Velenko@arm.com>
34156
34157 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34158 (vaddv_s16): Likewise.
34159 (vaddv_s32): Likewise.
34160 (vaddv_u8): Likewise.
34161 (vaddv_u16): Likewise.
34162 (vaddv_u32): Likewise.
34163 (vaddvq_s8): Likewise.
34164 (vaddvq_s16): Likewise.
34165 (vaddvq_s32): Likewise.
34166 (vaddvq_s64): Likewise.
34167 (vaddvq_u8): Likewise.
34168 (vaddvq_u16): Likewise.
34169 (vaddvq_u32): Likewise.
34170 (vaddvq_u64): Likewise.
34171 (vaddv_f32): Likewise.
34172 (vaddvq_f32): Likewise.
34173 (vaddvq_f64): Likewise.
34174 (vmaxv_f32): Likewise.
34175 (vmaxv_s8): Likewise.
34176 (vmaxv_s16): Likewise.
34177 (vmaxv_s32): Likewise.
34178 (vmaxv_u8): Likewise.
34179 (vmaxv_u16): Likewise.
34180 (vmaxv_u32): Likewise.
34181 (vmaxvq_f32): Likewise.
34182 (vmaxvq_f64): Likewise.
34183 (vmaxvq_s8): Likewise.
34184 (vmaxvq_s16): Likewise.
34185 (vmaxvq_s32): Likewise.
34186 (vmaxvq_u8): Likewise.
34187 (vmaxvq_u16): Likewise.
34188 (vmaxvq_u32): Likewise.
34189 (vmaxnmv_f32): Likewise.
34190 (vmaxnmvq_f32): Likewise.
34191 (vmaxnmvq_f64): Likewise.
34192 (vminv_f32): Likewise.
34193 (vminv_s8): Likewise.
34194 (vminv_s16): Likewise.
34195 (vminv_s32): Likewise.
34196 (vminv_u8): Likewise.
34197 (vminv_u16): Likewise.
34198 (vminv_u32): Likewise.
34199 (vminvq_f32): Likewise.
34200 (vminvq_f64): Likewise.
34201 (vminvq_s8): Likewise.
34202 (vminvq_s16): Likewise.
34203 (vminvq_s32): Likewise.
34204 (vminvq_u8): Likewise.
34205 (vminvq_u16): Likewise.
34206 (vminvq_u32): Likewise.
34207 (vminnmv_f32): Likewise.
34208 (vminnmvq_f32): Likewise.
34209 (vminnmvq_f64): Likewise.
34210
34211 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34212
34213 * config/aarch64/aarch64-simd.md
34214 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34215 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34216 (*aarch64_mul3_elt<mode>): Likewise.
34217 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34218 (*aarch64_mul3_elt_to_64v2df): Likewise.
34219 (*aarch64_mla_elt<mode>): Likewise.
34220 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34221 (*aarch64_mls_elt<mode>): Likewise.
34222 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34223 (*aarch64_fma4_elt<mode>): Likewise.
34224 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34225 (*aarch64_fma4_elt_to_64v2df): Likewise.
34226 (*aarch64_fnma4_elt<mode>): Likewise.
34227 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34228 (*aarch64_fnma4_elt_to_64v2df): Likewise.
34229 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34230 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34231 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34232 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34233 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34234 (aarch64_sqdmull_lane<mode>_internal): Likewise.
34235 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34236
34237 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
34238
34239 * config/aarch64/aarch64-simd.md
34240 (aarch64_be_checked_get_lane<mode>): New define_expand.
34241 * config/aarch64/aarch64-simd-builtins.def
34242 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34243 New builtin definition.
34244 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34245 Use new safe be builtin.
34246
34247 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34248
34249 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34250 New define_insn.
34251 (aarch64_be_st1<mode>): Likewise.
34252 (aarch_ld1<VALL:mode>): Define_expand modified.
34253 (aarch_st1<VALL:mode>): Likewise.
34254 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34255 (UNSPEC_ST1): Likewise.
34256
34257 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
34258
34259 * config/microblaze/microblaze.md: Add trap insn and attribute
34260
34261 2014-01-23 Dodji Seketeli <dodji@redhat.com>
34262
34263 PR preprocessor/58580
34264 * input.h (location_get_source_line): Take an additional line_size
34265 parameter.
34266 (void diagnostics_file_cache_fini): Declare new function.
34267 * input.c (struct fcache): New type.
34268 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34269 New static constants.
34270 (diagnostic_file_cache_init, total_lines_num)
34271 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34272 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34273 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34274 (get_next_line, read_next_line, goto_next_line, read_line_num):
34275 New static function definitions.
34276 (diagnostic_file_cache_fini): New function.
34277 (location_get_source_line): Take an additional output line_len
34278 parameter. Re-write using lookup_or_add_file_to_cache_tab and
34279 read_line_num.
34280 * diagnostic.c (diagnostic_finish): Call
34281 diagnostic_file_cache_fini.
34282 (adjust_line): Take an additional input parameter for the length
34283 of the line, rather than calculating it with strlen.
34284 (diagnostic_show_locus): Adjust the use of
34285 location_get_source_line and adjust_line with respect to their new
34286 signature. While displaying a line now, do not stop at the first
34287 null byte. Rather, display the zero byte as a space and keep
34288 going until we reach the size of the line.
34289 * Makefile.in: Add vec.o to OBJS-libcommon
34290
34291 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34292 Ilya Tocar <ilya.tocar@intel.com>
34293
34294 * config/i386/avx512fintrin.h (_mm512_kmov): New.
34295 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34296 (__builtin_ia32_kmov16): Ditto.
34297 * config/i386/i386.md (UNSPEC_KMOV): New.
34298 (kmovw): Ditto.
34299
34300 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34301
34302 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34303 (_mm512_storeu_si512): Ditto.
34304
34305 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
34306
34307 PR target/52125
34308 * rtl.h (get_referenced_operands): Declare.
34309 * recog.c (get_referenced_operands): New function.
34310 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
34311 operands have been referenced when recording LO_SUM references.
34312
34313 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
34314
34315 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
34316
34317 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34318
34319 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
34320 Enable for generic and recent AMD targets.
34321
34322 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34323
34324 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
34325 ARG_SIZE note when adjustment was eliminated.
34326
34327 2014-01-22 Jeff Law <law@redhat.com>
34328
34329 PR tree-optimization/59597
34330 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
34331 in file. Accept new argument REGISTERING and use it to modify
34332 dump output appropriately.
34333 (register_jump_thread): Corresponding changes.
34334 (mark_threaded_blocks): Reinstate code to cancel unprofitable
34335 thread paths involving joiner blocks. Add code to dump cancelled
34336 jump threading paths.
34337
34338 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
34339
34340 PR rtl-optimization/59477
34341 * lra-constraints.c (inherit_in_ebb): Process call for living hard
34342 regs. Update reloads_num and potential_reload_hard_regs for all insns.
34343
34344 2014-01-22 Tom Tromey <tromey@redhat.com>
34345
34346 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
34347 PARAMS.
34348 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
34349
34350 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34351
34352 PR rtl-optimization/59896
34353 * lra-constraints.c (process_alt_operands): Check unused note for
34354 matched operands of insn with no output reloads.
34355
34356 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
34357
34358 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
34359 (mips_move_from_gpr_cost): Likewise.
34360
34361 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34362
34363 PR rtl-optimization/59858
34364 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
34365 ira_class_hard_regs_num.
34366 (process_alt_operands): Increase reject for dying matched operand.
34367
34368 2014-01-21 Jakub Jelinek <jakub@redhat.com>
34369
34370 PR target/59003
34371 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
34372 smaller than size, perform several stores or loads and stores
34373 at dst + count - size to store or copy all of size bytes, rather
34374 than just last modesize bytes.
34375
34376 2014-01-20 DJ Delorie <dj@redhat.com>
34377
34378 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
34379 that CLOBBERs are REGs before propogating their values.
34380
34381 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
34382
34383 PR middle-end/59789
34384 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
34385 (cgraph_inline_failed_type): New function.
34386 * cgraph.h (DEFCIFCODE): Add type.
34387 (cgraph_inline_failed_type_t): New enum.
34388 (cgraph_inline_failed_type): New prototype.
34389 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
34390 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34391 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
34392 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
34393 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
34394 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
34395 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
34396 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
34397 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
34398 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
34399 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
34400 OPTIMIZATION_MISMATCH.
34401 * tree-inline.c (expand_call_inline): Emit errors during
34402 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
34403
34404 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34405
34406 PR target/59685
34407 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
34408 mode attribute in insn output.
34409
34410 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
34411
34412 * output.h (output_constant): Delete.
34413 * varasm.c (output_constant): Make private.
34414
34415 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
34416
34417 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
34418
34419 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34420
34421 PR middle-end/59860
34422 * tree.h (fold_builtin_strcat): New prototype.
34423 * builtins.c (fold_builtin_strcat): No longer static. Add len
34424 argument, if non-NULL, don't call c_strlen. Optimize
34425 directly into __builtin_memcpy instead of __builtin_strcpy.
34426 (fold_builtin_2): Adjust fold_builtin_strcat caller.
34427 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
34428
34429 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34430
34431 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34432 for SImode_address_operand operands, having only a REG argument.
34433
34434 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
34435
34436 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34437 loader name using mbig-endian.
34438 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
34439
34440 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34441
34442 * doc/invoke.texi (-march): Clarify documentation for AArch64.
34443 (-mtune): Likewise.
34444 (-mcpu): Likewise.
34445
34446 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
34447
34448 * config/aarch64/aarch64-protos.h
34449 (aarch64_cannot_change_mode_class_ptr): Declare.
34450 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
34451 aarch64_cannot_change_mode_class_ptr): New.
34452 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
34453 backend hook aarch64_cannot_change_mode_class.
34454
34455 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34456
34457 * common/config/aarch64/aarch64-common.c
34458 (aarch64_handle_option): Don't handle any option order logic here.
34459 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
34460 selected_cpu, warn on architecture version mismatch.
34461 (aarch64_override_options): Fix parsing order for option strings.
34462
34463 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34464 Iain Sandoe <iain@codesourcery.com>
34465
34466 PR bootstrap/59496
34467 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
34468 warning. Amend comment to reflect current functionality.
34469
34470 2014-01-20 Richard Biener <rguenther@suse.de>
34471
34472 PR middle-end/59860
34473 * builtins.c (fold_builtin_strcat): Remove case better handled
34474 by tree-ssa-strlen.c.
34475
34476 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
34477
34478 * config/aarch64/aarch64.opt
34479 (mcpu, march, mtune): Make case-insensitive.
34480
34481 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34482
34483 PR target/59880
34484 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34485 if operands[1] is a REG or ZERO_EXTEND of a REG.
34486
34487 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
34488
34489 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
34490
34491 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
34492
34493 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
34494 long non-pic millicode calls.
34495
34496 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34497
34498 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
34499
34500 2014-01-19 Kito Cheng <kito@0xlab.org>
34501
34502 * builtins.c (expand_movstr): Check movstr expand done or fail.
34503
34504 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34505 H.J. Lu <hongjiu.lu@intel.com>
34506
34507 PR target/59379
34508 * config/i386/i386.md (*lea<mode>): Zero-extend return register
34509 to DImode for zero-extended addresses.
34510
34511 2014-01-19 Jakub Jelinek <jakub@redhat.com>
34512
34513 PR rtl-optimization/57763
34514 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
34515 on the new indirect jump_insn and increment LABEL_NUSES (label).
34516
34517 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
34518
34519 PR bootstrap/59580
34520 PR bootstrap/59583
34521 * config.gcc (x86_archs): New variable.
34522 (x86_64_archs): Likewise.
34523 (x86_cpus): Likewise.
34524 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
34525 --with-arch/--with-cpu= options.
34526 Support --with-arch=/--with-cpu={nehalem,westmere,
34527 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
34528
34529 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34530
34531 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
34532 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
34533
34534 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34535
34536 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
34537
34538 2014-01-18 Jakub Jelinek <jakub@redhat.com>
34539
34540 PR target/58944
34541 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
34542 clear cpp_get_options (parse_in)->warn_unused_macros for
34543 ix86_target_macros_internal with cpp_define.
34544
34545 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
34546
34547 * jump.c (delete_related_insns): Keep (use (insn))s.
34548 * reorg.c (redundant_insn): Check for barriers too.
34549
34550 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34551
34552 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
34553
34554 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
34555
34556 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
34557 call to $$dyncall when TARGET_LONG_CALLS is true.
34558
34559 2014-01-17 Jeff Law <law@redhat.com>
34560
34561 * ree.c (combine_set_extension): Temporarily disable test for
34562 changing number of hard registers.
34563
34564 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34565
34566 PR middle-end/58125
34567 * ipa-inline-analysis.c (inline_free_summary):
34568 Do not free summary of aliases.
34569
34570 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34571
34572 PR middle-end/59706
34573 * gimplify.c (gimplify_expr): Use create_tmp_var
34574 instead of create_tmp_var_raw. If cond doesn't have
34575 integral type, don't add the IFN_ANNOTATE builtin at all.
34576
34577 2014-01-17 Martin Jambor <mjambor@suse.cz>
34578
34579 PR ipa/59736
34580 * ipa-cp.c (prev_edge_clone): New variable.
34581 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34582 Also resize prev_edge_clone vector.
34583 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34584 (ipcp_edge_removal_hook): New function.
34585 (ipcp_driver): Register ipcp_edge_removal_hook.
34586
34587 2014-01-17 Andrew Pinski <apinski@cavium.com>
34588 Steve Ellcey <sellcey@mips.com>
34589
34590 PR target/59462
34591 * config/mips/mips.c (mips_print_operand): Check operand mode instead
34592 of operator mode.
34593
34594 2014-01-17 Jeff Law <law@redhat.com>
34595
34596 PR middle-end/57904
34597 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34598 so that pass_ccp runs first.
34599
34600 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34601
34602 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34603 (ix86_adjust_cost): Use !TARGET_XXX.
34604 (do_reorder_for_imul): Likewise.
34605 (swap_top_of_ready_list): Likewise.
34606 (ix86_sched_reorder): Likewise.
34607
34608 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34609
34610 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34611 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
34612 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
34613 (intel_memset): New. Duplicate slm_memset.
34614 (intel_cost): New. Duplicate slm_cost.
34615 (m_INTEL): New macro.
34616 (processor_target_table): Add "intel".
34617 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34618 with PROCESSOR_INTEL for "intel".
34619 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
34620 PROCESSOR_SILVERMONT.
34621 (ix86_issue_rate): Likewise.
34622 (ix86_adjust_cost): Likewise.
34623 (ia32_multipass_dfa_lookahead): Likewise.
34624 (swap_top_of_ready_list): Likewise.
34625 (ix86_sched_reorder): Likewise.
34626 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34627 instead of TARGET_OPT_AGU.
34628 * config/i386/i386.h (TARGET_INTEL): New.
34629 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34630 (processor_type): Add PROCESSOR_INTEL.
34631 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34632 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34633
34634 2014-01-17 Marek Polacek <polacek@redhat.com>
34635
34636 PR c/58346
34637 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34638 size is zero.
34639
34640 2014-01-17 Richard Biener <rguenther@suse.de>
34641
34642 PR tree-optimization/46590
34643 * opts.c (default_options_table): Add entries for
34644 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34645 all enabled at -O1 but not for -Og.
34646 * common.opt (fbranch-count-reg): Remove Init(1).
34647 (fmove-loop-invariants): Likewise.
34648 (ftree-pta): Likewise.
34649
34650 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34651
34652 * config/i386/i386.c (ix86_data_alignment): For compatibility with
34653 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34654 decls to at least the GCC 4.8 used alignments.
34655
34656 PR fortran/59440
34657 * tree-nested.c (convert_nonlocal_reference_stmt,
34658 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
34659 of GIMPLE_BIND stmts, adjust associated decls.
34660
34661 2014-01-17 Richard Biener <rguenther@suse.de>
34662
34663 PR tree-optimization/46590
34664 * vec.h (vec<>::bseach): New member function implementing
34665 binary search according to C89 bsearch.
34666 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
34667 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
34668 bitmap pointer again. Make accesses_in_loop a flat array.
34669 (mem_ref_obstack): New global.
34670 (outermost_indep_loop): Adjust for mem_ref->stored changes.
34671 (mark_ref_stored): Likewise.
34672 (ref_indep_loop_p_2): Likewise.
34673 (set_ref_stored_in_loop): New helper function.
34674 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34675 (memref_free): Adjust.
34676 (record_mem_ref_loc): Simplify.
34677 (gather_mem_refs_stmt): Adjust.
34678 (sort_locs_in_loop_postorder_cmp): New function.
34679 (analyze_memory_references): Sort accesses_in_loop after
34680 loop postorder number.
34681 (find_ref_loc_in_loop_cmp): New function.
34682 (for_all_locs_in_loop): Find relevant cluster of locs in
34683 accesses_in_loop and iterate without recursion.
34684 (execute_sm): Avoid uninit warning.
34685 (struct ref_always_accessed): Simplify.
34686 (ref_always_accessed::operator ()): Likewise.
34687 (ref_always_accessed_p): Likewise.
34688 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34689 loop postorder numbers here.
34690 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34691 numbers.
34692
34693 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34694
34695 PR c++/57945
34696 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34697 on decls for which assemble_alias has been called.
34698
34699 2014-01-17 Nick Clifton <nickc@redhat.com>
34700
34701 * config/msp430/msp430.opt: (mcpu): New option.
34702 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
34703 (msp430_option_override): Parse target_cpu. If the MCU name
34704 matches a generic string, clear target_mcu.
34705 (msp430_attr): Allow numeric interrupt values up to 63.
34706 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
34707 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
34708 option.
34709 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
34710 Add mcpu matches.
34711 * config/msp430/msp430.md (popm): Use %J rather than %I.
34712 (addsi3): Use msp430_nonimmediate_operand for operand 2.
34713 (addhi_cy_i): Use immediate_operand for operand 2.
34714 * doc/invoke.texi: Document -mcpu option.
34715
34716 2014-01-17 Richard Biener <rguenther@suse.de>
34717
34718 PR rtl-optimization/38518
34719 * df.h (df_analyze_loop): Declare.
34720 * df-core.c: Include cfgloop.h.
34721 (df_analyze_1): Split out main part of df_analyze.
34722 (df_analyze): Adjust.
34723 (loop_inverted_post_order_compute): New function.
34724 (loop_post_order_compute): Likewise.
34725 (df_analyze_loop): New function avoiding whole-function
34726 postorder computes.
34727 * loop-invariant.c (find_defs): Use df_analyze_loop.
34728 (find_invariants): Adjust.
34729 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
34730
34731 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
34732
34733 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
34734 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
34735
34736 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
34737
34738 * ipa-ref.c (ipa_remove_stmt_references): Fix references
34739 traversal when removing references.
34740
34741 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
34742
34743 PR ipa/59775
34744 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
34745
34746 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
34747
34748 PR middle-end/56791
34749 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
34750 pushing a reload for an autoinc when we had previously reloaded an
34751 inner part of the address.
34752
34753 2014-01-16 Jakub Jelinek <jakub@redhat.com>
34754
34755 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
34756 field.
34757 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
34758 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
34759 when not giving up or versioning for alias only because of
34760 loop->safelen.
34761 (vect_analyze_data_ref_dependences): Set to true.
34762 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
34763 is a GIMPLE_PHI.
34764 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
34765 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
34766 to the condition.
34767
34768 PR middle-end/58344
34769 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
34770
34771 PR target/59839
34772 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
34773 operand 0 predicate for gathers, use a new pseudo as subtarget.
34774
34775 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34776
34777 PR middle-end/59609
34778 * lra-constraints.c (process_alt_operands): Add printing debug info.
34779 Check absence of input/output reloads for matched operands too.
34780
34781 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34782
34783 PR rtl-optimization/59835
34784 * ira.c (ira_init_register_move_cost): Increase cost for
34785 impossible modes.
34786
34787 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
34788
34789 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
34790
34791 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
34792
34793 PR target/59780
34794 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
34795 non-register objects. Use gen_(high/low)part more consistently.
34796 Fix assertions.
34797
34798 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
34799
34800 PR target/59844
34801 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
34802 endian support, remove tests for WORDS_BIG_ENDIAN.
34803 (p8_mfvsrd_3_<mode>): Likewise.
34804 (reload_gpr_from_vsx<mode>): Likewise.
34805 (reload_gpr_from_vsxsf): Likewise.
34806 (p8_mfvsrd_4_disf): Likewise.
34807
34808 2014-01-16 Richard Biener <rguenther@suse.de>
34809
34810 PR rtl-optimization/46590
34811 * lcm.c (compute_antinout_edge): Use postorder iteration.
34812 (compute_laterin): Use inverted postorder iteration.
34813
34814 2014-01-16 Nick Clifton <nickc@redhat.com>
34815
34816 PR middle-end/28865
34817 * varasm.c (output_constant): Return the number of bytes actually
34818 emitted.
34819 (output_constructor_array_range): Update the field size with the
34820 number of bytes emitted by output_constant.
34821 (output_constructor_regular_field): Likewise. Also do not
34822 complain if the total number of bytes emitted is now greater
34823 than the expected fieldpos.
34824 * output.h (output_constant): Update prototype and descriptive comment.
34825
34826 2014-01-16 Marek Polacek <polacek@redhat.com>
34827
34828 PR middle-end/59827
34829 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
34830 it is error_mark_node.
34831
34832 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
34833
34834 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
34835 VALID_AVX256_REG_OR_OI_MODE.
34836
34837 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
34838
34839 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
34840 current procedure should be profiled.
34841
34842 2014-01-15 Andrew Pinski <apinski@cavium.com>
34843
34844 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
34845 of moving from/to the STACK_REG register class.
34846
34847 2014-01-15 Richard Henderson <rth@redhat.com>
34848
34849 PR debug/54694
34850 * reginfo.c (global_regs_decl): Globalize.
34851 * rtl.h (global_regs_decl): Declare.
34852 * ira.c (do_reload): Diagnose frame_pointer_needed and it
34853 reserved via global_regs.
34854
34855 2014-01-15 Teresa Johnson <tejohnson@google.com>
34856
34857 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
34858
34859 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
34860
34861 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
34862 and vmulosh rather than call gen_vec_widen_smult_*.
34863 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
34864 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
34865 (vec_widen_smult_even_v16qi): Likewise.
34866 (vec_widen_umult_even_v8hi): Likewise.
34867 (vec_widen_smult_even_v8hi): Likewise.
34868 (vec_widen_umult_odd_v16qi): Likewise.
34869 (vec_widen_smult_odd_v16qi): Likewise.
34870 (vec_widen_umult_odd_v8hi): Likewise.
34871 (vec_widen_smult_odd_v8hi): Likewise.
34872 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
34873 vmuloub rather than call gen_vec_widen_umult_*.
34874 (vec_widen_umult_lo_v16qi): Likewise.
34875 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
34876 vmulosb rather than call gen_vec_widen_smult_*.
34877 (vec_widen_smult_lo_v16qi): Likewise.
34878 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
34879 rather than call gen_vec_widen_umult_*.
34880 (vec_widen_umult_lo_v8hi): Likewise.
34881 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
34882 rather than call gen_vec_widen_smult_*.
34883 (vec_widen_smult_lo_v8hi): Likewise.
34884
34885 2014-01-15 Jeff Law <law@redhat.com>
34886
34887 PR tree-optimization/59747
34888 * ree.c (find_and_remove_re): Properly handle case where a second
34889 eliminated extension requires widening a copy created for elimination
34890 of a prior extension.
34891 (combine_set_extension): Ensure that the number of hard regs needed
34892 for a destination register does not change when we widen it.
34893
34894 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34895
34896 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
34897 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
34898 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
34899 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
34900 (avr-*-rtems*): Likewise.
34901 (bfin*-rtems*): Likewise.
34902 (moxie-*-rtems*): Likewise.
34903 (h8300-*-rtems*): Likewise.
34904 (i[34567]86-*-rtems*): Likewise.
34905 (lm32-*-rtems*): Likewise.
34906 (m32r-*-rtems*): Likewise.
34907 (m68k-*-rtems*): Likewise.
34908 (microblaze*-*-rtems*): Likewise.
34909 (mips*-*-rtems*): Likewise.
34910 (powerpc-*-rtems*): Likewise.
34911 (sh-*-rtems*): Likewise.
34912 (sparc-*-rtems*): Likewise.
34913 (sparc64-*-rtems*): Likewise.
34914 (v850-*-rtems*): Likewise.
34915 (m32c-*-rtems*): Likewise.
34916
34917 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
34918
34919 PR rtl-optimization/59511
34920 * ira.c (ira_init_register_move_cost): Use memory costs for some
34921 cases of register move cost calculations.
34922 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
34923 instead of BB frequency.
34924 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
34925 * lra-assigns.c (find_hard_regno_for): Ditto.
34926
34927 2014-01-15 Richard Biener <rguenther@suse.de>
34928
34929 PR tree-optimization/59822
34930 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
34931 (vectorizable_load): Use it to hoist defs of uses of invariant
34932 loads out of the loop.
34933
34934 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
34935 Kugan Vivekanandarajah <kuganv@linaro.org>
34936
34937 PR target/59695
34938 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
34939 truncation.
34940
34941 2014-01-15 Richard Biener <rguenther@suse.de>
34942
34943 PR rtl-optimization/59802
34944 * lcm.c (compute_available): Use inverted postorder to seed
34945 the initial worklist.
34946
34947 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34948
34949 PR target/59803
34950 * config/s390/s390.c (s390_preferred_reload_class): Don't return
34951 ADDR_REGS for invalid symrefs in non-PIC code.
34952
34953 2014-01-15 Jakub Jelinek <jakub@redhat.com>
34954
34955 PR other/58712
34956 * builtins.c (determine_block_size): Initialize *probable_max_size
34957 even if len_rtx is CONST_INT.
34958
34959 2014-01-14 Andrew Pinski <apinski@cavium.com>
34960
34961 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
34962 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
34963 (cortexa53_tunings): Likewise.
34964 (aarch64_sched_issue_rate): New function.
34965 (TARGET_SCHED_ISSUE_RATE): Define.
34966
34967 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
34968
34969 * ira-costs.c (find_costs_and_classes): Add missed
34970 ira_init_register_move_cost_if_necessary.
34971
34972 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
34973
34974 PR target/59787
34975 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
34976
34977 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
34978
34979 PR target/59794
34980 * config/i386/i386.c (type_natural_mode): Add a bool parameter
34981 to indicate if type is used for function return value. Warn ABI
34982 change if the vector mode isn't available for function return value.
34983 (ix86_function_arg_advance): Pass false to type_natural_mode.
34984 (ix86_function_arg): Likewise.
34985 (ix86_gimplify_va_arg): Likewise.
34986 (function_arg_32): Don't warn ABI change.
34987 (ix86_function_value): Pass true to type_natural_mode.
34988 (ix86_return_in_memory): Likewise.
34989 (ix86_struct_value_rtx): Removed.
34990 (TARGET_STRUCT_VALUE_RTX): Likewise.
34991
34992 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
34993
34994 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
34995 converting a conditional jump into a conditional return.
34996
34997 2014-01-14 Richard Biener <rguenther@suse.de>
34998
34999 PR tree-optimization/58921
35000 PR tree-optimization/59006
35001 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35002 hoisting invariant stmts.
35003 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35004 invariant loads on the preheader edge if possible.
35005
35006 2014-01-14 Joey Ye <joey.ye@arm.com>
35007
35008 * doc/plugin.texi (Building GCC plugins): Update to C++.
35009
35010 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
35011
35012 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35013 (_mm_rcp28_round_ss): Ditto.
35014 (_mm_rsqrt28_round_sd): Ditto.
35015 (_mm_rsqrt28_round_ss): Ditto.
35016 (_mm_rcp28_sd): Ditto.
35017 (_mm_rcp28_ss): Ditto.
35018 (_mm_rsqrt28_sd): Ditto.
35019 (_mm_rsqrt28_ss): Ditto.
35020 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35021 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35022 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35023 (IX86_BUILTIN_RCP28SD): Ditto.
35024 (IX86_BUILTIN_RCP28SS): Ditto.
35025 (IX86_BUILTIN_RSQRT28SD): Ditto.
35026 (IX86_BUILTIN_RSQRT28SS): Ditto.
35027 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35028 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35029 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35030 (ix86_expand_special_args_builtin): Expand new FTYPE.
35031 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35032 (srcp14<mode>): Make insn unary.
35033 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35034 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35035 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35036 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35037 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35038 Fix rounding: make it SAE only.
35039 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35040 Ditto.
35041 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35042 Ditto.
35043 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35044 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35045 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35046 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35047 (round_saeonly_mask_scalar_operand4): Ditto.
35048 (round_saeonly_mask_scalar_op3): Ditto.
35049 (round_saeonly_mask_scalar_op4): Ditto.
35050
35051 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35052
35053 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35054 Implement -maltivec=be for vec_insert and vec_extract.
35055
35056 2014-01-10 DJ Delorie <dj@redhat.com>
35057
35058 * config/msp430/msp430.md (call_internal): Don't allow memory
35059 references with SP as the base register.
35060 (call_value_internal): Likewise.
35061 * config/msp430/constraints.md (Yc): New. For memory references
35062 that don't use SP as a base register.
35063
35064 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35065 "an integer without a # prefix"
35066 * config/msp430/msp430.md (epilogue_helper): Use it.
35067
35068 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35069
35070 PR target/59617
35071 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35072 AVX512F gather builtins.
35073 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35074 on gather decls with INTEGER_TYPE masktype.
35075 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35076 directly into the builtin rather than hoisting it before loop.
35077
35078 PR tree-optimization/59387
35079 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35080 (scev_const_prop): If folded_casts and type has undefined overflow,
35081 use force_gimple_operand instead of force_gimple_operand_gsi and
35082 for each added stmt if it is assign with
35083 arith_code_with_undefined_signed_overflow, call
35084 rewrite_to_defined_overflow.
35085 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35086 gimple-fold.h instead.
35087 (arith_code_with_undefined_signed_overflow,
35088 rewrite_to_defined_overflow): Moved to ...
35089 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35090 rewrite_to_defined_overflow): ... here. No longer static.
35091 Include gimplify-me.h.
35092 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35093 rewrite_to_defined_overflow): New prototypes.
35094
35095 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35096
35097 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35098
35099 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
35100
35101 * builtins.c (get_object_alignment_2): Minor tweak.
35102 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35103
35104 2014-01-13 Christian Bruel <christian.bruel@st.com>
35105
35106 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35107 optimized non constant lengths.
35108
35109 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35110
35111 PR libgomp/59194
35112 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35113 load as __atomic_load_N if possible.
35114
35115 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35116
35117 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35118 target parameter.
35119 (rs6000_expand_builtin): Adjust call.
35120
35121 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35122
35123 PR target/58115
35124 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35125 * config/rs6000/rs6000.c: Include target-globals.h.
35126 (rs6000_set_current_function): Instead of doing target_reinit
35127 unconditionally, use save_target_globals_default_opts and
35128 restore_target_globals.
35129
35130 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35131 FPSCR.
35132 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35133 (rs6000_expand_builtin): Handle mffs and mtfsf.
35134 (rs6000_init_builtins): Define mffs and mtfsf.
35135 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35136 (rs6000_mffs): New pattern.
35137 (rs6000_mtfsf): New pattern.
35138
35139 2014-01-11 Bin Cheng <bin.cheng@arm.com>
35140
35141 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35142 Start narrowing with START. Apply candidate-use pair
35143 and check overall cost in narrowing.
35144 (iv_ca_prune): Pass new argument.
35145
35146 2014-01-10 Jeff Law <law@redhat.com>
35147
35148 PR middle-end/59743
35149 * ree.c (combine_reaching_defs): Ensure the defining statement
35150 occurs before the extension when optimizing extensions with
35151 different source and destination hard registers.
35152
35153 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35154
35155 PR ipa/58585
35156 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35157 vtables into the type inheritance graph.
35158
35159 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35160
35161 PR rtl-optimization/59754
35162 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35163 modes in the REGNO != REGNO case.
35164
35165 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35166
35167 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35168
35169 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35170
35171 PR tree-optimization/59745
35172 * tree-predcom.c (tree_predictive_commoning_loop): Call
35173 free_affine_expand_cache if giving up because components is NULL.
35174
35175 * target-globals.c (save_target_globals): Allocate < 4KB structs using
35176 GC in payload of target_globals struct instead of allocating them on
35177 the heap and the larger structs separately using GC.
35178 * target-globals.h (struct target_globals): Make regs, hard_regs,
35179 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
35180 of GTY((skip)) and change type to void *.
35181 (reset_target_globals): Cast loads from those fields to corresponding
35182 types.
35183
35184 2014-01-10 Steve Ellcey <sellcey@mips.com>
35185
35186 PR plugins/59335
35187 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
35188 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
35189 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
35190
35191 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
35192
35193 PR target/59744
35194 * aarch64-modes.def (CC_Zmode): New flags mode.
35195 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
35196 represents an equality.
35197 (aarch64_get_condition_code): Handle CC_Zmode.
35198 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
35199
35200 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35201
35202 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
35203 extraction in good case.
35204
35205 2014-01-10 Richard Biener <rguenther@suse.de>
35206
35207 PR tree-optimization/59374
35208 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
35209 checking after SLP discovery. Mark stmts not participating
35210 in any SLP instance properly.
35211
35212 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35213
35214 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35215 when handling a SET rtx.
35216
35217 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35218
35219 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35220 (cortex-a57): Likewise.
35221 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35222
35223 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35224
35225 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35226 non-iwmmxt builtins.
35227
35228 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35229
35230 PR ipa/58252
35231 PR ipa/59226
35232 * ipa-devirt.c record_target_from_binfo): Take as argument
35233 stack of binfos and lookup matching one for virtual inheritance.
35234 (possible_polymorphic_call_targets_1): Update.
35235
35236 2014-01-10 Huacai Chen <chenhc@lemote.com>
35237
35238 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35239 kernel strings for Loongson-2E/2F/3A.
35240
35241 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35242
35243 PR middle-end/59670
35244 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35245 is_gimple_call before calling gimple_call_internal_p.
35246
35247 2014-01-09 Steve Ellcey <sellcey@mips.com>
35248
35249 * Makefile.in (TREE_FLOW_H): Remove.
35250 (TREE_SSA_H): Add file names from tree-flow.h.
35251 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35252 * tree.h: Remove tree-flow.h reference.
35253 * hash-table.h: Remove tree-flow.h reference.
35254 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35255 reference with tree-ssa-loop.h.
35256
35257 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35258
35259 * doc/invoke.texi: Add -maltivec={be,le} options, and document
35260 default element-order behavior for -maltivec.
35261 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35262 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35263 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35264 when targeting big endian, at least for now.
35265 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35266
35267 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35268
35269 PR middle-end/47735
35270 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35271 var satisfies use_register_for_decl, just take into account type
35272 alignment, rather than decl alignment.
35273
35274 PR tree-optimization/59622
35275 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
35276 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35277 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35278 Don't devirtualize for inplace at all. For targets.length () == 1,
35279 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35280
35281 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35282
35283 * config/i386/i386.md (cpu): Remove the unused btver1.
35284
35285 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35286
35287 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35288
35289 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35290
35291 PR target/58115
35292 * tree-core.h (struct target_globals): New forward declaration.
35293 (struct tree_target_option): Add globals field.
35294 * tree.h (TREE_TARGET_GLOBALS): Define.
35295 (prepare_target_option_nodes_for_pch): New prototype.
35296 * target-globals.h (struct target_globals): Define even if
35297 !SWITCHABLE_TARGET.
35298 * tree.c (prepare_target_option_node_for_pch,
35299 prepare_target_option_nodes_for_pch): New functions.
35300 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35301 * config/i386/i386.c: Include target-globals.h.
35302 (ix86_set_current_function): Instead of doing target_reinit
35303 unconditionally, use save_target_globals_default_opts and
35304 restore_target_globals.
35305
35306 2014-01-09 Richard Biener <rguenther@suse.de>
35307
35308 PR tree-optimization/59715
35309 * tree-cfg.h (split_critical_edges): Declare.
35310 * tree-cfg.c (split_critical_edges): Export.
35311 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
35312
35313 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
35314
35315 * cfgexpand.c (expand_stack_vars): Optionally disable
35316 asan stack protection.
35317 (expand_used_vars): Likewise.
35318 (partition_stack_vars): Likewise.
35319 * asan.c (asan_emit_stack_protection): Optionally disable
35320 after return stack usage.
35321 (instrument_derefs): Optionally disable memory access instrumentation.
35322 (instrument_builtin_call): Likewise.
35323 (instrument_strlen_call): Likewise.
35324 (asan_protect_global): Optionally disable global variables protection.
35325 * doc/invoke.texi: Added doc for new options.
35326 * params.def: Added new options.
35327 * params.h: Likewise.
35328
35329 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35330
35331 PR rtl-optimization/59724
35332 * ifcvt.c (cond_exec_process_if_block): Don't call
35333 flow_find_head_matching_sequence with 0 longest_match.
35334 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
35335 non-active insns if !stop_after.
35336 (try_head_merge_bb): Revert 2014-01-07 changes.
35337
35338 2014-01-08 Jeff Law <law@redhat.com>
35339
35340 * ree.c (get_sub_rtx): New function, extracted from...
35341 (merge_def_and_ext): Here.
35342 (combine_reaching_defs): Use get_sub_rtx.
35343
35344 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
35345
35346 * cgraph.h (varpool_variable_node): Do not choke on null node.
35347
35348 2014-01-08 Catherine Moore <clm@codesourcery.com>
35349
35350 * config/mips/mips.md (simple_return): Attempt to use JRC
35351 for microMIPS.
35352 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
35353
35354 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35355
35356 PR rtl-optimization/59137
35357 * reorg.c (steal_delay_list_from_target): Call update_block for
35358 elided insns.
35359 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
35360
35361 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35362
35363 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
35364 two duplicate entries.
35365
35366 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35367
35368 Revert:
35369 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
35370
35371 * config/mips/mips.c (mips_truncated_op_cost): New function.
35372 (mips_rtx_costs): Adjust test for BADDU.
35373 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
35374
35375 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
35376
35377 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
35378 (*baddu_si): ...this new pattern.
35379
35380 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35381
35382 PR ipa/59722
35383 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
35384
35385 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
35386
35387 PR middle-end/57748
35388 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
35389 inner_reference_p.
35390 (expand_expr, expand_normal): Adjust.
35391 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
35392 inner_reference_p. Use inner_reference_p to expand inner references.
35393 (store_expr): Adjust.
35394 * cfgexpand.c (expand_call_stmt): Adjust.
35395
35396 2014-01-08 Rong Xu <xur@google.com>
35397
35398 * gcov-io.c (gcov_var): Move from gcov-io.h.
35399 (gcov_position): Ditto.
35400 (gcov_is_error): Ditto.
35401 (gcov_rewrite): Ditto.
35402 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
35403 only part to libgcc/libgcov.h.
35404
35405 2014-01-08 Marek Polacek <polacek@redhat.com>
35406
35407 PR middle-end/59669
35408 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
35409
35410 2014-01-08 Marek Polacek <polacek@redhat.com>
35411
35412 PR sanitizer/59667
35413 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
35414
35415 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35416
35417 PR rtl-optimization/59649
35418 * stor-layout.c (get_mode_bounds): For BImode return
35419 0 and STORE_FLAG_VALUE.
35420
35421 2014-01-08 Richard Biener <rguenther@suse.de>
35422
35423 PR middle-end/59630
35424 * gimple.h (is_gimple_builtin_call): Remove.
35425 (gimple_builtin_call_types_compatible_p): New.
35426 (gimple_call_builtin_p): New overload.
35427 * gimple.c (is_gimple_builtin_call): Remove.
35428 (validate_call): Rename to ...
35429 (gimple_builtin_call_types_compatible_p): ... this and export. Also
35430 check return types.
35431 (validate_type): New static function.
35432 (gimple_call_builtin_p): New overload and adjust.
35433 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
35434 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
35435 (gimple_fold_stmt_to_constant_1): Likewise.
35436 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
35437
35438 2014-01-08 Richard Biener <rguenther@suse.de>
35439
35440 PR middle-end/59471
35441 * gimplify.c (gimplify_expr): Gimplify register-register type
35442 VIEW_CONVERT_EXPRs to separate stmts.
35443
35444 2014-01-07 Jeff Law <law@redhat.com>
35445
35446 PR middle-end/53623
35447 * ree.c (combine_set_extension): Handle case where source
35448 and destination registers in an extension insn are different.
35449 (combine_reaching_defs): Allow source and destination registers
35450 in extension to be different under limited circumstances.
35451 (add_removable_extension): Remove restriction that the
35452 source and destination registers in the extension are the same.
35453 (find_and_remove_re): Emit a copy from the extension's
35454 destination to its source after the defining insn if
35455 the source and destination registers are different.
35456
35457 PR middle-end/59285
35458 * ifcvt.c (merge_if_block): If we are merging a block with more than
35459 one successor with a block with no successors, remove any BARRIER
35460 after the second block.
35461
35462 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
35463
35464 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
35465
35466 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
35467
35468 PR target/59652
35469 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
35470 for 14-bit register offsets when INT14_OK_STRICT is false.
35471
35472 2014-01-07 Roland Stigge <stigge@antcom.de>
35473 Michael Meissner <meissner@linux.vnet.ibm.com>
35474
35475 PR 57386/target
35476 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
35477 Only check TFmode for SPE constants. Don't check TImode or TDmode.
35478
35479 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
35480
35481 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
35482 -mcpu.
35483
35484 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
35485
35486 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
35487 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
35488 rtx is const0_rtx or not.
35489
35490 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
35491
35492 PR target/58115
35493 * target-globals.c (save_target_globals): Remove this_fn_optab
35494 handling.
35495 * toplev.c: Include optabs.h.
35496 (target_reinit): Temporarily restore the global options if another
35497 set of options are in force.
35498
35499 2014-01-07 Jakub Jelinek <jakub@redhat.com>
35500
35501 PR rtl-optimization/58668
35502 * cfgcleanup.c (flow_find_cross_jump): Don't count
35503 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
35504 to determine what is counted.
35505 (flow_find_head_matching_sequence): Use active_insn_p to determine
35506 what is counted.
35507 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
35508 counting change.
35509 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
35510 determine what is counted.
35511
35512 PR tree-optimization/59643
35513 * tree-predcom.c (split_data_refs_to_components): If one dr is
35514 read and one write, determine_offset fails and the write isn't
35515 in the bad component, just put the read into the bad component.
35516
35517 2014-01-07 Mike Stump <mikestump@comcast.net>
35518 Jakub Jelinek <jakub@redhat.com>
35519
35520 PR pch/59436
35521 * tree-core.h (struct tree_optimization_option): Change optabs
35522 type from unsigned char * to void *.
35523 * optabs.c (init_tree_optimization_optabs): Adjust
35524 TREE_OPTIMIZATION_OPTABS initialization.
35525
35526 2014-01-06 Jakub Jelinek <jakub@redhat.com>
35527
35528 PR target/59644
35529 * config/i386/i386.h (struct machine_function): Add
35530 no_drap_save_restore field.
35531 * config/i386/i386.c (ix86_save_reg): Use
35532 !cfun->machine->no_drap_save_restore instead of
35533 crtl->stack_realign_needed.
35534 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
35535 this function clears frame_pointer_needed. Set
35536 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
35537 and DRAP reg is needed.
35538
35539 2014-01-06 Marek Polacek <polacek@redhat.com>
35540
35541 PR c/57773
35542 * doc/implement-c.texi: Mention that other integer types are
35543 permitted as bit-field types in strictly conforming mode.
35544
35545 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
35546
35547 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
35548 is newly allocated.
35549
35550 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
35551
35552 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
35553
35554 2014-01-06 Martin Jambor <mjambor@suse.cz>
35555
35556 PR ipa/59008
35557 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35558 to int.
35559 * ipa-prop.c (ipa_print_node_params): Fix indentation.
35560
35561 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
35562
35563 PR debug/59350
35564 PR debug/59510
35565 * var-tracking.c (add_stores): Preserve the value of the source even if
35566 we don't record the store.
35567
35568 2014-01-06 Terry Guo <terry.guo@arm.com>
35569
35570 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35571
35572 2014-01-05 Iain Sandoe <iain@codesourcery.com>
35573
35574 PR bootstrap/59541
35575 * config/darwin.c (darwin_function_section): Adjust return values to
35576 correspond to optimisation changes made in r206070.
35577
35578 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
35579
35580 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35581 from prefetch_block tune setting.
35582 (nocona_cost): Correct size of prefetch block to 64.
35583
35584 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
35585
35586 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35587 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35588 used to save the static chain register in the computation of the offset
35589 from which the FP registers need to be restored.
35590
35591 2014-01-04 Jakub Jelinek <jakub@redhat.com>
35592
35593 PR tree-optimization/59519
35594 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35595 ICE if get_current_def (current_new_name) is already non-NULL, as long
35596 as it is a phi result of some other phi in *new_exit_bb that has
35597 the same argument.
35598
35599 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35600 or vmovdqu* for misaligned_operand.
35601 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35602 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35603 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35604 aligned_mem for AVX512F masked aligned load and store builtins and for
35605 non-temporal moves.
35606
35607 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
35608
35609 PR tree-optimization/59651
35610 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35611 Address range for negative step should be added by TYPE_SIZE_UNIT.
35612
35613 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
35614
35615 * config/m68k/m68k.c (handle_move_double): Handle pushes with
35616 overlapping registers also for registers other than the stack pointer.
35617
35618 2014-01-03 Marek Polacek <polacek@redhat.com>
35619
35620 PR other/59661
35621 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35622 __builtin_FILE.
35623
35624 2014-01-03 Jakub Jelinek <jakub@redhat.com>
35625
35626 PR target/59625
35627 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35628 asm goto as jump.
35629
35630 * config/i386/i386.md (MODE_SIZE): New mode attribute.
35631 (push splitter): Use <P:MODE_SIZE> instead of
35632 GET_MODE_SIZE (<P:MODE>mode).
35633 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35634 (mov -1, reg peephole2): Likewise.
35635 * config/i386/sse.md (*mov<mode>_internal,
35636 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35637 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35638 *<code><mode>3, *andnot<mode>3<mask_name>,
35639 <mask_codefor><code><mode>3<mask_name>): Likewise.
35640 * config/i386/subst.md (mask_mode512bit_condition,
35641 sd_mask_mode512bit_condition): Likewise.
35642
35643 2014-01-02 Xinliang David Li <davidxl@google.com>
35644
35645 PR tree-optimization/59303
35646 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35647 (dump_predicates): Better output format.
35648 (pred_equal_p): New function.
35649 (is_neq_relop_p): Ditto.
35650 (is_neq_zero_form_p): Ditto.
35651 (pred_expr_equal_p): Ditto.
35652 (pred_neg_p): Ditto.
35653 (simplify_pred): Ditto.
35654 (simplify_preds_2): Ditto.
35655 (simplify_preds_3): Ditto.
35656 (simplify_preds_4): Ditto.
35657 (simplify_preds): Ditto.
35658 (push_pred): Ditto.
35659 (push_to_worklist): Ditto.
35660 (get_pred_info_from_cmp): Ditto.
35661 (is_degenerated_phi): Ditto.
35662 (normalize_one_pred_1): Ditto.
35663 (normalize_one_pred): Ditto.
35664 (normalize_one_pred_chain): Ditto.
35665 (normalize_preds): Ditto.
35666 (normalize_cond_1): Remove function.
35667 (normalize_cond): Ditto.
35668 (is_gcond_subset_of): Ditto.
35669 (is_subset_of_any): Ditto.
35670 (is_or_set_subset_of): Ditto.
35671 (is_and_set_subset_of): Ditto.
35672 (is_norm_cond_subset_of): Ditto.
35673 (pred_chain_length_cmp): Ditto.
35674 (convert_control_dep_chain_into_preds): Type change.
35675 (find_predicates): Ditto.
35676 (find_def_preds): Ditto.
35677 (destroy_predicates_vecs): Ditto.
35678 (find_matching_predicates_in_rest_chains): Ditto.
35679 (use_pred_not_overlap_with_undef_path_pred): Ditto.
35680 (is_pred_expr_subset): Ditto.
35681 (is_pred_chain_subset_of): Ditto.
35682 (is_included_in): Ditto.
35683 (is_superset_of): Ditto.
35684
35685 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35686
35687 Update copyright years.
35688
35689 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35690
35691 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35692 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35693 config/arc/arc.md, config/arc/arc.opt,
35694 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35695 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35696 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35697 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35698 config/linux-protos.h, config/linux.c, config/winnt-c.c,
35699 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35700 vtable-verify.c, vtable-verify.h: Use the standard form for the
35701 copyright notice.
35702
35703 2014-01-02 Tobias Burnus <burnus@net-b.de>
35704
35705 * gcc.c (process_command): Update copyright notice dates.
35706 * gcov-dump.c: Ditto.
35707 * gcov.c: Ditto.
35708 * doc/cpp.texi: Bump @copying's copyright year.
35709 * doc/cppinternals.texi: Ditto.
35710 * doc/gcc.texi: Ditto.
35711 * doc/gccint.texi: Ditto.
35712 * doc/gcov.texi: Ditto.
35713 * doc/install.texi: Ditto.
35714 * doc/invoke.texi: Ditto.
35715
35716 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35717
35718 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
35719
35720 2014-01-01 Jakub Jelinek <jakub@redhat.com>
35721
35722 * config/i386/sse.md (*mov<mode>_internal): Guard
35723 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
35724
35725 PR rtl-optimization/59647
35726 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
35727 new_rtx into UNSIGNED_FLOAT rtxes.
35728 \f
35729 Copyright (C) 2014 Free Software Foundation, Inc.
35730
35731 Copying and distribution of this file, with or without modification,
35732 are permitted in any medium without royalty provided the copyright
35733 notice and this notice are preserved.