1 2014-10-23 Richard Biener <rguenther@suse.de>
3 * fold-const.c (fold_binary_loc): Preserve side-effects of
4 X - X when simplifying to 0.
5 * stor-layout.c (finish_bitfield_representative): Strip
6 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
8 2014-10-22 Richard Biener <rguenther@suse.de>
9 Tobias Burnus <burnus@net-b.de>
12 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
14 2014-10-22 Dehao Chen <dehao@google.com>
16 * auto-profile.c: Change order of header files.
18 2014-10-22 Guozhi Wei <carrot@google.com>
20 PR tree-optimization/63530
21 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
22 pointer alignment according to DR_MISALIGNMENT.
24 2014-10-22 David Malcolm <dmalcolm@redhat.com>
26 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
28 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
30 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
31 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
32 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
33 * dominance.h: New. Add prototypes for dominance.c.
34 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
35 * cfghooks.h: (struct profile_record) Relocate here.
36 Relocate 2 prototypes from basic-block.h.
37 * basic-block.h: Move prototypes and struct to new header files.
38 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
39 * rtl.h: Move a few prototypes to new header files.
40 * cfgcleanup.c (merge_memattrs): Make static.
41 * genopinit.c (main): Add predict.h to list of includes.
42 * predict.h: Update prototype list to match predict.c.
43 * predict.c (maybe_hot_count_p): Export.
44 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
45 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
46 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
47 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
48 * profile.h: Adjust prototypes.
49 * ifcvt.h: New. Relocate struct ce_if_block here.
50 * ifcvt.c: Include ifcvt.h.
51 * config/frv/frv.c: Include ifcvt.h.
52 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
54 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
56 * lra.c (lra): Remove call to recog_init.
57 * config/i386/i386.md (preferred_for_speed): New attribute
58 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
59 "enabled". Remove check for sched1.
61 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
63 * recog.h (recog_data_d): Remove enabled_alternatives.
64 * recog.c (extract_insn): Don't set it.
65 * reload.c (find_reloads): Call get_enabled_alternatives.
67 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
69 * recog.h (constrain_operands): Add an alternative_mask parameter.
70 (constrain_operands_cached): Likewise.
71 (get_preferred_alternatives): Declare new form.
72 * recog.c (get_preferred_alternatives): New bb-taking instance.
73 (constrain_operands): Take the set of available alternatives as
75 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
76 (extract_constrain_insn_cached): Update calls to constrain_operands.
77 * caller-save.c (reg_save_code): Likewise.
78 * ira.c (setup_prohibited_mode_move_regs): Likewise.
79 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
80 * ree.c (combine_reaching_defs): Likewise.
81 * reload.c (can_reload_into): Likewise.
82 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
83 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
84 (emit_insn_if_valid_for_reload): Likewise.
85 * reorg.c (fill_slots_from_thread): Likewise.
86 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
87 * config/pa/pa.c (pa_can_combine_p): Likewise.
88 * config/rl78/rl78.c (insn_ok_now): Likewise.
89 * config/sh/sh.md (define_peephole2): Likewise.
90 * final.c (final_scan_insn): Update call to constrain_operands_cached.
92 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
94 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
96 * genattr.c (main): Handle "preferred_for_size" and
97 "preferred_for_speed" in the same way as "enabled".
98 * recog.h (bool_attr): New enum.
99 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
100 (get_preferred_alternatives, check_bool_attrs): Declare.
101 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
102 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
104 (get_enabled_alternatives): Use get_bool_attr_mask.
105 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
106 instead of recog_data.enabled_alternatives.
107 * ira.c (ira_setup_alts): Likewise.
108 * postreload.c (reload_cse_simplify_operands): Likewise.
109 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
110 * ira-lives.c (preferred_alternatives): New variable.
111 (process_bb_node_lives): Set it.
112 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
113 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
114 of recog_data.enabled_alternatives.
115 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
116 to preferred_alternatives.
117 * lra-constraints.c (process_alt_operands): Update accordingly.
118 * lra.c (lra_set_insn_recog_data): Likewise.
119 (lra_update_insn_recog_data): Assert check_bool_attrs.
121 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
123 * recog.h (extract_constrain_insn): Declare.
124 * recog.c (extract_constrain_insn): New function.
125 * lra.c (check_rtl): Use it.
126 * postreload.c (reload_cse_simplify_operands): Likewise.
127 * reg-stack.c (check_asm_stack_operands): Likewise.
128 (subst_asm_stack_regs): Likewise.
129 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
130 * regrename.c (build_def_use): Likewise.
131 * sel-sched.c (get_reg_class): Likewise.
132 * config/arm/arm.c (note_invalid_constants): Likewise.
133 * config/s390/predicates.md (execute_operation): Likewise.
135 2014-10-22 Jakub Jelinek <jakub@redhat.com>
136 Yury Gribov <y.gribov@samsung.com>
138 * common.opt (flag_sanitize_recover): New variable.
139 (fsanitize-recover): Remove Var/Init, deprecate.
140 (fsanitize-recover=): New option.
141 * doc/invoke.texi (fsanitize-recover): Update docs.
142 * opts.c (finish_options): Use opts->x_flag_sanitize
143 instead of flag_sanitize. Prohibit -fsanitize-recover
144 for anything besides UBSan. Formatting.
145 (common_handle_option): Handle OPT_fsanitize_recover_
146 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
147 instead of flag_sanitize.
148 * asan.c (pass_sanopt::execute): Fix up formatting.
149 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
150 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
151 instrument_bool_enum_load, ubsan_instrument_float_cast,
152 instrument_nonnull_arg, instrument_nonnull_return): Check
153 bits in flag_sanitize_recover bitmask instead of
154 flag_sanitize_recover as bool flag.
156 2014-10-22 Jiong Wang <jiong.wang@arm.com>
158 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
160 2014-10-22 Renlin Li <renlin.li@arm.com>
162 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
163 __ARM_FEATURE_IDIV__.
165 2014-10-22 Richard Biener <rguenther@suse.de>
167 * Makefile.in (s-match): Adjust dependencies to only catch
170 2014-10-22 Richard Biener <rguenther@suse.de>
171 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
173 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
174 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
175 (gimple-match.c): Generate by triggering s-match.
176 (generic-match.c): Likewise.
177 (s-match): Rule to build gimple-match.c and generic-match.c
178 by running the genmatch generator program.
179 (build/hash-table.o): Dependencies to build hash-table.c for the host.
180 (build/genmatch.o): Dependencies to build genmatch.
181 (genprog): Add match.
182 (build/genmatch): Likewise.
183 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
184 * generic-match-head.c: New file.
185 * gimple-match-head.c: Likewise.
186 * gimple-match.h: Likewise.
187 * genmatch.c: Likewise.
188 * match.pd: Likewise.
189 * builtins.h (fold_builtin_n): Export.
190 * builtins.c (fold_builtin_n): Likewise.
191 * gimple-fold.h (gimple_build): Declare various overloads.
192 (gimple_simplify): Likewise.
193 (gimple_convert): Re-implement in terms of gimple_build.
194 * gimple-fold.c (gimple_convert): Remove.
195 (gimple_build): New functions.
196 * doc/match-and-simplify.texi: New file.
197 * doc/gccint.texi: Add menu item Match and Simplify and include
198 match-and-simplify.texi.
200 2014-10-22 Jakub Jelinek <jakub@redhat.com>
203 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
204 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
205 even for just TARGET_AVX2, not only for
206 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
207 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
208 otherwise build it using concatenation of 256-bit
210 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
211 avx512 broadcast patterns.
212 (vec_dup<mode>): Likewise. For avx2 use
213 v<sseintprefix>broadcast<bcstscalarsuff> instead of
214 vbroadcast<ssescalarmodesuffix>.
215 (AVX2_VEC_DUP_MODE): New mode iterator.
216 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
217 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
220 * config/i386/i386.c (ix86_pic_register_p): Also return
221 true if x is a hard register with ORIGINAL_REGNO equal to
222 pic_offset_table_rtx pseudo REGNO.
223 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
224 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
226 2014-10-22 Alan Modra <amodra@gmail.com>
228 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
229 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
230 (gcc_obstack_init): Use obstack_specify_allocation in place of
232 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
233 (regexp_representation): Likewise.
234 * godump.c (go_output_type): Likewise.
236 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
238 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
239 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
240 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
242 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
244 * doc/invoke.texi (pedantic-errors): Explain better.
246 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
247 Vidya Praveen <vidya.praveen@atmel.com>
248 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
249 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
250 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
252 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
254 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
255 (avr_nonconst_pointer_addrspace): Likewise.
256 * config/avr/avr.h (AVR_HAVE_LPM): Define.
258 Added AVRTINY architecture to avr target.
259 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
260 (base_arch_s): member added for AVRTINY architecture.
261 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
262 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
263 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
264 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
265 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
266 in callee saved register list.
267 (avr_option_override): CCP address updated for AVRTINY.
268 (avr_init_expanders): tmp and zero rtx initialized as per arch.
269 Reset avr_have_dimode if AVRTINY.
270 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
271 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
272 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
273 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
274 (expand_epilogue): Likewise.
275 (avr_print_operand): Print CCP address in case of AVRTINY also.
277 (function_arg_regno_p): Check different register list for arguments
279 (init_cumulative_args): Check for AVRTINY to update number of argument
281 (tiny_valid_direct_memory_access_range): New function. Return false if
282 direct memory access range is not in accepted range for AVRTINY.
283 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
284 indirect load (with displacement) for AVRTINY.
285 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
286 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
287 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
288 indirect load (no displacement) for AVRTINY.
289 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
290 indirect load (with displacement) for AVRTINY.
291 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
292 indirect load for pre-decrement address.
293 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
294 functions. Update instruction length for AVRTINY.
295 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
297 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
298 (out_movsi_r_mr): Likewise, for SImode.
299 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
300 indirect store (no displacement) for AVRTINY.
301 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
302 indirect store (with displacement) for AVRTINY.
303 (out_movsi_mr_r): Emit out insn for IO address store. Update store
304 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
306 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
307 indirect load (no displacement) for PSImode in AVRTINY.
308 (avr_out_load_psi_reg_disp_tiny): New function to handle register
309 indirect load (with displacement) for PSImode in AVRTINY.
310 (avr_out_load_psi): Call PSImode register indirect load functions for
311 AVRTINY. Update instruction length for AVRTINY.
312 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
313 indirect store (no displacement) for PSImode in AVRTINY.
314 (avr_out_store_psi_reg_disp_tiny): New function to handle register
315 indirect store (with displacement) for PSImode in AVRTINY.
316 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
317 register indirect store functions for AVRTINY.
318 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
319 register indirect store (with displacement) for AVRTINY.
320 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
321 register indirect store function for QImode in AVRTINY.
322 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
323 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
324 indirect store (no displacement) for HImode in AVRTINY.
325 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
326 indirect store (with displacement) for HImode in AVRTINY.
327 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
328 indirect store for post-increment address in HImode.
329 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
330 register indirect store function for HImode in AVRTINY.
331 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
333 (order_regs_for_local_alloc): Updated register allocation order for
335 (avr_conditional_register_usage): New function. It is a target hook
336 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
337 used registers list and register allocation order for AVRTINY.
338 (avr_return_in_memory): Update return value size for AVRTINY.
339 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
340 for AVRTINY arch and tiny program memory base address.
341 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
342 (avr_texinfo): Added description for AVRTINY arch.
343 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
344 STATIC_CHAIN_REGNUM for AVRTINY.
345 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
346 * config/avr/avr.md: Added constants for tmp/ zero registers in
347 AVRTINY. Attributes for AVRTINY added.
348 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
350 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
351 in AVRTINY memory access range.
352 (*mov<mode>): Likewise for HImode and SImode.
353 (*movsf): Likewise for SFmode.
354 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
356 * config/avr/avr-protos.h: Added function prototype for
357 tiny_valid_direct_memory_access_range.
358 * config/avr/avr-tables.opt: Regenerate.
359 * gcc/config/avr/t-multilib: Regenerate.
360 * doc/avr-mmcu.texi: Regenerate.
362 2014-10-21 Andrew Pinski <apinski@cavium.com>
364 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
365 available option also.
366 * config/aarch64/aarch64-cost-tables.h: New file.
367 * config/aarch64/aarch64-cores.def (thunderx): New core.
368 * config/aarch64/aarch64-tune.md: Regenerate.
369 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
370 of config/arm/aarch-cost-tables.h.
371 (thunderx_regmove_cost): New variable.
372 (thunderx_tunings): New variable.
374 2014-10-21 Dehao Chen <dehao@google.com>
376 * auto-profile.c: New file.
377 * auto-profile.h: New file.
378 * basic-block.h (maybe_hot_count_p): New export func.
379 (add_working_set): New export func.
380 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
381 (GCOV_TAG_AFDO_FUNCTION): Likewise.
382 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
383 * opts.c (enable_fdo_optimizations): New func.
384 (common_handle_option): Handle -fauto-profile flag.
385 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
386 (class pass_early_inline): Export early_inliner.
387 (early_inliner): Likewise.
388 (pass_early_inline::execute): Likewise.
389 * ipa-inline.h (early_inliner): Likewise.
390 * predict.c (maybe_hot_count_p): New export func.
391 (counts_to_freqs): AutoFDO logic.
392 (rebuild_frequencies): Likewise.
393 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
394 * profile.c (add_working_set): New func.
395 * Makefile.in (auto-profile.o): New object file.
396 * passes.def (pass_ipa_auto_profile): New pass.
397 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
398 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
399 * toplev.c (compile_file): AutoFDO logic.
400 * doc/invoke.texi (-fauto-profile): New doc.
401 * coverage.c (coverage_init): AutoFDO logic.
402 * common.opt (-fauto-profile): New flag.
403 * timevar.def (TV_IPA_AUTOFDO): New tag.
404 * value-prof.c (gimple_alloc_histogram_value): New export func.
405 (check_ic_target): Likewise.
406 * value-prof.h (gimple_alloc_histogram_value): Likewise.
407 (check_ic_target): Likewise.
409 2014-10-21 David Malcolm <dmalcolm@redhat.com>
411 * cgraph.c (cgraph_c_finalize): New function.
412 * cgraph.h (cgraph_c_finalize): New prototype.
413 (cgraphunit_c_finalize): New prototype.
414 * cgraphunit.c (first_analyzed): Move from analyze_functions
416 (first_analyzed_var): Likewise.
417 (analyze_functions): Move static variables into file-scope.
418 (cgraphunit_c_finalize): New function.
419 * diagnostic.c (diagnostic_finish): Free the memory for
420 context->classify_diagnostic and context->printer, running the
421 destructor for the latter.
422 (bt_stop): Use toplev::main.
423 * dwarf2out.c (dwarf2out_finalize): New function.
424 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
425 * gcse.c (gcse_c_finalize): New function.
426 * gcse.h (gcse_c_finalize): New prototype.
427 * ggc-page.c (init_ggc): Make idempotent.
428 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
429 * ipa-cp.c (ipa_cp_c_finalize): New function.
430 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
431 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
432 a field of class pass_ipa_pure_const.
433 (node_duplication_hook_holder): Likewise.
434 (node_removal_hook_holder): Likewise.
435 (register_hooks): Convert to method...
436 (pass_ipa_pure_const::register_hooks): ...here, converting
437 static variable init_p into...
438 (pass_ipa_pure_const::init_p): ...new field.
439 (pure_const_generate_summary): Update invocation of
440 register_hooks to invoke as a method of current_pass.
441 (pure_const_read_summary): Likewise.
442 (propagate): Convert to...
443 (pass_ipa_pure_const::execute): ...method.
444 * ipa-reference.c (ipa_init): Move static bool init_p from here
446 (ipa_init_p): New file-scope variable, so that it can be reset
447 when repeatedly invoking the compiler within one process by...
448 (ipa_reference_c_finalize): New function.
449 * ipa-reference.h (ipa_reference_c_finalize): New.
450 * main.c (main): Replace invocation of toplev_main with
451 construction of a toplev instance, and call its "main" method.
452 * params.c (global_init_params): Add an assert that
453 params_finished is false.
454 (params_c_finalize): New.
455 * params.h (params_c_finalize): New.
456 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
457 invoking generate_summary, for the benefit of pass_ipa_pure_const.
458 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
459 before calling write_summary hook.
460 (ipa_write_optimization_summaries_1): Likewise when calling
461 write_optimization_summary hook.
462 (ipa_read_summaries_1): Likewise for read_summary hook.
463 (ipa_read_optimization_summaries_1): Likewise for
464 read_optimization_summary hook.
465 (execute_ipa_stmt_fixups): Likewise.
466 * stringpool.c (init_stringpool): Clean up if we're called more
468 * timevar.c (timevar_init): Ignore repeated calls.
469 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
471 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
472 (initialize_rtl): Move static local "initialized_once"
473 into file scope, and rename to...
474 (rtl_initialized): New variable.
475 (do_compile): Move timevar initialization from here to
476 toplev::start_timevars.
477 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
478 toplev::finalize): New functions.
479 (toplev_main): Rename to...
480 (toplev::main): ...this.
481 * toplev.h (class toplev): New class.
483 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
485 * loop-doloop.c: Include loop-unroll.h.
487 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
489 * cfg.h: New. Header file for cfg.c.
490 * cfganal.h: New. Header file for cfganal.c.
491 * lcm.h: New. Header file for lcm.c.
492 * loop-unroll.h: New. Header file for loop-unroll.h.
493 * cfgloop.h: (unroll_loops): Remove prototype.
494 * basic-block.h: Move prototypes and structs to new header files.
495 Include cfg.h, cfganal.h, and lcm.h.
496 * loop-init.c: Include loop-unroll.h.
497 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
498 * modulo-sched.c: Include loop-unroll.h.
500 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
502 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
503 MARKER_BYTE_UNKNOWN markers when handling casts.
505 2014-10-21 Richard Biener <rguenther@suse.de>
507 * tree-ssa-phiopt.c (value_replacement): Properly verify we
508 are the non-singleton PHI.
510 2014-10-21 Jakub Jelinek <jakub@redhat.com>
512 PR tree-optimization/63563
513 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
514 if either dra or drb stmts are not normal loads/stores.
516 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
518 * config/i386/i386.c (expand_vec_perm_1): Fix
519 expand_vec_perm_palignr case.
520 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
523 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
525 * cfgloopanal.c (seq_cost): Delete.
526 * rtl.h (seq_cost): New prototype.
527 * rtlanal.c (seq_cost): New function.
528 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
530 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
532 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
533 * basic-block.h: Remove prototypes for cfgrtl.c.
534 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
535 prototypes to cfgrtl.h.
536 * profile.h (profile_info): Add extern export declaration.
537 * rtl.h: Remove prototypes for cfgrtl.h.
538 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
539 * ipa-inline.c: Include profile.h.
540 * loop-unroll.c: Ditto.
541 * modulo-sched.c: Ditto.
542 * postreload-gcse.c: Ditto.
544 * sched-ebb.c: Ditto.
545 * sched-rgn.c: Ditto.
547 * tree-ssa-loop-ivcanon.c: Ditto.
549 2014-10-20 Richard Biener <rguenther@suse.de>
551 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
552 operands to get a def operand kind match. Signal mismatches
553 to the parent so we can try swapping its operands.
554 (vect_build_slp_tree): Try swapping operands if they have
555 a mismatched operand kind.
557 2014-10-20 Alan Modra <amodra@gmail.com>
560 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
561 Increase "ops" array size. Correct array size tests. Init
562 n_constants in loop. Break out of innermost loop when finding
563 a trivial CONST expression.
565 2014-10-20 Martin Liska <mliska@suse.cz>
568 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
569 Gimple tempate string is compared.
571 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
573 * varasm.c (const_alias_set): Remove.
574 (init_varasm_once): Remove initialization of const_alias_set.
575 (build_constant_desc): Do not set alias set to const_alias_set.
577 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
579 * configure: Regenerate.
580 * configure.ac: Move the test for section attribute specifier "e" in GAS
581 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
582 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
583 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
584 ifdef HAVE_GAS_SECTION_EXCLUDE.
586 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
588 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
589 match_operand expression.
591 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
592 David Edelsohn <dje.gcc@gmail.com>
594 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
596 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
598 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
600 * doc/invoke.texi (Options to Request or Suppress Warnings):
601 Explain options precedence.
602 (Wtrampolines): Do not indent paragraph.
604 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
606 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
607 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
608 (pa_jump_in_call_delay): Likewise.
609 * config/pa/pa.c (pa_option_override): Remove jump in call delay
611 (pa_output_millicode_call): Remove support for jump in call delay.
612 (pa_output_call): Likewise.
613 (pa_jump_in_call_delay): Delete.
614 (pa_following_call): Likewise.
615 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
616 (uncond_branch): Remove following call check from attribute length.
618 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
621 * config/sh/sh-modes.def (PSI): Remove.
622 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
623 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
624 (sh_reorg): Remove commented out FPSCR code.
625 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
626 insn instead of move insn.
627 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
628 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
630 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
631 (sh1_builtin_p): Uncomment.
632 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
633 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
634 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
635 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
636 (general_movsrc_operand, general_movdst_operand): Disallow
638 * config/sh/sh.md (FPSCR_FR): New constant.
639 (push_fpscr): Emit sts_fpscr insn.
640 (pop_fpscr): Emit lds_fpscr_insn.
641 (movsi_ie): Disallow FPSCR operands.
642 (fpu_switch, unnamed related split, extend_psi_si,
643 truncate_si_psi): Remove insns.
644 (lds_fpscr, sts_fpscr): New insns.
645 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
647 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
649 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
650 (clone_inlined_nodes): Do not overwrite the clone if above predicate
653 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
655 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
656 (expand_vec_perm_d): Ditto.
657 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
658 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
660 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
661 (ix86_expand_sse_unpack): Handle V64QImode.
662 (expand_vec_perm_blend): Update conditions for TARGET, handle
663 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
664 (expand_vec_perm_pshufb): Handle V64QImode.
665 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
666 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
667 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
668 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
669 (ix86_expand_vecop_qihi): Handle V64QImode.
670 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
671 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
672 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
673 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
674 (mul<mode>3): Use VI1_AVX512.
675 (<sse2_avx2>_packsswb): Ditto.
676 (<sse2_avx2>_packuswb): Ditto.
677 (<ssse3_avx2>_pshufb<mode>3): Ditto.
678 (<shift_insn><mode>3): Ditto.
680 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
682 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
683 conditions to fix bootstrap.
685 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
687 gcc-plugin.h: Add tm.h and flattened includes from function.h.
689 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
690 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
691 Anna Tikhonova <anna.tikhonova@intel.com>
692 Ilya Tocar <ilya.tocar@intel.com>
693 Andrey Turetskiy <andrey.turetskiy@intel.com>
694 Ilya Verbin <ilya.verbin@intel.com>
695 Kirill Yukhin <kirill.yukhin@intel.com>
696 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
698 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
699 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
700 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
701 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
702 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
703 (define_expand "vec_init<mode>"): Use VF48_I1248.
705 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
706 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
707 Anna Tikhonova <anna.tikhonova@intel.com>
708 Ilya Tocar <ilya.tocar@intel.com>
709 Andrey Turetskiy <andrey.turetskiy@intel.com>
710 Ilya Verbin <ilya.verbin@intel.com>
711 Kirill Yukhin <kirill.yukhin@intel.com>
712 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
714 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
715 expand_sse2_mulvxdi3.
717 2014-10-17 Richard Biener <rguenther@suse.de>
719 * fold-const.c (fold_comparison): Remove redundant constant
720 folding and operand swapping.
721 (fold_binary_loc): Do comparison operand swapping here.
722 (fold_ternary_loc): Canonicalize operand order for
723 commutative ternary operations.
724 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
727 2014-10-17 Jakub Jelinek <jakub@redhat.com>
729 PR tree-optimization/63464
730 * gimple.h (gimple_seq_discard): New prototype.
731 * gimple.c: Include stringpool.h and tree-ssanames.h.
732 (gimple_seq_discard): New function.
733 * optabs.h (lshift_cheap_p): New prototype.
734 * optabs.c (lshift_cheap_p): New function, moved from...
735 * tree-switch-conversion.c (lshift_cheap_p): ... here.
736 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
737 (reassoc_branch_fixups): New variable.
738 (update_range_test): Add otherrangep and seq arguments.
739 Unshare exp. If otherrange is NULL, use for other ranges
740 array of pointers pointed by otherrangep instead.
741 Emit seq before gimplified statements for tem.
742 (optimize_range_tests_diff): Adjust update_range_test
744 (optimize_range_tests_xor): Likewise. Fix up comment.
745 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
747 (optimize_range_tests): Adjust update_range_test caller.
748 Call optimize_range_tests_to_bit_test.
749 (branch_fixup): New function.
750 (execute_reassoc): Call branch_fixup.
752 PR tree-optimization/63302
753 * tree-ssa-reassoc.c (optimize_range_tests_xor,
754 optimize_range_tests_diff): Use !integer_pow2p () instead of
757 2014-10-17 Martin Liska <mliska@suse.cz>
759 * ipa-icf.c (sem_function::merge): Local flags are set to false
760 to enforce equal calling convention to be used.
761 * opts.c (common_handle_option): Indentation fix.
763 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
765 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
767 2014-10-17 Tom de Vries <tom@codesourcery.com>
769 PR rtl-optimization/61605
770 * regcprop.c (copyprop_hardreg_forward_1): Use
771 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
773 2014-10-17 Tom de Vries <tom@codesourcery.com>
775 PR rtl-optimization/61605
776 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
777 notice stores for noops. Don't regard noops as copies.
779 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
781 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
782 register in a special way.
783 (__cpuid_count): Ditto.
784 * config/i386/driver-i386.h: Protect with
785 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
786 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
787 is required to compile the function.
789 2014-10-16 DJ Delorie <dj@redhat.com>
791 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
794 * config/rs6000/rs6000-c.c (rid_int128): New.
795 (rs6000_macro_to_expand): Use instead of RID_INT128.
797 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
799 * function.h: Flatten file. Remove includes, adjust prototypes to
800 reflect only what is in function.h.
801 (enum direction, struct args_size, struct locate_and_pad_arg_data,
802 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
804 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
805 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
806 prototypes to predict.h.
807 (init_varasm_status): Move prototype to varasm.h.
808 * expr.h: Adjust include files.
809 (enum direction, struct args_size, struct locate_and_pad_arg_data,
810 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
812 (locate_and_pad_parm): Move prototype to function.h.
813 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
814 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
815 assign_temp, reposition_prologue_and_epilogue_notes,
816 prologue_epilogue_contains, sibcall_epilogue_contains,
817 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
818 set_return_jump_label): Move prototypes to function.h.
819 * predict.h (optimize_function_for_size_p,
820 optimize_function_for_speed_p): Relocate prototypes from function.h.
821 * shrink-wrap.h (emit_return_into_block, active_insn_between,
822 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
824 * varasm.h (init_varasm_status): Relocate prototype from function.h.
825 * genattrtab.c (write_header): Add predict.h to include list.
826 * genconditions.c (write_header): Add predict.h to include list.
827 * genemit.c (main): Adjust header file includes.
828 * gengtype.c (ifiles): Add flattened function.h header files.
829 * genoutput.c (output_prologue): Add predict.h to include list.
830 * genpreds.c (write_insn_preds_c): Adjust header file includes.
831 * genrecog.c (write_header): Add flattened function.h header files.
832 * alias.c: Adjust include files.
833 * auto-inc-dec.c: Likewise.
834 * basic-block.h: Likewise.
835 * bb-reorder.c: Likewise.
836 * bt-load.c: Likewise.
837 * builtins.c: Likewise.
838 * caller-save.c: Likewise.
840 * cfgbuild.c: Likewise.
841 * cfgcleanup.c: Likewise.
842 * cfgexpand.c: Likewise.
843 * cfgloop.c: Likewise.
844 * cfgloop.h: Likewise.
845 * cfgrtl.c: Likewise.
846 * cgraph.h: Likewise.
847 * cgraphclones.c: Likewise.
848 * cgraphunit.c: Likewise.
849 * combine-stack-adj.c: Likewise.
850 * combine.c: Likewise.
851 * coverage.c: Likewise.
854 * cselib.c: Likewise.
855 * dbxout.c: Likewise.
857 * df-core.c: Likewise.
858 * df-problems.c: Likewise.
859 * df-scan.c: Likewise.
860 * dojump.c: Likewise.
861 * dwarf2cfi.c: Likewise.
862 * dwarf2out.c: Likewise.
863 * emit-rtl.c: Likewise.
864 * except.c: Likewise.
865 * explow.c: Likewise.
868 * function.c: Likewise.
870 * gimple-fold.c: Likewise.
871 * gimple-low.c: Likewise.
872 * gimple-streamer.h: Likewise.
873 * haifa-sched.c: Likewise.
878 * loop-invariant.c: Likewise.
879 * lra-assigns.c: Likewise.
880 * lra-coalesce.c: Likewise.
881 * lra-constraints.c: Likewise.
882 * lra-eliminations.c: Likewise.
883 * lra-lives.c: Likewise.
884 * lra-spills.c: Likewise.
886 * lto-cgraph.c: Likewise.
887 * lto-section-in.c: Likewise.
888 * lto-section-out.c: Likewise.
889 * lto-streamer-in.c: Likewise.
890 * lto-streamer-out.c: Likewise.
891 * mode-switching.c: Likewise.
892 * modulo-sched.c: Likewise.
893 * omp-low.c: Likewise.
894 * optabs.c: Likewise.
895 * passes.c: Likewise.
896 * postreload-gcse.c: Likewise.
897 * postreload.c: Likewise.
898 * predict.c: Likewise.
899 * profile.c: Likewise.
902 * reg-stack.c: Likewise.
903 * regcprop.c: Likewise.
904 * reginfo.c: Likewise.
905 * regrename.c: Likewise.
906 * reload.c: Likewise.
907 * reload1.c: Likewise.
909 * resource.c: Likewise.
910 * rtlanal.c: Likewise.
911 * sched-deps.c: Likewise.
912 * sched-ebb.c: Likewise.
913 * sched-rgn.c: Likewise.
914 * sel-sched-dump.c: Likewise.
915 * sel-sched-ir.c: Likewise.
916 * sel-sched.c: Likewise.
917 * shrink-wrap.c: Likewise.
918 * simplify-rtx.c: Likewise.
919 * statistics.c: Likewise.
921 * stor-layout.c: Likewise.
922 * store-motion.c: Likewise.
923 * symtab.c: Likewise.
924 * targhooks.c: Likewise.
925 * toplev.c: Likewise.
926 * trans-mem.c: Likewise.
927 * tree-cfg.c: Likewise.
928 * tree-cfgcleanup.c: Likewise.
929 * tree-dfa.c: Likewise.
930 * tree-eh.c: Likewise.
931 * tree-inline.c: Likewise.
932 * tree-into-ssa.c: Likewise.
933 * tree-nested.c: Likewise.
934 * tree-nrv.c: Likewise.
935 * tree-profile.c: Likewise.
936 * tree-ssa-alias.c: Likewise.
937 * tree-ssa-ccp.c: Likewise.
938 * tree-ssa-copy.c: Likewise.
939 * tree-ssa-copyrename.c: Likewise.
940 * tree-ssa-dom.c: Likewise.
941 * tree-ssa-operands.c: Likewise.
942 * tree-ssa-propagate.c: Likewise.
943 * tree-ssa-structalias.c: Likewise.
944 * tree-ssa-tail-merge.c: Likewise.
945 * tree-ssa-threadedge.c: Likewise.
946 * tree-ssa-threadupdate.c: Likewise.
947 * tree-ssa-uncprop.c: Likewise.
948 * tree-ssa-uninit.c: Likewise.
949 * tree-ssa.c: Likewise.
950 * tree-stdarg.c: Likewise.
951 * tree-tailcall.c: Likewise.
954 * valtrack.c: Likewise.
955 * varasm.c: Likewise.
956 * vmsdbgout.c: Likewise.
958 * config/aarch64/aarch64.c: Add flattened includes from function.h.
959 * config/alpha/alpha.c: Likewise.
960 * config/arc/arc.c: Likewise.
961 * config/arm/arm.c: Likewise.
962 * config/avr/avr-log.c: Likewise.
963 * config/avr/avr.c: Likewise.
964 * config/bfin/bfin.c: Likewise.
965 * config/c6x/c6x.c: Likewise.
966 * config/cr16/cr16.c: Likewise.
967 * config/cris/cris.c: Likewise.
968 * config/darwin.c: Likewise.
969 * config/epiphany/epiphany.c: Likewise.
970 * config/epiphany/mode-switch-use.c: Likewise.
971 * config/epiphany/resolve-sw-modes.c: Likewise.
972 * config/fr30/fr30.c: Likewise.
973 * config/frv/frv.c: Likewise.
974 * config/h8300/h8300.c: Likewise.
975 * config/i386/i386.c: Likewise.
976 * config/ia64/ia64.c: Likewise.
977 * config/iq2000/iq2000.c: Likewise.
978 * config/lm32/lm32.c: Likewise.
979 * config/m32c/m32c.c: Likewise.
980 * config/m32r/m32r.c: Likewise.
981 * config/m68k/m68k.c: Likewise.
982 * config/mcore/mcore.c: Likewise.
983 * config/mep/mep-pragma.c: Likewise.
984 * config/mep/mep.c: Likewise.
985 * config/microblaze/microblaze.c: Likewise.
986 * config/mips/mips.c: Likewise.
987 * config/mmix/mmix.c: Likewise.
988 * config/mn10300/mn10300.c: Likewise.
989 * config/moxie/moxie.c: Likewise.
990 * config/msp430/msp430.c: Likewise.
991 * config/nds32/nds32-cost.c: Likewise.
992 * config/nds32/nds32-fp-as-gp.c: Likewise.
993 * config/nds32/nds32-intrinsic.c: Likewise.
994 * config/nds32/nds32-isr.c: Likewise.
995 * config/nds32/nds32-md-auxiliary.c: Likewise.
996 * config/nds32/nds32-memory-manipulation.c: Likewise.
997 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
998 * config/nds32/nds32-predicates.c: Likewise.
999 * config/nds32/nds32.c: Likewise.
1000 * config/nios2/nios2.c: Likewise.
1001 * config/pa/pa.c: Likewise.
1002 * config/pdp11/pdp11.c: Likewise.
1003 * config/rl78/rl78.c: Likewise.
1004 * config/rs6000/rs6000.c: Likewise.
1005 * config/rx/rx.c: Likewise.
1006 * config/s390/s390.c: Likewise.
1007 * config/score/score.c: Likewise.
1008 * config/sh/sh.c: Likewise.
1009 * config/sparc/sparc.c: Likewise.
1010 * config/spu/spu.c: Likewise.
1011 * config/stormy16/stormy16.c: Likewise.
1012 * config/tilegx/tilegx.c: Likewise.
1013 * config/tilepro/tilepro.c: Likewise.
1014 * config/v850/v850.c: Likewise.
1015 * config/vax/vax.c: Likewise.
1016 * config/xtensa/xtensa.c: Likewise.
1018 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
1020 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1021 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1023 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1025 * config/sh/sh-protos.h (fldi_ok): Remove.
1026 * config/sh/sh.c (fldi_ok): Likewise.
1027 (sh_secondary_reload): Don't use fldi_ok.
1028 * config/sh/constraints.md (G constraint, H constraint): Don't use
1031 2014-10-16 Martin Liska <mliska@suse.cz>
1033 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1034 Cast to unsigned long.
1035 (sem_item_optimizer::dump_cong_classes): Likewise.
1037 2014-10-16 Tom de Vries <tom@codesourcery.com>
1039 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1040 with SSA_NAME_IN_FREELIST.
1042 2014-10-16 Richard Biener <rguenther@suse.de>
1045 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1046 (fold_builtin_strncat_chk): Move ...
1047 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1048 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1050 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1053 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1056 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1057 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1058 Anna Tikhonova <anna.tikhonova@intel.com>
1059 Ilya Tocar <ilya.tocar@intel.com>
1060 Andrey Turetskiy <andrey.turetskiy@intel.com>
1061 Ilya Verbin <ilya.verbin@intel.com>
1062 Kirill Yukhin <kirill.yukhin@intel.com>
1063 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1065 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1068 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1069 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1070 Anna Tikhonova <anna.tikhonova@intel.com>
1071 Ilya Tocar <ilya.tocar@intel.com>
1072 Andrey Turetskiy <andrey.turetskiy@intel.com>
1073 Ilya Verbin <ilya.verbin@intel.com>
1074 Kirill Yukhin <kirill.yukhin@intel.com>
1075 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1077 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1078 V16SI, V32HI, V64QI modes.
1080 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1083 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1084 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1086 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1087 to match fp insn patterns.
1088 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1090 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1091 expand_df_unop, expand_df_binop): Remove.
1092 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1093 FPSCR_STAT_REG as not call clobbered.
1094 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1095 invoking fpscr_set_from_mem.
1097 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
1098 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
1100 (REGISTER_NAMES): Adjust.
1101 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1102 (FIRST_PSEUDO_REGISTER): Increase to 156.
1103 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
1104 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
1106 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
1107 FPSCR_MODES_REG and FPSCR_STAT_REG.
1108 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1110 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
1111 FPSCR_SZ): Add new constants.
1112 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
1114 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
1115 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
1116 Use TARGET_FPU_ANY condition.
1117 (fpu_switch peephole2): Remove.
1118 (fpu_switch split): Use simple_mem_operand to capture the mem and
1119 adjust split implementation.
1120 (extend_psi_si, truncate_si_psi): New insns.
1121 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
1122 set of FPSCR_MODES_REG.
1124 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
1125 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
1126 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
1127 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
1128 call_value_compact, call_value_compact_rettramp, call,
1129 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
1130 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
1131 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1132 sibcall_value_compact, sibcall_value, call_value_pop_compact,
1133 call_value_pop_compact_rettramp, various unnamed splits):
1134 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
1137 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1138 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1139 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1140 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1141 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1143 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1144 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1145 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1146 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1147 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1148 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1149 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
1151 2014-10-16 Martin Liska <mliska@suse.cz>
1152 Jan Hubicka <hubicka@ucw.cz>
1154 * Makefile.in: New object files included.
1155 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1157 (verify_edge_corresponds_to_fndecl): More sensitive verification
1158 of nodes that are merged by IPA ICF.
1159 * cgraph.h (cgraph_node::num_references): New function.
1160 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1161 * common.opt: New options ipa-icf, ipa-icf-functions and
1162 ipa-icf-variables introduced.
1163 * doc/invoke.texi: Documentation of new options introduced.
1164 * ipa-icf-gimple.c: New file.
1165 * ipa-icf-gimple.h: New file.
1166 * ipa-icf.c: New file.
1167 * ipa-icf.h: New file.
1168 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1169 (input_overwrite_node): Likewise.
1170 * lto-section-in.c: New icf section added.
1171 * lto-streamer.h (enum lto_section_type): Likewise.
1172 * opts.c (common_handle_option): New option added.
1173 * passes.def: New pass included.
1174 * timevar.def: Time variable for IPA ICF added.
1175 * tree-pass.h: New IPA ICF pass entry point added.
1177 2014-10-16 Richard Biener <rguenther@suse.de>
1179 PR tree-optimization/63168
1180 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1181 latches if after merging they are no longer simple.
1182 * cfghooks.c (merge_blocks): Handle merging a latch block
1185 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1186 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1187 Anna Tikhonova <anna.tikhonova@intel.com>
1188 Ilya Tocar <ilya.tocar@intel.com>
1189 Andrey Turetskiy <andrey.turetskiy@intel.com>
1190 Ilya Verbin <ilya.verbin@intel.com>
1191 Kirill Yukhin <kirill.yukhin@intel.com>
1192 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1194 * config/i386/sse.md
1195 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1196 support AVX-512VL instructions.
1198 2014-10-16 DJ Delorie <dj@redhat.com>
1200 * tree-core.h: Fix comment to not assume pointers are multiples of
1203 2014-10-15 Tom Tromey <tromey@redhat.com>
1205 * timevar.h (class auto_timevar): New class.
1207 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
1210 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1211 Remove the second alternative.
1212 (regprefix): Remove mode attribute.
1213 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1214 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1217 2013-11-05 Ian Lance Taylor <iant@google.com>
1219 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1220 If possible, add .cfi directives to record change to bx.
1221 * config/i386/i386.c (ix86_emit_cfi): New function.
1222 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1224 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
1227 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1229 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1232 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
1234 PR rtl-optimization/63448
1235 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
1236 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
1237 (LRA_MAX_INHERITANCE_PASSES): Use it.
1238 (lra_constraint_iter_after_spill): Remove.
1239 (lra_assignment_iter): New.
1240 (lra_assignment_iter_after_spill): New.
1241 * lra-assigns.c (lra_assignment_iter): New.
1242 (lra_assignment_iter_after_spill): New.
1243 (former_reload_pseudo_spill_p): New.
1244 (spill_for): Set up former_reload_pseudo_spill_p.
1245 (setup_live_pseudos_and_spill_after_risky): Ditto.
1246 (assign_by_spills): Ditto.
1247 (lra_assign): Increment lra_assignment_iter. Print the iteration
1248 number. Reset former_reload_pseudo_spill_p. Check
1249 lra_assignment_iter_after_spill.
1250 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
1251 lra_assignment_iter and lra_assignment_iter_after_spill.
1252 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
1253 (lra_constraints): Remove code with
1254 lra_assignment_iter_after_spill.
1256 2014-10-15 Teresa Johnson <tejohnson@google.com>
1259 * tree-ssa-threadupdate.c (recompute_probabilities): Better
1262 2014-10-15 Renlin Li <renlin.li@arm.com>
1264 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1265 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
1266 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
1267 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
1269 2014-10-15 Richard Biener <rguenther@suse.de>
1271 * gimple-fold.c (gimple_fold_call): Properly keep virtual
1272 SSA form up-to-date when devirtualizing a call to
1273 __builtin_unreachable and avoid fixing up EH info here.
1275 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1276 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1277 Anna Tikhonova <anna.tikhonova@intel.com>
1278 Ilya Tocar <ilya.tocar@intel.com>
1279 Andrey Turetskiy <andrey.turetskiy@intel.com>
1280 Ilya Verbin <ilya.verbin@intel.com>
1281 Kirill Yukhin <kirill.yukhin@intel.com>
1282 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1284 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
1285 to support AVX-512BW.
1286 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
1287 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
1288 (define_insn "*<plusminus_insn><mode>3"): Ditto.
1289 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
1290 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1291 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
1292 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1293 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
1294 (define_insn "*andnot<mode>3"): Ditto.
1295 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
1296 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
1297 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1298 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
1299 (define_insn "*abs<mode>2"): Remove masking support.
1300 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
1301 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
1302 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
1304 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1305 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1306 Anna Tikhonova <anna.tikhonova@intel.com>
1307 Ilya Tocar <ilya.tocar@intel.com>
1308 Andrey Turetskiy <andrey.turetskiy@intel.com>
1309 Ilya Verbin <ilya.verbin@intel.com>
1310 Kirill Yukhin <kirill.yukhin@intel.com>
1311 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1313 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
1314 * config/i386/sse.md
1315 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
1316 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
1317 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
1318 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1319 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1320 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1321 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1323 2014-10-15 Renlin Li <renlin.li@arm.com>
1325 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
1327 2014-10-15 Jakub Jelinek <jakub@redhat.com>
1329 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
1330 MINUS_EXPR in unsigned type to avoid undefined behavior.
1332 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
1334 * stor-layout.c (self_referential_size): Do not promote arguments.
1336 2014-10-15 Marek Polacek <polacek@redhat.com>
1338 * doc/invoke.texi: Update to reflect that GNU11 is the default
1340 * c-common.h (c_language_kind): Update comment.
1342 2014-10-15 Richard Biener <rguenther@suse.de>
1344 * hash-table.c: Include bconfig.h if building for the host.
1345 * hash-table.h: Do not include ggc.h on the host but just declare
1346 a few ggc allocation templates.
1348 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
1349 Jeff Law <law@redhat.com>
1351 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
1352 multiple hard registers, use smaller mode derived from MODE.
1354 2014-10-15 Andreas Schwab <schwab@suse.de>
1356 * explow.c (convert_memory_address_addr_space_1): Mark in_const
1357 as ATTRIBUTE_UNUSED.
1359 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
1361 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
1362 (decide_unrolling): ... this one.
1363 (peel_loops_completely): Remove.
1364 (decide_peel_simple): Remove.
1365 (decide_peel_once_rolling): Remove.
1366 (decide_peel_completely): Remove.
1367 (peel_loop_simple): Remove.
1368 (peel_loop_completely): Remove.
1369 (unroll_and_peel_loops): Rename to ...
1370 (unroll_loops): ... this one; handle only unrolling.
1371 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
1374 (unroll_and_peel_loops): Remove.
1375 (unroll_loops): New.
1376 * passes.def: Replace
1377 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
1378 * loop-init.c (gate_rtl_unroll_and_peel_loops,
1379 rtl_unroll_and_peel_loops): Rename to ...
1380 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
1381 (pass_rtl_unroll_and_peel_loops): Rename to ...
1382 (pass_rtl_unroll_loops): ... this one.
1383 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
1384 (make_pass_rtl_unroll_loops): New.
1385 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
1386 (canonicalize_loop_induction_variables): Update.
1388 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1390 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
1391 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
1392 !TARGET_HARD_FLOAT_POSTINC.
1393 (*lsip, *ssip): new instructions.
1395 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1397 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
1400 2014-10-14 Andrew Pinski <apinski@cavium.com>
1402 * explow.c (convert_memory_address_addr_space): Rename to ...
1403 (convert_memory_address_addr_space_1): This. Add in_const argument.
1404 Inside a CONST RTL, permute the conversion and addition of constant
1405 for zero and sign extended pointers.
1406 (convert_memory_address_addr_space): New function.
1408 2014-10-14 Andrew Pinski <apinski@cavium.com>
1411 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
1414 * explow.c (convert_memory_address_addr_space): Also permute the
1415 conversion and addition of constant for zero-extend.
1417 2014-10-14 DJ Delorie <dj@redhat.com>
1419 * config/msp430/msp430-modes.def (PSI): Add.
1421 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
1422 (msp430_hard_regno_nregs_with_padding): New.
1423 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
1424 (msp430_hard_regno_nregs_has_padding): New.
1425 (msp430_hard_regno_nregs_with_padding): New.
1426 (msp430_unwind_word_mode): Use PSImode instead of SImode.
1427 (msp430_addr_space_legitimate_address_p): New.
1428 (msp430_asm_integer): New.
1429 (msp430_init_dwarf_reg_sizes_extra): New.
1430 (msp430_print_operand): Use X suffix for PSImode even in small model.
1431 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
1432 (PTR_SIZE): ...but 4 bytes for EH.
1433 (SIZE_TYPE): Use __int20.
1434 (PTRDIFF_TYPE): Likewise.
1435 (INCOMING_FRAME_SP_OFFSET): Adjust.
1436 * config/msp430/msp430.md (movqi_topbyte): New.
1437 (movpsi): Use fixed suffixes.
1438 (movsipsi2): Enable for 430X, not large model.
1439 (extendhipsi2): Likewise.
1440 (zero_extendhisi2): Likewise.
1441 (zero_extendhisipsi2): Likewise.
1442 (extend_and_shift1_hipsi2): Likewise.
1443 (extendpsisi2): Likewise.
1444 (*bitbranch<mode>4_z): Fix suffix logic.
1446 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
1449 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
1450 do not choke on null node.
1451 <VAR_DECL>: Likewise.
1453 2014-10-14 DJ Delorie <dj@redhat.com>
1455 * machmode.h (int_n_data_t): New.
1456 (int_n_enabled_p): New.
1458 * tree.c (int_n_enabled_p): New.
1460 (make_or_reuse_type): Check for all __intN types, not just
1462 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
1464 * tree.h (int128_integer_type_node): Remove.
1465 (int128_unsigned_type_node): Remove.
1466 (int_n_trees_t): New.
1467 (int_n_enabled_p): New.
1469 * toplev.c (standard_type_bitsize): New.
1470 (do_compile): Check which __intN types are enabled for the current
1472 * builtin-types.def (BT_INT128): Remove.
1473 (BT_UINT128): Remove.
1474 * machmode.def: Add macro to create __int128 for all targets.
1475 * stor-layout.c (mode_for_size): Support __intN types.
1476 (smallest_mode_for_size): Likewise.
1477 (initialize_sizetypes): Support __intN types.
1478 * genmodes.c (struct mode_data): Add int_n field.
1479 (blank_mode): Likewise.
1482 (emit_insn_modes_h): Count __intN entries and define
1484 (emit_mode_int_n): New.
1485 (emit_insn_modes_c): Call it.
1486 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1487 types, not just __int128.
1488 * tree-core.h (integer_type_kind): Remove __int128-specific
1489 entries, reserve spots for __intN entries.
1491 * config/msp430/msp430-modes.def (PSI): Add.
1493 2014-10-14 Kito Cheng <kito@0xlab.org>
1495 * ira.c: Fix typo in comment.
1497 * ira-build.c: Ditto.
1498 * ira-color.c: Ditto.
1499 * ira-emit.c: Ditto.
1501 * ira-lives.c: Ditto.
1503 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
1505 PR rtl-optimization/63475
1506 * alias.c (true_dependence_1): Always use get_addr to extract
1507 true address operands from x_addr and mem_addr. Use extracted
1508 address operands to check for references with alignment ANDs.
1509 Use extracted address operands with find_base_term and
1510 base_alias_check. For noncanonicalized operands call canon_rtx with
1511 extracted address operand.
1512 (write_dependence_1): Ditto.
1513 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
1515 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
1518 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1521 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1522 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1523 Anna Tikhonova <anna.tikhonova@intel.com>
1524 Ilya Tocar <ilya.tocar@intel.com>
1525 Andrey Turetskiy <andrey.turetskiy@intel.com>
1526 Ilya Verbin <ilya.verbin@intel.com>
1527 Kirill Yukhin <kirill.yukhin@intel.com>
1528 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1530 * config/i386/i386.c
1531 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1532 (ix86_expand_int_vcond): Ditto.
1534 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1535 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1536 Anna Tikhonova <anna.tikhonova@intel.com>
1537 Ilya Tocar <ilya.tocar@intel.com>
1538 Andrey Turetskiy <andrey.turetskiy@intel.com>
1539 Ilya Verbin <ilya.verbin@intel.com>
1540 Kirill Yukhin <kirill.yukhin@intel.com>
1541 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1543 * config/i386/i386.c
1544 (emit_reduc_half): Handle V64QI and V32HI mode.
1545 * config/i386/sse.md
1546 (define_mode_iterator VI_AVX512BW): New.
1547 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1549 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1550 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1551 Anna Tikhonova <anna.tikhonova@intel.com>
1552 Ilya Tocar <ilya.tocar@intel.com>
1553 Andrey Turetskiy <andrey.turetskiy@intel.com>
1554 Ilya Verbin <ilya.verbin@intel.com>
1555 Kirill Yukhin <kirill.yukhin@intel.com>
1556 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1558 * config/i386/sse.md
1559 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1561 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1562 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1563 Anna Tikhonova <anna.tikhonova@intel.com>
1564 Ilya Tocar <ilya.tocar@intel.com>
1565 Andrey Turetskiy <andrey.turetskiy@intel.com>
1566 Ilya Verbin <ilya.verbin@intel.com>
1567 Kirill Yukhin <kirill.yukhin@intel.com>
1568 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1570 * config/i386/i386.c
1571 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1572 * config/i386/sse.md
1573 (define_mode_iterator VI): Add V64QI and V32HI modes.
1575 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1576 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1577 Anna Tikhonova <anna.tikhonova@intel.com>
1578 Ilya Tocar <ilya.tocar@intel.com>
1579 Andrey Turetskiy <andrey.turetskiy@intel.com>
1580 Ilya Verbin <ilya.verbin@intel.com>
1581 Kirill Yukhin <kirill.yukhin@intel.com>
1582 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1584 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
1586 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1587 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1588 Anna Tikhonova <anna.tikhonova@intel.com>
1589 Ilya Tocar <ilya.tocar@intel.com>
1590 Andrey Turetskiy <andrey.turetskiy@intel.com>
1591 Ilya Verbin <ilya.verbin@intel.com>
1592 Kirill Yukhin <kirill.yukhin@intel.com>
1593 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1595 * config/i386/sse.md
1596 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1597 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1599 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1600 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1601 Anna Tikhonova <anna.tikhonova@intel.com>
1602 Ilya Tocar <ilya.tocar@intel.com>
1603 Andrey Turetskiy <andrey.turetskiy@intel.com>
1604 Ilya Verbin <ilya.verbin@intel.com>
1605 Kirill Yukhin <kirill.yukhin@intel.com>
1606 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1608 * config/i386/sse.md
1609 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1610 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1612 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1613 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1614 Anna Tikhonova <anna.tikhonova@intel.com>
1615 Ilya Tocar <ilya.tocar@intel.com>
1616 Andrey Turetskiy <andrey.turetskiy@intel.com>
1617 Ilya Verbin <ilya.verbin@intel.com>
1618 Kirill Yukhin <kirill.yukhin@intel.com>
1619 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1621 * config/i386/sse.md
1622 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1623 (define_mode_iterator VI2_AVX2): Add V32HI mode.
1624 (define_expand "mul<mode>3<mask_name>"): Add masking.
1625 (define_insn "*mul<mode>3<mask_name>"): Ditto.
1626 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
1627 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
1628 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
1629 (define_mode_attr SDOT_PMADD_SUF): Ditto.
1630 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
1631 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
1632 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
1633 (define_insn "avx2_packusdw"): Delete.
1634 (define_insn "sse4_1_packusdw"): Ditto.
1635 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
1637 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1638 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1639 Anna Tikhonova <anna.tikhonova@intel.com>
1640 Ilya Tocar <ilya.tocar@intel.com>
1641 Andrey Turetskiy <andrey.turetskiy@intel.com>
1642 Ilya Verbin <ilya.verbin@intel.com>
1643 Kirill Yukhin <kirill.yukhin@intel.com>
1644 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1646 * config/i386/sse.md
1647 (define_insn "vec_dup<mode>"): Update constraints.
1649 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1650 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1651 Anna Tikhonova <anna.tikhonova@intel.com>
1652 Ilya Tocar <ilya.tocar@intel.com>
1653 Andrey Turetskiy <andrey.turetskiy@intel.com>
1654 Ilya Verbin <ilya.verbin@intel.com>
1655 Kirill Yukhin <kirill.yukhin@intel.com>
1656 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1658 * config/i386/sse.md
1659 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
1660 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
1661 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
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>
1672 * config/i386/sse.md
1673 (define_expand "mul<mode>3<mask_name>"): Add masking.
1675 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1676 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1677 Anna Tikhonova <anna.tikhonova@intel.com>
1678 Ilya Tocar <ilya.tocar@intel.com>
1679 Andrey Turetskiy <andrey.turetskiy@intel.com>
1680 Ilya Verbin <ilya.verbin@intel.com>
1681 Kirill Yukhin <kirill.yukhin@intel.com>
1682 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1684 * config/i386/sse.md
1685 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
1686 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
1688 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1689 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1690 Anna Tikhonova <anna.tikhonova@intel.com>
1691 Ilya Tocar <ilya.tocar@intel.com>
1692 Andrey Turetskiy <andrey.turetskiy@intel.com>
1693 Ilya Verbin <ilya.verbin@intel.com>
1694 Kirill Yukhin <kirill.yukhin@intel.com>
1695 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1697 * config/i386/sse.md
1698 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
1699 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
1700 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
1703 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1704 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1705 Anna Tikhonova <anna.tikhonova@intel.com>
1706 Ilya Tocar <ilya.tocar@intel.com>
1707 Andrey Turetskiy <andrey.turetskiy@intel.com>
1708 Ilya Verbin <ilya.verbin@intel.com>
1709 Kirill Yukhin <kirill.yukhin@intel.com>
1710 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1712 * config/i386/sse.md
1713 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
1714 use VF_128_256 mode iterator and update assembler emit code.
1715 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
1716 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
1717 Add masking, use VF_128_256 mode iterator.
1718 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
1719 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
1720 Add masking, use VF_128_256 mode iterator and update assembler emit
1722 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
1723 (define_mode_attr avx512flogicsuff): Delete.
1724 (define_insn "avx512f_<logic><mode>"): Ditto.
1725 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
1727 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1729 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1730 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1731 Anna Tikhonova <anna.tikhonova@intel.com>
1732 Ilya Tocar <ilya.tocar@intel.com>
1733 Andrey Turetskiy <andrey.turetskiy@intel.com>
1734 Ilya Verbin <ilya.verbin@intel.com>
1735 Kirill Yukhin <kirill.yukhin@intel.com>
1736 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1738 * config/i386/sse.md
1739 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
1740 (define_expand "vashr<mode>3<mask_name>"): Add masking,
1741 use VI12_128 mode iterator.
1742 (define_expand "ashrv2di3<mask_name>"): New.
1744 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1745 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1746 Anna Tikhonova <anna.tikhonova@intel.com>
1747 Ilya Tocar <ilya.tocar@intel.com>
1748 Andrey Turetskiy <andrey.turetskiy@intel.com>
1749 Ilya Verbin <ilya.verbin@intel.com>
1750 Kirill Yukhin <kirill.yukhin@intel.com>
1751 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1753 * config/i386/i386.c
1754 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
1755 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
1756 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
1757 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
1758 CODE_FOR_avx512vl_ucmpv4si3_mask.
1759 * config/i386/sse.md
1760 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
1761 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
1763 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
1764 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
1765 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
1766 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
1767 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
1768 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
1770 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1771 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1772 Anna Tikhonova <anna.tikhonova@intel.com>
1773 Ilya Tocar <ilya.tocar@intel.com>
1774 Andrey Turetskiy <andrey.turetskiy@intel.com>
1775 Ilya Verbin <ilya.verbin@intel.com>
1776 Kirill Yukhin <kirill.yukhin@intel.com>
1777 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1779 * config/i386/sse.md
1780 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
1781 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
1782 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
1783 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
1784 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
1785 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
1786 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1787 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1788 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
1790 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1791 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1792 Anna Tikhonova <anna.tikhonova@intel.com>
1793 Ilya Tocar <ilya.tocar@intel.com>
1794 Andrey Turetskiy <andrey.turetskiy@intel.com>
1795 Ilya Verbin <ilya.verbin@intel.com>
1796 Kirill Yukhin <kirill.yukhin@intel.com>
1797 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1799 * config/i386/sse.md
1800 (define_insn "avx512f_blendm<mode>"): Delete.
1801 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
1802 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
1803 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
1804 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
1806 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1809 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1812 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1814 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
1815 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
1816 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
1817 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
1820 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
1823 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
1825 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
1828 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
1831 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
1834 2014-10-14 Richard Biener <rguenther@suse.de>
1836 PR tree-optimization/63512
1837 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
1840 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
1843 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
1844 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
1846 (negsf2_i): Rename to *negsf2_i.
1847 (abssf2_i): Rename to *abssf2_i.
1848 (negdf2_i): Rename to *negdf2_i.
1849 (absdf2_i): Rename to *absdf2_i.
1851 2014-10-14 Felix Yang <felix.yang@huawei.com>
1852 Jeff Law <law@redhat.com>
1854 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
1855 "replace" into boolean bitfields; turn member "loop_depth" into a short
1856 integer; add new member "no_equiv" and "reserved".
1857 (no_equiv): Set no_equiv of struct equivalence if register is marked
1858 as having no known equivalence.
1859 (update_equiv_regs): Check all definitions for a multiple-set
1860 register to make sure that the RHS have the same value.
1862 2014-10-13 Richard Henderson <rth@redhat.com>
1864 * combine-stack-adj.c (no_unhandled_cfa): New.
1865 (maybe_merge_cfa_adjust): New.
1866 (combine_stack_adjustments_for_block): Use them.
1868 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
1870 * Makefile.in (TAGS): Tag ../include files.
1872 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1874 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
1875 to rs6000_dbx_register_number.
1876 (DWARF_FRAME_REGNUM): Redefine as identity map.
1877 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
1878 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
1879 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
1880 argument to handle .debug_frame and .eh_frame directly. Always
1881 translate SPE high register numbers. Add special treatment for CR,
1882 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
1884 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
1885 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
1886 (RS6000_USE_DWARF_NUMBERING): Define.
1887 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
1888 (RS6000_USE_DWARF_NUMBERING): Define.
1889 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
1890 (RS6000_USE_DWARF_NUMBERING): Define.
1891 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
1892 (RS6000_USE_DWARF_NUMBERING): Define.
1893 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
1894 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
1896 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
1898 * config/i386/i386.c (ix86_address_cost): Lower cost for
1899 when address contains GOT register.
1901 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
1902 Vladimir Makarov <vmakarov@redhat.com>
1906 PR rtl-optimization/55458
1907 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
1908 (ix86_init_pic_reg): New.
1909 (ix86_select_alt_pic_regnum): Add check on pseudo register.
1910 (ix86_save_reg): Likewise.
1911 (ix86_expand_prologue): Remove PIC register initialization
1912 now performed in ix86_init_pic_reg.
1913 (ix86_output_function_epilogue): Add check on pseudo register.
1914 (set_pic_reg_ever_alive): New.
1915 (legitimize_pic_address): Replace df_set_regs_ever_live with new
1916 set_pic_reg_ever_alive.
1917 (legitimize_tls_address): Likewise.
1918 (ix86_pic_register_p): New check.
1919 (ix86_delegitimize_address): Add check on pseudo register.
1920 (ix86_expand_call): Insert move from pseudo PIC register to ABI
1921 defined REAL_PIC_OFFSET_TABLE_REGNUM.
1922 (TARGET_INIT_PIC_REG): New.
1923 (TARGET_USE_PSEUDO_PIC_REG): New.
1924 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
1925 if pic_offset_table_rtx exists.
1926 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
1928 * doc/tm.texi: Regenerate.
1929 * function.c (assign_parms): Generate pseudo register for PIC.
1930 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
1932 * ira-color.c (color_pass): Add check on pseudo register.
1933 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
1935 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
1937 (ira): Add target specific PIC register initialization.
1938 (do_reload): Keep PIC pseudo register.
1939 * lra-assigns.c (spill_for): Add checks on pseudo register.
1940 * lra-constraints.c (contains_symbol_ref_p): New.
1941 (lra_constraints): Enable lra risky transformations when PIC is pseudo
1943 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
1944 * target.def (use_pseudo_pic_reg): New.
1945 (init_pic_reg): New.
1947 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
1949 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
1950 Remove m_SILVERMONT and m_INTEL from the tune.
1952 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1955 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
1956 when _HPUX_SOURCE is defined.
1958 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
1960 PR tree-optimization/62127
1961 * tree.c (remap_type_1): When remapping array, remap
1964 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
1966 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
1967 longer impact parallelization.
1969 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
1972 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
1974 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
1976 * asan.c (instrument_derefs): BIT_FIELD_REF added.
1978 2014-10-13 Richard Biener <rguenther@suse.de>
1980 PR tree-optimization/63419
1981 * gimple-fold.h (gimple_convert): New function.
1982 * gimple-fold.c (gimple_convert): Likewise.
1983 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
1984 to split out required conversions early.
1986 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
1988 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
1989 Add the parts of an insn in reverse order, with the pattern at
1990 the top of the queue. Detect when we're iterating over a SEQUENCE
1991 pattern and in that case just consider patterns of subinstructions.
1993 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
1996 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
1998 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2000 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2001 address. Use def chains to handle GBR clobbering call insns.
2003 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2005 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2006 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2007 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2008 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2009 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2010 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2011 * doc/gty.texi (for_user): Document new option.
2012 * gengtype.c (create_user_defined_type): Don't try to get a struct for
2014 (walk_type): Don't error out on for_user option.
2015 (write_func_for_structure): Emit user marking routines if requested by
2017 (write_local_func_for_structure): Likewise.
2018 (main): Mark types with for_user option as used.
2019 * ggc.h (gt_pch_nx): Add overload for unsigned int.
2020 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2021 * hash-table.h (ggc_hasher): New struct.
2022 (hash_table::create_ggc): New function.
2023 (gt_pch_nx): New overload for hash_table.
2025 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
2027 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2028 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2029 * config/sh/sh.c: Likewise.
2030 * config/sh/sh-mem.cc: Likewise.
2031 * config/sh/sh.md: Likewise.
2032 * config/sh/predicates.md: Likewise.
2033 * config/sh/sync.md: Likewise.
2035 2014-10-11 Martin Liska <mliska@suse.cz>
2038 * cgraphunit.c (symbol_table::process_new_functions): Missing call
2039 for call_cgraph_insertion_hooks added.
2041 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2044 * stor-layout.c (min_align_of_type): Don't decrease alignment
2045 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2046 TYPE_USER_ALIGN is set.
2048 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
2050 PR rtl-optimization/63483
2051 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2052 references when alignment ANDs are involved.
2053 (write_dependence_p): Ditto.
2054 (may_alias_p): Ditto.
2056 2014-10-10 Marek Polacek <polacek@redhat.com>
2058 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2059 * doc/invoke.texi: Document -fsanitize=object-size.
2060 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2061 or it into SANITIZE_UNDEFINED.
2062 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2063 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2064 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2065 * opts.c (common_handle_option): Handle -fsanitize=object-size.
2066 * ubsan.c: Include tree-object-size.h.
2067 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2068 (ubsan_expand_bounds_ifn): Use false instead of 0.
2069 (ubsan_expand_objsize_ifn): New function.
2070 (instrument_object_size): New function.
2071 (pass_ubsan::execute): Add object size instrumentation.
2072 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2074 2014-10-10 Richard Henderson <rth@redhat.com>
2077 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2078 Restrict the set of expressions we're willing to move.
2080 2014-10-10 Jeff Law <law@redhat.com>
2082 * ira.c (struct equivalence): Promote INIT_INSNs field to
2083 an rtx_insn_list. Add comments.
2084 (no_equiv): Promote LIST to an rtx_insn_list. Update
2085 testing for and creating the special marker. Use methods
2086 to extract the insn and next pointers. Promote INSN to an
2088 (update_equiv_regs): Update test for special marker in the
2091 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2093 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2094 * configure: Regenerate.
2095 * config/aarch64/aarch64.c (aarch64_override_options): Handle
2096 TARGET_FIX_ERR_A53_835769_DEFAULT.
2097 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
2099 * doc/install.texi (aarch64*-*-*): Document
2100 new --enable-fix-cortex-a53-835769 option.
2102 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2103 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2105 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
2106 (ADJUST_INSN_LENGTH): Define.
2107 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
2108 * config/aarch64/aarch64.c (is_mem_p): New function.
2109 (is_memory_op): Likewise.
2110 (aarch64_prev_real_insn): Likewise.
2111 (is_madd_op): Likewise.
2112 (dep_between_memop_and_curr): Likewise.
2113 (aarch64_madd_needs_nop): Likewise.
2114 (aarch64_final_prescan_insn): Likewise.
2115 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
2116 and -mno-fix-cortex-a53-835769 options.
2118 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2120 PR tree-optimization/63464
2121 * tree-switch-conversion.c (struct case_bit_test): Remove
2122 hi and lo fields, add wide_int mask field.
2123 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
2124 hi/lo fields into wide_int mask operations, optimize by pretending
2125 minval to be 0 if maxval is small enough.
2126 (process_switch): Adjust caller.
2128 2014-10-10 Richard Biener <rguenther@suse.de>
2130 PR tree-optimization/63379
2131 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
2132 a neutral operand for min/max when it is not a reduction chain.
2134 2014-10-10 Richard Biener <rguenther@suse.de>
2136 PR tree-optimization/63476
2137 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2138 (BB_LIVE_VOP_ON_EXIT): New define.
2139 (create_expression_by_pieces): Assign VUSEs to stmts.
2140 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2141 (pass_pre::execute): Assert virtual SSA form is up-to-date
2144 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
2146 * lra-assigns.c (assign_by_spills): Error out on spill failure.
2148 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
2150 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2153 2014-10-09 Richard Biener <rguenther@suse.de>
2155 PR tree-optimization/63380
2156 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2159 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
2161 * config/avr/avr.opt (mmcu=): Change to have a string value.
2162 (mn-flash=, mskip-bug, march=, mrmw): New options.
2163 (HeaderInclude): New.
2164 (mmcu=): Remove Var / Init clauses.
2165 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2167 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2168 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2169 (SYMBOL_FLAG_IO_LOW): Define.
2170 (avr_device_to_as, avr_device_to_ld): Don't declare.
2171 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2172 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2173 (EXTRA_SPEC_FUNCTIONS): Don't define.
2174 (ASM_SPEC): Translate -arch= option to -mmcu= option.
2175 (LINK_SPEC): Translate -arch= option to -m= option.
2176 Don't use device_to_ld / device_to_data_start.
2177 (STARTFILE_SPEC): Now empty.
2178 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2179 * config/avr/gen-avr-mmcu-specs.c: New file.
2180 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2181 (s-device-specs): Likewise.
2182 (GCC_PASSES): Add s-device-specs.
2183 (install-driver): Depend on install-device-specs.
2184 (install-device-specs): New rule.
2185 * config/avr/avr.c (avr_option_override): Look up mcu arch by
2186 avr_arch_index and provide fallback initialization for avr_n_flash.
2187 (varasm.h): #include.
2188 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2189 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2190 (avr_attribute_table): Add "io", "address" and "io_low".
2191 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2192 Add special handling for symbols with "io" and/or "address" attributes.
2193 (avr_asm_asm_output_aligned_bss): New function.
2194 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2195 as appropriate. Handle io_low attribute.
2196 (avr_out_sbxx_branch): Handle symbolic io addresses.
2197 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2198 avr_n_flash instead of avr_current_device->n_flash.
2199 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2200 (avr_emit_movmemhi): Likewise.
2201 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2202 Use TARGET_RMW instead of avr_current_device->dev_attributes.
2203 Don't define avr_current_device->macro (that's the specfile's job).
2204 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2205 * config/avr/avr.c (avr_2word_insn_p): Likewise.
2206 * config/avr/avr.md (*cpse.ne): Likewise.
2207 (mov<mode>): Use avr_eval_addr_attrib.
2208 (cbi): Change constraint for low_io_address_operand operand to "i".
2209 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2210 * config/avr/predicates.md (io_address_operand):
2211 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2212 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2213 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2215 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2216 * config/avr/genmultilib.awk: Use -march=.
2217 Remove Multilib matches processing.
2218 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2219 * config/avr/avr-arch.h: Add double include guard.
2220 (avr_mcu_t) <library_name>: Update comment.
2221 * config/avr/driver-avr.c (avr_device_to_as): Delete.
2222 (avr_device_to_ld, avr_device_to_data_start): Likewise.
2223 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2224 (avr_device_to_sp8): Likewise.
2225 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
2227 * doc/extend.texi (io, address): Document new AVR variable attributes.
2230 2014-10-09 Marek Polacek <polacek@redhat.com>
2232 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2234 2014-10-08 Richard Biener <rguenther@suse.de>
2236 PR tree-optimization/61969
2237 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
2240 2014-10-09 Richard Biener <rguenther@suse.de>
2242 PR tree-optimization/63445
2243 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
2244 overflow for non-equality compares.
2246 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
2248 PR rtl-optimization/57003
2249 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2250 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
2251 killing regs_invalidated_by_call.
2253 2014-10-08 Teresa Johnson <tejohnson@google.com>
2256 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
2257 (ssa_fix_duplicate_block_edges): Invoke it.
2258 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
2260 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
2263 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2264 atomic_fetch_<fetchop_name>si_hard,
2265 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
2266 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
2267 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
2268 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
2270 2014-10-08 Rong Xu <xur@google.com>
2272 * gcov-tool.c (profile_overlap): New driver function
2273 to compute profile overlap.
2274 (print_overlap_usage_message): New.
2275 (overlap_usage): New.
2277 (print_usage): Add calls to overlap function.
2279 * doc/gcov-tool.texi: Add documentation.
2281 2014-10-08 Steve Ellcey <sellcey@mips.com>
2283 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
2284 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
2286 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
2288 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
2289 pattern matching of MEM_REF.
2290 (check_stmt_for_type_change): Update.
2292 2014-10-08 Steve Ellcey <sellcey@mips.com>
2294 * config/mips/linux64.h: Remove.
2295 * config/mips/gnu-user64.h: Remove.
2296 * gcc.config (mips*-*-*): Remove references to linux64.h and
2298 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
2299 with modified version from gnu-user64.h.
2300 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
2301 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
2302 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
2304 (GNU_USER_LINK_EMULATION64): Ditto.
2305 (GNU_USER_LINK_EMULATIONN32): Ditto.
2306 (GLIBC_DYNAMIC_LINKER32): Ditto.
2307 (GLIBC_DYNAMIC_LINKER64): Ditto.
2308 (GLIBC_DYNAMIC_LINKERN32): Ditto.
2309 (UCLIBC_DYNAMIC_LINKER32): Ditto.
2310 (UCLIBC_DYNAMIC_LINKER64): Ditto.
2311 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
2312 (BIONIC_DYNAMIC_LINKERN32): Ditto.
2313 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
2314 (GLIBC_DYNAMIC_LINKER): Delete.
2315 (UCLIBC_DYNAMIC_LINKER): Delete.
2317 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
2318 Richard Biener <rguenther@suse.de>
2320 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
2321 Get address space from operand 0 (BASE).
2323 2014-10-07 Iain Sandoe <iain@codesourcery.com>
2326 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
2328 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
2330 * dwarf2out.c: Remove current_function_has_inlines.
2331 (gen_subprogram_die): Same.
2332 (gen_inlined_subroutine_die): Same.
2334 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
2336 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
2338 (_addcarry_u64): Ditto.
2339 (_addcarryx_u64): Ditto.
2341 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2343 * cgraph.h (cgraph_node::get_fun): Declare.
2344 * cgraph.c (cgraph_node::get_fun): New method.
2345 * ipa-inline.c (can_inline_edge_p): Use it.
2347 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2349 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
2350 and -ftrapping-math.
2351 * lto-wrapper.c (merge_and_complain): Likewise.
2352 (run_gcc): Likewise.
2354 2014-10-06 Rong Xu <xur@google.com>
2356 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
2357 * tree-profile.c: (params.h): New include.
2358 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
2359 and __gcov_indirect_call_topn_counters for
2360 indirect_call_topn_profile.
2361 (gimple_init_edge_profiler): New decls for
2362 __gcov_indirect_call_topn_profiler.
2363 (gimple_gen_ic_profiler): Generate the correct profiler call.
2364 (gimple_gen_ic_func_profiler): Fix format.
2365 * value-prof.c (params.h): New include.
2366 (dump_histogram_value): Hanlde indirect_call_topn counters.
2367 (stream_in_histogram_value): Ditto.
2368 (gimple_indirect_call_to_profile): Use indirect_call_topn
2369 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
2370 (gimple_find_values_to_profile): Hanlde indirect_call_topn
2372 * value-prof.h (enum hist_type): Histrogram type for
2373 indirect_call_topn counters.
2374 * profile.c (instrument_values): Instrument
2375 indirect_call_topn counters.
2377 2014-10-06 Rong Xu <xur@google.com>
2379 * Makefile.in: Fix dependence.
2380 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
2381 indirect call topn profiler.
2384 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2386 * calls.c (expand_call): Do not use the target as the return slot if
2387 it is not sufficiently aligned.
2389 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2391 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
2392 discussion of permutes and why we don't handle them.
2394 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2396 * config/sparc/predicates.md (int_register_operand): Delete.
2398 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2400 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
2402 2014-10-06 Jakub Jelinek <jakub@redhat.com>
2404 * ubsan.h (ubsan_get_source_location): New prototype.
2405 * ubsan.c (ubsan_source_location_type): New variable.
2406 Function renamed to ...
2407 (ubsan_get_source_location_type): ... this. Cache
2408 return value in ubsan_source_location_type variable.
2409 (ubsan_source_location, ubsan_create_data): Use
2410 ubsan_get_source_location_type instead of
2411 ubsan_source_location_type.
2412 * asan.c (asan_protect_global): Don't protect globals
2413 with ubsan_get_source_location_type () type.
2414 (asan_add_global): Provide global decl location info
2417 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2419 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
2422 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2424 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
2426 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
2428 (ipa_polymorphic_call_context::dump): Fix formating.
2429 (walk_ssa_copies): Add logic avoiding loops; update uses.
2430 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
2432 2014-10-02 Mark Wielaard <mjw@redhat.com>
2435 * dwarf2out.c (gen_subprogram_die): When a member function is
2436 explicitly deleted then add a DW_AT_GNU_deleted attribute.
2437 * langhooks.h (struct lang_hooks_for_decls): Add
2438 function_decl_deleted_p langhook.
2439 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
2440 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
2442 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2444 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
2445 NULL pointer checks.
2446 (ipa_polymorphic_call_context::get_dynamic_type): Return true
2447 if type doesn't change.
2448 * cgraph.h (cgraph_indirect_call_info): New flag.
2449 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
2450 (cgraph_node::dump): Dump it.
2451 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
2452 of context.get_dynamic_type.
2453 (ipa_make_edge_direct_to_target): Do not speculate
2454 edge that is already speuclative.
2455 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
2456 speculate to __builtin_unreachable
2457 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
2459 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
2461 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2463 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
2464 get_dynamic_type; drop TODO.
2465 * ipa-polymorphic-call.c
2466 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
2467 for otr_type to be unknown.
2469 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2471 * common/config/score/score-common.c: Remove.
2472 * config.gcc: Remove support for score-*.
2473 * config/score/constraints.md: Remove.
2474 * config/score/elf.h: Remove.
2475 * config/score/predicates.md: Remove.
2476 * config/score/score-conv.h: Remove.
2477 * config/score/score-generic.md: Remove.
2478 * config/score/score-modes.def: Remove.
2479 * config/score/score-protos.h: Remove.
2480 * config/score/score.c: Remove.
2481 * config/score/score.h: Remove.
2482 * config/score/score.md: Remove.
2483 * config/score/score.opt: Remove.
2484 * doc/md.texi: Don't document score-*.
2486 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2489 * genconditions.c: Directly include ggc.h before rtl.h.
2491 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2493 * ipa-polymorphic-call.c
2494 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2495 code determining speculative type.
2496 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2498 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2500 * altivec.md (altivec_lvsl): New define_expand.
2501 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2502 (altivec_lvsr): New define_expand.
2503 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2504 * rs6000.c (rs6000_expand_builtin): Change to use
2505 altivec_lvs[lr]_direct; remove commented-out code.
2507 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2509 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2510 Issue a warning message when vec_lvsl or vec_lvsr is used with a
2511 little endian target.
2513 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2515 * tree-pretty-print.c (dump_location): Make it extern. Dump also
2517 * tree-pretty-print.h (dump_location): Declare.
2518 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2519 (pp_gimple_stmt_1): Likewise.
2520 (dump_implicit_edges): Likewise.
2521 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2525 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2527 * gcc.c (driver::global_initializations): Remove "const" so
2528 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2529 and decoded_options_count.
2531 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2533 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2535 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2536 TARGET_E500_DOUBLE case here.
2538 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2543 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2545 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2547 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2548 * lto-cgraph.c (lto_output_edge, input_edge): Stream
2549 in_polymorphic_cdtor
2550 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2551 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2552 * cgraphclones.c (cgraph_edge::clone): Likewise.
2553 * ipa-prop.c (update_jump_functions_after_inlining,
2554 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2555 to possible_dynamic_type_change.
2556 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2557 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2558 IN_POLY_CDOTR argument.
2560 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2561 for BASE and OUTER_TYPE being NULL.
2562 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2563 in_poly_cdtor parameter.
2565 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2567 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2568 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2570 (expand_vec_perm_1): Likewise.
2572 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2573 Uros Bizjak <ubizjak@gmail.com>
2575 PR tree-optimization/61403
2576 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2577 error in comment. Also optimize 256-bit vectors for AVX2
2578 or AVX (floating vectors only), provided the first permutation
2579 can be performed in one insn.
2581 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2583 * gcc.c (class driver): New class.
2584 (main): Reimplement in terms of driver::main, moving most of the
2585 locals to be locals within individual methods of class driver.
2586 The remaining locals "explicit_link_files", "decoded_options" and
2587 "decoded_options_count" are used by multiple driver:: methods, and
2588 so become member data. Doing so isolates the argc/argv reads and
2589 writes. Replace "goto out" with a special exit code from
2590 new method driver::prepare_infiles. Split out the old
2591 implementation of main into the following...
2592 (driver::main): New function, corresponding to the old "main"
2594 (driver::set_progname): New function, taken from the old
2595 "main" implementation.
2596 (driver::expand_at_files): Likewise.
2597 (driver::decode_argv): Likewise.
2598 (driver::global_initializations): Likewise.
2599 (driver::build_multilib_strings): Likewise.
2600 (driver::set_up_specs): Likewise.
2601 (driver::putenv_COLLECT_GCC): Likewise.
2602 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2603 (driver::handle_unrecognized_options): Likewise.
2604 (driver::maybe_print_and_exit): Likewise.
2605 (driver::prepare_infiles): Likewise.
2606 (driver::do_spec_on_infiles): Likewise.
2607 (driver::maybe_run_linker): Likewise.
2608 (driver::final_actions): Likewise.
2609 (driver::get_exit_code): Likewise.
2611 2014-10-03 Yury Gribov <y.gribov@samsung.com>
2613 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2614 don't emit empty ctors.
2616 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
2618 * convert.c (convert_to_integer): Do not introduce useless conversions
2619 between integral types.
2621 2014-10-03 David Sherwood <david.sherwood@arm.com>
2623 * ira-int.h (ira_allocno): Mark hard_regno as signed.
2625 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
2627 * lra-constraints.c (inherit_in_ebb): Handle calls with
2628 multiple return values.
2629 * caller-save.c (save_call_clobbered_regs): Likewise.
2631 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2633 * tree-vect-data-refs.c (vect_permute_load_chain,
2634 vect_shift_permute_load_chain): Fix a typo in temporary var names,
2635 suffle3 to shuffle3.
2638 * omp-low.c (taskreg_contexts): New variable.
2639 (scan_omp_parallel): Push newly created context into taskreg_contexts
2640 vector and move record layout code to finish_taskreg_scan.
2641 (scan_omp_task): Likewise.
2642 (finish_taskreg_scan): New function.
2643 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
2644 vector elements and release it.
2647 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
2648 of palignr arguments can't be used due to min 0 or max - min
2649 too high, try also op0, op1 order of palignr arguments.
2651 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
2653 * cgraph.h (ipa_polymorphic_call_context):
2654 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
2655 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
2656 * ipa-polymorphic-call.c
2657 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
2658 past end of dynamic types.
2659 (ipa_polymorphic_call_context::stream_out,
2660 speculative_outer_type): Stream dynamic flag.
2661 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
2662 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
2664 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
2666 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
2667 * ipa-prop.c (update_jump_functions_after_inlining,
2668 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
2670 2014-10-02 Teresa Johnson <tejohnson@google.com>
2672 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
2673 up when synthesizing counts to avoid rounding errors.
2675 2014-10-02 Teresa Johnson <tejohnson@google.com>
2678 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
2679 asserts to handle incoming insanities.
2681 2014-10-02 Martin Jambor <mjambor@suse.cz>
2683 PR tree-optimization/63375
2684 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
2687 2014-10-02 Olivier Hainque <hainque@adacore.com>
2689 * Makefile.in (CROSS): Define, to @CROSS.
2691 2014-10-02 Jakub Jelinek <jakub@redhat.com>
2694 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
2695 if it expands to a single insn only.
2696 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
2697 fail unless in_order is true. Add forward declaration.
2698 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
2699 is useful for one_operand_p.
2700 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
2702 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2704 * cgraphclones.c (build_function_type_skip_args): Do not make new
2705 type variant of old.
2707 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2709 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
2710 when speculation is added.
2711 (ipa_edge_args): Add polymorphic_call_contexts.
2712 (ipa_get_ith_polymorhic_call_context): New accesor.
2713 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
2714 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
2715 (ipa_compute_jump_functions_for_edge): Compute contexts.
2716 (update_jump_functions_after_inlining): Update contexts.
2717 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
2718 update dumping; add speculative edge creation.
2719 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
2721 (update_indirect_edges_after_inlining): Pass down context.
2722 (ipa_edge_duplication_hook): Duplicate contexts.
2723 (ipa_write_node_info): Stream out contexts.
2724 (ipa_read_node_info): Stream in contexts.
2725 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
2727 (try_speculative_devirtualization): New function.
2728 * ipa-utils.h (try_speculative_devirtualization): Declare.
2730 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2732 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
2735 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2737 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
2740 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2742 * ipa-polymorphic-call.c
2743 (ipa_polymorphic_call_context::restrict_to_inner_class):
2744 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
2745 use speculation_consistent_p to do so; Add CONSDER_BASES
2746 and CONSIDER_PLACEMENT_NEW parameters.
2747 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
2748 short circuit obvious cases.
2749 (ipa_polymorphic_call_context::dump): Improve formatting.
2750 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
2751 combine_speculation_with to record speculations; Do not ICE when
2752 object is located in pointer type decl; do not ICE for methods
2753 of UNION_TYPE; do not record nonpolymorphic types.
2754 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
2755 (ipa_polymorphic_call_context::combine_speculation_with): New method.
2756 (ipa_polymorphic_call_context::combine_with): New method.
2757 (ipa_polymorphic_call_context::make_speculative): Move here; use
2758 combine speculation.
2759 * cgraph.h (ipa_polymorphic_call_context): Update
2760 restrict_to_inner_class prototype; add offset_by, make_speculative,
2761 combine_with, useless_p, combine_speculation_with and
2762 speculation_consistent_p methods.
2763 (ipa_polymorphic_call_context::offset_by): New method.
2764 (ipa_polymorphic_call_context::useless_p): New method.
2766 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2768 PR rtl-optimization/62151
2769 * combine.c (can_combine_p): Allow the destination register of INSN
2770 to be clobbered in I3.
2771 (subst): Do not substitute into clobbers of registers.
2773 2014-10-01 Jakub Jelinek <jakub@redhat.com>
2776 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
2777 offset, TARGET_MEM_REF and SSA_NAME.
2779 * config/i386/i386.c (expand_vec_perm_palignr): Handle
2780 256-bit vectors for TARGET_AVX2.
2782 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
2786 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
2787 argument to avx2_permv2ti.
2789 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2791 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
2793 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
2795 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
2796 (fmod<mode>3): Ditto.
2797 (fpremxf4_i387): Ditto.
2798 (reminderxf3): Ditto.
2799 (reminder<mode>3): Ditto.
2800 (fprem1xf4_i387): Ditto.
2802 2014-09-30 Teresa Johnson <tejohnson@google.com>
2804 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
2805 duplicate_blocks bitmap.
2806 (remove_ctrl_stmt_and_useless_edges): Ditto.
2807 (create_block_for_threading): Ditto.
2808 (compute_path_counts): New function.
2809 (update_profile): Ditto.
2810 (recompute_probabilities): Ditto.
2811 (update_joiner_offpath_counts): Ditto.
2812 (freqs_to_counts_path): Ditto.
2813 (clear_counts_path): Ditto.
2814 (ssa_fix_duplicate_block_edges): Update profile info.
2815 (ssa_create_duplicates): Pass new parameter.
2816 (ssa_redirect_edges): Remove old profile update.
2817 (thread_block_1): New duplicate_blocks bitmap,
2818 remove old profile update.
2819 (thread_single_edge): Pass new parameter.
2821 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
2824 * varasm.c (decode_reg_name_and_count): Check availability for
2825 registers from ADDITIONAL_REGISTER_NAMES.
2827 2014-09-30 David Malcolm <dmalcolm@redhat.com>
2830 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
2831 (PLUGIN_HEADERS): Add pass-instances.def.
2833 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
2835 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
2837 * config/aarch64/aarch64-simd.md
2838 (aarch64_sqdmull_laneq<mode>): Expand iterator.
2839 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
2840 (vqdmulls_lane_s32): Fix return type.
2841 (vqdmulls_laneq_s32): New.
2843 2014-09-30 Jakub Jelinek <jakub@redhat.com>
2846 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
2847 or invert_jump_1 if jump isn't any_condjump_p.
2849 2014-09-30 Terry Guo <terry.guo@arm.com>
2851 * config/arm/arm-cores.def (cortex-m7): New core name.
2852 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
2854 * config/arm/arm-tables.opt: Regenerated.
2855 * config/arm/arm-tune.md: Regenerated.
2856 * config/arm/arm.h (TARGET_VFP5): New macro.
2857 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
2858 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
2859 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
2860 * doc/invoke.texi: Document new cpu and fpu names.
2862 2014-09-30 Jiong Wang <jiong.wang@arm.com>
2864 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
2865 before sinking insn.
2867 2014-09-30 David Sherwood <david.sherwood@arm.com>
2869 * ira-int.h (ira_allocno): Add "wmode" field.
2870 * ira-build.c (create_insn_allocnos): Add new "parent" function
2872 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
2873 that cannot be accessed in wmode.
2875 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2877 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
2880 2014-09-29 Andi Kleen <ak@linux.intel.com>
2882 * opts.c (print_filtered_help): Print --param min/max/default
2885 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
2887 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
2889 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
2891 * tree-vrp.c (get_single_symbol): New function.
2892 (build_symbolic_expr): Likewise.
2893 (symbolic_range_based_on_p): New predicate.
2894 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
2895 for PLUS and MINUS. Do not drop symbolic ranges at the end.
2896 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
2897 operand is symbolic and based on the other operand.
2899 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
2901 * config/microblaze/microblaze.md (call_internal1): Use VOID
2902 instead of SI to fix "((void (*)(void)) 0)()" issue
2904 2014-09-29 Nick Clifton <nickc@redhat.com>
2906 * config/msp430/msp430.c (msp430_expand_prologue): Return a
2907 CLOBBER rtx for naked functions.
2908 (msp430_expand_epilogue): Likewise.
2909 (msp430_use_f5_series_hwmult): Cache result.
2910 (use_32bit_hwmult): Cache result.
2911 (msp430_no_hwmult): New function.
2912 (msp430_output_labelref): Use it.
2914 2014-09-29 Jakub Jelinek <jakub@redhat.com>
2917 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
2918 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
2919 use the alignment of avar rather than ovar.
2921 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
2923 * config/pa/pa.c (pa_output_function_epilogue): Only update
2924 last_address when a nonnote insn is found.
2926 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2929 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
2931 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2934 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
2935 fix pasto in checking array size.
2937 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2940 * passes.def (pass_tracer): Move before last dominator pass.
2942 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
2944 * gcc.c (try_generate_repro): Remove argument "prog". Change all
2946 (run_attempt): Handle errors of "pex_run" invocation.
2948 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
2950 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
2952 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
2953 (TARGET_ASAN_SHADOW_OFFSET): Define.
2955 2014-09-26 Martin Liska <mliska@suse.cz>
2957 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
2959 * cgraph.h: Likewise.
2960 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
2961 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
2962 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
2963 * tree-ssa-alias.h: Likewise.
2965 2014-09-26 Jakub Jelinek <jakub@redhat.com>
2966 Max Ostapenko <m.ostapenko@partner.samsung.com>
2968 * common.opt: New option.
2969 * doc/invoke.texi: Describe new option.
2970 * gcc.c (execute): Don't free first string early, but at the end
2971 of the function. Call retry_ice if compiler exited with
2973 (main): Factor out common code.
2974 (print_configuration): New function.
2975 (files_equal_p): Likewise.
2976 (check_repro): Likewise.
2977 (run_attempt): Likewise.
2978 (do_report_bug): Likewise.
2979 (append_text): Likewise.
2980 (try_generate_repro): Likewise
2982 2014-09-25 Andi Kleen <ak@linux.intel.com>
2984 * config/i386/i386.c (x86_print_call_or_nop): New function.
2985 (x86_function_profiler): Support -mnop-mcount and
2987 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
2988 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
2990 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2992 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
2993 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
2994 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
2997 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2999 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3000 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3001 types_odr_comparable): Declare.
3002 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3003 * ipa-polymorphic-call.c: New file.
3004 (contains_polymorphic_type_p, possible_placement_new,
3005 ipa_polymorphic_call_context::restrict_to_inner_class,
3006 contains_type_p, decl_maybe_in_construction_p,
3007 ipa_polymorphic_call_context::stream_out,
3008 ipa_polymorphic_call_context::debug,
3009 ipa_polymorphic_call_context::stream_in,
3010 ipa_polymorphic_call_context::set_by_decl,
3011 ipa_polymorphic_call_context::set_by_invariant,
3013 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3014 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3015 extr_type_from_vtbl_ptr_store, record_known_type
3016 check_stmt_for_type_change,
3017 ipa_polymorphic_call_context::get_dynamic_type): Move here from
3019 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3020 and streamer-hooks.h
3021 (contains_polymorphic_type_p, possible_placement_new,
3022 ipa_polymorphic_call_context::restrict_to_inner_class,
3023 contains_type_p, decl_maybe_in_construction_p,
3024 ipa_polymorphic_call_context::stream_out,
3025 ipa_polymorphic_call_context::debug,
3026 ipa_polymorphic_call_context::stream_in,
3027 ipa_polymorphic_call_context::set_by_decl,
3028 ipa_polymorphic_call_context::set_by_invariant,
3030 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3031 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3032 extr_type_from_vtbl_ptr_store, record_known_type
3033 check_stmt_for_type_change,
3034 ipa_polymorphic_call_context::get_dynamic_type): Move to
3035 ipa-polymorphic-call.c
3036 (type_all_derivations_known_p, types_odr_comparable,
3037 types_must_be_same_for_odr): Export.
3038 (type_known_to_have_no_deriavations_p): New function.
3039 * Makefile.in: Add ipa-polymorphic-call.c
3041 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3043 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3045 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3046 (possible_polymorphic_call_targets): Instead of computing both
3047 speculative and non-speculative answers, do just one at a time.
3048 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3049 (dump_targets): Break out from ...
3050 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3051 and non-speculative lists.
3052 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3053 * ipa-utils.h (possible_polymorphic_call_targets): Update.
3055 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
3057 PR rtl-optimization/63348
3058 * emit-rtl.c (try_split): Do not emit extra barrier.
3060 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
3062 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3063 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3065 (aarch64_<sur>shll2_n<mode>): Likewise.
3066 (aarch64_<sur>shr_n<mode>): Likewise.
3067 (aarch64_<sur>sra_n<mode>: Likewise.
3068 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3069 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3070 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3071 * config/aarch64/iterators.md (ve_mode): New.
3072 (offsetlr): Remap to infix text for use in new predicates.
3073 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3074 (aarch64_simd_shift_imm_hi): Likewise.
3075 (aarch64_simd_shift_imm_si): Likewise.
3076 (aarch64_simd_shift_imm_di): Likewise.
3077 (aarch64_simd_shift_imm_offset_qi): Likewise.
3078 (aarch64_simd_shift_imm_offset_hi): Likewise.
3079 (aarch64_simd_shift_imm_offset_si): Likewise.
3080 (aarch64_simd_shift_imm_offset_di): Likewise.
3081 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3082 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3083 (aarch64_simd_shift_imm_bitsize_si): Likewise.
3084 (aarch64_simd_shift_imm_bitsize_di): Likewise.
3086 2014-09-25 Jiong Wang <jiong.wang@arm.com>
3088 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3089 new created BB as the intersection of live-in from "old_dest" and
3092 2014-09-25 Felix Yang <felix.yang@huawei.com>
3094 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3095 * genautomata.c (merge_states): Ditto.
3097 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3100 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
3101 in instruction sequence.
3103 2014-09-25 Nick Clifton <nickc@redhat.com>
3106 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
3107 in instruction sequence.
3109 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3112 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
3113 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
3115 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3116 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3117 Anna Tikhonova <anna.tikhonova@intel.com>
3118 Ilya Tocar <ilya.tocar@intel.com>
3119 Andrey Turetskiy <andrey.turetskiy@intel.com>
3120 Ilya Verbin <ilya.verbin@intel.com>
3121 Kirill Yukhin <kirill.yukhin@intel.com>
3122 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3124 * config/i386/sse.md
3125 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
3126 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
3127 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
3128 (define_expand "<avx512>_perm<mode>_mask"): ... this.
3129 Use VI8F_256_512 mode iterator.
3130 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
3131 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
3133 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3134 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3135 Anna Tikhonova <anna.tikhonova@intel.com>
3136 Ilya Tocar <ilya.tocar@intel.com>
3137 Andrey Turetskiy <andrey.turetskiy@intel.com>
3138 Ilya Verbin <ilya.verbin@intel.com>
3139 Kirill Yukhin <kirill.yukhin@intel.com>
3140 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3142 * config/i386/sse.md
3143 (define_insn "avx_movshdup256<mask_name>"): Add masking.
3144 (define_insn "sse3_movshdup<mask_name>"): Ditto.
3145 (define_insn "avx_movsldup256<mask_name>"): Ditto.
3146 (define_insn "sse3_movsldup<mask_name>"): Ditto.
3147 (define_insn "vec_dupv2df<mask_name>"): Ditto.
3148 (define_insn "*vec_concatv2df"): Add EVEX version.
3150 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3151 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3152 Anna Tikhonova <anna.tikhonova@intel.com>
3153 Ilya Tocar <ilya.tocar@intel.com>
3154 Andrey Turetskiy <andrey.turetskiy@intel.com>
3155 Ilya Verbin <ilya.verbin@intel.com>
3156 Kirill Yukhin <kirill.yukhin@intel.com>
3157 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3159 * config/i386/sse.md
3160 (define_insn "vec_set<mode>_0"): Add EVEX version.
3162 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3163 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3164 Anna Tikhonova <anna.tikhonova@intel.com>
3165 Ilya Tocar <ilya.tocar@intel.com>
3166 Andrey Turetskiy <andrey.turetskiy@intel.com>
3167 Ilya Verbin <ilya.verbin@intel.com>
3168 Kirill Yukhin <kirill.yukhin@intel.com>
3169 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3171 * config/i386/sse.md
3173 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3175 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3176 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3177 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3178 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3179 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3180 (define_expand "sse2_cvtpd2ps_mask): New.
3181 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3182 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3184 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3185 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3186 Anna Tikhonova <anna.tikhonova@intel.com>
3187 Ilya Tocar <ilya.tocar@intel.com>
3188 Andrey Turetskiy <andrey.turetskiy@intel.com>
3189 Ilya Verbin <ilya.verbin@intel.com>
3190 Kirill Yukhin <kirill.yukhin@intel.com>
3191 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3193 * config/i386/i386.c
3194 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3195 (ufix_notruncv8dfv8si2_mask_round): ... this.
3196 * config/i386/sse.md
3197 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3198 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3199 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3200 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3201 (define_expand "sse2_cvtpd2dq"): Delete.
3202 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3203 make 2nd operand const0 vector.
3204 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3206 (define_mode_attr pd2udqsuff): New.
3208 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3209 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3210 (define_insn "*avx_cvttpd2dq256_2"): Delete.
3211 (define_expand "sse2_cvttpd2dq"): Ditto.
3212 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3213 make 2nd operand const0 vector.
3215 2014-09-25 Jakub Jelinek <jakub@redhat.com>
3217 PR tree-optimization/63341
3218 * tree-vectorizer.h (vect_create_data_ref_ptr,
3219 vect_create_addr_base_for_vector_ref): Add another tree argument
3220 defaulting to NULL_TREE.
3221 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3222 argument, pass it down to vect_create_addr_base_for_vector_ref.
3223 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3224 add that to base_offset too if non-NULL.
3225 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3226 for dr_explicit_realign_optimized set it to vector byte size
3227 - 1 instead of setting offset, pass byte_offset down to
3228 vect_create_data_ref_ptr.
3230 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3232 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
3233 forgotten debug output; canonicalize querries more wtih LTO.
3235 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3237 * cgraph.h (class ipa_polymorphic_call_context): Move here from
3238 ipa-utils.h; add stream_int and stream_out methods.
3239 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
3240 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
3241 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
3243 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3244 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3245 ipa_polymorphic_call_context::clear_speculation,
3246 ipa_polymorphic_call_context::clear_outer_type): Move here from
3248 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
3249 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3250 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3251 ipa_polymorphic_call_context::clear_speculation,
3252 ipa_polymorphic_call_context::clear_outer_type): Likewise.
3253 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
3255 (ipa_polymorphic_call_context::stream_out): New method.
3256 (ipa_polymorphic_call_context::stream_in): New method.
3257 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
3258 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
3260 (ipa_analyze_call_uses): Simplify.
3261 (update_indirect_edges_after_inlining): Do not care about outer_type.
3262 (ipa_write_indirect_edge_info): Update.
3263 (ipa_write_indirect_edge_info): Likewise.
3264 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
3265 (dump_edge_flags): Break out from ...
3266 (cgraph_node::dump): ... here; dump indirect edges.
3268 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3270 * ipa-utils.h (polymorphic_call_context): Add
3271 metdhos dump, debug and clear_outer_type.
3272 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3273 (ipa_polymorphic_call_context::clear_outer_type): New method.
3274 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
3275 * ipa-devirt.c (types_odr_comparable): New function.
3276 (types_must_be_same_for_odr): New function.
3277 (odr_subtypes_equivalent_p): Simplify.
3278 (possible_placement_new): Break out from ...
3279 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
3280 be more cuatious about returning false in cases the context may be
3281 valid in derived type or via placement new.
3282 (contains_type_p): Clear maybe_derived_type
3283 (ipa_polymorphic_call_context::dump): New method.
3284 (ipa_polymorphic_call_context::debug): New method.
3285 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
3286 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
3287 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3288 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
3289 to suceed on all valid cases; remove confused sanity check.
3290 (dump_possible_polymorphic_call_targets): Simplify.
3292 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
3294 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
3295 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
3296 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
3297 varpool.c: Rename all instances of DECL_ABSTRACT to
3300 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3302 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
3303 special handling for stores whose SET_SRC is an UNSPEC (such as
3306 2014-09-24 Jiong Wang <jiong.wang@arm.com>
3308 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
3309 !REG_P (src) to release more instruction sink opportunities.
3311 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
3313 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
3314 move costs for 128-bit types.
3316 2014-09-24 Martin Jambor <mjambor@suse.cz>
3318 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
3319 when duplicating a PASS_THROUGH jump function when creating a
3322 2014-09-24 Marek Polacek <polacek@redhat.com>
3326 * asan.c (maybe_instrument_call): Add default case.
3327 * ipa-pure-const.c (special_builtin_state): Likewise.
3328 * predict.c (expr_expected_value_1): Likewise.
3329 * lto-streamer-out.c (write_symbol): Initialize variable.
3331 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3333 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
3335 (vmuld_laneq_f64): Likewise.
3336 (vmuls_lane_f32): Likewise.
3337 (vmuls_laneq_f32): Likewise.
3339 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
3342 * varpool.c (varpool_node::add): Pass decl attributes
3343 to lookup_attribute.
3345 2014-09-24 Jakub Jelinek <jakub@redhat.com>
3348 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
3350 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3352 PR tree-optimization/63266
3353 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
3354 marker for unknown byte value.
3355 (MARKER_MASK): New macro.
3356 (MARKER_BYTE_UNKNOWN): New macro.
3357 (HEAD_MARKER): New macro.
3358 (do_shift_rotate): Mark bytes with unknown values due to sign
3359 extension when doing an arithmetic right shift. Replace hardcoded
3360 mask for marker by new MARKER_MASK macro.
3361 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
3362 numbers accordingly.
3364 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3365 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3366 Anna Tikhonova <anna.tikhonova@intel.com>
3367 Ilya Tocar <ilya.tocar@intel.com>
3368 Andrey Turetskiy <andrey.turetskiy@intel.com>
3369 Ilya Verbin <ilya.verbin@intel.com>
3370 Kirill Yukhin <kirill.yukhin@intel.com>
3371 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3373 * config/i386/sse.md
3375 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
3377 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
3378 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
3380 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3381 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3382 Anna Tikhonova <anna.tikhonova@intel.com>
3383 Ilya Tocar <ilya.tocar@intel.com>
3384 Andrey Turetskiy <andrey.turetskiy@intel.com>
3385 Ilya Verbin <ilya.verbin@intel.com>
3386 Kirill Yukhin <kirill.yukhin@intel.com>
3387 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3389 * config/i386/sse.md
3390 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
3391 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
3392 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
3393 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
3394 (define_expand "avx512vl_pshuflw_mask"): New.
3395 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
3396 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
3397 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
3398 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
3399 (define_expand "avx512vl_pshufhw_mask"): New.
3400 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
3402 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3403 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3404 Anna Tikhonova <anna.tikhonova@intel.com>
3405 Ilya Tocar <ilya.tocar@intel.com>
3406 Andrey Turetskiy <andrey.turetskiy@intel.com>
3407 Ilya Verbin <ilya.verbin@intel.com>
3408 Kirill Yukhin <kirill.yukhin@intel.com>
3409 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3411 * config/i386/i386.c
3412 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
3413 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
3414 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
3415 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
3416 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
3417 * config/i386/sse.md
3418 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
3420 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
3421 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
3423 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
3424 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
3425 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
3426 (define_expand "avx512vl_pshufd_mask"): New.
3427 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
3429 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3430 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3431 Anna Tikhonova <anna.tikhonova@intel.com>
3432 Ilya Tocar <ilya.tocar@intel.com>
3433 Andrey Turetskiy <andrey.turetskiy@intel.com>
3434 Ilya Verbin <ilya.verbin@intel.com>
3435 Kirill Yukhin <kirill.yukhin@intel.com>
3436 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3438 * config/i386/i386.c
3439 (CODE_FOR_avx2_extracti128): Rename to ...
3440 (CODE_FOR_avx_vextractf128v4di): this.
3441 (CODE_FOR_avx2_inserti128): Rename to ...
3442 (CODE_FOR_avx_vinsertf128v4di): this.
3443 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
3444 CODE_FOR_avx_vextractf128v4di.
3445 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
3446 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
3447 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
3448 CODE_FOR_avx512vl_vinsertv8si.
3449 * config/i386/sse.md
3451 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
3452 AVX512_VEC mode iterator.
3454 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
3457 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
3458 AVX512_VEC_2 mode iterator.
3459 (define_insn "vec_set_lo_<mode><mask_name>"): New.
3460 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3461 (define_expand "avx512vl_vinsert<mode>"): Ditto.
3462 (define_insn "avx2_vec_set_lo_v4di"): Delete.
3463 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
3464 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
3465 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3466 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
3467 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3468 (define_expand "avx2_extracti128"): Delete.
3469 (define_expand "avx2_inserti128"): Ditto.
3471 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3472 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3473 Anna Tikhonova <anna.tikhonova@intel.com>
3474 Ilya Tocar <ilya.tocar@intel.com>
3475 Andrey Turetskiy <andrey.turetskiy@intel.com>
3476 Ilya Verbin <ilya.verbin@intel.com>
3477 Kirill Yukhin <kirill.yukhin@intel.com>
3478 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3480 * config/i386/sse.md
3481 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3482 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3483 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3484 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3485 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3486 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3487 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3488 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3489 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3490 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3491 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3492 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3493 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3495 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
3497 PR rtl-optimization/63210
3498 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3499 HARD_REGNO is not available for CONFLICT_A.
3501 2014-09-23 Andi Kleen <ak@linux.intel.com>
3503 * cgraph.h (symtab_node): Add no_reorder attribute.
3504 (symbol_table::output_asm_statements): Remove.
3505 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3506 (cgraph_node::create_version_clone): Dito.
3507 (symbol_table::output_asm_statements): Remove.
3508 * trans-mem.c (ipa_tm_create_version_alias): Dito.
3509 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3510 (output_in_order): Add no_reorder flag. Only handle no_reorder
3512 (symbol_table::compile): Add separate pass for no_reorder nodes.
3513 (process_common_attributes): Set no_reorder flag in symtab node.
3515 (process_function_and_variable_attributes): Pass symtab nodes to
3516 process_common_attributes.
3517 * doc/extend.texi (no_reorder): Document no_reorder attribute.
3518 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3519 (lto_output_varpool_node): Dito.
3520 (input_overwrite_node): Dito.
3521 (input_varpool_node): Dito.
3522 * varpool.c (varpool_node::add): Set no_reorder attribute.
3523 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3524 (symbol_table::output_variables): Dito.
3525 * symtab.c (symtab_node::dump_base): Print no_reorder.
3527 2014-09-23 Jiong Wang <jiong.wang@arm.com>
3529 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3532 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
3534 * configure: Regenerate.
3536 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
3538 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3539 when result_mode == shift_mode.
3541 2014-09-23 Kostya Serebryany <kcc@google.com>
3543 Update to match the changed asan API.
3544 * asan.c (asan_global_struct): Update the __asan_global definition
3545 to match the new API.
3546 (asan_add_global): Ditto.
3547 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3550 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3552 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3553 refine the constraints used on 32/64-bit floating point moves.
3555 (f64_vsx): Likewise.
3558 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3559 (BOOL_REGS_OP1): Likewise.
3560 (BOOL_REGS_OP2): Likewise.
3561 (BOOL_REGS_UNARY): Likewise.
3562 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3563 32/64-bit floating point moves. Do not use wa, instead use ww/ws
3564 for moves involving VSX registers. Do not use constraints that
3565 target VSX registers for decimal types.
3566 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3567 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3569 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
3571 * tree.h (int_bit_position): Turn into inline function;
3572 implement using wide int.
3573 * tree.c (int_bit_position): Remove.
3575 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
3578 * target-globals.c (target_globals::~target_globals): Fix location
3579 of ira_int destruction.
3581 2014-09-23 Renlin Li <renlin.li@arm.com>
3583 * config/aarch64/aarch64.md (return): New.
3584 (simple_return): Likewise.
3585 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
3586 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
3588 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
3590 * common/config/aarch64/aarch64-common.c:
3591 (default_options aarch_option_optimization_table):
3592 Default to -fsched-pressure.
3594 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
3596 * cfgcleanup.c (try_optimize_cfg): Do not remove label
3597 with LABEL_PRESERVE_P flag set.
3599 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3600 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3601 Anna Tikhonova <anna.tikhonova@intel.com>
3602 Ilya Tocar <ilya.tocar@intel.com>
3603 Andrey Turetskiy <andrey.turetskiy@intel.com>
3604 Ilya Verbin <ilya.verbin@intel.com>
3605 Kirill Yukhin <kirill.yukhin@intel.com>
3606 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3608 * config/i386/sse.md
3609 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
3610 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3611 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3612 (define_insn "sse2_shufpd_v2df_mask"): New.
3614 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3615 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3616 Anna Tikhonova <anna.tikhonova@intel.com>
3617 Ilya Tocar <ilya.tocar@intel.com>
3618 Andrey Turetskiy <andrey.turetskiy@intel.com>
3619 Ilya Verbin <ilya.verbin@intel.com>
3620 Kirill Yukhin <kirill.yukhin@intel.com>
3621 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3623 * config/i386/sse.md
3624 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3625 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
3626 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
3627 (define_insn "sse_shufps_v4sf_mask"): New.
3629 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3630 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3631 Anna Tikhonova <anna.tikhonova@intel.com>
3632 Ilya Tocar <ilya.tocar@intel.com>
3633 Andrey Turetskiy <andrey.turetskiy@intel.com>
3634 Ilya Verbin <ilya.verbin@intel.com>
3635 Kirill Yukhin <kirill.yukhin@intel.com>
3636 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3638 * config/i386/sse.md
3639 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
3640 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
3641 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
3642 (define_insn "unpcklps128_mask"): New.
3644 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3645 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3646 Anna Tikhonova <anna.tikhonova@intel.com>
3647 Ilya Tocar <ilya.tocar@intel.com>
3648 Andrey Turetskiy <andrey.turetskiy@intel.com>
3649 Ilya Verbin <ilya.verbin@intel.com>
3650 Kirill Yukhin <kirill.yukhin@intel.com>
3651 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3653 * config/i386/sse.md
3654 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
3655 (define_insn "avx512vl_unpckhpd128_mask"): New.
3656 (define_expand "avx_movddup256<mask_name>"): Add masking.
3657 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
3658 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
3659 (define_insn "avx512vl_unpcklpd128_mask"): New.
3661 2014-09-22 Joseph Myers <joseph@codesourcery.com>
3663 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3664 * doc/tm.texi: Regenerate.
3665 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
3666 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3667 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3669 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3670 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3671 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3672 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3673 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3675 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3676 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3677 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3678 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3679 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3680 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3681 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3682 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3683 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3684 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3685 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3688 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
3690 * tree-ssa-ccp.c (prop_value_d): Rename to ...
3691 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
3692 * ipa-prop.c (struct type_change_info): Rename to ...
3693 (prop_type_change_info): ... this; update uses.
3694 * ggc-page.c (globals): Rename to ...
3695 (static struct ggc_globals): ... this; update uses.
3696 * tree-ssa-loop-im.c (mem_ref): Rename to ...
3697 (im_mem_ref): ... this; update uses.
3698 * ggc-common.c (loc_descriptor): Rename to ...
3699 (ggc_loc_descriptor): ... this; update uses.
3700 * lra-eliminations.c (elim_table): Rename to ...
3701 (lra_elim_table): ... this; update uses.
3702 * bitmap.c (output_info): Rename to ...
3703 (bitmap_output_info): ... this; update uses.
3704 * gcse.c (expr): Rename to ...
3705 (gcse_expr) ... this; update uses.
3706 (occr): Rename to ...
3707 (gcse_occr): .. this; update uses.
3708 * tree-ssa-copy.c (prop_value_d): Rename to ...
3709 (prop_value_t): ... this.
3710 * predict.c (block_info_def): Rename to ...
3711 (block_info): ... this; update uses.
3712 (edge_info_def): Rename to ...
3713 (edge_info): ... this; update uses.
3714 * profile.c (bb_info): Rename to ...
3715 (bb_profile_info): ... this; update uses.
3716 * alloc-pool.c (output_info): Rename to ...
3717 (pool_output_info): ... this; update uses.
3718 * ipa-cp.c (topo_info): Rename to ..
3719 (ipa_topo_info): ... this; update uses.
3720 * tree-nrv.c (nrv_data): Rename to ...
3721 (nrv_data_t): ... this; update uses.
3722 * ipa-split.c (bb_info): Rename to ...
3723 (split_bb_info): ... this one.
3724 * profile.h (edge_info): Rename to ...
3725 (edge_profile_info): ... this one; update uses.
3726 * dse.c (bb_info): Rename to ...
3727 (dse_bb_info): ... this one; update uses.
3728 * cprop.c (occr): Rename to ...
3729 (cprop_occr): ... this one; update uses.
3730 (expr): Rename to ...
3731 (cprop_expr): ... this one; update uses.
3733 2014-09-22 Jason Merrill <jason@redhat.com>
3735 * Makefile.in (check-parallel-%): Add @.
3737 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3739 * config/aarch64/geniterators.sh: New.
3740 * config/aarch64/iterators.md (VDQF_DF): New.
3741 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
3742 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
3744 2014-09-22 Peter A. Bigot <pab@pabigot.com>
3746 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
3747 -lnosys when -msim absent.
3749 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
3751 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3753 2014-09-22 Richard Biener <rguenther@suse.de>
3755 * gimplify.c (gimplify_init_constructor): Do not leave
3756 non-GIMPLE vector constructors around.
3757 * tree-cfg.c (verify_gimple_assign_single): Verify that
3758 CONSTRUCTORs have gimple elements.
3760 2014-09-22 Jakub Jelinek <jakub@redhat.com>
3763 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
3764 insert a debug source bind stmt setting DEBUG_EXPR_DECL
3765 instead of a normal gimple assignment stmt.
3767 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3769 * config/bfin/bfin.md: Fix use of constraints in define_split.
3771 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3773 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
3774 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
3776 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3778 * hard-reg-set.h: Include hash-table.h.
3779 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
3781 * target-globals.c (target_globals::~target_globals): Call
3782 hard_regs->finalize.
3783 * rtl.h (subreg_shape): New structure.
3784 (shape_of_subreg): New function.
3785 (simplifiable_subregs): Declare.
3786 * reginfo.c (simplifiable_subreg): New structure.
3787 (simplifiable_subregs_hasher): Likewise.
3788 (simplifiable_subregs): New function.
3789 (invalid_mode_changes): Delete.
3790 (alid_mode_changes, valid_mode_changes_obstack): New variables.
3791 (record_subregs_of_mode): Remove subregs_of_mode parameter.
3792 Record valid mode changes in valid_mode_changes.
3793 (find_subregs_of_mode): Remove subregs_of_mode parameter.
3794 Update calls to record_subregs_of_mode.
3795 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
3796 handling. Initialize new variables. Update call to
3797 find_subregs_of_mode.
3798 (invalid_mode_change_p): Check new variables instead of
3799 invalid_mode_changes.
3800 (finish_subregs_of_mode): Finalize new variables instead of
3801 invalid_mode_changes.
3802 (target_hard_regs::finalize): New function.
3803 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
3804 even when CLASS_CANNOT_CHANGE_MODE is undefined.
3806 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3808 * combine.c (subst): Use simplify_subreg_regno rather than
3809 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
3811 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3813 * rtl.h (subreg_info): Expand commentary
3814 * rtlanal.c (subreg_get_info): Likewise.
3816 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3818 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3819 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3820 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
3822 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
3824 * config/arm/arm.c: #include "tm-constrs.h"
3825 (thumb1_size_rtx_costs): Adjust rtx costs.
3827 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
3829 * configure.ac (target_header_dir): Move block defining
3830 this to before the block setting inhibit_libc.
3831 (inhibit_libc): When considering $with_headers, just
3832 check it it's explicitly "no". If not, also check if
3833 $target_header_dir/stdio.h is present. If not, set
3835 * configure: Regenerate.
3837 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
3839 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
3841 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3843 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
3844 insn for divides by integer powers of two.
3845 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
3846 (mod<mode>3): Fix formatting.
3847 (three anonymous define_insn and two define_split): Delete.
3849 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3851 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
3852 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
3853 (floatdisf2_internal2): Ditto.
3854 (ashrdi3_no_power): Ditto. Fix formatting.
3856 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3858 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3859 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
3862 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3864 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
3865 constant, use addsi3 directly.
3866 (three anonymous define_insn, two define_split): Delete.
3867 (sub<mode>3): Move. Do not allow constant second operand.
3868 Generate different insn for constant first operand.
3869 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
3870 (subf<mode>3_imm): New.
3871 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
3872 (*plus_ltu<mode>): Only handle registers.
3873 (*plus_ltu<mode>_1): New. Handle integer third operand.
3874 (*plus_gtu<mode>): Only handle registers.
3875 (*plus_gtu<mode>_1): New. Handle integer third operand.
3877 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3879 * config/rs6000/rs6000.md (iorxor): New code_iterator.
3880 (iorxor): New code_attr.
3881 (IORXOR): New code_attr.
3882 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
3883 (ior<mode>3, xor<mode>3): Delete.
3884 (<iorxor><mode>3): New.
3885 (splitter for "big" integer ior, xor): New.
3886 (*bool<mode>3): Move. Also handle AND.
3887 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
3888 (splitter for "big" integer ior, xor): Delete.
3890 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3892 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
3893 (two anonymous define_insn and two define_split): Delete.
3894 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
3896 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3898 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
3899 (two anonymous define_insn and two define_split): Delete.
3900 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
3902 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3904 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
3906 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3908 * config/rs6000/predicates.md (ca_operand): Allow subregs.
3909 (input_operand): Do not allow ca_operand.
3910 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
3911 carry bit, allow SImode and Pmode.
3912 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
3914 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
3916 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
3917 clobbered registers using clobber_reg. Remove UNSPEC decoration.
3918 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
3919 (*call_rex64_ms_sysv): Remove.
3920 (*call_value_rex64_ms_sysv): Ditto.
3921 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
3923 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
3925 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
3928 2014-09-20 Andreas Schwab <schwab@suse.de>
3930 * config/ia64/ia64.md: Remove constraints from define_split
3933 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3935 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
3936 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
3937 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
3938 (get_dynamic_type): Remove.
3939 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
3940 (clear_speculation): Bring to ipa-deivrt.h
3941 (get_class_context): Rename to ...
3942 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
3943 (contains_type_p): Update.
3944 (get_dynamic_type): Rename to ...
3945 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
3946 (possible_polymorphic_call_targets): UPdate.
3947 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
3948 * ipa-prop.c (ipa_analyze_call_uses): Update.
3950 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3952 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
3953 privatize dynamic TLS variables.
3955 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3957 * diagnostic.c (warning_n): New function.
3958 * diagnostic-core.h (warning_n): Declare.
3959 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
3960 output dynamic counts when available.
3962 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3964 PR tree-optimization/63255
3965 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
3966 issue in setting body_removed flag.
3968 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3971 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
3972 that visibility change is possible
3973 (handle_weakref_attribute): Likewise.
3974 * cgraph.h (symtab_node): Add method get_create and
3975 field refuse_visibility_changes.
3976 (symtab_node::get_create): New method.
3977 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
3978 * varasm.c (mark_weak): Verify that visibility change is
3981 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
3983 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
3984 for base_reg_operand to be common between LO_SUM and PLUS.
3985 (fusion_gpr_mem_combo): New predicate to match a fused address
3986 that combines the addis and memory offset address.
3988 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
3990 (emit_fusion_gpr_load): Likewise.
3992 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
3993 signature to pass each argument separately, rather than
3994 using an operands array. Rewrite the insns found by peephole2 to
3995 be a single insn, rather than hoping the insns will still be
3996 together when the peephole pass is done. Drop being called via a
3998 (emit_fusion_gpr_load): Change calling signature to be called from
3999 the fusion_gpr_load_<mode> insns with a combined memory address
4000 instead of the peephole pass passing the addis and offset
4003 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4005 (power8 fusion peephole): Drop support for doing power8 via a
4006 normal peephole that was created by the peephole2 pass.
4007 (power8 fusion peephole2): Create a new insn with the fused
4008 address, so that the fused operation is kept together after
4009 register allocation is done.
4010 (fusion_gpr_load_<mode>): Likewise.
4012 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4015 * tree.c (need_assembler_name_p): Do not mangle variadic types.
4017 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4019 * recog.c (scratch_operand): Do not simply allow all hard registers:
4020 only allow those that are allocatable.
4022 2014-09-19 Felix Yang <felix.yang@huawei.com>
4024 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4025 comments and fix spacing to conform to coding style.
4027 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4029 * genrecog.c (validate_pattern): Allow empty constraints in
4032 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
4034 * dwarf2out.c (decl_ultimate_origin): Update comment.
4035 * tree.c (block_ultimate_origin): Same.
4037 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4039 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4040 Update GCC version name to GCC 5.
4041 (rs6000_function_arg_boundary): Likewise.
4042 (rs6000_function_arg): Likewise.
4044 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4046 * config/sh/sh.md: Fix use of constraints in define_split.
4048 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4051 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4053 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4055 * doc/md.texi (Modifiers): Consistently use "read/write"
4056 nomenclature rather than "input/output".
4057 * genrecog.c (constraints_supported_in_insn_p): New.
4058 (validate_pattern): If needed, also check constraints on
4059 MATCH_SCRATCH operands.
4060 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4061 operands with no '=' or '+' modifier.
4063 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4065 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4066 scratch register as written.
4068 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4070 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4073 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4075 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4078 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4081 * config/s390/s390.c (s390_emit_epilogue): When doing the return
4082 address load optimization force s390_optimize_prologue to leave it
4083 that way. Only do the optimization if we already decided to push
4084 r14 into a stack slot.
4086 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
4088 * asan.c (build_check_stmt): Alignment arg was added.
4089 (asan_expand_check_ifn): Optimization for alignment >= 8.
4091 2014-09-19 Olivier Hainque <hainque@adacore.com>
4093 * config/i386/vxworksae.h: Remove obsolete definitions.
4094 (STACK_CHECK_PROTECT): Define.
4095 * config/i386/vx-common.h: Remove. Merge contents within
4096 config/i386/vxworks.h.
4097 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
4100 2014-09-19 Olivier Hainque <hainque@adacore.com>
4102 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
4103 * config/rs6000/t-vxworksmils: New file.
4104 * config/rs6000/vxworksmils.h: New file.
4106 2014-09-19 Olivier Hainque <hainque@adacore.com>
4108 * varasm.c (default_section_type_flags): Flag .persistent.bss
4109 sections as SECTION_BSS.
4111 2014-09-19 Nick Clifton <nickc@redhat.com>
4113 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
4114 pop'ed registers so that DCE does not eliminate them.
4116 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
4119 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
4121 2014-09-18 Joseph Myers <joseph@codesourcery.com>
4123 * system.h (LIBGCC2_TF_CEXT): Poison.
4124 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
4125 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
4126 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
4127 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
4128 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
4129 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
4130 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
4131 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
4132 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
4134 2014-09-19 Kito Cheng <kito@0xlab.org>
4136 * except.h: Fix header guard.
4137 * addresses.h: Add missing header guard.
4138 * cfghooks.h: Likewise.
4139 * collect-utils.h: Likewise.
4140 * collect2-aix.h: Likewise.
4141 * conditions.h: Likewise.
4142 * cselib.h: Likewise.
4143 * dwarf2asm.h: Likewise.
4144 * graphds.h: Likewise.
4145 * graphite-scop-detection.h: Likewise.
4146 * gsyms.h: Likewise.
4147 * hw-doloop.h: Likewise.
4148 * incpath.h: Likewise.
4149 * ipa-inline.h: Likewise.
4150 * ipa-ref.h: Likewise.
4151 * ira-int.h: Likewise.
4153 * lra-int.h: Likewise.
4155 * lto-section-names.h: Likewise.
4156 * read-md.h: Likewise.
4157 * reload.h: Likewise.
4158 * rtl-error.h: Likewise.
4159 * sdbout.h: Likewise.
4160 * targhooks.h: Likewise.
4161 * tree-affine.h: Likewise.
4162 * xcoff.h: Likewise.
4163 * xcoffout.h: Likewise.
4165 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4168 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4171 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4174 * lra.c (lra): Call recog_init.
4176 2014-09-18 Jakub Jelinek <jakub@redhat.com>
4179 * asan.c (transform_statements): Don't instrument clobber statements.
4181 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4183 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4184 to neon_load1_1reg<q>.
4186 2014-09-17 Jakub Jelinek <jakub@redhat.com>
4189 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4190 if there are only debug stmts after the noreturn call, instead
4191 remove the debug stmts.
4193 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
4195 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4196 (odr_types_equivalent_p): Use pair hash.
4197 (odr_subtypes_equivalent_p): Likewise, do structural compare
4198 on ODR types that may be mismatched.
4199 (warn_odr): Support warning when only one field is given.
4200 (odr_types_equivalent_p): Strenghten comparsions made;
4202 (add_type_duplicate): Update VISITED hash set.
4204 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
4206 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4207 Enable selection of 'posix' or no thread model.
4209 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
4211 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4212 when architecture is older than ARMv7.
4214 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
4217 * config/pa/pa.c (pa_function_value): Directly handle aggregates
4218 that fit exactly in a word or double word.
4220 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
4222 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4225 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
4226 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4227 Anna Tikhonova <anna.tikhonova@intel.com>
4228 Ilya Tocar <ilya.tocar@intel.com>
4229 Andrey Turetskiy <andrey.turetskiy@intel.com>
4230 Ilya Verbin <ilya.verbin@intel.com>
4231 Kirill Yukhin <kirill.yukhin@intel.com>
4232 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4234 * config/i386/i386.c
4235 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
4236 * config/i386/sse.md
4237 (define_mode_iterator VI48F_256): New.
4238 (define_mode_attr extract_type): Ditto.
4239 (define_mode_attr extract_suf): Ditto.
4240 (define_mode_iterator AVX512_VEC): Ditto.
4242 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
4244 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
4246 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
4248 (define_mode_attr extract_type_2): Ditto.
4249 (define_mode_attr extract_suf_2): Ditto.
4250 (define_mode_iterator AVX512_VEC_2): Ditto.
4252 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
4253 AVX512_VEC_2 mode iterator.
4254 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4255 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
4256 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4257 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4258 (define_split for V16FI mode): Ditto.
4259 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4260 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4261 (define_split for VI8F_256 mode): Ditto.
4262 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4263 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4264 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4265 (define_split for VI4F_256 mode): Ditto.
4266 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
4267 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4268 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4269 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
4270 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
4271 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
4272 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
4273 Update `type' attribute, remove explicit `memory' attribute calculation.
4275 2014-09-16 Kito Cheng <kito@0xlab.org>
4277 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
4278 ira_spilled_reg_stack_slots_num if using lra.
4279 (do_reload): Remove release ira_spilled_reg_stack_slots part.
4280 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
4281 make sure not using lra.
4282 (ira_reuse_stack_slot): Likewise.
4283 (ira_mark_new_stack_slot): Likewise.
4285 2014-09-15 Andi Kleen <ak@linux.intel.com>
4287 * function.c (allocate_struct_function): Force
4288 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
4289 profiling is disabled.
4291 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4293 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
4294 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
4295 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
4296 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
4297 macro with statically checked member functions.
4298 * rtl.h (rtx_insn::deleted): New method.
4299 (rtx_insn::set_deleted): Likewise.
4300 (rtx_insn::set_undeleted): Likewise.
4301 (INSN_DELETED_P): Remove.
4303 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4305 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
4306 result of emit_jump_insn_before to a new variable.
4307 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
4308 (mark_jump_label_1): Likewise.
4309 (mark_jump_label_asm): Likewise.
4310 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
4311 * rtl.h (mark_jump_label): Adjust.
4313 2014-09-15 Jakub Jelinek <jakub@redhat.com>
4315 * Makefile.in (dg_target_exps): Remove.
4316 (check_gcc_parallelize): Change to just an upper bound number.
4317 (check-%-subtargets): Always print the non-parallelized goals.
4318 (check_p_vars, check_p_comma, check_p_subwork): Remove.
4319 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
4320 check_p_numbers3, check_p_numbers4, check_p_numbers5,
4321 check_p_numbers6): New variables.
4322 (check_p_numbers): Set to sequence from 1 to 9999.
4323 (check_p_subdirs): Set to sequence from 1 to minimum of
4324 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
4326 (check-%, check-parallel-%): Rewritten so that for parallelized
4327 testing each job runs all the *.exp files, with
4328 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
4330 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4332 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4334 (arc_sets_cc_p): Likewise.
4335 * config/arc/arc.c (arc_print_operand): Use methods of
4336 "final_sequence" for clarity, and to enable strengthening of
4337 locals "jump" and "delay" from rtx to rtx_insn *.
4338 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
4339 rtx_insn *; use method of rtx_sequence for typesafety.
4340 (arc_get_insn_variants): Use insn method of rtx_sequence for
4342 (arc_pad_return): Likewise.
4343 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
4344 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
4345 dyn_cast to rtx_sequence *, using insn method for typesafety.
4346 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
4347 rtx_sequence * and use insn method when invoking get_attr_length.
4348 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
4349 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
4350 rtx_sequence *, introducing a local "seq", using its insn method
4351 from typesafety and clarity.
4352 (add_sched_insns_for_speculation): Strengthen local "next" from
4354 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
4355 (predicate_insn): Likewise.
4356 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
4358 * config/cris/cris.c (cris_notice_update_cc): Likewise.
4359 * config/epiphany/epiphany-protos.h
4360 (extern void epiphany_insert_mode_switch_use): Likewise for param
4362 (get_attr_sched_use_fpu): Likewise for param.
4363 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
4364 Likewise for param "insn".
4365 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
4366 param "insn" of "target_insert_mode_switch_use" callback.
4367 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
4368 (frv_issues_to_branch_unit_p): Likewise.
4369 (frv_pack_insn_p): Likewise.
4370 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
4371 const rtx * (i.e. mutable rtx_def * const *) to
4373 * config/i386/i386-protos.h (standard_sse_constant_opcode):
4374 Strengthen first param from rtx to rtx_insn *.
4375 (output_fix_trunc): Likewise.
4376 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
4377 (output_fix_trunc): Likewise.
4378 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
4380 (min_insn_size): Likewise for param "insn".
4381 (get_mem_group): Likewise.
4383 (get_insn_path): Likewise.
4384 (get_insn_group): Likewise.
4385 (count_num_restricted): Likewise.
4386 (fits_dispatch_window): Likewise.
4387 (add_insn_window): Likewise.
4388 (add_to_dispatch_window): Likewise.
4389 (debug_insn_dispatch_info_file): Likewise.
4390 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
4392 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
4393 "cmp" and local "prev".
4394 (m32c_output_compare): Likewise for param "insn".
4395 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
4396 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
4397 (define_predicate "large_insn_p"): Likewise.
4398 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
4399 param from rtx to rtx_insn *.
4400 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
4401 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
4402 (m68k_sched_attr_size): Likewise.
4403 (sched_get_opxy_mem_type): Likewise for param "insn".
4404 (m68k_sched_attr_op_mem): Likewise.
4405 (sched_mem_operand_p): Likewise.
4406 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
4407 * config/mep/mep.c (mep_multi_slot): Likewise.
4408 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
4410 (mips_sync_loop_insns): Likewise.
4411 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
4412 method of "final_sequence" for typesafety.
4413 (mips_process_sync_loop): Strengthen param "insn" from rtx to
4415 (mips_output_sync_loop): Likewise.
4416 (mips_sync_loop_insns): Likewise.
4417 (mips_74k_agen_init): Likewise.
4418 (mips_sched_init): Use NULL rather than NULL_RTX when working with
4420 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
4421 Strengthen param "insn" from rtx to rtx_insn *.
4422 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
4424 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
4426 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
4427 "insn". Use method of rtx_sequence for typesafety.
4428 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
4430 (branch_needs_nop_p): Likewise.
4431 (use_skip_p): Likewise.
4432 (pa_insn_refs_are_delayed): Likewise.
4433 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
4434 for locals "insn", "ninsn".
4435 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
4437 (is_cracked_insn): Likewise.
4438 (is_branch_slot_insn): Likewise.
4439 (is_nonpipeline_insn): Likewise.
4440 (insn_terminates_group_p): Likewise.
4441 (insn_must_be_first_in_group): Likewise.
4442 (insn_must_be_last_in_group): Likewise.
4443 (force_new_group): Likewise for param "next_insn".
4444 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
4446 (s390_sched_score): Likewise.
4447 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
4448 (rtx sfunc_uses_reg): Likewise for sole param.
4449 * config/sh/sh.c (sh_print_operand): Use insn method of
4450 final_sequence for typesafety.
4451 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
4452 Use insn method of final_sequence for typesafety.
4453 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
4454 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
4456 (eligible_for_return_delay): Likewise.
4457 (eligible_for_sibcall_delay): Likewise.
4458 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
4459 (eligible_for_return_delay): Likewise.
4460 (eligible_for_sibcall_delay): Likewise.
4461 * config/stormy16/stormy16-protos.h
4462 (xstormy16_output_cbranch_hi): Likewise for final param.
4463 (xstormy16_output_cbranch_si): Likewise.
4464 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
4465 (xstormy16_output_cbranch_si): Likewise.
4466 * config/v850/v850-protos.h (notice_update_cc): Likewise.
4467 * config/v850/v850.c (notice_update_cc): Likewise.
4469 * final.c (get_attr_length_1): Strengthen param "insn" and param
4470 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
4471 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
4472 (get_attr_min_length): Likewise.
4473 (shorten_branches): Likewise for signature of locals "length_fun"
4474 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
4475 from a checked cast and use its methods for clarity and to enable
4476 strengthening local "inner_insn" from rtx to rtx_insn *.
4477 * genattr.c (gen_attr): When writing out the prototypes of the
4478 various generated "get_attr_" functions, strengthen the params of
4479 the non-const functions from rtx to rtx_insn *.
4480 Similarly, strengthen the params of insn_default_length,
4481 insn_min_length, insn_variable_length_p, insn_current_length.
4482 (main): Similarly, strengthen the param of num_delay_slots,
4483 internal_dfa_insn_code, insn_default_latency, bypass_p,
4484 insn_latency, min_issue_delay, print_reservation,
4485 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4486 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
4487 to hook_int_rtx_insn_unreachable.
4488 * genattrtab.c (write_attr_get): When writing out the generated
4489 "get_attr_" functions, strengthen the param "insn" from rtx to
4490 rtx_insn *, eliminating a checked cast.
4491 (make_automaton_attrs): When writing out prototypes of
4492 "internal_dfa_insn_code_", "insn_default_latency_" functions
4493 and the "internal_dfa_insn_code" and "insn_default_latency"
4494 callbacks, strengthen their params from rtx to rtx_insn *
4495 * genautomata.c (output_internal_insn_code_evaluation): When
4496 writing out code, add a checked cast from rtx to rtx_insn * when
4497 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4498 (output_dfa_insn_code_func): Strengthen param of generated
4499 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4500 (output_trans_func): Likewise for generated function
4502 (output_internal_insn_latency_func): When writing out generated
4503 function "internal_insn_latency", rename params from "insn" and
4504 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
4505 locals "insn" and "insn2" as rtx_insn * with checked casts once
4506 we've proven that we're not dealing with const0_rtx.
4507 (output_insn_latency_func): Strengthen param of generated
4508 function "insn_latency" from rtx to rtx_insn *.
4509 (output_print_reservation_func): Likewise for generated function
4510 "print_reservation".
4511 (output_insn_has_dfa_reservation_p): Likewise for generated
4512 function "insn_has_dfa_reservation_p".
4513 * hooks.c (hook_int_rtx_unreachable): Rename to...
4514 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4515 from rtx to rtx_insn *.
4516 * hooks.h (hook_int_rtx_unreachable): Likewise.
4517 (extern int hook_int_rtx_insn_unreachable): Likewise.
4518 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4519 (get_attr_min_length): Likewise.
4520 * recog.c (get_enabled_alternatives): Likewise.
4521 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4522 * reorg.c (find_end_label): Introduce local rtx "pat" and
4523 strengthen local "insn" from rtx to rtx_insn *.
4524 (redundant_insn): Use insn method of "seq" rather than element for
4525 typesafety; strengthen local "control" from rtx to rtx_insn *.
4526 * resource.c (mark_referenced_resources): Add checked cast to
4527 rtx_insn * within INSN/JUMP_INSN case.
4528 (mark_set_resources): Likewise.
4529 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4532 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4534 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4535 param "label" from rtx to rtx_insn *.
4536 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4538 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4539 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4540 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4541 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4542 * final.c (default_label_align_after_barrier_max_skip): Strengthen
4543 param from rtx to rtx_insn *.
4544 (default_loop_align_max_skip): Likewise.
4545 (default_label_align_max_skip): Likewise.
4546 (default_jump_align_max_skip): Likewise.
4547 * target.def (label_align_after_barrier_max_skip): Likewise.
4548 (loop_align_max_skip): Likewise.
4549 (label_align_max_skip): Likewise.
4550 (jump_align_max_skip): Likewise.
4551 * targhooks.h (default_label_align_after_barrier_max_skip):
4553 (default_loop_align_max_skip): Likewise.
4554 (default_label_align_max_skip): Likewise.
4555 (default_jump_align_max_skip): Likewise.
4557 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4559 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4560 from const_rtx to const rtx_insn *. Update union members from rtx
4562 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4563 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4564 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4565 strengthen both params from const_rtx to const rtx_insn *.
4566 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4567 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4568 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4570 * target.def (can_follow_jump): Strengthen both params from
4571 const_rtx to const rtx_insn *, and update default implementation
4572 from hook_bool_const_rtx_const_rtx_true to
4573 hook_bool_const_rtx_insn_const_rtx_insn_true.
4575 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4577 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
4578 "insn" from rtx to rtx_insn *.
4579 * sched-int.h (deps_start_bb): Likewise for 2nd param.
4581 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4582 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4583 Anna Tikhonova <anna.tikhonova@intel.com>
4584 Ilya Tocar <ilya.tocar@intel.com>
4585 Andrey Turetskiy <andrey.turetskiy@intel.com>
4586 Ilya Verbin <ilya.verbin@intel.com>
4587 Kirill Yukhin <kirill.yukhin@intel.com>
4588 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4590 * config/i386/sse.md
4591 (define_insn "vcvtph2ps<mask_name>"): Add masking.
4592 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
4593 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
4594 (define_expand "vcvtps2ph_mask"): New.
4595 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
4596 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4597 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4599 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4600 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4601 Anna Tikhonova <anna.tikhonova@intel.com>
4602 Ilya Tocar <ilya.tocar@intel.com>
4603 Andrey Turetskiy <andrey.turetskiy@intel.com>
4604 Ilya Verbin <ilya.verbin@intel.com>
4605 Kirill Yukhin <kirill.yukhin@intel.com>
4606 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4608 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4610 (define_mode_iterator VI24_AVX512BW_1): Ditto.
4611 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4612 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4613 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4614 also for TARGET_AVX512VL.
4615 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4617 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
4619 * doc/install.texi (Options specification): add
4620 --disable-libsanitizer item.
4622 2014-09-14 James Clarke <jrtc27@jrtc27.com>
4623 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4626 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
4628 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
4629 kernel version check to avoid incrementing it after every major OS X
4631 (darwin_default_min_version): Avoid static memory buffer.
4633 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
4635 * tree.c (need_assembler_name_p): Store C++ type mangling only
4638 2014-09-13 Marek Polacek <polacek@redhat.com>
4640 * tree.c (protected_set_expr_location): Don't check whether T is
4643 2014-09-12 DJ Delorie <dj@redhat.com>
4645 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
4646 (extend_and_shift1_hipsi2): Likewise.
4647 (extend_and_shift2_hipsi2): Likewise.
4649 2014-09-12 David Malcolm <dmalcolm@redhat.com>
4651 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
4652 with NULL when dealing with an insn.
4653 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
4654 from rtx to rtx_insn *.
4655 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
4656 const_rtx to const rtx_insn *.
4657 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
4659 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
4661 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
4664 2014-09-12 Joseph Myers <joseph@codesourcery.com>
4666 * target.def (libgcc_floating_mode_supported_p): New hook.
4667 * targhooks.c (default_libgcc_floating_mode_supported_p): New
4669 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
4670 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
4671 (LIBGCC2_HAS_TF_MODE): Remove.
4672 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
4673 * doc/tm.texi: Regenerate.
4674 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
4676 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
4677 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
4678 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
4679 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
4680 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4681 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
4682 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
4683 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
4684 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
4685 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
4687 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
4688 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4689 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4690 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4691 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4692 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4693 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4694 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
4695 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
4696 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
4697 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4698 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
4699 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
4700 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
4702 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
4704 (ia64_libgcc_floating_mode_supported_p): New function.
4705 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
4706 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
4707 (IA64_NO_LIBGCC_TFMODE): Define.
4708 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
4709 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
4711 (pdp11_scalar_mode_supported_p): New function.
4712 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
4713 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
4715 2014-09-12 Richard Biener <rguenther@suse.de>
4718 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
4720 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
4722 * tree.c (integer_each_onep): New function.
4723 * tree.h (integer_each_onep): Declare it.
4724 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
4725 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
4726 (X & 1) == 0 for vector and complex.
4728 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4730 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
4732 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
4733 cost to spilling from integer to FP registers.
4735 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4737 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
4739 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
4740 are now handled correctly.
4742 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4744 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
4745 handling of CALLER_SAVE_REGS and POINTER_REGS.
4747 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4749 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
4750 the number of hard registers.
4752 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4753 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4754 Anna Tikhonova <anna.tikhonova@intel.com>
4755 Ilya Tocar <ilya.tocar@intel.com>
4756 Andrey Turetskiy <andrey.turetskiy@intel.com>
4757 Ilya Verbin <ilya.verbin@intel.com>
4758 Kirill Yukhin <kirill.yukhin@intel.com>
4759 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4761 * config/i386/sse.md
4762 (define_mode_iterator VI48_AVX512VL): New.
4763 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
4764 "avx512f_vternlog<mode>_maskz" and update mode iterator.
4765 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
4766 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
4767 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
4768 "avx512f_vternlog<mode>_mask" and update mode iterator.
4769 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
4770 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
4772 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
4773 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
4774 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
4775 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
4776 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
4777 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
4779 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4780 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4781 Anna Tikhonova <anna.tikhonova@intel.com>
4782 Ilya Tocar <ilya.tocar@intel.com>
4783 Andrey Turetskiy <andrey.turetskiy@intel.com>
4784 Ilya Verbin <ilya.verbin@intel.com>
4785 Kirill Yukhin <kirill.yukhin@intel.com>
4786 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4788 * config/i386/sse.md (VI128_256): Delete.
4789 (define_mode_iterator VI124_256): New.
4790 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
4791 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
4792 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
4793 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
4794 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
4795 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
4796 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
4797 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
4799 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
4800 in presence of AVX-512.
4802 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4803 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4804 Anna Tikhonova <anna.tikhonova@intel.com>
4805 Ilya Tocar <ilya.tocar@intel.com>
4806 Andrey Turetskiy <andrey.turetskiy@intel.com>
4807 Ilya Verbin <ilya.verbin@intel.com>
4808 Kirill Yukhin <kirill.yukhin@intel.com>
4809 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4811 * config/i386/sse.md
4812 (define_expand "<avx512>_gathersi<mode>"): Rename from
4813 "avx512f_gathersi<mode>".
4814 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
4815 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
4816 (define_expand "<avx512>_gatherdi<mode>"): Rename from
4817 "avx512f_gatherdi<mode>".
4818 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
4819 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
4821 (define_expand "<avx512>_scattersi<mode>"): Rename from
4822 "avx512f_scattersi<mode>".
4823 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
4824 (define_expand "<avx512>_scatterdi<mode>"): Rename from
4825 "avx512f_scatterdi<mode>".
4826 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
4828 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
4830 * ira.h (ira_finish_once): Delete.
4831 * ira-int.h (target_ira_int::~target_ira_int): Declare.
4832 (target_ira_int::free_ira_costs): Likewise.
4833 (target_ira_int::free_register_move_costs): Likewise.
4834 (ira_finish_costs_once): Delete.
4835 * ira.c (free_register_move_costs): Replace with...
4836 (target_ira_int::free_register_move_costs): ...this new function.
4837 (target_ira_int::~target_ira_int): Define.
4838 (ira_init): Call free_register_move_costs as a member function rather
4839 than a global function.
4840 (ira_finish_once): Delete.
4841 * ira-costs.c (free_ira_costs): Replace with...
4842 (target_ira_int::free_ira_costs): ...this new function.
4843 (ira_init_costs): Call free_ira_costs as a member function rather
4844 than a global function.
4845 (ira_finish_costs_once): Delete.
4846 * target-globals.c (target_globals::~target_globals): Call the
4847 target_ira_int destructor.
4848 * toplev.c: Include lra.h.
4849 (finalize): Call lra_finish_once rather than ira_finish_once.
4851 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
4853 * common.opt (flto-odr-type-merging): New flag.
4854 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
4855 (types_same_for_odr): Likewise.
4856 (odr_subtypes_equivalent_p): Likewise.
4857 (add_type_duplicate): Do not walk type variants.
4858 (register_odr_type): New function.
4859 * ipa-utils.h (register_odr_type): Declare.
4860 (odr_type_p): New function.
4861 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
4863 * doc/invoke.texi (-flto-odr-type-merging): Document.
4864 * tree.c (need_assembler_name_p): Compute ODR names when asked
4866 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
4868 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
4871 * config/i386/i386.c (ix86_option_override_internal): Also turn
4872 off OPTION_MASK_ABI_X32 for -m16.
4874 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
4876 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
4879 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
4882 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4883 Directly forward to __*_DENORM_MIN__.
4885 2014-09-11 David Malcolm <dmalcolm@redhat.com>
4887 * rtl.h (LABEL_REF_LABEL): New macro.
4889 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
4890 of XEXP (, 0), where we know that we have a LABEL_REF.
4891 * cfgbuild.c (make_edges): Likewise.
4892 (purge_dead_tablejump_edges): Likewise.
4893 * cfgexpand.c (convert_debug_memory_address): Likewise.
4894 * cfgrtl.c (patch_jump_insn): Likewise.
4895 * combine.c (distribute_notes): Likewise.
4896 * cse.c (hash_rtx_cb): Likewise.
4897 (exp_equiv_p): Likewise.
4898 (fold_rtx): Likewise.
4899 (check_for_label_ref): Likewise.
4900 * cselib.c (rtx_equal_for_cselib_1): Likewise.
4901 (cselib_hash_rtx): Likewise.
4902 * emit-rtl.c (mark_label_nuses): Likewise.
4903 * explow.c (convert_memory_address_addr_space): Likewise.
4904 * final.c (output_asm_label): Likewise.
4905 (output_addr_const): Likewise.
4906 * gcse.c (add_label_notes): Likewise.
4907 * genconfig.c (walk_insn_part): Likewise.
4908 * genrecog.c (validate_pattern): Likewise.
4909 * ifcvt.c (cond_exec_get_condition): Likewise.
4910 (noce_emit_store_flag): Likewise.
4911 (noce_get_alt_condition): Likewise.
4912 (noce_get_condition): Likewise.
4913 * jump.c (maybe_propagate_label_ref): Likewise.
4914 (mark_jump_label_1): Likewise.
4915 (redirect_exp_1): Likewise.
4916 (rtx_renumbered_equal_p): Likewise.
4917 * lra-constraints.c (operands_match_p): Likewise.
4918 * reload.c (operands_match_p): Likewise.
4919 (find_reloads): Likewise.
4920 * reload1.c (set_label_offsets): Likewise.
4921 * reorg.c (get_branch_condition): Likewise.
4922 * rtl.c (rtx_equal_p_cb): Likewise.
4923 (rtx_equal_p): Likewise.
4924 * rtlanal.c (reg_mentioned_p): Likewise.
4925 (rtx_referenced_p): Likewise.
4926 (get_condition): Likewise.
4927 * sched-vis.c (print_value): Likewise.
4928 * varasm.c (const_hash_1): Likewise.
4929 (compare_constant): Likewise.
4930 (const_rtx_hash_1): Likewise.
4931 (output_constant_pool_1): Likewise.
4933 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
4935 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
4936 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
4938 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
4939 cr6_test_for_lt_reverse): Ditto.
4941 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
4944 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
4946 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
4948 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
4949 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
4950 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
4951 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
4954 (aarch64_fold_builtin): Remove all reinterpret cases.
4956 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
4958 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
4960 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
4961 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
4962 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
4963 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
4964 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
4965 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
4966 aarch64_reinterpretv2df<mode>): Delete.
4968 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
4970 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
4971 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
4972 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
4973 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
4974 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
4975 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
4976 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
4977 vreinterpret_u32_f64): Use cast.
4979 * config/aarch64/iterators.md (VD_RE): Delete.
4981 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
4983 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
4984 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
4985 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
4986 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
4987 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
4988 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
4989 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
4990 Replace inline assembler with __aarch64_vset_lane_any.
4992 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
4994 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
4996 (vmull_high_lane_s32): Likewise.
4997 (vmull_high_lane_u16): Likewise.
4998 (vmull_high_lane_u32): Likewise.
5000 2014-09-11 Jason Merrill <jason@redhat.com>
5003 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5005 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
5008 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5009 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
5010 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5012 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5013 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5014 Anna Tikhonova <anna.tikhonova@intel.com>
5015 Ilya Tocar <ilya.tocar@intel.com>
5016 Andrey Turetskiy <andrey.turetskiy@intel.com>
5017 Ilya Verbin <ilya.verbin@intel.com>
5018 Kirill Yukhin <kirill.yukhin@intel.com>
5019 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5021 * config/i386/sse.md
5022 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5023 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5024 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5026 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5027 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5029 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5031 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5032 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5033 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5034 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5035 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5036 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5037 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5038 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5040 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5042 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5043 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5044 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5046 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5048 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5049 to access removed nodes.
5051 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5053 PR tree-optimization/63186
5054 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5055 (mark_nonssa_use): Likewise.
5056 (verify_non_ssa_vars): Verify all header blocks for label
5059 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5060 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5061 Anna Tikhonova <anna.tikhonova@intel.com>
5062 Ilya Tocar <ilya.tocar@intel.com>
5063 Andrey Turetskiy <andrey.turetskiy@intel.com>
5064 Ilya Verbin <ilya.verbin@intel.com>
5065 Kirill Yukhin <kirill.yukhin@intel.com>
5066 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5068 * config/i386/sse.md
5069 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5070 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5071 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5072 "<avx2_avx512f>_permvar<mode><mask_name>".
5073 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5074 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5075 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5076 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5078 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5079 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5080 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5081 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5083 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5085 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5086 V2DF, V4SF, DF, and DI modes.
5087 (vsx_fmav2df2): Likewise.
5088 (vsx_float_fix_<mode>2): Likewise.
5089 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5091 2014-09-10 Xinliang David Li <davidxl@google.com>
5094 * config/arm/arm.md (movcond_addsi): Handle case where source
5095 and target operands are the same.
5097 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5099 * final.c (this_is_asm_operands): Strengthen this variable from
5100 rtx to const rtx_insn *.
5101 * output.h (this_is_asm_operands): Likewise.
5102 * rtl-error.c (location_for_asm): Strengthen param "insn" from
5103 const_rtx to const rtx_insn *.
5104 (diagnostic_for_asm): Likewise.
5105 * rtl-error.h (error_for_asm): Likewise.
5106 (warning_for_asm): Likewise.
5108 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5110 * genextract.c (print_header): When writing out insn_extract to
5111 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5112 * recog.h (insn_extract): Strengthen the param from rtx to
5115 2014-09-10 Mike Stump <mikestump@comcast.net>
5117 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
5120 2014-09-10 Martin Jambor <mjambor@suse.cz>
5122 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
5123 (analyze): Do not set analyze flag if expand_thunk returns false;.
5124 (create_wrapper): Likewise.
5125 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5127 2014-09-10 Martin Jambor <mjambor@suse.cz>
5130 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
5131 new decl properly. Analyze the new thunk if it is expanded.
5133 2014-09-10 Andreas Schwab <schwab@suse.de>
5135 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5136 [USED_FOR_TARGET]: Define.
5138 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
5140 * config/mips/mips.c (mips_secondary_reload_class): Handle
5143 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
5145 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5148 2014-09-10 Jakub Jelinek <jakub@redhat.com>
5150 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5151 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5152 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5153 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5154 flag_delete_null_pointer_checks for them.
5155 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5156 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5157 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5158 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5159 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5161 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5162 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5163 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5164 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5165 * doc/invoke.texi (-fsanitize=nonnull-attribute,
5166 -fsanitize=returns-nonnull-attribute): Document.
5168 * ubsan.h (struct ubsan_mismatch_data): Removed.
5169 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5170 * ubsan.c (ubsan_source_location): For unknown locations,
5171 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5172 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5173 Allow more than one location and arbitrary extra arguments passed
5174 in ... instead of through MISMATCH pointer.
5175 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5176 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5177 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5180 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5181 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5182 Anna Tikhonova <anna.tikhonova@intel.com>
5183 Ilya Tocar <ilya.tocar@intel.com>
5184 Andrey Turetskiy <andrey.turetskiy@intel.com>
5185 Ilya Verbin <ilya.verbin@intel.com>
5186 Kirill Yukhin <kirill.yukhin@intel.com>
5187 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5189 * config/i386/sse.md
5190 (define_mode_iterator VI48F): New.
5191 (define_insn "<avx512>_compress<mode>_mask"): Rename from
5192 "avx512f_compress<mode>_mask" and update mode iterator.
5193 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5194 "avx512f_compressstore<mode>_mask" and update mode iterator.
5195 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5196 "avx512f_expand<mode>_maskz" and update mode iterator.
5197 (define_insn "<avx512>_expand<mode>_mask"): Rename from
5198 "avx512f_expand<mode>_mask" and update mode iterator.
5200 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5201 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5202 Anna Tikhonova <anna.tikhonova@intel.com>
5203 Ilya Tocar <ilya.tocar@intel.com>
5204 Andrey Turetskiy <andrey.turetskiy@intel.com>
5205 Ilya Verbin <ilya.verbin@intel.com>
5206 Kirill Yukhin <kirill.yukhin@intel.com>
5207 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5209 * config/i386/i386.c
5210 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5211 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5212 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5213 avx512dq_rangepv4sf_mask.
5214 * config/i386/sse.md
5215 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5217 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5218 (define_insn "reduces<mode>"): Ditto.
5219 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5221 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5222 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5223 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5225 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5226 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5227 Anna Tikhonova <anna.tikhonova@intel.com>
5228 Ilya Tocar <ilya.tocar@intel.com>
5229 Andrey Turetskiy <andrey.turetskiy@intel.com>
5230 Ilya Verbin <ilya.verbin@intel.com>
5231 Kirill Yukhin <kirill.yukhin@intel.com>
5232 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5234 * config/i386/i386.c
5235 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
5236 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
5237 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
5238 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
5239 avx512vl_getmantv2df_mask.
5240 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
5241 avx512f_vgetmantv4sf_round.
5242 * config/i386/sse.md
5243 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
5244 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
5246 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
5247 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
5248 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
5249 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
5251 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
5252 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
5253 update mode iterator.
5255 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
5256 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
5259 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
5260 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
5261 update mode iterator.
5262 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
5263 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
5266 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
5267 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
5269 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
5270 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
5271 update mode iterator.
5272 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
5273 "avx512f_getmant<mode><round_saeonly_name>".
5275 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5278 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5280 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5281 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5282 Anna Tikhonova <anna.tikhonova@intel.com>
5283 Ilya Tocar <ilya.tocar@intel.com>
5284 Andrey Turetskiy <andrey.turetskiy@intel.com>
5285 Ilya Verbin <ilya.verbin@intel.com>
5286 Kirill Yukhin <kirill.yukhin@intel.com>
5287 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5289 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
5290 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
5291 (define_mode_iterator FMAMODE_AVX512): New.
5292 (define_mode_iterator FMAMODE): Remove conditions.
5293 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
5294 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
5295 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
5297 (define_mode_iterator FMAMODE_NOVF512): Remove.
5298 (define_insn "*fma_fmadd_<mode>"): Rename from
5299 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
5300 FMAMODE mode iterator.
5301 (define_mode_iterator VF_SF_AVX512VL): New.
5302 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
5303 Use VF_SF_AVX512VL mode iterator.
5304 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
5305 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5307 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
5308 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5310 (define_insn "*fma_fmsub_<mode>"): Rename from
5311 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
5312 FMAMODE mode iterator.
5313 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
5314 Use VF_SF_AVX512VL mode iterator.
5315 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
5316 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5318 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
5319 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5321 (define_insn "*fma_fnmadd_<mode>"): Rename from
5322 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
5323 use FMAMODE mode iterator.
5324 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
5325 Use VF_SF_AVX512VL mode iterator.
5326 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
5327 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5329 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
5330 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5332 (define_insn "*fma_fnmsub_<mode>"): Rename from
5333 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
5334 FMAMODE mode iterator.
5335 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
5336 Use VF_SF_AVX512VL mode iterator.
5337 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
5338 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5340 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
5341 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5343 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
5344 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
5345 use VF_AVX512VL mode iterator.
5346 (define_insn "*fma_fmaddsub_<mode>"): Rename from
5347 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
5349 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
5350 Use VF_SF_AVX512VL mode iterator.
5351 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
5352 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5354 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
5355 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5357 (define_insn "*fma_fmsubadd_<mode>"): Rename from
5358 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
5359 remove usage of subst.
5360 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
5361 Use VF_SF_AVX512VL mode iterator.
5362 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
5363 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5365 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
5366 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5369 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5372 * calls.c (precompute_arguments): Check
5373 promoted_for_signed_and_unsigned_p and set the promoted mode.
5374 (promoted_for_signed_and_unsigned_p): New function.
5375 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5376 and set the promoted mode.
5377 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5378 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5379 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5381 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5383 * opth-gen.awk: Generate mapping from cpp message reasons to the
5384 options that enable them.
5385 * doc/options.texi (CppReason): Document.
5387 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5389 * doc/invoke.texi (Wnormalized=): Update.
5391 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
5394 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
5395 operands. Split off the constant operand alternative to ...
5396 (*bool<mode>3_imm): New.
5398 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5400 * rtl.h (single_set_2): Strengthen first param from const_rtx to
5401 const rtx_insn *, and move prototype to above...
5402 (single_set): ...this. Convert this from a macro to an inline
5403 function, enforcing the requirement that the param is a const
5405 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
5407 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
5408 Strengthen both params from rtx to rtx_insn *.
5409 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5410 Likewise; introduce locals "producer_set", "consumer_set", using
5411 them in place of "producer" and "consumer" when dealing with SET
5413 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
5414 when invoking single_set in region guarded by INSN_P.
5415 (avr_out_bitop): Likewise.
5416 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
5417 region guarded by GET_CODE check, using methods to strengthen
5418 local "this_insn" from rtx to rtx_insn *, and for clarity.
5419 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
5420 Strengthen local "insn" from rtx to rtx_insn *.
5421 (define_insn_and_split "xload<mode>_A"): Likewise.
5422 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
5424 (find_load): Likewise for return type.
5425 (workaround_speculation): Likewise for both locals named
5427 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
5429 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
5431 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
5433 * config/h8300/h8300.c (notice_update_cc): Likewise.
5434 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
5435 "insn" and "dep_insn".
5436 (exact_store_load_dependency): Likewise for both params.
5437 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
5438 since this now clashes with inline function. Instead, delay
5439 calling single_set until the point where its needed, and then
5440 assign the result to "compare_set" and rework the conditional that
5442 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
5443 local "last" from rtx to rtx_insn *.
5444 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
5446 (mips_store_data_bypass_p): Likewise for both params.
5447 * config/mips/mips.c (mips_load_store_insns): Likewise for second
5449 (mips_store_data_bypass_p): Likewise for both params.
5450 (mips_orphaned_high_part_p): Likewise for param "insn".
5451 * config/mn10300/mn10300.c (extract_bundle): Likewise.
5452 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
5453 Introduce local rtx "insn2_pat".
5454 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
5456 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
5457 Introduce local rtx "set", using it in place of "insn" for the
5458 result of single_set. This appears to fix a bug, since the call
5459 to find_regno_note on a SET does nothing.
5460 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
5461 params from rtx to rtx_insn *.
5462 (set_to_load_agen): Likewise.
5463 * config/s390/s390.c (s390_label_align): Likewise for local
5464 "prev_insn". Introduce new rtx locals "set" and "src", using
5465 them in place of "prev_insn" for the results of single_set
5466 and SET_SRC respectively.
5467 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
5468 Introduce new rtx local "set" using in place of "jump" for the
5469 result of single_set. Use SET_SRC (set) rather than plain
5471 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
5473 (noncall_uses_reg): Likewise.
5474 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
5475 guarded by GET_CODE check, using its methods for clarity, and to
5476 enable strengthening local "this_insn" from rtx to rtx_insn *.
5477 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
5478 "insn" from rtx to rtx_insn *.
5479 (define_expand "umulhisi3"): Likewise.
5480 (define_expand "smulsi3_highpart"): Likewise.
5481 (define_expand "umulsi3_highpart"): Likewise.
5482 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5483 local "after". Replace GET_CODE check with a dyn_cast,
5484 introducing new local rtx_sequence * "seq", using insn method for
5487 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5488 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
5489 place of "insn" once we're dealing with patterns rather than the
5491 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5492 (scan_trace): Likewise for local "elt", updating lookups within
5493 sequence to use insn method rather than element method.
5494 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5496 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5497 * ifcvt.c (noce_try_abs): Likewise for local "insn".
5498 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5499 invoking single_set.
5500 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5501 "insn" from rtx to rtx_insn *.
5502 (skip_usage_debug_insns): Likewise for return type, adding a
5504 (check_secondary_memory_needed_p): Likewise for local "insn".
5505 (inherit_reload_reg): Likewise.
5506 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5507 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5509 (store_data_bypass_p): Likewise for both params.
5510 (if_test_bypass_p): Likewise.
5511 * recog.h (store_data_bypass_p): Likewise for both params.
5512 (if_test_bypass_p): Likewise.
5513 * reload.c (find_equiv_reg): Likewise for local "where".
5514 * reorg.c (delete_jump): Likewise for param "insn".
5515 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5516 to const rtx_insn *.
5517 * store-motion.c (replace_store_insn): Likewise for param "del".
5518 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5519 and use its methods for clarity, and to strengthen local "del"
5520 from rtx to rtx_insn *.
5521 (build_store_vectors): Use insn method of "st" when calling
5522 replace_store_insn for typesafety and clarity.
5524 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5526 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5527 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5528 on how to make it legal in future.
5530 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5532 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5534 (restinsn): Likewise.
5535 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5537 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5539 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5541 (arc_hazard): Likewise for both params.
5542 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5543 checked casts to rtx_sequence * and uses of the insn method for
5545 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5546 (arc_adjust_insn_length): Likewise for param "insn".
5547 (struct insn_length_parameters_s): Likewise for first param of
5548 "get_variants" callback field.
5549 (arc_get_insn_variants): Likewise for first param and local
5550 "inner". Replace a check of GET_CODE with a dyn_cast to
5551 rtx_sequence *, using methods for type-safety and clarity.
5552 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5553 rtx_sequence * and uses of the insn method for type-safety when
5554 invoking arc_adjust_insn_length.
5555 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5557 (arm_address_offset_is_imm): Likewise.
5558 (struct tune_params): Likewise for params 1 and 3 of the
5559 "sched_adjust_cost" callback field.
5560 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5561 params 1 and 3 ("insn" and "dep").
5562 (xscale_sched_adjust_cost): Likewise.
5563 (fa726te_sched_adjust_cost): Likewise.
5564 (cortexa7_older_only): Likewise for param "insn".
5565 (cortexa7_younger): Likewise.
5566 (arm_attr_length_move_neon): Likewise.
5567 (arm_address_offset_is_imm): Likewise.
5568 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5569 * config/avr/avr.c (avr_notice_update_cc): Likewise.
5570 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5571 (workaround_speculation): Likewise for local "last_condjump".
5572 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5573 (shadow_or_blockage_p): Likewise.
5574 (get_unit_reqs): Likewise.
5575 (get_unit_operand_masks): Likewise.
5576 (c6x_registers_update): Likewise.
5577 (returning_call_p): Likewise.
5578 (can_use_callp): Likewise.
5579 (convert_to_callp): Likewise.
5580 (find_last_same_clock): Likwise for local "t".
5581 (reorg_split_calls): Likewise for local "shadow".
5582 (hwloop_pattern_reg): Likewise for param "insn".
5583 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
5584 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
5585 (frv_extract_membar): Likewise.
5586 (frv_optimize_membar_local): Strengthen param "last_membar" from
5587 rtx * to rtx_insn **.
5588 (frv_optimize_membar_global): Strengthen param "membar" from rtx
5590 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
5592 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
5593 both params from rtx to rtx_insn *.
5594 (ia64_ld_address_bypass_p): Likewise.
5595 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
5597 (ia64_safe_type): Likewise.
5598 (group_barrier_needed): Likewise.
5599 (safe_group_barrier_needed): Likewise.
5600 (ia64_single_set): Likewise.
5601 (is_load_p): Likewise.
5602 (record_memory_reference): Likewise.
5603 (get_mode_no_for_insn): Likewise.
5604 (important_for_bundling_p): Likewise.
5605 (unknown_for_bundling_p): Likewise.
5606 (ia64_st_address_bypass_p): Likewise for both params.
5607 (ia64_ld_address_bypass_p): Likewise.
5608 (expand_vselect): Introduce new local rtx_insn * "insn", using it
5609 in place of rtx "x" after the emit_insn call.
5610 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5611 Strengthen param from rtx to rtx_insn *.
5612 (ix86_agi_dependent): Likewise for both params.
5613 (ix86_attr_length_immediate_default): Likewise for param 1.
5614 (ix86_attr_length_address_default): Likewise for param.
5615 (ix86_attr_length_vex_default): Likewise for param 1.
5616 * config/i386/i386.c (ix86_attr_length_immediate_default):
5617 Likewise for param "insn".
5618 (ix86_attr_length_address_default): Likewise.
5619 (ix86_attr_length_vex_default): Likewise.
5620 (ix86_agi_dependent): Likewise for both params.
5621 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5622 (vselect_insn): Likewise for this variable.
5623 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5625 (m68k_sched_attr_opy_type): Likewise.
5626 * config/m68k/m68k.c (sched_get_operand): Likewise.
5627 (sched_attr_op_type): Likewise.
5628 (m68k_sched_attr_opx_type): Likewise.
5629 (m68k_sched_attr_opy_type): Likewise.
5630 (sched_get_reg_operand): Likewise.
5631 (sched_get_mem_operand): Likewise.
5632 (m68k_sched_address_bypass_p): Likewise for both params.
5633 (sched_get_indexed_address_scale): Likewise.
5634 (m68k_sched_indexed_address_bypass_p): Likewise.
5635 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
5636 (m68k_sched_indexed_address_bypass_p): Likewise.
5637 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
5638 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
5640 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
5641 params from rtx to rtx_insn *.
5642 (mips_fmadd_bypass): Likewise.
5643 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
5644 (mips_linked_madd_p): Likewise.
5645 (mips_macc_chains_last_hilo): Likewise for this variable.
5646 (mips_macc_chains_record): Likewise for param.
5647 (vr4130_last_insn): Likewise for this variable.
5648 (vr4130_swap_insns_p): Likewise for both params.
5649 (mips_ls2_variable_issue): Likewise for param.
5650 (mips_need_noat_wrapper_p): Likewise for param "insn".
5651 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
5652 in place of "x" after the emit_insn.
5653 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
5654 params from rtx to rtx_insn *.
5655 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
5656 (pa_combine_instructions): Introduce local "par" for result of
5657 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
5659 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
5660 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
5661 (rl78_alloc_physical_registers_op1): Likewise.
5662 (rl78_alloc_physical_registers_op2): Likewise.
5663 (rl78_alloc_physical_registers_ro1): Likewise.
5664 (rl78_alloc_physical_registers_cmp): Likewise.
5665 (rl78_alloc_physical_registers_umul): Likewise.
5666 (rl78_alloc_address_registers_macax): Likewise.
5667 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
5668 * config/s390/predicates.md (execute_operation): Likewise for
5670 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
5672 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
5673 (addr_generation_dependency_p): Likewise for param "insn".
5674 (s390_agen_dep_p): Likewise for both params.
5675 (s390_fpload_toreg): Likewise for param "insn".
5676 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
5677 * config/sh/sh.c (sh_loop_align): Likewise for param and local
5679 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
5680 * config/sh/sh_treg_combine.cc
5681 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
5683 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
5684 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
5685 "and_insn", "load", "shift".
5686 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
5688 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
5689 for XEXP (note, 0) of the REG_CC_SETTER note.
5690 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
5691 rtx_insn *, eliminating a checked cast made redundant by this.
5692 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
5694 * genattr.c (main): When writing out the prototype to
5695 const_num_delay_slots, strengthen the param from rtx to
5697 * genattrtab.c (write_const_num_delay_slots): Likewise when
5698 writing out the implementation of const_num_delay_slots.
5699 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
5700 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
5701 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
5702 favor of new rtx locals "src" and "set" and new local rtx_insn *
5704 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
5706 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
5707 locals "cond", "if_then_else", "set" and new rtx_insn * locals
5709 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
5710 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
5711 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
5712 the top-level scope, replacing with new more tightly-scoped rtx
5713 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
5714 "new_insn", "copy_of_insn_b", and make local rtx "set" more
5716 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
5718 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
5720 (ira_setup_alts): Likewise for param "insn".
5721 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
5722 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
5724 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
5725 new more-tightly scoped rtx locals "add3_insn", "insn",
5726 "add2_insn" and rtx_insn * "move_insn".
5727 * postreload-gcse.c (eliminate_partially_redundant_load): Add
5728 checked cast on result of gen_move_insn when invoking
5730 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
5732 (verify_changes): Add a checked cast on "object" when invoking
5734 (extract_insn_cached): Strengthen param "insn" from rtx to
5736 (extract_constrain_insn_cached): Likewise.
5737 (extract_insn): Likewise.
5738 * recog.h (insn_invalid_p): Likewise for param 1.
5739 (recog_memoized): Likewise for param.
5740 (extract_insn): Likewise.
5741 (extract_constrain_insn_cached): Likewise.
5742 (extract_insn_cached): Likewise.
5743 * reload.c (can_reload_into): Likewise for local "test_insn".
5744 * reload.h (cleanup_subreg_operands): Likewise for param.
5745 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
5746 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
5747 result of emit_insn. Remove a checked cast made redundant by this
5749 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
5751 * sel-sched.c (get_reg_class): Likewise.
5753 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
5754 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5756 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
5757 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
5759 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
5761 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5763 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
5764 const rtx_insn *, and from rtx to rtx_insn * for the other
5766 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
5767 INSN_LOCATION, since we know INSN_P holds.
5768 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
5769 (insn_file): Likewise.
5770 (insn_scope): Likewise.
5771 (insn_location): Likewise.
5773 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
5774 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
5775 for the result of gen_load_const_gp.
5776 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
5777 param from rtx to rtx_insn *.
5778 * config/rs6000/rs6000.c (output_call): Likewise.
5779 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
5780 introducing a checked cast to rtx_sequence * and use of the insn
5782 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
5783 from rtx to rtx_insn *.
5784 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
5785 (insn_line): Likewise.
5786 (insn_file): Likewise.
5787 (insn_location): Likewise.
5788 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
5789 from rtx to rtx_insn *.
5790 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
5791 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
5792 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
5794 * reorg.c (relax_delay_slots): Strengthen locals named "after"
5795 from rtx to rtx_insn *; use methods of "pat" for type-safety.
5797 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5799 * combine.c (try_combine): Eliminate checked cast on result of
5801 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
5802 autogenerated one by strengthening the return type and params 2 and 3
5803 from rtx to rtx_insn *, and by naming the params.
5804 * gengenrtl.c (special_rtx): Add INSN to those that are
5806 * rtl.h (gen_rtx_INSN): New prototype.
5808 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5810 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
5812 (no_equiv): Likewise.
5813 (update_equiv_regs): Likewise.
5814 (setup_reg_equiv): Likewise. Strengthen locals "elem",
5815 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
5816 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
5818 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
5819 from rtx to rtx_insn_list *.
5820 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
5821 rtx_insn_list * and use methods for clarity and typesafety.
5822 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
5824 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
5825 redundant check on INSN_P (insns): this cannot hold, as "insns" is
5826 an INSN_LIST, not an insn.
5827 (reverse_equiv_p): Strengthen local "insns" from rtx to
5828 rtx_insn_list * and use methods for clarity and typesafety.
5829 (contains_reloaded_insn_p): Likewise for local "list".
5831 2014-09-09 Jiong Wang <jiong.wang@arm.com>
5833 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
5834 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
5835 (arm_builtin_vectorized_function): Likewise.
5836 * config/arm/arm_neon_builtins.def: New macro for copysignf.
5837 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
5839 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
5841 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
5842 * builtins.h (default_target_builtins): Likewise.
5843 * gcse.h (default_target_gcse): Likewise.
5844 * target-globals.h (target_globals): Add a destructor. Convert
5845 void-pointer fields back to their real type and change from
5846 GTY((atomic)) to GTY((skip)).
5847 (restore_target_globals): Remove casts accordingly.
5848 * target-globals.c (save_target_globals): Use XCNEW rather than
5849 ggc_internal_cleared_alloc to allocate non-GC structures.
5850 Use ggc_cleared_alloc to allocate the target_globals structure
5852 (target_globals::~target_globals): Define.
5854 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5856 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
5857 mnemonic instead of fldmfdd.
5858 * config/arm/arm.c (vfp_output_fstmd): Rename to...
5859 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
5860 Output vpush when address register is SP.
5861 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
5862 (vfp_output_vstmd): ... This.
5863 * config/arm/vfp.md (push_multi_vfp): Update call to
5866 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5868 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
5870 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5872 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
5873 (*sqrtdf2_vfp): Likewise.
5874 (*cmpsf_vfp): Likewise.
5875 (*cmpsf_trap_vfp): Likewise.
5876 (*cmpdf_vfp): Likewise.
5877 (*cmpdf_trap_vfp): Likewise.
5879 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5881 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
5882 (*truncdfsf2_vfp): Likewise.
5883 (*truncsisf2_vfp): Likewise.
5884 (*truncsidf2_vfp): Likewise.
5885 (fixuns_truncsfsi2): Likewise.
5886 (fixuns_truncdfsi2): Likewise.
5887 (*floatsisf2_vfp): Likewise.
5888 (*floatsidf2_vfp): Likewise.
5889 (floatunssisf2): Likewise.
5890 (floatunssidf2): Likewise.
5892 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5894 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
5895 (*muldf3_vfp): Likewise.
5896 (*mulsf3negsf_vfp): Likewise.
5897 (*muldf3negdf_vfp): Likewise.
5898 (*mulsf3addsf_vfp): Likewise.
5899 (*muldf3adddf_vfp): Likewise.
5900 (*mulsf3subsf_vfp): Likewise.
5901 (*muldf3subdf_vfp): Likewise.
5902 (*mulsf3negsfaddsf_vfp): Likewise.
5903 (*fmuldf3negdfadddf_vfp): Likewise.
5904 (*mulsf3negsfsubsf_vfp): Likewise.
5905 (*muldf3negdfsubdf_vfp): Likewise.
5907 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5909 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
5910 (*absdf2_vfp): Likewise.
5911 (*negsf2_vfp): Likewise.
5912 (*negdf2_vfp): Likewise.
5913 (*addsf3_vfp): Likewise.
5914 (*adddf3_vfp): Likewise.
5915 (*subsf3_vfp): Likewise.
5916 (*subdf3_vfp): Likewise.
5917 (*divsf3_vfp): Likewise.
5918 (*divdf3_vfp): Likewise.
5920 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5922 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
5924 (arm_print_operand): Don't convert real values to decimal
5925 representation in default case.
5926 (fp_immediate_constant): Delete.
5927 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
5928 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
5930 (*thumb2_movsi_vfp): Likewise.
5931 (*movdi_vfp): Likewise.
5932 (*movdi_vfp_cortexa8): Likewise.
5933 (*movhf_vfp_neon): Likewise.
5934 (*movhf_vfp): Likewise.
5935 (*movsf_vfp): Likewise.
5936 (*thumb2_movsf_vfp): Likewise.
5937 (*movdf_vfp): Likewise.
5938 (*thumb2_movdf_vfp): Likewise.
5939 (*movsfcc_vfp): Likewise.
5940 (*thumb2_movsfcc_vfp): Likewise.
5941 (*movdfcc_vfp): Likewise.
5942 (*thumb2_movdfcc_vfp): Likewise.
5944 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
5946 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
5950 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5953 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
5954 Use qualifier_immediate for last operand. Rename to...
5955 (aarch64_types_ternop_lane_qualifiers): ... This.
5956 (TYPES_QUADOP): Rename to...
5957 (TYPES_TERNOP_LANE): ... This.
5958 (aarch64_simd_expand_args): Return const0_rtx when encountering user
5959 error. Change return of 0 to return of NULL_RTX.
5960 (aarch64_crc32_expand_builtin): Likewise.
5961 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
5962 ICE when expanding unknown builtin.
5963 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
5964 TERNOP_LANE qualifiers.
5965 (sqdmlsl_lane): Likewise.
5966 (sqdmlal_laneq): Likewise.
5967 (sqdmlsl_laneq): Likewise.
5968 (sqdmlal2_lane): Likewise.
5969 (sqdmlsl2_lane): Likewise.
5970 (sqdmlal2_laneq): Likewise.
5971 (sqdmlsl2_laneq): Likewise.
5973 2014-09-09 Nick Clifton <nickc@redhat.com>
5975 * doc/invoke.texi (Optimization Options): Add missing @gol to the
5977 (S/390 and zSeries Options): Remove superfluous word from the
5978 description of the -mhotpatch option.
5980 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
5982 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
5983 * ira.c: #include "shrink-wrap.h"
5984 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
5985 * ifcvt.c: #include "shrink-wrap.h"
5986 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
5988 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
5990 * common/config/picochip/picochip-common.c: Remove.
5991 * config.gcc: Remove support for picochip.
5992 * config/picochip/constraints.md: Remove.
5993 * config/picochip/dfa_space.md: Remove.
5994 * config/picochip/dfa_speed.md: Remove.
5995 * config/picochip/picochip-protos.h: Remove.
5996 * config/picochip/picochip.c: Remove.
5997 * config/picochip/picochip.h: Remove.
5998 * config/picochip/picochip.md: Remove.
5999 * config/picochip/picochip.opt: Remove.
6000 * config/picochip/predicates.md: Remove.
6001 * config/picochip/t-picochip: Remove.
6002 * doc/md.texi: Don't document picochi.
6004 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6006 * basic-block.h (control_flow_insn_p): Strengthen param from
6007 const_rtx to const rtx_insn *.
6008 * cfgbuild.c (control_flow_insn_p): Likewise.
6010 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6012 * gcse.c (modify_mem_list): Strengthen this variable from
6013 vec<rtx> * to vec<rtx_insn *> *.
6014 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6016 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6017 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6018 (record_last_mem_set_info): Strengthen param "insn" from rtx to
6020 (record_last_set_info): Likewise for local "last_set_insn".
6022 2014-09-08 DJ Delorie <dj@redhat.com>
6024 * doc/invoke.texi (MSP430 Options): Add -minrt.
6026 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6028 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
6029 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6030 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6032 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6034 (adjust_splat): New function.
6035 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6036 (dump_swap_insn_table): Add case for SH_SPLAT.
6038 2014-09-08 Richard Biener <rguenther@suse.de>
6041 * tree-inline.c (copy_loops): The source loop header should
6043 (tree_function_versioning): If loops need fixup after removing
6044 unreachable blocks fix them.
6045 * omp-low.c (simd_clone_adjust): Do not add incr block to
6046 loop under construction.
6048 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
6050 * config/aarch64/aarch64-builtins.c
6051 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6053 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6055 * config/i386/cygming.h (TF_SIZE): Remove.
6056 * config/i386/darwin.h (TF_SIZE): Remove.
6057 * config/i386/dragonfly.h (TF_SIZE): Remove.
6058 * config/i386/freebsd.h (TF_SIZE): Remove.
6059 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6060 * config/i386/openbsdelf.h (TF_SIZE): Remove.
6061 * config/i386/sol2.h (TF_SIZE): Remove.
6062 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6063 * config/ia64/linux.h (TF_SIZE): Remove.
6064 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6065 * doc/tm.texi: Regenerate.
6066 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6068 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6070 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6072 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6074 * doc/tm.texi: Regenerate.
6075 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6077 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6078 * config/cris/cris.h (__make_dp): Remove.
6080 2014-09-08 Richard Biener <rguenther@suse.de>
6083 * cfgloop.c (mark_loop_for_removal): Track former header
6085 * cfgloop.h (struct loop): Add former_header member unconditionally.
6086 * loop-init.c (fix_loop_structure): Enable bogus loop removal
6087 diagnostic unconditionally.
6089 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6092 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6093 constraint for operand0 and remove write only modifier from operand3.
6095 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
6097 PR rtl-optimization/62208
6098 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
6099 rather than const0_rtx in eq/ne-xor simplifications.
6101 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
6103 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
6104 (arc_output_mi_thunk): Likewise.
6106 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
6107 arguments to silence bogus warning.
6109 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
6112 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
6114 2014-09-06 Tom de Vries <tom@codesourcery.com>
6116 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
6117 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
6118 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6120 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
6123 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
6124 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
6126 2014-09-05 Easwaran Raman <eraman@google.com>
6128 PR rtl-optimization/62146
6129 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
6130 hoisted instruction unconditional.
6132 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
6135 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6136 Do not allow any_mask_operand for operands[2].
6137 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6139 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6141 * config/arc/arc.c (arc_print_operand): Use insn method of
6142 final_sequence for type-safety.
6143 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6144 "insn" from rtx to rtx_insn *.
6145 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6146 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6147 Likewise for locals "branch", "label".
6148 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6149 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
6150 (same_cmp_following_p): Likewise for locals "i2", "i3".
6151 * config/sh/sh_optimize_sett_clrt.cc
6152 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6153 param "cbranch_insn".
6154 * function.c (convert_jumps_to_returns): Likewis for local "jump".
6155 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6156 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6158 (condjump_p): Likewise.
6159 (condjump_in_parallel_p): Likewise.
6161 (any_uncondjump_p): Likewise.
6162 (any_condjump_p): Likewise.
6163 (condjump_label): Likewise.
6164 (returnjump_p): Strengthen param "insn" from rtx to
6166 (onlyjump_p): Strengthen param "insn" from const_rtx to
6168 (jump_to_label_p): Likewise.
6169 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6170 (invert_jump): Likewise.
6171 * reorg.c (simplejump_or_return_p): Add checked cast when calling
6173 (get_jump_flags): Strengthen param "insn" from rtx to
6175 (get_branch_condition): Likewise.
6176 (condition_dominates_p): Likewise.
6177 (make_return_insns): Move declaration of local "pat" earlier, to
6178 after we've handled NONJUMP_INSN_P and non-sequences, using its
6179 methods to simplify the code and for type-safety.
6180 * rtl.h (find_constant_src): Strengthen param from const_rtx to
6182 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6183 (condjump_p): Strengthen param from const_rtx to
6185 (any_condjump_p): Likewise.
6186 (any_uncondjump_p): Likewise.
6188 (condjump_label): Likewise.
6189 (simplejump_p): Likewise.
6190 (returnjump_p): Likewise.
6191 (onlyjump_p): Likewise.
6192 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6193 (invert_jump): Likewise.
6194 (condjump_in_parallel_p): Strengthen param from const_rtx to
6196 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6197 to const rtx_insn *.
6198 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6199 to const rtx_insn *.
6200 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6202 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6204 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6205 above the conditional, and convert the check on GET_CODE to a
6206 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6207 the conditional. Simplify the conditional by using methods of
6210 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6212 * haifa-sched.c (check_clobbered_conditions): Strengthen local
6213 "link" from rtx to rtx_insn_list *, and use its methods for
6214 clarity and type-safety.
6215 (toggle_cancelled_flags): Likewise.
6216 (restore_last_backtrack_point): Likewise.
6217 (queue_to_ready): Use insn method of "link" in one place.
6218 (schedule_block): Strengthen local "link" from rtx to
6219 rtx_insn_list *, and use its methods for clarity and type-safety.
6221 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6223 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6224 param "insn" from const_rtx to const rtx_insn *.
6225 (sched_get_reverse_condition_uncached): Likewise.
6226 (sched_get_condition_with_rev): Likewise.
6227 (sched_has_condition_p): Likewise.
6228 (sched_insns_conditions_mutex_p): Likewise for both params.
6229 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6230 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6231 (setup_insn_reg_uses): Move local "list" to be more tightly
6232 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
6233 its methods for clarity and type-safety.
6234 (sched_analyze_1): Strengthen local "pending" from rtx to
6235 rtx_insn_list *, and local "pending_mem" from rtx to
6236 rtx_expr_list *. Use methods of each for clarity and type-safety.
6237 (sched_analyze_2): Likewise.
6238 (sched_analyze_insn): Likewise.
6240 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
6241 param from const_rtx to const rtx_insn *.
6242 (sched_insns_conditions_mutex_p): Likewise for both params.
6243 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
6246 * system.h (CONST_CAST_RTX_INSN): New macro.
6248 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6250 * recog.c (peep2_attempt): Strengthen return type from rtx to
6252 (peep2_update_life): Likewise for params "last", "prev", removing
6253 a checked cast made redundant by this.
6254 (peephole2_optimize): Likewise for local "last".
6256 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6258 * basic-block.h (set_block_for_insn): Eliminate this macro in
6260 * rtl.h (set_block_for_insn): New inline function, imposing the
6261 requirement that the "insn" param is an rtx_insn *.
6263 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6265 * caller-save.c (setup_save_areas): Strengthen local "insn" from
6267 * final.c (get_call_reg_set_usage): Likewise for first param,
6268 eliminating a checked cast.
6269 * regs.h (get_call_reg_set_usage): Likewise for first param.
6270 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
6271 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
6272 cast, replacing references to "x" with "call_insn" where
6274 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
6275 rtx_insn *, adding a checked cast.
6277 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6279 * output.h (final_scan_insn): Strengthen first param from rtx to
6282 * final.c (final_scan_insn): Likewise, renaming it back from
6283 "uncast_insn" to "insn", eliminating the checked cast.
6285 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
6286 "vec" with an rtx_sequence * "seq", taking a copy of
6287 "final_sequence", and using methods of "seq" for clarity, and for
6288 type-safety in the calls to final_scan_insn.
6289 * config/mips/mips.c (mips_output_conditional_branch): Use methods
6290 of "final_sequence" for clarity, and for type-safety in the call to
6292 * config/sh/sh.c (print_slot): Strengthen param from rtx to
6293 rtx_sequence * and rename from "insn" to "seq".
6295 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6297 * jump.c (delete_related_insns): Introduce a new local "table" by
6298 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
6299 get_labels method of "table" to simplify access to the labels in
6302 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6304 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
6305 f_minmaxs, f_minmaxd types.
6307 2014-09-05 Richard Biener <rguenther@suse.de>
6309 * cfgloop.c (mark_loop_for_removal): Record former header
6310 when ENABLE_CHECKING.
6311 * cfgloop.h (strut loop): Add former_header member when
6313 * loop-init.c (fix_loop_structure): Sanity check loops
6314 marked for removal if they re-appeared.
6316 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6318 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
6319 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
6321 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
6322 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
6323 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
6324 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
6325 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
6326 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
6327 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
6328 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
6329 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
6330 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
6331 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
6332 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
6333 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
6334 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
6335 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
6336 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
6337 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
6338 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
6339 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
6340 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
6341 with int{32,16,8}_t.
6343 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6345 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
6346 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
6347 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
6348 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
6349 Remove temporary __asm__ and reimplement.
6351 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6353 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
6354 handling cmge, cmgt, cmeq, cmtst.
6356 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
6357 cmlt, cmgeu, cmgtu, cmtst): Remove.
6359 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
6360 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
6361 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
6362 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
6364 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6366 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
6368 (aarch64_fold_builtin): Update pattern for cmtst.
6370 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
6373 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
6375 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
6376 Switch operands, separate out more cases, refactor.
6378 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
6380 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
6381 argument; rename old version to...
6382 (aarch64_const_vec_all_same_in_range_p): ...this.
6383 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
6385 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
6387 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6389 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6390 Remove qualifier_const_pointer, update comment.
6392 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6394 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
6396 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6398 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
6399 varargs with pointer parameter.
6400 (aarch64_simd_expand_builtin): pass pointer into previous.
6402 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6404 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
6407 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6409 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
6410 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
6411 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6412 Replace temporary asm with call to builtin.
6413 (vrbit_p8, vrbitq_p8): New functions.
6415 2014-09-05 Richard Biener <rguenther@suse.de>
6417 * cfgloop.c (mark_loop_for_removal): New function.
6418 * cfgloop.h (mark_loop_for_removal): Declare.
6419 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
6420 (merge_blocks): Likewise.
6421 (duplicate_block): Likewise.
6422 * except.c (sjlj_emit_dispatch_table): Likewise.
6423 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
6424 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
6425 (thread_through_loop_header): Likewise.
6427 2014-09-05 Richard Biener <rguenther@suse.de>
6430 * fold-const.c (try_move_mult_to_index): Remove.
6431 (fold_binary_loc): Do not call it.
6432 * tree-data-ref.c (dr_analyze_indices): Strip conversions
6433 from the base object again.
6435 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6437 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
6440 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6443 * config/arm/arm.md (setmem): New pattern.
6444 * config/arm/arm-protos.h (struct tune_params): New fields.
6445 (arm_gen_setmem): New prototype.
6446 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6447 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6448 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6449 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6450 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6451 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6452 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6453 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6454 (arm_const_inline_cost): New function.
6455 (arm_block_set_max_insns): New function.
6456 (arm_block_set_non_vect_profit_p): New function.
6457 (arm_block_set_vect_profit_p): New function.
6458 (arm_block_set_unaligned_vect): New function.
6459 (arm_block_set_aligned_vect): New function.
6460 (arm_block_set_unaligned_non_vect): New function.
6461 (arm_block_set_aligned_non_vect): New function.
6462 (arm_block_set_vect, arm_gen_setmem): New functions.
6464 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6466 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
6468 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6470 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6472 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6474 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
6476 * valtrack.h: Adjust.
6478 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6480 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6482 (emit_jump_insn_before_noloc): Likewise.
6483 (emit_call_insn_before_noloc): Likewise.
6484 (emit_label_before): Likewise.
6485 (emit_label_after): Likewise.
6486 (emit_insn_before_setloc): Likewise.
6487 (emit_jump_insn_before_setloc): Likewise.
6488 (emit_call_insn_before_setloc): Likewise.
6489 (emit_call_insn_before): Likewise.
6492 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6494 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6495 rtx_insn *, eliminating a checked cast.
6497 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6499 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6500 const_rtx to const rtx_insn *.
6501 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6504 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6506 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6507 fixup_args_size_notes.
6508 * expr.c (fixup_args_size_notes): Strengthen first two params from
6509 rtx to rtx_insn *, eliminating a checked cast.
6510 * rtl.h (fixup_args_size_notes): Strengthen first two params from
6513 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6515 * haifa-sched.c (get_ready_element): Strengthen return type from
6517 * sched-int.h (get_ready_element): Likewise.
6519 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
6522 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6523 indexed_or_indirect_operand instead of memory_operand.
6524 (floatsi<mode>2_lfiwzx_mem): Ditto.
6526 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6528 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6529 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6530 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6532 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6534 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6536 (get_last_nonnote_insn): Likewise.
6537 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6538 * resource.c (find_basic_block): Likewise.
6540 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6543 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6545 * genattr.c (main): Within the prototype of insn_latency written
6546 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6547 * genautomata.c (output_internal_maximal_insn_latency_func):
6548 Within the implementation of insn_latency written out to
6549 insn-automata.c, strengthen both params from rtx to rtx_insn *,
6550 eliminating a pair of checked casts.
6552 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6554 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6557 * rtl.h (eh_returnjump_p): Likewise.
6559 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
6561 * Makefile.in (TAGS): Handle constructs in timevar.def.
6563 2014-09-04 Guozhi Wei <carrot@google.com>
6566 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6567 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6568 it into two patterns.
6569 (move_lo_quad_internal_be_<mode>): Likewise.
6571 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6573 * doc/options.texi: Document that Var and Init are required if CPP
6575 * optc-gen.awk: Require Var and Init if CPP is given.
6576 * common.opt (Wpedantic): Use Init.
6578 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6580 * config/rs6000/rs6000.c (special_handling_values): Add
6582 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
6583 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
6584 as swappable with special handling SH_EXTRACT. Remove
6585 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
6587 (adjust_extract): New function.
6588 (handle_special_swappables): Add default to case statement; add
6589 case for SH_EXTRACT that calls adjust_extract.
6590 (dump_swap_insn_table): Handle SH_EXTRACT.
6592 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6594 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
6595 selection of 0th memory doubleword, regardless of endianness.
6597 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6599 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6601 2014-09-04 Alan Modra <amodra@gmail.com>
6604 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6607 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
6609 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6610 * targhooks.c (default_dwarf_frame_reg_mode): New function.
6611 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6612 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6613 * doc/tm.texi: Regenerate.
6614 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6615 selection logic to default_dwarf_frame_reg_mode.
6617 2014-09-03 Marek Polacek <polacek@redhat.com>
6619 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6622 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6624 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6625 the automodified register.
6627 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6629 * output.h (get_some_local_dynamic_name): Declare.
6630 * final.c (some_local_dynamic_name): New variable.
6631 (get_some_local_dynamic_name): New function.
6632 (final_end_function): Clear some_local_dynamic_name.
6633 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
6634 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6635 (print_operand): Report an error if '%&' is used inappropriately.
6636 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
6637 (get_some_local_dynamic_name_1): Delete.
6638 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
6639 (rs6000_get_some_local_dynamic_name): Delete.
6640 (rs6000_get_some_local_dynamic_name_1): Delete.
6641 (print_operand): Report an error if '%&' is used inappropriately.
6642 * config/s390/s390.c (machine_function): Remove some_ld_name.
6643 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6644 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
6645 * config/sparc/sparc.c: Include rtl-iter.h.
6646 (machine_function): Remove some_ld_name.
6647 (sparc_print_operand): Report an error if '%&' is used inappropriately.
6648 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6650 2014-09-03 Richard Henderson <rth@redhat.com>
6652 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
6653 (aarch64_popwb_pair_reg): Remove.
6654 (aarch64_set_frame_expr): Remove.
6655 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
6656 the restore ops performed by the insns generated.
6657 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
6658 insn. Perform the calls_eh_return addition later; do not attempt to
6659 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
6660 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
6661 special markup at all. Load cfun->machine->frame.hard_fp_offset
6662 into a local variable.
6663 (aarch64_frame_pointer_required): Don't check calls_alloca.
6665 2014-09-03 Richard Biener <rguenther@suse.de>
6667 * opts.c (default_options_optimization): Adjust
6668 max-combine-insns to 2 for -Og.
6670 2014-09-03 Martin Jambor <mjambor@suse.cz>
6673 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
6674 pass-trough jump functions correctly.
6676 2014-09-03 Martin Jambor <mjambor@suse.cz>
6679 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
6680 created replacements in ascending order of offsets.
6681 (known_aggs_to_agg_replacement_list): Likewise.
6683 2014-09-03 Martin Liska <mliska@suse.cz>
6685 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
6686 is set to set uninitialized value for vnresult.
6688 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6690 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
6691 for TARGET_MUST_PASS_IN_STACK.
6693 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6695 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
6696 for TARGET_ARG_PARTIAL_BYTES.
6698 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6700 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
6701 instructions for varargs implementation.
6702 (nds32_expand_epilogue): Emit stack adjustment instructions for
6703 varargs implementation.
6705 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6707 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
6708 optimization detection.
6710 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6712 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
6714 (nds32_function_arg_advance): Deal with nameless arguments.
6715 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
6716 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
6717 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
6719 2014-09-03 Richard Biener <rguenther@suse.de>
6721 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
6722 (struct bb_bitmap_sets): Remove deferred member.
6723 (BB_DEFERRED): Remove.
6724 (defer_or_phi_translate_block): Remove.
6725 (compute_antic_aux): Remove deferring of blocks, assert
6726 proper iteration order.
6727 (compute_antic): Do not set BB_DEFERRED.
6728 (eliminate): Allocate el_avail of proper size initially.
6730 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6732 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
6733 according to the value of crtl->args.pretend_args_size.
6735 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6737 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
6738 varargs information.
6740 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6742 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
6743 implementation for TARGET_SETUP_INCOMING_VARARGS.
6744 (nds32_strict_argument_naming): Refine comment.
6745 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
6746 Define for future implementation.
6748 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
6750 * config/i386/adxintrin.h (_subborrow_u32): New.
6751 (_addcarry_u32): Ditto.
6752 (_subborrow_u64): Ditto.
6753 (_addcarry_u64): Ditto.
6754 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
6756 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
6757 __builtin_ia32_sbb_u64
6759 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6761 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
6763 (nds32_function_arg_advance): Likewise.
6764 (nds32_init_cumulative_args): Likewise.
6765 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
6766 (NDS32_FIRST_GPR_REGNUM): Define.
6767 (NDS32_LAST_GPR_REGNUM): Define.
6768 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
6769 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6770 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6771 (machine_function): Use GRP-specific stuff.
6773 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6775 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
6776 (nds32_expand_epilogue): Likewise.
6777 (nds32_expand_prologue_v3push): Likewise.
6778 (nds32_expand_epilogue_v3pop): Likewise.
6780 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6782 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
6783 v3push/v3pop for variadic function.
6784 * config/nds32/nds32.md (prologue, epilogue): Likewise.
6786 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6788 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
6789 Check rtx for varargs implementation.
6790 (nds32_output_stack_pop): Likewise.
6791 * config/nds32/nds32-protos.h: Have a rtx argument for
6792 nds32_output_stack_push and nds32_output_stack_pop.
6793 * config/nds32/nds32.md: Likewise.
6795 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6797 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
6798 to check if FUNC is an interrupt service routine.
6799 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
6801 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6803 * config/nds32/nds32.h (machine_function): Add some fields for variadic
6804 arguments implementation.
6806 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6808 * config/nds32/nds32-predicates.c
6809 (nds32_valid_stack_push_pop): Rename to ...
6810 (nds32_valid_stack_push_pop_p): ... this.
6811 * config/nds32/nds32-protos.h: Likewise.
6812 * config/nds32/predicates.md: Likewise.
6814 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6816 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
6817 (nds32_emit_stack_v3push): ... this.
6818 (nds32_gen_stack_v3pop): Rename to ...
6819 (nds32_emit_stack_v3pop): ... this and consider CFA restore
6822 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6824 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
6825 (nds32_emit_stack_push_multiple): ... this.
6826 (nds32_gen_stack_pop_multiple): Rename to ...
6827 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
6830 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6833 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
6834 and add a second splitter to handle the remaining cases.
6836 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6838 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
6840 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6842 * cfgexpand.c (label_rtx_for_bb): Change type to
6843 hash_map<basic_block, rtx_code_label *> *.
6844 (expand_gimple_basic_block): Adjust.
6845 (pass_expand::execute): Likewise.
6847 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6849 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
6850 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
6851 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
6852 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
6853 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
6854 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
6855 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
6858 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6860 * alloc-pool.c: Include coretypes.h.
6861 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
6862 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
6863 hash_set instead of htab.
6864 * ggc-page.c (in_gc): New variable.
6865 (ggc_free): Do nothing if a collection is taking place.
6866 (ggc_collect): Set in_gc appropriately.
6867 * ggc.h (gt_ggc_mx(const char *)): New function.
6868 (gt_pch_nx(const char *)): Likewise.
6869 (gt_ggc_mx(int)): Likewise.
6870 (gt_pch_nx(int)): Likewise.
6871 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
6872 (hash_map::hash_entry::pch_nx): Likewise.
6873 (hash_map::hash_entry::pch_nx_helper): Likewise.
6874 (hash_map::hash_map): Adjust.
6875 (hash_map::create_ggc): New function.
6876 (gt_ggc_mx): Likewise.
6877 (gt_pch_nx): Likewise.
6878 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
6879 (default_hashset_traits::pch_nx): Likewise.
6880 (hash_set::hash_entry::ggc_mx): Likewise.
6881 (hash_set::hash_entry::pch_nx): Likewise.
6882 (hash_set::hash_entry::pch_nx_helper): Likewise.
6883 (hash_set::hash_set): Adjust.
6884 (hash_set::create_ggc): New function.
6885 (hash_set::elements): Likewise.
6886 (gt_ggc_mx): Likewise.
6887 (gt_pch_nx): Likewise.
6888 * hash-table.h (hash_table::hash_table): Adjust.
6889 (hash_table::m_ggc): New member.
6890 (hash_table::~hash_table): Adjust.
6891 (hash_table::expand): Likewise.
6892 (hash_table::empty): Likewise.
6893 (gt_ggc_mx): New function.
6894 (hashtab_entry_note_pointers): Likewise.
6895 (gt_pch_nx): Likewise.
6897 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6899 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
6900 built-in definition.
6901 (XVCVUXDDP_SCALE): Likewise.
6902 (XVCVDPSXDS_SCALE): Likewise.
6903 (XVCVDPUXDS_SCALE): Likewise.
6904 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6905 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
6906 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
6907 VSX_BUILTIN_XVCVDPUXDS_SCALE.
6908 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
6910 * config/rs6000/rs6000.c (real.h): New include.
6911 (rs6000_scale_v2df): New function.
6912 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
6913 (UNSPEC_VSX_XVCVUXDDP): Likewise.
6914 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
6915 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
6916 (vsx_xvcvsxddp_scale): New define_expand.
6917 (vsx_xvcvsxddp): New define_insn.
6918 (vsx_xvcvuxddp_scale): New define_expand.
6919 (vsx_xvcvuxddp): New define_insn.
6920 (vsx_xvcvdpsxds_scale): New define_expand.
6921 (vsx_xvcvdpsxds): New define_insn.
6922 (vsx_xvcvdpuxds_scale): New define_expand.
6923 (vsx_xvcvdpuxds): New define_insn.
6924 * doc/extend.texi (vec_ctf): Add new prototypes.
6925 (vec_cts): Likewise.
6926 (vec_ctu): Likewise.
6927 (vec_splat): Likewise.
6928 (vec_div): Likewise.
6929 (vec_mul): Likewise.
6931 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6934 * config/arm/neon.md
6935 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
6936 <v_cmp_result>): New pattern.
6937 * config/arm/iterators.md (NEON_VCVT): New int iterator.
6938 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
6939 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
6940 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
6941 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
6942 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
6944 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6947 * config/arm/iterators.md (FIXUORS): New code iterator.
6948 (VCVT): New int iterator.
6949 (su_optab): New code attribute.
6951 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
6953 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6955 * config/aarch64/predicates.md (aarch64_comparison_operation):
6956 New special predicate.
6957 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
6958 aarch64_comparison_operation instead of matching an operator.
6959 Update operand numbers.
6960 (csinc3<mode>_insn): Likewise.
6961 (*csinv3<mode>_insn): Likewise.
6962 (*csneg3<mode>_insn): Likewise.
6963 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
6964 * config/aarch64/aarch64.c (aarch64_get_condition_code):
6965 Return -1 instead of aborting on invalid condition codes.
6966 (aarch64_print_operand): Update aarch64_get_condition_code callsites
6967 to assert that the returned condition code is valid.
6968 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
6970 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
6972 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
6973 tree.def, and gimple.def
6975 2014-09-02 Jakub Jelinek <jakub@redhat.com>
6976 Balaji V. Iyer <balaji.v.iyer@intel.com>
6977 Igor Zamyatin <igor.zamyatin@intel.com>
6979 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
6980 (__cilkrts_cilk_for_64): Likewise.
6981 * cilk-common.c (declare_cilk_for_builtin): New function.
6982 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
6983 __cilkrts_cilk_for_64 bultins.
6984 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
6986 (cilk_for_32_fndecl): New define.
6987 (cilk_for_64_fndecl): Likewise.
6988 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
6989 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
6990 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
6991 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
6992 GF_OMP_FOR_COMBINED_INTO.
6993 * gimplify.c (gimplify_scan_omp_clauses): Added
6994 OMP_CLAUSE__CILK_FOR_COUNT_ case.
6995 (gimplify_adjust_omp_clauses): Ditto.
6996 (gimplify_omp_for): Added CILK_FOR case.
6997 (gimplify_expr): Ditto.
6998 * omp-low.c: Include cilk.h.
6999 (extract_omp_for_data): Set appropriate kind for
7000 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7001 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7002 (create_omp_child_function_name): Added second argument to handle
7004 (cilk_for_check_loop_diff_type): New function.
7005 (expand_cilk_for_call): Likewise.
7006 (expand_cilk_for): Likewise.
7007 (create_omp_child_function): Set cilk_for_count; handle the cases when
7008 it is true; call create_omp_child_function_name with second argument.
7009 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7010 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7011 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7012 * tree-nested.c (convert_nonlocal_omp_clauses): Added
7013 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7014 (convert_local_omp_clauses): Ditto.
7015 * tree-pretty-print.c (dump_omp_clause): Added
7016 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7017 (dump_generic_node): Added CILK_FOR case.
7018 * tree.c (omp_clause_num_ops): New element
7019 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7020 (omp_clause_code_name): New element _Cilk_for_count_.
7021 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7022 * tree.def: Add tree code for CILK_FOR.
7024 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7026 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7027 (ppc403-compare): Add "exts with dot" case.
7028 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7029 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7030 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7031 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7032 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7033 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7034 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7035 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7036 cell-cmp-microcoded): Similarly.
7037 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7038 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7039 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7040 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7041 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7042 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7043 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7044 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7045 (power6-compare): Add "exts with dot" case.
7046 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7047 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7048 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7050 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7051 if avoiding Cell microcode.
7052 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7053 (is_cracked_insn): Ditto.
7054 (insn_must_be_first_in_group): Ditto.
7055 * config/rs6000/rs6000.md (dot): Adjust comment.
7056 (cell_micro): Handle exts+dot.
7057 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7058 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7059 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7060 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7061 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7062 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7063 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7065 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7067 * config/rs6000/rs6000.md (QHSI): Delete.
7068 (EXTQI, EXTHI, EXTSI): New mode iterators.
7069 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7070 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7071 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7072 9 anonymous instructions, and 8 splitters): Delete.
7073 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7074 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7075 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7076 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7077 *zero_extendsi<mode>2_dot2): New.
7079 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7081 * config/rs6000/rs6000.md (any_extend): New code iterator.
7082 (u, su): New code attributes.
7083 (dmode, DMODE): New mode attributes.
7084 (<su>mul<mode>3_highpart): New.
7085 (*<su>mul<mode>3_highpart): New.
7086 (<su>mulsi3_highpart_le): New.
7087 (<su>muldi3_highpart_le): New.
7088 (<su>mulsi3_highpart_64): New.
7089 (<u>mul<mode><dmode>3): New.
7090 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7092 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7095 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7097 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
7098 *mulsi3_internal2, and two splitters): Delete.
7099 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
7101 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
7103 2014-09-02 Richard Biener <rguenther@suse.de>
7105 PR tree-optimization/62695
7106 * tree-ssa-structalias.c (find_func_clobbers): Add missing
7109 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
7112 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
7114 2014-09-01 Andi Kleen <ak@linux.intel.com>
7116 * file-find.c (add_prefix_begin): Add.
7117 (do_add_prefix): Rename from add_prefix with first argument.
7118 (add_prefix): Add new wrapper.
7119 * file-find.h (add_prefix_begin): Add.
7120 * gcc-ar.c (main): Support -B option.
7122 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7124 * genemit.c: Include dumpfile.h.
7125 (gen_split): Print name of splitter function to dump file.
7127 2014-09-01 Richard Biener <rguenther@suse.de>
7129 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
7130 Use stack auto_vecs for constraint expressions.
7131 (find_func_aliases_for_call): Likewise.
7132 (find_func_aliases): Likewise.
7133 (find_func_clobbers): Likewise.
7135 2014-09-01 Richard Biener <rguenther@suse.de>
7137 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7138 operands vector in most cases. Remove redundant code.
7140 2014-09-01 Olivier Hainque <hainque@adacore.com>
7142 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7143 $WIND_BASE instead of designating a harcoded arbitrary home dir.
7144 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7146 2014-09-01 Richard Biener <rguenther@suse.de>
7148 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7149 copy_reference_ops_from_call, vn_nary_op_compute_hash,
7150 vn_reference_compute_hash, vn_reference_insert): Remove.
7151 (vn_reference_lookup_call): New function.
7152 * tree-ssa-sccvn.c (vn_reference_compute_hash,
7153 copy_reference_ops_from_ref, copy_reference_ops_from_call,
7154 vn_reference_insert, vn_nary_op_compute_hash): Make static.
7155 (create_reference_ops_from_call): Remove.
7156 (vn_reference_lookup_3): Properly update shared_lookup_references.
7157 (vn_reference_lookup_pieces): Assert that we updated
7158 shared_lookup_references properly.
7159 (vn_reference_lookup): Likewise.
7160 (vn_reference_lookup_call): New function.
7161 (visit_reference_op_call): Use it. Avoid re-building the
7163 (visit_reference_op_load): Remove redundant lookup.
7164 (visit_reference_op_store): Perform special tail-merging work
7165 only when possibly doing tail-merging.
7166 (visit_use): Likewise.
7167 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7169 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7172 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7173 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7174 (find_inc): Revert 2014-08-13 change.
7176 2014-09-01 Marek Polacek <polacek@redhat.com>
7179 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7180 Change the type of V to unsigned HOST_WIDE_INT.
7182 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
7184 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7185 the size of byte markers.
7186 (do_shift_rotate): Fix confusion between host, target and marker byte
7188 (verify_symbolic_number_p): Likewise.
7189 (find_bswap_or_nop_1): Likewise.
7190 (find_bswap_or_nop): Likewise.
7192 2014-09-01 Olivier Hainque <hainque@adacore.com>
7194 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7195 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7197 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7199 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7200 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7201 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7203 2014-09-01 Yury Gribov <y.gribov@samsung.com>
7207 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7208 (build_check_stmt): Likewise.
7209 (instrument_strlen_call): Likewise.
7210 (asan_expand_check_ifn): Likewise and fix types.
7211 (maybe_cast_to_ptrmode): New function.
7213 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7215 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7217 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
7219 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7221 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
7223 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7224 prefix to function labels when generating fast indirect calls.
7226 2014-08-30 David Malcolm <dmalcolm@redhat.com>
7230 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7231 param back from rtx_insn * to rtx. Rename param from "label" to
7232 "label_or_return", reintroducing "label" as an rtx_insn * after
7233 we've ensured it's not a RETURN.
7234 (first_active_target_insn): Likewise for return type and param;
7235 add a checked cast to rtx_insn * once we've ensured "insn" is not
7237 (steal_delay_list_from_target): Convert param "pnew_thread" back
7238 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
7240 (own_thread_p): Convert param "thread" back from an rtx_insn * to
7241 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
7242 cast once we've established we're not dealing with a RETURN,
7243 renaming subsequent uses of "thread" to "thread_insn".
7244 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
7246 (follow_jumps): Convert return type and param "label" from
7247 rtx_insn * back to rtx. Move initialization of "value" to after
7248 the handling for ANY_RETURN_P, adding a checked cast there to
7249 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
7250 rename to "this_label_or_return", reintroducing "this_label" as
7251 an rtx_insn * once we've handled the case where it could be an
7253 (fill_slots_from_thread): Rename param "thread" to
7254 "thread_or_return", converting from an rtx_insn * back to an rtx.
7255 Reintroduce name "thread" as an rtx_insn * local with a checked
7256 cast once we've handled the case of it being an ANY_RETURN_P.
7257 Convert local "new_thread" from an rtx_insn * back to an rtx.
7258 Add a checked cast when assigning to "trial" from "new_thread".
7259 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
7260 checked cast to rtx_insn * from "new_thread" when invoking
7262 (fill_eager_delay_slots): Convert locals "target_label",
7263 "insn_at_target" from rtx_insn * back to rtx.
7264 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
7265 (relax_delay_slots): Convert locals "trial", "target_label" from
7266 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
7267 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
7268 invoking update_block.
7269 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
7270 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
7272 * resource.h (mark_target_live_regs): Undo erroneous conversion
7273 of second param of r214693, converting it back from rtx_insn * to
7274 rtx, since it could be a RETURN.
7276 * resource.c (find_dead_or_set_registers): Similarly, convert
7277 param "jump_target" back from an rtx_insn ** to an rtx *, as we
7278 could be writing back a RETURN. Rename local rtx_insn * "next" to
7279 "next_insn", and introduce "lab_or_return" as a local rtx,
7280 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
7281 (mark_target_live_regs): Undo erroneous conversion
7282 of second param of r214693, converting it back from rtx_insn * to
7283 rtx, since it could be a RETURN. Rename it from "target" to
7284 "target_maybe_return", reintroducing the name "target" as a local
7285 rtx_insn * with a checked cast, after we've handled the case of
7288 2014-08-29 DJ Delorie <dj@redhat.com>
7290 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
7291 pointer size up to a power of two.
7292 * defaults.h (DWARF2_ADDR_SIZE): Round up.
7293 (POINTER_SIZE_UNITS): New, rounded up value.
7294 * dwarf2asm.c (size_of_encoded_value): Use it.
7295 (dw2_output_indirect_constant_1): Likewise.
7296 * expmed.c (init_expmed_one_conv): We now know the sizes of
7298 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
7299 * optabs.c (expand_float): Use precision, not size.
7300 (expand_fix): Likewise.
7301 * simplify-rtx (simplify_unary_operation_1): Likewise.
7302 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7303 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
7304 (default_assemble_integer) Likewise.
7305 (dump_tm_clone_pairs): Likewise.
7306 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
7307 * var-tracking.c (adjust_mems): Allow partial-int modes also.
7308 (prepare_call_arguments): Likewise.
7309 * stor-layout.c (finalize_type_size): Preserve precision.
7310 (layout_type): Use precision, not size.
7312 * expr.c (convert_move): If the target has an explicit converter,
7315 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7317 * gdbinit.in: Skip various inline functions in rtl.h when
7320 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
7323 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
7325 2014-08-29 Richard Biener <rguenther@suse.de>
7327 PR tree-optimization/62291
7328 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
7329 exactly the vector size needed and use quick_push.
7330 (phi_translate_1): Adjust comment.
7331 (valid_in_sets): Remove block argument and remove pointless
7333 (dependent_clean): Adjust for removal of block argument.
7335 (compute_antic_aux): Likewise.
7336 (compute_partial_antic_aux): Likewise.
7338 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7339 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7340 Anna Tikhonova <anna.tikhonova@intel.com>
7341 Ilya Tocar <ilya.tocar@intel.com>
7342 Andrey Turetskiy <andrey.turetskiy@intel.com>
7343 Ilya Verbin <ilya.verbin@intel.com>
7344 Kirill Yukhin <kirill.yukhin@intel.com>
7345 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7347 * config/i386/sse.md
7348 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
7349 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
7350 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
7351 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
7353 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7354 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7355 Anna Tikhonova <anna.tikhonova@intel.com>
7356 Ilya Tocar <ilya.tocar@intel.com>
7357 Andrey Turetskiy <andrey.turetskiy@intel.com>
7358 Ilya Verbin <ilya.verbin@intel.com>
7359 Kirill Yukhin <kirill.yukhin@intel.com>
7360 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7362 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
7363 * config/i386/sse.md
7364 (define_mode_iterator VI4_128_8_256): New.
7365 (define_mode_iterator VI2_128_4_256): Ditto.
7366 (define_mode_iterator PMOV_DST_MODE): Rename into
7367 (define_mode_iterator PMOV_DST_MODE_1): this.
7368 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
7369 Use PMOV_DST_MODE_1 mode iterator.
7370 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7372 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7374 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
7375 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
7376 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
7377 (define_mode_iterator PMOV_DST_MODE_2): New.
7378 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
7379 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
7380 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
7382 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
7383 (define_mode_attr pmov_dst_3): Ditto.
7384 (define_mode_attr pmov_dst_zeroed_3): Ditto.
7385 (define_mode_attr pmov_suff_3): Ditto.
7386 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
7387 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
7388 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
7389 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
7390 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
7391 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
7392 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
7393 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
7394 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
7395 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
7396 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
7397 (define_mode_attr pmov_dst_4): Ditto.
7398 (define_mode_attr pmov_dst_zeroed_4): Ditto.
7399 (define_mode_attr pmov_suff_4): Ditto.
7400 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
7401 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
7402 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
7403 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
7404 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
7405 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
7406 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
7407 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
7408 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
7409 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
7410 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
7412 2014-08-29 Richard Biener <rguenther@suse.de>
7414 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
7415 NON_LVALUE_EXPR in gimple.
7417 2014-08-29 Richard Biener <rguenther@suse.de>
7420 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
7421 from previous refactoring.
7422 (gimple_fold_builtin_strncpy): Likewise.
7424 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7427 * function.c (assign_parm_setup_reg): Remove erroneous checked
7428 cast to rtx_insn * on result of gen_extend_insn in favor of
7429 introducing a new local rtx "pat".
7431 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7433 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
7435 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
7437 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7439 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
7440 (next_insn): Likewise.
7441 * emit-rtl.c (next_insn): Likewise.
7442 (previous_insn): Likewise.
7443 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
7444 "insn" and "next" from rtx to rtx_insn *.
7445 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
7446 "insn", "insn1", "vliw_start", "prologue_end_note",
7447 "last_insn_in_packet".
7449 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7451 * shrink-wrap.h (active_insn_between): Strengthen both params from
7453 * function.c (active_insn_between): Likewise.
7455 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7457 * genattr.c (main): When writing out insn-attr.h, strengthen param
7458 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
7459 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
7460 writing out the definition of dfa_clear_single_insn_cache to the
7461 generated insn-automata.c
7463 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7465 * resource.h (clear_hashed_info_for_insn): Strengthen param from
7467 (incr_ticks_for_insn): Likewise.
7468 (init_resource_info): Likewise.
7470 * resource.c (init_resource_info): Likewise.
7471 (clear_hashed_info_for_insn): Likewise.
7472 (incr_ticks_for_insn): Likewise.
7474 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
7476 (steal_delay_list_from_target): Use methods of "seq".
7477 (try_merge_delay_insns): Use methods of "merged_insns".
7478 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
7479 (reorg_redirect_jump): Likewise for param "jump".
7481 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7483 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7485 * config/s390/s390.c (s390_split_branches): Eliminate top-level
7486 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7488 (s390_mainpool_finish): In three places, split out a local rtx
7489 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7490 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
7491 and split another local rtx "insn" out into rtx "pat" and
7493 * config/sh/sh.c (output_branchy_insn): Rather than working
7494 directly on operands[9], introduce local rtx_code_label *
7495 variables named "lab" in two places, working on them, and then
7496 assigning them to operands[9], so that the intervening operations
7497 are known by the type system to be on insns.
7499 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7501 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7504 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7505 in invocation of INSN_HAS_LOCATION.
7507 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7509 * config/rs6000/altivec.h (vec_xl): New #define.
7510 (vec_xst): Likewise.
7511 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7512 (XXSPLTD_V2DI): Likewise.
7513 (DIV_V2DI): Likewise.
7514 (UDIV_V2DI): Likewise.
7515 (MUL_V2DI): Likewise.
7516 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7517 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7518 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7519 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7520 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7521 (UNSPEC_VSX_DIVSD): Likewise.
7522 (UNSPEC_VSX_DIVUD): Likewise.
7523 (UNSPEC_VSX_MULSD): Likewise.
7524 (vsx_mul_v2di): New insn-and-split.
7525 (vsx_div_v2di): Likewise.
7526 (vsx_udiv_v2di): Likewise.
7527 (vsx_xxspltd_<mode>): New insn.
7529 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7531 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7533 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7534 (NEXT_INSN): Likewise.
7535 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7536 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7538 (no_labels_between_p): Likewise for both params.
7540 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7541 cast when using NEXT_INSN on operands[2].
7542 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7543 "insn" from rtx to rtx_insn *, adding a checked cast.
7544 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7546 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7548 (arc_text_label): Likewise for param "insn".
7549 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7551 (arc_ccfsm_record_condition): Likewise for param "jump".
7552 (arc_text_label): Likewise for local "label".
7553 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7554 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7555 a method for typesafety. Add a checked cast.
7556 * config/arc/constraints.md (Clb): Add a checked cast when getting
7557 the CODE_LABEL from a LABEL_REF.
7558 * config/arm/arm.c (require_pic_register): Strengthen locals
7559 "seq", "insn" from rtx to rtx_insn *.
7560 (create_fix_barrier): Likewise for locals "selected", "next".
7561 (thumb1_reorg): Likewise for locals "prev", "insn".
7562 (arm_expand_prologue): Likewise for local "last".
7563 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7565 (thumb2_output_casesi): Likewise for operands[2].
7566 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7567 strengthen local "insn" from rtx to rtx_insn *.
7568 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7569 type and param "insn".
7570 (find_prev_insn_start): Likewise.
7571 (hwloop_optimize): Likewise for locals "insn", "last_insn",
7573 (gen_one_bundle): Likewise for loal "t".
7574 (find_load): Likewise for param "insn".
7575 (workaround_speculation): Likewise for locals "insn", "next",
7576 "target", "next_tgt".
7577 * config/c6x/c6x.c (assign_reservations): Likewise for both params
7578 and for locals "insn", "within", "last".
7579 (count_unit_reqs): Likewise for params "head", "tail" and local
7581 (try_rename_operands): Likewise for params "head", "tail".
7582 (reshuffle_units): Likewise for locals "head", "tail", "insn".
7583 (struct c6x_sched_context): Likewise for fields
7584 "last_scheduled_insn", "last_scheduled_iter0".
7585 (init_sched_state): Replace NULL_RTX with NULL.
7586 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
7588 (undo_split_delayed_nonbranch): Likewise for param and for local
7590 (conditionalize_after_sched): Likewise for local "insn".
7591 (bb_earliest_end_cycle): Likewise.
7592 (filter_insns_above): Likewise for locals "insn", "next".
7593 (hwloop_optimize): Remove redundant checked cast.
7594 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
7595 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
7597 (cris_simple_epilogue): Likewise.
7598 (cris_expand_prologue): Likewise.
7599 (cris_expand_epilogue): Likewise.
7600 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7601 local "insn" from rtx to rtx_insn *.
7602 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7603 (struct frv_packet_group): Likewise for the elements within array
7604 fields "insns", "sorted", and for field "nop".
7605 (frv_packet): Likewise for the elements within array field
7607 (frv_add_insn_to_packet): Likewise for param "insn".
7608 (frv_insert_nop_in_packet): Likewise for param "insn" and local
7610 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7611 (frv_sort_insn_group_1): Likewise for local "insn".
7612 (frv_optimize_membar_local): Likewise.
7613 (frv_align_label): Likewise for locals "x", "last", "barrier",
7615 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7617 (ia64_sched_init): Likewise for local "insn".
7618 (scheduled_good_insn): Likewise for param "last".
7619 (struct _ia64_sched_context): Likewise for field
7620 "last_scheduled_insn".
7621 (ia64_init_sched_context): Replace NULL_RTX with NULL.
7622 (struct bundle_state): Likewise for field "insn".
7623 (issue_nops_and_insn): Likewise for param "insn".
7624 (get_next_important_insn): Likewise for return type and both
7626 (ia64_add_bundle_selector_before): Likewise for param "insn".
7627 (bundling): Likewise for params "prev_head_insn", "tail" and
7628 locals "insn", "next_insn", "b". Eliminate top-level local rtx
7629 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
7630 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
7631 Strengthen final param from rtx to rtx_insn *.
7632 (iq2000_move_1word): Likewise for second param.
7633 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
7634 param "cur_insn" and local "next_insn".
7635 (iq2000_move_1word): Likewise for param "insn".
7636 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
7637 casts when using NEXT_INSN on operands[1].
7638 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
7639 "insn" from rtx to rtx_insn *.
7640 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
7641 "x", introducing local rtx_insn * "insn" for when working with the
7642 CODE_LABEL of the LABEL_REF.
7643 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
7645 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
7647 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
7649 (conditionalize_block): Likewise for return type and param.
7650 (mcore_is_dead): Likewise for param "first" and local "insn".
7651 (emit_new_cond_insn): Likewise for return type.
7652 (conditionalize_block): Likewise for return type, param, and
7653 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
7655 (conditionalize_optimization): Likewise for local "insn".
7656 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
7658 * config/microblaze/microblaze.md: Add checked casts when using
7660 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
7661 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
7662 and rtx_insn * "insn".
7663 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
7664 checked cast when using NEXT_INSN on operands[2].
7665 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
7666 local "insn" from rtx to rtx_insn *.
7667 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
7669 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
7670 Add a checked cast when using NEXT_INSN on operands[1].
7671 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
7673 (pa_output_cbranch): Likewise for final param.
7674 (pa_output_lbranch): Likewise for second param.
7675 (pa_output_bb): Likewise for third param.
7676 (pa_output_bvb): Likewise.
7677 (pa_output_dbra): Likewise for second param.
7678 (pa_output_movb): Likewise.
7679 (pa_output_parallel_movb): Likewise.
7680 (pa_output_parallel_addb): Likewise.
7681 (pa_output_millicode_call): Likewise for first param.
7682 (pa_output_mul_insn): Likewise for second param.
7683 (pa_output_div_insn): Likewise for third param.
7684 (pa_output_mod_insn): Likewise for second param.
7685 (pa_jump_in_call_delay): Likewise for param.
7686 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
7687 (pa_output_div_insn): Likewise.
7688 (pa_output_mod_insn): Likewise.
7689 (pa_output_cbranch): Likewise.
7690 (pa_output_lbranch): Likewise.
7691 (pa_output_bb): Likewise.
7692 (pa_output_bvb): Likewise.
7693 (pa_output_dbra): Likewise.
7694 (pa_output_movb): Likewise.
7695 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
7696 to simplify and for typesafety.
7697 (pa_output_call): Use method of rtx_sequence *.
7698 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
7699 (pa_jump_in_call_delay): Likewise.
7700 (pa_output_parallel_movb): Likewise.
7701 (pa_output_parallel_addb): Likewise.
7702 (pa_following_call): Likewise.
7703 (pa_combine_instructions): Likewise for locals "anchor",
7705 (pa_can_combine_p): Likewise for params "anchor", "floater" and
7706 locals "start", "end".
7707 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
7708 param "insn" and local "local_insn".
7709 (picochip_final_prescan_insn): Likewise for local "local_insn".
7710 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
7712 (uses_TOC): Likewise.
7713 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
7714 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
7715 splitting out to more tightly-scoped locals, 3 as rtx and one as
7717 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
7719 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
7721 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
7723 (fixup_addr_diff_vecs): Likewise.
7724 (reg_unused_after): Likewise for param 2.
7725 (sh_can_redirect_branch): Likewise for both params.
7726 (check_use_sfunc_addr): Likewise for param 1.
7727 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
7728 (find_barrier): Likewise for local "last_got".
7729 (gen_block_redirect): Likewise for return type, param "jump" and
7730 locals "prev", "scan", "next", "insn".
7731 (struct far_branch): Likewise for fields "near_label",
7732 "insert_place", "far_label".
7733 (gen_far_branch): Likewise for local "jump".
7734 (fixup_addr_diff_vecs): Likewise for param "first" and locals
7736 (barrier_align): Likewise for param and for locals "prev", "x".
7737 Introduce local rtx_sequence * "prev_seq" and use insn method for
7738 typesafety and clarity.
7739 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
7740 (get_dest_uid): Likewise for local "dest".
7741 (split_branches): Likewise for locals "next", "beyond", "label",
7742 "block", "far_label". Add checked casts when assigning to
7743 bp->far_label and "far_label".
7744 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
7745 (sequence_insn_p): Likewise.
7746 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
7747 more loop-scoped rtx "insn" when walking LABEL_REFS.
7748 (sh_can_redirect_branch): Strengthen both params from rtx to
7750 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
7751 new local rtx_sequence * "seq" via a dyn_cast, and use a method
7752 for clarity and typesafety.
7753 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
7754 "insn" from rtx to rtx_insn *.
7755 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
7756 when using NEXT_INSN on the CODE_LABEL in operands[2].
7757 (define_insn "casesi_worker_2"): Likewise.
7758 (define_insn "casesi_shift_media"): Likewise.
7759 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
7761 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
7762 Strengthen field "insn" from rtx to rtx_insn *.
7763 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
7764 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
7765 param "start_insn" and local "start_insn".
7766 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
7768 (find_set_of_reg_bb): Likewise for param "insn".
7769 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
7770 (trace_reg_uses): Likewise for param "start_insn".
7771 (sh_treg_combine::cbranch_trace): Likewise for field
7773 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
7775 (sh_treg_combine::record_set_of_reg): Likewise for param
7776 "start_insn" and local "i".
7777 (sh_treg_combine::can_remove_cstore): Likewise for local
7779 (sh_treg_combine::try_optimize_cbranch): Likewise for param
7781 (sh_treg_combine::execute): Likewise for local "i".
7782 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
7784 (sparc_check_64): Likewise for second param.
7785 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
7786 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
7787 dyn_cast, using its insn method for typesafety and clarity.
7788 (empty_delay_slot): Strengthen param "insn" from rtx to
7790 (set_extends): Likewise.
7791 (sparc_check_64): Likewise.
7792 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
7793 for locals "seq", "last_insn".
7794 (combine_bnp): Likewise for param "insn".
7795 (xstormy16_reorg): Likewise for local "insn".
7796 * config/v850/v850.c (substitute_ep_register): Likewise for params
7797 "first_insn", "last_insn" and local "insn".
7798 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
7799 elements of "regs" array, and local "insn".
7800 * except.c (emit_note_eh_region_end): Likewise for param "insn".
7801 * final.c (final_sequence): Strengthen this global from rtx to
7803 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
7805 (final_scan_insn): Update assignment to "final_sequence" to be
7806 from "seq", the cast version of "body", for type-safety.
7807 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
7808 "insns" from rtx to rtx_insn *.
7809 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
7810 * genattr.c (main): When writing out generated insn-attr.h,
7811 strengthen params 1 and 3 of eligible_for_delay,
7812 eligible_for_annul_true, eligible_for_annul_false from rtx to
7814 * genattrtab.c (write_eligible_delay): Likewise when writing out
7815 generated insn-attrtab.c; also local "insn" the generated
7817 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
7819 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
7820 "start_label" from rtx to rtx_insn *.
7821 * ira.c (decrease_live_ranges_number): Likewise for local "p".
7822 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
7823 "insns" and local "insn".
7824 (validate_equiv_mem): Likewise for param "start" and local "insn".
7825 (memref_used_between_p): Likewise for params "start", "end" and
7827 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
7829 * loop-doloop.c (doloop_optimize): Within region guarded by
7830 INSN_P (doloop_pat), introduce a new local rtx_insn *
7831 "doloop_insn" via a checked cast, and use it for typesafety,
7832 eventually writing the value back into doloop_pat.
7833 * output.h (final_sequence): Strengthen this global from rtx to
7835 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
7836 reintroducing "insn" as an rtx_insn * via a checked cast.
7837 Strengthen param "attempt" and local "new_insn"from rtx to
7839 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
7841 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
7842 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
7843 "p" in favor of more tightly-scoped replacements, sometimes rtx
7844 and sometimes rtx_insn *, as appropriate.
7845 (delete_output_reload): Eliminate top-level rtx "i1", splitting
7846 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
7847 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
7848 local "trial" from rtx to rtx_insn *.
7849 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
7850 rtx to rtx_insn *. Strenghten local "pat" from rtx to
7851 rtx_sequence * and use methods for clarity and typesafety.
7852 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
7853 rtx to rtx_insn *. Strenghten local "li" from rtx to
7854 rtx_insn_list * and use its methods for clarity and typesafety.
7855 (steal_delay_list_from_target): Strengthen param "insn" from rtx
7857 (steal_delay_list_from_fallthrough): Likewise.
7858 (try_merge_delay_insns): Likewise for param "thread" and locals
7859 "trial", "next_trial", "delay_insn".
7860 (redundant_insn): Likewise for param "target" and local "trial".
7861 (own_thread_p): Likewise for param "thread" and locals
7862 "active_insn", "insn".
7863 (get_label_before): Likewise for param "insn".
7864 (fill_simple_delay_slots): Likewise for local "new_label"; use
7865 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
7866 (label_before_next_insn): Strengthen return type and local "insn"
7867 from rtx to rtx_insn *.
7868 (relax_delay_slots): Likewise for locals "other", "tmp".
7869 (make_return_insns): Likewise for param "first" and locals "insn",
7870 "jump_insn", "prev". Move declaration of "pat" to its assignment
7871 and strengthen from rtx to rtx_sequence *. Use its methods for
7872 clarity and typesafety.
7873 * rtlanal.c (no_labels_between_p): Strengthen params from
7874 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
7876 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
7877 from const_rtx to const rtx_insn *.
7878 (reg_set_between_p): Rename param "from_insn" to
7879 "uncast_from_insn", and reintroduce "from_insn" as a
7880 const rtx_insn * via a checked cast.
7881 (modified_between_p): Likewise for param "start" as "uncast_start".
7882 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
7883 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
7884 "tmp", head" from rtx to rtx_insn *.
7885 (recompute_rev_top_order): Likewise for local "insn".
7886 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
7887 * store-motion.c (build_store_vectors): Likewise for local "insn".
7888 Strengthen local "st" from rtx to rtx_insn_list * and use methods
7889 for clarity and typesafety.
7890 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
7892 (computation_cost): Likewise for local "seq".
7893 (get_address_cost): Likewise.
7895 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7897 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
7899 (label_is_jump_target_p): Likewise for second param.
7901 * rtlanal.c (tablejump_p): Likewise for param "insn".
7902 (label_is_jump_target_p): Likewise for param "jump_insn".
7904 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7906 * rtl.h (find_first_parameter_load): Strengthen return type and
7907 both params from rtx to rtx_insn *.
7908 * rtlanal.c (find_first_parameter_load): Strengthen return type,
7909 both params and locals "before", "first_set" from rtx to
7910 rtx_insn *. Remove now-redundant cast.
7911 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
7913 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7915 * rtl.h (find_last_value): Delete.
7916 * rtlanal.c (find_last_value): Delete.
7918 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7920 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
7921 from rtx to rtx_insn *.
7922 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
7923 rtx "note" with new local rtx_insn * "new_head" when calculating
7924 head insn of new basic block.
7925 * combine.c (combine_split_insns): Strengthen return type and local
7926 "ret" from rtx to rtx_insn *.
7927 (likely_spilled_retval_p): Likewise for locals "use" and "p".
7928 (try_combine): Eliminate local "m_split", splitting into new
7929 locals "m_split_insn" and "m_split_pat".
7930 (find_split_point): Strengthen local "seq" from rtx into
7932 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
7933 locals "label", "branch".
7934 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
7936 (define_expand "umulsi3_highpart"): Likewise for local "insn".
7937 * dse.c (note_add_store_info): Likewise for fields "first",
7939 (note_add_store): Likewise for local "insn".
7940 (emit_inc_dec_insn_before): Likewise for locals "insn",
7942 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
7943 (replace_read): Likewise for locals "insns", "this_insn".
7944 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
7945 (notice_eh_throw): Likewise for param "insn".
7946 (before_next_cfi_note): Likewise for return type, param, and local
7948 (connect_traces): Likewise for local "note".
7949 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
7950 (verify_rtl_sharing): Likewise.
7951 (unshare_all_rtl_in_chain): Likewise for param "insn".
7952 (get_first_nonnote_insn): Likewise for local "insn".
7953 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
7954 "seq" and use its methods to clarify things.
7955 (next_insn): Strengthen return type from rtx to rtx_insn *.
7956 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
7957 local rtx_insn * using a checked cast, dropping a checked cast
7958 made redundant by this change. Use a cast to and method of
7959 rtx_sequence to clarify the code.
7960 (previous_insn): Rename param "insn" to "uncast_insn" and
7961 reintroduce "insn" as a local rtx_insn * using a checked cast,
7962 dropping a checked cast made redundant by this change. Use a cast
7963 to and method of rtx_sequence to clarify the code.
7964 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
7965 reintroduce "insn" as a local rtx_insn * using a checked cast,
7966 dropping a checked cast made redundant by this change.
7967 (next_nonnote_insn_bb): Likewise.
7968 (prev_nonnote_insn): Likewise.
7969 (prev_nonnote_insn_bb): Likewise.
7970 (next_nondebug_insn): Likewise.
7971 (prev_nondebug_insn): Likewise.
7972 (next_nonnote_nondebug_insn): Likewise.
7973 (prev_nonnote_nondebug_insn): Likewise.
7974 (next_real_insn): Likewise.
7975 (prev_real_insn): Likewise.
7976 (next_active_insn): Likewise.
7977 (prev_active_insn): Likewise.
7978 (next_cc0_user): Likewise. Use rtx_sequence and a method for
7980 (prev_cc0_setter): Likewise.
7981 (try_split): Rename param "trial" to "uncast_trial" and
7982 reintroduce "insn" as a local rtx_insn * using a checked cast,
7983 dropping checked casts made redundant by this change.
7984 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
7986 (remove_insn): Rename param "insn" to "uncast_insn" and
7987 reintroduce "insn" as a local rtx_insn * using a checked cast.
7988 (emit_pattern_after_setloc): Likewise for param "after", as
7990 (emit_pattern_after): Likewise. Strengthen local "prev" from
7992 (emit_pattern_before_setloc): Rename param "before" to
7993 "uncast_before" and reintroduce "before" as a local rtx_insn *
7994 using a checked cast. Strengthen locals "first", "last" from
7996 (emit_pattern_before): Likewise rename/cast param "before" to
7997 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
7998 * except.c (copy_reg_eh_region_note_forward): Strengthen param
7999 "first" and local "insn" from rtx to rtx_insn *.
8000 (copy_reg_eh_region_note_backward): Likewise for param "last"
8002 * expr.c (fixup_args_size_notes): Rename param "last" to
8003 "uncast_last" and reintroduce "last" as a local rtx_insn *
8004 using a checked cast. Strengthen local "insn" from rtx to
8006 * function.c (set_insn_locations): Strengthen param "insn" from
8008 (record_insns): Likewise for param "insns" and local "tmp".
8009 (active_insn_between): Rename param "tail" to
8010 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8011 using a checked cast.
8012 (thread_prologue_and_epilogue_insns): Split out top-level local
8013 rtx "seq" into three different rtx_insn * locals. Strengthen
8014 local "prologue_seq" from rtx to rtx_insn *.
8015 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8016 from rtx to rtx_insn *.
8017 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8018 (priority): Likewise for locals "prev_first", "twin".
8019 (setup_insn_max_reg_pressure): Likewise for param "after".
8020 (sched_setup_bb_reg_pressure_info): Likewise.
8021 (no_real_insns_p): Strengthen params from const_rtx to
8023 (schedule_block): Strengthen local "next_tail" from rtx to
8025 * ifcvt.c (find_active_insn_before): Strengthen return type and
8026 param "insn" from rtx to rtx_insn *.
8027 (find_active_insn_after): Likewise.
8028 (cond_exec_process_insns): Likewise for param "start" and local "insn".
8029 (cond_exec_process_if_block): Likewise for locals "then_start",
8030 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8031 (noce_process_if_block): Likewise for local "jump".
8032 (merge_if_block): Likewise for two locals named "end".
8033 (cond_exec_find_if_block): Likewise for local "last_insn".
8034 * jump.c (delete_related_insns): Rename param "insn" to
8035 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8036 checked cast. Strengthen local "p" from rtx to rtx_insn *.
8037 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8039 (split_reg): Likewise.
8040 * lra.c (lra_process_new_insns): Likewise.
8041 * modulo-sched.c (permute_partial_schedule): Strengthen param
8042 "last" from rtx to rtx_insn *.
8043 * optabs.c (add_equal_note): Likewise for param "insns" and local
8045 (expand_binop_directly): Add checked casts to rtx_insn * within
8046 NEXT_INSN (pat) uses.
8047 (expand_unop_direct): Likewise.
8048 (maybe_emit_unop_insn): Likewise.
8049 * recog.c (peep2_attempt): Strengthen locals "last",
8050 "before_try", "x" from rtx to rtx_insn *.
8051 * reorg.c (optimize_skip): Strengthen return type and local
8052 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
8053 and locals "trial", "next_trial" from rtx to rtx_insn *.
8054 * resource.c (next_insn_no_annul): Strengthen return type and
8055 param "insn" from rtx to rtx_insn *. Use a cast to and method of
8056 rtx_sequence to clarify the code.
8057 (mark_referenced_resources): Add a checked cast to rtx_insn *
8058 within PREV_INSN (x).
8059 (find_dead_or_set_registers): Strengthen return type, param
8060 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8061 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
8063 (mark_target_live_regs): Strengthen params "insns" and "target",
8064 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8065 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
8067 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8068 from rtx to rtx_insn *.
8069 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8070 from rtx to rtx_insn *.
8071 (copy_reg_eh_region_note_backward): Likewise.
8072 (unshare_all_rtl_in_chain): Likewise for sole param.
8073 (dump_rtl_slim): Strengthen second and third params from const_rtx
8074 to const rtx_insn *.
8075 * sched-deps.c (sched_free_deps): Strengthen params "head" and
8076 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8077 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8078 "next_tail" from rtx to rtx_insn *.
8079 (begin_move_insn): Likewise for local "next".
8080 * sched-int.h (sched_free_deps): Likewise for first and second
8082 (no_real_insns_p): Strengthen both params from const_rtx to
8084 (sched_setup_bb_reg_pressure_info): Strengthen second params from
8086 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8088 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8089 and locals "insn", "tail" from const_rtx to const rtx_insn *.
8090 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8092 (debug_rtl_slim): Strengthen params "first" and "last" from
8093 const_rtx to const rtx_insn *.
8094 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8095 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8096 (convert_to_simple_return): Likewise for param "returnjump".
8097 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
8099 (convert_to_simple_return): Likewise for param "returnjump".
8100 * valtrack.c (propagate_for_debug): Likewise for params
8102 * valtrack.h (propagate_for_debug): Likewise for second param.
8104 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8106 * output.h (insn_current_reference_address): Strengthen param
8107 from rtx to rtx_insn *.
8108 * final.c (insn_current_reference_address): Likewise.
8110 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8112 * basic-block.h (inside_basic_block_p): Strengthen param from
8113 const_rtx to const rtx_insn *.
8114 * cfgbuild.c (inside_basic_block_p): Likewise.
8116 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8118 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
8120 (get_trace_info): Likewise for param "insn".
8121 (save_point_p): Likewise.
8122 (maybe_record_trace_start): Likewise for both params.
8123 (maybe_record_trace_start_abnormal): Likewise.
8124 (create_trace_edges): Likewise for sole param and for three of the
8126 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
8127 to rtx_insn *, and update a call to pat->element to pat->insn.
8129 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8131 * function.h (struct expr_status): Convert field "x_forced_labels"
8132 from rtx_expr_list * to rtx_insn_list *.
8134 * cfgbuild.c (make_edges): Convert local "x" from an
8135 rtx_expr_list * to an rtx_insn_list *, replacing use of
8136 "element" method with "insn" method.
8137 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8138 * except.c (sjlj_emit_dispatch_table): Replace use of
8139 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8141 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8142 rtx_expr_list * to an rtx_insn_list *, replacing use of
8143 "element" method with "insn" method.
8144 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8145 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8146 rtx_insn *, adding a checked cast. Replace use of
8147 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8149 (expand_label): Likewise for local "label_r".
8151 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8153 * function.h (struct rtl_data): Convert field
8154 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8156 * rtl.h (remove_node_from_insn_list): New prototype.
8158 * builtins.c (expand_builtin): When prepending to
8159 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8161 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8162 to rtx_insn_list *, and use its "insn" method rather than
8164 * cfgrtl.c (delete_insn): Use new function
8165 remove_node_from_insn_list rather than
8166 remove_node_from_expr_list.
8167 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8168 to rtx_insn_list *, and use its "insn" method rather than
8170 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8171 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8172 * rtlanal.c (remove_node_from_insn_list): New function, adapted
8173 from remove_node_from_expr_list.
8174 * stmt.c (expand_label): When prepending to
8175 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8178 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8180 * function.h (struct rtl_data): Strengthen fields "x_return_label"
8181 and "x_naked_return_label" from rtx to rtx_code_label *.
8183 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8185 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8186 (SET_NEXT_INSN): Likewise.
8187 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8189 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8190 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
8191 to split out the SEQUENCE from local "bundle", strengthening the
8192 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8193 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8194 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8195 and the type of the elements of the "slot" array from rtx to
8197 (reorg_split_calls): Likewise for locals "insn" and "next", and
8198 the type of the elements of the "slot" array.
8200 * config/frv/frv.c (frv_nops): Likewise for the elements of this
8202 (frv_function_prologue): Likewise for locals "insn", "next",
8204 (frv_register_nop): Introduce a local "nop_insn" to be the
8205 rtx_insn * containing rtx "nop".
8207 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8208 used as an insn and sometimes as a pattern, so rename it to
8209 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8210 using it where dealing with the core insn.
8212 * config/picochip/picochip.c (reorder_var_tracking_notes):
8213 Strengthen locals "insn", "next", "last_insn", "queue",
8214 "next_queue", "prev" from rtx to rtx_insn *.
8216 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8217 the second param is an rtx_insn ** rather than an rtx **.
8218 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8219 from rtx to rtx_sequence *, and introduce local named "sequence",
8220 using methods of rtx_sequence to clarify the code.
8221 (remove_insn): Introduce local rtx_sequence * named "sequence" and
8223 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8224 Rename param "after" to "uncast_after", reintroducing "after" as a
8225 local rtx_insn * with a checked cast.
8226 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8227 reintroducing "after" as a local rtx_insn * with a checked cast.
8228 Strengthen local "last" from rtx to rtx_insn * and remove the
8229 now-redundant checked casts.
8230 (copy_delay_slot_insn): Strengthen return type and param from rtx
8233 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
8234 "last" from rtx to rtx_insn *.
8236 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8238 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
8239 param from rtx to rtx_insn *.
8241 * emit-rtl.c (copy_delay_slot_insn): Likewise.
8243 * reorg.c (skip_consecutive_labels): Strengthen return type, param
8244 and local "insn" from rtx to rtx_insn *.
8245 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
8246 (unfilled_slots_next): Likewise.
8247 (function_return_label): Strengthen from rtx to rtx_code_label *.
8248 (function_simple_return_label): Likewise.
8249 (first_active_target_insn): Strengthen return type and param from
8251 (find_end_label): Strengthen return type from rtx to
8252 rtx_code_label *; strengthen locals as appropriate.
8253 (emit_delay_sequence): Strengthen return type, param "insn" and
8254 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
8255 and local "li" from rtx to rtx_insn_list *, using methods of
8256 rtx_insn_list for clarity and typesafety.
8257 (add_to_delay_list): Strengthen return type and param "insn" from
8258 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
8259 rtx_insn_list * and use methods of rtx_insn_list.
8260 (delete_from_delay_slot): Strengthen return type, param "insn",
8261 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
8262 Strengthen local "seq" from rtx to rtx_sequence *, and local
8263 "delay_list" from rtx to rtx_insn_list *, using methods of
8264 rtx_sequence for clarity and type-safety.
8265 (delete_scheduled_jump): Add checked cast when invoking
8266 delete_from_delay_slot. Strengthen local "trial" from rtx to
8268 (optimize_skip): Strengthen return type and local "delay_list"
8269 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
8271 (steal_delay_list_from_target): Strengthen return type, param
8272 "delay_list" and local "new_delay_list" from rtx to
8273 rtx_insn_list *. Strengthen param "seq" from rtx to
8274 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
8276 Split out local "temp" into multiple more-tightly scoped locals:
8277 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
8278 of rtx_insn_list and rtx_sequence for clarity and typesafety.
8279 Strengthen locals named "trial" from rtx to rtx_insn *.
8280 (steal_delay_list_from_fallthrough): Strengthen return type and
8281 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
8282 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
8283 Strengthen local "trial" from rtx to rtx_insn *.
8284 (try_merge_delay_insns): Strength local "merged_insns" from rtx
8285 to rtx_insn_list * and use its methods. Strengthen local "pat"
8286 from rtx to rtx_sequence * and use its methods. Strengthen locals
8287 "dtrial" and "new_rtx" from rtx to rtx_insn *.
8288 (get_label_before): Strengthen return type and local "label" from
8290 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
8291 "next_trial", "next", prev". Strengthen local "delay_list" from
8292 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
8294 (follow_jumps): Strengthen return type, param "label" and locals
8295 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
8296 (fill_slots_from_thread): Strengthen return type, param
8297 "delay_list" from rtx to rtx_insn_list *. Strengthen params
8298 "insn", "thread", "opposite_thread" and locals "new_thread",
8299 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
8300 "sequence" from a checked cast to rtx_sequence so that we can call
8301 steal_delay_list_from_target and steal_delay_list_from_fallthrough
8302 with an rtx_sequence *.
8303 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
8304 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
8305 Strengthen local "delay_list" from rtx to rtx_insn_list *.
8306 (relax_delay_slots): Strengthen param "first" and locals "insn",
8307 "next", "trial", "delay_insn", "target_label" from rtx to
8308 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
8309 Introduce a local "trial_seq" for PATTERN (trial) of type
8310 rtx_sequence *, in both cases using methods of rtx_sequence.
8311 (dbr_schedule): Strengthen param "first" and locals "insn",
8312 "next", "epilogue_insn" from rtx to rtx_insn *.
8314 2014-08-28 Richard Biener <rguenther@suse.de>
8316 PR tree-optimization/62283
8317 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8318 Do not peel loops for alignment where the vector loop likely
8319 doesn't run at least VF times.
8321 2014-08-28 Bin Cheng <bin.cheng@arm.com>
8323 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
8324 important_candidates. Consider all important candidates if
8325 IVS doesn't give any result. Remove check on ivs->upto.
8326 (try_add_cand_for): Call iv_ca_add_use only once.
8328 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8329 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8330 Anna Tikhonova <anna.tikhonova@intel.com>
8331 Ilya Tocar <ilya.tocar@intel.com>
8332 Andrey Turetskiy <andrey.turetskiy@intel.com>
8333 Ilya Verbin <ilya.verbin@intel.com>
8334 Kirill Yukhin <kirill.yukhin@intel.com>
8335 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8337 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
8338 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
8340 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
8341 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8342 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8343 (define_insn "*mul<mode>3"): Add EVEX version.
8345 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8346 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8347 Anna Tikhonova <anna.tikhonova@intel.com>
8348 Ilya Tocar <ilya.tocar@intel.com>
8349 Andrey Turetskiy <andrey.turetskiy@intel.com>
8350 Ilya Verbin <ilya.verbin@intel.com>
8351 Kirill Yukhin <kirill.yukhin@intel.com>
8352 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8354 * config/i386/sse.md
8355 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
8356 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
8357 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
8358 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
8359 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
8360 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
8361 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
8362 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
8363 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
8364 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
8365 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
8366 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
8367 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
8368 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
8369 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
8370 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
8372 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8373 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8374 Anna Tikhonova <anna.tikhonova@intel.com>
8375 Ilya Tocar <ilya.tocar@intel.com>
8376 Andrey Turetskiy <andrey.turetskiy@intel.com>
8377 Ilya Verbin <ilya.verbin@intel.com>
8378 Kirill Yukhin <kirill.yukhin@intel.com>
8379 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8381 * config/i386/sse.md
8382 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
8383 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
8384 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
8386 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8387 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8388 Anna Tikhonova <anna.tikhonova@intel.com>
8389 Ilya Tocar <ilya.tocar@intel.com>
8390 Andrey Turetskiy <andrey.turetskiy@intel.com>
8391 Ilya Verbin <ilya.verbin@intel.com>
8392 Kirill Yukhin <kirill.yukhin@intel.com>
8393 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8395 * config/i386/sse.md
8396 (define_mode_iterator VI128_256): New.
8397 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
8399 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8400 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8401 Anna Tikhonova <anna.tikhonova@intel.com>
8402 Ilya Tocar <ilya.tocar@intel.com>
8403 Andrey Turetskiy <andrey.turetskiy@intel.com>
8404 Ilya Verbin <ilya.verbin@intel.com>
8405 Kirill Yukhin <kirill.yukhin@intel.com>
8406 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8408 * config/i386/sse.md
8409 (define_mode_iterator VI8_256_512): New.
8410 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
8412 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8413 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
8415 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
8417 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8419 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
8420 pointer to the cumulative reloc value and return the value for
8422 (compute_reloc_for_rtx): Take a const_rtx. Call
8423 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
8424 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
8425 for_each_rtx for the CONST case.
8427 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8429 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
8430 (mark_constants_in_pattern): ...this new function to iterate over
8432 (mark_constants): Update accordingly.
8434 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8436 * varasm.c: Include rtl-iter.h.
8437 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
8438 Remove the pointer to the cumulative hashval_t and just return
8439 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
8440 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8441 Accumulate the hashval_ts here instead of const_rtx_hash_1.
8443 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8445 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
8446 Give real type of data parameter. Remove return value.
8447 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
8448 to iterate over subrtxes.
8450 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8452 * var-tracking.c (use_narrower_mode_test): Turn from being a
8453 for_each_rtx callback to being a function that examines each
8455 (adjust_mems): Update accordingly.
8457 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8459 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
8460 callback to being a function that examines each subrtx itself.
8461 Remove handling of null rtxes.
8462 (add_uses): Update accordingly.
8464 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8466 * var-tracking.c: Include rtl-iter.h.
8467 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
8468 to being a function that examines each subrtx itself.
8469 (use_type): Update accordingly.
8471 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8473 * store-motion.c: Include rtl-iter.h.
8474 (extract_mentioned_regs_1): Delete.
8475 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
8476 for_each_rtx to iterate over subrtxes.
8478 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8480 * sel-sched.c: Include rtl-iter.h
8481 (count_occurrences_1): Delete.
8482 (count_occurrences_equiv): Turn rtxes into const_rtxes.
8483 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8485 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8487 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8488 * rtlanal.c (tls_referenced_p_1): Delete.
8489 (tls_referenced_p): Take a const_rtx rather than an rtx.
8490 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8492 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8494 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8495 (for_each_inc_dec): Take an rtx rather than an rtx *.
8496 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8497 (cselib_record_sets): Likewise.
8498 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8499 (check_for_inc_dec): Likewise.
8500 * rtlanal.c (for_each_inc_dec_ops): Delete.
8501 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8502 rather than a pointer to the memory address. Replace
8503 for_each_inc_dec_ops argument with separate function and data
8504 arguments. Abort on non-autoinc addresses.
8505 (for_each_inc_dec_find_mem): Delete.
8506 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
8507 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8509 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8511 * rtl.h (find_all_hard_regs): Declare.
8512 * rtlanal.c (find_all_hard_regs): New function.
8513 (record_hard_reg_uses_1): Delete.
8514 (record_hard_reg_uses): Use find_all_hard_regs.
8516 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8518 * rtl.h (replace_label_data): Delete.
8519 (replace_label): Take the old label, new label and update-nuses flag
8520 as direct arguments. Return void.
8521 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8522 * rtlanal.c (replace_label): Update interface as above. Handle
8523 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
8524 iterator. Use FOR_EACH_SUBRTX_PTR.
8526 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8528 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8529 with const_rtx parameters.
8530 * varasm.c (get_pool_constant): Likewise.
8531 * rtlanal.c (rtx_referenced_p_1): Delete.
8532 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8533 Assert that the rtx we're looking for is nonnull. Allow searches
8534 for constant pool SYMBOL_REFs.
8536 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8538 * reload1.c: Include rtl-iter.h.
8539 (note_reg_elim_costly): Turn from being a for_each_rtx callback
8540 to being a function that examines each subrtx itself.
8541 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8543 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8545 * regcprop.c (cprop_find_used_regs_1): Delete.
8546 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8548 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8550 * regcprop.c: Include rtl-iter.h.
8551 (kill_value): Take a const_rtx.
8552 (kill_autoinc_value): Turn from being a for_each_rtx callback
8553 to being a function that examines each subrtx itself.
8554 (copyprop_hardreg_forward_1): Update accordingly.
8556 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8558 * reg-stack.c: Include rtl-iter.h.
8559 (subst_stack_regs_in_debug_insn): Delete.
8560 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8561 instead of for_each_rtx.
8563 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8565 * lower-subreg.c (find_decomposable_subregs): Turn from being
8566 a for_each_rtx callback to being a function that examines each
8567 subrtx itself. Remove handling of null rtxes.
8568 (decompose_multiword_subregs): Update accordingly.
8570 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8572 * lower-subreg.c (adjust_decomposed_uses): Delete.
8573 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8574 Remove handling of null rtxes.
8576 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8578 * lower-subreg.c: Include rtl-iter.h.
8579 (resolve_subreg_use): Turn from being a for_each_rtx callback
8580 to being a function that examines each subrtx itself. Remove
8581 handling of null rtxes.
8582 (resolve_reg_notes, resolve_simple_move): Update accordingly.
8583 (decompose_multiword_subregs): Likewise.
8585 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8587 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
8588 to being a function that examines each subrtx itself.
8589 (simplify_using_condition, simplify_using_initial_values): Update
8592 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8594 * loop-iv.c: Include rtl-iter.h.
8595 (find_single_def_src): New function.
8596 (replace_single_def_regs): Turn from being a for_each_rtx callback
8597 to being a function that examines each subrtx itself.
8598 (replace_in_expr, simplify_using_initial_values): Update accordingly.
8600 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8602 * jump.c (eh_returnjump_p_1): Delete.
8603 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8604 Remove handling of null rtxes.
8606 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8608 * jump.c: Include rtl-iter.h.
8609 (returnjump_p_1): Delete.
8610 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8611 Remove handling of null rtxes.
8613 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8615 * ira.c: Include rtl-iter.h.
8616 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8617 to being a function that examines each subrtx itself. Remove
8618 handling of null rtxes.
8619 (update_equiv_regs): Update call accordingly.
8621 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8623 * fwprop.c: Include rtl-iter.h.
8624 (varying_mem_p): Turn from being a for_each_rtx callback to being
8625 a function that examines each subrtx itself.
8626 (propagate_rtx): Update accordingly.
8628 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8630 * function.c: Include rtl-iter.h
8631 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
8632 callback to being a function that examines each subrtx itself.
8633 Return the changed flag.
8634 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
8635 (instantiate_virtual_regs): Update calls accordingly.
8637 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8639 * final.c: Include rtl-iter.h.
8640 (mark_symbol_ref_as_used): Delete.
8641 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
8644 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8646 * emit-rtl.c: Include rtl-iter.h.
8647 (find_auto_inc): Turn from being a for_each_rtx callback to being
8648 a function that examines each subrtx itself. Assume the first operand
8649 to an RTX_AUTOINC is the automodified register.
8650 (try_split): Update call accordingly.
8652 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8654 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
8655 Return a bool, inverting the result so that 0/false means "not ok".
8656 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
8657 subrtxes of a CONST.
8658 (mem_loc_descriptor, add_const_value_attribute)
8659 (resolve_addr_in_expr): Update calls accordingly.
8661 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8663 * dwarf2out.c: Include rtl-iter.h.
8664 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
8665 Remove unused data parameter. Return a bool, inverting the result
8666 so that 0/false means "not ok".
8667 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
8668 instead of for_each_rtx.
8670 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8672 * dse.c: Include rtl-iter.h.
8673 (check_mem_read_rtx): Change void * parameter to real type.
8674 Remove return value.
8675 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
8676 for_each_rtx. Don't handle null rtxes.
8678 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8680 * df-problems.c: Include rtl-iter.h.
8681 (find_memory): Turn from being a for_each_rtx callback to being
8682 a function that examines each subrtx itself. Continue to look for
8683 volatile references even after a nonvolatile one has been found.
8684 (can_move_insns_across): Update calls accordingly.
8686 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8688 * ddg.c (walk_mems_2, walk_mems_1): Delete.
8689 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
8690 to iterate over subrtxes. Return a bool rather than an int.
8692 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8694 * ddg.c: Include rtl-iter.h.
8695 (mark_mem_use_1): Rename to...
8696 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
8697 instead of for_each_rtx.
8698 (mem_read_insn_p): Update accordingly.
8700 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8702 * cse.c (change_cc_mode_args): Delete.
8703 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
8704 a function that examines each subrtx itself. Take the fields of
8705 change_cc_mode_args as argument and return void.
8706 (cse_change_cc_mode_insn): Update calls accordingly.
8708 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8710 * cse.c (is_dead_reg): Change argument to const_rtx.
8711 (dead_debug_insn_data): Delete.
8712 (is_dead_debug_insn): Expand commentary. Turn from being a
8713 for_each_rtx callback to being a function that examines
8714 each subrtx itself. Take the fields of dead_debug_insn_data
8716 (delete_trivially_dead_insns): Update call accordingly.
8718 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8720 * cse.c (check_for_label_ref): Move earlier in file. Turn from
8721 being a for_each_rtx callback to being a function that examines
8723 (cse_extended_basic_block): Update call accordingly.
8725 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8727 * cse.c (check_dependence_data): Delete.
8728 (check_dependence): Change from being a for_each_rtx callback to being
8729 a function that examines all subrtxes itself. Don't handle null rtxes.
8730 (invalidate): Update call accordingly.
8732 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8734 * cse.c: Include rtl-iter.h.
8735 (approx_reg_cost_1): Delete.
8736 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8737 Don't handle null rtxes.
8739 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8741 * cfgcleanup.c: Include rtl-iter.h.
8742 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
8743 to being a function that examines each subrtx itself.
8744 (thread_jump): Update accordingly.
8746 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8748 * combine-stack-adj.c: Include rtl-iter.h.
8749 (record_stack_refs_data): Delete.
8750 (record_stack_refs): Turn from being a for_each_rtx callback
8751 to being a function that examines each subrtx itself.
8752 Take a pointer to the reflist. Invert sense of return value
8753 so that true means success and false means failure. Don't
8755 (combine_stack_adjustments_for_block): Update accordingly.
8757 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8759 * combine.c (record_truncated_value): Turn from being a for_each_rtx
8760 callback to a function that takes an rtx and returns a bool
8761 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
8764 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8766 * combine.c: Include rtl-iter.h.
8767 (unmentioned_reg_p_1): Delete.
8768 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8769 Don't handle null rtxes.
8771 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8773 * calls.c: Include rtl-iter.h.
8774 (internal_arg_pointer_based_exp_1): Delete.
8775 (internal_arg_pointer_based_exp): Take a const_rtx.
8776 Use FOR_EACH_SUBRTX to iterate over subrtxes.
8778 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8780 * caller-save.c: Include rtl-iter.h.
8781 (add_used_regs_1): Delete.
8782 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
8783 to iterate over subrtxes. Assert that any remaining pseudos
8786 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8788 * bt-load.c: Include rtl-iter.h.
8789 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
8790 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
8791 to iterate over subrtxes.
8792 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
8793 find_btr_use rather than btr_referenced_p.
8795 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8797 * alias.c: Include rtl-iter.h.
8798 (refs_newer_value_cb): Delete.
8799 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8801 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8803 * rtl-iter.h: New file.
8804 * rtlanal.c: Include it.
8805 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
8806 (generic_subrtx_iterator <T>::add_single_to_queue)
8807 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
8808 (generic_subrtx_iterator <T>::free_array): New functions.
8809 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
8810 (generic_subrtx_iterator <const_rtx_accessor>)
8811 (generic_subrtx_iterator <rtx_var_accessor>
8812 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
8813 (setup_reg_subrtx_bounds): New function.
8814 (init_rtlanal): Call it.
8816 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
8819 * config/sh/sh.md (ashlsi3): Handle negative shift count for
8821 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
8823 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
8825 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
8827 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8829 * rtl.h (JUMP_LABEL_AS_INSN): New.
8831 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8833 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
8835 (alloc_EXPR_LIST): Strengthen return type from rtx to
8837 (remove_free_EXPR_LIST_node): Likewise for param.
8838 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
8839 from rtx to rtx_expr_list *.
8840 * sched-int.h (struct deps_desc): Strengthen fields
8841 "pending_read_mems" and "pending_write_mems" from rtx to
8844 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
8845 rtx to rtx_expr_list *.
8846 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
8847 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
8849 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
8850 from rtx to rtx_expr_list *.
8851 * loop-iv.c (simplify_using_initial_values): Strengthen local
8852 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
8853 "pnote_next" from rtx * to rtx_expr_list **.
8854 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
8855 param "exprp" from rtx * to rtx_expr_list **.
8856 (add_insn_mem_dependence): Strengthen local "mem_list" from
8857 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
8859 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
8860 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
8861 param "old_mems_p" from rtx * to rtx_expr_list **.
8862 * var-tracking.c (struct adjust_mem_data): Strengthen field
8863 "side_effects" from rtx to rtx_expr_list *.
8864 (adjust_insn): Replace NULL_RTX with NULL when assigning to
8866 (prepare_call_arguments): Likewise.
8868 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8870 * function.h (struct rtl_data): Strengthen field
8871 "x_stack_slot_list" from rtx to rtx_expr_list *.
8873 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
8874 when assigning to stack_slot_list.
8876 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8878 * function.h (struct rtl_data): Strengthen field
8879 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
8880 * rtl.h (remove_node_from_expr_list): Strengthen second param from
8881 rtx * to rtx_expr_list **.
8883 * cfgbuild.c (make_edges): In loop over
8884 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
8885 rtx_expr_list *, and use methods of the latter class to clarify
8887 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
8888 rtx_expr_list *, and use methods of the latter class to clarify
8890 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8891 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8892 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
8893 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
8894 to rtx_expr_list *. Use methods of the latter class to clarify
8897 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8899 * function.h (struct expr_status): Strengthen field
8900 "x_forced_labels" from rtx to rtx_expr_list *.
8902 * cfgbuild.c (make_edges): Split local "x" into two locals,
8903 strengthening one from rtx to rtx_expr_list *, and using methods
8905 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
8906 loop over forced_labels, introduce strengthen it from rtx to
8907 rtx_expr_list *, using methods to clarify the code.
8908 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
8909 to rtx_expr_list *, using methods of said class to clarify the
8911 * reload1.c (set_initial_label_offsets): Split local "x" into two
8912 per-loop variables, strengthening the first from rtx to
8913 rtx_expr_list * and using methods.
8915 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8917 * coretypes.h (class rtx_expr_list): Add forward declaration.
8918 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
8919 * gengenrtl.c (special_rtx): Add EXPR_LIST.
8920 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
8921 invariant: GET_CODE (X) == EXPR_LIST.
8922 (is_a_helper <rtx_expr_list *>::test): New.
8923 (rtx_expr_list::next): New.
8924 (rtx_expr_list::element): New.
8925 (gen_rtx_EXPR_LIST): New.
8927 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8929 * varasm.c (mark_constants): Convert a GET_CODE check into a
8930 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8931 Use methods of rtx_sequence to clarify the code.
8933 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8935 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
8936 local "seq" via a checked cast, and use methods of rtx_sequence
8937 to simplify the code.
8939 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8941 * resource.c (mark_referenced_resources): Strengthen local
8942 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
8943 using methods of rtx_sequence to clarify the code.
8944 (find_dead_or_set_registers): Within the switch statement, convert
8945 a GET_CODE check to a dyn_cast, introducing local "seq". Within
8946 the JUMP_P handling, introduce another local "seq", adding a
8947 checked cast to rtx_sequence *. In both cases, use methods of
8948 rtx_sequence to clarify the code.
8949 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
8950 via a checked cast, and use methods of rtx_sequence to simplify
8953 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8955 * reorg.c (redundant_insn): In two places in the function, replace
8956 a check of GET_CODE with a dyn_cast, introducing local "seq", and
8957 usings methods of rtx_sequence to clarify the code.
8959 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8961 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
8962 local "seq" with a checked cast, and use methods of rtx_sequence
8963 to clarify the code.
8965 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8967 * function.c (contains): Introduce local "seq" for PATTERN (insn),
8968 with a checked cast, in the region for where we know it's a
8969 SEQUENCE. Use methods of rtx_sequence.
8971 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8973 * final.c (get_attr_length_1): Replace GET_CODE check with a
8974 dyn_cast, introducing local "seq" and the use of methods of
8976 (shorten_branches): Likewise, introducing local "body_seq".
8977 Strengthen local "inner_insn" from rtx to rtx_insn *.
8978 (reemit_insn_block_notes): Replace GET_CODE check with a
8979 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
8980 Use methods of rtx_sequence.
8981 (final_scan_insn): Likewise, introducing local "seq" for when
8982 "body" is known to be a SEQUENCE, using its methods.
8984 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8986 * except.c (can_throw_external): Strengthen local "seq" from rtx
8987 to rtx_sequence *. Use methods of rtx_sequence.
8988 (insn_nothrow_p): Likewise.
8990 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8992 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
8993 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8994 Use methods of rtx_sequence.
8995 (scan_trace): Likewise for local "pat".
8997 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8999 * coretypes.h (class rtx_sequence): Add forward declaration.
9000 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9001 invariant: GET_CODE (X) == SEQUENCE.
9002 (is_a_helper <rtx_sequence *>::test): New.
9003 (is_a_helper <const rtx_sequence *>::test): New.
9004 (rtx_sequence::len): New.
9005 (rtx_sequence::element): New.
9006 (rtx_sequence::insn): New.
9008 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9010 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9012 (alloc_INSN_LIST): Strengthen return type from rtx to
9014 (copy_INSN_LIST): Likewise for return type and param.
9015 (concat_INSN_LIST): Likewise for both params and return type.
9016 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9017 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
9018 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9019 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
9021 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9022 "implicit_sets", "control_uses", "clobbers" from rtx to
9024 (struct deps_desc): Likewise for fields "pending_read_insns",
9025 "pending_write_insns", "pending_jump_insns",
9026 "last_pending_memory_flush", "last_function_call",
9027 "last_function_call_may_noreturn", "sched_before_next_call",
9028 "sched_before_next_jump".
9029 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9030 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9032 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9033 from rtx to rtx_insn_list *.
9034 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9037 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9038 to rtx_insn_list **.
9039 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9041 (queue_insn): Likewise for local "link".
9042 (struct haifa_saved_data): Strengthen field "insn_queue" from
9043 rtx * to rtx_insn_list **.
9044 (save_backtrack_point): Update allocation of save->insn_queue to
9045 reflect the strengthening of elements from rtx to rtx_insn_list *.
9046 (queue_to_ready): Strengthen local "link" from rtx to
9047 rtx_insn_list *; use methods "next" and "insn" when traversing the
9049 (early_queue_to_ready): Likewise for locals "link", "next_link",
9051 (schedule_block): Update allocation of insn_queue to reflect the
9052 strengthening of elements from rtx to rtx_insn_list *. Strengthen
9053 local "link" from rtx to rtx_insn_list *, and use methods when
9055 (add_to_speculative_block): Strengthen locals "twins" and
9056 "next_node" from rtx to rtx_insn_list *, and use methods when
9057 working with them. Strengthen local "twin" from rtx to
9058 rtx_insn *, eliminating a checked cast.
9059 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9060 from rtx to rtx_insn_list *, and use methods when working with
9063 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9064 from rtx to rtx_insn_list *, adding a checked cast.
9065 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9067 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9068 "newlink" from rtx to rtx_insn_list *. Strengthen local
9069 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
9070 from rtx to rtx_insn *.
9071 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9072 from rtx to rtx_insn_list *. Use methods of the latter class.
9073 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9074 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9075 (remove_free_INSN_LIST_node): Strengthen return type and local
9076 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
9077 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
9078 rtx_insn_list *, using "insn" method.
9080 * sched-deps.c (add_dependence_list): Strengthen param "list"
9081 from rtx to rtx_insn_list *, and use methods when working with it.
9082 (add_dependence_list_and_free): Strengthen param "listp" from
9083 rtx * to rtx_insn_list **.
9084 (remove_from_dependence_list): Strenghten param "listp" from rtx *
9085 to rtx_insn_list **, and use methods when working with *listp.
9086 (remove_from_both_dependence_lists): Strengthen param "listp" from
9087 rtx * to rtx_insn_list **
9088 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9089 to rtx_insn_list **. Eliminate local "link", in favor of two new
9090 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9092 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9093 by introducing local "cond_deps".
9094 (remove_from_deps): Strengthen param "insn" from rtx to
9097 * sched-rgn.c (concat_insn_mem_list): Strengthen param
9098 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
9099 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
9100 Use methods of rtx_insn_list.
9102 * store-motion.c (struct st_expr): Strengthen fields
9103 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
9104 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
9106 (find_moveable_store): Split out "tmp" into multiple more-tightly
9107 scoped locals. Use methods of rtx_insn_list *.
9108 (compute_store_table): Strengthen local "tmp" from rtx to
9109 rtx_insn *. Use methods of rtx_insn_list *.
9111 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9113 * coretypes.h (class rtx_insn_list): Add forward declaration.
9114 * rtl.h (class rtx_insn_list): New subclass of rtx_def
9115 (is_a_helper <rtx_insn_list *>::test): New.
9116 (rtx_insn_list::next): New.
9117 (rtx_insn_list::insn): New.
9118 (gen_rtx_INSN_LIST): Add prototype.
9119 * emit-rtl.c (gen_rtx_INSN_LIST): New.
9120 * gengenrtl.c (special_rtx): Add INSN_LIST.
9122 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9124 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
9125 "prev" from rtx to rtx_insn *.
9127 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9129 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
9130 functions. Require merely an rtx for now, not an rtx_insn *.
9131 (BLOCK_FOR_INSN): Likewise.
9132 (INSN_LOCATION): Likewise.
9133 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9135 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9137 * rtl.h (PATTERN): Convert this macro into a pair of inline
9138 functions, for now, requiring const_rtx and rtx.
9140 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9142 * target.def (unwind_emit): Strengthen param "insn" from rtx to
9144 (final_postscan_insn): Likewise.
9145 (adjust_cost): Likewise.
9146 (adjust_priority): Likewise.
9147 (variable_issue): Likewise.
9148 (macro_fusion_pair_p): Likewise.
9149 (dfa_post_cycle_insn): Likewise.
9150 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9151 (first_cycle_multipass_issue): Likewise.
9152 (dfa_new_cycle): Likewise.
9153 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9154 (speculate_insn): Likewise for param "insn".
9155 (gen_spec_check): Likewise for params "insn" and "label".
9156 (get_insn_spec_ds): Likewise for param "insn".
9157 (get_insn_checked_ds): Likewise.
9158 (dispatch_do): Likewise.
9159 (dispatch): Likewise.
9160 (cannot_copy_insn_p): Likewise.
9161 (invalid_within_doloop): Likewise.
9162 (legitimate_combined_insn): Likewise.
9166 * doc/tm.texi: Automatically updated to reflect changes to
9169 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9171 (schedule_block): Likewise.
9172 (sched_init): Likewise.
9173 (sched_speculate_insn): Strengthen param "insn" from rtx to
9175 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9177 * hooks.c (hook_bool_rtx_true): Rename to...
9178 hook_bool_rtx_insn_true): ...this, and strengthen first param from
9180 (hook_constcharptr_const_rtx_null): Rename to...
9181 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9182 first param from const_rtx to const rtx_insn *.
9183 (hook_bool_rtx_int_false): Rename to...
9184 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9185 param from rtx to rtx_insn *.
9186 (hook_void_rtx_int): Rename to...
9187 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9190 * hooks.h (hook_bool_rtx_true): Rename to...
9191 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9193 (hook_bool_rtx_int_false): Rename to...
9194 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9195 param from rtx to rtx_insn *.
9196 (hook_void_rtx_int): Rename to...
9197 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9199 (hook_constcharptr_const_rtx_null): Rename to...
9200 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9201 first param from const_rtx to const rtx_insn *.
9203 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9204 and local "prev" from rtx to rtx_insn *.
9206 * sched-int.h (sched_speculate_insn): Strengthen first param from
9209 * sel-sched.c (create_speculation_check): Likewise for local "label".
9210 * targhooks.c (default_invalid_within_doloop): Strengthen param
9211 "insn" from const_rtx to const rtx_insn *.
9212 * targhooks.h (default_invalid_within_doloop): Strengthen param
9213 from const_rtx to const rtx_insn *.
9215 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9216 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9218 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9220 (arc_invalid_within_doloop): Likewise, with const.
9222 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9223 (arm_cannot_copy_insn_p): Likewise for param "insn".
9224 (arm_unwind_emit): Likewise.
9226 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9229 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9230 (c6x_variable_issue): Likewise. Removed now-redundant checked
9232 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
9234 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
9235 Likewise for param "insn".
9236 (epiphany_mode_after): Likewise.
9237 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
9238 params "insn", "dep_insn".
9239 (epiphany_mode_needed): Likewise for param "insn".
9240 (epiphany_mode_after): Likewise.
9242 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
9243 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9244 (ix86_avx_u128_mode_needed): Likewise.
9245 (ix86_i387_mode_needed): Likewise.
9246 (ix86_mode_needed): Likewise.
9247 (ix86_avx_u128_mode_after): Likewise.
9248 (ix86_mode_after): Likewise.
9249 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
9250 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
9251 (ix86_adjust_priority): Likewise for param "insn".
9252 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
9253 (do_dispatch): Likewise.
9254 (has_dispatch): Likewise.
9255 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
9257 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
9258 reflect renaming of default hook implementation from
9259 hook_constcharptr_const_rtx_null to
9260 hook_constcharptr_const_rtx_insn_null.
9261 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
9263 (ia64_variable_issue): Likewise for param "insn".
9264 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
9265 (ia64_dfa_new_cycle): Likewise.
9266 (ia64_get_insn_spec_ds): Likewise.
9267 (ia64_get_insn_checked_ds): Likewise.
9268 (ia64_speculate_insn): Likewise.
9269 (ia64_gen_spec_check): Likewise for params "insn", "label".
9270 (ia64_asm_unwind_emit): Likewise for param "insn".
9272 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
9274 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
9276 (m68k_sched_variable_issue): Likewise for param "insn".
9278 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
9281 * config/microblaze/microblaze.c (microblaze_adjust_cost):
9282 Likewise for params "insn", "dep".
9284 * config/mips/mips.c (mips_adjust_cost): Likewise.
9285 (mips_variable_issue): Likewise for param "insn".
9286 (mips_final_postscan_insn): Likewise.
9288 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
9289 for params "insn", "dep".
9291 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
9293 (pa_adjust_priority): Likewise for param "insn".
9295 * config/picochip/picochip.c (picochip_sched_adjust_cost):
9296 Likewise for params "insn", "dep_insn".
9298 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
9300 (rs6000_variable_issue): Likewise.
9301 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
9302 (rs6000_debug_adjust_cost): Likewise.
9303 (rs6000_adjust_priority): Likewise for param "insn".
9304 (rs6000_use_sched_lookahead_guard): Likewise.
9305 (get_next_active_insn): Likewise for return type and both params.
9306 (redefine_groups): Likewise for params "prev_head_insn", "tail"
9307 and locals "insn", "next_insn".
9308 (pad_groups): Likewise.
9310 * config/s390/s390.c (s390_adjust_priority): Likewise for param
9312 (s390_cannot_copy_insn_p): Likewise.
9313 (s390_sched_variable_issue): Likewise for third param, eliminating
9315 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
9316 default hook implementation from hook_constcharptr_const_rtx_null
9317 to hook_constcharptr_const_rtx_insn_null.
9319 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
9320 from rtx to rtx_insn *.
9321 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
9322 (sh_variable_issue): Likewise for param "insn".
9323 (sh_dfa_new_cycle): Likewise.
9324 (sh_mode_needed): Likewise.
9325 (sh_mode_after): Likewise.
9327 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
9328 params "insn", "dep_insn".
9329 (hypersparc_adjust_cost): Likewise.
9330 (sparc_adjust_cost): Likewise.
9332 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
9333 param, eliminated checked cast.
9334 (spu_sched_adjust_cost): Likewise for first and third params.
9336 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
9337 params "insn" and "dep_insn" from rtx to rtx_insn *.
9339 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
9341 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9343 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
9344 (set_is_load_p): ...this, updating to work on a SET pattern rather
9346 (is_store_insn): Rename to...
9347 (set_is_store_p): ...this, updating to work on a SET pattern
9348 rather than an insn.
9349 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
9350 top of function to where it is needed. Rewrite the bogus
9351 condition that checks for "insn" and "dep" being PARALLEL to
9352 instead use single_set, introducing locals "insn_set" and
9353 "dep_set". Given that we only ever returned "cost" for a non-pair
9354 of SETs, bail out early if we don't have a pair of SET.
9355 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
9356 use the new locals "insn_set" and "dep_set", and update calls to
9357 is_load_insn and is_store_insn to be calls to set_is_load_p and
9360 2014-08-27 Guozhi Wei <carrot@google.com>
9363 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
9364 amount before using it.
9366 2014-08-27 Richard Biener <rguenther@suse.de>
9368 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
9369 get_maxval_strlen inside a more useful API.
9370 (gimple_fold_builtin_with_strlen): Remove and fold into ...
9371 (gimple_fold_builtin): ... caller.
9372 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
9373 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
9374 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
9375 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
9376 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
9377 gimple_fold_builtin_sprintf): Adjust to compute maxval
9380 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
9383 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
9385 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9386 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9387 Anna Tikhonova <anna.tikhonova@intel.com>
9388 Ilya Tocar <ilya.tocar@intel.com>
9389 Andrey Turetskiy <andrey.turetskiy@intel.com>
9390 Ilya Verbin <ilya.verbin@intel.com>
9391 Kirill Yukhin <kirill.yukhin@intel.com>
9392 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9394 * config/i386/sse.md
9395 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
9396 Use `concat_tg_mode' attribute to determine asm register size.
9398 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9399 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9400 Anna Tikhonova <anna.tikhonova@intel.com>
9401 Ilya Tocar <ilya.tocar@intel.com>
9402 Andrey Turetskiy <andrey.turetskiy@intel.com>
9403 Ilya Verbin <ilya.verbin@intel.com>
9404 Kirill Yukhin <kirill.yukhin@intel.com>
9405 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9407 * config/i386/sse.md
9408 (define_mode_iterator VI48_AVX512VL): New.
9409 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
9410 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
9411 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
9412 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9413 with VI1): Change mode iterator.
9414 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9415 with VI_ULOADSTORE_BW_AVX512VL): New.
9416 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9417 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9418 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9419 with VI1): Change mode iterator.
9420 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9421 with VI_ULOADSTORE_BW_AVX512VL): New.
9422 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9423 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9424 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9425 with VI1): Change mode iterator.
9426 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9427 with VI_ULOADSTORE_BW_AVX512VL): New.
9428 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9429 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
9430 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
9431 (define_insn "<avx512>_storedqu<mode>_mask" with
9432 VI48_AVX512VL): New.
9433 (define_insn "<avx512>_storedqu<mode>_mask" with
9434 VI12_AVX512VL): Ditto.
9436 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9437 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9438 Anna Tikhonova <anna.tikhonova@intel.com>
9439 Ilya Tocar <ilya.tocar@intel.com>
9440 Andrey Turetskiy <andrey.turetskiy@intel.com>
9441 Ilya Verbin <ilya.verbin@intel.com>
9442 Kirill Yukhin <kirill.yukhin@intel.com>
9443 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9445 * config/i386/sse.md
9446 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
9447 (define_mode_iterator VI48_AVX512BW): New.
9448 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
9449 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9450 with VI48_AVX2_48_AVX512F): New.
9451 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9452 with VI2_AVX512VL): Ditto.
9454 2014-08-27 Richard Biener <rguenther@suse.de>
9457 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
9458 (fold_builtin_3): Do not fold strcat_chk here.
9459 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
9461 (gimple_fold_builtin): Fold strcat_chk here.
9463 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
9465 * dwarf2out.h (dwarf2out_decl): Remove prototype.
9466 * dwarf2out.c (dwarf2out_decl): Make static.
9468 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
9470 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
9472 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9474 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
9475 from rtx to rtx_insn *.
9476 (cselib_lookup_from_insn): Likewise for final param.
9477 (cselib_subst_to_values_from_insn): Likewise.
9478 (cselib_add_permanent_equiv): Likewise.
9480 * cselib.c (cselib_current_insn): Likewise for this variable.
9481 (cselib_subst_to_values_from_insn): Likewise for param "insn".
9482 (cselib_lookup_from_insn): Likewise.
9483 (cselib_add_permanent_equiv): Likewise for param "insn" and local
9484 "save_cselib_current_insn".
9485 (cselib_process_insn): Replace use of NULL_RTX with NULL.
9487 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9488 from rtx to rtx_insn *.
9490 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9492 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9495 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9497 * df.h (df_dump_insn_problem_function): Strengthen first param of
9498 this callback from const_rtx to const rtx_insn *.
9499 (struct df_insn_info): Strengthen field "insn" from rtx to
9501 (DF_REF_INSN): Eliminate this function, reinstating the older
9503 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9504 (df_reg_defined): Likewise.
9505 (df_find_use): Likewise.
9506 (df_reg_used): Likewise.
9507 (df_dump_insn_top): Strengthen param 1 from const_rtx to
9509 (df_dump_insn_bottom): Likewise.
9510 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9511 (df_insn_debug_regno): Likewise.
9512 (debug_df_insn): Likewise.
9513 (df_rd_simulate_one_insn): Likewise for param 2.
9514 (df_word_lr_simulate_defs): Likewise for param 1.
9515 (df_word_lr_simulate_uses): Likewise.
9516 (df_md_simulate_one_insn): Likewise for param 2.
9517 (df_simulate_find_noclobber_defs): Likewise for param 1.
9518 (df_simulate_find_defs): Likewise.
9519 (df_simulate_defs): Likewise.
9520 (df_simulate_uses): Likewise.
9521 (df_simulate_one_insn_backwards): Likewise for param 2.
9522 (df_simulate_one_insn_forwards): Likewise.
9523 (df_uses_create): Likewise for param 2.
9524 (df_insn_create_insn_record): Likewise for param 1.
9525 (df_insn_delete): Likewise.
9526 (df_insn_rescan): Likewise.
9527 (df_insn_rescan_debug_internal): Likewise.
9528 (df_insn_change_bb): Likewise.
9529 (df_notes_rescan): Likewise.
9530 * rtl.h (remove_death): Likewise for param 2.
9531 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9533 * sched-int.h (reemit_notes): Strengthen param from rtx to
9535 * valtrack.h (propagate_for_debug): Likewise for param 1.
9537 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9538 local "tmp_rtx" from const_rtx to const rtx_insn *.
9539 * combine.c (remove_death): Strengthen param "insn" from rtx to
9541 (move_deaths): Likewise for local "where_dead".
9542 * cse.c (delete_trivially_dead_insns): Introduce local
9543 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9544 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9546 (df_reg_defined): Likewise.
9547 (df_find_use): Likewise.
9548 (df_reg_used): Likewise.
9549 (df_dump_insn_problem_data): Strengthen param "insn" from
9550 const_rtx to const rtx_insn *.
9551 (df_dump_insn_top): Likewise.
9552 (df_dump_insn_bottom): Likewise.
9553 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9554 (df_insn_debug_regno): Likewise.
9555 (debug_df_insn): Likewise.
9556 (DF_REF_INSN): Delete.
9557 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9558 from rtx to rtx_insn *.
9559 (df_chain_insn_top_dump): Strengthen param "insn" from
9560 const_rtx to const rtx_insn *.
9561 (df_chain_insn_bottom_dump): Likewise.
9562 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9564 (df_word_lr_simulate_uses): Likewise.
9565 (df_print_note): Likewise.
9566 (df_remove_dead_and_unused_notes): Likewise.
9567 (df_set_unused_notes_for_mw): Likewise.
9568 (df_set_dead_notes_for_mw): Likewise.
9569 (df_create_unused_note): Likewise.
9570 (df_simulate_find_defs): Likewise.
9571 (df_simulate_find_uses): Likewise.
9572 (df_simulate_find_noclobber_defs): Likewise.
9573 (df_simulate_defs): Likewise.
9574 (df_simulate_uses): Likewise.
9575 (df_simulate_one_insn_backwards): Likewise.
9576 (df_simulate_one_insn_forwards): Likewise.
9577 (df_md_simulate_one_insn): Likewise.
9578 * df-scan.c (df_uses_create): Likewise.
9579 (df_insn_create_insn_record): Likewise.
9580 (df_insn_delete): Likewise.
9581 (df_insn_rescan): Likewise.
9582 (df_insn_rescan_debug_internal): Likewise.
9583 (df_insn_change_bb): Likewise.
9584 (df_notes_rescan): Likewise.
9585 (df_refs_add_to_chains): Likewise.
9586 (df_insn_refs_verify): Likewise.
9587 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
9588 when invoking df_insn_delete.
9589 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
9590 (set_unique_reg_note): Add checked cast.
9591 * final.c (cleanup_subreg_operands): Likewise.
9592 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
9593 "insn" from rtx to rtx_insn *.
9594 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
9595 "last" from rtx to rtx_insn *.
9596 * ira-emit.c (change_regs_in_insn): New function.
9597 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9598 Invoke change_regs_in_insn rather than change_regs.
9599 * ira.c (update_equiv_regs): Strengthen locals "insn",
9600 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
9601 for_each_rtx_in_insn rather than for_each_rtx.
9602 * recog.c (confirm_change_group): Add checked casts.
9603 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9605 (peep2_fill_buffer): Add checked cast.
9606 * rtlanal.c (remove_note): Likewise.
9607 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9608 locals "next" "end" from rtx to rtx_insn *.
9610 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9612 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9614 (struct reg_use_data): Likewise for field "insn".
9615 (insn_cost): Likewise for param.
9616 (real_insn_for_shadow): Likewise for return type and param.
9617 (increase_insn_priority): Likewise for param 1.
9618 (debug_dependencies): Likewise for both params.
9620 * haifa-sched.c (insn_delay): Likewise for param "insn".
9621 (real_insn_for_shadow): Likewise for return type and param "insn".
9622 (update_insn_after_change): Likewise for param "insn".
9623 (recompute_todo_spec): Likewise for param "next" and locals "pro",
9625 (insn_cost): Likewise for param "insn".
9626 (increase_insn_priority): Likewise.
9627 (calculate_reg_deaths): Likewise.
9628 (setup_insn_reg_pressure_info): Likewise.
9629 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
9630 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
9631 (model_recompute): Likewise.
9632 (must_restore_pattern_p): Likewise for param "next".
9633 (model_excess_cost): Likewise for param "insn".
9634 (queue_remove): Likewise.
9635 (adjust_priority): Likewise for param "prev".
9636 (update_register_pressure): Likewise for param "insn".
9637 (setup_insn_max_reg_pressure): Likewise for local "insn".
9638 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
9639 (model_add_to_schedule): Likewise.
9640 (model_reset_queue_indices): Likewise for local "insn".
9641 (unschedule_insns_until): Strengthen local "recompute_vec" from
9642 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
9643 "con" from rtx to rtx_insn *.
9644 (restore_last_backtrack_point): Likewise for both locals "x". Add
9646 (estimate_insn_tick): Likewise for param "insn".
9647 (commit_schedule): Likewise for params "prev_head", "tail" and
9649 (verify_shadows): Likewise for locals "i1", "i2".
9650 (dump_insn_stream): Likewise for params "head", "tail" and locals
9651 "next_tail", "insn".
9652 (schedule_block): Likewise for locals "insn", "x". Add a checked
9654 (fix_inter_tick): Likewise for params "head", "tail".
9655 (create_check_block_twin): Likewise for local "jump".
9656 (haifa_change_pattern): Likewise for param "insn".
9657 (haifa_speculate_insn): Likewise.
9658 (dump_new_block_header): Likewise for params "head", "tail".
9659 (fix_jump_move): Likewise for param "jump".
9660 (move_block_after_check): Likewise.
9661 (sched_init_insn_luid): Likewise for param "insn".
9662 (sched_init_luids): Likewise for local "insn".
9663 (insn_luid): Likewise for param "insn".
9664 (init_h_i_d): Likewise.
9665 (haifa_init_h_i_d): Likewise for local "insn".
9666 (haifa_init_insn): Likewise for param "insn".
9667 * sched-deps.c (add_dependence): Likewise for local "real_pro",
9669 (create_insn_reg_use): Likewise for param "insn".
9670 (setup_insn_reg_uses): Likewise. Add a checked cast.
9671 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
9672 "tail" from rtx to rtx_insn *.
9673 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
9674 "insn", "next_tail".
9676 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9678 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
9679 from rtx to rtx_insn *.
9680 (model_add_to_schedule): Likewise for locals "start", "end",
9683 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9685 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
9687 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
9688 "to" and locals "insn", "next", "copy". Remove now-redundant
9691 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9693 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
9694 rtx_insn * and param 4 from rtx * to rtx_insn **.
9695 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
9696 param 2 from rtx * to rtx_insn **.
9698 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
9699 rtx_insn * and final param from rtx * to rtx_insn **.
9701 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
9702 from rtx to rtx_insn *.
9703 (try_head_merge_bb): Likewise for both locals named "move_upto".
9704 * df-problems.c (can_move_insns_across): Likewise for params
9705 "from", "to", "across_from", "across_to" and locals "insn",
9706 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
9708 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
9709 from rtx to rtx_insn *.
9710 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
9711 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
9712 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
9714 (noce_try_abs): Likewise.
9715 (noce_get_condition): Likewise for param "jump". Strengthen param
9716 "earliest" from rtx * to rtx_insn **.
9717 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
9719 (find_cond_trap): Likewise.
9720 (dead_or_predicable): Likewise for local "earliest".
9721 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
9723 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
9724 and local "prev". Strengthen param "earliest" from rtx * to
9726 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
9727 Strengthen param "earliest" from rtx * to rtx_insn **.
9729 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9731 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
9732 "to" and local "insn" from rtx to rtx_insn *.
9734 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9736 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
9737 from rtx to rtx_insn *.
9738 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
9739 (code_motion_path_driver): Likewise for local "last_insn".
9740 (simplify_changed_insns): Likewise for local "insn".
9742 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9744 * rtl.h (push_to_sequence): Strengthen param from rtx to
9746 (push_to_sequence2): Likewise for both params.
9747 (delete_insns_since): Likewise for param.
9748 (reorder_insns_nobb): Likewise for all three params.
9749 (set_new_first_and_last_insn): Likewise for both params.
9751 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
9752 rtx_insn *. Remove now-redundant cast.
9753 (set_last_insn): Likewise.
9755 * builtins.c (expand_builtin_return): Strengthen local
9756 "call_fusage" from rtx to rtx_insn *.
9757 * cfgrtl.c (create_basic_block_structure): Likewise for local
9759 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
9760 "first", "last" and local "insn".
9761 (delete_insns_since): Likewise for param "from".
9762 (reorder_insns_nobb): Likewise for params "from", "to", "after"
9764 (push_to_sequence): Likewise for param "first" and local "last".
9765 (push_to_sequence2): Likewise for params "first" and "last".
9766 * lra.c (emit_add3_insn): Likewise for local "last".
9767 (lra_emit_add): Likewise.
9768 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
9770 (process_address_1): Likewise for locals "insn", last".
9771 * modulo-sched.c (ps_first_note): Likewise for return type.
9772 * optabs.c (expand_binop_directly): Likewise for param "last".
9774 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9776 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
9778 * emit-rtl.c (get_last_insn_anywhere): Likewise.
9780 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9782 * function.h (struct sequence_stack): Strengthen fields "first"
9783 and "last" from rtx to rtx_insn *.
9784 (struct emit_status): Likewise for fields "x_first_insn" and
9787 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
9788 (set_first_insn): Add checked cast.
9789 (get_last_insn): Remove now-redundant checked cast.
9790 (set_last_insn): Add checked cast.
9792 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
9793 "saved_first" and "saved_last" from rtx to rtx_insn *.
9795 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9797 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
9798 (unlink_insn_chain): Strengthen both params from rtx to
9801 * cfgrtl.c (cfg_layout_function_header): Likewise for this
9803 (unlink_insn_chain): Likewise for params "first" and "last".
9804 Remove now-redundant checked cast.
9805 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
9806 (fixup_reorder_chain): Strengthen local "insn" from rtx to
9808 * emit-rtl.c (link_insn_into_chain): Likewise for all three
9810 (add_insn): Likewise for param "insn" and local "prev".
9811 (add_insn_after_nobb): Likewise for both params and local "next".
9812 (add_insn_before_nobb): Likewise for both params and local "prev".
9813 (add_insn_after): Rename param "after" to "uncast_after",
9814 introducing local "after" with another checked cast.
9815 (add_insn_before): Rename params "insn" and "before", giving them
9816 "uncast_" prefixes, adding the old names back using checked casts.
9817 (emit_note_after): Likewise for param "after".
9818 (emit_note_before): Likewise for param "before".
9819 (emit_label): Add a checked cast.
9821 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9823 * cselib.h (cselib_record_sets_hook): Strengthen initial param
9824 "insn" from rtx to rtx_insn *.
9826 * cselib.c (cselib_record_sets_hook): Likewise.
9828 * var-tracking.c (add_with_sets): Likewise, renaming back from
9829 "uncast_insn" to "insn" and eliminating the checked cast from rtx
9832 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9834 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
9835 and "header_" from rtx to rtx_insn *.
9836 (struct basic_block_d): Likewise for field "head_" within "x"
9837 field of union basic_block_il_dependent.
9838 (BB_HEAD): Drop function...
9839 (SET_BB_HEAD): ...and this function in favor of...
9840 (BB_HEAD): ...reinstate macro.
9841 (BB_END): Drop function...
9842 (SET_BB_END): ...and this function in favor of...
9843 (BB_END): ...reinstate macro.
9844 (BB_HEADER): Drop function...
9845 (SET_BB_HEADER): ...and this function in favor of...
9846 (BB_HEADER): ...reinstate macro.
9848 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
9849 (fix_crossing_unconditional_branches): Likewise.
9850 * caller-save.c (save_call_clobbered_regs): Likewise.
9851 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
9852 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
9853 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9854 (merge_blocks_move_successor_nojumps): Likewise.
9855 (outgoing_edges_match): Update use of for_each_rtx to
9856 for_each_rtx_in_insn.
9857 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
9858 (expand_gimple_cond): Likewise.
9859 (expand_gimple_tailcall): Likewise.
9860 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
9862 (construct_exit_block): Drop use of SET_BB_END.
9863 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
9865 (delete_insn): Rename param "insn" to "uncast_insn", introducing
9866 a new local "insn" with a checked cast to rtx_insn *. Drop use of
9867 SET_BB_HEAD and SET_BB_END.
9868 (create_basic_block_structure): Drop use of SET_BB_HEAD and
9870 (rtl_delete_block): Drop use of SET_BB_HEAD.
9871 (rtl_split_block): Drop use of SET_BB_END.
9872 (emit_nop_for_unique_locus_between): Likewise.
9873 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
9874 (block_label): Drop use of SET_BB_HEAD.
9875 (fixup_abnormal_edges): Drop use of SET_BB_END.
9876 (record_effective_endpoints): Drop use of SET_BB_HEADER.
9877 (relink_block_chain): Likewise.
9878 (fixup_reorder_chain): Drop use of SET_BB_END.
9879 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
9880 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
9881 rtx_insn **. Drop use of SET_BB_HEADER.
9882 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
9884 (BB_HEAD): Delete this function.
9885 (SET_BB_HEAD): Likewise.
9887 (SET_BB_END): Likewise.
9888 (BB_HEADER): Likewise.
9889 (SET_BB_HEADER): Likewise.
9890 * emit-rtl.c (add_insn_after): Rename param "insn" to
9891 "uncast_insn", adding a new local "insn" and a checked cast to
9892 rtx_insn *. Drop use of SET_BB_END.
9893 (remove_insn): Strengthen locals "next" and "prev" from rtx to
9894 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
9895 (reorder_insns): Drop use of SET_BB_END.
9896 (emit_insn_after_1): Strengthen param "first" and locals "last",
9897 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
9898 (emit_pattern_after_noloc): Add checked cast.
9899 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
9900 (restore_other_notes): Likewise.
9901 (move_insn): Likewise.
9902 (sched_extend_bb): Likewise.
9903 (fix_jump_move): Likewise.
9904 * ifcvt.c (noce_process_if_block): Likewise.
9905 (dead_or_predicable): Likewise.
9906 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
9907 * reg-stack.c (change_stack): Drop use of SET_BB_END.
9908 * sel-sched-ir.c (sel_move_insn): Likewise.
9909 * sel-sched.c (move_nop_to_previous_block): Likewise.
9911 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
9913 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9915 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9917 * basic-block.h (create_basic_block_structure): Strengthen params
9918 1 "head" and 2 "end" from rtx to rtx_insn *.
9919 * cfgrtl.c (create_basic_block_structure): Likewise.
9920 (rtl_create_basic_block): Update casts from void * to rtx to
9921 rtx_insn *, so that we can pass them as rtx_insn * to
9922 create_basic_block_structure.
9923 * sel-sched-ir.c (sel_create_basic_block): Likewise.
9925 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9927 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
9929 (check_for_inc_dec): Strengthen param "insn" from rtx to
9932 * cselib.h (cselib_process_insn): Likewise.
9934 * cselib.c (cselib_record_sets): Likewise.
9935 (cselib_process_insn): Likewise.
9937 * dse.c (struct insn_info): Likewise for field "insn".
9938 (check_for_inc_dec_1): Likewise for local "insn".
9939 (check_for_inc_dec): Likewise for param "insn".
9940 (scan_insn): Likewise.
9941 (dse_step1): Likewise for local "insn".
9943 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
9944 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
9946 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9948 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
9949 from rtx to rtx_insn *.
9950 (DEP_PRO): Delete this function and...
9951 (SET_DEP_PRO): ...this function in favor of...
9952 (DEP_PRO): ...reinstate this macro.
9953 (DEP_CON): Delete this function and...
9954 (SET_DEP_CON): ...this function in favor of...
9955 (DEP_CON): ...reinstate this old macro.
9956 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
9957 (init_dep): Likewise.
9958 (set_priorities): Likewise for both params.
9959 (sd_copy_back_deps): Likewise for params 1 and 2.
9961 * haifa-sched.c (priority): Likewise for param "insn" and local
9963 (set_priorities): Likewise for params "head" and "tail" and local
9965 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
9967 (add_to_speculative_block): Add a checked cast.
9968 (create_check_block_twin): Drop use of SET_DEP_CON.
9969 (add_jump_dependencies): Strengthen params "insn" and "jump" from
9972 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
9973 Drop use of SET_DEP_PRO
9974 (init_dep): Strengthen params "pro" and "con" from rtx to
9976 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
9980 (SET_DEP_PRO): Delete.
9981 (SET_DEP_CON): Delete.
9983 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9985 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
9986 from rtx to rtx_insn *.
9987 (VINSN_INSN_RTX): Eliminate rvalue function and...
9988 (SET_VINSN_INSN): ...lvalue function in favor of...
9989 (VINSN_INSN_RTX): reinstate this old macro.
9991 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
9992 in favor of VINSN_INSN_RTX.
9993 (VINSN_INSN_RTX): Delete this function.
9994 (SET_VINSN_INSN_RTX): Likewise.
9996 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9998 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
9999 (BND_TO): Delete this function and...
10000 (SET_BND_TO): ...this functions in favor of...
10001 (BND_TO): ...reinstating this macro.
10002 (struct _fence): Strengthen field "executing_insns" from
10003 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
10004 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10005 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10006 and param "insn" from rtx to insn_t.
10007 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10010 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10012 (rtx_vec_t): Likewise.
10013 (struct sched_deps_info_def): Strengthen param of "start_insn"
10014 callback from rtx to rtx_insn *. Likewise for param "insn2" of
10015 "note_mem_dep" callback and first param of "note_dep" callback.
10017 * haifa-sched.c (add_to_speculative_block): Strengthen param
10018 "insn" from rtx to rtx_insn *.
10019 (clear_priorities): Likewise.
10020 (calc_priorities): Likewise for local "insn".
10022 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10023 Remove redundant checked cast.
10024 (haifa_note_mem_dep): Likewise for param "pending_insn".
10025 (haifa_note_dep): Likewise for param "elem".
10026 (note_mem_dep): Likewise for param "e".
10027 (sched_analyze_1): Add checked casts.
10028 (sched_analyze_2): Likewise.
10030 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10031 from rtx to rtx_insn *.
10032 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10033 from vec<rtx> * to vec<rtx_insn *> *.
10035 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10037 (flist_add): Strengthen param "executing_insns" from
10038 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10039 (advance_deps_context): Remove now-redundant checked cast.
10040 (init_fences): Replace uses of NULL_RTX with NULL.
10041 (merge_fences): Strengthen params "last_scheduled_insn" and
10042 "sched_next" from rtx to rtx_insn * and "executing_insns" from
10043 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10044 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10045 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10046 an instruction, rather than doing double-duty as a pattern.
10047 (return_nop_to_pool): Update for change of insn_t.
10048 (deps_init_id): Remove now-redundant checked cast.
10049 (struct sched_scan_info_def): Strengthen param of "init_insn"
10050 callback from rtx to insn_t.
10051 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10052 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10054 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10055 "end" from rtx to rtx_insn *.
10056 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10057 (rtx insn_rtx, bool force_unique_p)
10058 (BND_TO): Delete function.
10059 (SET_BND_TO): Delete function.
10061 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10063 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10064 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10066 (undo_transformations): Likewise for param "insn".
10067 (update_liveness_on_insn): Likewise.
10068 (compute_live_below_insn): Likewise for param "insn" and local
10070 (update_data_sets): Likewise for param "insn".
10071 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10072 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10073 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10075 (move_cond_jump): Likewise for param "insn".
10076 (move_cond_jump): Drop use of SET_BND_TO.
10077 (compute_av_set_on_boundaries): Likewise.
10078 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10079 (update_and_record_unavailable_insns): Strengthen local "bb_end"
10080 from rtx to rtx_insn *.
10081 (maybe_emit_renaming_copy): Likewise for param "insn".
10082 (maybe_emit_speculative_check): Likewise.
10083 (handle_emitting_transformations): Likewise.
10084 (remove_insn_from_stream): Likewise.
10085 (code_motion_process_successors): Strengthen local "succ" from rtx
10088 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10090 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10091 ilist_t, not _xlist_t;
10092 (ILIST_INSN): Define in terms of new union field "insn".
10093 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10095 (struct _list_node): Add new field "insn" to the union, of type
10097 (ilist_add): Replace macro with an inline function, requiring an
10099 (ilist_remove): Define this macro directly in terms of
10100 _list_remove, rather than indirectly via _xlist_remove.
10101 (ilist_clear): Likewise, in terms of _list_clear rather than
10103 (ilist_is_in_p): Replace macro with an inline function, requiring
10105 (_list_iter_cond_insn): New function.
10106 (ilist_iter_remove): Define this macro directly in terms of
10107 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
10108 (ilist_iterator): Define directly in terms of _list_iterator
10109 rather than indirectly through _xlist_iterator.
10110 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
10111 than in terms of _FOR_EACH_X.
10112 (FOR_EACH_INSN_1): Likewise.
10114 2014-08-26 Joseph Myers <joseph@codesourcery.com>
10118 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
10119 DECL_HARD_REGISTER and return for invalid register specifications.
10120 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
10121 DECL_HARD_REGISTER, call expand_one_error_var.
10122 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
10123 CC_REGNUM with non-MODE_CC modes.
10124 (arm_regno_class): Return NO_REGS for PC_REGNUM.
10126 2014-08-26 Marek Polacek <polacek@redhat.com>
10129 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
10131 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
10133 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10134 qi cost; add di cost.
10135 (cortexa57_addrcost_table): Likewise.
10137 2014-08-26 Marek Polacek <polacek@redhat.com>
10140 * expr.c (is_aligning_offset): Remove logical not.
10142 2014-08-26 Marek Polacek <polacek@redhat.com>
10145 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10146 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10148 2014-08-26 Richard Biener <rguenther@suse.de>
10150 PR tree-optimization/62175
10151 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10152 expand possibly trapping operations.
10154 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10156 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10157 "insn" from rtx to rtx_insn *.
10158 (permute_load): Likewise for param "insn".
10159 (permute_store): Likewise.
10160 (handle_special_swappables): Likewise for local "insn".
10161 (replace_swap_with_copy): Likewise for locals "insn" and
10163 (rs6000_analyze_swaps): Likewise for local "insn".
10165 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10167 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10170 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10172 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10173 "note_list" from rtx to rtx_insn *.
10174 (BB_NOTE_LIST): Replace this function and...
10175 (SET_BB_NOTE_LIST): ...this function with...
10176 (BB_NOTE_LIST): ...the former macro implementation.
10178 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10179 local "from_start" from rtx to rtx_insn *. Strengthen param
10180 "to_endp" from rtx * to rtx_insn **.
10182 * haifa-sched.c (concat_note_lists): Likewise.
10183 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10185 (sel_restore_notes): Likewise.
10186 (move_bb_info): Likewise.
10187 (BB_NOTE_LIST): Delete this function.
10188 (SET_BB_NOTE_LIST): Delete this function.
10189 * sel-sched.c (create_block_for_bookkeeping): Eliminate
10190 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10192 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10194 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10195 from rtx * to rtx_insn **.
10196 (reorder2): Likewise.
10197 (dependencies_evaluation_hook): Strengthen params "head", "tail"
10198 from rtx to rtx_insn *.
10200 * doc/tm.texi: Update mechanically for above change to target.def.
10202 * sched-int.h (note_list): Strengthen this variable from rtx to
10204 (remove_notes): Likewise for both params.
10205 (restore_other_notes): Likewise for return type and first param.
10206 (struct ready_list): Strengthen field "vec" from rtx * to
10208 (struct dep_replacement): Strenghten field "insn" from rtx to
10210 (struct deps_desc): Likewise for fields "last_debug_insn",
10212 (struct haifa_sched_info): Likewise for callback field
10213 "can_schedule_ready_p"'s param, for first param of "new_ready"
10214 callback field, for both params of "rank" callback field, for
10215 first field of "print_insn" callback field (with a const), for
10216 both params of "contributes_to_priority" callback, for param
10217 of "insn_finishes_block_p" callback, for fields "prev_head",
10218 "next_tail", "head", "tail", for first param of "add_remove_insn"
10219 callback, for first param of "begin_schedule_ready" callback, for
10220 both params of "begin_move_insn" callback, and for second param
10221 of "advance_target_bb" callback.
10222 (add_dependence): Likewise for params 1 and 2.
10223 (sched_analyze): Likewise for params 2 and 3.
10224 (deps_analyze_insn): Likewise for param 2.
10225 (ready_element): Likewise for return type.
10226 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10227 (try_ready): Strenghten param from rtx to rtx_insn *.
10228 (sched_emit_insn): Likewise for return type.
10229 (record_delay_slot_pair): Likewise for params 1 and 2.
10230 (add_delay_dependencies): Likewise for param.
10231 (contributes_to_priority): Likewise for both params.
10232 (find_modifiable_mems): Likewise.
10234 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
10235 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
10236 "first_older_only_insn" from rtx to rtx_insn *.
10237 (arm_sched_reorder): Strengthen param "ready" from rtx * to
10240 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
10241 "last_scheduled_iter0" from rtx to rtx_insn *.
10242 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
10243 (c6x_sched_reorder_1): Strengthen param "ready" and locals
10244 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10245 "insn" from rtx to rtx_insn *.
10246 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
10248 (c6x_sched_reorder2): Strengthen param "ready" and locals
10249 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10250 "insn" from rtx to rtx_insn *.
10251 (c6x_variable_issue): Add a checked cast when assigning from insn
10252 to ss.last_scheduled_iter0.
10253 (split_delayed_branch): Strengthen param "insn" and local "i1"
10254 from rtx to rtx_insn *.
10255 (split_delayed_nonbranch): Likewise.
10256 (undo_split_delayed_nonbranch): Likewise for local "insn".
10257 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
10258 "entry_after", "end_packet", "head_insn", "tail_insn",
10259 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
10260 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
10261 to rtx_insn **. Remove now-redundant checked cast on last_insn,
10262 but add a checked cast on loop->start_label. Consolidate calls to
10263 avoid assigning result of gen_spkernel to "insn", now an
10266 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
10267 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
10269 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
10270 rtx_insn **. Strengthen locals "top", "next" from rtx to
10272 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
10273 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
10274 (add_parameter_dependencies): Strengthen params "call", "head" and
10275 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
10276 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
10277 (add_dependee_for_func_arg): Likewise for param "arg" and local
10279 (ix86_dependencies_evaluation_hook): Likewise for params "head",
10280 "tail" and locals "insn", "first_arg".
10282 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
10283 for params "head", "tail" and locals "insn", "next", "next_tail".
10284 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
10285 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
10286 "insn", "lowest", "highest" from rtx to rtx_insn *.
10287 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
10289 (ia64_sched_reorder2): Likewise.
10291 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
10292 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
10293 from rtx * to rtx_insn **.
10294 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
10296 (mep_print_sched_insn): Strengthen param "insn" from rtx to
10298 (mep_sched_reorder): Strengthen param "ready" from rtx * to
10299 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
10302 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
10303 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
10305 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
10306 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
10307 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
10309 (vr4130_reorder): Likewise.
10310 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
10312 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
10314 (mips_sched_reorder): Likewise.
10315 (mips_sched_reorder2): Likewise.
10317 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
10319 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
10320 Strengthen local "tmp" from rtx to rtx_insn *.
10321 (rs6000_sched_reorder2): Likewise.
10323 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
10324 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
10325 (s390_sched_reorder): Strengthen param "ready" from rtx * to
10326 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
10328 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
10329 "tmp2" from rtx to rtx_insn *.
10330 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
10331 Strengthen local "insn" from rtx to rtx_insn *.
10332 (ready_reorder): Strengthen param "ready" from rtx * to
10333 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
10334 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
10335 (sh_reorder2): Likewise.
10337 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
10338 local "insn" from rtx to rtx_insn *.
10340 * haifa-sched.c (note_list): Strengthen this variable from rtx to
10342 (scheduled_insns): Strengthen this variable from vec<rtx> to
10344 (set_modulo_params): Likewise for locals "i1", "i2".
10345 (record_delay_slot_pair): Likewise for params "i1", "i2".
10346 (add_delay_dependencies): Likewise for param "insn".
10347 (cond_clobbered_p): Likewise.
10348 (recompute_todo_spec): Likewise for local "prev".
10349 (last_scheduled_insn): Likewise for this variable.
10350 (nonscheduled_insns_begin): Likewise.
10351 (model_set_excess_costs): Strengthen param "insns" from rtx * to
10353 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
10355 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
10356 Strengthen local "insn" from rtx to rtx_insn *.
10357 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
10358 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10359 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
10360 (ready_remove_first): Likewise for return type and local "t".
10361 (ready_element): Likewise for return type.
10362 (ready_remove): Likewise for return type and local "t".
10363 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
10364 (check_clobbered_conditions): Strengthen local "x" from rtx to
10365 rtx_insn *, adding a checked cast.
10366 (schedule_insn): Likewise for param "insn".
10367 (remove_notes): Likewise for params "head", "tail" and locals
10368 "next_tail", "insn", "next".
10369 (struct haifa_saved_data): Likewise for fields
10370 "last_scheduled_insn", "nonscheduled_insns_begin".
10371 (save_backtrack_point): Update for change to field "vec" of
10373 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
10375 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
10376 from rtx to rtx_insn *
10377 (resolve_dependencies): Strengthen param "insn" from rtx to
10379 (restore_other_notes): Likewise for return type, for param "head"
10380 and local "note_head".
10381 (undo_all_replacements): Likewise for local "insn".
10382 (first_nonscheduled_insn): Likewise for return type and local "insn".
10383 (queue_to_ready): Likewise for local "insn", adding checked casts.
10384 (early_queue_to_ready): Likewise for local "insn".
10385 (debug_ready_list_1): Strengthen local "p" from rtx * to
10387 (move_insn): Strengthen param "insn" and local "note" from rtx to
10389 (insn_finishes_cycle_p): Likewise for param "insn".
10390 (max_issue): Likewise for local "insn".
10391 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
10393 (commit_schedule): Strengthen param "prev_head" and local "insn"
10394 from rtx to rtx_insn *
10395 (prune_ready_list): Likewise for local "insn".
10396 (schedule_block): Likewise for locals "prev_head", "head", "tail",
10397 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
10398 (set_priorities): Likewise for local "prev_head".
10399 (try_ready): Likewise for param "next".
10400 (fix_tick_ready): Likewise.
10401 (change_queue_index): Likewise.
10402 (sched_extend_ready_list): Update for change to field "vec" of
10404 (generate_recovery_code): Strengthen param "insn" from rtx to
10406 (begin_speculative_block): Likewise.
10407 (create_check_block_twin): Likewise for param "insn" and locals
10408 "label", "check", "twin". Introduce local "check_pat" to avoid
10409 "check" being used as a plain rtx before being used as an insn.
10410 (fix_recovery_deps): Add a checked cast to rtx_insn * when
10411 extracting elements from ready_list.
10412 (sched_remove_insn): Strengthen param "insn" from rtx to
10414 (sched_emit_insn): Likewise for return type.
10415 (ready_remove_first_dispatch): Likewise for return type and local
10418 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
10420 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
10423 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
10424 from rtx to rtx_insn *.
10425 (add_dependence_list): Likewise for param "insn". Add a checked
10427 (add_dependence_list_and_free): Strengthen param "insn" from rtx
10428 to rtx_insn *. Strengthen param "list_p" from rtx * to
10430 (chain_to_prev_insn): Strengthen param "insn" and locals
10431 "prec_nonnote", "i" from rtx to rtx_insn *.
10432 (flush_pending_lists): Likewise for param "insn".
10433 (cur_insn): Likewise for this variable.
10434 (haifa_start_insn): Add a checked cast.
10435 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
10436 (sched_analyze_reg): Likewise for param "insn".
10437 (sched_analyze_1): Likewise.
10438 (sched_analyze_2): Likewise. Add checked casts.
10439 (sched_analyze_insn): Likewise. Also for local "prev".
10440 (deps_analyze_insn): Likewise for param "insn".
10441 (sched_analyze): Likewise for params "head", "tail" and local "insn".
10442 (add_dependence_1): Likewise for params "insn", "elem".
10443 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
10444 (parse_add_or_inc): Likewise for param "insn".
10445 (find_inc): Likewise for local "inc_cand".
10446 (find_modifiable_mems): Likewise for params "head", "tail" and
10447 locals "insn", "next_tail".
10449 * sched-ebb.c (init_ready_list): Likewise for local "insn".
10450 (begin_schedule_ready): Likewise for param "insn".
10451 (begin_move_insn): Likewise for params "insn" and "last".
10452 (ebb_print_insn): Strengthen param "insn" from const_rtx to
10454 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
10455 (ebb_contributes_to_priority): Likewise for params "next", "insn".
10456 (ebb_add_remove_insn): Likewise for param "insn".
10457 (advance_target_bb): Likewise.
10459 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
10461 (check_live): Likewise for param "insn".
10462 (init_ready_list): Likewise for local "insn".
10463 (can_schedule_ready_p): Likewise for param "insn".
10464 (begin_schedule_ready): Likewise.
10465 (new_ready): Likewise for param "next".
10466 (rgn_print_insn): Likewise for param "insn".
10467 (rgn_rank): Likewise for params "insn1", "insn2".
10468 (contributes_to_priority): Likewise for params "next", "insn".
10469 (rgn_insn_finishes_block_p): Likewise for param "insn".
10470 (add_branch_dependences): Likewise for params "head", "tail" and
10471 locals "insn", "last".
10472 (rgn_add_remove_insn): Likewise for param "insn".
10473 (advance_target_bb): Likewise.
10475 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
10476 const_rtx to const rtx_insn *.
10478 * sel-sched-dump.h (sel_print_insn): Likewise.
10480 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
10481 (deps_init_id): Likewise.
10483 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10484 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10487 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10489 * output.h (final_start_function): Strengthen param 1 from rtx to
10492 * final.c (final_start_function): Likewise, renaming back from
10493 "uncast_first" to "first", and dropping the checked cast from rtx
10496 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10498 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10499 * final.c (final): Likewise. Rename param back from
10500 "uncast_first" to "first" and eliminate the checked cast from rtx
10503 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10505 * output.h (shorten_branches): Strengthen param from rtx to
10508 * final.c (shorten_branches): Likewise, renaming param back from
10509 "uncast_first" to "first", and dropping the checked cast from rtx
10512 * genattr.c (gen_attr): Likewise when writing out the prototype of
10515 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10517 * sched-int.h (struct haifa_sched_info): Strengthen fields
10518 "prev_head" and "next_tail" from rtx to rtx_insn *.
10520 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10522 * rtl.h (rtx_jump_table_data::get_labels): New method.
10523 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10524 with use of the new rtx_jump_table_data::get_labels method.
10525 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10526 to rtx_jump_table_data *. Simplify by using get_labels method.
10527 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10528 a dyn_cast, introducing local "table", using it to replace
10529 label-lookup logic with a get_labels method call.
10530 (patch_jump_insn): Simplify using get_labels method.
10531 * dwarf2cfi.c (create_trace_edges): Likewise.
10532 * rtlanal.c (label_is_jump_target_p): Likewise.
10534 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10536 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10539 * emit-rtl.c (unshare_all_rtl_1): Likewise.
10540 (unshare_all_rtl_again): Likewise, also for local "p".
10542 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10544 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10546 * cfgrtl.c (delete_insn_and_edges): Likewise.
10548 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10550 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10551 from rtx to rtx_insn *.
10553 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10555 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10557 * function.c (thread_prologue_and_epilogue_insns): Likewise for
10558 locals "returnjump", "epilogue_end", "insn", "next".
10560 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10561 "returnjump" from rtx * to rtx_insn **.
10562 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10564 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10566 * basic-block.h (struct edge_def). Strengthen "r" within
10567 union edge_def_insns from rtx to rtx_insn *.
10569 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10570 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
10572 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10573 from rtx to rtx_insn *.
10574 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10576 * postreload-gcse.c (reg_killed_on_edge): Likewise.
10577 (reg_used_on_edge): Likewise.
10578 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
10579 (gt_pch_nx): New overload for rtx_insn *&.
10580 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
10581 from rtx to rtx_insn *.
10583 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10585 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
10586 from rtx to rtx_insn *.
10587 (BB_FOOTER): Replace function with access macro.
10588 (SET_BB_FOOTER): Delete.
10590 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
10592 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10593 (emit_barrier_after_bb): Likewise.
10594 (record_effective_endpoints): Likewise.
10595 (relink_block_chain): Likewise.
10596 (fixup_fallthru_exit_predecessor): Likewise.
10597 (cfg_layout_duplicate_bb): Likewise.
10598 (cfg_layout_split_block): Likewise.
10599 (cfg_layout_delete_block): Likewise.
10600 (cfg_layout_merge_blocks): Likewise.
10601 (BB_FOOTER): Delete function.
10602 (SET_BB_FOOTER): Delete function.
10603 * combine.c (update_cfg_for_uncondjump): Replace uses of
10604 SET_BB_FOOTER with BB_FOOTER.
10606 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10608 * except.h (struct eh_landing_pad_d): Strengthen field
10609 "landing_pad" from rtx to rtx_code_label *.
10611 * except.c (sjlj_emit_dispatch_table): Likewise for param
10613 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10615 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10617 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10618 first param from rtx to rtx_insn *.
10619 * config/xtensa/xtensa.c (struct machine_function): Likewise for
10620 field "set_frame_ptr_insn".
10621 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10622 "csend" from rtx to rtx_code_label *.
10623 (xtensa_expand_atomic): Likewise for local "csloop".
10624 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
10626 (xtensa_call_tls_desc): Likewise for return type and locals
10627 "call_insn", "insns".
10628 (xtensa_legitimize_tls_address): Likewise for local "insns".
10629 (xtensa_expand_prologue): Likewise for locals "insn", "first".
10631 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10633 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
10634 first param from rtx to rtx_insn *.
10635 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
10638 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10640 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
10641 Strengthen param 1 from rtx to rtx_insn *.
10642 (tilepro_output_cbranch): Likewise.
10643 (tilepro_adjust_insn_length): Likewise.
10644 (tilepro_final_prescan_insn): Likewise for sole param.
10646 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
10647 Likewise for local "last".
10648 (cbranch_predicted_p): Likewise for param "insn".
10649 (tilepro_output_simple_cbranch_with_opcode): Likewise.
10650 (tilepro_output_cbranch_with_opcode): Likewise.
10651 (tilepro_output_cbranch): Likewise.
10652 (frame_emit_load): Likewise for return type and locals "seq",
10654 (emit_sp_adjust): Likewise for return type and local "insn".
10655 (tilepro_expand_epilogue): Likewise for locals "last_insn",
10657 (tilepro_adjust_insn_length): Likewise for param "insn".
10658 (next_insn_to_bundle): Likewise for return type and params
10660 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
10661 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
10663 (match_addli_pcrel): Likewise for param "insn".
10664 (replace_addli_pcrel): Likewise.
10665 (match_auli_pcrel): Likewise.
10666 (replace_auli_pcrel): Likewise.
10667 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
10669 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10670 "queue", "next_queue", "prev".
10671 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
10672 (tilepro_final_prescan_insn): Likewise for param "insn".
10674 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10676 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
10677 Strengthen param 1 from rtx to rtx_insn *.
10678 (tilegx_output_cbranch): Likewise.
10679 (tilegx_adjust_insn_length): Likewise.
10680 (tilegx_final_prescan_insn): Likewise for sole param.
10682 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
10684 (cbranch_predicted_p): Likewise for param "insn".
10685 (tilegx_output_simple_cbranch_with_opcode): Likewise.
10686 (tilegx_output_cbranch_with_opcode): Likewise.
10687 (tilegx_output_cbranch): Likewise.
10688 (frame_emit_load): Likewise for return type.
10689 (set_frame_related_p): Likewise for locals "seq", "insn".
10690 (emit_sp_adjust): Likewise for return type, and for local "insn".
10691 Introduce local "pat" for use in place of "insn" where the latter
10692 isn't an instruction.
10693 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
10694 from rtx to rtx_insn *.
10695 (tilegx_adjust_insn_length): Likewise for param "insn".
10696 (next_insn_to_bundle): Likewise for return type and params "r" and
10698 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
10700 (replace_insns): Likewise for params "old_insn", "new_insns".
10701 (replace_mov_pcrel_step1): Likewise for param "insn" and local
10703 (replace_mov_pcrel_step2): Likewise.
10704 (replace_mov_pcrel_step3): Likewise.
10705 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
10707 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10708 "queue", "next_queue", "prev".
10709 (tilegx_output_mi_thunk): Likewise for local "insn".
10710 (tilegx_final_prescan_insn): Likewise for param "insn".
10712 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10714 * config/spu/spu.c (frame_emit_store): Strengthen return type from
10716 (frame_emit_load): Likewise.
10717 (frame_emit_add_imm): Likewise, also for local "insn".
10718 (spu_expand_prologue): Likewise for local "insn".
10719 (struct spu_bb_info): Likewise for field "prop_jump".
10720 (emit_nop_for_insn): Likewise for param "insn" and local
10722 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
10724 (spu_emit_branch_hint): Likewise for params "before", "branch" and
10725 locals "hint", "insn".
10726 (get_branch_target): Likewise for param "branch".
10727 (insn_clobbers_hbr): Likewise for param "insn".
10728 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
10729 locals "insn", "before_4", "before_16".
10730 (insert_hbrp): Likewise for local "insn".
10731 (spu_machine_dependent_reorg): Likewise for locals "branch",
10732 "insn", "next", "bbend".
10733 (uses_ls_unit): Likewise for param "insn".
10734 (get_pipe): Likewise.
10735 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
10736 introducing a checked cast.
10737 (spu_sched_adjust_cost): Likewise for params "insn" and
10739 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
10740 (spu_sms_res_mii): Likewise.
10742 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10744 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
10745 from rtx to rtx_insn *.
10746 (output_cbranch): Likewise for param 6.
10747 (output_return): Likewise for param 1.
10748 (output_sibcall): Likewise.
10749 (output_v8plus_shift): Likewise.
10750 (output_v8plus_mult): Likewise.
10751 (output_v9branch): Likewise for param 7.
10752 (output_cbcond): Likewise for param 3.
10754 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
10756 (sparc_legitimize_pic_address): Likewise.
10757 (sparc_emit_call_insn): Likewise.
10758 (emit_save_or_restore_regs): Likewise.
10759 (emit_window_save): Likewise for return type and local "insn".
10760 (sparc_expand_prologue): Likewise for local "insn".
10761 (sparc_flat_expand_prologue): Likewise.
10762 (output_return): Likewise for param "insn".
10763 (output_sibcall): Likewise for param "insn" and local "delay".
10764 (output_ubranch): Likewise for param "insn".
10765 (output_cbranch): Likewise.
10766 (output_cbcond): Likewise.
10767 (output_v9branch): Likewise.
10768 (output_v8plus_shift): Likewise.
10769 (sparc_output_mi_thunk): Likewise for local "insn".
10770 (get_some_local_dynamic_name): Likewise.
10771 (output_v8plus_mult): Likewise for param "insn".
10773 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10775 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
10776 from rtx to rtx_insn *.
10777 (output_branchy_insn): Likewise for param 3.
10778 (output_far_jump): Likewise for param 1.
10779 (final_prescan_insn): Likewise.
10780 (sh_insn_length_adjustment): Likewise for sole param.
10782 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
10783 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
10785 (sh_emit_compare_and_set): Likewise for local "lab".
10786 (output_far_jump): Strengthen param "insn" and local "prev" from
10788 (output_branchy_insn): Likewise for param "insn" and local
10790 (output_ieee_ccmpeq): Likewise for param "insn".
10791 (struct label_ref_list_d): Strengthen field "label" from rtx to
10793 (pool_node): Likewise.
10794 (pool_window_label): Likewise for this global.
10795 (add_constant): Likewise for return type and locals "lab", "new_rtx".
10796 (dump_table): Strengthen params "start", "barrier" and local
10797 "scan" from rtx to rtx_insn *.
10798 (broken_move): Likewise for param "insn".
10799 (untangle_mova): Likewise for params "first_mova" and "new_mova".
10800 Strengthen param "first_mova" from rtx * to rtx_insn **.
10801 (mova_p): Likewise for param "insn".
10802 (fixup_mova): Likewise for param "mova".
10803 (find_barrier): Likewise for return type, params "mova" and
10804 "from", and locals "barrier_before_mova", "found_barrier",
10805 "good_barrier", "orig", "last_symoff", "next". Strengthen local
10806 "label" from rtx to rtx_code_label *.
10807 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
10809 (sh_reorg): Likewise for locals "link", "scan", "barrier".
10810 (split_branches): Likewise for param "first" and local "insn".
10811 (final_prescan_insn): Likewise for param "insn".
10812 (sequence_insn_p): Likewise for locals "prev", "next".
10813 (sh_insn_length_adjustment): Likewise for param "insn".
10814 (sh_can_redirect_branch): Likewise for local "insn".
10815 (find_r0_life_regions): Likewise for locals "end", "insn".
10816 (sh_output_mi_thunk): Likewise for local "insns".
10818 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10820 * config/score/score.c (score_output_mi_thunk): Strengthen local
10821 "insn" from rtx to rtx_insn *.
10822 (score_prologue): Likewise.
10824 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10826 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
10827 1 from rtx to rtx_insn *.
10828 (s390_emit_jump): Likewise for return type.
10829 (s390_emit_call): Likewise.
10830 (s390_load_got): Likewise.
10832 * config/s390/s390.c (last_scheduled_insn): Likewise for this
10834 (s390_match_ccmode): Likewise for param "insn".
10835 (s390_emit_jump): Likewise for return type.
10836 (s390_split_branches): Likewise for local "label".
10837 (struct constant): Strengthen field "label" from rtx to
10839 (struct constant_pool): Likewise for field "label". Strengthen
10840 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
10842 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
10844 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
10845 (s390_end_pool): Likewise.
10846 (s390_dump_pool): Likewise for local "insn".
10847 (s390_mainpool_start): Likewise.
10848 (s390_chunkify_start): Likewise.
10849 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
10850 with insns. Strengthen locals "label", "jump", "barrier", "next",
10851 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
10852 (s390_chunkify_finish): Strengthen local "insn" from rtx to
10854 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
10855 "jump", "label", "next_insn".
10856 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
10857 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
10859 (s390_load_got): Likewise for return type and local "insns".
10860 (s390_save_gprs_to_fprs): Likewise for local "insn".
10861 (s390_restore_gprs_from_fprs): Likewise.
10862 (pass_s390_early_mach::execute): Likewise.
10863 (s390_emit_prologue): Likewise for local "insns".
10864 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
10866 (s390_emit_call): Strengthen return type and local "insn" from
10868 (s390_emit_tpf_eh_return): Likewise for local "insn".
10869 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
10870 "next_insn", introducing locals "s_pat", "rpat" to allow this.
10871 (s390_fix_long_loop_prediction): Likewise for param "insn" and
10873 (s390_non_addr_reg_read_p): Likewise for param "insn".
10874 (find_cond_jump): Likewise for return type and param "insn".
10875 (s390_swap_cmp): Likewise for param "insn".
10876 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
10877 "prev_insn", "next_insn".
10878 (s390_reorg): Likewise for locals "insn", "target".
10879 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
10880 (s390_sched_variable_issue): For now, rename param "insn" to
10881 "uncast_insn", introducing a checked cast.
10882 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
10884 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
10885 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
10887 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10889 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
10890 param from rtx to rtx_insn *.
10891 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
10893 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10895 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
10896 4 from rtx to rtx_insn *.
10897 (rs6000_final_prescan_insn): Likewise for first param.
10898 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
10900 (rs6000_get_some_local_dynamic_name): Likewise.
10901 (output_cbranch): Likewise for param "insn".
10902 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
10903 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
10904 (rs6000_emit_allocate_stack): Likewise for local "insn".
10905 (load_cr_save): Likewise.
10906 (restore_saved_cr): Likewise.
10907 (restore_saved_lr): Likewise.
10908 (emit_cfa_restores): Likewise.
10909 (rs6000_output_function_epilogue): Likewise for locals "insn" and
10910 "deleted_debug_label".
10911 (rs6000_output_mi_thunk): Likewise for local "insn".
10912 (rs6000_final_prescan_insn): Likewise for param "insn".
10914 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10916 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
10917 Strengthen param "insn" from rtx to rtx_insn *.
10918 * config/picochip/picochip.c (picochip_current_prescan_insn):
10919 Likewise for this variable.
10920 (picochip_final_prescan_insn): Likewise for param "insn".
10922 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10924 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
10925 from rtx to rtx_insn *.
10926 (pa_output_indirect_call): Likewise.
10927 (pa_adjust_insn_length): Likewise.
10928 (pa_attr_length_millicode_call): Likewise.
10929 (pa_attr_length_call): Likewise.
10930 (pa_attr_length_indirect_call): Likewise.
10932 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
10934 (pa_attr_length_millicode_call): Likewise.
10935 (pa_attr_length_call): Likewise.
10936 (pa_output_call): Likewise.
10937 (pa_attr_length_indirect_call): Likewise.
10938 (pa_output_indirect_call): Likewise.
10940 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10942 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
10943 Strengthen first param from rtx to rtx_insn *.
10944 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
10947 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10949 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
10950 type from rtx to rtx_insn *.
10951 (mips_expand_call): Likewise.
10952 (mips_adjust_insn_length): Likewise for first param.
10953 (mips_output_conditional_branch): Likewise.
10954 (mips_output_order_conditional_branch): Likewise.
10955 (mips_final_prescan_insn): Likewise.
10957 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
10958 rtx_insn * for the SEQUENCE case.
10959 (SEQ_END): Likewise.
10960 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
10961 (mips_emit_call_insn): Likewise, also for local "insn".
10962 (mips16_gp_pseudo_reg): Likewise for local "scan".
10963 (mips16_build_call_stub): Likewise for return type and for local
10964 "insn". Introduce a new local "pattern" so that "insn" can indeed
10966 (mips_expand_call): Strengthen return type and local "insn" from
10968 (mips_block_move_loop): Strengthen local "label" from rtx to
10970 (mips_expand_synci_loop): Likewise for locals "label",
10972 (mips_set_frame_expr): Strengthen local "insn" from rtx to
10974 (mips16e_collect_argument_saves): Likewise for locals "insn",
10976 (mips_find_gp_ref): Likewise for param of callback for "pred"
10977 param, and for local "insn".
10978 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
10979 (mips_insn_has_flexible_gp_ref_p): Likewise.
10980 (mips_epilogue_emit_cfa_restores): Likewise for return type and
10982 (mips_epilogue_set_cfa): Likewise for local "insn".
10983 (mips_expand_epilogue): Likewise.
10984 (mips_adjust_insn_length): Likewise for param "insn".
10985 (mips_output_conditional_branch): Likewise.
10986 (mips_output_order_conditional_branch): Likewise.
10987 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
10988 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
10989 "falu2_turn_enabled_insn".
10990 (mips_builtin_branch_and_move): Strengthen locals "true_label",
10991 "done_label" from rtx to rtx_code_label *.
10992 (struct mips16_constant): Likewise for field "label".
10993 (mips16_add_constant): Likewise for return type.
10994 (mips16_emit_constants_1): Strengthen return type and param "insn"
10995 from rtx to rtx_insn *.
10996 (mips16_emit_constants): Likewise for param "insn".
10997 (mips16_insn_length): Likewise.
10998 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
10999 to rtx_code_label *.
11000 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11001 from rtx to rtx_insn *.
11002 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11003 "jump". Strengthen local "label" from rtx to rtx_code_label *.
11004 (r10k_simplify_address): Strengthen param "insn" and local
11005 "def_insn" from rtx to rtx_insn *.
11006 (r10k_safe_address_p): Strengthen param "insn" from rtx to
11008 (r10k_needs_protection_p_1): Update target type of cast of data
11009 from to rtx to rtx_insn *.
11010 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11011 rtx * to rtx_insn **.
11012 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11014 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11015 (mips_call_expr_from_insn): Likewise for param "insn".
11016 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11017 (mips_find_pic_call_symbol): Likewise for param "insn".
11018 (mips_annotate_pic_calls): Likewise for local "insn".
11019 (mips_sim_insn): Likewise for this variable.
11020 (struct mips_sim): Likewise for field "insn" within elements of
11022 (mips_sim_wait_reg): Likewise for param "insn".
11023 (mips_sim_wait_regs): Likewise.
11024 (mips_sim_wait_units): Likewise.
11025 (mips_sim_wait_insn): Likewise.
11026 (mips_sim_issue_insn): Likewise.
11027 (mips_sim_finish_insn): Likewise.
11028 (mips_seq_time): Likewise for param "seq" and local "insn".
11029 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11030 locals "first", "second".
11031 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11032 "last", "last2", "next".
11033 (mips_avoid_hazard): Likewise for params "after", "insn".
11034 (mips_reorg_process_insns): Likewise for locals "insn",
11035 "last_insn", "subinsn", "next_insn".
11036 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11037 (mips16_split_long_branches): Likewise for locals "insn" "jump",
11039 (mips_output_mi_thunk): Likewise for local "insn".
11040 (mips_final_prescan_insn): Likewise for param "insn".
11042 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11044 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11045 Strengthen return type and local "insns" from rtx to rtx_insn *.
11046 (microblaze_legitimize_tls_address): Likewise for local "insns".
11047 (microblaze_block_move_loop): Strengthen local "label" from rtx
11048 to rtx_code_label *.
11049 (microblaze_expand_prologue): Strengthen two locals named "insn"
11050 from rtx to rtx_insn *.
11051 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11052 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11053 "insn". Strengthen locals "div_label", "div_end_label" from rtx
11054 to rtx_code_label *.
11056 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11058 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11059 param from rtx to rtx_insn *.
11060 (mep_reuse_lo): Likewise for third param.
11061 (mep_use_post_modify_p): Likewise for first param.
11062 (mep_core_address_length): Likewise.
11063 (mep_cop_address_length): Likewise.
11064 (mep_final_prescan_insn): Likewise.
11065 (mep_store_data_bypass_p): Likewise for both params.
11066 (mep_mul_hilo_bypass_p): Likewise.
11067 (mep_ipipe_ldc_p): Likewise for param.
11069 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11070 (mep_rewrite_mult): Likewise.
11071 (mep_rewrite_mulsi3): Likewise.
11072 (mep_rewrite_maddsi3): Likewise.
11073 (mep_reuse_lo_p_1): Likewise.
11074 (mep_reuse_lo_p): Likewise.
11075 (mep_frame_expr): Likewise.
11076 (mep_make_parallel): Likewise for both params.
11077 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11079 (mep_use_post_modify_p): Likewise for param "insn".
11080 (mep_core_address_length): Likewise.
11081 (mep_cop_address_length): Likewise.
11082 (mep_reg_set_in_function): Likewise for local "insn".
11083 (mep_asm_without_operands_p): Likewise.
11084 (F): Likewise for return type and param "x".
11085 (add_constant): Likewise for local "insn".
11086 (maybe_dead_move): Likewise for return type and local "insn".
11087 (mep_expand_prologue): Likewise for local "insn".
11088 (mep_final_prescan_insn): Likewise for param "insn".
11089 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11090 "next", "follow", "x".
11091 (mep_insert_repeat_label_last): Likewise for return type, param
11092 "last_insn", and locals "next", "prev". Strengthen param "label"
11093 from rtx to rtx_code_label *.
11094 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11096 (struct mep_doloop_end): Likewise for fields "insn" and
11098 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
11099 Strengthen local "repeat_label" from rtx to rtx_code_label *.
11100 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
11102 (mep_invert_branch): Likewise for params "insn" and "after".
11103 (mep_reorg_erepeat): Likewise for param "insns" and locals
11104 "insn", "prev", "new_last", "barrier", "user". Strengthen local
11105 "l" from rtx to rtx_code_label *.
11106 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
11107 from rtx to rtx_insn *.
11108 (mep_reorg_addcombine): Likewise for param "insns" and locals
11110 (add_sp_insn_p): Likewise for param "insn".
11111 (mep_reorg_noframe): Likewise for param "insns" and locals
11112 "start_frame_insn", "end_frame_insn", "next".
11113 (mep_reorg): Likewise for local "insns".
11114 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
11116 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
11117 (mep_mul_hilo_bypass_p): Likewise.
11118 (mep_ipipe_ldc_p): Likewise for param "insn".
11119 (mep_make_bundle): Likewise for return type, param "cop" and local
11120 "insn", splitting out the latter into a new local "seq" for when it
11121 is a SEQUENCE rather than an insn.
11122 (core_insn_p): Likewise for param "insn".
11123 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
11124 "last", "first", "note", "prev", "core_insn".
11126 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11128 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
11130 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
11131 (m68k_final_prescan_insn): Likewise for first param.
11133 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11134 (m68k_set_frame_related): Likewise for param "insn".
11135 (output_btst): Likewise for param "insn".
11136 (m68k_final_prescan_insn): Likewise.
11137 (m68k_move_to_reg): Likewise for local "insn".
11138 (m68k_call_tls_get_addr): Likewise for local "insns".
11139 (m68k_call_m68k_read_tp): Likewise.
11140 (strict_low_part_peephole_ok): Likewise for param "first_insn".
11141 (m68k_output_mi_thunk): Likewise for local "insn".
11143 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11145 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11146 first param from rtx to rtx_insn *.
11147 (iq2000_adjust_insn_length): Likewise.
11148 (iq2000_output_conditional_branch): Likewise.
11149 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11150 "insn" and local "nop_insn".
11151 (iq2000_annotate_frame_insn): Likewise for param "insn".
11152 (iq2000_expand_prologue): Likewise for both locals "insn".
11153 (iq2000_adjust_insn_length): Likewise for param "insn".
11154 (iq2000_output_conditional_branch): Likewise.
11156 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11158 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11159 "insns" from rtx to rtx_insn *.
11160 (ia64_emit_cond_move): Likewise for locals "insn", "first".
11161 (struct spill_fill_data): Likewise for field "init_after" and for
11162 elements of array field "prev_insn".
11163 (spill_restore_mem): Likewise for locals "insn", "first".
11164 (do_spill): Likewise for local "insn".
11165 (do_restore): Likewise.
11166 (ia64_expand_prologue): Likewise.
11167 (ia64_expand_epilogue): Likewise.
11168 (emit_insn_group_barriers): Likewise for locals "insn",
11170 (emit_all_insn_group_barriers): Likewise for locals "insn",
11172 (dfa_stop_insn): Likewise for this global.
11173 (dfa_pre_cycle_insn): Likewise.
11174 (ia64_nop): Likewise.
11175 (final_emit_insn_group_barriers): Likewise for locals "insn",
11177 (emit_predicate_relation_info): Likewise for locals "head", "n",
11179 (ia64_reorg): Likewise for local "insn".
11180 (ia64_output_mi_thunk): Likewise.
11181 (expand_vec_perm_interleave_2): Likewise for local "seq".
11183 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11185 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11186 param 1 "insn" from rtx to rtx_insn *.
11187 (ix86_use_lea_for_mov): Likewise.
11188 (ix86_avoid_lea_for_addr): Likewise.
11189 (ix86_split_lea_for_addr): Likewise.
11190 (ix86_lea_for_add_ok): Likewise.
11191 (ix86_output_call_insn): Likewise.
11193 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11194 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11195 (ix86_output_function_epilogue): Likewise for locals "insn",
11196 "deleted_debug_label".
11197 (legitimize_tls_address): Likewise for local "insn".
11198 (get_some_local_dynamic_name): Likewise.
11199 (increase_distance): Likewise for params "prev", "next".
11200 (distance_non_agu_define_in_bb): Likewise for params "insn",
11201 "start" and locals "prev", "next".
11202 (distance_non_agu_define): Likewise for param "insn".
11203 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11204 locals "next", "prev".
11205 (distance_agu_use): Likewise for param "insn".
11206 (ix86_lea_outperforms): Likewise.
11207 (ix86_ok_to_clobber_flags): Likewise.
11208 (ix86_avoid_lea_for_add): Likewise.
11209 (ix86_use_lea_for_mov): Likewise.
11210 (ix86_avoid_lea_for_addr): Likewise.
11211 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11212 (ix86_split_lea_for_addr): Likewise for param "insn".
11213 (ix86_lea_for_add_ok): Likewise for param "insn".
11214 (ix86_expand_carry_flag_compare): Likewise for local
11216 (ix86_expand_int_movcc): Likewise.
11217 (ix86_output_call_insn): Likewise for param "insn".
11218 (ix86_output_call_insn): Likewise for local "i".
11219 (x86_output_mi_thunk): Introduce local "insn", using it in place
11220 of "tmp" when dealing with insns.
11221 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11223 (ix86_pad_returns): Likewise for locals "ret", "prev".
11224 (ix86_count_insn_bb): Likewise for local "insn".
11225 (ix86_pad_short_function): Likewise for locals "ret", "insn".
11226 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11227 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11228 (expand_vec_perm_interleave2): Likewise for local "seq".
11229 (expand_vec_perm_vperm2f128_vblend): Likewise.
11230 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
11231 call to for_each_rtx with for_each_rtx_in_insn.
11233 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11235 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
11236 "label" from rtx to rtx_code_label *.
11237 (ix86_expand_prologue): Likewise.
11238 (ix86_expand_split_stack_prologue): Likewise for locals "label",
11240 (ix86_split_idivmod): Likewise for locals "end_label" and
11242 (ix86_expand_branch): Likewise for local "label2".
11243 (ix86_expand_aligntest): Likewise for return type and local "label".
11244 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
11246 (expand_movmem_epilogue): Likewise for the various locals named
11248 (expand_setmem_epilogue): Likewise.
11249 (expand_small_movmem_or_setmem): Likewise for local "label".
11250 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11251 Strengthen param "done_label" from rtx * to rtx_code_label **.
11252 Strengthen locals "loop_label" and "label" from rtx to
11254 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11255 Likewise for locals "loop_label", "label".
11256 (ix86_expand_set_or_movmem): Likewise for locals "label",
11257 "jump_around_label", "hot_label".
11258 (ix86_expand_strlensi_unroll_1): Likewise for locals
11259 "align_2_label", align_3_label", "align_4_label", "end_0_label",
11261 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
11262 (void ix86_emit_i387_log1p): Likewise for locals "label1",
11263 "label2", "jump_label".
11264 (ix86_expand_sse_compare_and_jump): Likewise for return type and
11266 (ix86_expand_lfloorceil): Likewise for local "label".
11267 (ix86_expand_rint): Likewise.
11268 (ix86_expand_floorceildf_32): Likewise.
11269 (ix86_expand_floorceil): Likewise.
11270 (ix86_expand_rounddf_32): Likewise.
11271 (ix86_expand_trunc): Likewise.
11272 (ix86_expand_truncdf_32): Likewise.
11273 (ix86_expand_round): Likewise.
11275 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11277 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
11278 first param from rtx to rtx_insn *.
11279 (h8300_insn_length_from_table): Likewise.
11280 * config/h8300/h8300.c (F): Likewise for return type and param
11282 (Fpa): Add a checked cast to rtx_insn *.
11283 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
11285 (final_prescan_insn): Likewise for param "insn".
11286 (h8300_binary_length): Likewise.
11287 (h8300_insn_length_from_table): Likewise.
11289 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11291 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
11292 Strengthen first param "insn" from rtx to rtx_insn *.
11294 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
11296 (frame_insn): Likewise for return type. Introduce local "insn"
11297 for use in place of local "x" for use as an rtx_insn *.
11298 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
11299 (epiphany_expand_prologue): Likewise for local "insn".
11300 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
11301 * config/epiphany/resolve-sw-modes.c
11302 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
11305 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11307 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
11308 param from rtx to rtx_insn *.
11309 (c6x_final_prescan_insn): Likewise for first param.
11311 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
11312 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
11313 (c6x_expand_compare): Strengthen local "insns" from rtx to
11315 (c6x_get_unit_specifier): Likewise for param "insn".
11316 (c6x_print_unit_specifier_field): Likewise.
11317 (c6x_final_prescan_insn): Likewise.
11318 (emit_add_sp_const): Likewise for local "insn".
11319 (c6x_expand_prologue): Likewise.
11321 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11323 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
11324 param 1 from rtx to rtx_insn *.
11325 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
11326 the various locals named "insn".
11327 (expand_epilogue_reg_restore): Likewise.
11328 (frame_related_constant_load): Likewise.
11329 (add_to_reg): Likewise.
11330 (emit_link_insn): Likewise.
11331 (do_link): Likewise.
11332 (expand_interrupt_handler_prologue): Likewise.
11333 (branch_dest): Likewise for param "branch".
11334 (asm_conditional_branch): Likewise for param "insn".
11335 (gen_one_bundle): Likewise for elements of param "slot" and local
11337 (bfin_gen_bundles): Likewise for locals "insn", "next" and
11338 elements of local "slot".
11339 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11340 "queue", "next_queue", "prev".
11341 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
11342 (add_sched_insns_for_speculation): Likewise for local "insn".
11344 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11346 * config/avr/avr-protos.h (output_movqi): Strengthen first param
11347 from rtx to rtx_insn *.
11348 (output_movhi): Likewise.
11349 (output_movsisf): Likewise.
11350 (avr_out_tstsi): Likewise.
11351 (avr_out_tsthi): Likewise.
11352 (avr_out_tstpsi): Likewise.
11353 (avr_out_compare): Likewise.
11354 (avr_out_compare64): Likewise.
11355 (avr_out_movpsi): Likewise.
11356 (ashlqi3_out): Likewise.
11357 (ashlhi3_out): Likewise.
11358 (ashlsi3_out): Likewise.
11359 (ashrqi3_out): Likewise.
11360 (ashrhi3_out): Likewise.
11361 (ashrsi3_out): Likewise.
11362 (lshrqi3_out): Likewise.
11363 (lshrhi3_out): Likewise.
11364 (lshrsi3_out): Likewise.
11365 (avr_out_ashlpsi3): Likewise.
11366 (avr_out_ashrpsi3): Likewise.
11367 (avr_out_lshrpsi3): Likewise.
11368 (avr_out_fract): Likewise.
11369 (avr_out_sbxx_branch): Likewise.
11370 (avr_out_round): Likewise.
11371 (avr_out_xload): Likewise.
11372 (avr_out_movmem): Likewise.
11373 (adjust_insn_length): Likewise.
11374 (avr_out_lpm): Likewise.
11375 (reg_unused_after): Likewise.
11376 (_reg_unused_after): Likewise.
11377 (avr_jump_mode): Likewise for second param.
11378 (jump_over_one_insn): Likewise for first param.
11379 (avr_final_prescan_insn): Likewise.
11380 (out_shift_with_cnt): Likewise for second param.
11382 * config/avr/avr.c (get_sequence_length): Likewise for param
11383 "insns" and local "insn".
11384 (emit_push_byte): Likewise for local "insn".
11385 (emit_push_sfr): Likewise.
11386 (avr_prologue_setup_frame): Likewise for locals "insn",
11387 "fp_plus_insns", "sp_plus_insns".
11388 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
11390 (avr_jump_mode): Likewise for param "insn".
11391 (avr_final_prescan_insn): Likewise.
11392 (avr_find_unused_d_reg): Likewise.
11393 (avr_out_lpm_no_lpmx): Likewise.
11394 (avr_out_lpm): Likewise.
11395 (avr_out_xload): Likewise.
11396 (output_movqi): Likewise.
11397 (output_movhi): Likewise.
11398 (out_movqi_r_mr): Likewise.
11399 (out_movhi_r_mr): Likewise.
11400 (out_movsi_r_mr): Likewise.
11401 (out_movsi_mr_r): Likewise.
11402 (output_movsisf): Likewise.
11403 (avr_out_load_psi): Likewise.
11404 (avr_out_store_psi): Likewise.
11405 (avr_out_movpsi): Likewise.
11406 (out_movqi_mr_r): Likewise.
11407 (avr_out_movhi_mr_r_xmega): Likewise.
11408 (out_movhi_mr_r): Likewise.
11409 (compare_condition): Likewise for param "insn" and local "next".
11410 (compare_sign_p): Likewise for param "insn".
11411 (compare_diff_p): Likewise.
11412 (compare_eq_p): Likewise.
11413 (avr_out_compare): Likewise.
11414 (avr_out_compare64): Likewise.
11415 (avr_out_tsthi): Likewise.
11416 (avr_out_tstpsi): Likewise.
11417 (avr_out_tstsi): Likewise.
11418 (out_shift_with_cnt): Likewise.
11419 (ashlqi3_out): Likewise.
11420 (ashlhi3_out): Likewise.
11421 (avr_out_ashlpsi3): Likewise.
11422 (ashlsi3_out): Likewise.
11423 (ashrqi3_out): Likewise.
11424 (ashrhi3_out): Likewise.
11425 (avr_out_ashrpsi3): Likewise.
11426 (ashrsi3_out): Likewise.
11427 (lshrqi3_out): Likewise.
11428 (lshrhi3_out): Likewise.
11429 (avr_out_lshrpsi3): Likewise.
11430 (lshrsi3_out): Likewise.
11431 (avr_out_fract): Likewise.
11432 (avr_out_round): Likewise.
11433 (avr_adjust_insn_length): Likewise.
11434 (reg_unused_after): Likewise.
11435 (_reg_unused_after): Likewise.
11436 (avr_compare_pattern): Likewise.
11437 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
11438 and locals "branch1", "branch2", "insn2", "jump".
11439 (avr_reorg): Likewise for local "insn".
11440 (avr_2word_insn_p): Likewise for param "insn".
11441 (jump_over_one_insn_p): Likewise.
11442 (avr_out_sbxx_branch): Likewise.
11443 (avr_out_movmem): Likewise.
11445 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11447 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
11448 param from rtx to rtx_insn *.
11449 (thumb1_final_prescan_insn): Likewise.
11450 (thumb2_final_prescan_insn): Likewise.
11452 * config/arm/arm.c (emit_set_insn): Strengthen return type from
11454 (struct minipool_node): Likewise for field "insn".
11455 (dump_minipool): Likewise for param "scan".
11456 (create_fix_barrier): Likewise for local "from". Strengthen local
11457 "label" from rtx to rtx_code_label *.
11458 (push_minipool_barrier): Strengthen param "insn" from rtx to
11460 (push_minipool_fix): Likewise.
11461 (note_invalid_constants): Likewise.
11462 (thumb2_reorg): Likewise for local "insn".
11463 (arm_reorg): Likewise.
11464 (thumb2_final_prescan_insn): Likewise for param
11465 "insn" and local "first_insn".
11466 (arm_final_prescan_insn): Likewise for param "insn" and locals
11467 "start_insn", "this_insn".
11468 (arm_debugger_arg_offset): Likewise for param "insn".
11469 (thumb1_emit_multi_reg_push): Likewise for return type and local
11471 (thumb1_final_prescan_insn): Likewise for param "insn".
11472 (thumb_far_jump_used_p): Likewise for local "insn".
11473 (thumb1_expand_prologue): Likewise.
11474 (arm_expand_epilogue_apcs_frame): Likewise.
11475 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
11476 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
11477 from rtx to rtx_code_label *.
11478 (arm_split_atomic_op): Likewise for local "label".
11479 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
11481 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11483 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11484 first param from rtx to rtx_insn *.
11485 (arc_verify_short): Likewise.
11486 (arc_short_long): Likewise.
11487 (arc_need_delay): Likewise.
11489 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11491 (arc_ccfsm_advance): Likewise for param "insn" and locals
11492 "start_insn", "this_insn".
11493 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11494 (arc_ccfsm_post_advance): Likewise for param "insn".
11495 (arc_next_active_insn): Likewise for return type and param "insn".
11496 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
11497 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11498 (output_short_suffix): Likewise for local "insn".
11499 (arc_final_prescan_insn): Likewise for param "insn". Remove
11500 now-redundant checked cast.
11501 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11502 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11503 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
11504 for use where lc_set became an insn.
11505 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11507 (arc_get_insn_variants): Likewise for local "prev".
11508 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11510 (arc_predicate_delay_insns): Likewise for local "insn".
11511 (arc_pad_return): Likewise for local "prev". For now, add a
11512 checked cast when extracting the insn from "final_sequence".
11513 (arc_short_long): Likewise for param "insn".
11514 (arc_need_delay): Likewise for param "insn" and local "next".
11515 (arc_label_align): Likewise for locals "prev", "next".
11517 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11519 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11520 "insn" from rtx to rtx_insn *.
11521 (alpha_gp_save_rtx): Likewise for local "seq".
11522 (alpha_instantiate_decls): Likewise for local "top".
11523 (get_some_local_dynamic_name): Likewise for local "insn".
11524 (alpha_does_function_need_gp): Likewise.
11525 (set_frame_related_p): Likewise for return type and for locals
11527 (emit_frame_store_1): Likewise for local "insn".
11528 (alpha_expand_prologue): Likewise for locals "insn", "seq".
11529 (alpha_end_function): Likewise for local "insn".
11530 (alpha_output_mi_thunk_osf): Likewise.
11531 (alphaev4_insn_pipe): Likewise for param "insn".
11532 (alphaev5_insn_pipe): Likewise.
11533 (alphaev4_next_group): Likewise for return type and param 1
11535 (alphaev5_next_group): Likewise.
11536 (alpha_align_insns_1): Likewise for return type and param 1 of
11537 callback param "next_group", and for locals "i", "next", "prev",
11538 "where", "where2", "insn".
11540 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
11542 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11543 rather than modifying the stmt.
11545 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11547 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11548 cgraph_state conversion.
11550 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11552 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11553 Strengthen local "insns" from rtx to rtx_insn *.
11554 (aarch64_set_frame_expr): Likewise for local "insn".
11555 (aarch64_save_or_restore_fprs): Likewise.
11556 (aarch64_save_or_restore_callee_save_registers): Likewise.
11557 (aarch64_expand_prologue): Likewise.
11558 (aarch64_expand_epilogue): Likewise.
11559 (aarch64_output_mi_thunk): Likewise.
11560 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11561 "label2" from rtx to rtx_code_label *.
11562 (aarch64_split_atomic_op): Likewise for local "label".
11564 2014-08-25 Martin Liska <mliska@suse.cz>
11566 * cgraph.h (symtab_node):
11567 (bool needed_p (void)): created from decide_is_symbol_needed
11568 (bool referred_to_p (void)): created from referred_to_p
11569 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11570 * cgraph.h (cgraph_node):
11571 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11572 (void expand (void)): created from expand_function
11573 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11574 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11575 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11576 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11577 * cgraph.h (varpool_node):
11578 (static void add (tree decl): created from varpool_add_new_variable
11579 * cgraph.h (cgraph_edge):
11580 void remove (void);
11581 (void remove_caller (void)): created from cgraph_edge_remove_caller
11582 (void remove_callee (void)): created from cgraph_edge_remove_callee
11583 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
11584 created from cgraph_set_call_stmt
11585 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
11586 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
11587 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
11588 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
11589 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
11590 created from cgraph_speculative_call_info
11591 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
11592 int freq_scale, bool update_original)): created from cgraph_clone_edge
11593 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
11594 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
11595 (bool recursive_p (void)): created from cgraph_edge_recursive_p
11596 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11597 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11598 (static void rebuild_references (void)): created from cgraph_rebuild_references
11599 * cgraph.h (symbol_table):
11600 (create_reference): renamed from add_reference
11601 (maybe_create_reference): renamed from maybe_add_reference
11602 (void register_symbol (symtab_node *node)): new function
11603 (void clear_asm_symbols (void)): new function
11604 (void unregister (symtab_node *node)): new function
11605 (void release_symbol (cgraph_node *node, int uid)): new function
11606 (cgraph_node * allocate_cgraph_symbol (void)): new function
11607 (void initialize (void)): created from cgraph_init
11608 (symtab_node *first_symbol (void)):new function
11609 (asm_node *first_asm_symbol (void)):new function
11610 (symtab_node *first_defined_symbol (void)):new function
11611 (varpool_node *first_variable (void)):new function
11612 (varpool_node *next_variable (varpool_node *node)):new function
11613 (varpool_node *first_static_initializer (void)):new function
11614 (varpool_node *next_static_initializer (varpool_node *node)):new function
11615 (varpool_node *first_defined_variable (void)):new function
11616 (varpool_node *next_defined_variable (varpool_node *node)):new function
11617 (cgraph_node *first_defined_function (void)):new function
11618 (cgraph_node *next_defined_function (cgraph_node *node)):new function
11619 (cgraph_node *first_function (void)):new function
11620 (cgraph_node *next_function (cgraph_node *node)):new function
11621 (cgraph_node *first_function_with_gimple_body (void)):new function
11622 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11623 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11624 created from symtab_remove_unreachable_nodes
11625 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
11626 (void process_new_functions (void)): created from cgraph_process_new_functions
11627 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
11628 (bool output_variables (void)): created from varpool_node::output_variables
11629 (void output_asm_statements (void)): created from output_asm_statements
11630 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
11631 (void compile (void)): created from compile
11632 (void output_weakrefs (void)): created from output_weakrefs
11633 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
11634 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
11635 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
11636 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
11637 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
11638 created from cgraph_next_function_with_gimple_body
11639 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
11640 created from cgraph_remove_edge_removal_hook
11641 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
11642 created from cgraph_add_node_removal_hook
11643 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
11644 created from cgraph_remove_node_removal_hook
11645 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
11646 created from varpool_add_node_removal_hook
11647 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
11648 created from varpool_remove_node_removal_hook
11649 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
11650 created from cgraph_add_function_insertion_hook
11651 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
11652 created from cgraph_remove_function_insertion_hook
11653 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
11654 created from varpool_add_variable_insertion_hook
11655 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
11656 created from varpool_remove_variable_insertion_hook
11657 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
11658 created from cgraph_add_edge_duplication_hook
11659 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
11660 created from cgraph_remove_edge_duplication_hook
11661 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
11662 created from cgraph_add_node_duplication_hook
11663 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
11664 created from cgraph_remove_node_duplication_hook
11665 (void call_edge_removal_hooks (cgraph_edge *e)):
11666 created from cgraph_call_edge_removal_hooks
11667 (void call_cgraph_insertion_hooks (cgraph_node *node)):
11668 created from call_function_insertion_hooks
11669 (void call_cgraph_removal_hooks (cgraph_node *node)):
11670 created from cgraph_call_node_removal_hooks
11671 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
11672 created from cgraph_node::call_duplication_hooks
11673 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
11674 created from cgraph_call_edge_duplication_hooks
11675 (void call_varpool_removal_hooks (varpool_node *node)):
11676 created from varpool_call_node_removal_hooks
11677 (void call_varpool_insertion_hooks (varpool_node *node)):
11678 created from varpool_call_variable_insertion_hooks
11679 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
11680 created from insert_to_assembler_name_hash
11681 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
11682 created from unlink_from_assembler_name_hash
11683 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
11684 created from symtab_prevail_in_asm_name_hash
11685 (void symtab_initialize_asm_name_hash (void)):
11686 created from symtab_initialize_asm_name_hash
11687 (void change_decl_assembler_name (tree decl, tree name)):
11688 created from change_decl_assembler_name
11689 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
11690 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
11691 created from decl_assembler_name_hash
11692 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
11693 created from decl_assembler_name_equal
11694 (static hashval_t hash_node_by_assembler_name (const void *p)):
11695 created from hash_node_by_assembler_name
11696 (static int eq_assembler_name (const void *p1, const void *p2)):
11697 created from eq_assembler_name
11699 2014-08-25 Marek Polacek <polacek@redhat.com>
11701 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
11703 2014-08-25 Petr Murzin <petr.murzin@intel.com>
11705 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
11706 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
11707 SWI1248_AVX512BW mode iterator.
11709 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
11712 * config/sh/predicates.md (general_extend_operand): Disable
11713 TRUNCATE before reload completes.
11715 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
11717 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
11719 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
11722 * config/sh/sh.opt (musermode): Allow negative form.
11723 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
11724 targets that don't support it.
11725 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
11726 Document -mno-usermode option.
11728 2014-08-24 Kito Cheng <kito@0xlab.org>
11730 * system.h (CALLER_SAVE_PROFITABLE): Poison.
11731 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
11732 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
11733 * doc/tm.texi: Regenerate.
11735 2014-08-24 Kito Cheng <kito@0xlab.org>
11737 * ira.c: Fix typo in comment.
11739 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
11741 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
11742 Deprecate c++1y. Change language to reflect greater confidence in C++14.
11744 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
11747 * config/pa/pa.c (pa_output_function_epilogue): Don't set
11748 last_address when the current function is a thunk.
11749 (pa_asm_output_mi_thunk): When we don't have named sections or they
11750 are not being used, check that thunk can reach the stub table with a
11753 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11755 * web.c (union_match_dups): Strengthen param "insn" from rtx to
11757 (pass_web::execute): Likewise for local "insn".
11759 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11761 * var-tracking.c (struct micro_operation_def): Strengthen field
11762 "insn" from rtx to rtx_insn *.
11763 (struct emit_note_data_def): Likewise.
11764 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
11765 (vt_stack_adjustments): Likewise for local "insn".
11766 (adjust_insn): Likewise for param "insn".
11767 (val_store): Likewise.
11768 (val_resolve): Likewise.
11769 (struct count_use_info): Likewise for field "insn".
11770 (log_op_type): Likewise for param "insn".
11771 (reverse_op): Likewise.
11772 (prepare_call_arguments): Likewise.
11773 (add_with_sets): The initial param takes an insn, but we can't
11774 yet strengthen it from rtx to rtx_insn * since it's used as a
11775 cselib_record_sets_hook callback. For now rename initial param
11776 from "insn" to "uncast_insn", and introduce a local "insn" of
11777 the stronger rtx_insn * type, with a checked cast.
11778 (compute_bb_dataflow): Strengthen local "insn" from rtx to
11780 (emit_note_insn_var_location): Likewise.
11781 (emit_notes_for_changes): Likewise.
11782 (emit_notes_for_differences): Likewise.
11783 (next_non_note_insn_var_location): Likewise for return type and
11785 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
11786 (vt_initialize): Likewise for local "insn".
11787 (delete_debug_insns): Likewise for locals "insn" and "next".
11789 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11791 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
11793 (mark_constant_pool): Likewise for local "insn".
11795 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11797 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
11799 (dead_debug_promote_uses): Likewise.
11800 (dead_debug_insert_temp): Likewise.
11802 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11804 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
11805 from const_rtx to const rtx_insn *.
11806 (store_killed_after): Likewise. Strengthen locals "last", "act"
11807 from rtx to rtx_insn *.
11808 (store_killed_before): Strengthen param "insn" from const_rtx to
11809 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
11810 (find_moveable_store): Strengthen param "insn" from rtx to
11812 (compute_store_table): Likewise for local "insn".
11813 (insert_insn_start_basic_block): Likewise for param "insn" and
11814 locals "prev", "before", "insn".
11815 (insert_store): For now, add a checked cast to rtx_insn * on the
11816 result of gen_move_insn.
11817 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
11819 (replace_store_insn): Likewise. For now, add a checked cast to
11820 rtx_insn * on the result of gen_move_insn.
11822 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11824 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
11826 (expand_sjlj_dispatch_table): Likewise.
11828 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11830 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
11831 "insn" from rtx to rtx_insn *.
11833 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11835 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
11836 "insn" from rtx to rtx_insn *.
11837 (dup_block_and_redirect): Likewise for param 3 "before".
11839 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
11840 from rtx to rtx_insn *.
11841 (move_insn_for_shrink_wrap): Likewise.
11842 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
11843 (dup_block_and_redirect): Likewise for param "before" and local
11845 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
11847 (convert_to_simple_return): Likewise for local "start".
11849 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
11850 Strengthen local "insn" from rtx to rtx_insn *, for use when
11851 invoking requires_stack_frame_p.
11853 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11855 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
11857 (speculate_expr): Likewise for locals "orig_insn_rtx",
11859 (eq_transformed_insns): Likewise for locals "i1", "i2".
11860 (check_for_new_jump): Likewise for return type and local "end".
11861 (find_new_jump): Likewise for return type and local "jump".
11862 (sel_split_edge): Likewise for local "jump".
11863 (sel_create_recovery_block): Likewise.
11864 (sel_redirect_edge_and_branch_force): Likewise.
11865 (sel_redirect_edge_and_branch): Likewise.
11867 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11869 * sel-sched.c (substitute_reg_in_expr): Strengthen local
11870 "new_insn" from rtx to rtx_insn *.
11871 (create_insn_rtx_with_rhs): Likewise for return type and for local
11873 (create_insn_rtx_with_lhs): Likewise.
11874 (create_speculation_check): Likewise for local "insn_rtx".
11875 (implicit_clobber_conflict_p): Likewise for local "insn".
11876 (get_expr_cost): Likewise.
11877 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
11878 (move_cond_jump): Likewise for locals "next", "prev", "link",
11879 "head", "from", "to".
11881 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11883 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
11884 "next" from rtx to rtx_insn *.
11885 (find_conditional_protection): Likewise for local "next".
11886 (is_conditionally_protected): Likewise for local "insn1".
11887 (is_pfree): Likewise for locals "insn1", "insn2".
11889 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11891 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
11892 from rtx to rtx_insn *.
11894 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
11895 locals "insn1", "insn2" from rtx to rtx_insn *.
11896 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
11897 locals "insn", "prev", "last_jump", "next_tail".
11898 (schedule_ebb): Likewise for params "head", "tail".
11899 (schedule_ebbs): Likewise for locals "tail", "head".
11901 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
11902 to rtx_insn on "last_insn" in one of the invocations of
11905 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11907 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
11908 "elem", "insn" from rtx to rtx_insn *.
11909 (change_spec_dep_to_hard): Likewise.
11910 (get_back_and_forw_lists): Likewise for local "con".
11911 (sd_add_dep): Likewise for locals "elem", "insn".
11912 (sd_resolve_dep): Likewise for locals "pro", "con".
11913 (sd_unresolve_dep): Likewise.
11914 (sd_delete_dep): Likewise.
11915 (chain_to_prev_insn): Likewise for local "pro".
11916 (find_inc): Likewise for locals "pro", "con".
11918 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11920 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
11922 (reg_set_between_p): Strengthen local "insn" from const_rtx to
11924 (modified_between_p): Strengthen local "insn" from rtx to
11926 (remove_reg_equal_equiv_notes_for_regno): Likewise.
11927 (keep_with_call_p): Strengthen local "i2" from const_rtx to
11930 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11932 * resource.c (next_insn_no_annul): Strengthen local "next" from
11934 (mark_referenced_resources): Likewise for local "insn".
11936 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11938 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
11940 (find_reloads): Likewise for param 1.
11941 (subst_reloads): Likewise for sole param.
11942 (find_equiv_reg): Likwise for param 2.
11943 (regno_clobbered_p): Likwise for param 2.
11944 (reload): Likewise for param 1.
11946 * caller-save.c (save_call_clobbered_regs): Strengthen local
11947 "insn" from rtx to rtx_insn *.
11948 (insert_one_insn): Likewise for local "insn".
11950 * reload.c (this_insn): Likewise for this global.
11951 (find_reloads): Likewise for param "insn".
11952 (find_reloads_toplev): Likewise.
11953 (find_reloads_address): Likewise.
11954 (subst_reg_equivs): Likewise.
11955 (update_auto_inc_notes): Likewise.
11956 (find_reloads_address_1): Likewise.
11957 (find_reloads_subreg_address): Likewise.
11958 (subst_reloads): Likewise.
11959 (find_equiv_reg): Likewise, also for local "p".
11960 (regno_clobbered_p): Likewise for param "insn".
11962 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
11964 (spill_reg_store): Likewise for the elements of this array.
11965 (remove_init_insns): Likewise for local "equiv_insn".
11966 (will_delete_init_insn_p): Likewise for param "insn".
11967 (reload): Likewise for param ""first" and local "insn".
11968 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
11970 (calculate_elim_costs_all_insns): Likewise.
11971 (delete_caller_save_insns): Likewise.
11972 (spill_failure): Likewise for param "insn".
11973 (delete_dead_insn): Likewise.
11974 (set_label_offsets): Likewise.
11975 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
11977 (elimination_costs_in_insn): Likewise for param "insn".
11978 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
11979 when referring to an insn.
11980 (set_initial_label_offsets): Likewise.
11981 (set_offsets_for_label): Strengthen param "insn" from rtx to
11983 (init_eliminable_invariants): Likewise for param "first" and local
11985 (fixup_eh_region_note): Likewise for param "insn".
11986 (reload_as_needed): Likewise for locals "prev", "insn",
11987 "old_next", "old_prev", "next".
11988 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
11990 (reload_inheritance_insn): Strengthen elements of this array from
11992 (failed_reload): Likewise for param "insn".
11993 (choose_reload_regs): Likewise for local "insn". Replace use of
11994 NULL_RTX with NULL when referring to an insn.
11995 (input_reload_insns): Strengthen elements of this array from rtx
11997 (other_input_address_reload_insns): Likewise for this global.
11998 (other_input_reload_insns): Likewise for this global.
11999 (input_address_reload_insns): Likwise for the elements of this
12001 (inpaddr_address_reload_insns): Likwise for the elements of this
12003 (output_reload_insns): Likewise for the elements of this array.
12004 (output_address_reload_insns): Likewise for the elements of this
12006 (outaddr_address_reload_insns): Likewise for the elements of this
12008 (operand_reload_insns): Likewise for this global.
12009 (other_operand_reload_insns): Likewise for this global.
12010 (other_output_reload_insns): Likewise for the elements of this
12012 (new_spill_reg_store): Likewise for the elements of this
12014 (emit_input_reload_insns): Likewise for locals "insn", "temp".
12015 Strengthen local "where" from rtx * to rtx_insn **.
12016 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12017 from rtx to rtx_insn *.
12018 (do_input_reload): Likewise for local "insn".
12019 (do_output_reload): Likewise for local "insn".
12020 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12021 (emit_insn_if_valid_for_reload): Likewise for return type and local
12022 "last". Add checked cast to rtx_insn when returning "insn" since
12023 this has been through emit_insn.
12024 (gen_reload): Strengthen return type and locals "last", "insn", "set"
12025 from rtx to rtx_insn *. Add checked cast to rtx_insn when
12026 returning "insn" since it's been through
12027 emit_insn_if_valid_for_reload at this point.
12028 (delete_output_reload): Strengthen param "insn" and locals
12029 "output_reload_insn", "i2" from rtx to rtx_insn *.
12030 (delete_address_reloads): Likewise for params "dead_insn",
12031 "current_insn" and locals "prev", "next".
12032 (delete_address_reloads_1): Likewise for params "dead_insn",
12033 "current_insn" and locals "prev", "i2".
12034 (inc_for_reload): Likewise for locals "last", "add_insn".
12035 (add_auto_inc_notes): Strengthen param "insn" from rtx to
12038 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12039 param of this duplicate of the prototype from reload.h
12041 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12043 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12045 (regstat_bb_compute_calls_crossed): Likewise.
12047 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12049 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12051 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12053 (regrename_analyze): Strengthen local "insn" from rtx to
12055 (scan_rtx_reg): Likewise for param "insn".
12056 (scan_rtx_address): Likewise.
12057 (scan_rtx): Likewise.
12058 (restore_operands): Likewise.
12059 (record_out_operands): Likewise.
12060 (build_def_use): Likewise for local "insn". Replace use of
12061 NULL_RTX with NULL when dealing with an insn.
12063 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12065 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12066 * reginfo.c (reg_scan): Likewise, also for local "insn".
12067 (reg_scan_mark_refs): Likewise for param "insn".
12068 (init_subregs_of_mode): Likewise for local "insn".
12070 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12072 * regcprop.c (struct queued_debug_insn_change): Strengthen field
12073 "insn" from rtx to rtx_insn *.
12074 (replace_oldest_value_reg): Likewise for param "insn".
12075 (replace_oldest_value_addr): Likewise.
12076 (replace_oldest_value_mem): Likewise.
12077 (apply_debug_insn_changes): Likewise for local "last_insn".
12078 (copyprop_hardreg_forward_1): Likewise for local "insn".
12080 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12082 * reg-stack.c (next_flags_user): Strengthen return type and param
12083 "insn" from rtx to rtx_insn *.
12084 (straighten_stack): Likewise for param "insn".
12085 (check_asm_stack_operands): Likewise.
12086 (remove_regno_note): Likewise.
12087 (emit_pop_insn): Likewise for return type, param "insn", local
12089 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
12090 "limit" from rtx to rtx_insn *.
12091 (swap_to_top): Likewise for param "insn".
12092 (move_for_stack_reg): Likewise.
12093 (move_nan_for_stack_reg): Likewise.
12094 (swap_rtx_condition): Likewise.
12095 (compare_for_stack_reg): Likewise.
12096 (subst_all_stack_regs_in_debug_insn): Likewise.
12097 (subst_stack_regs_pat): Likewise, and local "insn2".
12098 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
12100 (subst_stack_regs): Likewise.
12101 (change_stack): Likewise.
12102 (convert_regs_1): Likewise for locals "insn", "next".
12104 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12106 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
12108 (combine_set_extension): Likewise for param "curr_insn".
12109 (transform_ifelse): Likewise for param "def_insn".
12110 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
12111 from vec<rtx> * to vec<rtx_insn *> *.
12112 (is_cond_copy_insn): Likewise for param "insn".
12113 (struct ext_state): Strengthen the four vec fields from vec<rtx>
12114 to vec<rtx_insn *>.
12115 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
12116 local "def_insn" from rtx to rtx_insn *.
12117 (get_sub_rtx): Likewise for param "def_insn".
12118 (merge_def_and_ext): Likewise.
12119 (combine_reaching_defs): Likewise.
12120 (add_removable_extension): Likewise for param "insn".
12121 (find_removable_extensions): Likewise for local "insn".
12122 (find_and_remove_re): Likewise for locals "curr_insn" and
12123 "def_insn". Strengthen locals "reinsn_del_list" and
12124 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
12126 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12128 * recog.c (split_insn): Strengthen param "insn" and locals
12129 "first", "last" from rtx to rtx_insn *.
12130 (split_all_insns): Likewise for locals "insn", "next".
12131 (split_all_insns_noflow): Likewise.
12133 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12135 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12137 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12138 (debug_rtx_find): Likewise for param 1 "x".
12140 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12141 const_rtx to const rtx_insn *. Likewise for local "insn".
12142 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12143 (debug_rtx_find): Likewise for param 1 "x".
12144 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12145 from const_rtx to const rtx_insn * within the appropriate cases of
12146 the switch statement.
12148 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12149 Strengthen local "insns" from rtx to rtx_insn * since this is
12150 passed to a call to debug_rtx_list.
12152 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12154 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12157 * function.c (stack_protect_epilogue): Add checked cast to
12158 rtx_insn for now when invoking predict_insn_def.
12160 * predict.c (predict_insn): Strengthen param "insn" from rtx to
12162 (predict_insn_def): Likewise.
12163 (rtl_predict_edge): Likewise for local "last_insn".
12164 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12166 (combine_predictions_for_insn): Strengthen param "insn" from rtx
12168 (bb_estimate_probability_locally): Likewise for local "last_insn".
12169 (expensive_function_p): Likewise for local "insn".
12171 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12172 local "jmp", since this is used when invoking predict_insn_def.
12174 2014-08-22 Marek Polacek <polacek@redhat.com>
12177 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12179 2014-08-22 Marek Polacek <polacek@redhat.com>
12182 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12183 a comparison in parens.
12184 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12187 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12189 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12192 * cprop.c (fis_get_condition): Likewise.
12194 * postreload.c (reload_cse_regs): Likewise for param "first".
12195 (reload_cse_simplify): Likewise for param "insn".
12196 (reload_cse_regs_1): Likewise for local "insn".
12197 (reload_cse_simplify_set): Likewise for param "insn".
12198 (reload_cse_simplify_operands): Likewise.
12199 (struct reg_use): Likewise for field "insn".
12200 (reload_combine_purge_insn_uses): Likewise for param "insn".
12201 (fixup_debug_insns): Likewise for params "from", "to" and local
12203 (try_replace_in_use): Likewise for local "use_insn".
12204 (reload_combine_recognize_const_pattern): Likewise for param
12205 "insn" and locals "add_moved_after_insn", "use_insn".
12206 (reload_combine_recognize_pattern): Likewise for param "insn" and
12208 (reload_combine): Likewise for locals "insn", "prev".
12209 (reload_combine_note_use): Likewise for param "insn".
12210 (move2add_use_add2_insn): Likewise.
12211 (move2add_use_add3_insn): Likewise.
12212 (reload_cse_move2add): Likewise, also for local "next".
12213 (move2add_note_store): Likewise for local "insn".
12215 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12217 * postreload-gcse.c (struct occr): Strengthen field "insn" from
12219 (struct unoccr): Likewise.
12220 (struct modifies_mem): Likewise.
12221 (alloc_mem): Likewise for local "insn".
12222 (insert_expr_in_table): Likewise for param "insn".
12223 (dump_expr_hash_table_entry): Likewise for local "insn".
12224 (oprs_unchanged_p): Likewise for param "insn".
12225 (load_killed_in_block_p): Likewise for local "setter".
12226 (record_last_reg_set_info): Likewise for param "insn".
12227 (record_last_reg_set_info_regno): Likewise.
12228 (record_last_mem_set_info): Likewise.
12229 (record_last_set_info): Likewise for local "last_set_insn".
12230 (record_opr_changes): Likewise for param "insn".
12231 (hash_scan_set): Likewise.
12232 (compute_hash_table): Likewise for local "insn".
12233 (get_avail_load_store_reg): Likewise for param "insn".
12234 (eliminate_partially_redundant_load): Likewise, also for locals
12235 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
12237 (eliminate_partially_redundant_loads): Likewise for local "insn".
12239 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12241 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
12243 (expand_binop): Likewise for locals "entry_last", "last", "insns"
12244 (expand_twoval_unop): Likewise for locals entry_last", "last".
12245 (expand_twoval_binop): Likewise.
12246 (expand_twoval_binop_libfunc): Likewise for local "insns".
12247 (widen_leading): Likewise for local "last".
12248 (expand_doubleword_clz): Likewise for local "seq". Strengthen
12249 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
12250 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
12251 (expand_parity): Likewise for locals "last" and "seq".
12252 (expand_ffs): Likewise for local "seq". Strengthen local
12253 "nonzero_label" from rtx to rtx_code_label *.
12254 (expand_absneg_bit): Strengthen local "insns" from rtx to
12256 (expand_unop_direct): Likewise for local "last".
12257 (expand_unop): Likewise for locals "last", "insns".
12258 (expand_abs_nojump): Likewise for local "last".
12259 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
12260 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
12262 (expand_copysign_absneg): Strengthen local "label" from rtx to
12264 (expand_copysign_bit): Strengthen local "insns" from rtx to
12266 (struct no_conflict_data): Likewise for fields "first", "insn".
12267 (emit_libcall_block_1): Likewise for param "insns" and locals
12268 "next", "last", "insn".
12269 (emit_libcall_block): For now, add a checked cast to rtx_insn *
12270 on "insns" when invoking emit_libcall_block_1. Ultimately we
12271 want to strengthen insns itself.
12272 (prepare_cmp_insn): Strengthen local "last" from rtx to
12274 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
12275 (prepare_float_lib_cmp): Likewise for local "insns".
12276 (emit_conditional_move): Likewise for local "last".
12277 (emit_conditional_add): Likewise.
12278 (have_sub2_insn): Likewise for local "seq".
12279 (expand_float): Likewise for local "insns". Strengthen locals
12280 "label", "neglabel" from rtx to rtx_code_label *.
12281 (expand_fix): Likewise for locals "last", "insn", "insns" (to
12282 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
12283 (expand_fixed_convert): Likewise for local "insns" (to
12285 (expand_sfix_optab): Likewise for local "last".
12286 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
12287 to rtx_code_label *.
12288 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
12289 from rtx to rtx_insn *.
12290 (expand_atomic_fetch_op): Likewise for local "insn".
12291 (maybe_legitimize_operand_same_code): Likewise for local "last".
12292 (maybe_legitimize_operands): Likewise.
12294 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12296 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
12297 "insn" from rtx to rtx_insn *.
12298 (ps_rtl_insn): Likewise for return type.
12299 (doloop_register_get): Likewise for params "head", "tail" and
12300 locals "insn", "first_insn_not_to_check".
12301 (schedule_reg_move): Likewise for local "this_insn".
12302 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
12303 of gen_move_insn for now.
12304 (reset_sched_times): Strengthen local "insn" from rtx to
12306 (permute_partial_schedule): Likewise.
12307 (duplicate_insns_of_cycles): Likewise for local "u_insn".
12308 (dump_insn_location): Likewise for param "insn".
12309 (loop_canon_p): Likewise for local "insn".
12310 (sms_schedule): Likewise.
12311 (print_partial_schedule): Likewise.
12312 (ps_has_conflicts): Likewise.
12314 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12316 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
12317 "tailp" from rtx * to rtx_insn **.
12319 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
12320 from rtx to rtx_insn *.
12321 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
12322 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
12323 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
12325 * modulo-sched.c (const_iteration_count): Strengthen return type
12326 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
12327 use of NULL_RTX with NULL when working with insns.
12328 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
12330 (sms_schedule): Likewise.
12331 * sched-rgn.c (init_ready_list): Likewise, also for locals
12332 "src_head" and "src_next_tail".
12333 (compute_block_dependences): Likewise.
12334 (free_block_dependencies): Likewise.
12335 (debug_rgn_dependencies): Likewise.
12336 (free_rgn_deps): Likewise.
12337 (compute_priorities): Likewise.
12338 (schedule_region): Likewise.
12339 * sel-sched.c (find_ebb_boundaries): Likewise.
12341 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
12342 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
12344 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12346 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
12347 from rtx to rtx_insn *.
12348 (new_seginfo): Likewise for param "insn".
12349 (create_pre_exit): Likewise for locals "last_insn",
12350 "before_return_copy", "return_copy".
12351 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
12354 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12356 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
12357 from rtx to rtx_insn *.
12358 (lra_push_insn): Likewise for 1st param.
12359 (lra_push_insn_and_update_insn_regno_info): Likewise.
12360 (lra_pop_insn): Likewise for return type.
12361 (lra_invalidate_insn_data): Likewise for 1st param.
12362 (lra_set_insn_deleted): Likewise.
12363 (lra_delete_dead_insn): Likewise.
12364 (lra_process_new_insns): Likewise for first 3 params.
12365 (lra_set_insn_recog_data): Likewise for 1st param.
12366 (lra_update_insn_recog_data): Likewise.
12367 (lra_set_used_insn_alternative): Likewise.
12368 (lra_invalidate_insn_regno_info): Likewise.
12369 (lra_update_insn_regno_info): Likewise.
12370 (lra_former_scratch_operand_p): Likewise.
12371 (lra_eliminate_regs_1): Likewise.
12372 (lra_get_insn_recog_data): Likewise.
12374 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
12377 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
12379 (substitute_within_insn): New.
12380 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
12381 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
12382 Replace call to "substitute" with call to substitute_within_insn.
12384 * lra-constraints.c (curr_insn): Strengthen from rtx to
12386 (get_equiv_with_elimination): Likewise for param "insn".
12387 (match_reload): Strengthen params "before" and "after" from rtx *
12389 (emit_spill_move): Likewise for return type. Add a checked cast
12390 to rtx_insn * on result of gen_move_insn for now.
12391 (check_and_process_move): Likewise for local "before". Replace
12392 NULL_RTX with NULL when referring to insns.
12393 (process_addr_reg): Strengthen params "before" and "after" from
12394 rtx * to rtx_insn **.
12395 (insert_move_for_subreg): Likewise.
12396 (simplify_operand_subreg): Strengthen locals "before" and "after"
12397 from rtx to rtx_insn *.
12398 (process_address_1): Strengthen params "before" and "after" from
12399 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
12401 (process_address): Strengthen params "before" and "after" from
12402 rtx * to rtx_insn **.
12403 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
12404 (curr_insn_transform): Strengthen locals "before" and "after"
12405 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
12407 (loc_equivalence_callback): Update cast of "data", changing
12408 resulting type from rtx to rtx_insn *.
12409 (substitute_pseudo_within_insn): New.
12410 (inherit_reload_reg): Strengthen param "insn" from rtx to
12411 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
12412 NULL when referring to insns. Add a checked cast to rtx_insn *
12413 when using usage_insn to invoke lra_update_insn_regno_info.
12414 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
12415 likewise for locals "restore", "save". Add checked casts to
12416 rtx_insn * when using usage_insn to invoke
12417 lra_update_insn_regno_info and lra_process_new_insns. Replace
12418 NULL_RTX with NULL when referring to insns.
12419 (split_if_necessary): Strengthen param "insn" from rtx to
12421 (update_ebb_live_info): Likewise for params "head", "tail" and local
12423 (get_last_insertion_point): Likewise for return type and local "insn".
12424 (get_live_on_other_edges): Likewise for local "last".
12425 (inherit_in_ebb): Likewise for params "head", "tail" and locals
12426 "prev_insn", "next_insn", "restore".
12427 (remove_inheritance_pseudos): Likewise for local "prev_insn".
12428 (undo_optional_reloads): Likewise for local "insn".
12430 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
12432 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
12434 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
12436 (spill_pseudos): Likewise for local "insn".
12437 (init_elimination): Likewise.
12438 (process_insn_for_elimination): Likewise for param "insn".
12440 * lra-lives.c (curr_insn): Likewise.;
12442 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
12443 (remove_pseudos): Likewise for param "insn".
12444 (spill_pseudos): Likewise for local "insn".
12445 (lra_final_code_change): Likewise for locals "insn", "curr".
12447 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
12448 (lra_set_insn_deleted): Likewise.
12449 (lra_delete_dead_insn): Likewise, and for local "prev".
12450 (new_insn_reg): Likewise for param "insn".
12451 (lra_set_insn_recog_data): Likewise.
12452 (lra_update_insn_recog_data): Likewise.
12453 (lra_set_used_insn_alternative): Likewise.
12454 (get_insn_freq): Likewise.
12455 (invalidate_insn_data_regno_info): Likewise.
12456 (lra_invalidate_insn_regno_info): Likewise.
12457 (lra_update_insn_regno_info): Likewise.
12458 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
12460 (lra_push_insn_1): Strengthen param "insn" from rtx to
12462 (lra_push_insn): Likewise.
12463 (lra_push_insn_and_update_insn_regno_info): Likewise.
12464 (lra_pop_insn): Likewise for return type and local "insn".
12465 (push_insns): Likewise for params "from", "to", and local "insn".
12466 (setup_sp_offset): Likewise for params "from", "last" and locals
12468 (lra_process_new_insns): Likewise for params "insn", "before",
12469 "after" and local "last".
12470 (struct sloc): Likewise for field "insn".
12471 (lra_former_scratch_operand_p): Likewise for param "insn".
12472 (remove_scratches): Likewise for locals "insn", "last".
12473 (check_rtl): Likewise for local "insn".
12474 (add_auto_inc_notes): Likewise for param "insn".
12475 (update_inc_notes): Likewise for local "insn".
12476 (lra): Replace NULL_RTX with NULL when referring to insn.
12478 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12480 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12482 (resolve_reg_notes): Likewise.
12483 (resolve_simple_move): Likewise for return type, param "insn", and
12484 locals "insns", "minsn".
12485 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12486 (resolve_use): Likewise.
12487 (resolve_debug): Likewise.
12488 (find_decomposable_shift_zext): Likewise.
12489 (resolve_shift_zext): Likewise for return type, param "insn", and
12490 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
12491 (decompose_multiword_subregs): Likewise for local "insn",
12492 "orig_insn", "decomposed_shift", "end".
12494 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12496 * basic-block.h (basic_block split_edge_and_insert): Strengthen
12497 param "insns" from rtx to rtx_insn *.
12499 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12501 (struct iv_to_split): Likewise.
12502 (loop_exit_at_end_p): Likewise for local "insn".
12503 (split_edge_and_insert): Likewise for param "insns".
12504 (compare_and_jump_seq): Likewise for return type, param "cinsn",
12505 and locals "seq", "jump".
12506 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12507 "branch_code"; update invocations of compare_and_jump_seq to
12508 eliminate NULL_RTX in favor of NULL.
12509 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12511 (reset_debug_uses_in_loop): Likewise.
12512 (analyze_insn_to_expand_var): Likewise for param "insn".
12513 (analyze_iv_to_split_insn): Likewise.
12514 (analyze_insns_in_loop): Likewise for local "insn".
12515 (insert_base_initialization): Likewise for param
12516 "insn" and local "seq".
12517 (split_iv): Likewise for param "insn" and local "seq".
12518 (expand_var_during_unrolling): Likewise for param "insn".
12519 (insert_var_expansion_initialization): Likewise for local "seq".
12520 (combine_var_copies_in_loop_exit): Likewise.
12521 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12523 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12524 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12527 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12529 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12531 (iv_analyze_result): Likewise.
12532 (iv_analyze_expr): Likewise.
12535 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12536 local "def_insn" from rtx to rtx_insn *.
12537 (get_biv_step_1): Likewise for local "insn".
12538 (iv_analyze_expr): Likewise for param "insn".
12539 (iv_analyze_def): Likewise for local "insn".
12540 (iv_analyze_op): Likewise for param "insn".
12541 (iv_analyze): Likewise.
12542 (iv_analyze_result): Likewise.
12544 (suitable_set_for_replacement): Likewise.
12545 (simplify_using_initial_values): Likewise for local "insn".
12546 (iv_number_of_iterations): Likewise for param "insn".
12547 (check_simple_exit): Add checked cast to rtx_insn when invoking
12548 iv_number_of_iterations for now (until get_condition is
12551 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12552 "insn" from rtx to rtx_insn *.
12553 (analyze_insns_in_loop): Likewise for local "insn".
12555 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12557 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12559 (struct invariant): Likewise.
12560 (hash_invariant_expr_1): Likewise for param "insn".
12561 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12562 (find_exits): Likewise for local "insn".
12563 (create_new_invariant): Likewise for param "insn".
12564 (check_dependencies): Likewise.
12565 (find_invariant_insn): Likewise.
12566 (record_uses): Likewise.
12567 (find_invariants_insn): Likewise.
12568 (find_invariants_bb): Likewise for local "insn".
12569 (get_pressure_class_and_nregs): Likewise for param "insn".
12570 (calculate_loop_reg_pressure): Likewise for local "insn".
12572 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12574 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12576 (add_test): Likewise for locals "seq", "jump".
12577 (doloop_modify): Likewise for locals "sequence", "jump_insn".
12579 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12581 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
12583 (rebuild_jump_labels_chain): Likewise for param "chain".
12585 * cfgexpand.c (pass_expand::execute): Add checked cast to
12586 rtx_insn * when calling rebuild_jump_labels_chain in region where
12587 we know e->insns.r is non-NULL.
12589 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
12591 (rebuild_jump_labels): Likewise.
12592 (rebuild_jump_labels_chain): Likewise for param "chain".
12593 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
12594 (init_label_info): Likewise for param "f".
12595 (maybe_propagate_label_ref): Likewise for params "jump_insn",
12596 "prev_nonjump_insn".
12597 (mark_all_labels): Likewise for param "f" and locals "insn",
12598 "prev_nonjump_insn".
12600 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12602 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12603 from rtx to rtx_insn *insn.
12604 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12605 (ira_add_allocno_copy): Likewise.
12606 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12608 (ira_create_copy): Likewise.
12609 (ira_add_allocno_copy): Likewise.
12610 (create_bb_allocnos): Likewise for local "insn".
12611 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12612 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12613 process_regs_for_copy for rtx_insn * param.
12614 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12615 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
12616 process_regs_for_copy for rtx_insn * param.
12617 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12618 * ira-costs.c (record_reg_classes): Likewise for param "insn".
12619 (record_operand_costs): Likewise.
12620 (scan_one_insn): Likewise for return type, and for param "insn".
12621 (process_bb_for_costs): Likewise for local "insn".
12622 (process_bb_node_for_hard_reg_moves): Likewise.
12623 * ira-emit.c (struct move): Likewise for field "insn".
12624 (create_move): Eliminate use of NULL_RTX when dealing with an
12626 (emit_move_list): Strengthen return type and locals "result",
12627 "insn" from rtx to rtx_insn *insn.
12628 (emit_moves): Likewise for locals "insns", "tmp".
12629 (ira_emit): Likewise for local "insn".
12630 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
12632 (find_call_crossed_cheap_reg): Likewise.
12633 (process_bb_node_lives): Likewise for local "insn".
12634 * ira.c (decrease_live_ranges_number): Likewise.
12635 (compute_regs_asm_clobbered): Likewise.
12636 (build_insn_chain): Likewise.
12637 (find_moveable_pseudos): Likewise, also locals "def_insn",
12638 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
12639 to rtx_insn **. Add a checked cast when assigning from
12640 "closest_use" into closest_uses array in a region where we know
12641 it's a non-NULL insn.
12642 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
12644 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
12645 "last_interesting_insn", "uin".
12646 (move_unallocated_pseudos): Likewise for locals "def_insn",
12647 "move_insn", "newinsn".
12649 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12651 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
12652 Strengthen locals "done_label", "do_error" from rtx to
12654 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
12655 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
12657 (ubsan_expand_si_overflow_neg_check): Likewise for locals
12658 "done_label", "do_error" to rtx_code_label * and local "last" to
12660 (ubsan_expand_si_overflow_mul_check): Likewise for locals
12661 "done_label", "do_error", "large_op0", "small_op0_large_op1",
12662 "one_small_one_large", "both_ops_large", "after_hipart_neg",
12663 "after_lopart_neg", "do_overflow", "hipart_different" to
12664 rtx_code_label * and local "last" to rtx_insn *.
12666 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12668 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
12669 "insn" and "move_insn" from rtx to rtx_insn *.
12671 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12673 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
12675 (cheap_bb_rtx_cost_p): Likewise.
12676 (first_active_insn): Likewise for return type and local "insn".
12677 (last_active_insn): Likewise for return type and locals "insn",
12679 (struct noce_if_info): Likewise for fields "jump", "insn_a",
12681 (end_ifcvt_sequence): Likewise for return type and locals "insn",
12683 (noce_try_move): Likewise for local "seq".
12684 (noce_try_store_flag): Likewise.
12685 (noce_try_store_flag_constants): Likewise.
12686 (noce_try_addcc): Likewise.
12687 (noce_try_store_flag_mask): Likewise.
12688 (noce_try_cmove): Likewise.
12689 (noce_try_minmax): Likewise.
12690 (noce_try_abs): Likewise.
12691 (noce_try_sign_mask): Likewise.
12692 (noce_try_bitop): Likewise.
12693 (noce_can_store_speculate_p): Likewise for local "insn".
12694 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
12696 (check_cond_move_block): Likewise for local "insn".
12697 (cond_move_convert_if_block): Likewise.
12698 (cond_move_process_if_block): Likewise for locals "seq",
12700 (noce_find_if_block): Likewise for local "jump".
12701 (merge_if_block): Likewise for local "last".
12702 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
12703 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
12704 (block_has_only_trap): Likewise for return type and local "trap".
12705 (find_if_case_1): Likewise for local "jump".
12706 (dead_or_predicable): Likewise for locals "head", "end", "jump",
12709 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12711 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
12712 "last_insn", "loop_end" from rtx to rtx_insn *.
12714 * hw-doloop.c (scan_loop): Likewise for local "insn".
12715 (discover_loop): Likewise for param "tail_insn".
12716 (discover_loops): Likewise for local "tail".
12718 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
12719 cast to rtx_insn * when assigning from an rtx local to a
12720 hwloop_info's "last_insn" field.
12722 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12724 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
12725 (add_delay_dependencies): Strengthen local "pro" from rtx to
12727 (recompute_todo_spec): Likewise.
12728 (dep_cost_1): Likewise for locals "insn", "used".
12729 (schedule_insn): Likewise for local "dbg".
12730 (schedule_insn): Likewise for locals "pro", "next".
12731 (unschedule_insns_until): Likewise for local "con".
12732 (restore_pattern): Likewise for local "next".
12733 (estimate_insn_tick): Likewise for local "pro".
12734 (resolve_dependencies): Likewise for local "next".
12735 (fix_inter_tick): Likewise.
12736 (fix_tick_ready): Likewise for local "pro".
12737 (add_to_speculative_block): Likewise for locals "check", "twin",
12739 (sched_extend_bb): Likewise for locals "end", "insn".
12740 (init_before_recovery): Likewise for local "x".
12741 (sched_create_recovery_block): Likewise for local "barrier".
12742 (create_check_block_twin): Likewise for local "pro".
12743 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
12745 (unlink_bb_notes): Update for change to type of bb_header.
12746 Strengthen locals "prev", "label", "note", "next" from rtx to
12748 (clear_priorities): Likewise for local "pro".
12750 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12752 * gcse.c (struct occr): Strengthen field "insn" from rtx to
12754 (test_insn): Likewise for this global.
12755 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
12757 (oprs_anticipatable_p): Likewise.
12758 (oprs_available_p): Likewise.
12759 (insert_expr_in_table): Strengthen param "insn" from rtx to
12761 (hash_scan_set): Likewise.
12762 (hash_scan_clobber): Likewise.
12763 (hash_scan_call): Likewise.
12764 (hash_scan_insn): Likewise.
12765 (compute_hash_table_work): Likewise for local "insn".
12766 (process_insert_insn): Likewise for return type and local "pat".
12767 (insert_insn_end_basic_block): Likewise for locals "new_insn",
12768 "pat", "pat_end", "maybe_cc0_setter".
12769 (pre_edge_insert): Likewise for local "insn".
12770 (pre_insert_copy_insn): Likewise for param "insn".
12771 (pre_insert_copies): Likewise for local "insn".
12772 (struct set_data): Likewise for field "insn".
12773 (single_set_gcse): Likewise for param "insn".
12774 (gcse_emit_move_after): Likewise.
12775 (pre_delete): Likewise for local "insn".
12776 (update_bb_reg_pressure): Likewise for param "from" and local
12778 (should_hoist_expr_to_dom): Likewise for param "from".
12779 (hoist_code): Likewise for local "insn".
12780 (get_pressure_class_and_nregs): Likewise for param "insn".
12781 (calculate_bb_reg_pressure): Likewise for local "insn".
12782 (compute_ld_motion_mems): Likewise.
12784 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12786 * genpeep.c (main): Rename param back from "uncast_ins1" to
12787 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
12790 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
12792 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12795 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
12796 documentation to state it is only for VSX operations.
12798 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
12799 constraint only active if VSX.
12801 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
12802 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
12803 (lfiwzx): Likewise.
12805 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12807 * fwprop.c (single_def_use_dom_walker::before_dom_children):
12808 Strengthen local "insn" from rtx to rtx_insn *.
12809 (use_killed_between): Likewise for param "target_insn".
12810 (all_uses_available_at): Likewise for param "target_insn" and
12812 (update_df_init): Likewise for params "def_insn", "insn".
12813 (update_df): Likewise for param "insn".
12814 (try_fwprop_subst): Likewise for param "def_insn" and local
12816 (free_load_extend): Likewise for param "insn".
12817 (forward_propagate_subreg): Likewise for param "def_insn" and
12819 (forward_propagate_asm): Likewise for param "def_insn" and local
12821 (forward_propagate_and_simplify): Likewise for param "def_insn"
12822 and local "use_insn".
12823 (forward_propagate_into): Likewise for locals "def_insn" and
12826 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12828 * function.c (emit_initial_value_sets): Strengthen local "seq"
12829 from rtx to rtx_insn *.
12830 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
12832 (instantiate_virtual_regs): Likewise for local "insn".
12833 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
12834 (reorder_blocks_1): Likewise for param "insns" and local "insn".
12835 (expand_function_end): Likewise for locals "insn" and "seq".
12836 (epilogue_done): Likewise for local "insn".
12837 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
12839 (reposition_prologue_and_epilogue_notes): Likewise for locals
12840 "insn", "last", "note", "first".
12841 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
12842 (pass_match_asm_constraints::execute): Likewise for local "insn".
12844 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12846 * output.h (final_scan_insn): Strengthen return type from rtx to
12848 (final_forward_branch_p): Likewise for param.
12849 (current_output_insn): Likewise for this global.
12851 * final.c (rtx debug_insn): Likewise for this variable.
12852 (current_output_insn): Likewise.
12853 (get_attr_length_1): Rename param "insn" to "uncast_insn",
12854 adding "insn" back in as an rtx_insn * with a checked cast, so
12855 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
12857 (compute_alignments): Strengthen local "label" from rtx to
12859 (shorten_branches): Rename param from "first" to "uncast_first",
12860 introducing a new local rtx_insn * "first" using a checked cast to
12861 effectively strengthen "first" from rtx to rtx_insn * without
12862 affecting the type signature. Strengthen locals "insn", "seq",
12863 "next", "label" from rtx to rtx_insn *.
12864 (change_scope): Strengthen param "orig_insn" and local "insn" from
12866 (final_start_function): Rename param from "first" to "uncast_first",
12867 introducing a new local rtx_insn * "first" using a checked cast to
12868 effectively strengthen "first" from rtx to rtx_insn * without
12869 affecting the type signature. Strengthen local "insn" from rtx to
12871 (dump_basic_block_info): Strengthen param "insn" from rtx to
12873 (final): Rename param from "first" to "uncast_first",
12874 introducing a new local rtx_insn * "first" using a checked cast to
12875 effectively strengthen "first" from rtx to rtx_insn * without
12876 affecting the type signature. Strengthen locals "insn", "next"
12877 from rtx to rtx_insn *.
12878 (output_alternate_entry_point): Strengthen param "insn" from rtx to
12880 (call_from_call_insn): Strengthen param "insn" from rtx to
12882 (final_scan_insn): Rename param from "insn" to "uncast_insn",
12883 introducing a new local rtx_insn * "insn" using a checked cast to
12884 effectively strengthen "insn" from rtx to rtx_insn * without
12885 affecting the type signature. Strengthen return type and locals
12886 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
12887 now-redundant checked cast to rtx_insn * from both invocations of
12888 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
12889 introducing a local "call_insn" for use when invoking
12890 call_from_call_insn.
12891 (notice_source_line): Strengthen param "insn" from rtx to
12893 (leaf_function_p): Likewise for local "insn".
12894 (final_forward_branch_p): Likewise.
12895 (leaf_renumber_regs): Likewise for param "first".
12896 (rest_of_clean_state): Likewise for locals "insn" and "next".
12897 (self_recursive_call_p): Likewise for param "insn".
12898 (collect_fn_hard_reg_usage): Likewise for local "insn".
12899 (get_call_fndecl): Likewise for param "insn".
12900 (get_call_cgraph_rtl_info): Likewise.
12901 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
12902 introducing a new local rtx_insn * "insn" using a checked cast to
12903 effectively strengthen "insn" from rtx to rtx_insn * without
12904 affecting the type signature.
12906 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
12907 cast when assigning from param "insn" to current_output_insn.
12908 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
12909 so that we can assign it back to current_output_insn.
12911 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12913 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
12914 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
12915 atmxt540s and atmxt540sreva devices.
12916 * config/avr/avr-tables.opt: Regenerate.
12917 * config/avr/t-multilib: Regenerate.
12918 * doc/avr-mmcu.texi: Regenerate.
12920 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12922 * expr.c (convert_move): Strengthen local "insns" from rtx to
12924 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
12925 "top_label" from rtx to rtx_code_label *.
12926 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
12928 (emit_single_push_insn): Likewise for locals "prev", "last".
12929 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
12930 to rtx_code_label *.
12931 (store_constructor): Likewise for locals "loop_start", "loop_end".
12932 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
12934 (expand_expr_real_2): Likewise.
12935 (expand_expr_real_1): Strengthen local "label" from rtx to
12938 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12940 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
12941 from rtx to rtx_insn *.
12942 (store_bit_field_1): Likewise.
12943 (extract_bit_field_1): Likewise.
12944 (expand_mult_const): Likewise for local "insns".
12945 (expmed_mult_highpart): Strengthen local "label" from rtx to
12947 (expand_smod_pow2): Likewise.
12948 (expand_sdiv_pow2): Likewise.
12949 (expand_divmod): Strengthen locals "last", "insn" from rtx to
12950 rtx_insn *. Strengthen locals "label", "label1", "label2",
12951 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
12952 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
12953 (emit_store_flag): Likewise.
12954 (emit_store_flag_force): Strengthen local "label" from rtx to
12956 (do_cmp_and_jump): Likewise for param "label".
12958 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12960 * explow.c (force_reg): Strengthen local "insn" from rtx to
12962 (adjust_stack_1): Likewise.
12963 (allocate_dynamic_stack_space): Likewise. Strengthen locals
12964 "final_label", "available_label", "space_available" from rtx to
12966 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
12967 (anti_adjust_stack_and_probe): Likewise.
12969 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12971 * except.h (sjlj_emit_function_exit_after): Strengthen param
12972 "after" from rtx to rtx_insn *. This is only called with
12973 result of get_last_insn (in function.c) so type-change should be
12976 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
12977 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
12978 to rtx_insn *. These fields are only used from except.c so this
12979 type-change should be self-contained to this patch.
12981 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
12982 local "last" from rtx to rtx_insn *.
12983 (dw2_build_landing_pads): Likewise for local "seq".
12984 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
12985 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
12986 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
12988 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
12990 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
12991 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
12992 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
12993 referring to an insn. Strengthen local "dispatch_label" from
12994 rtx to rtx_code_label *.
12995 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
12997 (expand_eh_return): Strengthen local "around_label" from
12998 rtx to rtx_code_label *.
12999 (convert_to_eh_region_ranges): Strengthen locals "iter",
13000 "last_action_insn", "first_no_action_insn",
13001 "first_no_action_insn_before_switch",
13002 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13004 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13006 * dwarf2out.c (last_var_location_insn): Strengthen this variable
13007 from rtx to rtx_insn *.
13008 (cached_next_real_insn): Likewise.
13009 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13010 working with insns.
13011 (dwarf2out_var_location): Strengthen locals "next_real",
13012 "next_note", "expected_next_loc_note", "last_start", "insn" from
13015 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13017 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13018 from rtx to rtx_insn *.
13019 (create_pseudo_cfg): Likewise for local "insn".
13021 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13023 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13024 from rtx to rtx_insn *.
13025 (df_bb_regno_last_def_find): Likewise.
13027 * df-problems.c (df_rd_bb_local_compute): Likewise.
13028 (df_lr_bb_local_compute): Likewise.
13029 (df_live_bb_local_compute): Likewise.
13030 (df_chain_remove_problem): Likewise.
13031 (df_chain_create_bb): Likewise.
13032 (df_word_lr_bb_local_compute): Likewise.
13033 (df_remove_dead_eq_notes): Likewise for param "insn".
13034 (df_note_bb_compute): Likewise for local "insn".
13035 (simulate_backwards_to_point): Likewise.
13036 (df_md_bb_local_compute): Likewise.
13038 * df-scan.c (df_scan_free_bb_info): Likewise.
13039 (df_scan_start_dump): Likewise.
13040 (df_scan_start_block): Likewise.
13041 (df_install_ref_incremental): Likewise for local "insn".
13042 (df_insn_rescan_all): Likewise.
13043 (df_reorganize_refs_by_reg_by_insn): Likewise.
13044 (df_reorganize_refs_by_insn_bb): Likewise.
13045 (df_recompute_luids): Likewise.
13046 (df_bb_refs_record): Likewise.
13047 (df_update_entry_exit_and_calls): Likewise.
13048 (df_bb_verify): Likewise.
13050 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13052 * ddg.h (struct ddg_node): Strengthen fields "insn" and
13053 "first_note" from rtx to rtx_insn *.
13054 (get_node_of_insn): Likewise for param 2 "insn".
13055 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13057 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13059 (mem_write_insn_p): Likewise.
13060 (mem_access_insn_p): Likewise.
13061 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13062 (def_has_ccmode_p): Likewise for param "insn".
13063 (add_cross_iteration_register_deps): Likewise for locals
13064 "def_insn" and "use_insn".
13065 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13066 (build_intra_loop_deps): Likewise for local "src_insn".
13067 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13069 (get_node_of_insn): Likewise for param "insn".
13071 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13073 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13074 (deletable_insn_p): Strengthen param "insn" from rtx to
13075 rtx_insn *. Add checked cast to rtx_call_insn when invoking
13076 find_call_stack_args, since this is guarded by CALL_P (insn).
13077 (marked_insn_p): Strengthen param "insn" from rtx to
13079 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
13080 invoking find_call_stack_args, since this is guarded by
13082 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13083 rtx_insn *; we know this is an insn since this was called by
13084 mark_nonreg_stores.
13085 (mark_nonreg_stores_2): Likewise.
13086 (mark_nonreg_stores): Strengthen param "insn" from rtx to
13088 (find_call_stack_args): Strengthen param "call_insn" from rtx to
13089 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13091 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13092 from rtx to rtx_insn *.
13093 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13094 "next", "ref_insn".
13095 (delete_unmarked_insns): Likewise for locals "insn", "next".
13096 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13097 (mark_reg_dependencies): Likewise for param "insn".
13098 (rest_of_handle_ud_dce): Likewise for local "insn".
13099 (word_dce_process_block): Likewise.
13100 (dce_process_block): Likewise.
13102 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13104 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
13105 from rtx to rtx_insn *.
13106 (struct change_cc_mode_args): Likewise for field "insn".
13107 (this_insn): Strengthen from rtx to rtx_insn *.
13108 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
13110 (validate_canon_reg): Strengthen param "insn" from rtx to
13112 (canon_reg): Likewise.
13113 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
13115 (record_jump_equiv): Strengthen param "insn" from rtx to
13117 (try_back_substitute_reg): Likewise, also for locals "prev",
13119 (find_sets_in_insn): Likewise for param "insn".
13120 (canonicalize_insn): Likewise.
13121 (cse_insn): Likewise. Add a checked cast.
13122 (invalidate_from_clobbers): Likewise for param "insn".
13123 (invalidate_from_sets_and_clobbers): Likewise.
13124 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
13126 (cse_prescan_path): Strengthen local "insn" from rtx to
13128 (cse_extended_basic_block): Likewise for locals "insn" and
13130 (cse_main): Likewise for param "f".
13131 (check_for_label_ref): Likewise for local "insn".
13132 (set_live_p): Likewise for second param ("insn").
13133 (insn_live_p): Likewise for first param ("insn") and for local
13135 (cse_change_cc_mode_insn): Likewise for first param "insn".
13136 (cse_change_cc_mode_insns): Likewise for first and second params
13138 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13140 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13143 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13144 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13145 Anna Tikhonova <anna.tikhonova@intel.com>
13146 Ilya Tocar <ilya.tocar@intel.com>
13147 Andrey Turetskiy <andrey.turetskiy@intel.com>
13148 Ilya Verbin <ilya.verbin@intel.com>
13149 Kirill Yukhin <kirill.yukhin@intel.com>
13150 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13152 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13154 * config/i386/sse.md
13155 (define_mode_iterator VI248_AVX2): Delete.
13156 (define_mode_iterator VI2_AVX2_AVX512BW): New.
13157 (define_mode_iterator VI48_AVX2): Ditto.
13158 (define_insn <shift_insn><mode>3): Delete.
13159 (define_insn "<shift_insn><mode>3<mask_name>" with
13160 VI2_AVX2_AVX512BW): New.
13161 (define_insn "<shift_insn><mode>3<mask_name>" with
13164 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13165 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13166 Anna Tikhonova <anna.tikhonova@intel.com>
13167 Ilya Tocar <ilya.tocar@intel.com>
13168 Andrey Turetskiy <andrey.turetskiy@intel.com>
13169 Ilya Verbin <ilya.verbin@intel.com>
13170 Kirill Yukhin <kirill.yukhin@intel.com>
13171 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13173 * config/i386/sse.md
13174 (define_mode_iterator VI4F_BRCST32x2): New.
13175 (define_mode_attr 64x2_mode): Ditto.
13176 (define_mode_attr 32x2mode): Ditto.
13177 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13178 with VI4F_BRCST32x2): Ditto.
13179 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13180 with V16FI mode iterator): Ditto.
13181 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13182 with V16FI): Ditto.
13183 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13184 with VI8F_BRCST64x2): Ditto.
13186 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13187 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13188 Anna Tikhonova <anna.tikhonova@intel.com>
13189 Ilya Tocar <ilya.tocar@intel.com>
13190 Andrey Turetskiy <andrey.turetskiy@intel.com>
13191 Ilya Verbin <ilya.verbin@intel.com>
13192 Kirill Yukhin <kirill.yukhin@intel.com>
13193 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13195 * config/i386/sse.md
13196 (define_mode_iterator VI8_AVX512VL): New.
13197 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13199 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
13201 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13202 (define_mode_iterator V48_AVX512VL): New.
13203 (define_mode_iterator V12_AVX512VL): Ditto.
13204 (define_insn <avx512>_load<mode>_mask): Split into two similar
13205 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13206 Refactor output template.
13207 (define_insn "<avx512>_store<mode>_mask"): Ditto.
13209 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13211 * cprop.c (struct occr): Strengthen field "insn" from rtx to
13213 (reg_available_p): Likewise for param "insn".
13214 (insert_set_in_table): Likewise.
13215 (hash_scan_set): Likewise.
13216 (hash_scan_insn): Likewise.
13217 (make_set_regs_unavailable): Likewise.
13218 (compute_hash_table_work): Likewise for local "insn".
13219 (reg_not_set_p): Strengthen param "insn" from const_rtx to
13221 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13222 (try_replace_reg): Likewise.
13223 (find_avail_set): Likewise.
13224 (cprop_jump): Likewise for params "setcc", "jump".
13225 (constprop_register): Likewise for param "insn".
13226 (cprop_insn): Likewise.
13227 (do_local_cprop): Likewise.
13228 (local_cprop_pass): Likewise for local "insn".
13229 (bypass_block): Likewise for params "setcc" and "jump".
13230 (bypass_conditional_jumps): Likewise for locals "setcc" and
13232 (one_cprop_pass): Likewise for local "insn".
13234 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13236 * compare-elim.c (struct comparison_use): Strengthen field "insn"
13237 from rtx to rtx_insn *.
13238 (struct comparison): Likewise, also for field "prev_clobber".
13239 (conforming_compare): Likewise for param "insn".
13240 (arithmetic_flags_clobber_p): Likewise.
13241 (find_flags_uses_in_insn): Likewise.
13242 (find_comparison_dom_walker::before_dom_children): Likewise for
13243 locals "insn", "next", "last_clobber".
13244 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
13246 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13248 * combine-stack-adj.c (struct csa_reflist): Strengthen field
13249 "insn" from rtx to rtx_insn *.
13250 (single_set_for_csa): Likewise for param "insn".
13251 (record_one_stack_ref): Likewise.
13252 (try_apply_stack_adjustment): Likewise.
13253 (struct record_stack_refs_data): Likewise for field "insn".
13254 (maybe_move_args_size_note): Likewise for params "last" and "insn".
13255 (prev_active_insn_bb): Likewise for return type and param "insn".
13256 (next_active_insn_bb): Likewise.
13257 (force_move_args_size_note): Likewise for params "prev" and "last"
13258 and locals "test", "next_candidate", "prev_candidate".
13259 (combine_stack_adjustments_for_block): Strengthen locals
13260 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
13263 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13265 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
13266 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
13267 (subst_insn): Likewise for this variable.
13268 (added_links_insn): Likewise.
13269 (struct insn_link): Likewise for field "insn".
13270 (alloc_insn_link): Likewise for param "insn".
13271 (struct undobuf): Likewise for field "other_insn".
13272 (find_single_use): Likewise for param "insn" and local "next".
13273 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
13274 (delete_noop_moves): Likewise for locals "insn", "next".
13275 (create_log_links): Likewise for locals "insn", "use_insn".
13276 Strengthen local "next_use" from rtx * to rtx_insn **.
13277 (insn_a_feeds_b): Likewise for params "a", "b".
13278 (combine_instructions): Likewise for param "f" and locals "insn",
13279 "next", "prev", "first", "last_combined_insn", "link", "link1",
13280 "temp". Replace use of NULL_RTX with NULL when referring to
13282 (setup_incoming_promotions): Likewise for param "first"
13283 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
13284 (can_combine_p): Likewise for params "insn", "i3", "pred",
13285 "pred2", "succ", "succ2" and for local "p".
13286 (combinable_i3pat): Likewise for param "i3".
13287 (cant_combine_insn_p): Likewise for param "insn".
13288 (likely_spilled_retval_p): Likewise.
13289 (adjust_for_new_dest): Likewise.
13290 (update_cfg_for_uncondjump): Likewise, also for local "insn".
13291 (try_combine): Likewise for return type and for params "i3", "i2",
13292 "i1", "i0", "last_combined_insn", and for locals "insn",
13293 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
13294 "i0_insn". Eliminate local "tem" in favor of new locals
13295 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
13296 checked cast for now to rtx_insn * on the return type of
13297 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
13299 (find_split_point): Strengthen param "insn" from rtx to
13301 (simplify_set): Likewise for local "other_insn".
13302 (recog_for_combine): Likewise for param "insn".
13303 (record_value_for_reg): Likewise.
13304 (record_dead_and_set_regs_1): Likewise for local
13305 "record_dead_insn".
13306 (record_dead_and_set_regs): Likewise for param "insn".
13307 (record_promoted_value): Likewise.
13308 (check_promoted_subreg): Likewise.
13309 (get_last_value_validate): Likewise.
13310 (reg_dead_at_p): Likewise.
13311 (move_deaths): Likewise for param "to_insn".
13312 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
13313 and locals "place", "place2", "cc0_setter". Eliminate local "tem
13314 in favor of new locals "tem_note" and "tem_insn", the latter being
13316 (distribute_links): Strengthen locals "place", "insn" from rtx to
13319 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13321 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
13323 (can_delete_label_p): Require a const rtx_code_label * rather than
13325 (delete_insn): Add checked cast to rtx_code_label * when we know
13326 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
13328 (delete_insn_chain): Strengthen locals "prev" and "current" from
13329 rtx to rtx_insn *. Add a checked cast when assigning from
13330 "finish" (strengthening the params will come later). Add a
13331 checked cast to rtx_note * in region where we know
13333 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
13335 (compute_bb_for_insn): Likewise.
13336 (free_bb_for_insn): Likewise for local "insn".
13337 (compute_bb_for_insn): Likewise.
13338 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
13339 local "insn" from rtx to rtx_insn *
13340 (flow_active_insn_p): Require a const rtx_insn * rather than a
13342 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
13344 (can_fallthru): Likewise for locals "insn" and "insn2".
13345 (bb_note): Likewise for local "note".
13346 (first_insn_after_basic_block_note): Likewise for local "note" and
13348 (rtl_split_block): Likewise for locals "insn" and "next".
13349 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
13351 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
13352 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
13354 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
13355 them), "kill_from", "barrier", "new_insn".
13356 (patch_jump_insn): Likewise for params "insn", "old_label".
13357 (redirect_branch_edge): Likewise for locals "old_label", "insn".
13358 (force_nonfallthru_and_redirect): Likewise for locals "insn",
13359 "old_label", "new_label".
13360 (rtl_tidy_fallthru_edge): Likewise for local "q".
13361 (rtl_split_edge): Likewise for locals "before", "last".
13362 (commit_one_edge_insertion): Likewise for locals "before",
13363 "after", "insns", "tmp", "last", adding a checked cast where
13364 currently necessary.
13365 (commit_edge_insertions): Likewise.
13366 (rtl_dump_bb): Likewise for locals "insn", "last".
13367 (print_rtl_with_bb): Likewise for local "x".
13368 (rtl_verify_bb_insns): Likewise for local "x".
13369 (rtl_verify_bb_pointers): Likewise for local "insn".
13370 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
13372 (rtl_verify_fallthru): Likewise for local "insn".
13373 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
13374 (purge_dead_edges): Likewise for local "insn".
13375 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
13376 (skip_insns_after_block): Likewise for return type and for locals
13377 "insn", "last_insn", "next_head", "prev".
13378 (record_effective_endpoints): Likewise for locals "next_insn",
13380 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
13381 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
13382 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
13383 (duplicate_insn_chain): For now, add checked cast from rtx to
13384 rtx_insn * when returning insn.
13385 (cfg_layout_duplicate_bb): Likewise for local "insn".
13386 (cfg_layout_delete_block): Likewise for locals "insn", "next",
13387 "prev", "remaints".
13388 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
13389 (rtl_block_empty_p): Likewise.
13390 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
13391 "split_point", "last".
13392 (rtl_block_ends_with_call_p): Likewise for local "insn".
13393 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
13395 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
13396 "split_at_insn" from rtx to rtx_insn *.
13397 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
13398 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
13399 to const rtx_insn *.
13400 (rtl_account_profile_record): Likewise.
13402 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13404 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
13406 (average_num_loop_insns): Likewise.
13407 (init_set_costs): Likewise for local "seq".
13408 (seq_cost): Likewise for param "seq", from const_rtx to const
13411 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13413 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
13416 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13418 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
13419 "f1" and "f2" from rtx * to rtx_insn **.
13420 (flow_find_head_matching_sequence): Likewise.
13422 * cfgcleanup.c (try_simplify_condjump): Strengthen local
13423 "cbranch_insn" from rtx to rtx_insn *.
13424 (thread_jump): Likewise for local "insn".
13425 (try_forward_edges): Likewise for local "last".
13426 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
13427 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
13429 (can_replace_by): Likewise for params "i1", "i2".
13430 (old_insns_match_p): Likewise.
13431 (merge_notes): Likewise.
13432 (walk_to_nondebug_insn): Likewise for param "i1".
13433 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
13434 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
13435 "afterlast1", "afterlast2" from rtx to rtx_insn *.
13436 (flow_find_head_matching_sequence): Strengthen params "f1" and
13437 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
13438 "last1", "last2", "beforelast1", "beforelast2" from rtx to
13440 (outgoing_edges_match): Likewise for locals "last1", "last2".
13441 (try_crossjump_to_edge): Likewise for local "insn".
13442 Replace call to for_each_rtx with for_each_rtx_in_insn.
13444 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
13445 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
13446 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
13447 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
13448 (try_optimize_cfg): Strengthen local "last" from rtx to
13450 (delete_dead_jumptables): Likewise for locals "insn", "next",
13453 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
13454 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
13455 "rtx else_first_tail", to reflect the basic-block.h changes above.
13457 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13459 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
13461 (purge_dead_tablejump_edges): Likewise.
13462 (find_bb_boundaries): Likewise for locals "insn", "end",
13463 "flow_transfer_insn".
13465 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13467 * caller-save.c (save_call_clobbered_regs): Strengthen locals
13468 "ins" and "prev" from rtx to rtx_insn *.
13470 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13472 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
13474 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
13475 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
13477 (load_register_parameters): Likewise for local "before_arg".
13478 (check_sibcall_argument_overlap): Likewise for param "insn".
13479 (expand_call): Likewise for locals "normal_call_insns",
13480 "tail_call_insns", "insns", "before_call", "after_args",
13481 "before_arg", "last", "prev". Strengthen one of the "last" from
13482 rtx to rtx_call_insn *.
13483 (fixup_tail_calls): Strengthen local "insn" from rtx to
13485 (emit_library_call_value_1): Likewise for locals "before_call" and
13488 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13490 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13491 and "last" from rtx to rtx_insn *.
13492 (expand_builtin_nonlocal_goto): Likewise for local "insn".
13493 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13495 (expand_errno_check): Strengthen local "lab" from rtx to
13497 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13499 (expand_builtin_mathfn_2): Likewise.
13500 (expand_builtin_mathfn_ternary): Likewise.
13501 (expand_builtin_mathfn_3): Likewise.
13502 (expand_builtin_interclass_mathfn): Likewise for local "last".
13503 (expand_builtin_int_roundingfn): Likewise for local "insns".
13504 (expand_builtin_int_roundingfn_2): Likewise.
13505 (expand_builtin_strlen): Likewise for local "before_strlen".
13506 (expand_builtin_strncmp): Likewise for local "seq".
13507 (expand_builtin_signbit): Likewise for local "last".
13508 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13509 from rtx to rtx_code_label *.
13510 (expand_stack_restore): Strengthen local "prev" from rtx to
13513 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13515 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13517 (struct btr_def_s): Likewise.
13518 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13520 (add_btr_def): Likewise.
13521 (new_btr_user): Likewise.
13522 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13524 (link_btr_uses): Likewise.
13525 (move_btr_def): Likewise for locals "insp", "old_insn",
13526 "new_insn". Add checked cast to rtx_insn * for now on result of
13528 (can_move_up): Strengthen param "insn" from const_rtx to
13531 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13533 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13535 (get_uncond_jump_length): Likewise for locals "label", "jump".
13536 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13538 (add_labels_and_missing_jumps): Likewise for local "new_jump".
13539 (fix_up_fall_thru_edges): Likewise for local "old_jump".
13540 (find_jump_block): Likewise for local "insn".
13541 (fix_crossing_conditional_branches): Likewise for locals
13542 "old_jump", "new_jump".
13543 (fix_crossing_unconditional_branches): Likewise for locals
13544 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13545 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13547 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13549 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13551 (struct mem_insn): Likewise for field "insn".
13552 (reg_next_use): Strengthen from rtx * to rtx_insn **.
13553 (reg_next_inc_use): Likewise.
13554 (reg_next_def): Likewise.
13555 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13556 from rtx to rtx_insn *.
13557 (move_insn_before): Likewise for param "next_insn" and local "insns".
13558 (attempt_change): Likewise for local "mov_insn".
13559 (try_merge): Likewise for param "last_insn".
13560 (get_next_ref): Likewise for return type and local "insn".
13561 Strengthen param "next_array" from rtx * to rtx_insn **.
13562 (parse_add_or_inc): Strengthen param "insn" from rtx to
13564 (find_inc): Likewise for locals "insn" and "other_insn" (three of
13566 (merge_in_block): Likewise for locals "insn", "curr",
13568 (pass_inc_dec::execute): Update allocations of the arrays to
13569 reflect the stronger types.
13571 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13573 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13574 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
13575 from rtx to rtx_code_label *.
13577 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13579 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
13582 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13584 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
13585 generated a warning and prevented bootstrapping the compiler.
13587 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13589 * rtl.h (delete_related_insns): Strengthen return type from rtx to
13592 * jump.c (delete_related_insns): Likewise, also for locals "next"
13595 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13597 * genautomata.c (output_internal_insn_latency_func): When writing
13598 the function "internal_insn_latency" to insn-automata.c,
13599 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13600 allowing the optional guard function of (define_bypass) clauses to
13601 expect a pair of rtx_insn *, rather than a pair of rtx.
13602 (output_insn_latency_func): When writing the function
13603 "insn_latency", add an "uncast_" prefix to params "insn" and
13604 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13605 using checked casts from the params, thus enabling the above
13606 change to the generated "internal_insn_latency" function.
13608 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
13610 PR tree-optimization/62091
13611 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13612 handle correctly arrays.
13613 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13614 inheritance binfos.
13615 (record_known_type): Walk into inner type.
13616 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13617 condition on no type changes.
13619 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13621 * genattrtab.c (write_attr_get): Within the generated get_attr_
13622 functions, rename param "insn" to "uncast_insn" and reintroduce
13623 "insn" as an local rtx_insn * using a checked cast, so that "insn"
13624 is an rtx_insn * within insn-attrtab.c
13626 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13628 * output.h (peephole): Strengthen return type from rtx to
13630 * rtl.h (delete_for_peephole): Likewise for both params.
13631 * genpeep.c (main): In generated "peephole" function, strengthen
13632 return type and local "insn" from rtx to rtx_insn *. For now,
13633 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
13634 rtx_insn *, with a checked cast.
13635 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
13636 locals "insn", "next", "prev" from rtx to rtx_insn *.
13638 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
13640 PR tree-optimization/62112
13641 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
13642 * gimple-iterator.h (gsi_replace): Return bool.
13643 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
13644 moved from ref_may_alias_global_p.
13645 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
13647 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
13648 (stmt_kills_ref_p_1): Rename...
13649 (stmt_kills_ref_p): ... to this.
13650 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
13651 stmt_kills_ref_p): Declare.
13652 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
13653 Move the self-assignment case...
13654 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
13656 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13658 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
13660 * emit-rtl.c (try_split): Likewise, also for locals "before" and
13661 "after". For now, don't strengthen param "trial", which requires
13662 adding checked casts when returning it.
13664 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13666 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
13667 "label" from rtx to rtx_code_label *. Strengthen param 1 of
13668 "var_location" hook from rtx to rtx_insn *.
13669 (debug_nothing_rtx): Delete in favor of...
13670 (debug_nothing_rtx_code_label): New prototype.
13671 (debug_nothing_rtx_rtx): Delete unused prototype.
13672 (debug_nothing_rtx_insn): New prototype.
13674 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
13675 invoking debug_hooks->var_location (in two places, one in a NOTE
13676 case of a switch statement, the other guarded by a CALL_P
13677 conditional. Add checked cast to rtx_code_label * when invoking
13678 debug_hooks->label (within CODE_LABEL case of switch statement).
13680 * dbxout.c (dbx_debug_hooks): Update "label" hook from
13681 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13682 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
13683 (xcoff_debug_hooks): Likewise.
13684 * debug.c (do_nothing_debug_hooks): Likewise.
13685 (debug_nothing_rtx): Delete in favor of...
13686 (debug_nothing_rtx_insn): New function.
13687 (debug_nothing_rtx_rtx): Delete unused function.
13688 (debug_nothing_rtx_code_label): New function.
13689 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
13690 debug_nothing_rtx to debug_nothing_rtx_code_label.
13691 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
13693 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
13694 debug_nothing_rtx to debug_nothing_rtx_insn.
13695 (sdbout_label): Strengthen param "insn" from rtx to
13697 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
13698 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13699 "var_location" hook from debug_nothing_rtx to
13700 debug_nothing_rtx_insn.
13702 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13704 * recog.h (insn_output_fn): Update this function typedef to match
13705 the changes below to the generated output functions, strengthening
13706 the 2nd param from rtx to rtx_insn *.
13708 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
13709 insn when invoking an output function, to match the new signature
13710 of insn_output_fn with a stronger second param.
13712 * genconditions.c (write_header): In the generated code for
13713 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
13714 to match the other changes in this patch.
13716 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
13717 the generated "gen_" functions from rtx to rtx_insn * within their
13720 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
13721 the subfunctions within the generated "recog_", "split", "peephole2"
13722 function trees from rtx to rtx_insn *. For now, the top-level
13723 generated functions ("recog", "split", "peephole2") continue to
13724 take a plain rtx for "insn", to avoid introducing dependencies on
13725 other patches. Rename this 2nd param from "insn" to
13726 "uncast_insn", and reintroduce "insn" as a local variable of type
13727 rtx_insn *, initialized at the top of the generated function with
13728 a checked cast on "uncast_insn".
13729 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
13730 the generated "gen_" functions from rtx to rtx_insn * within their
13733 * genoutput.c (process_template): Strengthen the 2nd param within
13734 the generated "output_" functions "insn" from rtx to rtx_insn *.
13736 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13738 * tree-profile.c (tree_profiling): Skip external functions
13739 when doing coverage instrumentation.
13740 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
13742 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13744 * config/rs6000/altivec.h (vec_cpsgn): New #define.
13745 (vec_mergee): Likewise.
13746 (vec_mergeo): Likewise.
13747 (vec_cntlz): Likewise.
13748 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
13749 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
13750 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
13751 VMRGEW, and VMRGOW.
13752 * doc/extend.texi: Document various forms of vec_cpsgn,
13753 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
13754 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
13755 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
13756 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
13757 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
13759 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13761 * config/rs6000/rs6000.c (context.h): New include.
13762 (tree-pass.h): Likewise.
13763 (make_pass_analyze_swaps): New decl.
13764 (rs6000_option_override): Register pass_analyze_swaps.
13765 (swap_web_entry): New subsclass of web_entry_base (df.h).
13766 (special_handling_values): New enum.
13767 (union_defs): New function.
13768 (union_uses): Likewise.
13769 (insn_is_load_p): Likewise.
13770 (insn_is_store_p): Likewise.
13771 (insn_is_swap_p): Likewise.
13772 (rtx_is_swappable_p): Likewise.
13773 (insn_is_swappable_p): Likewise.
13774 (chain_purpose): New enum.
13775 (chain_contains_only_swaps): New function.
13776 (mark_swaps_for_removal): Likewise.
13777 (swap_const_vector_halves): Likewise.
13778 (adjust_subreg_index): Likewise.
13779 (permute_load): Likewise.
13780 (permute_store): Likewise.
13781 (handle_special_swappables): Likewise.
13782 (replace_swap_with_copy): Likewise.
13783 (dump_swap_insn_table): Likewise.
13784 (rs6000_analyze_swaps): Likewise.
13785 (pass_data_analyze_swaps): New pass_data.
13786 (pass_analyze_swaps): New rtl_opt_pass.
13787 (make_pass_analyze_swaps): New function.
13788 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
13790 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13792 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
13793 type from rtx to rtx_insn *.
13794 (create_copy_of_insn_rtx): Likewise.
13795 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
13796 (create_copy_of_insn_rtx): Likewise, also for local "res".
13798 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13800 * rtl.h (find_first_parameter_load): Strengthen return type from
13802 * rtlanal.c (find_first_parameter_load): Strengthen return type
13803 from rtx to rtx_insn *. Add checked cast for now, to postpone
13804 strengthening the params.
13806 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13809 * diagnostic.c: Set default caret.
13810 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
13812 * diagnostic.h (struct diagnostic_context):
13814 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13816 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
13817 (sel_bb_head): Strengthen return type insn_t (currently just an
13818 rtx) to rtx_insn *.
13819 (sel_bb_end): Likewise.
13821 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
13822 (sel_bb_head): Strengthen return type and local "head" from
13823 insn_t (currently just an rtx) to rtx_insn *.
13824 (sel_bb_end): Likewise for return type.
13825 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
13828 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13830 * basic-block.h (get_last_bb_insn): Strengthen return type from
13832 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
13835 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13838 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
13840 (diagnostic_report_diagnostic): ... from here.
13841 * toplev.c (general_init): Move code to c-family.
13843 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13845 * df.h (web_entry_base): Replace existing struct web_entry with a
13846 new class web_entry_base with only the predecessor member.
13847 (unionfind_root): Remove declaration and move to class member.
13848 (unionfind_union): Remove declaration and move to friend
13850 (union_defs): Remove declaration.
13851 * web.c (web_entry_base::unionfind_root): Modify to be member
13852 function and adjust accessors.
13853 (unionfind_union): Modify to be friend function and adjust
13855 (web_entry): New subclass of web_entry_base containing the reg
13857 (union_match_dups): Modify for struct -> class changes.
13858 (union_defs): Likewise.
13859 (entry_register): Likewise.
13860 (pass_web::execute): Likewise.
13862 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
13864 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
13865 builtin define __VEC_ELEMENT_REG_ORDER__.
13867 2014-08-20 Martin Jambor <mjambor@suse.cz>
13868 Wei Mi <wmi@google.com>
13871 PR middle-end/61776
13872 * tree-ssa-operands.c (update_stmt_operands): Remove
13873 MODIFIED_NORETURN_CALLS.
13874 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
13875 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
13876 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
13877 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
13878 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
13879 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
13880 (gimple_call_set_ctrl_altering): New func.
13881 (gimple_call_ctrl_altering_p): Ditto.
13882 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
13883 (make_blocks): Use gimple_call_initialize_ctrl_altering.
13884 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
13885 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
13886 remove MODIFIED_NORETURN_CALLS.
13888 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13890 * coverage.c (coverage_compute_profile_id): Return non-0;
13891 also handle symbols with unique name.
13892 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
13894 2014-08-20 Steve Ellcey <sellcey@mips.com>
13896 PR middle-end/49191
13897 * doc/sourcebuild.texi (non_strict_align): New.
13899 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13901 * cgraphunit.c (ipa_passes, compile): Reshedule
13902 symtab_remove_unreachable_nodes passes; update comments.
13903 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
13904 TODO_remove_functions before the pass; the functions ought to be
13906 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
13907 TODO_remove_functions.
13908 * passes.c (pass_data_early_local_passes): Do not schedule function
13910 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
13912 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13915 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
13916 before setting the option.
13917 * diagnostic.c (diagnostic_classify_diagnostic): Record
13918 command-line status.
13920 2014-08-20 Richard Biener <rguenther@suse.de>
13923 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
13924 to build uint{16,32,64}_type_node.
13926 2014-08-20 Terry Guo <terry.guo@arm.com>
13928 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
13929 with immediate_operand.
13931 2014-08-20 David Malcolm <dmalcolm@redhat.com>
13933 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
13934 "insn" from an as_a to a safe_as_a, for the case when "insn" is
13937 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13939 PR preprocessor/51303
13940 * incpath.c (remove_duplicates): Use cpp_warning.
13942 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13946 * doc/options.texi (CPP): Document it.
13947 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
13948 * optc-gen.awk: Handle CPP.
13949 * opth-gen.awk: Likewise.
13951 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13953 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
13955 (duplicate_insn_chain): Likewise.
13956 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
13957 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
13958 checked cast for now (until we can strengthen the params in the
13960 (duplicate_insn_chain): Likewise.
13962 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13964 * rtl.h (next_cc0_user): Strengthen return type from rtx to
13966 (prev_cc0_setter): Likewise.
13968 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
13969 rtx_insn *, adding checked casts for now as necessary.
13970 (prev_cc0_setter): Likewise.
13972 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13974 * expr.h (emit_move_insn): Strengthen return type from rtx to
13976 (emit_move_insn_1): Likewise.
13977 (emit_move_complex_push): Likewise.
13978 (emit_move_complex_parts): Likewise.
13980 * expr.c (emit_move_via_integer): Strengthen return type from rtx
13981 to rtx_insn *. Replace use of NULL_RTX with NULL when working
13983 (emit_move_complex_push): Strengthen return type from rtx to
13985 (emit_move_complex): Likewise, also for local "ret".
13986 (emit_move_ccmode): Likewise.
13987 (emit_move_multi_word): Likewise for return type and locals
13988 "last_insn", "seq".
13989 (emit_move_insn_1): Likewise for return type and locals "result",
13991 (emit_move_insn): Likewise for return type and local "last_insn".
13992 (compress_float_constant): Likewise.
13994 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13996 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
13997 from rtx to rtx_insn *.
13999 * rtl.h (emit_insn_before): Likewise.
14000 (emit_insn_before_noloc): Likewise.
14001 (emit_insn_before_setloc): Likewise.
14002 (emit_jump_insn_before): Likewise.
14003 (emit_jump_insn_before_noloc): Likewise.
14004 (emit_jump_insn_before_setloc): Likewise.
14005 (emit_call_insn_before): Likewise.
14006 (emit_call_insn_before_noloc): Likewise.
14007 (emit_call_insn_before_setloc): Likewise.
14008 (emit_debug_insn_before): Likewise.
14009 (emit_debug_insn_before_noloc): Likewise.
14010 (emit_debug_insn_before_setloc): Likewise.
14011 (emit_label_before): Likewise.
14012 (emit_insn_after): Likewise.
14013 (emit_insn_after_noloc): Likewise.
14014 (emit_insn_after_setloc): Likewise.
14015 (emit_jump_insn_after): Likewise.
14016 (emit_jump_insn_after_noloc): Likewise.
14017 (emit_jump_insn_after_setloc): Likewise.
14018 (emit_call_insn_after): Likewise.
14019 (emit_call_insn_after_noloc): Likewise.
14020 (emit_call_insn_after_setloc): Likewise.
14021 (emit_debug_insn_after): Likewise.
14022 (emit_debug_insn_after_noloc): Likewise.
14023 (emit_debug_insn_after_setloc): Likewise.
14024 (emit_label_after): Likewise.
14025 (emit_insn): Likewise.
14026 (emit_debug_insn): Likewise.
14027 (emit_jump_insn): Likewise.
14028 (emit_call_insn): Likewise.
14029 (emit_label): Likewise.
14030 (gen_clobber): Likewise.
14031 (emit_clobber): Likewise.
14032 (gen_use): Likewise.
14033 (emit_use): Likewise.
14036 (emit_barrier_before): Strengthen return type from rtx to
14038 (emit_barrier_after): Likewise.
14039 (emit_barrier): Likewise.
14041 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
14042 from rtx to rtx_insn *. Add checked casts for now when converting
14043 "last" from rtx to rtx_insn *.
14044 (emit_insn_before_noloc): Likewise for return type.
14045 (emit_jump_insn_before_noloc): Likewise.
14046 (emit_call_insn_before_noloc): Likewise.
14047 (emit_debug_insn_before_noloc): Likewise.
14048 (emit_barrier_before): Strengthen return type and local "insn"
14049 from rtx to rtx_barrier *.
14050 (emit_label_before): Strengthen return type from rtx to
14051 rtx_insn *. Add checked cast for now when returning param
14052 (emit_pattern_after_noloc): Strengthen return type from rtx to
14053 rtx_insn *. Add checked casts for now when converting "last" from
14055 (emit_insn_after_noloc): Strengthen return type from rtx to
14057 (emit_jump_insn_after_noloc): Likewise.
14058 (emit_call_insn_after_noloc): Likewise.
14059 (emit_debug_insn_after_noloc): Likewise.
14060 (emit_barrier_after): Strengthen return type from rtx to
14062 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14063 Add checked cast for now when converting "label" from rtx to
14065 (emit_pattern_after_setloc): Strengthen return type from rtx to
14066 rtx_insn *. Add checked casts for now when converting "last" from
14068 (emit_pattern_after): Strengthen return type from rtx to
14070 (emit_insn_after_setloc): Likewise.
14071 (emit_insn_after): Likewise.
14072 (emit_jump_insn_after_setloc): Likewise.
14073 (emit_jump_insn_after): Likewise.
14074 (emit_call_insn_after_setloc): Likewise.
14075 (emit_call_insn_after): Likewise.
14076 (emit_debug_insn_after_setloc): Likewise.
14077 (emit_debug_insn_after): Likewise.
14078 (emit_pattern_before_setloc): Likewise. Add checked casts for now
14079 when converting "last" from rtx to rtx_insn *.
14080 (emit_pattern_before): Strengthen return type from rtx to
14082 (emit_insn_before_setloc): Likewise.
14083 (emit_insn_before): Likewise.
14084 (emit_jump_insn_before_setloc): Likewise.
14085 (emit_jump_insn_before): Likewise.
14086 (emit_call_insn_before_setloc): Likewise.
14087 (emit_call_insn_before): Likewise.
14088 (emit_debug_insn_before_setloc): Likewise.
14089 (emit_debug_insn_before): Likewise.
14090 (emit_insn): Strengthen return type and locals "last", "insn",
14091 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
14092 within cases where we know we have an insn.
14093 (emit_debug_insn): Likewise.
14094 (emit_jump_insn): Likewise.
14095 (emit_call_insn): Strengthen return type and local "insn" from rtx
14097 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
14098 a checked cast to rtx_insn * for now on "label".
14099 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
14100 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
14101 (emit_use): Likewise.
14102 (gen_use): Likewise, also for local "seq".
14103 (emit): Likewise for return type and local "insn".
14104 (rtx_insn): Likewise for return type and local "new_rtx".
14106 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
14107 from rtx to rtx_barrier *.
14109 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
14110 changed return type from rtx to rtx_insn *, we must update
14111 "emit_fn" type, and this in turn means updating...
14112 (frame_insn): ...this. Strengthen return type from rtx to
14113 rtx_insn *. Introduce a new local "insn" of the appropriate type.
14115 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14117 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
14118 rtx to rtx_jump_table_data *. Also for local.
14119 * rtl.h (emit_jump_table_data): Likewise.
14121 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14123 * basic-block.h (create_basic_block_structure): Strengthen third
14124 param "bb_note" from rtx to rtx_note *.
14125 * rtl.h (emit_note_before): Strengthen return type from rtx to
14127 (emit_note_after): Likewise.
14128 (emit_note): Likewise.
14129 (emit_note_copy): Likewise. Also, strengthen param similarly.
14130 * function.h (struct rtl_data): Strengthen field
14131 "x_stack_check_probe_note" from rtx to rtx_note *.
14133 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14134 from rtx to rtx_note *.
14135 * cfgrtl.c (create_basic_block_structure): Strengthen third param
14136 "bb_note" from rtx to rtx_note *.
14137 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
14138 when calling emit_note_copy.
14139 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14141 (emit_note_after): Likewise.
14142 (emit_note_before): Likewise.
14143 (emit_note_copy): Likewise. Also, strengthen param similarly.
14144 (emit_note): Likewise.
14145 * except.c (emit_note_eh_region_end): Likewise for return type.
14146 Strengthen local "next" from rtx to rtx_insn *.
14147 (convert_to_eh_region_ranges): Strengthen local "note"
14148 from rtx to rtx_note *.
14149 * final.c (change_scope): Likewise.
14150 (reemit_insn_block_notes): Likewise, for both locals named "note".
14151 Also, strengthen local "insn" from rtx to rtx_insn *.
14152 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14154 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14155 strengthen local "seq" from rtx to rtx_insn *.
14156 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14158 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14160 (get_bb_note_from_pool): Strengthen return type from rtx to
14162 (sel_create_basic_block): Strengthen local "new_bb_note" from
14163 insn_t to rtx_note *.
14164 * var-tracking.c (emit_note_insn_var_location): Strengthen local
14165 "note" from rtx to rtx_note *.
14166 (emit_notes_in_bb): Likewise.
14168 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14170 * function.h (struct rtl_data): Strengthen field
14171 "x_parm_birth_insn" from rtx to rtx_insn *.
14172 * function.c (struct assign_parm_data_all): Strengthen fields
14173 "first_conversion_insn" and "last_conversion_insn" from rtx to
14176 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14178 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14179 to rtx_insn *; also for local "var_end_seq".
14180 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14181 (maybe_cleanup_end_of_block): Likewise for param "last" and local
14183 (expand_gimple_cond): Likewise for locals "last2" and "last".
14184 (mark_transaction_restart_calls): Likewise for local "insn".
14185 (expand_gimple_stmt): Likewise for return type and locals "last"
14187 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14188 (avoid_complex_debug_insns): Likewise for param "insn".
14189 (expand_debug_locations): Likewise for locals "insn", "last",
14190 "prev_insn" and "insn2".
14191 (expand_gimple_basic_block): Likewise for local "last".
14192 (construct_exit_block): Likewise for locals "head", "end",
14194 (pass_expand::execute): Likewise for locals "var_seq",
14195 "var_ret_seq", "next".
14197 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14199 * asan.h (asan_emit_stack_protection): Strengthen return type from
14201 * asan.c (asan_emit_stack_protection): Likewise. Add local
14202 "insns" to hold the return value.
14204 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14206 * basic-block.h (bb_note): Strengthen return type from rtx to
14208 * sched-int.h (bb_note): Likewise.
14209 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
14211 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14213 * rtl.h (make_insn_raw): Strengthen return type from rtx to
14216 * emit-rtl.c (make_insn_raw): Strengthen return type and local
14217 "insn" from rtx to rtx_insn *.
14218 (make_debug_insn_raw): Strengthen return type from rtx to
14219 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14220 (make_jump_insn_raw): Strengthen return type from rtx to
14221 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14222 (make_call_insn_raw): Strengthen return type from rtx to
14223 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14224 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14225 callback from rtx to rtx_insn *; likewise for local "insn" and
14226 "next", adding a checked cast to rtx_insn in the relevant cases of
14227 the switch statement.
14228 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14229 callback from rtx to rtx_insn *.
14230 (emit_pattern_after_setloc): Likewise.
14231 (emit_pattern_after): Likewise.
14232 (emit_pattern_before_setloc): Likewise.
14233 (emit_pattern_before): Likewise.
14235 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14237 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
14239 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
14240 accepting an rtx_insn *.
14241 (last_call_insn): Strengthen return type from rtx to
14244 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14246 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
14247 "insns" from rtx to rtx_insn *.
14248 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
14249 locals "insn" and "prev".
14251 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14253 * rtl.h (tablejump_p): Strengthen third param from rtx * to
14254 rtx_jump_table_data **.
14256 * cfgbuild.c (make_edges): Introduce local "table", using it in
14257 place of "tmp" for jump table data.
14258 (find_bb_boundaries): Strengthen local "table" from rtx to
14259 rtx_jump_table_data *.
14260 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14261 (outgoing_edges_match): Likewise for locals "table1" and "table2".
14262 (try_crossjump_to_edge): Likewise.
14263 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
14265 (patch_jump_insn): Introduce local "table", using it in place of
14266 "tmp" for jump table data.
14267 (force_nonfallthru_and_redirect): Introduce local "table", so that
14268 call to tablejump_p can receive an rtx_jump_table_data **. Update
14269 logic around the call to overwrite "note" appropriately if
14270 tablejump_p returns non-zero.
14271 (get_last_bb_insn): Introduce local "table", using it in place of
14272 "tmp" for jump table data.
14273 * dwarf2cfi.c (create_trace_edges): Likewise.
14275 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
14276 from rtx to rtx_jump_table_data *.
14277 (create_fix_barrier): Strengthen local "tmp" from rtx to
14278 rtx_jump_table_data *.
14279 (arm_reorg): Likewise for local "table".
14281 * config/s390/s390.c (s390_chunkify_start): Likewise.
14283 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
14285 * jump.c (delete_related_insns): Strengthen local "lab_next" from
14286 rtx to rtx_jump_table_data *.
14288 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
14289 rtx_jump_table_data **. Add a checked cast when writing through
14290 the pointer: we know there that local "table" is non-NULL and that
14291 JUMP_TABLE_DATA_P (table) holds.
14292 (label_is_jump_target_p): Introduce local "table", using it in
14293 place of "tmp" for jump table data.
14295 2014-08-19 Marek Polacek <polacek@redhat.com>
14298 * doc/invoke.texi: Document -Wbool-compare.
14300 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14302 * rtl.h (entry_of_function): Strengthen return type from rtx to
14304 * cfgrtl.c (entry_of_function): Likewise.
14306 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14308 * emit-rtl.h (get_insns): Strengthen return type from rtx to
14309 rtx_insn *, adding a checked cast for now.
14310 (get_last_insn): Likewise.
14312 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14314 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
14317 * emit-rtl.c (gen_label_rtx): Likewise.
14319 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14321 * rtl.h (previous_insn): Strengthen return type from rtx to
14323 (next_insn): Likewise.
14324 (prev_nonnote_insn): Likewise.
14325 (prev_nonnote_insn_bb): Likewise.
14326 (next_nonnote_insn): Likewise.
14327 (next_nonnote_insn_bb): Likewise.
14328 (prev_nondebug_insn): Likewise.
14329 (next_nondebug_insn): Likewise.
14330 (prev_nonnote_nondebug_insn): Likewise.
14331 (next_nonnote_nondebug_insn): Likewise.
14332 (prev_real_insn): Likewise.
14333 (next_real_insn): Likewise.
14334 (prev_active_insn): Likewise.
14335 (next_active_insn): Likewise.
14337 * emit-rtl.c (next_insn): Strengthen return type from rtx to
14338 rtx_insn *, adding a checked cast.
14339 (previous_insn): Likewise.
14340 (next_nonnote_insn): Likewise.
14341 (next_nonnote_insn_bb): Likewise.
14342 (prev_nonnote_insn): Likewise.
14343 (prev_nonnote_insn_bb): Likewise.
14344 (next_nondebug_insn): Likewise.
14345 (prev_nondebug_insn): Likewise.
14346 (next_nonnote_nondebug_insn): Likewise.
14347 (prev_nonnote_nondebug_insn): Likewise.
14348 (next_real_insn): Likewise.
14349 (prev_real_insn): Likewise.
14350 (next_active_insn): Likewise.
14351 (prev_active_insn): Likewise.
14353 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
14354 param "stepfunc" so that it returns an rtx_insn * rather than an
14355 rtx, to track the change to prev_nonnote_insn_bb, which is the
14356 only function this is called with.
14357 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
14359 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
14361 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
14364 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14366 * coretypes.h (class rtx_debug_insn): Add forward declaration.
14367 (class rtx_nonjump_insn): Likewise.
14368 (class rtx_jump_insn): Likewise.
14369 (class rtx_call_insn): Likewise.
14370 (class rtx_jump_table_data): Likewise.
14371 (class rtx_barrier): Likewise.
14372 (class rtx_code_label): Likewise.
14373 (class rtx_note): Likewise.
14375 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
14376 adding the invariant DEBUG_INSN_P (X).
14377 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
14378 the invariant NONJUMP_INSN_P (X).
14379 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
14380 the invariant JUMP_P (X).
14381 (class rtx_call_insn): New, a subclass of rtx_insn, adding
14382 the invariant CALL_P (X).
14383 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
14384 invariant JUMP_TABLE_DATA_P (X).
14385 (class rtx_barrier): New, a subclass of rtx_insn, adding the
14386 invariant BARRIER_P (X).
14387 (class rtx_code_label): New, a subclass of rtx_insn, adding
14388 the invariant LABEL_P (X).
14389 (class rtx_note): New, a subclass of rtx_insn, adding
14390 the invariant NOTE_P(X).
14391 (is_a_helper <rtx_debug_insn *>::test): New.
14392 (is_a_helper <rtx_nonjump_insn *>::test): New.
14393 (is_a_helper <rtx_jump_insn *>::test): New.
14394 (is_a_helper <rtx_call_insn *>::test): New.
14395 (is_a_helper <rtx_jump_table_data *>::test): New functions,
14396 overloaded for both rtx and rtx_insn *.
14397 (is_a_helper <rtx_barrier *>::test): New.
14398 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
14399 for both rtx and rtx_insn *.
14400 (is_a_helper <rtx_note *>::test): New.
14402 2014-08-19 Marek Polacek <polacek@redhat.com>
14404 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
14405 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14406 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
14407 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14409 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14411 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
14412 rtx_insn *. To help with transition, for now, convert from an
14413 access macro into a pair of functions: BND_TO, returning an
14415 (SET_BND_TO): New function, for use where BND_TO is used as an
14418 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
14420 (BND_TO): New function, adding a checked cast.
14421 (SET_BND_TO): New function.
14423 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
14425 (compute_av_set_on_boundaries): Likewise.
14427 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14429 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
14430 destination if it is used in source.
14431 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
14432 (*popcount<mode>2_falsedep_1): Likewise.
14434 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14437 * configure.ac: Set install_gold_as_default to no first.
14438 * configure: Regenerated.
14440 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14442 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
14443 "note_list" field will eventually be an rtx_insn *. To help with
14444 transition, for now, convert from an access macro into a pair of
14445 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
14446 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
14449 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
14450 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
14452 * sel-sched-ir.c (init_bb): Likewise.
14453 (sel_restore_notes): Likewise.
14454 (move_bb_info): Likewise.
14455 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
14456 (SET_BB_NOTE_LIST): New function.
14458 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14460 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
14461 field will eventually be an rtx_insn *. To help with transition,
14462 for now, convert from an access macro into a pair of functions:
14463 VINSN_INSN_RTX, returning an rtx_insn *, and...
14464 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
14465 is used as an lvalue.
14467 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
14468 SET_VINSN_INSN_RTX where it's used as an lvalue.
14469 (VINSN_INSN_RTX): New function.
14470 (SET_VINSN_INSN_RTX): New function.
14472 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14474 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
14475 eventually be rtx_insn *, but to help with transition, for now,
14476 convert from an access macro into a pair of functions: DEP_PRO
14477 returning an rtx_insn * and...
14478 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
14479 lvalue, returning an rtx&.
14480 (DEP_CON): Analogous changes to DEP_PRO above.
14481 (SET_DEP_CON): Likewise.
14483 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14484 an lvalue to SET_DEP_CON.
14485 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14486 (sd_copy_back_deps): Likewise for DEP_CON.
14487 (DEP_PRO): New function, adding a checked cast for now.
14488 (DEP_CON): Likewise.
14489 (SET_DEP_PRO): New function.
14490 (SET_DEP_CON): Likewise.
14492 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14494 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14495 (extra_options): Add i386/cygwin.opt.
14496 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14497 (CPP_SPEC): Accept -pthread.
14498 (LINK_SPEC): Ditto.
14499 (GOMP_SELF_SPECS): Update comment.
14500 * config/i386/cygwin.opt: New file for -pthread flag.
14502 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14504 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14505 * df.h (DF_REF_INSN): Convert from a macro to a function, so
14506 that we can return an rtx_insn *.
14508 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14510 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14511 when building executables, not DLLs. Add --large-address-aware
14512 under the same conditions.
14513 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14514 when building executables, not DLLs. Add --large-address-aware
14515 under the same conditions when using -m32.
14517 * config/i386/cygwin-stdint.h: Throughout, make type
14518 definitions dependent on target architecture, not host.
14520 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14522 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
14523 the return type from rtx to rtx_insn *, which will enable various
14524 conversions in followup patches. For now this is is done by a
14526 (NEXT_INSN): Likewise.
14527 (SET_PREV_INSN): Convert to an inline function. This is intended
14528 for use as an lvalue, and so returns an rtx& to allow in-place
14530 (SET_NEXT_INSN): Likewise.
14532 2014-07-08 Mark Wielaard <mjw@redhat.com>
14535 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14537 2014-08-19 Marek Polacek <polacek@redhat.com>
14540 * cgraphunit.c (handle_alias_pairs): Fix condition.
14542 2014-08-19 Richard Biener <rguenther@suse.de>
14544 * gimple-fold.c (fold_gimple_assign): Properly build a
14545 null-pointer constant when devirtualizing addresses.
14547 2014-07-07 Mark Wielaard <mjw@redhat.com>
14549 * dwarf2out.c (decl_quals): New function.
14550 (modified_type_die): Take one cv_quals argument instead of two,
14551 one for const and one for volatile.
14552 (add_type_attribute): Likewise.
14553 (generic_parameter_die): Call add_type_attribute with one modifier
14555 (base_type_for_mode): Likewise.
14556 (add_bounds_info): Likewise.
14557 (add_subscript_info): Likewise.
14558 (gen_array_type_die): Likewise.
14559 (gen_descr_array_type_die): Likewise.
14560 (gen_entry_point_die): Likewise.
14561 (gen_enumeration_type_die): Likewise.
14562 (gen_formal_parameter_die): Likewise.
14563 (gen_subprogram_die): Likewise.
14564 (gen_variable_die): Likewise.
14565 (gen_const_die): Likewise.
14566 (gen_field_die): Likewise.
14567 (gen_pointer_type_die): Likewise.
14568 (gen_reference_type_die): Likewise.
14569 (gen_ptr_to_mbr_type_die): Likewise.
14570 (gen_inheritance_die): Likewise.
14571 (gen_subroutine_type_die): Likewise.
14572 (gen_typedef_die): Likewise.
14573 (force_type_die): Likewise.
14575 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14577 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
14579 * configure: Regenerate.
14581 2014-08-19 Richard Biener <rguenther@suse.de>
14583 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
14584 DECL_EXTERNALs in BLOCKs as non-references.
14585 * tree-streamer-out.c (streamer_write_chain): Likewise.
14587 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
14588 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14589 Anna Tikhonova <anna.tikhonova@intel.com>
14590 Ilya Tocar <ilya.tocar@intel.com>
14591 Andrey Turetskiy <andrey.turetskiy@intel.com>
14592 Ilya Verbin <ilya.verbin@intel.com>
14593 Kirill Yukhin <kirill.yukhin@intel.com>
14594 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14596 * config/i386/sse.md
14597 (define_mode_iterator VI48_AVX512F): Delete.
14598 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14599 (define_mode_iterator VI2_AVX512VL): Ditto.
14600 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14603 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14605 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14606 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14607 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14608 with VI48_AVX512F_AVX512VL): New.
14609 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14610 with VI2_AVX512VL): Ditto.
14612 2014-08-19 Marek Polacek <polacek@redhat.com>
14614 * doc/invoke.texi: Document -Wc99-c11-compat.
14616 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14618 * rtl.h (PREV_INSN): Split macro in two: the existing one,
14619 for rvalues, and...
14620 (SET_PREV_INSN): New macro, for use as an lvalue.
14621 (NEXT_INSN, SET_NEXT_INSN): Likewise.
14623 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14624 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14625 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14626 (fixup_abnormal_edges): Likewise.
14627 (unlink_insn_chain): Likewise.
14628 (fixup_reorder_chain): Likewise.
14629 (cfg_layout_delete_block): Likewise.
14630 (cfg_layout_merge_blocks): Likewise.
14631 * combine.c (update_cfg_for_uncondjump): Likewise.
14632 * emit-rtl.c (link_insn_into_chain): Likewise.
14633 (remove_insn): Likewise.
14634 (delete_insns_since): Likewise.
14635 (reorder_insns_nobb): Likewise.
14636 (emit_insn_after_1): Likewise.
14637 * final.c (rest_of_clean_state): Likewise.
14638 (final_scan_insn): Likewise.
14639 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
14640 * haifa-sched.c (concat_note_lists): Likewise.
14641 (remove_notes): Likewise.
14642 (restore_other_notes): Likewise.
14643 (move_insn): Likewise.
14644 (unlink_bb_notes): Likewise.
14645 (restore_bb_notes): Likewise.
14646 * jump.c (delete_for_peephole): Likewise.
14647 * optabs.c (emit_libcall_block_1): Likewise.
14648 * reorg.c (emit_delay_sequence): Likewise.
14649 (fill_simple_delay_slots): Likewise.
14650 * sel-sched-ir.c (sel_move_insn): Likewise.
14651 (sel_remove_insn): Likewise.
14652 (get_bb_note_from_pool): Likewise.
14653 * sel-sched.c (move_nop_to_previous_block): Likewise.
14655 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
14656 * config/c6x/c6x.c (gen_one_bundle): Likewise.
14657 (c6x_gen_bundles): Likewise.
14658 (hwloop_optimize): Likewise.
14659 * config/frv/frv.c (frv_function_prologue): Likewise.
14660 (frv_register_nop): Likewise.
14661 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
14662 (ia64_reorg): Likewise.
14663 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
14664 (mep_make_bundle): Likewise.
14665 (mep_bundle_insns): Likewise.
14666 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
14667 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
14668 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
14670 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14672 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
14673 return type from rtx to rtx_insn *.
14674 (BB_END): Likewise.
14675 (BB_HEADER): Likewise.
14676 (BB_FOOTER): Likewise.
14677 (SET_BB_HEAD): Convert to a function.
14678 (SET_BB_END): Likewise.
14679 (SET_BB_HEADER): Likewise.
14680 (SET_BB_FOOTER): Likewise.
14682 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
14683 Strengthen the return type from rtx to rtx_insn *. For now, this
14684 is done by adding a checked cast, but this will eventually
14685 become a field lookup.
14686 (BB_END): Likewise.
14687 (BB_HEADER): Likewise.
14688 (BB_FOOTER): Likewise.
14689 (SET_BB_HEAD): New function, from macro of same name. This is
14690 intended for use as an lvalue, and so returns an rtx& to allow
14691 in-place modification.
14692 (SET_BB_END): Likewise.
14693 (SET_BB_HEADER): Likewise.
14694 (SET_BB_FOOTER): Likewise.
14696 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14698 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
14699 for rvalues, and...
14700 (SET_BB_HEAD): New macro, for use as a lvalue.
14701 (BB_END, SET_BB_END): Likewise.
14702 (BB_HEADER, SET_BB_HEADER): Likewise.
14703 (BB_FOOTER, SET_BB_FOOTER): Likewise.
14705 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
14706 of BB_* macros into SET_BB_* macros.
14707 (fix_crossing_unconditional_branches): Likewise.
14708 * caller-save.c (save_call_clobbered_regs): Likewise.
14709 (insert_one_insn): Likewise.
14710 * cfgbuild.c (find_bb_boundaries): Likewise.
14711 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14712 (outgoing_edges_match): Likewise.
14713 (try_optimize_cfg): Likewise.
14714 * cfgexpand.c (expand_gimple_cond): Likewise.
14715 (expand_gimple_tailcall): Likewise.
14716 (expand_gimple_basic_block): Likewise.
14717 (construct_exit_block): Likewise.
14718 * cfgrtl.c (delete_insn): Likewise.
14719 (create_basic_block_structure): Likewise.
14720 (rtl_delete_block): Likewise.
14721 (rtl_split_block): Likewise.
14722 (emit_nop_for_unique_locus_between): Likewise.
14723 (rtl_merge_blocks): Likewise.
14724 (block_label): Likewise.
14725 (try_redirect_by_replacing_jump): Likewise.
14726 (emit_barrier_after_bb): Likewise.
14727 (fixup_abnormal_edges): Likewise.
14728 (record_effective_endpoints): Likewise.
14729 (relink_block_chain): Likewise.
14730 (fixup_reorder_chain): Likewise.
14731 (fixup_fallthru_exit_predecessor): Likewise.
14732 (cfg_layout_duplicate_bb): Likewise.
14733 (cfg_layout_split_block): Likewise.
14734 (cfg_layout_delete_block): Likewise.
14735 (cfg_layout_merge_blocks): Likewise.
14736 * combine.c (update_cfg_for_uncondjump): Likewise.
14737 * emit-rtl.c (add_insn_after): Likewise.
14738 (remove_insn): Likewise.
14739 (reorder_insns): Likewise.
14740 (emit_insn_after_1): Likewise.
14741 * haifa-sched.c (get_ebb_head_tail): Likewise.
14742 (restore_other_notes): Likewise.
14743 (move_insn): Likewise.
14744 (sched_extend_bb): Likewise.
14745 (fix_jump_move): Likewise.
14746 * ifcvt.c (noce_process_if_block): Likewise.
14747 (dead_or_predicable): Likewise.
14748 * ira.c (update_equiv_regs): Likewise.
14749 * reg-stack.c (change_stack): Likewise.
14750 * sel-sched-ir.c (sel_move_insn): Likewise.
14751 * sel-sched.c (move_nop_to_previous_block): Likewise.
14753 * config/c6x/c6x.c (hwloop_optimize): Likewise.
14754 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
14756 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14758 * rtl.h (for_each_rtx_in_insn): New function.
14759 * rtlanal.c (for_each_rtx_in_insn): Likewise.
14761 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14763 * coretypes.h (class rtx_insn): Add forward declaration.
14765 * rtl.h: Include is-a.h.
14766 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
14767 workaround to ensure gengtype knows inheritance is occurring,
14768 whilst continuing to use the pre-existing special-casing for
14770 (class rtx_insn): New subclass of rtx_def, adding the
14771 invariant that we're dealing with something we can sanely use
14772 INSN_UID, NEXT_INSN, PREV_INSN on.
14773 (is_a_helper <rtx_insn *>::test): New.
14774 (is_a_helper <const rtx_insn *>::test): New.
14776 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14778 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
14780 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
14782 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
14785 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
14787 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
14788 to BUILT_IN_UNREACHABLE.
14790 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
14793 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
14795 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
14796 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
14797 (ffs<mode>2): Do not expand with tzcnt for
14798 TARGET_AVOID_FALSE_DEP_FOR_BMI.
14799 (ffssi2_no_cmove): Ditto.
14800 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
14801 (ctz<mode>2): New expander.
14802 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
14803 (*ctz<mode>2_falsedep): New insn.
14804 (*ctz<mode>2): Rename from ctz<mode>2.
14805 (clz<mode>2_lzcnt): New expander.
14806 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
14807 (*clz<mode>2_lzcnt_falsedep): New insn.
14808 (*clz<mode>2): Rename from ctz<mode>2.
14809 (popcount<mode>2): New expander.
14810 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
14811 (*popcount<mode>2_falsedep): New insn.
14812 (*popcount<mode>2): Rename from ctz<mode>2.
14813 (*popcount<mode>2_cmp): Remove.
14814 (*popcountsi2_cmp_zext): Ditto.
14816 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
14818 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
14819 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
14820 * config/microblaze/microblaze.h
14821 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
14823 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
14826 * configure.ac: Set install_gold_as_default to no for
14828 * configure: Regenerated.
14830 2014-08-18 Roman Gareev <gareevroman@gmail.com>
14832 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
14833 * config.in: Add undef of HAVE_isl.
14834 * configure: Regenerate.
14835 * configure.ac: Add definition of HAVE_isl.
14836 * graphite-blocking.c: Add checking of HAVE_isl.
14837 * graphite-dependences.c: Likewise.
14838 * graphite-interchange.c: Likewise.
14839 * graphite-isl-ast-to-gimple.c: Likewise.
14840 * graphite-optimize-isl.c: Likewise.
14841 * graphite-poly.c: Likewise.
14842 * graphite-scop-detection.c: Likewise.
14843 * graphite-sese-to-poly.c: Likewise.
14844 * graphite.c: Likewise.
14845 * toplev.c: Replace the checking of HAVE_cloog with the checking
14848 2014-08-18 Richard Biener <rguenther@suse.de>
14850 PR tree-optimization/62090
14851 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
14852 (fold_builtin_3): Do not fold snprintf.
14853 (fold_builtin_4): Likewise.
14854 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
14855 moved from builtins.c.
14856 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
14857 (gimple_fold_builtin): Do not fold sprintf here.
14859 2014-08-18 Richard Biener <rguenther@suse.de>
14861 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
14863 (maybe_canonicalize_mem_ref_addr): ... this function.
14864 (fold_stmt_1): Apply it here before all simplification.
14866 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
14869 * cgraph.h (cgraph_node::create_indirect_edge): Add
14870 compute_indirect_info param.
14871 * cgraph.c (cgraph_node::create_indirect_edge): Compute
14872 indirect_info only when it is required.
14873 * cgraphclones.c (cgraph_clone_edge): Do not recompute
14874 indirect_info fore cloned indirect edge.
14876 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14877 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14878 Anna Tikhonova <anna.tikhonova@intel.com>
14879 Ilya Tocar <ilya.tocar@intel.com>
14880 Andrey Turetskiy <andrey.turetskiy@intel.com>
14881 Ilya Verbin <ilya.verbin@intel.com>
14882 Kirill Yukhin <kirill.yukhin@intel.com>
14883 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14885 * config/i386/sse.md
14886 (define_mode_iterator VI8_AVX2_AVX512BW): New.
14887 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
14889 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14890 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14891 Anna Tikhonova <anna.tikhonova@intel.com>
14892 Ilya Tocar <ilya.tocar@intel.com>
14893 Andrey Turetskiy <andrey.turetskiy@intel.com>
14894 Ilya Verbin <ilya.verbin@intel.com>
14895 Kirill Yukhin <kirill.yukhin@intel.com>
14896 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14898 * config/i386/sse.md
14899 (define_mode_iterator VF1_AVX512VL): New.
14900 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
14901 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
14904 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14905 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14906 Anna Tikhonova <anna.tikhonova@intel.com>
14907 Ilya Tocar <ilya.tocar@intel.com>
14908 Andrey Turetskiy <andrey.turetskiy@intel.com>
14909 Ilya Verbin <ilya.verbin@intel.com>
14910 Kirill Yukhin <kirill.yukhin@intel.com>
14911 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14913 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
14914 * config/i386/i386.md
14915 (define_code_iterator any_float): New.
14916 (define_code_attr floatsuffix): New.
14917 * config/i386/sse.md
14918 (define_mode_iterator VF1_128_256VL): New.
14919 (define_mode_iterator VF2_512_256VL): New.
14920 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
14922 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
14923 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
14925 (define_mode_attr qq2pssuff): New.
14926 (define_mode_attr sselongvecmode): New.
14927 (define_mode_attr sselongvecmodelower): New.
14928 (define_mode_attr sseintvecmode3): New.
14929 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
14931 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
14932 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
14933 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
14934 (define_insn "ufloatv2siv2df2<mask_name>"): New.
14936 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14937 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14938 Anna Tikhonova <anna.tikhonova@intel.com>
14939 Ilya Tocar <ilya.tocar@intel.com>
14940 Andrey Turetskiy <andrey.turetskiy@intel.com>
14941 Ilya Verbin <ilya.verbin@intel.com>
14942 Kirill Yukhin <kirill.yukhin@intel.com>
14943 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14945 * config/i386/sse.md
14946 (define_mode_iterator VF2_AVX512VL): New.
14947 (define_mode_attr sseintvecmode2): New.
14948 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
14949 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
14950 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
14952 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
14954 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14956 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14959 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14960 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14961 Anna Tikhonova <anna.tikhonova@intel.com>
14962 Ilya Tocar <ilya.tocar@intel.com>
14963 Andrey Turetskiy <andrey.turetskiy@intel.com>
14964 Ilya Verbin <ilya.verbin@intel.com>
14965 Kirill Yukhin <kirill.yukhin@intel.com>
14966 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14968 * config/i386/i386.md
14969 (define_insn "*movoi_internal_avx"): Add evex version.
14970 (define_insn "*movti_internal"): Ditto.
14972 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14973 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14974 Anna Tikhonova <anna.tikhonova@intel.com>
14975 Ilya Tocar <ilya.tocar@intel.com>
14976 Andrey Turetskiy <andrey.turetskiy@intel.com>
14977 Ilya Verbin <ilya.verbin@intel.com>
14978 Kirill Yukhin <kirill.yukhin@intel.com>
14979 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14981 * config/i386/i386.md
14982 (define_attr "isa"): Add avx512dq, noavx512dq.
14983 (define_attr "enabled"): Ditto.
14984 * config/i386/sse.md
14985 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
14987 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14988 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14989 Anna Tikhonova <anna.tikhonova@intel.com>
14990 Ilya Tocar <ilya.tocar@intel.com>
14991 Andrey Turetskiy <andrey.turetskiy@intel.com>
14992 Ilya Verbin <ilya.verbin@intel.com>
14993 Kirill Yukhin <kirill.yukhin@intel.com>
14994 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14996 * config/i386/i386.c
14997 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
14998 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
14999 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15000 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15001 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15002 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15003 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15004 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15005 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15006 * config/i386/sse.md
15007 (define_mode_iterator VMOVE): Allow V4TI mode.
15008 (define_mode_iterator V_AVX512VL): New.
15009 (define_mode_iterator V): New handling for AVX512VL.
15010 (define_insn "avx512f_load<mode>_mask"): Delete.
15011 (define_insn "<avx512>_load<mode>_mask"): New.
15012 (define_insn "avx512f_store<mode>_mask"): Delete.
15013 (define_insn "<avx512>_store<mode>_mask"): New.
15016 2014-08-18 Yury Gribov <y.gribov@samsung.com>
15019 * asan.c (instrument_derefs): Fix bitfield check.
15021 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15023 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15024 * config/rs6000/htm.md (ttest): Remove clobber.
15025 * config/rs6000/predicates.md (any_mask_operand): New predicate.
15026 (and_operand): Reformat.
15027 (and_2rld_operand): New predicate.
15028 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15030 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15031 parameter. Handle AND directly.
15032 (rs6000_split_logical_di): Remove last parameter.
15033 (rs6000_split_logical): Remove last parameter. Remove obsolete
15035 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15036 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15037 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
15038 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15039 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15040 and 5 anonymous splitters): Delete.
15041 (and<mode>3): New expander.
15042 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15043 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15044 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15045 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15046 (floatdisf2_internal1): Remove clobbers.
15047 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15048 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15049 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15050 (and<mode>3 for BOOL_128): Remove clobber.
15051 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
15052 rs6000_split_logical.
15053 (*bool<mode>3_internal for BOOL_128): Adjust call of
15054 rs6000_split_logical.
15055 (*boolc<mode>3_internal1 for BOOL_128,
15056 *boolc<mode>3_internal2 for BOOL_128,
15057 *boolcc<mode>3_internal1 for BOOL_128,
15058 *boolcc<mode>3_internal2 for BOOL_128,
15059 *eqv<mode>3_internal1 for BOOL_128,
15060 *eqv<mode>3_internal2 for BOOL_128,
15061 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15062 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15064 (*vec_reload_and_reg_<mptrsize>): Delete.
15066 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15068 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15069 and split, *boolccsi3_internal3 and split): Delete.
15070 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15071 *boolccdi3_internal3 and split): Delete.
15072 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15073 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
15075 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15077 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15078 and split, *boolcsi3_internal3 and split): Delete.
15079 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15080 *boolcdi3_internal3 and split): Delete.
15081 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15083 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15085 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15086 <'u'>: Also support printing the low-order 16 bits.
15087 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15088 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15089 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15090 *booldi3_internal3 and split): Delete.
15091 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15092 *bool<mode>3_dot2): New.
15093 (two anonymous define_splits for non_logical_cint_operand): Merge.
15095 2014-08-17 Marek Polacek <polacek@redhat.com>
15096 Manuel López-Ibáñez <manu@gcc.gnu.org>
15099 * diagnostic.c (adjust_line): Add gcc_checking_assert.
15100 (diagnostic_show_locus): Don't print caret diagnostic
15101 if a column is larger than the line_width.
15103 2014-08-17 Roman Gareev <gareevroman@gmail.com>
15105 * common.opt: Make the ISL AST generator to be the main code generator
15108 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
15110 * wide-int.h (generic_wide_int): Declare as class instead of struct.
15112 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
15115 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
15117 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
15118 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
15119 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
15121 * config/pa/pa.md (begin_brtab): Delete insn.
15122 (end_brtab): Likewise.
15124 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15126 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
15128 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
15130 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15131 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15132 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15133 (get_dynamic_type): Remove.
15134 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15135 (clear_speculation): Bring to ipa-deivrt.h
15136 (get_class_context): Rename to ...
15137 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15138 (contains_type_p): Update.
15139 (get_dynamic_type): Rename to ...
15140 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15141 (possible_polymorphic_call_targets): UPdate.
15142 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15143 * ipa-prop.c (ipa_analyze_call_uses): Update.
15145 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
15147 * doc/invoke.texi (SH options): Document missing processor variant
15148 options. Remove references to Hitachi. Undocument deprecated mspace
15151 2014-08-15 Jason Merrill <jason@redhat.com>
15153 * tree.c (type_hash_canon): Uncomment assert.
15155 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15157 * input.h (in_system_header_at): Add comment.
15159 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15162 * diagnostic.c (build_message_string): Make it extern.
15163 * diagnostic.h (build_message_string): Make it extern.
15165 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
15167 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15168 load/store from/to non-floating class pseudo.
15170 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15172 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15174 2014-08-15 Richard Biener <rguenther@suse.de>
15176 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15177 (get_constraint_for_ssa_var): Remove dead code.
15178 (get_constraint_for_1): Adjust.
15179 (find_what_var_points_to): Likewise.
15180 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
15182 2014-08-15 Ilya Tocar <tocarip@gmail.com>
15185 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15186 (_mm512_mask_cmpge_epu32_mask): Ditto.
15187 (_mm512_cmpge_epu32_mask): Ditto.
15188 (_mm512_mask_cmpge_epi64_mask): Ditto.
15189 (_mm512_cmpge_epi64_mask): Ditto.
15190 (_mm512_mask_cmpge_epu64_mask): Ditto.
15191 (_mm512_cmpge_epu64_mask): Ditto.
15192 (_mm512_mask_cmple_epi32_mask): Ditto.
15193 (_mm512_cmple_epi32_mask): Ditto.
15194 (_mm512_mask_cmple_epu32_mask): Ditto.
15195 (_mm512_cmple_epu32_mask): Ditto.
15196 (_mm512_mask_cmple_epi64_mask): Ditto.
15197 (_mm512_cmple_epi64_mask): Ditto.
15198 (_mm512_mask_cmple_epu64_mask): Ditto.
15199 (_mm512_cmple_epu64_mask): Ditto.
15200 (_mm512_mask_cmplt_epi32_mask): Ditto.
15201 (_mm512_cmplt_epi32_mask): Ditto.
15202 (_mm512_mask_cmplt_epu32_mask): Ditto.
15203 (_mm512_cmplt_epu32_mask): Ditto.
15204 (_mm512_mask_cmplt_epi64_mask): Ditto.
15205 (_mm512_cmplt_epi64_mask): Ditto.
15206 (_mm512_mask_cmplt_epu64_mask): Ditto.
15207 (_mm512_cmplt_epu64_mask): Ditto.
15208 (_mm512_mask_cmpneq_epi32_mask): Ditto.
15209 (_mm512_mask_cmpneq_epu32_mask): Ditto.
15210 (_mm512_cmpneq_epu32_mask): Ditto.
15211 (_mm512_mask_cmpneq_epi64_mask): Ditto.
15212 (_mm512_cmpneq_epi64_mask): Ditto.
15213 (_mm512_mask_cmpneq_epu64_mask): Ditto.
15214 (_mm512_cmpneq_epu64_mask): Ditto.
15215 (_mm512_castpd_ps): Ditto.
15216 (_mm512_castpd_si512): Ditto.
15217 (_mm512_castps_pd): Ditto.
15218 (_mm512_castps_si512): Ditto.
15219 (_mm512_castsi512_ps): Ditto.
15220 (_mm512_castsi512_pd): Ditto.
15221 (_mm512_castpd512_pd128): Ditto.
15222 (_mm512_castps512_ps128): Ditto.
15223 (_mm512_castsi512_si128): Ditto.
15224 (_mm512_castpd512_pd256): Ditto.
15225 (_mm512_castps512_ps256): Ditto.
15226 (_mm512_castsi512_si256): Ditto.
15227 (_mm512_castpd128_pd512): Ditto.
15228 (_mm512_castps128_ps512): Ditto.
15229 (_mm512_castsi128_si512): Ditto.
15230 (_mm512_castpd256_pd512): Ditto.
15231 (_mm512_castps256_ps512): Ditto.
15232 (_mm512_castsi256_si512): Ditto.
15233 (_mm512_cmpeq_epu32_mask): Ditto.
15234 (_mm512_mask_cmpeq_epu32_mask): Ditto.
15235 (_mm512_mask_cmpeq_epu64_mask): Ditto.
15236 (_mm512_cmpeq_epu64_mask): Ditto.
15237 (_mm512_cmpgt_epu32_mask): Ditto.
15238 (_mm512_mask_cmpgt_epu32_mask): Ditto.
15239 (_mm512_mask_cmpgt_epu64_mask): Ditto.
15240 (_mm512_cmpgt_epu64_mask): Ditto.
15241 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
15242 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
15243 * config/i386/i386.c (enum ix86_builtins): Add
15244 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
15245 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
15246 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
15247 (bdesc_args): Add __builtin_ia32_si512_256si,
15248 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
15249 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
15250 __builtin_ia32_pd512_pd.
15251 (ix86_expand_args_builtin): Handle new FTYPEs.
15252 * config/i386/sse.md (castmode): Add 512-bit modes.
15253 (AVX512MODE2P): New.
15254 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
15255 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
15257 2014-08-15 Richard Biener <rguenther@suse.de>
15259 * fold-const.c (tree_swap_operands_p): Put all constants
15260 last, also strip sign-changing NOPs when considering further
15261 canonicalization. Canonicalize also when optimizing for size.
15263 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15265 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
15266 one_match > zero_match case to just before simple_sequence.
15268 2014-08-15 Richard Biener <rguenther@suse.de>
15270 * data-streamer.h (streamer_string_index, string_for_index):
15272 * data-streamer-out.c (streamer_string_index): Make static.
15273 * data-streamer-in.c (string_for_index): Likewise.
15274 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
15275 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
15277 2014-08-15 Richard Biener <rguenther@suse.de>
15279 PR tree-optimization/62031
15280 * tree-data-ref.c (dr_analyze_indices): Do not set
15281 DR_UNCONSTRAINED_BASE.
15282 (dr_may_alias_p): All indirect accesses have to go the
15283 formerly DR_UNCONSTRAINED_BASE path.
15284 * tree-data-ref.h (struct indices): Remove
15285 unconstrained_base member.
15286 (DR_UNCONSTRAINED_BASE): Remove.
15288 2014-08-15 Jakub Jelinek <jakub@redhat.com>
15290 PR middle-end/62092
15291 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
15292 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
15293 in OMP_CLAUSE_MAP in some outer target region.
15295 2014-08-15 Bin Cheng <bin.cheng@arm.com>
15297 * tree-ssa-loop-ivopts.c (ivopts_data): New field
15298 name_expansion_cache.
15299 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
15300 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
15301 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
15302 (difference_cannot_overflow_p): New parameter. Use affine
15303 expansion for equality check.
15304 (iv_elimination_compare_lt): Pass new argument.
15306 2014-08-14 DJ Delorie <dj@redhat.com>
15308 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
15309 variables to the accumulator.
15311 * config/rl78/predicates.md (rl78_near_mem_operand): New.
15312 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
15313 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
15314 with far-far moves.
15316 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
15317 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
15318 (umulqihi3_virt): Likewise.
15319 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
15320 (umulqihi3_real): Likewise.
15322 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
15324 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15326 PR tree-optimization/62091
15327 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
15328 function_entry_reached.
15329 (walk_aliased_vdefs): Clear it here.
15330 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
15332 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15334 * ipa-utils.h (compare_virtual_tables): Declare.
15335 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
15337 2014-08-14 Marek Polacek <polacek@redhat.com>
15340 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
15341 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
15343 2014-08-14 Tom de Vries <tom@codesourcery.com>
15345 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
15347 2014-08-14 Tom de Vries <tom@codesourcery.com>
15349 PR rtl-optimization/62004
15350 PR rtl-optimization/62030
15351 * ifcvt.c (rtx_interchangeable_p): New function.
15352 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
15353 * emit-rtl.h (mem_attrs_eq_p): Declare.
15355 2014-08-14 Roman Gareev <gareevroman@gmail.com>
15357 * graphite-scop-detection.c:
15358 Add inclusion of cp-tree.h.
15359 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
15360 in case they are pointers to object types
15362 2014-08-14 Richard Biener <rguenther@suse.de>
15364 * BASE-VER: Change to 5.0.0
15366 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15367 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15368 Anna Tikhonova <anna.tikhonova@intel.com>
15369 Ilya Tocar <ilya.tocar@intel.com>
15370 Andrey Turetskiy <andrey.turetskiy@intel.com>
15371 Ilya Verbin <ilya.verbin@intel.com>
15372 Kirill Yukhin <kirill.yukhin@intel.com>
15373 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15375 * config/i386/sse.md (define_mode_attr avx512): New.
15376 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
15378 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
15379 (define_mode_attr ssse3_avx2): Ditto.
15380 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
15381 (define_mode_attr avx2_avx512bw): New.
15382 (define_mode_attr ssedoublemodelower): New.
15383 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
15384 V32HI, V64QI modes.
15385 (define_mode_attr ssebytemode): Allow V8DI modes.
15386 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
15387 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
15388 (define_mode_attr ssePSmode2): New.
15389 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
15390 V16HI, V32HI modes.
15391 (define_mode_attr dbpsadbwmode): New.
15392 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
15393 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
15394 (vi8_sse4_1_avx2_avx512): New.
15395 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
15397 (define_mode_attr blendbits): Move before its immediate use.
15399 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15400 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15401 Anna Tikhonova <anna.tikhonova@intel.com>
15402 Ilya Tocar <ilya.tocar@intel.com>
15403 Andrey Turetskiy <andrey.turetskiy@intel.com>
15404 Ilya Verbin <ilya.verbin@intel.com>
15405 Kirill Yukhin <kirill.yukhin@intel.com>
15406 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15408 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
15409 * config/i386/subst.md
15410 (define_mode_iterator SUBST_V): Update.
15411 (define_mode_iterator SUBST_A): Ditto.
15412 (define_subst_attr "mask_operand7"): New.
15413 (define_subst_attr "mask_operand10"): New.
15414 (define_subst_attr "mask_operand_arg34") : New.
15415 (define_subst_attr "mask_expand_op3"): New.
15416 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
15417 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
15418 (define_subst_attr "mask_avx512vl_condition"): New.
15419 (define_subst_attr "round_mask_operand4"): Ditto.
15420 (define_subst_attr "round_mask_scalar_op3"): Delete.
15421 (define_subst_attr "round_mask_op4"): New.
15422 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
15424 (define_subst_attr "round_modev8sf_condition"): New.
15425 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
15427 (define_subst_attr "round_saeonly_mask_operand4"): New.
15428 (define_subst_attr "round_saeonly_mask_op4"): New.
15429 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
15430 V8DImode, V16SImode.
15431 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
15432 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
15433 (define_subst_attr "mask_expand4_args"): New.
15434 (define_subst "mask_expand4"): New.
15436 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15437 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15438 Anna Tikhonova <anna.tikhonova@intel.com>
15439 Ilya Tocar <ilya.tocar@intel.com>
15440 Andrey Turetskiy <andrey.turetskiy@intel.com>
15441 Ilya Verbin <ilya.verbin@intel.com>
15442 Kirill Yukhin <kirill.yukhin@intel.com>
15443 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15445 * config/i386/i386.md
15446 (define_attr "isa"): Add avx512bw,noavx512bw.
15447 (define_attr "enabled"): Ditto.
15448 (define_split): Add 32/64-bit mask logic.
15449 (define_insn "*k<logic>qi"): New.
15450 (define_insn "*k<logic>hi"): New.
15451 (define_insn "*anddi_1"): Add mask version.
15452 (define_insn "*andsi_1"): Ditto.
15453 (define_insn "*<code><mode>_1"): Ditto.
15454 (define_insn "*<code>hi_1"): Ditto.
15455 (define_insn "kxnor<mode>"): New.
15456 (define_insn "kunpcksi"): New.
15457 (define_insn "kunpckdi"): New.
15458 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
15459 (define_insn "*one_cmplhi2_1"): Ditto.
15461 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15462 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15463 Anna Tikhonova <anna.tikhonova@intel.com>
15464 Ilya Tocar <ilya.tocar@intel.com>
15465 Andrey Turetskiy <andrey.turetskiy@intel.com>
15466 Ilya Verbin <ilya.verbin@intel.com>
15467 Kirill Yukhin <kirill.yukhin@intel.com>
15468 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15470 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
15473 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15474 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15475 Anna Tikhonova <anna.tikhonova@intel.com>
15476 Ilya Tocar <ilya.tocar@intel.com>
15477 Andrey Turetskiy <andrey.turetskiy@intel.com>
15478 Ilya Verbin <ilya.verbin@intel.com>
15479 Kirill Yukhin <kirill.yukhin@intel.com>
15480 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15482 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
15484 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15485 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15486 xmm/ymm16+ when availble.
15487 * config/i386/i386.h
15488 (HARD_REGNO_NREGS): Add mask regs.
15489 (VALID_AVX512F_REG_MODE): Ditto.
15490 (VALID_AVX512F_REG_MODE) : Define.
15491 (VALID_MASK_AVX512BW_MODE): Ditto.
15492 (reg_class) (MASK_REG_P(X)): Define.
15493 * config/i386/i386.md: Do not split long moves with mask register,
15494 use kmovb if avx512bw is availible.
15495 (movdi_internal): Handle mask registers.
15497 2014-08-14 Richard Biener <rguenther@suse.de>
15499 PR tree-optimization/62081
15500 * tree-ssa-loop.c (pass_fix_loops): New pass.
15501 (pass_tree_loop::gate): Do not fixup loops here.
15502 * tree-pass.h (make_pass_fix_loops): Declare.
15503 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15505 2014-08-14 Richard Biener <rguenther@suse.de>
15507 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15508 (type_hash_canon): ... this and avoid 2nd lookup for the add.
15510 2014-08-14 Richard Biener <rguenther@suse.de>
15512 PR tree-optimization/62090
15513 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15514 (fold_builtin_2): Do not fold sprintf.
15515 (fold_builtin_3): Likewise.
15516 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15517 moved from builtins.c.
15518 (gimple_fold_builtin): Fold sprintf.
15520 2014-08-14 Richard Biener <rguenther@suse.de>
15522 PR rtl-optimization/62079
15523 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15526 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15528 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15529 current_function_decl.
15531 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15533 * cgraph.c (cgraph_node::function_symbol): Fix wrong
15534 cgraph_function_node to cgraph_node::function_symbol
15537 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
15539 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15540 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15542 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
15544 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15547 2014-08-13 Roman Gareev <gareevroman@gmail.com>
15549 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15552 2014-08-12 Jakub Jelinek <jakub@redhat.com>
15555 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15556 any registers that are used in mem_insn.
15558 2014-08-12 Steve Ellcey <sellcey@mips.com>
15560 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15562 2014-08-12 Steve Ellcey <sellcey@mips.com>
15564 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15565 (MULTILIB_DIRNAMES): Ditto.
15566 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15567 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15568 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15569 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15570 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15571 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15573 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15576 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15577 of __ARM_SIZEOF_WCHAR_T.
15579 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15582 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
15583 Remove unnecessary attributes.
15585 2014-08-12 Yury Gribov <y.gribov@samsung.com>
15587 * internal-fn.c (init_internal_fns): Fix off-by-one.
15589 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15590 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15591 Anna Tikhonova <anna.tikhonova@intel.com>
15592 Ilya Tocar <ilya.tocar@intel.com>
15593 Andrey Turetskiy <andrey.turetskiy@intel.com>
15594 Ilya Verbin <ilya.verbin@intel.com>
15595 Kirill Yukhin <kirill.yukhin@intel.com>
15596 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15598 * config/i386/i386.c (standard_sse_constant_opcode): Use
15599 vpxord/vpternlog if avx512 is availible.
15601 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
15603 PR middle-end/62103
15604 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15605 bitfields, that is when size doesn't match the size of type or the
15606 size of the constructor.
15608 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15610 * config/rs6000/constraints.md (wh constraint): New constraint,
15611 for FP registers if direct move is available.
15612 (wi constraint): New constraint, for VSX/FP registers that can
15613 handle 64-bit integers.
15614 (wj constraint): New constraint for VSX/FP registers that can
15615 handle 64-bit integers for direct moves.
15616 (wk constraint): New constraint for VSX/FP registers that can
15617 handle 64-bit doubles for direct moves.
15618 (wy constraint): Make documentation match implementation.
15620 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15621 scalar_in_vmx_p field to simplify tests of whether SFmode or
15622 DFmode can go in the Altivec registers.
15623 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15624 (rs6000_setup_reg_addr_masks): Likewise.
15625 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
15626 field, and wh/wi/wj/wk constraints.
15627 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
15628 the wh/wi/wj/wk constraints.
15629 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
15630 upper registers, prefer VSX registers unless the operation is a
15631 memory operation with REG+OFFSET addressing.
15633 * config/rs6000/vsx.md (VSr mode attribute): Add support for
15634 DImode. Change SFmode to use ww constraint instead of d to allow
15635 SF registers in the upper registers.
15638 (VSr5): Fix thinko in comment.
15639 (VSa): New mode attribute that is an alternative to wa, that
15640 returns the VSX register class that a mode can go in, but may not
15641 be the preferred register class.
15642 (VS_64dm): New mode attribute for appropriate register classes for
15643 referencing 64-bit elements of vectors for direct moves and normal
15645 (VS_64reg): Likewise.
15646 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
15647 register allocator to only registers the data type can handle.
15648 (vsx_le_perm_load_<mode>): Likewise.
15649 (vsx_le_perm_store_<mode>): Likewise.
15650 (vsx_xxpermdi2_le_<mode>): Likewise.
15651 (vsx_xxpermdi4_le_<mode>): Likewise.
15652 (vsx_lxvd2x2_le_<mode>): Likewise.
15653 (vsx_lxvd2x4_le_<mode>): Likewise.
15654 (vsx_stxvd2x2_le_<mode>): Likewise.
15655 (vsx_add<mode>3): Likewise.
15656 (vsx_sub<mode>3): Likewise.
15657 (vsx_mul<mode>3): Likewise.
15658 (vsx_div<mode>3): Likewise.
15659 (vsx_tdiv<mode>3_internal): Likewise.
15660 (vsx_fre<mode>2): Likewise.
15661 (vsx_neg<mode>2): Likewise.
15662 (vsx_abs<mode>2): Likewise.
15663 (vsx_nabs<mode>2): Likewise.
15664 (vsx_smax<mode>3): Likewise.
15665 (vsx_smin<mode>3): Likewise.
15666 (vsx_sqrt<mode>2): Likewise.
15667 (vsx_rsqrte<mode>2): Likewise.
15668 (vsx_tsqrt<mode>2_internal): Likewise.
15669 (vsx_fms<mode>4): Likewise.
15670 (vsx_nfma<mode>4): Likewise.
15671 (vsx_eq<mode>): Likewise.
15672 (vsx_gt<mode>): Likewise.
15673 (vsx_ge<mode>): Likewise.
15674 (vsx_eq<mode>_p): Likewise.
15675 (vsx_gt<mode>_p): Likewise.
15676 (vsx_ge<mode>_p): Likewise.
15677 (vsx_xxsel<mode>): Likewise.
15678 (vsx_xxsel<mode>_uns): Likewise.
15679 (vsx_copysign<mode>3): Likewise.
15680 (vsx_float<VSi><mode>2): Likewise.
15681 (vsx_floatuns<VSi><mode>2): Likewise.
15682 (vsx_fix_trunc<mode><VSi>2): Likewise.
15683 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
15684 (vsx_x<VSv>r<VSs>i): Likewise.
15685 (vsx_x<VSv>r<VSs>ic): Likewise.
15686 (vsx_btrunc<mode>2): Likewise.
15687 (vsx_b2trunc<mode>2): Likewise.
15688 (vsx_floor<mode>2): Likewise.
15689 (vsx_ceil<mode>2): Likewise.
15690 (vsx_<VS_spdp_insn>): Likewise.
15691 (vsx_xscvspdp): Likewise.
15692 (vsx_xvcvspuxds): Likewise.
15693 (vsx_float_fix_<mode>2): Likewise.
15694 (vsx_set_<mode>): Likewise.
15695 (vsx_extract_<mode>_internal1): Likewise.
15696 (vsx_extract_<mode>_internal2): Likewise.
15697 (vsx_extract_<mode>_load): Likewise.
15698 (vsx_extract_<mode>_store): Likewise.
15699 (vsx_splat_<mode>): Likewise.
15700 (vsx_xxspltw_<mode>): Likewise.
15701 (vsx_xxspltw_<mode>_direct): Likewise.
15702 (vsx_xxmrghw_<mode>): Likewise.
15703 (vsx_xxmrglw_<mode>): Likewise.
15704 (vsx_xxsldwi_<mode>): Likewise.
15705 (vsx_xscvdpspn): Tighten constraints to only use register classes
15707 (vsx_xscvspdpn): Likewise.
15708 (vsx_xscvdpspn_scalar): Likewise.
15710 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
15711 wj, and wk constraints.
15712 (GPR_REG_CLASS_P): New helper macro for register classes targeting
15713 general purpose registers.
15715 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
15717 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
15718 DImode instead of wm. Use wk constraint for direct move of DFmode
15720 (extendsidi2_lfiwax): Likewise.
15721 (lfiwax): Likewise.
15722 (lfiwzx): Likewise.
15723 (movdi_internal64): Likewise.
15725 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
15726 wk constraints. Make the wy constraint documentation match them
15729 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
15731 Replacement of isl_int by isl_val
15732 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
15733 (compute_bounds_for_param): use isl_val instead of isl_int
15734 (compute_bounds_for_loop): likewise
15735 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
15736 (build_linearized_memory_access): use isl_val instead of isl_int
15737 (pdr_stride_in_loop): likewise
15738 * graphite-optimize-isl.c:
15739 (getPrevectorMap): use isl_val instead of isl_int
15741 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
15742 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
15743 (extern the_isl_ctx): declare
15744 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
15745 (extract_affine_gmp): likewise
15747 (build_loop_iteration_domains): likewise
15748 (add_param_constraints): likewise
15750 2014-08-11 Richard Biener <rguenther@suse.de>
15752 PR tree-optimization/62075
15753 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
15754 handle uses in patterns.
15756 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15757 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15758 Anna Tikhonova <anna.tikhonova@intel.com>
15759 Ilya Tocar <ilya.tocar@intel.com>
15760 Andrey Turetskiy <andrey.turetskiy@intel.com>
15761 Ilya Verbin <ilya.verbin@intel.com>
15762 Kirill Yukhin <kirill.yukhin@intel.com>
15763 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15765 * common/config/i386/i386-common.c
15766 (OPTION_MASK_ISA_AVX512VL_SET): Define.
15767 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
15768 (ix86_handle_option): Handle OPT_mavx512vl.
15769 * config/i386/cpuid.h (bit_AVX512VL): Define.
15770 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
15771 set -mavx512vl accordingly.
15772 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15773 OPTION_MASK_ISA_AVX512VL.
15774 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
15775 (ix86_option_override_internal): Define PTA_AVX512VL, handle
15776 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
15777 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
15778 * config/i386/i386.h (TARGET_AVX512VL): Define.
15779 (TARGET_AVX512VL_P(x)): Ditto.
15780 * config/i386/i386.opt: Add mavx512vl.
15782 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
15784 PR tree-optimization/62073
15785 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
15788 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15789 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15790 Anna Tikhonova <anna.tikhonova@intel.com>
15791 Ilya Tocar <ilya.tocar@intel.com>
15792 Andrey Turetskiy <andrey.turetskiy@intel.com>
15793 Ilya Verbin <ilya.verbin@intel.com>
15794 Kirill Yukhin <kirill.yukhin@intel.com>
15795 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15797 * common/config/i386/i386-common.c
15798 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
15799 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
15800 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
15801 (ix86_handle_option): Handle OPT_mavx512bw.
15802 * config/i386/cpuid.h (bit_AVX512BW): Define.
15803 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
15804 set -mavx512bw accordingly.
15805 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15806 OPTION_MASK_ISA_AVX512BW.
15807 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
15808 (ix86_option_override_internal): Define PTA_AVX512BW, handle
15809 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
15810 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
15811 * config/i386/i386.h (TARGET_AVX512BW): Define.
15812 (TARGET_AVX512BW_P(x)): Ditto.
15813 * config/i386/i386.opt: Add mavx512bw.
15815 2014-08-11 Richard Biener <rguenther@suse.de>
15817 PR tree-optimization/62070
15818 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
15819 Remove SSA checking.
15821 2014-08-11 Yury Gribov <y.gribov@samsung.com>
15823 * asan.c (asan_check_flags): New enum.
15824 (build_check_stmt_with_calls): Removed function.
15825 (build_check_stmt): Split inlining logic to
15826 asan_expand_check_ifn.
15827 (instrument_derefs): Rename parameter.
15828 (instrument_mem_region_access): Rename parameter.
15829 (instrument_strlen_call): Likewise.
15830 (asan_expand_check_ifn): New function.
15831 (asan_instrument): Remove old code.
15832 (pass_sanopt::execute): Change handling of
15833 asan-instrumentation-with-call-threshold.
15834 (asan_clear_shadow): Fix formatting.
15835 (asan_function_start): Likewise.
15836 (asan_emit_stack_protection): Likewise.
15837 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
15838 Update description.
15839 * internal-fn.c (expand_ASAN_CHECK): New function.
15840 * internal-fn.def (ASAN_CHECK): New internal function.
15841 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
15842 Update description.
15843 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
15844 * tree.c: Small comment fix.
15846 2014-08-11 Yury Gribov <y.gribov@samsung.com>
15848 * gimple.c (gimple_call_fnspec): Support internal functions.
15849 (gimple_call_return_flags): Use const.
15850 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
15851 * internal-fn.def: Add fnspec information.
15852 * internal-fn.h (internal_fn_fnspec): New function.
15853 (init_internal_fns): Declare new function.
15854 * internal-fn.c (internal_fn_fnspec_array): New global variable.
15855 (init_internal_fns): New function.
15856 * tree-core.h: Update macro call.
15857 * tree.c (build_common_builtin_nodes): Initialize internal fns.
15859 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
15861 * lto-streamer.h (struct output_block::symbol): Change from
15862 struct symtab_node to plain symtab_node.
15863 (referenced_from_this_partition_p): Change first parameter
15864 from struct symtab_node to plain symtab_node.
15866 2014-08-10 Marek Polacek <polacek@redhat.com>
15869 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
15871 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
15873 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
15874 DECL correctly; do not give up on types in static storage.
15876 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
15878 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
15880 2014-08-09 Roman Gareev <gareevroman@gmail.com>
15882 * graphite-isl-ast-to-gimple.c:
15883 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
15885 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
15887 2014-08-08 Guozhi Wei <carrot@google.com>
15889 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
15891 2014-08-08 Cary Coutant <ccoutant@google.com>
15893 * dwarf2out.c (get_skeleton_type_unit): Remove.
15894 (output_skeleton_debug_sections): Remove skeleton type units.
15895 (output_comdat_type_unit): Likewise.
15896 (dwarf2out_finish): Likewise.
15898 2014-08-07 Yi Yang <ahyangyi@google.com>
15900 * predict.c (expr_expected_value_1): Remove the redundant assignment.
15902 2014-08-08 Richard Biener <rguenther@suse.de>
15904 * lto-streamer.h (struct lto_input_block): Make it a class
15905 with a constructor.
15906 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
15907 (struct lto_function_header, struct lto_simple_header,
15908 struct lto_simple_header_with_strings,
15909 struct lto_decl_header, struct lto_function_header): Make
15910 a simple inheritance hieararchy. Remove unused fields.
15911 (struct lto_asm_header): Remove.
15912 * lto-streamer-out.c (produce_asm): Adjust.
15913 (lto_output_toplevel_asms): Likewise.
15914 (produce_asm_for_decls): Likewise.
15915 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
15916 * data-streamer-in.c (string_for_index): Likewise.
15917 * ipa-inline-analysis.c (inline_read_section): Likewise.
15918 * ipa-prop.c (ipa_prop_read_section): Likewise.
15919 (read_replacements_section): Likewise.
15920 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
15921 * lto-section-in.c (lto_create_simple_input_block): Likewise.
15922 (lto_destroy_simple_input_block): Likewise.
15923 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
15924 (lto_input_toplevel_asms): Likewise.
15926 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
15927 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15928 Anna Tikhonova <anna.tikhonova@intel.com>
15929 Ilya Tocar <ilya.tocar@intel.com>
15930 Andrey Turetskiy <andrey.turetskiy@intel.com>
15931 Ilya Verbin <ilya.verbin@intel.com>
15932 Kirill Yukhin <kirill.yukhin@intel.com>
15933 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15935 * common/config/i386/i386-common.c
15936 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
15937 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
15938 (ix86_handle_option): Handle OPT_mavx512dq.
15939 * config/i386/cpuid.h (bit_AVX512DQ): Define.
15940 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
15941 set -mavx512dq accordingly.
15942 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15943 OPTION_MASK_ISA_AVX512DQ.
15944 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
15945 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
15946 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
15947 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
15948 * config/i386/i386.h (TARGET_AVX512DQ): Define.
15949 (TARGET_AVX512DQ_P(x)): Ditto.
15950 * config/i386/i386.opt: Add mavx512dq.
15952 2014-08-08 Richard Biener <rguenther@suse.de>
15954 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
15955 target_percent, target_percent_s): Export.
15956 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
15957 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
15958 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
15959 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
15960 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
15961 Move to gimple-fold.c.
15962 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
15964 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
15965 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
15966 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
15967 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
15968 (rewrite_call_expr_array): Remove.
15969 (fold_builtin_sprintf_chk): Likewise.
15970 (fold_builtin_snprintf_chk): Likewise.
15971 (fold_builtin_varargs): Remove handling of sprintf_chk,
15972 vsprintf_chk, snprintf_chk and vsnprintf_chk.
15973 (gimple_fold_builtin_sprintf_chk): Remove.
15974 (gimple_fold_builtin_snprintf_chk): Likewise.
15975 (gimple_fold_builtin_varargs): Likewise.
15976 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
15977 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
15978 * gimple.c (gimple_seq_add_seq_without_update): New function.
15979 * gimple.h (gimple_seq_add_seq_without_update): Declare.
15980 * gimple-fold.c: Include output.h.
15981 (gsi_replace_with_seq_vops): New function, split out from ...
15982 (gimplify_and_update_call_from_tree): ... here.
15983 (replace_call_with_value): New function.
15984 (replace_call_with_call_and_fold): Likewise.
15985 (var_decl_component_p): Moved from builtins.c.
15986 (gimple_fold_builtin_memory_op): Moved from builtins.c
15987 fold_builtin_memory_op and rewritten to GIMPLE.
15988 (gimple_fold_builtin_memset): Likewise.
15989 (gimple_fold_builtin_strcpy): Likewise.
15990 (gimple_fold_builtin_strncpy): Likewise.
15991 (gimple_fold_builtin_strcat): Likewise.
15992 (gimple_fold_builtin_fputs): Likewise.
15993 (gimple_fold_builtin_memory_chk): Likewise.
15994 (gimple_fold_builtin_stxcpy_chk): Likewise.
15995 (gimple_fold_builtin_stxncpy_chk): Likewise.
15996 (gimple_fold_builtin_snprintf_chk): Likewise.
15997 (gimple_fold_builtin_sprintf_chk): Likewise.
15998 (gimple_fold_builtin_strlen): New function.
15999 (gimple_fold_builtin_with_strlen): New function split out from
16000 gimple_fold_builtin.
16001 (gimple_fold_builtin): Change signature and handle
16002 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16003 here. Call gimple_fold_builtin_with_strlen.
16004 (gimple_fold_call): Adjust.
16006 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16008 * calls.c (precompute_arguments): Check
16009 promoted_for_signed_and_unsigned_p and set the promoted mode.
16010 (promoted_for_signed_and_unsigned_p): New function.
16011 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16012 and set the promoted mode.
16013 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16014 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16015 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16018 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16020 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16021 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16022 (expand_call): Likewise.
16023 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16024 to get promoted mode.
16025 * combine.c (record_promoted_value): Skip > 0 comparison with
16026 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16027 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16028 of SUBREG_PROMOTED_UNSIGNED_P.
16029 (convert_modes): Likewise.
16030 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16031 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16032 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16033 SUBREG_PROMOTED_UNSIGNED_SET.
16034 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16035 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16036 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16037 SUBREG_PROMOTED_SET.
16038 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16039 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16040 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16041 of SUBREG_PROMOTED_UNSIGNED_P.
16042 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16043 (SUBREG_PROMOTED_SET): New define.
16044 (SUBREG_PROMOTED_GET): Likewise.
16045 (SUBREG_PROMOTED_SIGN): Likewise.
16046 (SUBREG_PROMOTED_SIGNED_P): Likewise.
16047 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16048 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16049 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16050 instead of SUBREG_PROMOTED_UNSIGNED_GET.
16051 (nonzero_bits1): Skip > 0 comparison with the results as
16052 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16053 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16054 of !SUBREG_PROMOTED_UNSIGNED_P.
16055 * simplify-rtx.c (simplify_unary_operation_1): Use new
16056 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16057 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16058 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16059 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16061 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
16063 * ipa-devirt.c: Include gimple-pretty-print.h
16064 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16066 (decl_maybe_in_construction_p): Fix conditional on cdtor check
16067 (get_polymorphic_call_info): Fix return value
16068 (type_change_info): New sturcture based on ipa-prop
16070 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16071 based on ipa-prop variant.
16072 (extr_type_from_vtbl_ptr_store): New function
16073 based on ipa-prop variant.
16074 (record_known_type): New function.
16075 (check_stmt_for_type_change): New function.
16076 (get_dynamic_type): New function.
16077 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16078 * tree-ssa-pre.c: ipa-utils.h
16079 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16080 machinery; sanity check with ipa-prop devirtualization.
16081 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16084 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16086 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16087 * alias.c, cfgexpand.c, cgraphbuild.c,
16088 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16089 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16090 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16091 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16092 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16093 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16094 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16095 dse.c, except.c, gengtype.c, gimple-expr.c,
16096 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16097 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
16098 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
16099 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
16100 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
16101 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
16103 * pointer-set.c: Remove file.
16104 * pointer-set.h: Remove file.
16106 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16108 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
16109 * config/arm/types.md (f_sels, f_seld): Delete.
16111 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16113 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
16114 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
16115 (aarch64_movdi_<mode>high): Likewise.
16116 (aarch64_mov<mode>high_di): Likewise.
16117 (aarch64_movdi_<mode>low): Likewise.
16118 (aarch64_mov<mode>low_di): Likewise.
16119 (aarch64_movtilow_tilow): Likewise.
16120 Add comment explaining usage of fp,simd attributes and of
16121 TARGET_FLOAT and TARGET_SIMD.
16123 2014-08-07 Ian Bolton <ian.bolton@arm.com>
16124 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16126 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
16127 Use MOVN when one of the half-words is 0xffff.
16129 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16131 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
16133 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16135 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
16136 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16137 (rfs_str): String corresponding to RFS_* constants.
16138 (rank_for_schedule_stats_t): New typedef.
16139 (rank_for_schedule_stats): New static variable.
16140 (rfs_result): New static function.
16141 (rank_for_schedule): Track statistics for deciding heuristics.
16142 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16144 (ready_sort): Use them for debug printouts.
16145 (schedule_block): Init statistics state. Print statistics on
16146 rank_for_schedule decisions.
16148 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16150 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16152 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
16154 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16157 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16159 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16160 function to not conflict.
16161 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16162 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16163 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16164 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16165 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16168 2014-08-07 Marek Polacek <polacek@redhat.com>
16170 * fold-const.c (fold_binary_loc): Add folding of
16171 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16173 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
16175 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16176 instead of type size.
16177 (ASM_FINISH_DECLARE_OBJECT): Likewise.
16179 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16181 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16182 (*thumb1_movqi_insn): Likewise.
16183 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16185 2014-08-07 Tom de Vries <tom@codesourcery.com>
16187 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16188 (glibc_2_11_or_earlier): Remove effective-target keywords.
16190 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16192 * config/arm/arm.c (bdesc_2arg): Fix typo.
16193 (arm_atomic_assign_expand_fenv): Remove The default implementation.
16195 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
16197 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16199 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
16202 * haifa-sched.c (advance_one_cycle): Fix dump.
16203 (schedule_block): Don't advance cycle if we are already at the
16204 beginning of the cycle.
16206 2014-08-06 Martin Jambor <mjambor@suse.cz>
16209 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16211 2014-08-06 Richard Biener <rguenther@suse.de>
16214 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16216 (lto_input_tree): Pop SCCs here.
16218 2014-08-06 Richard Biener <rguenther@suse.de>
16220 PR tree-optimization/61320
16221 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16222 handle misaligned loads.
16224 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
16226 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16227 (aarch64_expand_vec_perm_const): Check for dup before zip.
16229 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16231 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16232 CONST_INT_P instead of GET_CODE and compare.
16233 (aarch64_select_cc_mode): Likewise.
16234 (aarch64_print_operand): Likewise.
16235 (aarch64_rtx_costs): Likewise.
16236 (aarch64_simd_valid_immediate): Likewise.
16237 (aarch64_simd_check_vect_par_cnst_half): Likewise.
16238 (aarch64_simd_emit_pair_result_insn): Likewise.
16240 2014-08-05 David Malcolm <dmalcolm@redhat.com>
16242 * gdbhooks.py (find_gcc_source_dir): New helper function.
16243 (class PassNames): New class, locating and parsing passes.def.
16244 (class BreakOnPass): New command "break-on-pass".
16246 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
16248 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
16251 2014-08-05 Richard Biener <rguenther@suse.de>
16253 PR rtl-optimization/61672
16254 * emit-rtl.h (mem_attrs_eq_p): Declare.
16255 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
16256 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
16257 * cfgcleanup.c (merge_memattrs): Likewise.
16258 Include emit-rtl.h.
16260 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16262 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
16263 rather than singleton vectors.
16264 (vqdmlsls_lane_s32): Likewise.
16266 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16268 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
16269 Use VSDQ_HSI mode iterator.
16270 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16271 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
16272 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
16273 Use BUILTIN_VDQHS macro.
16274 (sqrdmulh_laneq): Likewise.
16275 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
16276 (vqdmlals_laneq_s32): Likewise.
16277 (vqdmlslh_laneq_s16): Likewise.
16278 (vqdmlsls_laneq_s32): Likewise.
16279 (vqdmulhh_laneq_s16): Likewise.
16280 (vqdmulhs_laneq_s32): Likewise.
16281 (vqrdmulhh_laneq_s16): Likewise.
16282 (vqrdmulhs_laneq_s32): Likewise.
16284 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16286 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
16287 (vmuld_laneq_f64): Likewise.
16288 (vmuls_laneq_f32): Likewise.
16289 (vmul_n_f64): Likewise.
16290 (vmuld_lane_f64): Reimplement in C.
16291 (vmuls_lane_f32): Likewise.
16293 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16295 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
16297 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
16299 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16301 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
16302 (rbitsi2): Likewise.
16303 (*arm_rev): Set predicable and predicable_short_it attributes.
16305 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16307 * convert.c (convert_to_integer): Guard transformation to lrint by
16310 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16312 * config/aarch64/aarch64-builtins.c
16313 (aarch64_simd_builtin_type_mode): Delete.
16314 (v8qi_UP): Remap to V8QImode.
16315 (v4hi_UP): Remap to V4HImode.
16316 (v2si_UP): Remap to V2SImode.
16317 (v2sf_UP): Remap to V2SFmode.
16318 (v1df_UP): Remap to V1DFmode.
16319 (di_UP): Remap to DImode.
16320 (df_UP): Remap to DFmode.
16321 (v16qi_UP):V16QImode.
16322 (v8hi_UP): Remap to V8HImode.
16323 (v4si_UP): Remap to V4SImode.
16324 (v4sf_UP): Remap to V4SFmode.
16325 (v2di_UP): Remap to V2DImode.
16326 (v2df_UP): Remap to V2DFmode.
16327 (ti_UP): Remap to TImode.
16328 (ei_UP): Remap to EImode.
16329 (oi_UP): Remap to OImode.
16330 (ci_UP): Map to CImode.
16331 (xi_UP): Remap to XImode.
16332 (si_UP): Remap to SImode.
16333 (sf_UP): Remap to SFmode.
16334 (hi_UP): Remap to HImode.
16335 (qi_UP): Remap to QImode.
16336 (aarch64_simd_builtin_datum): Make mode a machine_mode.
16337 (VAR1): Build builtin name.
16338 (aarch64_init_simd_builtins): Remove dead code.
16340 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16342 * graphite-isl-ast-to-gimple.c:
16343 (set_options): New function.
16344 (scop_to_isl_ast): Add calling of set_options.
16346 2014-08-05 Jakub Jelinek <jakub@redhat.com>
16348 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
16349 (analyze_iv_to_split_insn): Don't initialize them.
16350 (get_ivts_expr): Removed.
16351 (allocate_basic_variable, insert_base_initialization): Use
16352 SET_SRC instead of *get_ivts_expr.
16353 (split_iv): Use &SET_SRC instead of get_ivts_expr.
16355 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16357 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
16358 (translate_isl_ast_for_loop): Add checking of the
16359 flag_loop_parallelize_all.
16360 (ast_build_before_for): New function.
16361 (scop_to_isl_ast): Add checking of the
16362 flag_loop_parallelize_all.
16363 * graphite-dependences.c: Move the defenition of the
16364 scop_get_dependences from graphite-optimize-isl.c to this file.
16365 (apply_schedule_on_deps): Add checking of the ux's emptiness.
16366 (carries_deps): Add checking of the x's value.
16367 * graphite-optimize-isl.c: Move the defenition of the
16368 scop_get_dependences to graphite-dependences.c.
16369 * graphite-poly.h: Add declarations of scop_get_dependences
16372 2014-08-04 Rohit <rohitarulraj@freescale.com>
16375 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
16377 (alt_reg_names): Likewise.
16378 (rs6000_dwarf_register_span): For SPE high registers, replace
16379 dwarf register numbers with GCC hard register numbers.
16380 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
16381 (rs6000_dbx_register_number): For SPE high registers, return dwarf
16382 register number for the corresponding GCC hard register number.
16383 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
16384 newly added GCC hard register numbers for SPE high registers.
16385 (DWARF_FRAME_REGISTERS): Likewise.
16386 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
16387 (DWARF_FRAME_REGNUM): Likewise.
16388 (FIXED_REGISTERS): Likewise.
16389 (CALL_USED_REGISTERS): Likewise.
16390 (CALL_REALLY_USED_REGISTERS): Likewise.
16391 (REG_ALLOC_ORDER): Likewise.
16392 (enum reg_class): Likewise.
16393 (REG_CLASS_NAMES): Likewise.
16394 (REG_CLASS_CONTENTS): Likewise.
16395 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
16397 2014-08-04 Richard Biener <rguenther@suse.de>
16399 * gimple-fold.h (gimple_fold_builtin): Remove.
16400 * gimple-fold.c (gimple_fold_builtin): Make static.
16401 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
16402 fold_stmt, not gimple_fold_builtin.
16404 2014-08-04 Martin Liska <mliska@suse.cz>
16406 * cgraph.h (csi_end_p): Removed.
16407 (csi_next): Likewise.
16408 (csi_node): Likewise.
16409 (csi_start): Likewise.
16410 (cgraph_node_in_set_p): Likewise.
16411 (cgraph_node_set_size): Likewise.
16412 (vsi_end_p): Likewise.
16413 (vsi_next): Likewise.
16414 (vsi_node): Likewise.
16415 (vsi_start): Likewise.
16416 (varpool_node_set_size): Likewise.
16417 (cgraph_node_set_nonempty_p): Likewise.
16418 (varpool_node_set_nonempty_p): Likewise.
16419 * cgraphunit.c (cgraph_process_new_functions): vec replaces
16421 * ipa-inline-transform.c: Likewise.
16422 * ipa-utils.c (cgraph_node_set_new): Removed.
16423 (cgraph_node_set_add): Likewise.
16424 (cgraph_node_set_remove): Likewise.
16425 (cgraph_node_set_find): Likewise.
16426 (dump_cgraph_node_set): Likewise.
16427 (debug_cgraph_node_set): Likewise.
16428 (free_cgraph_node_set): Likewise.
16429 (varpool_node_set_new): Likewise.
16430 (varpool_node_set_add): Likewise.
16431 (varpool_node_set_remove): Likewise.
16432 (varpool_node_set_find): Likewise.
16433 (dump_varpool_node_set): Likewise.
16434 (free_varpool_node_set): Likewise.
16435 (debug_varpool_node_set): Likewise.
16436 * tree-emutls.c (struct tls_var_data):
16437 (emutls_index): Removed.
16438 (emutls_decl): Likewise.
16439 (gen_emutls_addr): Function implementation uses newly added
16440 hash_map<varpool_node *, tls_var_data>.
16441 (clear_access_vars): Likewise.
16442 (create_emultls_var): Likewise.
16443 (ipa_lower_emutls): Likewise.
16444 (reset_access): New function.
16446 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16448 * config/i386/i386.c (ix86_option_override_internal): Add
16449 PTA_RDRND and PTA_MOVBE for bdver4.
16451 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16452 James Greenhalgh <james.greenhalgh@arm.com>
16454 * doc/md.texi (clrsb): Document.
16455 (clz): Change reference to x into operand 1.
16457 (popcount): Likewise.
16459 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16462 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
16463 move to subtarget in serial version if result is ignored.
16465 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16466 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16468 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
16469 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
16470 (sched_analyze_insn): Update use of try_group_insn to
16471 sched_macro_fuse_insns.
16472 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
16473 arguments that are not conditional jumps.
16475 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16477 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
16478 family information. Handle BTVER2 cpu with cpuid family value.
16480 2014-08-04 Tom de Vries <tom@codesourcery.com>
16482 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16483 (glibc_2_11_or_earlier): Document effective-target keywords.
16485 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16487 * ipa-devirt.c (odr_type_warn_count): Add type.
16488 (possible_polymorphic_call_targets): Set it.
16489 (ipa_devirt): Use it.
16491 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16493 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16495 * ipa-devirt.c: Include hash-map.h
16496 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16497 (clear_speculation): Break out of ...
16498 (get_class_context): ... here; speed up handling obviously useless
16500 (odr_type_warn_count, decl_warn_count): New structures.
16501 (final_warning_record): New structure.
16502 (final_warning_records): New static variable.
16503 (possible_polymorphic_call_targets): Cleanup handling of
16504 speculative info; do not build speculation when user do not care;
16505 record info about warnings when asked for.
16506 (add_decl_warning): New function.
16507 (type_warning_cmp): New function.
16508 (decl_warning_cmp): New function.
16509 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16510 (gate): Enable pass when warnings are requested.
16511 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16514 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16516 * hash-map.h (default_hashmap_traits::mark_key_deleted):
16518 (hash_map::remove): New method.
16519 (hash_map::traverse): New method.
16520 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16521 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16522 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16523 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16524 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16525 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16528 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16530 * hash-set.h: new File.
16531 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16532 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16533 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16534 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16535 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16536 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16537 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16538 varpool.c: Use hash_set instead of pointer_set.
16540 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
16542 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16544 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16546 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16547 for frame access when strict_p is false.
16549 2014-08-01 Renlin Li <renlin.li@arm.com>
16550 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16552 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16553 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16554 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16556 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16558 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16559 aarch64_mem_pair_offset.
16561 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16563 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16565 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16566 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16568 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
16570 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16572 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
16574 PR regression/61510
16575 * cgraphunit.c (analyze_functions): Use get_create rather than get
16576 for decls which are clones of abstract functions.
16578 2014-08-01 Martin Liska <mliska@suse.cz>
16580 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
16581 * ipa-prop.h (count_formal_params): Global function created from static.
16582 * ipa-prop.c (count_formal_params): Likewise.
16583 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
16584 profiles for semantically equivalent functions.
16585 * passes.c (do_per_function): If we load body of a function
16586 during WPA, this condition should behave same.
16587 * varpool.c (ctor_for_folding): More tolerant assert for variable
16588 aliases created during WPA.
16590 2014-08-01 Martin Liska <mliska@suse.cz>
16592 * doc/invoke.texi (Options That Control Optimization): Documentation
16593 for -foptimize-strlen introduced. Optimization levels default options
16596 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16598 * opts.c (common_handle_option): Handle -fsanitize=alignment.
16599 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16600 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16602 * stor-layout.h (min_align_of_type): New prototype.
16603 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16604 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
16606 * ubsan.c: Include builtins.h.
16607 (ubsan_expand_bounds_ifn): Change return type to bool,
16608 always return true.
16609 (ubsan_expand_null_ifn): Change return type to bool, change
16610 argument to gimple_stmt_iterator *. Handle both null and alignment
16611 sanitization, take type from ckind argument's type rather than
16613 (instrument_member_call): Removed.
16614 (instrument_mem_ref): Remove t argument, add mem and base arguments.
16615 Handle both null and alignment sanitization, don't say whole
16616 struct access is member access. Build 3 argument IFN_UBSAN_NULL
16617 call instead of 2 argument.
16618 (instrument_null): Adjust instrument_mem_ref caller. Don't
16619 instrument calls here.
16620 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16621 like SANITIZE_NULL.
16622 * stor-layout.c (min_align_of_type): New function.
16623 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16624 Or it into SANITIZE_UNDEFINED.
16625 * doc/invoke.texi (-fsanitize=alignment): Document.
16627 2014-07-31 Andi Kleen <ak@linux.intel.com>
16629 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
16631 2014-07-31 Andi Kleen <ak@linux.intel.com>
16633 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
16635 (vn_reference_compute_hash): Dito.
16636 (vn_nary_op_compute_hash): Dito.
16637 (vn_phi_compute_hash): Dito.
16638 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
16640 2014-07-31 Andi Kleen <ak@linux.intel.com>
16642 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
16643 Rename to inchash:add_expr_commutative. Convert to inchash.
16644 (iterative_hash_hashable_expr): Rename to
16645 inchash:add_hashable_expr. Convert to inchash.
16646 (avail_expr_hash): Dito.
16648 2014-07-31 Andi Kleen <ak@linux.intel.com>
16650 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
16651 Convert to inchash.
16653 2014-07-31 Andi Kleen <ak@linux.intel.com>
16655 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
16657 2014-07-31 Andi Kleen <ak@linux.intel.com>
16659 * Makefile.in (OBJS): Add rtlhash.o
16660 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
16661 (loc_checksum): Dito.
16662 (loc_checksum_ordered): Dito.
16663 (hash_loc_operands): Dito.
16665 (hash_loc_list): Dito.
16666 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
16667 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
16668 * rtlhash.c: New file.
16669 * rtlhash.h: New file.
16671 2014-07-31 Andi Kleen <ak@linux.intel.com>
16673 * inchash.h (inchash): Change inchash class to namespace.
16674 (class hash): ... Rename from inchash.
16675 (add_object): Move from macro to class template.
16676 * lto-streamer-out.c (hash_tree): Change inchash
16678 * tree.c (build_type_attribute_qual_variant): Dito.
16679 (type_hash_list): Dito.
16680 (attribute_hash_list): Dito.
16681 (iterative_hstate_expr): Rename to inchash::add_expr
16682 (build_range_type_1): Change inchash to inchash::hash
16683 and use hash::add_expr.
16684 (build_array_type_1): Dito.
16685 (build_function_type): Dito
16686 (build_method_type_directly): Dito.
16687 (build_offset_type): Dito.
16688 (build_complex_type): Dito.
16689 (make_vector_type): Dito.
16690 * tree.h (iterative_hash_expr): Dito.
16692 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
16694 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
16696 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16698 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
16699 correct alphabetical position.
16700 (vpaddd_f64): Rewrite using builtins.
16701 (vpaddd_s64): Move to correct alphabetical position.
16704 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
16707 * config/sh/sh.c (sh_legitimate_address_p,
16708 sh_legitimize_reload_address): Handle reg+reg address modes when
16709 ALLOW_INDEXED_ADDRESS is false.
16710 * config/sh/predicates.md (general_movsrc_operand,
16711 general_movdst_operand): Likewise.
16713 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16715 * config/aarch64/aarch64-builtins.c
16716 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
16719 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16721 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
16722 the generated mask based on BYTES_BIG_ENDIAN.
16723 (aarch64_simd_check_vect_par_cnst_half): New.
16724 * config/aarch64/aarch64-protos.h
16725 (aarch64_simd_check_vect_par_cnst_half): New.
16726 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
16727 the check out to aarch64_simd_check_vect_par_cnst_half.
16728 (vect_par_cnst_lo_half): Likewise.
16729 * config/aarch64/aarch64-simd.md
16730 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
16731 (move_hi_quad_<mode>): Always generate a low mask.
16733 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16735 * doc/invoke.texi (AVR Options): Add documentation about
16736 __AVR_DEVICE_NAME__ built-in macro.
16738 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
16741 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
16742 constraints are satisfied.
16743 (<shift>di3_neon): Likewise.
16745 2014-07-31 Richard Biener <rguenther@suse.de>
16747 PR tree-optimization/61964
16748 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
16749 by structural equality.
16751 2014-07-31 Yury Gribov <y.gribov@samsung.com>
16753 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
16754 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
16755 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
16757 * gcc.c (sanitize_spec_function): Support new option.
16758 (SANITIZER_SPEC): Remove now redundant check.
16759 * opts.c (common_handle_option): Support new option.
16760 (finish_options): Check for incompatibilities.
16761 * toplev.c (process_options): Split userspace-specific checks.
16763 2014-07-31 Richard Biener <rguenther@suse.de>
16765 * lto-streamer.h (struct output_block): Remove global.
16766 (struct data_in): Remove labels, num_named_labels and
16767 num_unnamed_labels.
16768 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
16769 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
16771 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
16774 * common.opt (-Wreturn-local-addr): Moved from c.opt.
16775 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
16776 (isolate_path): New argument to avoid inserting a trap.
16777 (find_implicit_erroneous_behaviour): Handle returning the address
16778 of a local variable.
16779 (find_explicit_erroneous_behaviour): Likewise.
16781 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
16784 * toplev.c (init_random_seed): Move piece of code never called to
16786 (set_random_seed): see above.
16788 2014-07-31 Tom de Vries <tom@codesourcery.com>
16790 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
16792 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
16794 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
16795 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
16797 2014-07-31 Richard Biener <rguenther@suse.de>
16799 * data-streamer.h (streamer_write_data_stream): Declare here,
16801 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
16802 * lto-cgraph.c (lto_output_node): Adjust.
16803 (lto_output_varpool_node): Likewise.
16804 * data-streamer-out.c (streamer_string_index): Likewise.
16805 (streamer_write_data_stream, lto_append_block): Move from ...
16806 * lto-section-out.c (lto_output_data_stream,
16807 lto_append_block): ... here.
16809 2014-07-30 Mike Stump <mikestump@comcast.net>
16811 * configure.ac: Also check for popen.
16812 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
16813 * configure: Regenerate.
16814 * config.in: Regenerate.
16816 2014-07-30 Martin Jambor <mjambor@suse.cz>
16818 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
16819 parameter to gimple.
16821 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16823 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
16824 address as second parameter to __tpf_eh_return routine.
16826 2014-07-30 Jiong Wang <jiong.wang@arm.com>
16828 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
16831 2014-07-30 Tom Tromey <tromey@redhat.com>
16834 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
16835 * doc/extend.texi (Type Attributes): Document designated_init
16838 2014-07-30 Roman Gareev <gareevroman@gmail.com>
16840 * graphite-isl-ast-to-gimple.c:
16841 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
16842 (gcc_expression_from_isl_expression): Pass type to
16843 gcc_expression_from_isl_ast_expr_id.
16845 2014-07-30 Richard Biener <rguenther@suse.de>
16847 * lto-streamer.h (lto_write_data): New function.
16848 * langhooks.c (lhd_append_data): Do not free block.
16849 * lto-section-out.c (lto_write_data): New function writing
16850 raw data to the current section.
16851 (lto_write_stream): Adjust for langhook semantic change.
16852 (lto_destroy_simple_output_block): Write header directly.
16853 * lto-opts.c (lto_write_options): Write options directly.
16854 * lto-streamer-out.c (produce_asm): Write heaeder directly.
16855 (lto_output_toplevel_asms): Likewise.
16856 (copy_function_or_variable): Copy data directly.
16857 (write_global_references): Output index table directly.
16858 (lto_output_decl_state_refs): Likewise.
16859 (write_symbol): Write data directly.
16860 (produce_symtab): Adjust.
16861 (produce_asm_for_decls): Output header and refs directly.
16863 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
16865 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
16866 to speculative_targets
16867 (get_class_context): Fix handling of contextes without outer type;
16868 avoid matching non-polymorphic types in LTO.
16869 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
16870 parameter to speculative_targetsp; handle speculation.
16871 (dump_possible_polymorphic_call_targets): Update dumping.
16873 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
16875 * common.opt (Wodr): Enable by default.
16877 2014-07-29 Olivier Hainque <hainque@adacore.com>
16879 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
16881 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
16884 * gengtype.c (strtoken): New function.
16885 (create_user_defined_type): Replace strtok with strtoken.
16887 2014-07-29 Nathan Sidwell <nathan@acm.org>
16889 * gcov-io.c (gcov_var): Make hidden.
16890 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
16891 (gcov_do_dump): Declare.
16892 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
16894 2014-07-29 Martin Jambor <mjambor@suse.cz>
16896 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
16897 parameter to gimple.
16898 (sra_modify_assign): Likewise.
16900 2014-07-29 Richard Biener <rguenther@suse.de>
16902 PR middle-end/52478
16903 * expr.c (expand_expr_real_2): Revert last change.
16905 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
16907 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
16908 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
16909 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
16911 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
16912 (contains_type_p): Forward declare.
16913 (polymorphic_call_target_hasher::hash): Hash speculative info.
16914 (polymorphic_call_target_hasher::equal): Compare speculative info.
16915 (get_class_context): Handle speuclation.
16916 (contains_type_p): Update.
16917 (get_polymorphic_call_info_for_decl): Update.
16918 (walk_ssa_copies): Break out from ...
16919 (get_polymorphic_call_info): ... here; set speculative context
16921 * ipa-prop.c (ipa_write_indirect_edge_info,
16922 ipa_read_indirect_edge_info): Stream speculative context.
16923 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
16924 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
16925 SPECULATIVE_MAYBE_DERIVED_TYPE).
16926 (possible_polymorphic_call_targets overriders): Update.
16927 (dump_possible_polymorphic_call_targets overriders): Update.
16928 (dump_possible_polymorphic_call_target_p overriders): Update.
16930 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
16932 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
16933 ipa-devirt path; fix thinko there.
16935 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
16937 * config/i386/i386.c (ix86_return_in_memory): Replace one
16938 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
16940 2014-07-28 Marek Polacek <polacek@redhat.com>
16942 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
16944 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
16946 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
16947 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
16948 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
16949 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16950 (USE_LD_AS_NEEDED): Likewise.
16951 (ASM_APP_ON): Likewise.
16952 (ASM_APP_OFF): Likewise.
16953 (TARGET_POSIX_IO): Likewise.
16954 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
16955 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16956 (USE_LD_AS_NEEDED): Likewise.
16957 (ASM_APP_ON): Likewise.
16958 (ASM_APP_OFF): Likewise.
16959 (TARGET_POSIX_IO): Likewise.
16961 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
16963 PR middle-end/61734
16964 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
16965 operators other than the equality operators.
16967 2014-07-28 Richard Biener <rguenther@suse.de>
16969 PR middle-end/52478
16970 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
16971 sure to register SImode ones, not only >= word_mode ones.
16972 * expr.c (expand_expr_real_2): When expanding -ftrapv
16973 binops do not use OPTAB_LIB_WIDEN.
16975 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
16977 PR middle-end/61919
16978 * tree-outof-ssa.c (insert_partition_copy_on_edge)
16979 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
16980 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
16981 inserting them in the insn stream.
16983 2014-07-28 Marek Polacek <polacek@redhat.com>
16985 PR middle-end/61913
16986 * common.opt (Wodr): Add Var.
16988 2014-07-28 Richard Biener <rguenther@suse.de>
16990 PR tree-optimization/61921
16991 * tree-ssa-structalias.c (create_variable_info_for_1): Check
16992 if there is a varpool node before dereferencing it.
16994 2014-07-28 Roman Gareev <gareevroman@gmail.com>
16996 * graphite-sese-to-poly.c:
16997 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
16998 id of the pbb), which contains pointer to the pbb1.
17000 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17002 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17004 * graphite-isl-ast-to-gimple.c:
17005 (graphite_create_new_guard): New function.
17006 (translate_isl_ast_node_if): New function.
17007 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17009 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17011 2014-07-27 Anthony Green <green@moxielogic.com>
17013 * config.gcc: Add moxie-*-moxiebox* configuration.
17014 * config/moxie/moxiebox.h: New file.
17016 2014-07-26 Andrew Pinski <apinski@cavium.com>
17018 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17019 from the read only register.
17021 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17023 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17024 as the allocation class if it isn't likely to be spilled.
17026 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17028 * rtl.h (tls_referenced_p): Declare.
17029 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17030 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17031 (mips_cannot_force_const_mem): Use tls_referenced_p.
17032 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17033 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17034 instead of pa_tls_referenced_p.
17035 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17036 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17037 (pa_legitimate_constant_p): Likewise.
17038 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17039 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17040 (rs6000_cannot_force_const_mem, rs6000_emit_move)
17041 (rs6000_address_for_altivec): Use tls_referenced_p instead of
17042 rs6000_tls_referenced_p.
17043 (rs6000_tls_symbol_ref_1): Delete.
17045 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
17048 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17049 Optimize inverse of a VEC_CONCAT.
17051 2014-07-25 Xinliang David Li <davidxl@google.com>
17053 * params.def: New parameter.
17054 * coverage.c (get_coverage_counts): Check new flag.
17055 (coverage_compute_profile_id): Check new flag.
17056 (coverage_begin_function): Check new flag.
17057 (coverage_end_function): Check new flag.
17058 * value-prof.c (coverage_node_map_initialized_p): New function.
17059 (init_node_map): Populate map with all functions.
17060 * doc/invoke.texi: Document new parameter.
17062 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
17063 Richard Biener <rguenther@suse.de>
17065 * lto-streamer-out.c (struct sccs): Turn to ...
17066 (class DFS): ... this one; refactor the DFS walk so it can
17067 be re-done on per-SCC basis.
17068 (DFS::DFS): New constructor.
17069 (DFS::~DFS): New destructor.
17070 (hash_tree): Add new MAP argument holding in-SCC hash values;
17071 remove POINTER_TYPE hashing hack.
17072 (scc_entry_compare): Rename to ...
17073 (DFS::scc_entry_compare): ... this one.
17074 (hash_scc): Rename to ...
17075 (DFS::hash_scc): ... this one; pass output_block instead
17076 of streamer_cache; work harder to get unique and stable SCC
17078 (DFS_write_tree): Rename to ...
17079 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17080 (lto_output_tree): Update.
17082 2014-07-25 Andi Kleen <ak@linux.intel.com>
17084 * lto-streamer-out.c (hash_tree): Convert to inchash.
17086 2014-07-25 Andi Kleen <ak@linux.intel.com>
17088 * tree.c (build_type_attribute_qual_variant): Use inchash.
17089 (type_hash_list): Dito.
17090 (attribute_hash_list): Dito
17091 (iterative_hstate_expr): Dito.
17092 (iterative_hash_expr): Dito.
17093 (build_range_type_1): Dito.
17094 (build_array_type_1): Dito.
17095 (build_function_type): Dito.
17096 (build_method_type_directly): Dito.
17097 (build_offset_type): Dito.
17098 (build_complex_type): Dito.
17099 (make_vector_type): Dito.
17100 * tree.h (iterative_hash_expr): Add compat wrapper.
17101 (iterative_hstate_expr): Add.
17103 2014-07-25 Andi Kleen <ak@linux.intel.com>
17105 * Makefile.in (OBJS): Add inchash.o.
17106 (PLUGIN_HEADERS): Add inchash.h.
17107 * ipa-devirt.c: Include inchash.h.
17108 * lto-streamer-out.c: Dito.
17109 * tree-ssa-dom.c: Dito.
17110 * tree-ssa-pre.c: Dito.
17111 * tree-ssa-sccvn.c: Dito.
17112 * tree-ssa-tail-merge.c: Dito.
17114 * tree.c (iterative_hash_hashval_t): Move to ...
17115 (iterative_hash_host_wide_int): Move to ...
17116 * inchash.c: Here. New file.
17117 * tree.h (iterative_hash_hashval_t): Move to ...
17118 (iterative_hash_host_wide_int): Move to ...
17119 * inchash.h: Here. New file.
17121 2014-07-25 Richard Biener <rguenther@suse.de>
17123 PR middle-end/61762
17124 PR middle-end/61894
17125 * fold-const.c (native_encode_int): Add and handle offset
17126 parameter to do partial encodings of expr.
17127 (native_encode_fixed): Likewise.
17128 (native_encode_real): Likewise.
17129 (native_encode_complex): Likewise.
17130 (native_encode_vector): Likewise.
17131 (native_encode_string): Likewise.
17132 (native_encode_expr): Likewise.
17133 * fold-const.c (native_encode_expr): Add offset parameter
17135 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17136 (fold_ctor_reference): Handle all reads from tcc_constant
17139 2014-07-25 Richard Biener <rguenther@suse.de>
17141 * tree-inline.c (estimate_move_cost): Mark speed_p argument
17142 as possibly unused.
17144 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17146 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17148 2014-07-24 Kyle McMartin <kyle@redhat.com>
17150 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17152 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17154 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17156 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17158 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17159 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17160 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17162 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17164 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17165 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17166 aggregate types. Instead, *all* aggregate types, except for single-
17167 element or homogeneous float/vector aggregates, are quadword-aligned
17168 if required by their type alignment. Issue -Wpsabi note when a type
17169 is now treated differently than before.
17171 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17173 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17174 does not fit fully into floating-point registers, and there is still
17175 space in the register parameter area, use GPRs to pass those parts
17176 of the argument. Issue -Wpsabi note if any parameter is now treated
17177 differently than before.
17178 (rs6000_arg_partial_bytes): Update.
17180 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
17182 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17184 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17186 * rtl.h (target_rtl): Remove lang_dependent_initialized.
17187 * toplev.c (initialize_rtl): Don't use it. Move previously
17188 "language-dependent" calls to...
17189 (backend_init): ...here.
17190 (lang_dependent_init_target): Don't set lang_dependent_initialized.
17191 Assert that RTL initialization hasn't happend yet.
17193 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17195 PR rtl-optimization/61629
17196 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17197 they have already been initialized.
17199 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17201 PR middle-end/61268
17202 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17203 DECL_INCOMING_RTL and entry_parm.
17204 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17205 * calls.c (load_register_parameters): Likewise argument values.
17206 (emit_library_call_value_1, store_one_arg): Likewise argument
17208 * config/i386/i386.c (assign_386_stack_local): Likewise the local
17210 * explow.c (validize_mem): Modify the argument in-place.
17212 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17214 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17215 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17217 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17219 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17220 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17222 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17224 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17225 (aarch64_save_callee_saves): New parameter "skip_wb".
17226 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17228 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17230 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17232 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
17234 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17236 * graphite-isl-ast-to-gimple.c:
17237 (graphite_create_new_loop): Add calling of isl_id_free to properly
17238 decrement reference counts.
17240 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
17242 2014-07-24 Martin Liska <mliska@suse.cz>
17243 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
17245 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
17246 (rs6000_code_end): Likewise.
17248 2014-07-24 Martin Liska <mliska@suse.cz>
17250 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
17251 symtab_node funtion used.
17252 (rs6000_xcoff_declare_object_name): Likewise.
17254 2014-07-24 Martin Liska <mliska@suse.cz>
17256 * cgraphunit.c (compile): Correct function used.
17258 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17260 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
17263 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17266 * varasm.c (bss_initializer_p): Handle offlined ctors.
17267 (align_variable, get_variable_align): Likewise.
17268 (make_decl_one_only): Likewise.
17269 (default_binds_local_p_1): Likewise.
17270 (decl_binds_to_current_def_p): Likewise.
17271 (get_variable_section): Get constructor if it is offlined.
17272 (assemble_variable_contents): Sanity check that the caller
17273 streamed in the ctor in LTO.
17275 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17277 * graphite-isl-ast-to-gimple.c:
17278 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
17279 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
17280 isl_ast_op_pdiv_r to the different case.
17282 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
17284 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17286 PR middle-end/61876
17287 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
17288 when flag_errno_math is on.
17290 2014-07-24 Martin Liska <mliska@suse.cz>
17292 * cgraph.h (varpool_node):
17293 (availability get_availability (void)):
17294 created from cgraph_variable_initializer_availability
17295 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
17296 created from: cgraph_variable_initializer_availability
17297 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
17298 (void finalize_named_section_flags (void)):
17299 created from varpool_finalize_named_section_flags
17300 (bool assemble_decl (void)): created from varpool_assemble_decl
17301 (void analyze (void)): created from varpool_analyze_node
17302 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
17303 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
17304 (void remove_initializer (void)): created from varpool_remove_initializer
17305 (tree get_constructor (void)): created from varpool_get_constructor
17306 (bool externally_visible_p (void)): created from varpool_externally_visible_p
17307 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
17308 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
17309 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
17310 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
17311 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
17312 (static bool output_variables (void)): created from varpool_output_variables
17313 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
17314 created from varpool_extra_name_alias
17315 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
17316 (static void dump_varpool (FILE *f)): created from dump_varpool
17317 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
17318 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
17319 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
17320 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
17321 (void assemble_aliases (void)): created from assemble_aliases
17323 2014-07-24 Martin Liska <mliska@suse.cz>
17325 * cgraph.h (symtab_node):
17326 (void register_symbol (void)): created from symtab_register_node
17327 (void remove (void)): created from symtab_remove_node
17328 (void dump (FILE *f)): created from dump_symtab_node
17329 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
17330 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
17331 (struct ipa_ref *add_reference (symtab_node *referred_node,
17332 enum ipa_ref_use use_type)): created from add_reference
17333 (struct ipa_ref *add_reference (symtab_node *referred_node,
17334 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
17335 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
17336 gimple stmt)): created from maybe_add_reference
17337 (bool semantically_equivalent_p (symtab_node *target)): created from
17338 symtab_semantically_equivalent_p
17339 (void remove_from_same_comdat_group (void)): created from
17340 remove_from_same_comdat_group
17341 (void add_to_same_comdat_group (symtab_node *old_node)): created from
17342 symtab_add_to_same_comdat_group
17343 (void dissolve_same_comdat_group_list (void)): created from
17344 symtab_dissolve_same_comdat_group_list
17345 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
17346 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
17347 created from symtab_alias_ultimate_target
17348 (inline symtab_node *next_defined_symbol (void)): created from
17349 symtab_next_defined_symbol
17350 (bool resolve_alias (symtab_node *target)): created from
17351 symtab_resolve_alias
17352 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
17353 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
17354 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
17355 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
17356 (void set_section (const char *section)): created from set_section_1
17357 (enum availability get_availability (void)): created from symtab_node_availability
17358 (void make_decl_local (void)): created from symtab_make_decl_local
17359 (bool real_symbol_p (void)): created from symtab_read_node
17360 (can_be_discarded_p (void)): created from symtab_can_be_discarded
17361 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
17362 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
17363 symtab_in_same_comdat_p;
17364 (bool address_taken_from_non_vtable_p (void)): created from
17365 address_taken_from_non_vtable_p
17366 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
17367 (static void dump_table (FILE *)): created from dump_symtab
17368 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
17369 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
17370 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
17371 symtab_used_from_object_file_p
17372 (void dump_base (FILE *)): created from dump_symtab_base
17373 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
17374 (void unregister (void)): created from symtab_unregister_node
17375 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
17376 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
17377 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
17378 symtab_nonoverwritable_alias_1
17379 * cgraph.h (cgraph_node):
17380 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
17381 created from cgraph_remove_node_and_inline_clones
17382 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
17383 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
17384 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
17385 (cgraph_node *function_symbol (enum availability *avail = NULL)):
17386 created from cgraph_function_node
17387 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
17388 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
17389 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
17390 created from cgraph_create_clone
17391 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
17392 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
17393 created from cgraph_create_virtual_clone
17394 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
17395 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
17396 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
17397 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
17398 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
17399 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
17400 created from cgraph_function_version_info
17401 (struct cgraph_function_version_info *insert_new_function_version (void)):
17402 created from insert_new_cgraph_node_version
17403 (struct cgraph_function_version_info *function_version (void)): created from
17404 get_cgraph_node_version
17405 (void analyze (void)): created from analyze_function
17406 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
17407 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
17408 tree real_alias) cgraph_add_thunk
17409 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
17410 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
17411 created from cgraph_function_or_thunk_node
17412 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
17413 created from expand_thunk
17414 (void reset (void)): created from cgraph_reset_node
17415 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
17416 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
17417 (void remove (void)): created from cgraph_remove_node
17418 (void dump (FILE *f)): created from dump_cgraph_node
17419 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
17420 (bool get_body (void)): created from cgraph_get_body
17421 (void release_body (void)): created from cgraph_release_function_body
17422 (void unnest (void)): created from cgraph_unnest_node
17423 (void make_local (void)): created from cgraph_make_node_local
17424 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
17425 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
17426 gcov_type count, int freq)): created from cgraph_create_edge
17427 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
17428 gcov_type count, int freq)): created from cgraph_create_indirect_edge
17429 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
17430 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
17431 created from cgraph_create_edge_including_clones
17432 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
17433 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
17434 (void remove_callers (void)): created from cgraph_node_remove_callers
17435 (void remove_callees (void)): created from cgraph_node_remove_callees
17436 (enum availability get_availability (void)): created from cgraph_function_body_availability
17437 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
17438 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
17439 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
17440 (void call_duplication_hooks (cgraph_node *node2)): created from
17441 cgraph_call_node_duplication_hooks
17442 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
17443 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
17444 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
17445 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
17446 (void call_function_insertion_hooks (void)):
17447 created from cgraph_call_function_insertion_hooks
17448 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
17449 (bool local_p (void)): created from cgraph_local_node
17450 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
17451 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
17452 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
17453 (inline bool only_called_directly_or_aliased_p (void)):
17454 created from cgraph_only_called_directly_or_aliased_p
17455 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
17456 created from cgraph_will_be_removed_from_program_if_no_direct_calls
17457 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
17458 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
17459 (bool can_remove_if_no_direct_calls_p (void)):
17460 created from cgraph_can_remove_if_no_direct_calls_p
17461 (inline bool has_gimple_body_p (void)):
17462 created from cgraph_function_with_gimple_body_p
17463 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
17464 (static void dump_cgraph (FILE *f)): created from dump_cgraph
17465 (static inline void debug_cgraph (void)): created from debug_cgraph
17466 (static void record_function_versions (tree decl1, tree decl2)):
17467 created from record_function_versions
17468 (static void delete_function_version (tree decl)):
17469 created from delete_function_version
17470 (static void add_new_function (tree fndecl, bool lowered)):
17471 created from cgraph_add_new_function
17472 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
17473 (static cgraph_node * create (tree decl)): created from cgraph_create_node
17474 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
17475 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
17476 (static cgraph_node *get_for_asmname (tree asmname)):
17477 created from cgraph_node_for_asm
17478 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
17479 created from cgraph_same_body_alias
17480 (static bool used_from_object_file_p_worker (cgraph_node *node,
17481 void *): new function
17482 (static bool non_local_p (cgraph_node *node, void *)):
17483 created from cgraph_non_local_node_p_1
17484 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17485 created from verify_cgraph
17486 (static bool make_local (cgraph_node *node, void *)):
17487 created from cgraph_make_node_local
17488 (static cgraph_node *create_alias (tree alias, tree target)):
17489 created from cgraph_create_function_alias
17490 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17491 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17492 created from cgraph_create_edge_1
17493 * cgraph.h (varpool_node):
17494 (void remove (void)): created from varpool_remove_node
17495 (void dump (FILE *f)): created from dump_varpool_node
17497 2014-07-24 Richard Biener <rguenther@suse.de>
17500 * tree-ssa-structalias.c (create_variable_info_for_1):
17501 Use varpool_get_constructor.
17502 (create_variable_info_for): Likewise.
17504 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17506 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17507 subtract outgoing area size when restoring stack_pointer_rtx.
17509 2014-07-24 Nick Clifton <nickc@redhat.com>
17511 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17512 that operations are taking place in parallel.
17513 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17515 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
17517 * omp-low.c (extract_omp_for_data): Add missing break statement.
17519 2014-07-24 Richard Biener <rguenther@suse.de>
17521 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17522 * tree-inline.c (estimate_move_cost): Add speed_p parameter
17523 and adjust MOVE_RATIO query accordingly.
17524 (estimate_num_insns): Adjust callers.
17525 * ipa-prop.c (ipa_populate_param_decls): Likewise.
17526 * ipa-cp.c (gather_context_independent_values,
17527 estimate_local_effects): Likewise.
17528 * ipa-split.c (consider_split): Likewise.
17530 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
17532 * config/i386/driver-i386.c: Remove names of unused arguments and
17533 unnecessary unused attributes.
17534 * config/i386/host-mingw32.c: Likewise.
17535 * config/i386/i386.c: Likewise.
17536 * config/i386/winnt-stubs.c: Likewise.
17537 * config/i386/winnt.c: Likewise.
17539 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17541 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17542 (aarch64_gen_loadwb_pair): New helper function.
17543 (aarch64_expand_epilogue): Simplify code using new helper functions.
17544 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17546 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17548 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17549 (aarch64_gen_storewb_pair): New helper function.
17550 (aarch64_expand_prologue): Simplify code using new helper functions.
17551 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17553 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17555 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17556 Rename to aarch64_save_callee_saves, remove restore code.
17557 (aarch64_restore_callee_saves): New function.
17559 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17561 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17562 (aarch64_save_callee_saves): New function to handle reg save
17563 for both core and vectore regs.
17565 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17567 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17568 (aarch64_gen_store_pair): New helper function.
17569 (aarch64_save_or_restore_callee_save_registers)
17570 (aarch64_save_or_restore_fprs): Use new helper functions.
17572 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17574 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17575 (aarch64_save_or_restore_callee_save_registers)
17576 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
17578 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17580 * config/aarch64/aarch64.c
17581 (aarch64_save_or_restore_callee_save_registers)
17582 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
17584 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17586 * config/aarch64/aarch64.c
17587 (aarch64_save_or_restore_callee_save_registers)
17588 (aarch64_save_or_restore_fprs): Remove 'increment'.
17590 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17592 * config/aarch64/aarch64.c
17593 (aarch64_save_or_restore_callee_save_registers)
17594 (aarch64_save_or_restore_fprs): Use register offset in
17595 cfun->machine->frame.reg_offset.
17597 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17599 * config/aarch64/aarch64.c
17600 (aarch64_save_or_restore_callee_save_registers)
17601 (aarch64_save_or_restore_fprs): Remove base_rtx.
17603 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17605 * config/aarch64/aarch64.c
17606 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17607 to 'start_offset'. Remove local variable 'start_offset'.
17609 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17611 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17612 type to HOST_WIDE_INT.
17614 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17616 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17617 (aarch64_save_or_restore_fprs)
17618 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17620 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17622 * config/arm/t-rtems-eabi: Add
17623 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17624 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17625 mbig-endian/mthumb/march=armv7-r, and
17626 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
17629 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17630 Chris Johns <chrisj@rtems.org>
17631 Joel Sherrill <joel.sherrill@oarcorp.com>
17633 * config.gcc: Add nios2-*-rtems*.
17634 * config/nios2/rtems.h: New file.
17635 * gcc/config/nios2/t-rtems: New file.
17637 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
17640 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
17641 constant numbers, not general constants.
17642 (rs6000_expand_vector_init): Ditto.
17644 2014-07-23 Nathan Sidwell <nathan@acm.org>
17646 * gcov-tool.c (gcov_list): Declare here.
17647 (set_gcov_list): Remove.
17648 (gcov_output_files): Set gcov_list directly.
17650 2014-07-23 Host Schirmeier <horst@schirmeier.com>
17652 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
17654 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17656 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
17657 callee-saved registers are available for padding purpose
17658 and r3 is not mandatory, then prefer use those callee-saved
17661 2014-07-23 Richard Biener <rguenther@suse.de>
17663 * params.def (PARAM_MAX_COMBINE_INSNS): New.
17664 * combine.c: Include statistics.h and params.h.
17665 (combine_instructions): Guard three and four insn combines
17666 with max-combine-insns value. Record statistics for combines
17668 * doc/invoke.texi (max-combine-insns): Document new param.
17670 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17672 * graphite-isl-ast-to-gimple.c:
17673 (translate_isl_ast_node_block): New function.
17674 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
17676 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
17677 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
17679 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17681 * graphite-isl-ast-to-gimple.c:
17682 (get_max_schedule_dimensions): New function.
17683 (extend_schedule): Likewise.
17684 (generate_isl_schedule): Add calling of extend_schedule and
17685 get_max_schedule_dimensions.
17687 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17689 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
17690 (case UNSPEC): Handle UNSPEC_RBIT.
17692 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17694 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
17695 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
17697 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17699 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
17701 2014-07-22 Roman Gareev <gareevroman@gmail.com>
17703 * graphite-isl-ast-to-gimple.c:
17704 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
17705 (ivs_params_clear):
17706 (build_iv_mapping): New function.
17707 (translate_isl_ast_node_user): Likewise.
17708 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
17710 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
17711 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
17712 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
17714 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17717 * config/arm/arm.md (setmem): New pattern.
17718 * config/arm/arm-protos.h (struct tune_params): New fields.
17719 (arm_gen_setmem): New prototype.
17720 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17721 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17722 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17723 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17724 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17725 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17726 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17727 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17728 (arm_const_inline_cost): New function.
17729 (arm_block_set_max_insns): New function.
17730 (arm_block_set_non_vect_profit_p): New function.
17731 (arm_block_set_vect_profit_p): New function.
17732 (arm_block_set_unaligned_vect): New function.
17733 (arm_block_set_aligned_vect): New function.
17734 (arm_block_set_unaligned_non_vect): New function.
17735 (arm_block_set_aligned_non_vect): New function.
17736 (arm_block_set_vect, arm_gen_setmem): New functions.
17738 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17740 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
17742 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
17745 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
17746 out of #ifdef __OPTIMIZE__.
17748 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
17750 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
17751 different trapping status if -fnon-call-exceptions is enabled.
17753 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
17755 * expr.c (store_field): Handle VOIDmode for calls that return values
17756 in multiple locations.
17758 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17760 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
17761 (altivec_vsldoi_<mode>): Likewise.
17763 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17765 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
17766 to the number of characters in the line.
17768 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17770 * graphite-isl-ast-to-gimple.c: Add using of
17771 build_nonstandard_integer_type instead of int128_integer_type_node.
17773 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
17775 * toplev.c (output_stack_usage): Adjust the location of the warning.
17777 2014-07-19 Daniel Cederman <cederman@gaisler.com>
17779 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
17780 (*membar_storeload): Disable for LEON3.
17782 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
17784 PR rtl-optimization/61461
17785 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
17787 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
17790 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
17791 Fix instruction constraint.
17792 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
17794 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
17796 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
17798 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
17800 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
17801 GNU coding standards.
17802 (nds32_register_move_cost): Likewise.
17803 (nds32_memory_move_cost): Likewise.
17804 (nds32_address_cost): Likewise.
17806 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17808 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
17810 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
17812 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
17813 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
17814 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17815 (HAVE_sync_compare_and_swapqi): Define.
17816 (HAVE_sync_compare_and_swaphi): Likewise.
17817 (HAVE_sync_compare_and_swapsi): Likewise.
17819 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
17821 * config/mips/p5600.md: Add missing cpu tests.
17823 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17825 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
17826 (vmla_f64): Likewise.
17827 (vfms_f64): Likewise.
17828 (vmls_f64): Likewise.
17830 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17832 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
17833 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
17835 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17837 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
17838 (vmlal_high_lane_s32): Likewise.
17839 (vmlal_high_lane_u16): Likewise.
17840 (vmlal_high_lane_u32): Likewise.
17841 (vmlsl_high_lane_s16): Likewise.
17842 (vmlsl_high_lane_s32): Likewise.
17843 (vmlsl_high_lane_u16): Likewise.
17844 (vmlsl_high_lane_u32): Likewise.
17846 2014-07-17 Terry Guo <terry.guo@arm.com>
17848 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
17849 (alus_reg): Renamed to alus_sreg.
17850 * config/arm/arm-fixed.md: Change type of non-dsp instructions
17851 from alu_reg to alu_sreg. Change type of dsp instructions from
17852 alu_reg to alu_dsp_reg.
17853 * config/arm/thumb1.md: Likewise.
17854 * config/arm/thumb2.md: Likewise.
17855 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
17856 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
17857 with alu_sreg and alus_sreg.
17858 * config/arm/arm1026ejs.md (alu_op): Likewise.
17859 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
17860 * config/arm/arm926ejs.md (9_alu_op): Likewise.
17861 * config/arm/fa526.md (526_alu_op): Likewise.
17862 * config/arm/fa606te.md (606te_alu_op): Likewise.
17863 * config/arm/fa626te.md (626te_alu_op): Likewise.
17864 * config/arm/fa726te.md (726te_alu_op): Likewise.
17865 * config/arm/fmp626.md (mp626_alu_op): Likewise.
17866 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
17867 alu_sreg, alu_dsp_reg and alus_sreg.
17868 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
17869 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17870 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17871 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
17872 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
17873 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17874 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17875 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17876 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
17877 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
17878 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
17879 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
17880 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
17881 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
17882 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
17883 alus_reg to alus_sreg.
17885 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
17887 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
17890 2014-07-17 Richard Biener <rguenther@suse.de>
17892 PR rtl-optimization/61801
17893 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
17894 don't set reg_pending_barrier if it appears in a debug-insn.
17896 2014-07-16 DJ Delorie <dj@redhat.com>
17898 * config/rx/rx.c (rx_option_override): Fix alignment values.
17899 (rx_align_for_label): Likewise.
17901 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
17904 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
17905 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
17906 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
17908 (cris_print_index, cris_print_operand, cris_constant_index_p)
17909 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
17910 (cris_address_cost): Ditto last CONSTANT_P.
17911 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
17912 callers changed. Yield cris_offsettable_symbol for non-PIC
17913 constant symbolic expressions including labels. Yield cris_unspec
17915 (cris_expand_pic_call_address): New parameter MARKERP. Set its
17916 target to pic_offset_table_rtx for calls that will likely go
17917 through PLT, const0_rtx when they can't. All callers changed.
17918 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
17919 symbolic expressions to be PICified. Remove second, redundant,
17920 assert on can_create_pseudo_p returning non-zero. Use
17921 replace_equiv_address_nv, not replace_equiv_address, for final
17923 * config/cris/cris.md ("movsi"): Move variable t to pattern
17924 toplevel. Adjust assert for new cris_symbol_type member. Use
17925 CONSTANT_P instead of CONSTANT_ADDRESS_P.
17926 ("*movsi_internal") <case 9>: Make check for valid unspec operands
17928 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
17929 ("call", "call_value"): Use second incoming operand as a marker
17930 for pic-offset-table-register being used.
17931 ("*expanded_call_non_v32", "*expanded_call_v32")
17932 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
17933 second incoming operand to CALL, match cris_call_type_marker.
17934 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
17935 ("*expanded_call_side"): Ditto. Fix typo in comment.
17936 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
17938 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
17939 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
17940 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
17941 users changed. Add members cris_offsettable_symbol and cris_unspec.
17942 (cris_symbol_type): Rename from cris_pic_symbol_type.
17943 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
17945 * config/cris/cris-protos.h (cris_symbol_type_of,
17946 cris_expand_pic_call_address): Adjust prototypes.
17947 (cris_legitimate_constant_p): New prototype.
17949 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
17950 an existing tmake_file. Don't add t-slibgcc and t-linux.
17952 2014-07-17 Jason Merrill <jason@redhat.com>
17955 * symtab.c (symtab_remove_from_same_comdat_group): Also
17956 set_comdat_group to NULL_TREE.
17957 (verify_symtab): Fix diagnostic.
17959 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
17962 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
17964 2014-07-16 Dodji Seketeli <dodji@redhat.com>
17966 Support location tracking for built-in macro tokens
17967 * input.h (is_location_from_builtin_token): New function declaration.
17968 * input.c (is_location_from_builtin_token): New function definition.
17969 * toplev.c (general_init): Tell libcpp what the pre-defined
17970 spelling location for built-in tokens is.
17972 2014-07-16 Jakub Jelinek <jakub@redhat.com>
17974 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
17975 on the FUNCTION_DECL.
17977 2014-07-16 Richard Biener <rguenther@suse.de>
17980 * doc/extend.texi (always_inline): Clarify.
17982 2014-07-15 Eric Christopher <echristo@gmail.com>
17984 * doc/invoke.texi (Link Options): Document -z option.
17986 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
17988 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
17989 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17991 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
17993 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
17995 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
17997 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
17998 varpool_assemble_decl.
17999 * varpool.c (varpool_assemble_decl): Assert that node->definition is
18002 2014-07-15 Michael Matz <matz@suse.de>
18004 PR rtl-optimization/61772
18005 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18007 2014-07-15 Richard Biener <rguenther@suse.de>
18009 * opts.c (default_options_table): Disable bit-ccp at -Og.
18011 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18013 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18015 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18017 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18018 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18019 call langhook for unknown declaration.
18020 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18021 * tree.h (DECL_ARGUMENTS): Update.
18022 * print-tree.c (print_node): Update.
18023 * tree-core.h (tree_decl_non_common): Remove arguments.
18024 (tree_function_decl): Add arguments.
18026 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
18028 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18030 2014-07-14 Richard Biener <rguenther@suse.de>
18032 PR tree-optimization/61779
18033 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18034 simplifying a condition.
18036 2014-07-14 Richard Biener <rguenther@suse.de>
18038 * builtins.c (c_strlen): Make only_value == 2 really only
18039 affect warning generation.
18041 2014-07-14 Richard Biener <rguenther@suse.de>
18043 PR tree-optimization/61757
18044 PR tree-optimization/61783
18045 PR tree-optimization/61787
18046 * tree-ssa-dom.c (record_equality): Revert canonicalization
18047 change and add comment.
18048 (propagate_rhs_into_lhs): Revert previous fix, removing
18049 loop depth restriction again.
18051 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18053 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18054 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18055 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18056 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18057 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18058 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18059 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18061 2014-07-14 Richard Biener <rguenther@suse.de>
18063 * cgraph.h (decl_in_symtab_p): Make inline.
18065 2014-07-14 Jakub Jelinek <jakub@redhat.com>
18067 PR middle-end/61294
18068 * doc/invoke.texi (-Wmemset-transposed-args): Document.
18071 * config/i386/i386.c (classify_argument): Don't merge classes above
18074 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
18076 * cgraph.h (symtab_node): Add nonzero_address.
18077 (decl_in_symtab_p): Break out from ...
18078 (symtab_get_node): ... here.
18079 * fold-const.c: Include cgraph.h
18080 (tree_single_nonzero_warnv_p): Use symtab to determine
18081 if symbol is non-zero.
18082 * symtab.c (symtab_node::nonzero_address): New method.
18084 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18086 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18087 forgotten in previous commit.
18089 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18091 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18093 * ipa-devirt.c: Include stor-layout.h and intl.h
18094 (odr_subtypes_equivalent_p): New function.
18095 (warn_odr): New function.
18096 (warn_type_mismatch): New function.
18097 (odr_types_equivalent_p): New function.
18098 (add_type_duplicate): Use it.
18099 * common.opt (Wodr): New flag.
18100 * doc/invoke.texi (Wodr): Document new warning.
18102 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18104 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
18105 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18106 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
18107 (varpool_get_constructor): Push CTORS_IN timevar.
18108 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
18110 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
18112 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
18113 Remove VOID_FTYPE_PUSHORT.
18114 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
18115 Change code to USHORT_FTYPE_VOID.
18116 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
18117 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
18118 (ix86_atomic_assign_expand_fenv): Update for
18119 __builtin_ia32_fnstsw changes.
18120 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
18121 (fnstsw): Change operand 0 to nonimmediate operand.
18123 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18125 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
18126 (varpool_get_constructor): New function.
18127 (varpool_ctor_useable_for_folding_p): Break out from ...
18128 (ctor_for_folding): ... here; use varpool_get_constructor.
18129 (varpool_assemble_decl): Likewise.
18130 * lto-streamer.h (struct output_block): Turn cgraph_node
18132 (lto_input_variable_constructor): Declare.
18133 * ipa-visibility.c (function_and_variable_visibility): Use
18134 varpool_get_constructor.
18135 * cgraph.h (varpool_get_constructor): Declare.
18136 (varpool_ctor_useable_for_folding_p): New function.
18137 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18138 parameter; return error_mark_node for non-trivial constructors.
18139 (lto_write_tree_1, DFS_write_tree): Update use of
18140 get_symbol_initial_value.
18141 (output_function): Update initialization of symbol.
18142 (output_constructor): New function.
18143 (copy_function): Rename to ..
18144 (copy_function_or_variable): ... this one; handle vars too.
18145 (lto_output): Output variable sections.
18146 * lto-streamer-in.c (input_constructor): New function.
18147 (lto_read_body): Rename from ...
18148 (lto_read_body_or_constructor): ... this one; handle vars too.
18149 (lto_input_variable_constructor): New function.
18150 * ipa-prop.c (ipa_prop_write_jump_functions,
18151 ipa_prop_write_all_agg_replacement): Update.
18152 * lto-cgraph.c (compute_ltrans_boundary): Use it.
18153 (output_cgraph_opt_summary): Set symbol to NULL.
18155 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18157 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18158 non-polymorphic types.
18159 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18160 * ipa-devirt.c (types_same_for_odr): Do not explode when one
18161 of types is not polymorphic.
18163 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
18165 * lra-constraints.c (remove_inheritance_pseudos): Process
18166 destination pseudo too.
18168 2014-07-11 Rong Xu <xur@google.com>
18170 * gcov-tool.c (gcov_output_files): Fix build error introduced in
18173 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18175 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18176 * config/avr/avr-devices.c (AVR_MCU): Same.
18177 (avr_mcu_types): add text start value to end of device list.
18178 * config/avr/avr-mcus.def: Add text section start for all devices.
18179 (ata5782): Add new avr5 device.
18181 * config/avr/avr-tables.opt: Regenerate.
18182 * config/avr/avr.h: Add declaration for text section start handler.
18183 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18185 (LINK_SPEC): Include text section start handler to linker spec.
18186 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18187 pass -Ttext option to linker if the text section start for the device
18189 * config/avr/t-multilib: Regenerate.
18190 * doc/avr-mmcu.texi: Regenerate.
18192 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
18194 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18195 * config/rs6000/aix52.h (LINK_SPEC): Same.
18196 * config/rs6000/aix53.h (LINK_SPEC): Same.
18197 * config/rs6000/aix61.h (LINK_SPEC): Same.
18198 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18200 2014-07-11 Roman Gareev <gareevroman@gmail.com>
18202 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18203 (graphite_verify): New function.
18204 (ivs_params_clear): New function.
18205 (gcc_expression_from_isl_ast_expr_id): New function.
18206 (gcc_expression_from_isl_expr_int): New function.
18207 (binary_op_to_tree): New function.
18208 (ternary_op_to_tree): New function.
18209 (unary_op_to_tree): New function.
18210 (nary_op_to_tree): New function.
18211 (gcc_expression_from_isl_expr_op): New function.
18212 (gcc_expression_from_isl_expression): New function.
18213 (graphite_create_new_loop): New function.
18214 (translate_isl_ast_for_loop): New function.
18215 (get_upper_bound): New function.
18216 (graphite_create_new_loop_guard): New function.
18217 (translate_isl_ast_node_for): New function.
18218 (translate_isl_ast): New function.
18219 (add_parameters_to_ivs_params): New function.
18220 (scop_to_isl_ast): New parameter ip.
18221 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18223 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18225 * config/xtensa/predicates.md (call expander): Update for
18226 DECL_SECTION_NAME being string.
18228 2014-07-11 Richard Biener <rguenther@suse.de>
18230 PR middle-end/61473
18231 * builtins.c (fold_builtin_memory_op): Inline memory moves that
18232 can be implemented with a single load followed by a single store.
18233 (c_strlen): Only warn when only_value is not 2.
18235 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
18237 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
18239 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
18242 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
18243 (*movhi_bytes): Likewise.
18244 (*arm_movqi_insn): Likewise.
18246 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
18249 * config/alpha/alpha.c: Include tree-pass.h, context.h
18250 and pass_manager.h.
18251 (pass_data_handle_trap_shadows): New pass.
18252 (pass_handle_trap_shadows::gate): New pass gate function.
18253 (make_pass_handle_trap_shadows): New function.
18254 (rest_of_handle_trap_shadows): Ditto.
18256 (alpha_align_insns_1): Rename from alpha_align_insns.
18257 (pass_data_align_insns): New pass.
18258 (pass_align_insns::gate): New pass gate function.
18259 (make_pass_aling_insns): New function.
18260 (rest_of_align_insns): Ditto.
18261 (alpha_align_insns): Ditto.
18263 (alpha_option_override): Declare handle_trap_shadows info
18264 and align_insns_info. Register handle_trap_shadows and align_insns
18266 (alpha_reorg): Do not call alpha_trap_shadows and
18267 alpha_align_insn from here.
18269 (alpha_pad_function_end): Do not skip BARRIERs.
18271 2014-07-10 Rong Xu <xur@google.com>
18273 Add gcov-tool: an offline gcda profile processing tool support.
18274 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
18275 (gcov_is_error): Ditto.
18276 (gcov_read_string): Ditto.
18277 (gcov_read_sync): Ditto.
18278 * gcov-io.h: Move counter defines to gcov-counter.def.
18279 * gcov-dump.c (tag_counters): Use gcov-counter.def.
18280 * coverage.c: Ditto.
18281 * gcov-tool.c: Offline gcda profile processing tool.
18282 (unlink_gcda_file): Remove one gcda file.
18283 (unlink_profile_dir): Remove gcda files from the profile path.
18284 (gcov_output_files): Output gcda files to an output dir.
18285 (profile_merge): Merge two profiles in directory.
18286 (print_merge_usage_message): Print merge usage.
18287 (merge_usage): Print merge usage and exit.
18288 (do_merge): Driver for profile merge sub-command.
18289 (profile_rewrite): Rewrite profile.
18290 (print_rewrite_usage_message): Print rewrite usage.
18291 (rewrite_usage): Print rewrite usage and exit.
18292 (do_rewrite): Driver for profile rewrite sub-command.
18293 (print_usage): Print gcov-info usage and exit.
18294 (print_version): Print gcov-info version.
18295 (process_args): Process arguments.
18296 (main): Main routine for gcov-tool.
18297 * Makefile.in: Build and install gcov-tool.
18298 * gcov-counter.def: New file split from gcov-io.h.
18299 * doc/gcc.texi: Include gcov-tool.texi.
18300 * doc/gcov-tool.texi: Document for gcov-tool.
18302 2014-07-10 Richard Biener <rguenther@suse.de>
18304 PR tree-optimization/61757
18305 * tree-ssa-dom.c (loop_depth_of_name): Restore.
18306 (propagate_rhs_into_lhs): Revert part of last change.
18308 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
18310 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
18313 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
18315 PR middle-end/53590
18316 * function.c (allocate_struct_function): Revert r188667 change.
18318 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
18320 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
18322 * doc/install.texi: Remove links to defunct package providers for
18325 2014-07-09 Tom de Vries <tom@codesourcery.com>
18327 * final.c (get_call_fndecl): Declare.
18328 (self_recursive_call_p): New function.
18329 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
18331 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18333 * ipa-devirt.c (record_node): Walk through aliases.
18335 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18337 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
18339 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18342 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18344 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18346 * ipa-visibility.c (function_and_variable_visibility): Remove
18347 temporary hack disabling local aliases on AIX.
18349 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18351 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
18352 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
18354 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18356 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
18357 * rs6000/rs6000.c: Inline output of .set instruction.
18358 (declare_alias_data): New struct.
18359 (rs6000_declare_alias): New function.
18360 (rs6000_xcoff_declare_function_name): Use it.
18361 (rs6000_xcoff_declare_object_name): New function.
18362 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
18363 (ASM_OUTPUT_DEF): Turn to empty definition.
18365 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18368 * hash-table.h: use hash_table::value_type instead of
18369 Descriptor::value_type in the return types of several methods.
18371 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18373 * tree-pass.h (pass_data): Remove has_execute member.
18374 * passes.c (execute_one_pass): Don't check pass->has_execute.
18375 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18376 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18377 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18378 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18379 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18380 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18381 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18382 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18383 gimple-low.c, gimple-ssa-isolate-paths.c,
18384 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18385 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
18386 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
18387 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
18388 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
18389 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18390 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
18391 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
18392 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
18393 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
18394 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
18395 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18396 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18397 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18398 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18399 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18400 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18401 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18402 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18403 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18404 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18405 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18406 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
18407 web.c: Remove initializer for pass_data::has_execute.
18409 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18411 * graphite-htab.h: Use hash_map instead of hash_table.
18412 * graphite-clast-to-gimple.c: Adjust.
18413 * passes.c: Use hash_map instead of hash_table.
18414 * sese.c: Likewise.
18415 * sese.h: Remove now unused code.
18417 2014-07-08 Sriraman Tallam <tmsriram@google.com>
18420 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
18423 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18425 PR rtl-optimization/61673
18426 * combine.c (simplify_comparison): Test just mode's sign bit
18427 in tmode rather than the sign bit and any bits above it.
18429 2014-07-08 Roman Gareev <gareevroman@gmail.com>
18431 * graphite-isl-ast-to-gimple.c (generate_isl_context):
18432 Add __isl_give to the declaration.
18433 (generate_isl_schedule): Likewise.
18434 (scop_to_isl_ast): Likewise.
18436 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18438 * config/arm/arm.c (cortexa5_extra_costs): New table.
18439 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
18441 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18443 PR tree-optimization/61725
18444 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
18445 range, use range_includes_zerop_p instead of integer_zerop on
18446 vr0->min, only use log2 of max if min is not negative.
18448 2014-07-08 Richard Biener <rguenther@suse.de>
18450 * tree-ssa-dom.h (loop_depth_of_name): Remove.
18451 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
18452 restriction on loop depth difference.
18453 (record_equality): Likewise.
18454 (propagate_rhs_into_lhs): Likewise. Simplify condition.
18455 (loop_depth_of_name): Remove.
18456 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
18457 restriction on loop depth difference.
18458 (init_copy_prop): Likewise.
18460 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18462 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
18464 (walk_aliased_vdefs): Likewise.
18465 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
18466 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
18467 (detect_type_change_from_memory_writes): Check if entry was reached.
18469 2014-07-08 Richard Biener <rguenther@suse.de>
18471 PR tree-optimization/61681
18472 * tree-ssa-structalias.c (find_what_var_points_to): Expand
18473 NONLOCAL inside ESCAPED.
18475 2014-07-08 Richard Biener <rguenther@suse.de>
18477 PR tree-optimization/61680
18478 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18479 Handle properly all read-write dependences with group accesses.
18481 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
18483 PR tree-optimization/61576
18484 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18485 block containing reduction statement is predecessor of phi basi block.
18487 2014-07-08 Marek Polacek <polacek@redhat.com>
18490 * fold-const.c (round_up_loc): Change the parameter type.
18492 * fold-const.h (round_up_loc): Adjust declaration.
18493 * stor-layout.c (finalize_record_size): Check for too large types.
18495 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
18497 * symtab.c: Include calls.h.
18498 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18500 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
18502 * config/rs6000/rs6000.c (output_vec_const_move): Handle
18503 little-endian code generation.
18504 * config/rs6000/spe.md (spe_evmergehi): Rename to...
18505 (vec_perm00_v2si): ... this. Handle little-endian code generation.
18506 (spe_evmergehilo): Rename to...
18507 (vec_perm01_v2si): ... this. Handle little-endian code generation.
18508 (spe_evmergelo): Rename to...
18509 (vec_perm11_v2si): ... this. Handle little-endian code generation.
18510 (spe_evmergelohi): Rename to...
18511 (vec_perm10_v2si): ... this. Handle little-endian code generation.
18512 (spe_evmergehi, spe_evmergehilo): New expanders.
18513 (spe_evmergelo, spe_evmergelohi): Likewise.
18514 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18515 (*frob_tf_ti): Likewise.
18516 (*frob_<mode>_di_2): Likewise.
18517 (*frob_tf_di_8_2): Likewise.
18518 (*frob_di_<mode>): Likewise.
18519 (*frob_ti_tf): Likewise.
18520 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18521 (*frob_ti_<mode>_8_2): Likewise.
18522 (*frob_ti_tf_2): Likewise.
18523 (mov_si<mode>_e500_subreg0): Rename to...
18524 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
18526 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18527 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18528 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
18529 the big endianness only.
18530 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18531 (*mov_si<mode>_e500_subreg0_2): Rename to...
18532 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
18533 big big endianness only.
18534 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18535 (*mov_si<mode>_e500_subreg4): Rename to...
18536 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
18538 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18539 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18540 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
18541 the big endianness only.
18542 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18544 (*mov_si<mode>_e500_subreg4_2): Rename to...
18545 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
18547 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18548 (*mov_sitf_e500_subreg8): Rename to...
18549 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
18551 (*mov_sitf_e500_subreg8_le): New instruction pattern.
18552 (*mov_sitf_e500_subreg8_2): Rename to...
18553 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
18555 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18556 (*mov_sitf_e500_subreg12): Rename to...
18557 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
18559 (*mov_sitf_e500_subreg12_le): New instruction pattern.
18560 (*mov_sitf_e500_subreg12_2): Rename to...
18561 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
18563 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18565 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
18567 * asan.c (instrument_strlen_call): Do not instrument first byte
18568 in strlen if already instrumented.
18570 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18572 * config/arm/arm.opt (mwords-little-endian): Delete.
18573 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18574 of TARGET_LITTLE_WORDS.
18575 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18576 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
18578 * doc/invoke.texi: Remove references to -mwords-little-endian.
18580 2014-07-07 Jakub Jelinek <jakub@redhat.com>
18582 * expmed.c (struct init_expmed_rtl): Change all fields but
18583 pow2 and cint from struct rtx_def to rtx.
18584 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
18585 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
18588 2014-07-06 Marek Polacek <polacek@redhat.com>
18591 * doc/invoke.texi: Document -Wsizeof-array-argument.
18593 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
18595 * wide-int.h (wide_int_storage): Change declaration from struct
18598 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
18600 * cgraph.c (cgraph_create_indirect_edge): Update call of
18601 get_polymorphic_call_info.
18602 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18603 (possible_polymorphic_call_targets): Add parameter call.
18604 (decl_maybe_in_construction_p): New predicate.
18605 (get_polymorphic_call_info): Add parameter call;
18606 use decl_maybe_in_construction_p.
18607 * gimple-fold.c (fold_gimple_assign): Update use of
18608 possible_polymorphic_call_targets.
18609 (gimple_fold_call): Likewise.
18610 * ipa-prop.c: Inlcude calls.h
18611 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18612 (param_type_may_change_p): New predicate.
18613 (detect_type_change_from_memory_writes): Break out from ...
18614 (detect_type_change): ... this one; use param_type_may_change_p.
18615 (detect_type_change_ssa): Use param_type_may_change_p.
18616 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18618 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
18621 * config/arm/arm-protos.h (arm_legitimate_address_p,
18622 arm_is_constant_pool_ref): Add prototypes.
18623 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18624 (arm_is_constant_pool_ref) New function.
18625 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
18626 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
18627 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
18628 operand. Remove pool_range and neg_pool_range attributes.
18629 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
18630 pool_range and neg_pool_range attributes.
18631 * config/arm/constraints.md (Uh): New constraint.
18632 (Uq): Don't allow constant pool references.
18634 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
18636 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
18637 (move_lo_quad_internal_be_<mode>): Likewise.
18638 (move_lo_quad_<mode>): Convert to define_expand.
18639 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
18640 (aarch64_simd_move_hi_quad_be_<mode>): New.
18641 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
18642 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
18643 (aarch64_combinez_be<mode>): New.
18644 (aarch64_combine<mode>): Convert to define_expand.
18645 (aarch64_combine_internal<mode>): New.
18646 (aarch64_simd_combine<mode>): Remove bogus RTL description.
18648 2014-07-04 Tom de Vries <tom@codesourcery.com>
18650 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
18651 combination of earlyclobber and read/write modifiers.
18653 2014-07-04 Tom de Vries <tom@codesourcery.com>
18655 * config/aarch64/aarch64-simd.md
18656 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
18658 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
18661 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
18663 2014-07-04 Jakub Jelinek <jakub@redhat.com>
18665 PR middle-end/61654
18666 * cgraphunit.c (expand_thunk): Call free_dominance_info.
18668 PR tree-optimization/61684
18669 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
18670 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
18672 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18673 Kito Cheng <kito@0xlab.org>
18674 Monk Chiang <sh.chiang04@gmail.com>
18676 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
18677 (nds32_symbol_load_store_p): Move to ...
18678 (nds32_fp_as_gp_check_available): Move to ...
18679 * config/nds32/nds32-fp-as-gp.c: ... here.
18680 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
18681 extern declaration.
18683 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18684 Kito Cheng <kito@0xlab.org>
18685 Monk Chiang <sh.chiang04@gmail.com>
18687 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
18688 (nds32_expand_store_multiple): Move to ...
18689 (nds32_expand_movmemqi): Move to ...
18690 * config/nds32/nds32-memory-manipulation.c: ... here.
18692 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18693 Kito Cheng <kito@0xlab.org>
18694 Monk Chiang <sh.chiang04@gmail.com>
18696 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
18697 (nds32_output_casesi_pc_relative): Move to ...
18698 (nds32_output_casesi): Move to ...
18699 (nds32_mem_format): Move to ...
18700 (nds32_output_16bit_store): Move to ...
18701 (nds32_output_16bit_load): Move to ...
18702 (nds32_output_32bit_store): Move to ...
18703 (nds32_output_32bit_load): Move to ...
18704 (nds32_output_32bit_load_s): Move to ...
18705 (nds32_output_stack_push): Move to ...
18706 (nds32_output_stack_pop): Move to ...
18707 * config/nds32/nds32-md-auxiliary.c: ... here.
18709 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18710 Ling-Hua Tseng <uranus@tinlans.org>
18712 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
18713 the purpose of this file.
18715 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18716 Kito Cheng <kito@0xlab.org>
18717 Monk Chiang <sh.chiang04@gmail.com>
18719 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
18720 (nds32_address_cost): Move implementation to ...
18721 * config/nds32/nds32-cost.c: ... here.
18722 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
18723 (nds32_address_cost_impl): Declare.
18725 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18726 Kito Cheng <kito@0xlab.org>
18727 Monk Chiang <sh.chiang04@gmail.com>
18729 * config/nds32/nds32.c
18730 (nds32_consecutive_registers_load_store_p): Move to ...
18731 (nds32_valid_multiple_load_store): Move to ...
18732 (nds32_valid_stack_push_pop): Move to ...
18733 (nds32_can_use_bclr_p): Move to ...
18734 (nds32_can_use_bset_p): Move to ...
18735 (nds32_can_use_btgl_p): Move to ...
18736 (nds32_can_use_bitci_p): Move to ...
18737 * config/nds32/nds32-predicates.c: ... here.
18739 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18740 Kito Cheng <kito@0xlab.org>
18741 Monk Chiang <sh.chiang04@gmail.com>
18743 * config/nds32/nds32.c
18744 (nds32_expand_builtin_null_ftype_reg): Move to ...
18745 (nds32_expand_builtin_reg_ftype_imm): Move to ...
18746 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
18747 (nds32_init_builtins): Move implementation to ...
18748 (nds32_expand_builtin): Move implementation to ...
18749 * config/nds32/nds32-intrinsic.c: ... here.
18750 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
18751 (nds32_expand_builtin_impl): Declare.
18753 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18754 Kito Cheng <kito@0xlab.org>
18755 Monk Chiang <sh.chiang04@gmail.com>
18757 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
18758 (nds32_emit_section_tail_template): Move to ...
18759 (nds32_emit_isr_jmptbl_section): Move to ...
18760 (nds32_emit_isr_vector_section): Move to ...
18761 (nds32_emit_isr_reset_conten): Move to ...
18762 (nds32_check_isr_attrs_conflict): Move to ...
18763 (nds32_construct_isr_vectors_information): Move to ...
18764 (nds32_asm_file_start): Move implementation to ...
18765 (nds32_asm_file_end): Move implementation to ...
18766 * config/nds32/nds32-isr.c: ... here.
18767 * config/nds32/nds32-protos.h
18768 (nds32_check_isr_attrs_conflict): Declare.
18769 (nds32_construct_isr_vectors_information): Declare.
18770 (nds32_asm_file_start_for_isr): Declare.
18771 (nds32_asm_file_end_for_isr): Declare.
18773 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18774 Kito Cheng <kito@0xlab.org>
18775 Monk Chiang <sh.chiang04@gmail.com>
18777 * config.gcc (nds32*): Add new modules to extra_objs.
18778 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
18779 (nds32be-*-*): Likewise.
18780 * config/nds32/nds32-cost.c: New file.
18781 * config/nds32/nds32-fp-as-gp.c: New file.
18782 * config/nds32/nds32-intrinsic.c: New file.
18783 * config/nds32/nds32-isr.c: New file.
18784 * config/nds32/nds32-md-auxiliary.c: New file.
18785 * config/nds32/nds32-memory-manipulation.c: New file.
18786 * config/nds32/nds32-pipelines-auxiliary.c: New file.
18787 * config/nds32/nds32-predicates.c: New file.
18788 * config/nds32/t-nds32: New file.
18790 2014-07-03 Jakub Jelinek <jakub@redhat.com>
18792 PR tree-optimization/61682
18793 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
18794 using cases and when one of the operands is equal to 1.
18796 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
18798 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
18799 ashr<mode>3): Correct mode of operands[2].
18800 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
18801 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
18802 Correct mode of operands[2]. Fix split condition.
18804 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
18806 * arm.md (arch): Add armv6_or_vfpv3.
18807 (arch_enabled): Add test for the above.
18808 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
18810 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
18812 2014-07-03 Jakub Jelinek <jakub@redhat.com>
18814 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
18815 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
18816 HWI 1 and negate the unsigned value.
18817 * expmed.c (expand_sdiv_pow2): For modes wider than word always
18818 use AND instead of shift.
18819 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
18821 2014-07-03 Marek Polacek <polacek@redhat.com>
18823 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
18824 (-fsanitize=float-divide-by-zero): Move to the table with
18825 -fsanitize=undefined suboptions.
18826 (-fsanitize=float-cast-overflow): Likewise.
18828 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
18830 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
18831 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
18834 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18836 * loop-invariant.c (struct invariant): Add a new member: eqno;
18837 (find_identical_invariants): Update eqno;
18838 (create_new_invariant): Init eqno;
18839 (get_inv_cost): Compute comp_cost with eqno;
18841 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
18843 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
18844 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
18845 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
18846 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
18847 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
18849 2014-07-02 Christian Bruel <christian.bruel@st.com>
18853 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
18854 (make_preds_opaque): Delete.
18855 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
18856 (commit_mode_sets): New function.
18857 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
18858 Process all modes at once.
18859 * basic-block.h (pre_edge_lcm_avs): Declare.
18860 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
18861 Call clear_aux_for_edges. Fix comments.
18862 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
18863 (pre_edge_rev_lcm): Idem.
18864 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
18866 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
18867 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
18869 * config/i386/i386.c (x96_emit_mode_set): Idem.
18870 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
18871 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
18872 (fpscr_toggle) Disallow from delay slot.
18873 * target.def (emit_mode_set): Add prev_mode parameter.
18874 * doc/tm.texi: Regenerate.
18876 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18878 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
18881 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
18883 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
18884 vtable_pointer_value_to_vtable): Constify.
18885 (contains_polymorphic_type_p): Declare.
18886 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
18887 vtable_pointer_value_to_vtable): Constify.
18888 (contains_polymorphic_type_p): New predicate.
18889 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
18891 (ipa_set_ancestor_jf): Likewise.
18892 (detect_type_change): Return false in easy cases.
18893 (compute_complex_assign_jump_func): Require type to contain
18895 (compute_known_type_jump_func): Likewise.
18897 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
18899 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
18901 (type_in_anonymous_namespace_p): Constify argument.
18902 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
18903 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
18904 (main_odr_variant): New function.
18905 (hash_type_name): Make static; update assert; do not ICE on
18907 (types_same_for_odr): Bring here from tree.c; simplify and remove
18908 old structural comparing code that doesn't work for templates.
18909 (odr_hasher::equal): Update assert.
18910 (add_type_duplicate): Return true when bases should be computed;
18911 replace incomplete loader by complete; do not output duplicated
18912 warnings; do not ICE on non-records; set odr_violated flag.
18913 (get_odr_type): Be ready to replace incomplete type by complete
18914 one; work on ODR variants instead of main variants; reorder item
18915 in array so bases have still smaller indexes.
18916 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
18917 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
18919 2014-07-01 Cary Coutant <ccoutant@google.com>
18921 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
18923 (resolve_addr_in_expr): When replacing the rtx in a location list
18924 entry, get a new address table entry.
18925 (dwarf2out_finish): Call index_location_lists even if there are no
18926 addr_index_table entries yet.
18928 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
18930 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
18931 change for not being obvious.
18933 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
18935 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
18938 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18940 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
18941 (vcagt_f64): Likewise.
18942 (vcale_f64): Likewise.
18943 (vcaled_f64): Likewise.
18944 (vcales_f32): Likewise.
18945 (vcalt_f64): Likewise.
18946 (vcaltd_f64): Likewise.
18947 (vcalts_f32): Likewise.
18949 2014-07-01 Marek Polacek <polacek@redhat.com>
18951 * doc/invoke.texi: Document -Wint-conversion.
18953 2014-07-01 Marek Polacek <polacek@redhat.com>
18956 * doc/invoke.texi: Document -Wincompatible-pointer-types.
18958 2014-07-01 Martin Liska <mliska@suse.cz>
18960 IPA REF alias refactoring
18961 * cgraph.h (iterate_direct_aliases): New function.
18962 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
18963 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
18964 FOR_EACH_ALIAS added.
18965 (cgraph_for_node_and_aliases): Likewise.
18966 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
18967 * ipa-inline.c (reset_edge_caches): Likewise.
18968 (update_caller_keys): Likewise.
18969 * trans-mem.c (ipa_tm_execute): Likewise.
18970 *varpool.c (varpool_analyze_node): Likewise.
18971 (varpool_for_node_and_aliases): Likewise.
18972 * ipa-ref.h (first_alias): New function.
18973 (last_alias): Likewise.
18974 (has_aliases_p): Likewise.
18975 * ipa-ref.c (ipa_ref::remove_reference): Removal function
18976 is sensitive to IPA_REF_ALIASes.
18977 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
18978 are put at the beginning of the list.
18979 (symtab_node::iterate_direct_aliases): New function.
18981 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18984 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
18986 (write_ts_type_common_tree_pointers): Do not stream fields not set
18987 for incomplete types; do not stream duplicated fields for variants;
18988 sanity check that variant and type match.
18989 (write_ts_type_non_common_tree_pointers): Likewise.
18990 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
18991 TYPE_SIZE whether type is complete.
18992 (lto_input_ts_type_common_tree_pointers): Do same changes as in
18993 write_ts_type_common_tree_pointers
18994 (lto_input_ts_type_non_common_tree_pointers): Likewise.
18996 2014-06-30 Joseph Myers <joseph@codesourcery.com>
18998 * var-tracking.c (add_stores): Return instead of asserting if old
18999 and new values for conditional store are the same.
19001 2014-06-30 Richard Henderson <rth@redhat.com>
19005 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19006 the cfg if there were any changes.
19007 * passes.def: Revert move of peephole2 after reorder_blocks;
19008 move duplicate_computed_gotos before peephole2.
19010 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
19012 * except.c (emit_note_eh_region_end): New helper function.
19013 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19014 emit EH_REGION_END note.
19015 * jump.c (cleanup_barriers): Do not split a call and its
19016 corresponding CALL_ARG_LOCATION note.
19018 2014-06-30 Jeff Law <law@redhat.com>
19020 PR tree-optimization/61607
19021 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19022 deeper into the SSA_NAME_VALUE chain.
19024 2014-06-30 Marek Polacek <polacek@redhat.com>
19026 * convert.c (convert_to_integer): Don't instrument conversions if the
19027 function has no_sanitize_undefined attribute.
19028 * ubsan.c: Don't run the ubsan pass if the function has
19029 no_sanitize_undefined attribute.
19031 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19033 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19034 -fsanitize=undefined suboptions.
19036 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
19038 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19039 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19040 against bigendian and adjust indices.
19042 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19044 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
19046 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
19049 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19050 Add alternative; make early clobber. Adjust both split patterns
19051 to use operand 0 as the working register.
19053 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19055 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19056 as ira_object_id_map might be NULL, or 1.
19058 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19060 * loop-invariant.c (get_inv_cost): Handle register class.
19061 (gain_for_invariant): Check the register pressure of the inv
19062 and its overlapped register class, other than all.
19064 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19066 * doc/invoke.texi (Optimize Options): Fix descriptions of
19067 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19069 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
19071 * doc/extend.texi (Function Attributes): Update 'naked' attribute
19074 2014-06-29 Tobias Grosser <tobias@grosser.es>
19077 * graphite-isl-ast-to-gimple.c: Add missing guards.
19079 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19081 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19082 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19083 * flag-types.h: Add new enum fgraphite_generator.
19084 * graphite-isl-ast-to-gimple.c: New.
19085 * graphite-isl-ast-to-gimple.h: New.
19086 * graphite.c (graphite_transform_loops): Add choice of Graphite
19087 code generator, which depends on flag_graphite_code_gen.
19089 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19091 * graphite-dependences.c (subtract_commutative_associative_deps):
19092 Add NULL checking of the following variables: must_raw_no_source,
19093 may_raw_no_source, must_war_no_source, may_war_no_source,
19094 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19095 must_war, may_war, must_waw, may_waw.
19097 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19099 * graphite-clast-to-gimple.c: gloog is renamed to
19100 graphite_regenerate_ast_cloog. gloog_error is renamed to
19101 graphite_regenerate_error.
19102 * graphite-clast-to-gimple.h: The definition of the struct
19103 bb_pbb_def is moved to graphite-htab.h.
19104 Add inclusion of the hash-table.h.
19105 * graphite-htab.h: The declaration of the function gloog is moved
19106 to graphite-clast-to-gimple.h and renamed to
19107 graphite_regenerate_ast_cloog.
19108 * graphite.c (graphite_transform_loops): gloog is renamed
19109 to graphite_regenerate_ast_cloog.
19111 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19113 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19115 (write_ts_type_common_tree_pointers): Do not stream fields not set
19116 for incomplete types; do not stream duplicated fields for variants;
19117 sanity check that variant and type match.
19118 (write_ts_type_non_common_tree_pointers): Likewise.
19119 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19120 TYPE_SIZE whether type is complete.
19121 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19122 write_ts_type_common_tree_pointers
19123 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19125 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19127 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
19129 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19131 * tree-inline.c (remap_type_1): Do not duplicate fields
19132 that are shared in between type and its main variant.
19134 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19136 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19138 (ipa_set_ancestor_jf) Likewise.
19139 (check_stmt_for_type_change): Check that we work on main variant.
19140 (detect_type_change): Look into main variant.
19141 (compute_known_type_jump_func): Check that main variant has BINFO.
19143 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19145 * ipa-devirt.c (set_type_binfo): New function.
19146 (add_type_duplicate): Use it.
19147 (get_odr_type): Sanity check that binfos points to main variants.
19148 (get_class_context): Be sure the context's outer_type is main variant.
19149 (contains_type_p): Walk main variant.
19150 (get_polymorphic_call_info_for_decl): Set outer_type to be
19152 (get_polymorphic_call_info): Likewise.
19153 (possible_polymorphic_call_targets): Sanity check that we operate
19156 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19158 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19160 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19162 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19163 accidental change due to wide-int branch merge.
19165 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19167 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19168 compressed debug support.
19169 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19170 * configure: Regenerate.
19171 * config.in: Regenerate.
19172 * common.opt (compressed_debug_sections): New enum.
19173 (gz, gz=): New options.
19174 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19175 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19176 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19177 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19178 LINK_COMPRESS_DEBUG_SPEC.
19179 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19180 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19181 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19182 (Debugging Options): Document -gz[=type].
19184 2014-06-27 Martin Jambor <mjambor@suse.cz>
19187 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19188 args_to_skip, use those from node instead. Copy args_to_skip and
19189 combined_args_to_skip from node to the new thunk.
19190 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19191 (cgraph_create_virtual_clone): Moved computation of
19192 combined_args_to_skip...
19193 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19195 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
19197 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19198 redundant diagnostic machinary.
19200 2014-06-27 Richard Biener <rguenther@suse.de>
19202 * tree-ssa-math-opts.c (bswap_replace): Fix
19203 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19205 2014-06-27 Martin Liska <mliska@suse.cz>
19207 * gimple.h (gimple_location_safe): New function introduced.
19208 * cgraphunit.c (walk_polymorphic_call_targets): Usage
19209 of gimple_location_safe replaces gimple_location.
19210 (gimple_fold_call): Likewise.
19211 * ipa-devirt.c (ipa_devirt): Likewise.
19212 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19213 * ipa.c (walk_polymorphic_call_targets): Likewise.
19214 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19216 2014-06-27 Jakub Jelinek <jakub@redhat.com>
19218 PR tree-optimization/57233
19219 PR tree-optimization/61299
19220 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19222 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
19223 would be lowered to scalar shifts, check if corresponding
19224 shifts and vector BIT_IOR_EXPR are supported and don't lower
19225 or lower just to narrower vector type in that case.
19226 * expmed.c (expand_shift_1): Fix up handling of vector
19227 shifts and rotates.
19229 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
19232 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
19234 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
19236 * doc/invoke.texi (-fsemantic-interposition): Document.
19237 * common.opt (fsemantic-interposition): New flag.
19238 * varasm.c (decl_replaceable_p): Use it.
19240 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19243 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
19244 extraction other than index 3.
19246 2014-06-26 Teresa Johnson <tejohnson@google.com>
19248 * doc/invoke.texi: Fix typo.
19249 * dumpfile.c: Add support for documented -fdump-* options
19250 optimized/missed/note/optall.
19252 2014-06-26 Martin Jambor <mjambor@suse.cz>
19254 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
19255 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
19256 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
19257 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
19258 * opts.c (default_options_optimization): Set
19259 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
19260 * doc/invoke.texi (allow-load-data-races)
19261 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
19262 (allow-store-data-races): Document the new default.
19264 2014-06-26 Martin Jambor <mjambor@suse.cz>
19266 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
19267 renamed to ipa_impossible_devirt_target. Fix typo.
19268 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
19269 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
19270 ipa_impossible_devirt_target.
19272 2014-06-26 Richard Biener <rguenther@suse.de>
19274 PR tree-optimization/61607
19275 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
19276 explaining why we restrict copies on loop depth.
19277 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19279 (record_equivalences_from_phis): Instead add it here.
19281 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
19283 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
19284 (LTO_WRAPPER_OBJS): New variable.
19285 (lto-wrapper$(exeext)): Use it.
19286 * collect2.c: Include "collect-utils.h".
19287 (verbose, debug): Remove variables.
19288 (at_file_supplied): No longer static.
19289 (tool_name): New variable.
19290 (do_wait, fork_execute, maybe_unlink): Don't declare.
19291 (tool_cleanup): No longer static.
19292 (notice): Remove function.
19293 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
19294 fork_execute calls.
19295 (collect_wait, do_wait, collect_execute): Remove functions.
19296 (maybe_unlink): No longer static.
19297 * collect2.h (verbose, debug): Don't declare.
19298 (at_file_supplied): Declare.
19299 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
19301 (collect_execute): Replace with implementation from collect2, plus a
19302 new arg use_atfile. All callers changed.
19303 (collect_wait): Replace with implementation from collect2.
19304 (maybe_unlink_file): Remove function.
19305 (fork_execute): Replace with implementation from collect2, plus a
19306 new arg use_atfile. All callers changed.
19307 (do_wait): Add call to utils_cleanup to the error path.
19308 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
19309 (tool_cleanup): Adjust declarations.
19310 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
19311 * tlink.c: Include "collect-utils.h".
19312 (tlink_execute): New arg use_atfile. All callers changed.
19313 (tlink_init, tlink_execute): Remove declarations.
19315 * collect-utils.c (save_temps): New variable.
19316 (do_wait): Use it instead of debug. Use fatal_error.
19317 * collect-utils.h (save_temps): Declare.
19318 * collect2.c (verbose): Rename from vflag. All uses changed.
19319 (tool_cleanup): New function, copied from collect_atexit.
19320 (collect_atexit, handler): Just call it.
19321 * collect2.h (verbose): Declaration renamed from vflag.
19322 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
19325 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
19326 (lto-wrapper$(exeext)): Link with collect-utils.o.
19327 * collect-utils.c: New file.
19328 * collect-utils.h: New file.
19329 * lto-wrapper.c: Include "collect-utils.h".
19330 (args_name): Delete variable.
19331 (tool_name): New variable.
19332 (tool_cleanup): New function.
19333 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
19334 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
19335 (fork_execute): Remove functions.
19337 2014-06-26 Nick Clifton <nickc@redhat.com>
19339 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
19341 * doc/extend.texi (Function Attributes): Fix typo in description
19342 of RX vector attribute.
19344 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19346 * config.gcc (supported_defaults): Error when passing either
19347 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
19349 2014-06-26 Richard Biener <rguenther@suse.de>
19351 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19352 propagating volatile pointers.
19354 2014-06-26 Richard Biener <rguenther@suse.de>
19356 PR tree-optimization/61607
19357 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
19358 loop if we redirected its latch edge.
19359 (thread_block_1): Do not cancel loops prematurely.
19361 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
19363 * toplev.c (backend_init_target): Move init_emit_regs and
19365 (backend_init) ... here; skip ira_init_once and backend_init_target.
19366 (target_reinit) ... and here; clear
19367 this_target_rtl->lang_dependent_initialized.
19368 (lang_dependent_init_target): Clear
19369 this_target_rtl->lang_dependent_initialized;
19370 break out rtl initialization to ...
19371 (initialize_rtl): ... here; call also backend_init_target
19373 * toplev.h (initialize_rtl): New function.
19374 * function.c: Include toplev.h
19375 (init_function_start): Call initialize_rtl.
19376 * rtl.h (target_rtl): Add target_specific_initialized,
19377 lang_dependent_initialized.
19379 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
19380 Jakub Jelinek <jakub@redhat.com>
19382 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
19384 2014-06-25 Tom de Vries <tom@codesourcery.com>
19386 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
19388 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19390 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
19391 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
19392 Issue a strict overflow warning if appropriate.
19394 2014-06-25 Martin Liska <mliska@suse.cz>
19396 IPA REF refactoring
19397 * Makefile.in: Removed header file (ipa-ref-inline.h).
19398 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
19400 (cgraph_speculative_call_info): Likewise.
19401 (cgraph_for_node_thunks_and_aliases): Likewise.
19402 (cgraph_for_node_and_aliases): Likewise.
19403 (verify_cgraph_node): Likewise.
19404 * cgraph.h: Batch of IPA REF functions become member functions of
19405 symtab_node: add_reference, maybe_add_reference, clone_references,
19406 clone_referring, clone_reference, find_reference,
19407 remove_stmt_references, remove_all_references,
19408 remove_all_referring, dump_references, dump_referring,
19409 has_alias_p, iterate_reference, iterate_referring.
19410 * cgraphbuild.c (record_reference): New IPA REF function used.
19411 (record_type_list): Likewise.
19412 (record_eh_tables): Likewise.
19413 (mark_address): Likewise.
19414 (mark_load): Likewise.
19415 (mark_store): Likewise.
19416 (pass_build_cgraph_edges): Likewise.
19417 (rebuild_cgraph_edge): Likewise.
19418 (cgraph_rebuild_references): Likewise.
19419 (pass_remove_cgraph_callee_edges): Likewise.
19420 * cgraphclones.c (cgraph_clone_node): Likewise.
19421 (cgraph_create_virtual_clone): Likewise.
19422 (cgraph_materialize_clone): Likewise.
19423 (cgraph_materialize_all_clones): Likewise.
19424 * cgraphunit.c (cgraph_reset_node): Likewise.
19425 (cgraph_reset_node): Likewise.
19426 (analyze_function): Likewise.
19427 (assemble_thunks_and_aliases): Likewise.
19428 (expand_function): Likewise.
19429 * ipa-comdats.c (propagate_comdat_group): Likewise.
19430 (enqueue_references): Likewise.
19431 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
19432 (create_specialized_node): Likewise.
19433 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
19434 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
19435 * ipa-inline.c (reset_edge_caches): Likewise.
19436 (update_caller_keys): Likewise.
19437 (execute): Likewise.
19438 * ipa-prop.c (remove_described_reference): Likewise.
19439 (propagate_controlled_uses): Likewise.
19440 (ipa_edge_duplication_hook): Likewise.
19441 (ipa_modify_call_arguments): Likewise.
19442 * ipa-pure-const.c (propagate_pure_const): Likewise.
19443 * ipa-ref-inline.h: Header file removed, functions moved
19444 to symtab_node class.
19445 * ipa-ref.c (remove_reference): New class member function.
19446 (cannot_lead_to_return): New class member function.
19447 (referring_ref_list): Likewise.
19448 (referred_ref_list): Likewise.
19449 Rest of functions moved to symtab_node class.
19450 * ipa-ref.h: New member functions remove_reference,
19451 cannot_lead_to_return, referring_ref_list, referred_ref_list added
19453 ipa_ref_list class has new member functions: first_reference,
19454 first_referring, clear, nreferences.
19455 * ipa-reference.c (analyze_function): New IPA REF function used.
19456 (write_node_summary_p): Likewise.
19457 (ipa_reference_write_optimization_summary): Likewise.
19458 * ipa-split.c (split_function): Likewise.
19459 * ipa-utils.c (ipa_reverse_postorder): Likewise.
19460 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
19461 (function_and_variable_visibility): Likewise.
19462 * ipa.c (has_addr_references_p): Likewise.
19463 (process_references): Argument type changed.
19464 (symtab_remove_unreachable_nodes): New IPA REF function used.
19465 (process_references): Likewise.
19466 (set_writeonly_bit): Likewise.
19467 * lto-cgraph.c: Implementation of new symtab_node member functions
19468 that uses new IPA REF functions.
19469 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
19471 * lto-streamer-out.c (output_symbol_p): Likewise.
19472 * lto-streamer.h (referenced_from_this_partition_p): Argument type
19474 * symtab.c: Implementation of new IPA REF API.
19475 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
19476 (ipa_tm_create_version): Likewise.
19477 (ipa_tm_execute): Likewise.
19478 * tree-emutls.c (gen_emutls_addr): Likewise.
19479 * tree-inline.c (copy_bb): Likewise.
19480 (delete_unreachable_blocks_update_callgraph): Likewise.
19481 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19482 (varpool_for_node_and_aliases): Likewise.
19484 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19486 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19488 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19491 * fold-const.c (fold_checksum_tree): Use a hash_table of const
19492 tree_node * instead of tree_node *.
19494 (print_fold_checksum): Likewise.
19495 (fold_check_failed): Likewise.
19496 (debug_fold_checksum): Likewise.
19497 (fold_build1_stat_loc): Likewise.
19498 (fold_build2_stat_loc): Likewise.
19499 (fold_build3_stat_loc): Likewise.
19500 (fold_build_call_array_loc): Likewise.
19502 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
19504 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19505 implementation with call to...
19506 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19508 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19511 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
19513 PR tree-optimization/57742
19514 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19515 after replacing the statement.
19517 2014-06-25 Nick Clifton <nickc@redhat.com>
19519 * config/v850/v850.c (GHS_default_section_names): Change to const
19521 (GHS_current_section_names): Likewise.
19522 (v850_insert_attributes): Do not build strings, just assign the
19523 names directly. Change the type of 'chosen_section' to const
19525 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19526 directly to the array entry.
19527 * config/v850/v850.h (GHS_default_section_names): Change to const
19529 (GHS_current_section_names): Likewise.
19531 2014-06-25 Jakub Jelinek <jakub@redhat.com>
19533 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19534 (LANG_HOOKS_DECLS): Add it.
19535 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19537 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19538 * langhooks.h (struct lang_hooks_for_decls): Add
19539 omp_clause_linear_ctor hook.
19540 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19541 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
19542 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
19543 combined simd loop use omp_clause_linear_ctor hook.
19545 2014-06-24 Cong Hou <congh@google.com>
19547 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19548 pattern recognition.
19549 (type_conversion_p): PROMOTION is true if it's a type promotion
19550 conversion, and false otherwise. Return true if the given expression
19551 is a type conversion one.
19552 * tree-vectorizer.h: Adjust the number of patterns.
19553 * tree.def: Add SAD_EXPR.
19554 * optabs.def: Add sad_optab.
19555 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19556 * expr.c (expand_expr_real_2): Likewise.
19557 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19558 * gimple.c (get_gimple_rhs_num_ops): Likewise.
19559 * optabs.c (optab_for_tree_code): Likewise.
19560 * tree-cfg.c (estimate_operator_cost): Likewise.
19561 * tree-ssa-operands.c (get_expr_operands): Likewise.
19562 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19563 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19564 * doc/generic.texi: Add document for SAD_EXPR.
19565 * doc/md.texi: Add document for ssad and usad.
19567 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19569 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19570 qualification in cast.
19572 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
19574 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19575 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19576 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19577 (tree_function_decl): ... here.
19578 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
19579 streaming of vindex to ...
19580 (write_ts_function_decl_tree_pointers): ... here.
19581 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19582 Do not stream DECL_VINDEX.
19583 (lto_input_ts_function_decl_tree_pointers): Stream it here.
19585 2014-06-24 Catherine Moore <clm@codesourcery.com>
19586 Sandra Loosemore <sandra@codesourcery.com>
19588 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
19589 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
19590 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
19592 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19594 * doc/invoke.texi (Warning Options): Remove duplicated
19595 -Wmaybe-uninitialized.
19597 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19599 PR tree-optimization/57742
19600 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19601 (handle_builtin_malloc, handle_builtin_memset): New functions.
19602 (strlen_optimize_stmt): Call them.
19603 * passes.def: Move strlen after loop+dom but before vrp.
19605 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19608 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19609 model family 6 CPU with has_longmode never use a CPU without
19612 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
19615 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19618 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19620 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19621 * dominance.c (iterate_fix_dominators): Use hash_map instead of
19623 * hash-map.h: New file.
19624 * ipa-comdats.c: Use hash_map instead of pointer_map.
19626 * lto-section-out.c: Adjust.
19627 * lto-streamer.h: Replace pointer_map with hash_map.
19628 * symtab.c (verify_symtab): Likewise.
19629 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
19630 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
19631 * tree-streamer.h: Likewise.
19632 * tree-streamer.c: Adjust.
19633 * pointer-set.h: Remove pointer_map.
19635 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19637 * hash-table.h: Add a template arg to choose between storing values
19638 and storing pointers to values, and then provide partial
19639 specializations for both.
19640 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
19641 should store, not the type values should point to.
19642 * tree-into-ssa.c (var_info_hasher): Likewise.
19643 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19644 * tree-complex.c: Adjust.
19645 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
19646 table instead of int_tree_map *.
19647 * tree-parloops.c: Adjust.
19648 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
19649 type is being stored.
19650 * tree-vectorizer.c: Adjust.
19652 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19654 * hash-table.h: Remove a layer of indirection from hash_table so that
19655 it contains the hash table's data instead of a pointer to the data.
19656 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
19657 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
19658 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
19659 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
19660 fold-const.c, gcse.c, ggc-common.c,
19661 gimple-ssa-strength-reduction.c, gimplify.c,
19662 graphite-clast-to-gimple.c, graphite-dependences.c,
19663 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
19664 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19665 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
19666 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
19667 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
19668 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
19669 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
19670 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
19671 tree-ssa-live.c, tree-ssa-loop-im.c,
19672 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
19673 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
19674 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19675 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
19676 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
19677 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
19678 vtable-verify.c, vtable-verify.h: Adjust.
19680 2014-06-24 Richard Biener <rguenther@suse.de>
19682 PR tree-optimization/61572
19683 * tree-ssa-sink.c (statement_sink_location): Do not sink
19684 loads from hard registers.
19686 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19688 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
19689 not mentioned in clauses use private clause if the iterator is
19690 declared in #pragma omp for simd, and when adding lastprivate
19691 instead, add it to the outer #pragma omp for too. Diagnose
19692 if the variable is private in outer context. For simd collapse > 1
19693 loops, replace all iterators with temporaries.
19694 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
19695 same even in collapse > 1 loops.
19697 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
19698 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
19700 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
19701 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
19703 (gimplify_adjust_omp_clauses): Likewise.
19704 * omp-low.c (lower_rec_simd_input_clauses,
19705 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
19706 safelen the same as safelen(1).
19707 * tree-nested.c (convert_nonlocal_omp_clauses,
19708 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
19709 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
19710 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
19711 Fixup handling of GIMPLE_OMP_TARGET.
19712 (convert_tramp_reference_stmt, convert_gimple_call): Handle
19715 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
19717 PR tree-optimization/61554
19718 * tree-ssa-propagate.c: Include "bitmap.h".
19719 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
19720 properly update constructor/destructor.
19721 (substitute_and_fold_dom_walker::before_dom_children):
19722 Remove call to gimple_purge_dead_eh_edges, add bb->index to
19723 need_eh_cleaup instead.
19724 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
19727 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19729 * varpool.c (dump_varpool_node): Dump used_by_single_function.
19730 * tree-pass.h (make_pass_ipa_single_use): New pass.
19731 * cgraph.h (used_by_single_function): New flag.
19732 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
19734 * passes.def (pass_ipa_single_use): Scedule.
19735 * ipa.c (BOTTOM): New macro.
19736 (meet): New function
19737 (propagate_single_user): New function.
19738 (ipa_single_use): New function.
19739 (pass_data_ipa_single_use): New pass.
19740 (pass_ipa_single_use): New pass.
19741 (pass_ipa_single_use::gate): New gate.
19742 (make_pass_ipa_single_use): New function.
19744 2014-06-23 Kai Tietz <ktietz@redhat.com>
19747 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
19748 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
19750 2014-06-23 Richard Biener <rguenther@suse.de>
19752 * tree-ssa-loop.c (gate_loop): New function.
19753 (pass_tree_loop::gate): Call it.
19754 (pass_data_tree_no_loop, pass_tree_no_loop,
19755 make_pass_tree_no_loop): New.
19756 * tree-vectorizer.c: Include tree-scalar-evolution.c
19757 (pass_slp_vectorize::execute): Initialize loops and SCEV if
19759 (pass_slp_vectorize::clone): New method.
19760 * timevar.def (TV_TREE_NOLOOP): New.
19761 * tree-pass.h (make_pass_tree_no_loop): Declare.
19762 * passes.def (pass_tree_no_loop): New pass group with
19765 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
19768 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
19769 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
19771 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
19773 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
19774 "yes" where needed.
19776 2014-06-23 Alan Modra <amodra@gmail.com>
19779 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
19780 to zero on debug statements.
19782 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
19785 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
19786 Ignore third operand if present by marking qualifier_internal.
19788 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
19790 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
19792 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
19793 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
19794 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
19795 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
19796 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
19797 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
19798 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
19799 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
19800 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
19801 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
19802 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
19803 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
19804 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
19805 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
19806 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
19807 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
19808 logic in GCC vector extensions
19810 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
19811 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
19812 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
19813 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
19814 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
19815 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
19816 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
19817 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
19818 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
19819 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
19821 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
19823 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
19826 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
19827 (vget_low_s64): Use __GET_LOW macro.
19828 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
19829 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
19830 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
19831 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
19832 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
19834 (vcombine_s64): Use GCC vector extensions; remove cast.
19835 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
19836 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
19837 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
19838 Fix type signature; remove cast.
19840 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
19843 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
19845 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
19847 (BUILTIN_VD1): New.
19848 (BUILTIN_VD_RE): Remove.
19849 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
19850 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
19851 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
19852 variant but not df.
19853 (vreinterpretv1df*, vreinterpret*v1df): New.
19854 (vreinterpretdf*, vreinterpret*df): Remove.
19855 * config/aarch64/aarch64-simd.md (aarch64_create,
19856 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
19857 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
19859 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
19860 (vcreate_f64): Remove cast, use v1df builtin.
19861 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
19862 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
19863 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
19864 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
19865 vmov_n_f64, vst1_f64): Use gcc vector extensions.
19866 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
19867 add range check using __builtin_aarch64_im_lane_boundsi.
19868 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
19869 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
19870 type signature, use gcc vector extensions.
19871 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
19872 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
19873 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
19874 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
19875 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
19876 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
19877 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
19878 vreinterpret_u64_f64): Use v1df builtin not df.
19880 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
19882 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
19885 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19887 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
19890 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19892 * loop-invariant.c (pre_check_invariant_p): New function.
19893 (find_invariant_insn): Call pre_check_invariant_p.
19895 2014-06-22 Richard Henderson <rth@redhat.com>
19898 * compare-elim.c (struct comparison): Add eh_note.
19899 (find_comparison_dom_walker::before_dom_children): Don't eliminate
19900 a redundant comparison in a different EH region. Purge EH edges if
19903 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19905 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
19906 (var_shift): Use it.
19907 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
19908 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19909 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19910 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19911 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19912 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
19913 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
19914 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
19915 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
19916 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
19917 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
19918 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
19919 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
19920 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
19921 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
19922 *rotldi3_internal15be): Use the new attribute. Merge register and
19923 integer alternatives.
19925 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19927 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
19928 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
19929 split, *ashrdi3_internal3 and split): Delete, merge into...
19930 (ashr<mode>3): New expander.
19931 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
19932 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
19934 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19936 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
19937 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
19938 *rotldi3_internal3 and split): Delete, merge into...
19939 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
19940 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
19941 Use "rotlw" extended mnemonic.
19943 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19945 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
19946 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
19947 and split, *ashldi3_internal3 and split): Delete, merge into...
19948 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
19949 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
19951 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19953 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
19954 (lshrsi3, two anonymous define_insns and define_splits,
19955 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
19956 *lshrdi3_internal3 and split): Delete, merge into...
19957 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
19958 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
19960 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19962 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
19963 Remove "O" alternative.
19965 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
19967 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
19968 (mips_move_from_gpr_cost): Likewise.
19969 (mips_register_move_cost): Update accordingly.
19970 (mips_secondary_reload_class): Remove name of in_p.
19972 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
19975 * config/i386/i386.md (x86_64_shrd, x86_shrd,
19976 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
19978 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19980 * config/nios2/nios2.c: Include "builtins.h".
19982 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
19984 * cgraph.h (tls_model_names): New variable.
19985 * print-tree.c (print_node): Simplify.
19986 * varpool.c (tls_model_names): New variable.
19987 (dump_varpool_node): Output tls model.
19989 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
19991 * ipa-visibility.c (function_and_variable_visibility): Disable
19992 temporarily local aliases for some targets.
19994 2014-06-20 Marek Polacek <polacek@redhat.com>
19996 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
19997 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
19998 into SANITIZE_UNDEFINED.
19999 * doc/invoke.texi: Describe -fsanitize=bounds.
20000 * gimplify.c (gimplify_call_expr): Add gimplification of internal
20001 functions created in the FEs.
20002 * internal-fn.c: Move "internal-fn.h" after "tree.h".
20003 (expand_UBSAN_BOUNDS): New function.
20004 * internal-fn.def (UBSAN_BOUNDS): New internal function.
20005 * internal-fn.h: Don't define internal functions here.
20006 * opts.c (common_handle_option): Add -fsanitize=bounds.
20007 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20008 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20009 * tree-core.h: Define internal functions here.
20010 (struct tree_base): Add ifn field.
20011 * tree-pretty-print.c: Include "internal-fn.h".
20012 (dump_generic_node): Handle functions without CALL_EXPR_FN.
20013 * tree.c (get_callee_fndecl): Likewise.
20014 (build_call_expr_internal_loc): New function.
20015 * tree.def (CALL_EXPR): Update description.
20016 * tree.h (CALL_EXPR_IFN): Define.
20017 (build_call_expr_internal_loc): Declare.
20018 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20020 (ubsan_type_descriptor): Change bool parameter to enum
20021 ubsan_print_style. Adjust the code. Add handling of
20023 (ubsan_expand_bounds_ifn): New function.
20024 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20025 (ubsan_build_overflow_builtin): Likewise.
20026 (instrument_bool_enum_load): Likewise.
20027 (ubsan_instrument_float_cast): Likewise.
20028 * ubsan.h (enum ubsan_print_style): New enum.
20029 (ubsan_expand_bounds_ifn): Declare.
20030 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
20032 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
20034 * config/rs6000/rs6000.md: Append `DONE' to preparation
20035 statements of `bswap' pattern splitters.
20037 2014-06-20 Tom de Vries <tom@codesourcery.com>
20039 * target.def (call_fusage_contains_non_callee_clobbers): Update
20041 * doc/tm.texi: Regenerate.
20043 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20044 Max Ostapenko <m.ostapenko@partner.samsung.com>
20047 * asan.c (instrument_strlen_call): Fixed instrumentation of
20050 2014-06-20 Martin Jambor <mjambor@suse.cz>
20053 * ipa-prop.c (impossible_devirt_target): New function.
20054 (try_make_edge_direct_virtual_call): Use it, also instead of
20057 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20058 Max Ostapenko <m.ostapenko@partner.samsung.com>
20061 * asan.c (build_check_stmt): Add condition.
20063 2014-06-20 Martin Jambor <mjambor@suse.cz>
20066 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20069 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20071 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20073 (VCONQ): Make comment more helpful.
20075 * config/aarch64/aarch64-simd.md
20076 (aarch64_sqdmulh_lane<mode>):
20077 Use VCOND for operands 2. Update lane checking and flipping logic.
20078 (aarch64_sqrdmulh_lane<mode>): Likewise.
20079 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20080 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20081 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20082 attribute of operand 3 to VCOND.
20083 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20084 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20085 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20086 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20087 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20088 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20090 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20091 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20092 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20093 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20094 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20095 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20096 operand to VCOND. Update lane flipping and bounds checking logic.
20097 (aarch64_sqdmlal2_lane<mode>): Likewise.
20098 (aarch64_sqdmlsl_lane<mode>): Likewise.
20099 (aarch64_sqdmull_lane<mode>): Likewise.
20100 (aarch64_sqdmull2_lane<mode>): Likewise.
20101 (aarch64_sqdmlal_laneq<mode>):
20102 Replace VCON usage with VCONQ.
20103 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
20104 (aarch64_sqdmlal2_laneq<mode>): Emit
20105 aarch64_sqdmlal2_laneq<mode>_internal insn.
20106 Replace VCON with VCONQ.
20107 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
20108 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20109 (aarch64_sqdmull_laneq<mode>): Emit
20110 aarch64_sqdmull_laneq<mode>_internal insn.
20111 Replace VCON with VCONQ.
20112 (aarch64_sqdmull2_laneq<mode>): Emit
20113 aarch64_sqdmull2_laneq<mode>_internal insn.
20114 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
20115 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
20116 of 3rd argument to int16x4_t.
20117 (vqdmlalh_lane_s16): Likewise.
20118 (vqdmlslh_lane_s16): Likewise.
20119 (vqdmull_high_lane_s16): Likewise.
20120 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
20121 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
20122 (vqdmlsl_lane_s16): Likewise.
20123 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
20124 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
20125 (vqdmlals_lane_s32): Likewise.
20126 (vqdmlsls_lane_s32): Likewise.
20127 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
20128 (vqdmulls_lane_s32): Likewise.
20129 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
20130 (vqdmlsl_lane_s32): Likewise.
20131 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
20132 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
20133 (vqrdmulhh_lane_s16): Likewise.
20134 (vqdmlsl_high_lane_s16): Likewise.
20135 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20136 (vqdmlsl_high_lane_s32): Likewise.
20137 (vqrdmulhs_lane_s32): Likewise.
20139 2014-06-20 Tom de Vries <tom@codesourcery.com>
20141 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20142 get_call_reg_set_usage.
20144 2014-06-20 Tom de Vries <tom@codesourcery.com>
20146 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20147 it contains all call_used_regs.
20149 2014-06-20 Tom de Vries <tom@codesourcery.com>
20151 * final.c (collect_fn_hard_reg_usage): Add and use variable
20152 function_used_regs.
20154 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20156 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20157 (set_init_priority, get_init_priority, set_fini_priority,
20158 get_fini_priority): New methods.
20159 * tree.c (init_priority_for_decl): Remove.
20160 (init_ttree): Do not initialize init priority.
20161 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20162 (decl_priority_info): Remove.
20163 (decl_init_priority_insert): Rewrite.
20164 (decl_fini_priority_insert): Rewrite.
20165 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20166 tree_priority_map_marked_p): Remove.
20167 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20168 * lto-streamer-out.c (hash_tree): Do not hash priorities.
20169 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20170 not output priorities.
20171 (pack_ts_function_decl_value_fields): Likewise.
20172 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20173 not input priorities.
20174 (unpack_ts_function_decl_value_fields): Likewise.
20175 * symtab.c (symbol_priority_map): Declare.
20176 (init_priority_hash): Declare.
20177 (symtab_unregister_node): Unregister from priority hash, too.
20178 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20180 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20181 (symbol_priority_info): New function.
20182 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20184 * tree-core.h (tree_priority_map): Remove.
20186 2014-06-20 Jakub Jelinek <jakub@redhat.com>
20188 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20189 0xff to uint64_t before shifting it up.
20191 2014-06-20 Julian Brown <julian@codesourcery.com>
20192 Chung-Lin Tang <cltang@codesourcery.com>
20194 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20195 TARGET_THUMB1_ONLY. Add comments.
20197 2014-06-19 Tom de Vries <tom@codesourcery.com>
20199 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20200 return type to void.
20201 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20203 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20205 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20206 as "move", from depends_on.
20208 2014-06-19 Terry Guo <terry.guo@arm.com>
20210 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20213 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20215 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20217 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
20219 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
20222 * config/sh/sh.c (prepare_move_operands): Don't process TLS
20223 addresses here if reload in progress or completed.
20225 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20227 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20228 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20229 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20230 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20231 (mips_register_priority): New function that implements the target
20232 hook TARGET_REGISTER_PRIORITY.
20233 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
20234 (mips_lra_p): Likewise for TARGET_LRA_P.
20235 (TARGET_REGISTER_PRIORITY): Define macro.
20236 (TARGET_SPILL_CLASS): Likewise.
20237 (TARGET_LRA_P): Likewise.
20238 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
20240 (REG_CLASS_NAMES): Likewise.
20241 (REG_CLASS_CONTENTS): Likewise.
20242 (BASE_REG_CLASS): Use M16_SP_REGS.
20243 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
20244 New set attribute to enable alternatives depending on the register
20246 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
20247 (*lea64): Disable pattern for MIPS16.
20248 * config/mips/mips.opt (mlra): New option.
20250 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20252 * lra-constraints.c (base_to_reg): New function.
20253 (process_address): Use new function.
20255 2014-06-18 Tom de Vries <tom@codesourcery.com>
20257 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
20258 * config/aarch64/aarch64.c
20259 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
20260 (aarch64_emit_call_insn): New function.
20261 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
20263 * config/aarch64/aarch64.md (define_expand "call_internal")
20264 (define_expand "call_value_internal", define_expand "sibcall_internal")
20265 (define_expand "sibcall_value_internal"): New.
20266 (define_expand "call", define_expand "call_value")
20267 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
20268 expand variant and aarch64_emit_call_insn.
20270 2014-06-18 Radovan Obradovic <robradovic@mips.com>
20271 Tom de Vries <tom@codesourcery.com>
20273 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
20274 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20276 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
20277 clobbers to CALL_INSN_FUNCTION_USAGE.
20278 (define_expand "sibcall_internal")
20279 (define_expand "sibcall_value_internal"): New.
20280 (define_expand "call", define_expand "call_value"): Add argument to
20281 arm_emit_call_insn.
20282 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
20283 (define_expand "sibcall_value"): Use sibcall_value_internal and
20284 arm_emit_call_insn.
20286 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20288 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
20290 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20292 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
20295 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20297 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
20298 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
20299 annotations. Fix DWARF information.
20301 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20303 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
20304 __udivmoddi4, and fixups for negative operands.
20306 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20308 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
20310 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20312 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
20315 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20317 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
20320 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20322 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
20323 describing register usage on function entry and exit.
20325 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20327 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
20328 (__aeabi_ldivmod): Fix whitespace.
20330 2014-06-18 Andreas Schwab <schwab@suse.de>
20332 * doc/md.texi (Standard Names): Use @itemx for grouped items.
20333 Remove blank line after @item.
20335 2014-06-18 Richard Henderson <rth@redhat.com>
20338 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
20340 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20342 * config/arm/arm.c (neon_vector_mem_operand): Allow register
20343 POST_MODIFY for neon loads and stores.
20344 (arm_print_operand): Output post-index register for neon loads and
20347 2014-06-18 Richard Biener <rguenther@suse.de>
20349 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
20351 2014-06-18 Richard Biener <rguenther@suse.de>
20353 * tree-pass.h (make_pass_dce_loop): Remove.
20354 * passes.def: Replace pass_dce_loop with pass_dce.
20355 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
20356 changed free niter estimates and reset the scev cache.
20357 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
20358 make_pass_dce_loop): Remove.
20359 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
20360 (fini_copy_prop): Return whether something changed. Always
20361 let substitute_and_fold perform DCE and free niter estimates
20362 and reset the scev cache if so.
20363 (execute_copy_prop): If sth changed schedule cleanup-cfg.
20364 (pass_data_copy_prop): Do not unconditionally schedule
20365 cleanup-cfg or update-ssa.
20367 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
20369 PR tree-optimization/61518
20370 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20371 reduction var is used in reduction stmt or phi-function only.
20373 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20375 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
20377 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
20379 PR tree-optimization/61517
20380 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
20381 whose rhs's first tree is the source expression instead of the
20383 (find_bswap_or_nop): Likewise.
20384 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
20385 gimple stmt whose rhs's first tree is the source. In the memory source
20386 case, move the stmt to be replaced close to one of the original load to
20387 avoid the problem of a store between the load and the stmt's original
20389 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
20392 2014-06-18 Andreas Schwab <schwab@suse.de>
20394 PR rtl-optimization/54555
20395 * postreload.c (move2add_use_add2_insn): Substitute
20396 STRICT_LOW_PART only if it is cheaper.
20398 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
20400 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
20401 Do not use unspec as call operand. Use memory_operand instead of
20402 memory_nox32_operand and add "m" operand constraint. Disable
20403 pattern for TARGET_X32.
20404 (*sibcall_pop_memory): Ditto.
20405 (*sibcall_value_memory): Ditto.
20406 (*sibcall_value_pop_memory): Ditto.
20407 (sibcall peepholes): Merge SImode and DImode patterns using
20408 W mode iterator. Use memory_operand instead of memory_nox32_operand.
20409 Disable pattern for TARGET_X32. Check if eliminated register is
20410 really dead after call insn. Generate call RTX without unspec operand.
20411 (sibcall_value peepholes): Ditto.
20412 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
20413 instead of memory_nox32_operand. Check if eliminated register is
20414 really dead after call insn. Generate call RTX without unspec operand.
20415 (sibcall_value_pop peepholes): Ditto.
20416 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
20418 2014-06-18 Terry Guo <terry.guo@arm.com>
20421 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
20424 2014-06-18 Olivier Hainque <hainque@adacore.com>
20426 * tree-core.h (tree_block): Add an "end_locus" field, allowing
20427 memorization of the end of block source location.
20428 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
20429 * gimplify.c (gimplify_bind_expr): Propagate the block start and
20430 end source location info we have on the block entry/exit code we
20433 2014-06-18 Richard Biener <rguenther@suse.de>
20435 * common.opt (fssa-phiopt): New option.
20436 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
20438 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
20439 * doc/invoke.texi (-fssa-phiopt): Document.
20441 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20443 * genattrtab.c (n_bypassed): New variable.
20444 (process_bypasses): Initialise n_bypassed.
20445 Count number of bypassed reservations.
20446 (make_automaton_attrs): Allocate space for bypassed reservations
20447 rather than number of bypasses.
20449 2014-06-18 Richard Biener <rguenther@suse.de>
20451 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
20452 we propagated anything.
20453 (substitute_and_fold_dom_walker::before_dom_children): Something
20454 changed if we propagated into PHI arguments.
20455 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
20458 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
20460 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
20462 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
20463 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
20464 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
20465 Introduces alternative way of loads group permutaions.
20466 (vect_transform_grouped_load): Try alternative way of permutations.
20468 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20470 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
20471 changed in ORT_TARGET region, don't jump to do_outer.
20472 (struct gimplify_adjust_omp_clauses_data): New type.
20473 (gimplify_adjust_omp_clauses_1): Adjust for data being
20474 a struct gimplify_adjust_omp_clauses_data pointer instead
20475 of tree *. Pass pre_p as a new argument to
20476 lang_hooks.decls.omp_finish_clause hook.
20477 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
20478 splay_tree_foreach to pass both list_p and pre_p.
20479 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
20480 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
20481 gimplify_adjust_omp_clauses callers.
20482 * langhooks.c (lhd_omp_finish_clause): New function.
20483 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20484 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20485 * langhooks.h (struct lang_hooks_for_decls): Add a new
20486 gimple_seq * argument to omp_finish_clause hook.
20487 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20488 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20489 (scan_omp_parallel, lower_omp_for): When adding
20490 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20491 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20492 * tree-nested.c (convert_nonlocal_omp_clauses,
20493 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20494 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20496 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
20498 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20499 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20501 2014-06-17 Xinliang David Li <davidxl@google.com>
20503 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20504 * passes.c (pass_init_dump_file): Do not set initialize
20505 flag to false unconditionally.
20507 2014-06-17 Richard Biener <rguenther@suse.de>
20509 * genopinit.c (main): Use vec<>::qsort method.
20510 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20512 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20514 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
20516 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20517 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20518 (mips_move_to_gpr_cost): Remove ST_REGS case.
20519 (mips_move_from_gpr_cost): Likewise.
20520 (mips_register_move_cost): Likewise.
20521 (mips_secondary_reload_class): Likewise.
20523 2014-06-17 Richard Biener <rguenther@suse.de>
20525 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20526 (pass_all_optimizations): Move 3rd copy-prop pass from after
20527 fre to before ifcombine/phiopt.
20529 2014-06-17 Richard Biener <rguenther@suse.de>
20531 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20532 and allow all blocks to be forwarders.
20534 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
20537 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20538 variable 'size'; calculate 'size' right in the front; use
20539 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20540 pcum->aapcs_stack_words.
20542 2014-06-17 Nick Clifton <nickc@redhat.com>
20544 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20545 (umulhi3, mulsidi3, umulsidi3): Likewise.
20547 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
20549 PR middle-end/61508
20550 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20551 check for section name.
20553 2014-06-17 Richard Biener <rguenther@suse.de>
20555 * tree-ssa-propagate.c: Include domwalk.h.
20556 (substitute_and_fold): Outline main worker into a domwalker ...
20557 (substitute_and_fold_dom_walker::before_dom_children): ... here.
20558 Schedule stmts we can fully propagate for removal. Remove
20560 (substitute_and_fold): Apply a dominator walk to perform
20561 substitution. Process stmts scheduled for removal here.
20563 2014-06-17 Richard Biener <rguenther@suse.de>
20565 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20566 of PHI node moving.
20568 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20570 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20571 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20572 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20573 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20574 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20576 (get_fpscr) : Likewise.
20578 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20580 PR rtl-optimization/61325
20581 * lra-constraints.c (valid_address_p): Add forward declaration.
20582 (simplify_operand_subreg): Check address validity before and after
20583 alter_reg of memory subreg.
20585 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
20587 * config/i386/i386.c (decide_alg): Correctly handle
20588 maximum size of stringop algorithm.
20590 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20592 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
20594 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20596 PR rtl-optimization/61522
20597 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20599 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
20602 * symtab.c (symtab_node::reset_section): New method.
20603 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20605 * cgraph.h (reset_section): Declare.
20606 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20607 do not consider comdat locals.
20608 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20610 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20611 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20612 reset sections of symbols dragged out of the comdats.
20613 (function_and_variable_visibility): Reset sections of
20616 2014-06-16 Richard Biener <rguenther@suse.de>
20618 PR tree-optimization/61482
20619 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20620 [-INF(OVF), +INF(OVF)] range.
20622 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20624 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20625 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
20626 handling 32-bit multiplication.
20628 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
20630 PR middle-end/61430
20631 * lra-lives.c (process_bb_lives): Skip creating copy during
20632 insn scan when src/dest has constrained to same regno.
20634 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20636 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
20637 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
20639 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20641 * asan.c (check_func): New function.
20642 (maybe_create_ssa_name): Likewise.
20643 (build_check_stmt_with_calls): Likewise.
20644 (use_calls_p): Likewise.
20645 (report_error_func): Change interface.
20646 (build_check_stmt): Allow non-integer lengths; add support
20648 (asan_instrument): Likewise.
20649 (instrument_mem_region_access): Moved code to build_check_stmt.
20650 (instrument_derefs): Likewise.
20651 (instrument_strlen_call): Likewise.
20652 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
20653 * doc/invoke.texi: Describe new parameter.
20654 * params.def: Define new parameter.
20655 * params.h: Likewise.
20656 * sanitizer.def: Describe new builtins.
20658 2014-06-16 Richard Biener <rguenther@suse.de>
20660 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20661 Make all defs available at the end.
20662 (eliminate): If we remove a PHI node schedule cfg-cleanup.
20664 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20667 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
20669 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
20672 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
20673 initialization. Replace remaining use of uid.
20675 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20677 * c-family/c-common.c (handle_tls_model_attribute): Use
20678 set_decl_tls_model.
20679 * c-family/c-common.c (handle_tls_model_attribute): Use
20680 set_decl_tls_model.
20681 * cgraph.h (struct varpool_node): Add tls_model.
20682 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
20683 * tree.h (DECL_TLS_MODEL): Update.
20684 (DECL_THREAD_LOCAL_P): Check that variable is static.
20685 (decl_tls_model): Declare.
20686 (set_decl_tls_model): Declare.
20687 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
20688 set symbol prorperties.
20689 (get_emutls_init_templ_addr): Cleanup.
20690 (new_emutls_decl): Update.
20691 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
20692 (lto_input_varpool_node): Likewise.
20693 * lto-streamer-out.c (hash_tree): Likewise.
20694 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20695 not stream DECL_TLS_MODEL.
20696 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
20697 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
20699 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20701 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
20703 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20705 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
20706 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
20708 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
20709 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
20710 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
20711 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
20712 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
20713 (df_get_artificial_defs, df_get_artificial_uses)
20714 (df_single_def, df_single_use): Update accordingly.
20715 (df_refs_chain_dump): Take the first element in a linked list as
20716 parameter, rather than a pointer to an array of pointers.
20717 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
20718 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
20719 (df_chain_create_bb_process_use): Likewise.
20720 (df_md_bb_local_compute_process_def): Likewise.
20721 * fwprop.c (process_defs, process_uses): Likewise.
20722 (register_active_defs, update_uses): Likewise.
20723 (forward_propagate_asm): Update for new df_ref linking.
20724 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
20725 (df_null_ref_rec, df_null_mw_rec): Likewise.
20726 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
20728 (df_scan_free_bb_info): Remove check for null artificial_defs.
20729 (df_install_ref_incremental): Adjust for new df_ref linking.
20730 Use a single-element insertion rather than a full sort.
20731 (df_ref_chain_delete_du_chain): Take the first element
20732 in a linked list as parameter, rather than a pointer to an array of
20734 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
20735 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
20736 (df_insn_info_delete): Remove check for null defs and call to
20737 df_scan_free_mws_vec.
20738 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
20739 null rather than df_null_*_rec.
20740 (df_insn_rescan_debug_internal): Likewise, and update null
20741 checks in the same way. Remove check for null defs.
20742 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
20743 Move a single element rather doing a full sort.
20744 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
20746 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
20747 Initialize df_ref and df_mw_hardreg lists to null rather than
20749 (df_ref_compare): Take df_refs as parameter, transferring the
20750 old interface to...
20751 (df_ref_ptr_compare): ...this new function.
20752 (df_sort_and_compress_refs): Update accordingly.
20753 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
20754 old interface to...
20755 (df_mw_ptr_compare): ...this new function.
20756 (df_sort_and_compress_mws): Update accordingly.
20757 (df_install_refs, df_install_mws): Return a linked list rather than
20758 an array of pointers.
20759 (df_refs_add_to_chains): Assert that old lists are empty rather
20761 (df_insn_refs_verify): Don't handle null defs speciailly.
20762 * web.c (union_match_dups): Update for new df_ref linking.
20764 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20766 * df.h (df_ref_create, df_ref_remove): Delete.
20767 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
20768 (df_ref_remove): Likewise.
20770 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20772 * df.h (df_single_def, df_single_use): New functions.
20773 * ira.c (find_moveable_pseudos): Use them.
20775 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20777 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
20778 * df-problems.c (df_note_bb_compute): Use it.
20779 * regstat.c (regstat_bb_compute_ri): Likewise.
20781 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20783 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
20784 * cse.c (cse_extended_basic_block): Use them.
20785 * dce.c (mark_artificial_use): Likewise.
20786 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
20787 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20788 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
20789 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
20790 (df_simulate_initialize_backwards): Likewise.
20791 (df_simulate_finalize_backwards): Likewise.
20792 (df_simulate_initialize_forwards): Likewise.
20793 (df_md_simulate_artificial_defs_at_top): Likewise.
20794 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20795 * regrename.c (init_rename_info): Likewise.
20796 * regstat.c (regstat_bb_compute_ri): Likewise.
20797 (regstat_bb_compute_calls_crossed): Likewise.
20799 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20801 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
20802 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
20803 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
20804 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
20805 * combine.c (create_log_links): Likewise.
20806 * compare-elim.c (find_flags_uses_in_insn): Likewise.
20807 (try_eliminate_compare): Likewise.
20808 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
20809 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
20810 (remove_reg_equal_equiv_notes_for_defs): Likewise.
20811 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
20812 (word_dce_process_block, dce_process_block): Likewise.
20813 * ddg.c (def_has_ccmode_p): Likewise.
20814 * df-core.c (df_bb_regno_first_def_find): Likewise.
20815 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
20816 * df-problems.c (df_rd_simulate_one_insn): Likewise.
20817 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20818 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
20819 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
20820 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
20821 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
20822 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
20823 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
20824 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
20825 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20826 * fwprop.c (local_ref_killed_between_p): Likewise.
20827 (all_uses_available_at, free_load_extend): Likewise.
20828 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
20829 * hw-doloop.c (scan_loop): Likewise.
20830 * ifcvt.c (dead_or_predicable): Likewise.
20831 * init-regs.c (initialize_uninitialized_regs): Likewise.
20832 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
20833 (process_bb_node_lives): Likewise.
20834 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
20835 (find_moveable_pseudos): Likewise.
20836 * loop-invariant.c (check_dependencies, record_uses): Likewise.
20837 * recog.c (peep2_find_free_register): Likewise.
20838 * ree.c (get_defs): Likewise.
20839 * regstat.c (regstat_bb_compute_ri): Likewise.
20840 (regstat_bb_compute_calls_crossed): Likewise.
20841 * sched-deps.c (find_inc, find_mem): Likewise.
20842 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
20843 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
20844 * shrink-wrap.c (requires_stack_frame_p): Likewise.
20845 (prepare_shrink_wrap): Likewise.
20846 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
20847 * web.c (union_defs, pass_web::execute): Likewise.
20848 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
20849 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
20851 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
20853 * lra-assign.c (assign_by_spills): Add code to assign vector regs
20854 to inheritance pseudos.
20855 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
20857 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
20860 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
20861 (BU_MISC_2): Rename to ...
20862 (BU_LDBL128_2): ... this.
20863 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
20864 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
20865 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20866 RS6000_BTM_LDBL128.
20867 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
20868 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
20869 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
20870 (unpacktf_1): Likewise.
20871 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
20872 (__builtin_longdouble_dw1): Likewise.
20873 * doc/sourcebuild.texi (longdouble128): Document.
20875 2014-06-13 Jeff Law <law@redhat.com>
20877 PR rtl-optimization/61094
20878 PR rtl-optimization/61446
20879 * ree.c (combine_reaching_defs): Get the mode for the copy from
20880 the extension insn rather than the defining insn.
20882 2014-06-13 Dehao Chen <dehao@google.com>
20884 * dwarf2out.c (add_linkage_name): Emit more linkage name.
20886 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
20888 * doc/install.texi (--enable-linker-plugin-configure-flags)
20889 (--enable-linker-plugin-flags): Document new flags.
20891 2014-06-13 Martin Jambor <mjambor@suse.cz>
20894 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
20895 cache_token if returning early.
20897 2014-06-13 Nick Clifton <nickc@redhat.com>
20899 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
20900 requested alignment is active.
20901 (LABEL_ALIGN): Likewise.
20902 (LOOP_ALIGN): Likewise.
20904 2014-06-13 Richard Biener <rguenther@suse.de>
20906 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20907 Rewrite to propagate the VN result into all uses where
20908 possible and to remove stmts becoming dead because of that.
20909 (eliminate): Generalize stmt removal handling, remove in
20910 reverse dominator order to support proper debug stmt
20911 generation. Update stmts before removing stmts.
20912 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
20914 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
20916 PR tree-optimization/61375
20917 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
20918 symbolic number cannot be represented in an uint64_t.
20919 (find_bswap_or_nop_1): Likewise.
20921 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
20923 * symtab.c (symtab_node::reset_section): New method.
20924 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20926 * cgraph.h (reset_section): Declare.
20927 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20928 do not consider comdat locals.
20929 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20931 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20932 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20933 reset sections of symbols dragged out of the comdats.
20934 (function_and_variable_visibility): Reset sections of
20937 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
20939 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
20940 to use symtab and decl_binds_to_current_def_p
20941 * tree-vectorizer.c (increase_alignment): Increase alignment
20942 of alias target, too.
20944 2014-06-12 Jakub Jelinek <jakub@redhat.com>
20946 PR middle-end/61486
20947 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
20948 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
20949 if outer combined construct is distribute.
20950 (gimplify_omp_for): For OMP_DISTRIBUTE set
20951 gimplify_omp_ctxp->distribute.
20952 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
20953 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
20954 mapping into decl map.
20956 2014-06-12 Jason Merrill <jason@redhat.com>
20958 * common.opt (fabi-version): Change default to 0.
20960 2014-06-12 Jason Merrill <jason@redhat.com>
20962 * toplev.c (process_options): Reject -fabi-version=1.
20964 2014-06-12 Jeff Law <law@redhat.com>
20966 PR tree-optimization/61009
20967 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
20968 value when we stop processing a block due to problematic PHIs.
20970 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
20972 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
20973 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
20974 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
20975 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
20976 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
20977 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
20978 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
20979 are not in the spec.
20981 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
20984 * config/aarch64/aarch64-modes.def: Add V1DFmode.
20985 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
20988 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
20990 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
20992 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
20995 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
20996 loading from address spaces.
20998 2014-06-12 Martin Liska <mliska@suse.cz>
21001 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21002 statement is reachable.
21004 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21006 * symtab.c (section_hash): New hash.
21007 (symtab_unregister_node): Clear section before freeing.
21008 (hash_section_hash_entry): New haser.
21009 (eq_sections): New function.
21010 (symtab_node::set_section_for_node): New method.
21011 (set_section_1): Update.
21012 (symtab_node::set_section): Take string instead of tree as parameter.
21013 (symtab_resolve_alias): Update.
21014 * cgraph.h (section_hash_entry_d): New structure.
21015 (section_hash_entry): New typedef.
21016 (cgraph_node): Change comdat_group_ to x_comdat_group,
21017 change section_ to x_section and turn into section_hash_entry;
21018 update accestors; put set_section_for_node offline.
21019 * tree.c (decl_section_name): Turn into string.
21020 (set_decl_section_name): Change parameter to be string.
21021 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21022 * sdbout.c (sdbout_one_type): Update.
21023 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21024 * varasm.c (IN_NAMED_SECTION, get_named_section,
21025 resolve_unique_section, hot_function_section, get_named_text_section,
21026 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21027 make_decl_rtl, default_unique_section): Update.
21028 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21029 (c6x_elf_unique_section): Update.
21030 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21031 * config/pa/pa.c (pa_function_section): Update.
21032 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21033 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21034 * config/arc/arc.c (arc_in_small_data_p): Update.
21035 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21036 * config/mcore/mcore.c (mcore_unique_section): Update.
21037 * config/mips/mips.c (mips16_build_function_stub): Update.
21038 (mips16_build_call_stub): Update.
21039 (mips_function_rodata_section): Update.
21040 (mips_in_small_data_p): Update.
21041 * config/score/score.c (score_in_small_data_p): Update.
21042 * config/rx/rx.c (rx_in_small_data): Update.
21043 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21044 (rs6000_xcoff_asm_named_section): Update.
21045 (rs6000_xcoff_unique_section): Update.
21046 * config/frv/frv.c (frv_string_begins_with): Update.
21047 (frv_in_small_data_p): Update.
21048 * config/v850/v850.c (v850_encode_data_area): Update.
21049 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21050 (bfin_handle_l1_data_attribute): Update.
21051 (bfin_handle_l2_attribute): Update.
21052 * config/mep/mep.c (mep_unique_section): Update.
21053 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21055 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21056 (h8300_handle_tiny_data_attribute): Update.
21057 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21058 (m32r_in_small_data_p): Update.
21059 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21060 * config/i386/i386.c (ix86_in_large_data_p): Update.
21061 * config/i386/winnt.c (i386_pe_unique_section): Update.
21062 * config/darwin.c (darwin_function_section): Update.
21063 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21064 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21065 (new_emutls_decl): Update.
21066 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21067 input_varpool_node): Update.
21068 (ead_string_cst): Turn to ...
21069 (read_string): ... this one.
21070 * dwarf2out.c (secname_for_decl): Update.
21071 * asan.c (asan_protect_global): Update.
21073 2014-06-11 DJ Delorie <dj@redhat.com>
21075 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21077 * config/rx/rx.c (rx_option_override): Likewise.
21078 (rx_align_for_label): Likewise.
21080 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21082 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
21084 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21087 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21089 * common.md: New file.
21090 * doc/md.texi: Update description of generic, machine-independent
21092 * config/s390/constraints.md (e): Delete.
21093 * Makefile.in (md_file): Include common.md.
21094 * config/m32c/t-m32c (md_file): Likewise.
21095 * genpreds.c (general_mem): New array.
21096 (generic_constraint_letters): Remove constraints now defined by
21098 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21099 Allow the first character to be '<' or '>' as well.
21100 * genoutput.c (general_mem): New array.
21101 (indep_constraints): Remove constraints now defined by common.md.
21102 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21103 Remove special handling of 'm'.
21104 * ira-costs.c (record_reg_classes): Remove special handling of
21105 constraints now defined by common.md.
21106 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21107 * ira-lives.c (single_reg_class): Likewise.
21108 (ira_implicitly_set_insn_hard_regs): Likewise.
21109 * lra-constraints.c (reg_class_from_constraints): Likewise.
21110 (process_alt_operands, process_address, curr_insn_transform): Likewise.
21111 * postreload.c (reload_cse_simplify_operands): Likewise.
21112 * reload.c (push_secondary_reload, scratch_reload_class)
21113 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21114 * reload1.c (maybe_fix_stack_asms): Likewise.
21115 * targhooks.c (default_secondary_reload): Likewise.
21116 * stmt.c (parse_output_constraint): Likewise.
21117 * recog.c (preprocess_constraints): Likewise.
21118 (constrain_operands, peep2_find_free_register): Likewise.
21119 (asm_operand_ok): Likewise, but add a comment saying why 'o'
21120 must be handled specially.
21122 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21124 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
21125 * genpreds.c (have_const_dbl_constraints): Delete.
21126 (add_constraint): Don't set it.
21127 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
21128 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
21129 constraints using the lookup_constraint logic.
21130 * ira-lives.c (single_reg_class): Likewise.
21131 * ira.c (ira_setup_alts): Likewise.
21132 * lra-constraints.c (process_alt_operands): Likewise.
21133 * recog.c (asm_operand_ok, constrain_operands): Likewise.
21134 * reload.c (find_reloads): Likewise.
21136 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21138 * genpreds.c (const_int_start, const_int_end): New variables.
21139 (choose_enum_order): Output CONST_INT constraints before memory
21141 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21143 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21144 * ira.c (ira_setup_alts): Likewise.
21145 * lra-constraints.c (process_alt_operands): Likewise.
21146 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21147 * reload.c (find_reloads): Likewise.
21149 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21151 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21152 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
21153 * recog.c (preprocess_constraints): Update accordingly.
21155 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21157 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21158 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21159 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21160 * genpreds.c (print_type_tree): New function.
21161 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21162 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21163 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21164 Write out enum constraint_type and get_constraint_type.
21165 * lra-constraints.c (satisfies_memory_constraint_p): Take a
21166 constraint_num rather than a constraint string.
21167 (satisfies_address_constraint_p): Likewise.
21168 (reg_class_from_constraints): Avoid old constraint macros.
21169 (process_alt_operands, process_address_1): Likewise.
21170 (curr_insn_transform): Likewise.
21171 * ira-costs.c (record_reg_classes): Likewise.
21172 (record_operand_costs): Likewise.
21173 * ira-lives.c (single_reg_class): Likewise.
21174 (ira_implicitly_set_insn_hard_regs): Likewise.
21175 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21176 * postreload.c (reload_cse_simplify_operands): Likewise.
21177 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21178 (constrain_operands, peep2_find_free_register): Likewise.
21179 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21180 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21181 * reload1.c (maybe_fix_stack_asms): Likewise.
21182 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21183 * targhooks.c (default_secondary_reload): Likewise.
21184 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21185 to EXTRA_CONSTRAINT_STR.
21186 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21188 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21190 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21191 (write_constraint_satisfied_p_array): ...this new function.
21192 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21194 (write_insn_preds_c): Update accordingly.
21196 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21198 * genpreds.c (write_lookup_constraint): Rename to...
21199 (write_lookup_constraint_1): ...this.
21200 (write_lookup_constraint_array): New function.
21201 (write_tm_preds_h): Define lookup_constraint as an inline function
21202 that uses write_lookup_constraint_array where possible.
21203 (write_insn_preds_c): Update for the changes above.
21205 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21207 * doc/md.texi (regclass_for_constraint): Rename to...
21208 (reg_class_for_constraint): ...this.
21209 * genpreds.c (num_constraints, enum_order, register_start)
21210 (register_end, satisfied_start, memory_start, memory_end)
21211 (address_start, address_end): New variables.
21212 (add_constraint): Count the number of constraints.
21213 (choose_enum_order): New function.
21214 (write_enum_constraint_num): Iterate over enum_order.
21215 (write_regclass_for_constraint): Rename to...
21216 (write_reg_class_for_constraint_1): ...this and update output
21218 (write_constraint_satisfied_p): Rename to...
21219 (write_constraint_satisfied_p_1): ...this and update output
21220 accordingly. Do nothing if all extra constraints are register
21222 (write_insn_extra_memory_constraint): Delete.
21223 (write_insn_extra_address_constraint): Delete.
21224 (write_range_function): New function.
21225 (write_tm_preds_h): Define constraint_satisfied_p and
21226 reg_class_for_constraint as inline functions that do a range check
21227 before calling the out-of-line function. Use write_range_function
21228 to implement insn_extra_{register,memory,address}_constraint,
21229 the first of which is new.
21230 (write_insn_preds_c): Update after above changes to write_* functions.
21231 (main): Call choose_enum_order.
21233 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
21235 PR tree-optimization/61306
21236 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
21237 expression instead of its size.
21238 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
21239 false to prevent optimization when the result is unpredictable due to
21240 arithmetic right shift of signed type with highest byte is set.
21241 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
21242 (init_symbolic_number): Likewise.
21243 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
21244 when the result is unpredictable due to sign extension.
21246 2014-06-11 Terry Guo <terry.guo@arm.com>
21248 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
21249 (*thumb1_addsi3): Ditto.
21250 (*thumb_subdi3): Ditto.
21251 (thumb1_subsi3_insn): Ditto.
21252 (*thumb_mulsi3): Ditto.
21253 (*thumb_mulsi3_v6): Ditto.
21254 (*thumb1_andsi3_insn): Ditto.
21255 (thumb1_bicsi3): Ditto.
21256 (*thumb1_iorsi3_insn): Ditto.
21257 (*thumb1_xorsi3_insn): Ditto.
21258 (*thumb1_ashlsi3): Ditto.
21259 (*thumb1_ashrsi3): Ditto.
21260 (*thumb1_lshrsi3): Ditto.
21261 (*thumb1_rotrsi3): Ditto.
21262 (*thumb1_negdi2): Ditto.
21263 (*thumb1_negsi2): Ditto.
21264 (*thumb1_abssi2): Ditto.
21265 (*thumb1_neg_abssi2): Ditto.
21266 (*thumb1_one_cmplsi2): Ditto.
21267 (*thumb1_zero_extendhisi2): Ditto.
21268 (*thumb1_zero_extendqisi2): Ditto.
21269 (*thumb1_zero_extendqisi2_v6): Ditto.
21270 (thumb1_extendhisi2): Ditto.
21271 (thumb1_extendqisi2): Ditto.
21272 (*thumb1_movdi_insn): Ditto.
21273 (*thumb1_movsi_insn): Ditto.
21274 (*thumb1_movhi_insn): Ditto.
21275 (thumb_movhi_clobber): Ditto.
21276 (*thumb1_movqi_insn): Ditto.
21277 (*thumb1_movhf): Ditto.
21278 (*thumb1_movsf_insn): Ditto.
21279 (*thumb_movdf_insn): Ditto.
21280 (movmem12b): Ditto.
21282 (cbranchqi4): Ditto.
21283 (cbranchsi4_insn): Ditto.
21284 (cbranchsi4_scratch): Ditto.
21285 (*negated_cbranchsi4): Ditto.
21286 (*tbit_cbranch): Ditto.
21287 (*tlobits_cbranch): Ditto.
21288 (*tstsi3_cbranch): Ditto.
21289 (*cbranchne_decr1): Ditto.
21290 (*addsi3_cbranch): Ditto.
21291 (*addsi3_cbranch_scratch): Ditto.
21292 (*thumb_cmpdi_zero): Ditto.
21293 (cstoresi_eq0_thumb1): Ditto.
21294 (cstoresi_ne0_thumb1): Ditto.
21295 (*cstoresi_eq0_thumb1_insn): Ditto.
21296 (*cstoresi_ne0_thumb1_insn): Ditto.
21297 (cstoresi_nltu_thumb1): Ditto.
21298 (cstoresi_ltu_thumb1): Ditto.
21299 (thumb1_addsi3_addgeu): Ditto.
21300 (*thumb_jump): Ditto.
21301 (*call_reg_thumb1_v5): Ditto.
21302 (*call_reg_thumb1): Ditto.
21303 (*call_value_reg_thumb1_v5): Ditto.
21304 (*call_value_reg_thumb1): Ditto.
21305 (*call_insn): Ditto.
21306 (*call_value_insn): Ditto.
21307 (thumb1_casesi_internal_pic): Ditto.
21308 (thumb1_casesi_dispatch): Ditto.
21309 (*thumb1_indirect_jump): Ditto.
21310 (prologue_thumb1_interwork): Ditto.
21311 (*epilogue_insns): Ditto.
21312 (consttable_1): Ditto.
21313 (consttable_2): Ditto.
21314 (tablejump): Ditto.
21315 (*thumb1_tablejump): Ditto.
21316 (thumb_eh_return): Ditto.
21317 (define_peephole2): Two of them are thumb1 only and got moved into
21318 new file thumb1.md.
21319 (define_split): Six of them are thumb1 only and got moved into new
21321 * config/arm/thumb1.md: New file comprised of above thumb1 only
21324 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21326 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
21327 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
21329 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
21330 (aarch64_crc_builtin_datum): New struct.
21331 (aarch64_crc_builtin_data): New.
21332 (aarch64_init_crc32_builtins): New function.
21333 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
21334 (aarch64_crc32_expand_builtin): New.
21335 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
21336 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21337 __ARM_FEATURE_CRC32 when appropriate.
21338 (TARGET_CRC32): Define.
21339 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
21340 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
21341 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
21342 (aarch64_<crc_variant>): New pattern.
21343 * config/aarch64/arm_acle.h: New file.
21344 * config/aarch64/iterators.md (CRC): New int iterator.
21345 (crc_variant, crc_mode): New int attributes.
21346 * doc/aarch64-acle-intrinsics.texi: New file.
21347 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
21348 Include aarch64-acle-intrinsics.texi.
21350 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
21352 * tree-vect-data-refs.c (vect_grouped_store_supported): New
21353 check for stores group of length 3.
21354 (vect_permute_store_chain): New permutations for stores group of
21356 * tree-vect-stmts.c (vect_model_store_cost): Change cost
21357 of vec_perm_shuffle for the new permutations.
21359 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21361 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
21362 table rewriting temporarily on targets not supporting ONE_ONLY.
21364 2014-06-11 Richard Biener <rguenther@suse.de>
21366 PR middle-end/61437
21368 2014-06-04 Richard Biener <rguenther@suse.de>
21370 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21371 TREE_PUBLIC and DECL_EXTERNAL decls.
21373 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21375 * varasm.c (set_implicit_section): New function.
21376 (resolve_unique_section): Use it to set implicit section
21378 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
21379 (default_function_section): Likewise.
21380 (decl_binds_to_current_def_p): Constify argument.
21381 * varasm.h (decl_binds_to_current_def_p): Update prototype.
21382 * asan.c (asan_protect_global): Use
21383 symtab_get_node (decl)->implicit_section.
21384 * symtab.c (dump_symtab_base): Dump implicit sections.
21385 (verify_symtab_base): Verify sanity of sectoins and comdats.
21386 (symtab_resolve_alias): Alias share the section of its target.
21387 (set_section_1): New function.
21388 (symtab_node::set_section): Move here, recurse to aliases.
21389 (verify_symtab): Check for duplicated symtab lists.
21390 * tree-core.h (implicit_section_name_p): Remove.
21391 * tree-vect-data-refs.c: Include varasm.h.
21392 (vect_can_force_dr_alignment_p): Fix conditional on when
21393 decl bints to current definition; use
21394 symtab_get_node (decl)->implicit_section.
21395 * cgraph.c (cgraph_make_node_local_1): Fix section set.
21396 * cgraph.h (struct symtab_node): Add implicit_section.
21397 (set_section): Rename to ...
21398 (set_section_for_node): ... this one.
21399 (set_section): Declare.
21400 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
21401 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21402 input_overwrite_node, input_varpool_node): Stream implicit_section.
21403 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
21404 removal; it will fail in LTO.
21406 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21408 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
21409 Change second alternative type to f_mcr.
21410 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
21411 and 12th alternatives' types to f_mcr and f_mrc.
21412 (*movdi_aarch64): Same for 12th and 13th alternatives.
21413 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
21414 (aarch64_movtilow_tilow): Change type to fmov.
21416 2014-06-10 Jiong Wang <jiong.wang@arm.com>
21418 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
21419 (aarch64_save_or_restore_callee_save_registers): Fix layout.
21421 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21423 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
21425 (aarch64_sqrdmulh_lane<mode>): Likewise.
21426 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21427 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21428 (aarch64_sqdmulh_laneq<mode>): New expander.
21429 (aarch64_sqrdmulh_laneq<mode>): Likewise.
21430 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
21431 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
21432 (aarch64_sqdmulh_lane<mode>): New expander.
21433 (aarch64_sqrdmulh_lane<mode>): Likewise.
21434 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21435 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21436 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
21437 (aarch64_sqdmlal_laneq<mode>): Likewise.
21438 (aarch64_sqdmlsl_lane<mode>): Likewise.
21439 (aarch64_sqdmlsl_laneq<mode>): Likewise.
21440 (aarch64_sqdmlal2_lane<mode>): Likewise.
21441 (aarch64_sqdmlal2_laneq<mode>): Likewise.
21442 (aarch64_sqdmlsl2_lane<mode>): Likewise.
21443 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21444 (aarch64_sqdmull_lane<mode>): Likewise.
21445 (aarch64_sqdmull_laneq<mode>): Likewise.
21446 (aarch64_sqdmull2_lane<mode>): Likewise.
21447 (aarch64_sqdmull2_laneq<mode>): Likewise.
21449 2014-06-10 Richard Biener <rguenther@suse.de>
21451 PR tree-optimization/61438
21452 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
21453 (eliminate_dom_walker::before_dom_children): Only try to inhibit
21454 insertion of IVs if running PRE.
21455 (eliminate): Adjust.
21456 (pass_pre::execute): Likewise.
21457 (pass_fre::execute): Likewise.
21459 2014-06-10 Richard Biener <rguenther@suse.de>
21461 PR middle-end/61456
21462 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21463 Do not use the main variant for the type comparison.
21464 (ncr_compar): Likewise.
21465 (nonoverlapping_component_refs_p): Likewise.
21467 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
21469 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
21470 REG_CFA_RESTORE mode.
21472 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
21474 * config/i386/i386.c (expand_vec_perm_pblendv): New.
21475 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
21476 expand_vec_perm_pblendv.
21478 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21480 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21482 Simplify description of __crc32d and __crc32cd intrinsics.
21483 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21486 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
21489 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21490 * config.in: Regenerate.
21491 * configure: Likewise.
21493 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21495 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21497 (intersect_static_var_sets): Remove.
21498 (propagate): Do not prune local statics.
21500 2014-06-10 Jakub Jelinek <jakub@redhat.com>
21503 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21504 Set lastprivate_firstprivate even if omp_private_outer_ref
21505 langhook returns true.
21506 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21507 langhook, call unshare_expr on new_var and call
21508 build_outer_var_ref to get the last argument.
21510 2014-06-10 Marek Polacek <polacek@redhat.com>
21513 * doc/extend.texi: Add cindex for transparent_union.
21515 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
21517 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21518 init_symbolic_number ().
21520 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
21522 PR middle-end/61141
21523 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21524 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21525 (verify_rtl_sharing): Likewise.
21527 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
21530 * tree.c (build_qualified_type): Use a canonical type for
21533 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21535 * config/arm/arm-modes.def: Remove XFmode.
21537 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
21540 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21541 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21542 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21543 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21544 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21545 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21546 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21547 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21548 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21550 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
21552 * tree-core.h (tree_decl_with_vis): Remove section_name.
21554 2014-06-09 Kito Cheng <kito@0xlab.org>
21556 * ira.c (ira): Don't call init_caller_save if LRA enabled
21557 since LRA use its own infrastructure to handle that.
21559 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21561 * symtab.c (dump_symtab_base): Update dumping.
21562 (symtab_make_decl_local): Clear only DECL_COMDAT.
21563 * tree-vect-data-refs.c (Check that variable is static before
21564 tampering with sections.
21565 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21566 (cgraph_create_virtual_clone): Likewise.
21567 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21568 (decl_section_name, set_decl_section_name): New accessors.
21569 (find_decls_types_r): Do not walk section name
21570 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21571 (decl_comdat_group, decl_comdat_group_id): Constify.
21572 (decl_section_name, set_decl_section_name): Update.
21573 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21574 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21575 (cgraph_make_node_local_1): Clear section and comdat group.
21576 * cgraph.h (set_comdat_group): Sanity check.
21577 (get_section, set_section): New.
21578 * ipa-comdats.c (ipa_comdats): Use get_section.
21579 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
21580 * lto-streamer-out.c: Do not follow section names.
21581 * c-family/c-common.c (handle_section_attribute): Update.
21582 * lto-cgraph.c (lto_output_node): Output section.
21583 (lto_output_varpool_node): Likewise.
21584 (read_comdat_group): Rename to ...
21585 (read_identifier): ... this one.
21586 (read_string_cst): New function.
21587 (input_node, input_varpool_node): Input section names.
21588 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21589 (new_emutls_decl): Update.
21590 (secname_for_decl): Check section names only of static vars.
21591 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
21592 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
21593 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21594 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21595 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
21596 * config/mcore/mcore.c (mcore_unique_section): Likewise.
21597 * config/mips/mips.c (mips16_build_function_stub): Likewise.
21598 * config/v850/v850.c (v850_insert_attributes): Likewise.
21599 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21601 (h8300_handle_tiny_data_attribute): Likewise.
21602 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21603 (bfin_handle_l2_attribute): Likewise.
21605 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21607 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21608 remove static initializer.
21610 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21612 * varasm.c (use_blocks_for_decl_p): Check symbol table
21613 instead of alias attribute.
21614 (place_block_symbol): Recurse on aliases.
21616 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21618 * ipa-visibility.c: Include varasm.h
21619 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21621 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21623 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21624 outputting aliases.
21626 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
21628 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
21629 from test_insn into GGC space escape via SET_SRC.
21631 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
21633 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
21634 call statement, if any.
21635 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
21636 statements, if any. Tidy up.
21638 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21641 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
21642 iterators, VSX_D that handles 64-bit types, and VSX_LE that
21643 handles swapping the two 64-bit double words on little endian
21644 systems. Include V1TImode and optionally TImode in VSX_LE so that
21645 these types are properly swapped. Change all of the insns and
21646 splits that do the 64-bit swaps to use VSX_LE.
21647 (vsx_le_perm_load_<mode>): Likewise.
21648 (vsx_le_perm_store_<mode>): Likewise.
21649 (splitters for little endian memory operations): Likewise.
21650 (vsx_xxpermdi2_le_<mode>): Likewise.
21651 (vsx_lxvd2x2_le_<mode>): Likewise.
21652 (vsx_stxvd2x2_le_<mode>): Likewise.
21654 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
21657 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
21658 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
21659 and corresponding splitters. Zero extend general register
21660 or memory input operand to XMM temporary. Enable for
21661 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
21662 (floatunssi<mode>2): Update expander predicate.
21664 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
21666 PR rtl-optimization/61325
21667 * lra-constraints.c (process_address_1): Check scale equal to one
21668 to prevent transformation: base + scale * index => base + new_reg.
21670 2014-06-06 Richard Biener <rguenther@suse.de>
21672 PR tree-optimization/59299
21673 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
21675 (nearest_common_dominator_of_uses): Likewise.
21676 (statement_sink_location): Adjust. Support sinking loads.
21678 2014-06-06 Martin Jambor <mjambor@suse.cz>
21680 * ipa-prop.c (get_place_in_agg_contents_list): New function.
21681 (build_agg_jump_func_from_list): Likewise.
21682 (determine_known_aggregate_parts): Renamed to
21683 determine_locally_known_aggregate_parts. Moved some functionality
21684 to the two functions above, removed bound checks.
21686 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
21688 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
21689 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
21690 (aarch64_progress_pointer): Likewise.
21691 (aarch64_copy_one_part_and_move_pointers): Likewise.
21692 (aarch64_expand_movmen): Likewise.
21693 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
21694 * config/aarch64/aarch64.md (movmem<mode>): New.
21696 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
21698 * targhooks.c (default_add_stmt_cost): Call target specific
21699 hook instead of default one.
21701 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
21703 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
21704 endianness instead of host endianness.
21705 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
21708 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21711 * function.c (instantiate_decls): Process the saved static chain.
21712 (expand_function_start): If not optimizing, save the static chain
21714 * tree-nested.c (convert_all_function_calls): Always create the static
21715 chain for nested functions if not optimizing.
21717 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21719 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
21721 2014-06-06 Richard Biener <rguenther@suse.de>
21723 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
21724 (construct_init_block): Likewise.
21725 (construct_exit_block): Likewise.
21726 (pass_expand::execute): Likewise.
21727 * graphite.c (graphite_transforms): Replace check for current_loops
21728 with a check for > 1 loops.
21729 (pass_graphite_transforms::execute): Adjust.
21730 * ipa-split.c (split_function): Remove check for current_loops.
21731 * omp-low.c (expand_parallel_call): Likewise.
21732 (expand_omp_for_init_counts): Likewise.
21733 (extract_omp_for_update_vars): Likewise.
21734 (expand_omp_for_generic): Likewise.
21735 (expand_omp_sections): Likewise.
21736 (expand_omp_target): Likewise.
21737 * tracer.c (tail_duplicate): Likewise.
21738 (pass_tracer::execute): Likewise.
21739 * trans-mem.c (expand_transaction): Likewise.
21740 * tree-complex.c (expand_complex_div_wide): Likewise.
21741 * tree-eh.c (lower_resx): Likewise.
21742 (cleanup_empty_eh_merge_phis): Likewise.
21743 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
21744 current_loops with a check for > 1 loops.
21745 (pass_predcom::execute): Adjust.
21746 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
21747 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
21748 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
21749 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
21750 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
21751 * tree-switch-conversion.c (process_switch): Likewise.
21752 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
21753 * tree-vrp.c (vrp_visit_phi_node): Likewise.
21754 (execute_vrp): Likewise.
21755 * ubsan.c (ubsan_expand_null_ifn): Likewise.
21757 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21759 * rtl.h (insn_location): Declare.
21760 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
21761 with UNKNOWN_LOCATION.
21762 * emit-rtl.c (insn_location): New function.
21763 * final.c (notice_source_line): Check that the instruction has a
21764 location before retrieving it and use insn_location.
21765 * modulo-sched.c (loop_single_full_bb_p): Likewise.
21766 * print-rtl.c (print_rtx): Likewise.
21768 2014-06-06 Richard Biener <rguenther@suse.de>
21770 * passes.def: Move 2nd VRP pass before phi-only-cprop.
21772 2014-06-06 Christian Bruel <christian.bruel@st.com>
21774 PR tree-optimization/43934
21775 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
21778 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
21780 * ira-lives.c (single_reg_class): Add missing break. Explicitly
21781 return NO_REGS for extra address and memory constraints. Handle
21782 operands that match (or are equivalent to something that matches)
21783 extra constant constraints. Ignore other non-register operands.
21785 2014-06-06 Alan Modra <amodra@gmail.com>
21788 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
21789 * doc/tm.texi: Regenerate.
21790 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
21791 Use throughout in place of REG_PARM_STACK_SPACE.
21792 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
21793 "incoming" param. Pass to rs6000_function_parms_need_stack.
21794 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
21795 prototype_p when incoming. Use function decl when incoming
21796 to handle K&R style functions.
21797 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
21798 (INCOMING_REG_PARM_STACK_SPACE): Define.
21800 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21803 * cfgexpand.c (expand_debug_expr): Use address space of nested
21804 TREE_TYPE for ADDR_EXPR and MEM_REF.
21806 2014-06-05 Jeff Law <law@redhat.com>
21808 PR tree-optimization/61289
21809 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
21810 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
21811 looking for those which match LHS. All callers changed.
21812 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
21813 parameters and code which manipulated them. All callers changed.
21814 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
21815 and DST_MAP parameters. Simplify invalidation code by just calling
21816 invalidate_equivalences. All callers changed.
21817 (thread_across_edge): Simplify now that we don't need to maintain
21818 the map of equivalences to invalidate.
21820 2014-06-05 Kai Tietz <ktietz@redhat.com>
21821 Richard Henderson <rth@redhat.com>
21824 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
21825 checking for !TARGET_X32.
21826 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
21827 (sibcall_intern): New define_insn, plus required peepholes.
21828 (sibcall_pop_intern): Likewise.
21829 (sibcall_value_intern): Likewise.
21830 (sibcall_value_pop_intern): Likewise.
21832 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
21834 * tree-inline.c (tree_function_versioning): Check DF info existence
21835 before accessing it.
21837 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21839 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
21841 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
21842 aarch64_frame hard_fp_offset and frame_size.
21843 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
21844 frame_size; remove original_frame_size.
21845 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
21846 (aarch64_initial_elimination_offset): Remove frame_size and
21847 offset. Use aarch64_frame frame_size.
21849 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21850 Jiong Wang <jiong.wang@arm.com>
21851 Renlin <renlin.li@arm.com>
21853 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
21854 initialization of R30 offset. Update offset. Iterate core
21855 regisers upto X30. Remove X29, X30 specific code.
21857 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21858 Jiong Wang <jiong.wang@arm.com>
21860 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
21861 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
21862 (aarch64_register_saved_on_entry): Adjust test.
21864 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21866 * config/aarch64/aarch64.h (machine_function): Move
21867 saved_varargs_size from here...
21868 (aarch64_frame): ... to here.
21870 * config/aarch64/aarch64.c (aarch64_expand_prologue)
21871 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
21872 (aarch64_initial_elimination_offset)
21873 (aarch64_setup_incoming_varargs): Adjust location of
21874 saved_varargs_size.
21876 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21878 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
21881 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
21882 Prachi Godbole <Prachi.Godbole@imgtec.com>
21884 * config/mips/mips-cpus.def: Add definition for p5600. Updated
21885 mips32r5 entry to use PROCESSOR_P5600.
21886 * config/mips/mips-tables.opt: Regenerate.
21887 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
21888 * config/mips/mips.c (mips_fmadd_bypass): New function.
21889 (mips_rtx_cost_data): Add costs for p5600.
21890 (mips_issue_rate): Add support for p5600.
21891 (mips_multipass_dfa_lookahead): Likewise.
21892 * config/mips/mips.h (TUNE_P5600): New define.
21893 (TUNE_MACC_CHAINS): Add TUNE_P5600.
21894 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
21895 * config/mips/mips.md: Include p5600.md.
21896 (processor): Add p5600.
21897 * config/mips/p5600.md: New file.
21899 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
21901 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
21902 * config/i386/predicates.md (palignr_operand): New.
21903 Indicates if permutation is suitable for palignr instruction.
21905 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
21907 PR tree-optimization/61319
21908 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21909 stmt belongs to loop.
21911 2014-06-05 Richard Biener <rguenther@suse.de>
21913 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
21914 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
21915 (lookup_tmp_var): Adjust.
21916 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
21918 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21920 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
21922 2014-06-05 Marek Polacek <polacek@redhat.com>
21925 * doc/invoke.texi: Document -Wlogical-not-parentheses.
21927 2014-06-04 Tom de Vries <tom@codesourcery.com>
21929 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
21932 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
21934 PR tree-optimization/61385
21935 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
21937 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
21939 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
21940 changed to use fatal_error.
21941 (main): Ensure lto_wrapper_cleanup is run atexit.
21943 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21945 * lra-constraints.c (valid_address_p): Move earlier in file.
21946 (address_eliminator): New structure.
21947 (satisfies_memory_constraint_p): New function.
21948 (satisfies_address_constraint_p): Likewise.
21949 (process_alt_operands, process_address, curr_insn_transform): Use them.
21951 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21953 * lra-int.h (lra_static_insn_data): Make operand_alternative a
21955 (target_lra_int, default_target_lra_int, this_target_lra_int)
21956 (op_alt_data): Delete.
21957 * lra.h (lra_init): Delete.
21958 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
21959 (init_insn_code_data_once): Remove op_alt_data handling.
21960 (finish_insn_code_data_once): Likewise.
21961 (init_op_alt_data): Delete.
21962 (get_static_insn_data): Initialize operand_alternative to null.
21963 (free_insn_recog_data): Cast operand_alternative before freeing it.
21964 (setup_operand_alternative): Take the operand_alternative as
21965 parameter and assume it isn't already cached in the static
21967 (lra_set_insn_recog_data): Update accordingly.
21968 (lra_init): Delete.
21969 * ira.c (ira_init): Don't call lra_init.
21970 * target-globals.h (this_target_lra_int): Declare.
21971 (target_globals): Remove lra_int.
21972 (restore_target_globals): Update accordingly.
21973 * target-globals.c: Don't include lra-int.h.
21974 (default_target_globals, save_target_globals): Remove lra_int.
21976 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21978 * recog.h (operand_alternative): Convert reg_class, reject,
21979 matched and matches into bitfields.
21980 (preprocess_constraints): New overload.
21981 (preprocess_insn_constraints): New function.
21982 (preprocess_constraints): Take the insn as parameter.
21983 (recog_op_alt): Change into a pointer.
21984 (target_recog): Add x_op_alt.
21985 * recog.c (asm_op_alt): New variable.
21986 (recog_op_alt): Change into a pointer.
21987 (preprocess_constraints): New overload, replacing the old function
21988 definition with one that doesn't use global state.
21989 (preprocess_insn_constraints): New function.
21990 (preprocess_constraints): Use them. Take the insn as parameter.
21991 Use asm_op_alt for asms.
21992 (recog_init): Free existing x_op_alt entries.
21993 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
21995 (make_early_clobber_and_input_conflicts): Likewise.
21996 (process_bb_node_lives): Pass the insn to process_constraints.
21997 * reg-stack.c (check_asm_stack_operands): Likewise.
21998 (subst_asm_stack_regs): Likewise.
21999 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22000 * regrename.c (build_def_use): Likewise.
22001 * sched-deps.c (sched_analyze_insn): Likewise.
22002 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22003 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22004 (note_invalid_constants): Likewise.
22005 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22006 (ix86_legitimate_combined_insn): Make operand_alternative pointer
22009 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22011 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22012 * ira-lives.c (check_and_make_def_conflict): Check for disabled
22014 (make_early_clobber_and_input_conflicts): Likewise.
22015 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22017 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22019 * recog.h (alternative_class): New function.
22020 (which_op_alt): Return a const recog_op_alt.
22021 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22022 (subst_asm_stack_regs): Likewise.
22023 * config/arm/arm.c (note_invalid_constants): Likewise.
22024 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
22025 the operand_alternative; use alternative class instead.
22026 * sel-sched.c (get_reg_class): Likewise.
22027 * regrename.c (build_def_use): Likewise.
22028 (hide_operands, restore_operands, record_out_operands): Update type
22031 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22033 * recog.h (recog_op_alt): Convert to a flat array.
22034 (which_op_alt): New function.
22035 * recog.c (recog_op_alt): Convert to a flat array.
22036 (preprocess_constraints): Update accordingly, grouping all
22037 operands of the same alternative together, rather than the
22039 * ira-lives.c (check_and_make_def_conflict): Likewise.
22040 (make_early_clobber_and_input_conflicts): Likewise.
22041 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22042 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22043 (subst_asm_stack_regs): Likewise.
22044 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22045 * regrename.c (hide_operands, record_out_operands): Likewise.
22046 (build_def_use): Likewise.
22047 * sel-sched.c (get_reg_class): Likewise.
22048 * config/arm/arm.c (note_invalid_constants): Likewise.
22050 2014-06-04 Jason Merrill <jason@redhat.com>
22054 * gimplify.c (gimplify_arg): Non-static.
22055 * gimplify.h: Declare it.
22057 2014-06-04 Richard Biener <rguenther@suse.de>
22059 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22060 TREE_PUBLIC and DECL_EXTERNAL decls.
22062 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
22064 * regcprop.c (copyprop_hardreg_forward_1): Account for
22065 HARD_REGNO_CALL_PART_CLOBBERED.
22067 2014-06-04 Richard Biener <rguenther@suse.de>
22069 * configure.ac: Check whether the underlying type of int64_t
22070 is long or long long.
22071 * configure: Regenerate.
22072 * config.in: Likewise.
22073 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22074 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22076 2014-06-04 Richard Biener <rguenther@suse.de>
22078 PR tree-optimization/60098
22079 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22081 (dse_optimize_stmt): Simplify, now that we found a kill
22084 2014-06-04 Richard Biener <rguenther@suse.de>
22086 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22087 of accesses with non-invariant address.
22089 2014-06-04 Martin Liska <mliska@suse.cz>
22091 * cgraph.h (cgraph_make_wrapper): New function introduced.
22092 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22093 * ipa-inline.h (inline_analyze_function): The function is global.
22094 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22096 2014-06-04 Martin Liska <mliska@suse.cz>
22098 * tree.h (private_lookup_attribute_starting): New function.
22099 (lookup_attribute_starting): Likewise.
22100 * tree.c (private_lookup_attribute_starting): Likewise.
22102 2014-06-04 Martin Liska <mliska@suse.cz>
22104 * cgraph.h (expand_thunk): New argument added.
22105 (address_taken_from_non_vtable_p): New global function.
22106 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
22107 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
22108 * cgraphunit.c (analyze_function): Likewise.
22109 (assemble_thunks_and_aliases): Argument added to call.
22110 (expand_thunk): New argument forces to produce GIMPLE thunk.
22112 2014-06-04 Martin Liska <mliska@suse.cz>
22114 * coverage.h (coverage_compute_cfg_checksum): Argument added.
22115 * coverage.c (coverage_compute_cfg_checksum): Likewise.
22116 * profile.c (branch_prob): Likewise.
22118 2014-06-04 Martin Jambor <mjambor@suse.cz>
22121 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
22122 handler for switch on an ipa_ref_use enum.
22123 * ipa-reference.c (analyze_function): Likewise.
22125 2014-06-04 Kai Tietz <ktietz@redhat.com>
22127 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
22128 from old call-instruction.
22130 2014-06-04 Bin Cheng <bin.cheng@arm.com>
22132 * config/aarch64/aarch64.c (aarch64_classify_address)
22133 (aarch64_legitimize_reload_address): Support full addressing modes
22135 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22136 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22138 2014-06-03 Andrew Pinski <apinski@cavium.com>
22140 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22143 2014-06-03 Andrew Pinski <apinski@cavium.com>
22145 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22146 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22148 2014-06-03 Kai Tietz <ktietz@redhat.com>
22150 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22153 2014-06-03 Dehao Chen <dehao@google.com>
22155 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22158 2014-06-03 Marek Polacek <polacek@redhat.com>
22161 * doc/invoke.texi: Document -Wswitch-bool.
22162 * function.c (stack_protect_epilogue): Cast controlling expression of
22164 * gengtype.c (walk_type): Generate switch expression with its
22165 controlling expression cast to int.
22167 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
22169 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22171 * config/avr/avr-tables.opt: Regenerate.
22172 * config/avr/t-multilib: Regenerate.
22173 * doc/avr-mmcu.texi: Regenerate.
22175 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
22176 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22178 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22179 (ata6617c, ata664251): Add new avr35 devices.
22180 (ata6612c): Add new avr4 device.
22181 (ata6613c, ata6614q): Add new avr5 devices.
22182 * config/avr/avr-tables.opt: Regenerate.
22183 * config/avr/t-multilib: Regenerate.
22184 * doc/avr-mmcu.texi: Regenerate.
22186 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22188 * gcc/config/aarch64/aarch64-builtins.c
22189 (aarch64_types_binop_ssu_qualifiers): New static data.
22190 (TYPES_BINOP_SSU): Define.
22191 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22192 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22193 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22194 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22195 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22196 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22197 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22198 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22199 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22200 suffix to builtin function name, remove cast.
22201 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22202 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22203 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22205 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22207 * gcc/config/aarch64/aarch64-builtins.c
22208 (aarch64_types_binop_uus_qualifiers,
22209 aarch64_types_shift_to_unsigned_qualifiers,
22210 aarch64_types_unsigned_shiftacc_qualifiers): Define.
22211 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22212 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22213 sqshlu_n, uqshl_n): Update qualifiers.
22214 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22215 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22216 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22217 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22218 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22219 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22220 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22221 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22222 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22223 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22224 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22225 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22226 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22227 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22228 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22229 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22230 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22231 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22232 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
22233 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
22234 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
22235 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
22236 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
22237 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
22238 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
22239 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
22240 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
22242 2014-06-03 Teresa Johnson <tejohnson@google.com>
22244 * tree-sra.c (modify_function): Record caller nodes after rebuild.
22246 2014-06-02 Jason Merrill <jason@redhat.com>
22249 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
22251 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22253 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
22256 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22258 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
22260 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
22261 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
22262 * config/aarch64/iterators.md (REVERSE): New iterator.
22263 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
22264 (rev_op): New int_attribute.
22265 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
22266 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
22267 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
22268 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
22269 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
22270 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
22271 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
22272 Replace temporary __asm__ with __builtin_shuffle.
22274 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22276 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
22278 * config/mips/mips-tables.opt: Regenerate.
22279 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
22280 to use mips_isa_rev rather than ISA_MIPS32R2.
22281 * config/mips/mips.h (ISA_MIPS32R3): New define.
22282 (ISA_MIPS32R5): New define.
22283 (ISA_MIPS64R3): New define.
22284 (ISA_MIPS64R5): New define.
22285 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
22286 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
22287 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
22289 (MIPS_ISA_SYNCI_SPEC): Likewise.
22290 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
22291 (LINK_SPEC): Added mips32r3 and mips32r5.
22292 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
22293 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
22294 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
22295 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
22296 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
22297 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
22298 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
22300 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22302 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
22304 * config/mips/mips.opt (mxpa): New option.
22305 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
22308 2014-06-03 Martin Jambor <mjambor@suse.cz>
22311 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
22314 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
22316 PR tree-optimization/61328
22317 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
22318 initialization from find_bswap_or_nop_1.
22319 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
22320 in source_expr2 before using the size value the function sets. Also
22321 make use of init_symbolic_number () in both the old place and
22322 find_bswap_or_nop_load () to avoid reading uninitialized memory when
22323 doing recursion in the GIMPLE_BINARY_RHS case.
22325 2014-06-03 Richard Biener <rguenther@suse.de>
22327 PR tree-optimization/61383
22328 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
22331 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
22333 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
22334 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
22335 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
22336 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
22338 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
22339 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
22340 * system.h: ...here and make it unconditional.
22341 * target.def (conditional_register_usage): Mention
22342 define_register_constraint instead of old-style constraint macros.
22343 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
22344 * doc/tm.texi: Regenerate.
22345 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
22346 protected by !USE_MD_CONSTRAINTS.
22347 * config/frv/frv.md: Remove quote from old version of documentation.
22348 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
22349 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
22350 CONST_DOUBLE_OK_FOR_LETTER.
22351 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
22353 2014-06-02 Andrew Pinski <apinski@cavium.com>
22355 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
22356 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
22357 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
22358 file whose name depends on -mabi= and -mbig-endian.
22359 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
22360 Handle LP64 better and handle ilp32 too.
22361 (MULTILIB_OPTIONS): Delete.
22362 (MULTILIB_DIRNAMES): Delete.
22364 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
22366 * expr.h: Remove prototypes of functions defined in builtins.c.
22367 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
22368 Remove prototypes of functions defined in builtins.c.
22369 * builtins.h: Update prototype list to include all exported functions.
22370 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
22371 no_c99_libc_has_function): Move to targhooks.c
22372 (build_string_literal, build_call_expr_loc_array,
22373 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
22375 (expand_builtin_object_size, fold_builtin_object_size): Make static.
22376 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
22377 no_c99_libc_has_function): Relocate from builtins.c.
22378 * tree.c: Include builtins.h.
22379 (build_call_expr_loc_array, build_call_expr_loc_vec,
22380 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
22382 * fold-const.h (fold_fma): Move prototype to builtins.h.
22383 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
22384 * asan.c: Include builtins.h.
22385 * cfgexpand.c: Likewise.
22386 * convert.c: Likewise.
22387 * emit-rtl.c: Likewise.
22388 * except.c: Likewise.
22389 * expr.c: Likewise.
22390 * fold-const.c: Likewise.
22391 * gimple-fold.c: Likewise.
22392 * gimple-ssa-strength-reduction.c: Likewise.
22393 * gimplify.c: Likewise.
22394 * ipa-inline.c: Likewise.
22395 * ipa-prop.c: Likewise.
22396 * lto-streamer-out.c: Likewise.
22397 * stmt.c: Likewise.
22398 * tree-inline.c: Likewise.
22399 * tree-object-size.c: Likewise.
22400 * tree-sra.c: Likewise.
22401 * tree-ssa-ccp.c: Likewise.
22402 * tree-ssa-forwprop.c: Likewise.
22403 * tree-ssa-loop-ivcanon.c: Likewise.
22404 * tree-ssa-loop-ivopts.c: Likewise.
22405 * tree-ssa-math-opts.c: Likewise.
22406 * tree-ssa-reassoc.c: Likewise.
22407 * tree-ssa-threadedge.c: Likewise.
22408 * tree-streamer-in.c: Likewise.
22409 * tree-vect-data-refs.c: Likewise.
22410 * tree-vect-patterns.c: Likewise.
22411 * tree-vect-stmts.c: Likewise.
22412 * config/aarch64/aarch64.c: Likewise.
22413 * config/alpha/alpha.c: Likewise.
22414 * config/arc/arc.c: Likewise.
22415 * config/arm/arm.c: Likewise.
22416 * config/avr/avr.c: Likewise.
22417 * config/bfin/bfin.c: Likewise.
22418 * config/c6x/c6x.c: Likewise.
22419 * config/cr16/cr16.c: Likewise.
22420 * config/cris/cris.c: Likewise.
22421 * config/epiphany/epiphany.c: Likewise.
22422 * config/fr30/fr30.c: Likewise.
22423 * config/frv/frv.c: Likewise.
22424 * config/h8300/h8300.c: Likewise.
22425 * config/i386/i386.c: Likewise.
22426 * config/i386/winnt.c: Likewise.
22427 * config/ia64/ia64.c: Likewise.
22428 * config/iq2000/iq2000.c: Likewise.
22429 * config/lm32/lm32.c: Likewise.
22430 * config/m32c/m32c.c: Likewise.
22431 * config/m32r/m32r.c: Likewise.
22432 * config/m68k/m68k.c: Likewise.
22433 * config/mcore/mcore.c: Likewise.
22434 * config/mep/mep.c: Likewise.
22435 * config/microblaze/microblaze.c: Likewise.
22436 * config/mips/mips.c: Likewise.
22437 * config/mmix/mmix.c: Likewise.
22438 * config/mn10300/mn10300.c: Likewise.
22439 * config/moxie/moxie.c: Likewise.
22440 * config/msp430/msp430.c: Likewise.
22441 * config/nds32/nds32.c: Likewise.
22442 * config/pa/pa.c: Likewise.
22443 * config/pdp11/pdp11.c: Likewise.
22444 * config/picochip/picochip.c: Likewise.
22445 * config/rl78/rl78.c: Likewise.
22446 * config/rs6000/rs6000.c: Likewise.
22447 * config/rx/rx.c: Likewise.
22448 * config/s390/s390.c: Likewise.
22449 * config/score/score.c: Likewise.
22450 * config/sh/sh.c: Likewise.
22451 * config/sparc/sparc.c: Likewise.
22452 * config/spu/spu.c: Likewise.
22453 * config/stormy16/stormy16.c: Likewise.
22454 * config/tilegx/tilegx.c: Likewise.
22455 * config/tilepro/tilepro.c: Likewise.
22456 * config/v850/v850.c: Likewise.
22457 * config/vax/vax.c: Likewise.
22458 * config/xtensa/xtensa.c: Likewise.
22460 2014-06-02 Jeff Law <law@redhat.com>
22462 PR rtl-optimization/61094
22463 * ree.c (combine_reaching_defs): Do not reextend an insn if it
22464 was marked as do_no_reextend. If a copy is needed to eliminate
22465 an extension, then mark it as do_not_reextend.
22467 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
22469 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
22471 2014-06-02 Richard Henderson <rth@redhat.com>
22474 * config/alpha/alpha.c (print_operand_address): Allow symbolic
22475 addresses inside asms. Use output_operand_lossage instead of
22478 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
22481 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22482 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22484 2014-06-02 Tom de Vries <tom@codesourcery.com>
22486 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22487 case that x has VOIDmode.
22489 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
22491 * varasm.c (copy_constant): Delete function.
22492 (build_constant_desc): Don't call it.
22494 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22497 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22498 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22499 with immediate_operand.
22501 2014-06-02 Andreas Schwab <schwab@suse.de>
22503 * config/ia64/ia64.c
22504 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22505 pending_data_specs first.
22507 2014-06-02 Richard Biener <rguenther@suse.de>
22509 PR tree-optimization/61378
22510 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22511 valueized_anything.
22513 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
22515 * config/i386/constraints.md (Bw): Rename from 'w'.
22516 (Bz): Rename from 'z'.
22517 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22519 2014-06-01 Kai Tietz <ktietz@redhat.com>
22522 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22523 * config/i386/i386.md (sibcall_insn_operand): Use Bs
22524 instead of m constraint.
22526 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
22528 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22529 a separate alternative where the scratch operand 2 is marked as
22532 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
22534 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22535 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22536 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22537 and __builtins_arm_get_fpscr.
22538 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22539 __builtins_arm_get_fpscr.
22540 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22541 __builtins_arm_ldfpscr.
22542 (arm_atomic_assign_expand_fenv): New function.
22543 * config/arm/vfp.md (set_fpscr): New pattern.
22544 (get_fpscr) : Likewise.
22545 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22547 * doc/extend.texi (AARCH64 Built-in Functions) : Document
22548 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22550 2014-05-30 Jakub Jelinek <jakub@redhat.com>
22552 * asan.c (report_error_func): Add SLOW_P argument, use
22553 BUILT_IN_ASAN_*_N if set.
22554 (build_check_stmt): Likewise.
22555 (instrument_derefs): If T has insufficient alignment,
22556 force same handling as for odd sizes.
22558 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22559 BUILT_IN_ASAN_REPORT_STORE_N): New.
22560 * asan.c (struct asan_mem_ref): Change access_size type to
22562 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22563 update_mem_ref_hash_table): Likewise.
22564 (asan_mem_ref_hasher::hash): Hash in a HWI.
22565 (report_error_func): Change size_in_bytes argument to HWI.
22566 Use *_N builtins if size_in_bytes is larger than 16 or not power of
22568 (build_shadow_mem_access): New function.
22569 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
22570 Handle size_in_bytes not power of two or larger than 16.
22571 (instrument_derefs): Don't give up if size_in_bytes is not
22572 power of two or is larger than 16.
22574 2014-05-30 Kai Tietz <ktietz@redhat.com>
22577 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
22578 for sibling-tail-calls.
22579 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
22581 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
22582 (sibcall_insn_operand): Add check for sibcall_memory_operand.
22584 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22586 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
22587 * config/avr/avr-tables.opt: Regenerate.
22588 * config/avr/t-multilib: Regenerate.
22589 * doc/avr-mmcu.texi: Regenerate.
22591 2014-05-30 Ian Lance Taylor <iant@google.com>
22593 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
22596 2014-05-30 Tom de Vries <tom@codesourcery.com>
22598 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22601 2014-05-30 Tom de Vries <tom@codesourcery.com>
22603 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22604 * lra.c (initialize_lra_reg_info_element): Add init of
22605 actual_call_used_reg_set field.
22606 (lra): Call lra_create_live_ranges before lra_inheritance for
22608 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22610 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22611 instead of call_used_reg_set for -fuse-caller-save.
22612 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22614 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22616 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22618 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22620 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
22622 * ira.c (ira_get_dup_out_num): Check for output operands at
22623 the start of the loop. Handle cases where an included alternative
22624 follows an excluded one.
22626 2014-05-29 Mike Stump <mikestump@comcast.net>
22629 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
22630 post ld passes when lto is used.
22632 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
22634 PR rtl-optimization/61325
22635 * lra-constraints.c (process_address): Rename to process_address_1.
22636 (process_address): New function.
22638 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
22640 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
22641 TYPES_BINOPV): New static data.
22642 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
22644 * config/aarch64/aarch64-simd.md (aarch64_ext,
22645 aarch64_im_lane_boundsi): New patterns.
22646 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
22648 (aarch64_evpc_ext): New function.
22650 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
22652 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
22653 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
22654 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
22655 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
22656 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
22658 2014-05-29 Tom de Vries <tom@codesourcery.com>
22660 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
22662 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
22663 Richard Sandiford <rdsandiford@googlemail.com>
22665 * arm/iterators.md (shiftable_ops): New code iterator.
22666 (t2_binop0, arith_shift_insn): New code attributes.
22667 * arm/predicates.md (shift_nomul_operator): New predicate.
22668 * arm/arm.md (insn_enabled): Delete.
22669 (enabled): Remove insn_enabled test.
22670 (*arith_shiftsi): Delete. Replace with ...
22671 (*<arith_shift_insn>_multsi): ... new pattern.
22672 (*<arith_shift_insn>_shiftsi): ... new pattern.
22673 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
22675 2014-05-29 Radovan Obradovic <robradovic@mips.com>
22676 Tom de Vries <tom@codesourcery.com>
22678 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
22679 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
22681 (mips_split_call): Use POST_CALL_TMP_REG.
22682 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
22684 2014-05-29 Tom de Vries <tom@codesourcery.com>
22686 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
22687 with #ifdef STACK_REGS.
22689 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
22691 * varasm.c (get_variable_section): Walk aliases.
22692 (place_block_symbol): Walk aliases.
22694 2014-05-28 Tom de Vries <tom@codesourcery.com>
22697 2014-05-28 Tom de Vries <tom@codesourcery.com>
22699 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22700 * lra.c (initialize_lra_reg_info_element): Add init of
22701 actual_call_used_reg_set field.
22702 (lra): Call lra_create_live_ranges before lra_inheritance for
22704 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22706 * lra-constraints.c (need_for_call_save_p): Use
22707 actual_call_used_reg_set instead of call_used_reg_set for
22709 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22711 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22713 * doc/md.texi: Document that the % constraint character must
22714 be at the beginning of the string.
22715 * genoutput.c (validate_insn_alternatives): Check that '=',
22716 '+' and '%' only appear at the beginning of a constraint.
22717 * ira.c (commutative_constraint_p): Delete.
22718 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
22719 at the start of the string.
22720 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
22722 * config/arm/neon.md (bicdi3_neon): Likewise.
22723 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
22724 (slt_si, sltu_si): Likewise.
22725 * config/vax/vax.md (sbcdi3): Likewise.
22726 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
22727 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
22728 (mul64): Move '%' to beginning of constraint.
22729 * config/arm/arm.md (*xordi3_insn): Likewise.
22730 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
22731 (xorsi3): Likewise.
22733 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22735 * doc/md.texi: Document the restrictions on the "enabled" attribute.
22737 2014-05-28 Jason Merrill <jason@redhat.com>
22740 * cgraph.h (symtab_node::get_comdat_group_id): New.
22741 * cgraphunit.c (analyze_functions): Call it.
22742 * symtab.c (dump_symtab_node): Likewise.
22743 * tree.c (decl_comdat_group_id): New.
22744 * tree.h: Declare it.
22745 * lto-streamer-out.c (write_symbol): Use it.
22746 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
22748 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
22750 PR bootstrap/PR61146
22751 * wide-int.cc: Do not include longlong.h when compiling with clang.
22753 2014-05-28 Richard Biener <rguenther@suse.de>
22755 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
22756 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
22757 (vrp_visit_assignment_or_call): Print less vertical space.
22758 (vrp_visit_stmt): Likewise.
22759 (vrp_visit_phi_node): Likewise. For a PHI argument with
22760 VR_VARYING range consider recording it as copy.
22762 2014-05-28 Richard Biener <rguenther@suse.de>
22765 2014-05-28 Richard Biener <rguenther@suse.de>
22767 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22769 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
22771 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
22772 sufficiently aligned and an offset is used at the same time.
22773 (expand_expr_real_1): Likewise.
22775 2014-05-28 Richard Biener <rguenther@suse.de>
22777 PR middle-end/61045
22778 * fold-const.c (fold_comparison): When folding
22779 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
22780 the sign of the remaining constant operand stays the same.
22782 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
22784 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
22785 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
22786 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
22788 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
22789 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
22790 (m32bit-doubles) Likewise.
22791 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
22792 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
22795 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22797 * configure.ac ($gcc_cv_ld_clearcap): New test.
22798 * configure: Regenerate.
22799 * config.in: Regenerate.
22800 * config/sol2.opt (mclear-hwcap): New option.
22801 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
22802 * config/sol2-clearcap.map: Moved here from
22803 testsuite/gcc.target/i386/clearcap.map.
22804 * config/sol2-clearcapv2.map: Move here from
22805 gcc.target/i386/clearcapv2.map.
22806 * config/t-sol2 (install): Depend on install-clearcap-map.
22807 (install-clearcap-map): New target.
22808 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
22811 2014-05-28 Richard Biener <rguenther@suse.de>
22813 * hwint.h (*_HALF_WIDE_INT*): Move to ...
22814 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
22815 ... here and remove the rest.
22816 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22818 2014-05-28 Richard Biener <rguenther@suse.de>
22820 PR tree-optimization/61335
22821 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
22822 new range fails, drop to varying.
22824 2014-05-28 Olivier Hainque <hainque@adacore.com>
22826 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
22827 (CPP_SPEC): Add entry for -mcpu=8548.
22828 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
22829 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
22831 2014-05-28 Tom de Vries <tom@codesourcery.com>
22833 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22834 * lra.c (initialize_lra_reg_info_element): Add init of
22835 actual_call_used_reg_set field.
22836 (lra): Call lra_create_live_ranges before lra_inheritance for
22838 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22840 * lra-constraints.c (need_for_call_save_p): Use
22841 actual_call_used_reg_set instead of call_used_reg_set for
22843 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22845 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22846 Tom de Vries <tom@codesourcery.com>
22848 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
22850 (@item -fuse-caller-save): New item.
22852 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22853 Tom de Vries <tom@codesourcery.com>
22855 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
22856 OPT_fuse_caller_save.
22858 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22859 Tom de Vries <tom@codesourcery.com>
22861 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
22862 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
22863 get_call_reg_set_usage.
22864 * resource.c (mark_set_resources, mark_target_live_regs): Use
22865 get_call_reg_set_usage.
22866 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
22868 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
22869 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
22870 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22871 * ira-build.c (ira_create_allocno): Init
22872 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22873 (create_cap_allocno, propagate_allocno_info)
22874 (propagate_some_info_from_allocno)
22875 (copy_info_to_removed_store_destinations): Handle
22876 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22877 * ira-costs.c (ira_tune_allocno_costs): Use
22878 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
22880 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22881 Tom de Vries <tom@codesourcery.com>
22883 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
22884 and function_used_regs_valid fields.
22885 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
22886 find_all_hard_reg_sets.
22887 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
22888 (get_call_reg_set_usage): New function.
22889 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
22890 * regs.h (get_call_reg_set_usage): Declare.
22892 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
22895 * config/dbx.h (License): Add Runtime Library Exception.
22896 * config/newlib-stdint.h (License): Same.
22897 * config/rtems.h (License): Same
22898 * config/initfini-array.h (License): Same
22899 * config/v850/v850.h (License): Same.
22900 * config/v850/v850-opts.h (License): Same
22901 * config/v850/rtems.h (License): Same.
22903 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
22906 * doc/extend.texi (Local Labels): Note that label differences are
22907 not supported for AVR.
22909 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22910 Olivier Hainque <hainque@adacore.com>
22912 * rtl.h (set_for_reg_notes): Declare.
22913 * emit-rtl.c (set_for_reg_notes): New function.
22914 (set_unique_reg_note): Use it.
22915 * optabs.c (add_equal_note): Likewise
22917 2014-05-27 Andrew Pinski <apinski@cavium.com>
22919 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
22920 Use <w> for the register in assembly template.
22921 (stack_protect_test): Use the mode of operands[0] for the result.
22922 (stack_protect_test_<mode>): Use <w> for the register
22923 in assembly template.
22925 2014-05-27 DJ Delorie <dj@redhat.com>
22927 * config/rx/rx.c (add_vector_labels): New.
22928 (rx_output_function_prologue): Call it.
22929 (rx_handle_func_attribute): Don't require empty arguments.
22930 (rx_handle_vector_attribute): New.
22931 (rx_attribute_table): Add "vector" attribute.
22932 * doc/extend.texi (interrupt, vector): Document new/changed
22933 RX-specific attributes.
22935 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
22937 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
22939 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
22940 predicate to detect a negative quotient.
22942 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
22944 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
22945 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
22946 Add X - Y CMP 0 to X CMP Y transformation.
22947 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
22949 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
22951 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
22954 2014-05-27 Steve Ellcey <sellcey@mips.com>
22956 * config/mips/mips.c: Add include of cgraph.h.
22958 2014-05-27 Richard Biener <rguenther@suse.de>
22960 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
22962 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
22965 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
22966 * config/arm/arm-cores.def (License): Same.
22967 * config/arm/arm-opts.h (License): Same.
22968 * config/arm/aout.h (License): Same.
22969 * config/arm/bpabi.h (License): Same.
22970 * config/arm/elf.h (License): Same.
22971 * config/arm/linux-elf.h (License): Same.
22972 * config/arm/linux-gas.h (License): Same.
22973 * config/arm/netbsd-elf.h (License): Same.
22974 * config/arm/uclinux-eabi.h (License): Same.
22975 * config/arm/uclinux-elf.h (License): Same.
22976 * config/arm/vxworks.h (License): Same.
22978 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22980 * config/arm/neon.md (neon_bswap<mode>): New pattern.
22981 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
22982 (arm_init_neon_builtins): Handle NEON_BSWAP.
22983 Define required type nodes.
22984 (arm_expand_neon_builtin): Handle NEON_BSWAP.
22985 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
22986 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
22987 * config/arm/iterators.md (VDQHSD): New mode iterator.
22989 2014-05-27 Richard Biener <rguenther@suse.de>
22991 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
22992 Try using literal operands when comparing value-ranges failed.
22994 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
22996 * ira.c (commutative_operand): Adjust for change to recog_data.
22997 [Missing from previous commit.]
22999 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23001 * system.h (TEST_BIT): New macro.
23002 * recog.h (alternative_mask): New type.
23003 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23004 (recog_data_d): Replace alternative_enabled_p array with
23005 enabled_alternatives.
23006 (target_recog): New structure.
23007 (default_target_recog, this_target_recog): Declare.
23008 (get_enabled_alternatives, recog_init): Likewise.
23009 * recog.c (default_target_recog, this_target_recog): New variables.
23010 (get_enabled_alternatives): New function.
23011 (extract_insn): Use it.
23012 (recog_init): New function.
23013 (preprocess_constraints, constrain_operands): Adjust for change to
23015 * postreload.c (reload_cse_simplify_operands): Likewise.
23016 * reload.c (find_reloads): Likewise.
23017 * ira-costs.c (record_reg_classes): Likewise.
23018 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
23019 all alternatives after a disabled one would be skipped.
23020 (ira_implicitly_set_insn_hard_regs): Likewise.
23021 * ira.c (ira_setup_alts): Adjust for change to recog_data.
23022 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23023 with enabled_alternatives.
23024 * lra.c (free_insn_recog_data): Update accordingly.
23025 (lra_update_insn_recog_data): Likewise.
23026 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
23027 * lra-constraints.c (process_alt_operands): Likewise. Handle
23028 only_alternative as part of the enabled mask.
23029 * target-globals.h (this_target_recog): Declare.
23030 (target_globals): Add a recog field.
23031 (restore_target_globals): Restore this_target_recog.
23032 * target-globals.c: Include recog.h.
23033 (default_target_globals): Initialize recog field.
23034 (save_target_globals): Likewise.
23035 * reginfo.c (reinit_regs): Call recog_init.
23036 * toplev.c (backend_init_target): Likewise.
23038 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23040 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23041 rather than any named insn's code.
23043 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23046 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23047 * config/arm/arm-cores.def (License): Same.
23049 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
23051 * tree.h (decl_comdat_group): Declare.
23052 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23053 * tree.c (decl_comdat_group): Here.
23055 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
23057 PR rtl-optimization/61222
23058 * combine.c (simplify_shift_const_1): When moving a PLUS outside
23059 the shift, truncate the PLUS operand to the result mode.
23061 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
23064 * config/i386/i386.c (ix86_rtx_costs)
23065 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23068 2014-05-26 Martin Jambor <mjambor@suse.cz>
23070 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23073 2014-05-26 Richard Biener <rguenther@suse.de>
23075 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23076 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23077 Provide specializations.
23078 (wi::int_traits <HOST_WIDE_INT>,
23079 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23081 2014-05-26 Alan Modra <amodra@gmail.com>
23084 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23085 params and return a bool. Remove dead code. Update comment.
23086 Assert we have a const_int source. Remove bogus code from
23087 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
23088 handling of constants > 2G and reg_equal note, from..
23089 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
23090 return value. Update comment. If we can, use a new pseudo
23091 for intermediate calculations.
23092 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23094 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23095 call to rs6000_emit_set_const in splitter.
23096 (movdi_internal64+2, +3): Likewise.
23098 2014-05-26 Richard Biener <rguenther@suse.de>
23100 * system.h: Define __STDC_FORMAT_MACROS before
23101 including inttypes.h.
23102 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
23103 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
23104 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
23105 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
23106 HOST_WIDEST_INT_C): Remove.
23107 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
23108 if C99 inttypes.h is not available.
23109 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
23110 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
23111 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
23112 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
23113 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
23114 (struct output_info): Likewise.
23115 (print_statistics): Adjust.
23116 (dump_bitmap_statistics): Likewise.
23117 * bt-load.c (migrate_btr_defs): Print with PRId64.
23118 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
23119 (MAX_SAFE_MULTIPLIER): Adjust.
23120 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
23121 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
23122 dump_cgraph_node): Likewise.
23123 * final.c (dump_basic_block_info): Likewise.
23124 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
23125 * gcov.c (format_gcov): Likewise.
23126 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
23128 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
23129 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
23130 (inline_small_functions, dump_overall_stats, dump_inline_stats):
23131 Use PRId64 for dumping.
23132 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
23133 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23134 (add_allocno_hard_regs): Adjust.
23135 * loop-doloop.c (doloop_modify): Print using PRId64.
23136 * loop-iv.c (inverse): Compute in uint64_t.
23137 (determine_max_iter, iv_number_of_iterations): Likewise.
23138 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23139 Print using PRId64.
23140 * lto-streamer-out.c (write_symbol): Use uint64_t.
23141 * mcf.c (CAP_INFINITY): Use int64_t maximum.
23142 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23143 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23144 * modulo-sched.c (const_iteration_count): Use int64_t.
23145 (sms_schedule): Dump using PRId64.
23146 * predict.c (dump_prediction): Likewise.
23147 * pretty-print.h (pp_widest_integer): Remove.
23148 * profile.c (get_working_sets, is_edge_inconsistent,
23149 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23150 * tree-pretty-print.c (pp_double_int): Remove case handling
23151 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23152 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23154 (pass_optimize_bswap::execute): Remove restriction on hosts.
23155 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23156 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23157 * tree.c (widest_int_cst_value): Remove.
23158 * tree.h (widest_int_cst_value): Likewise.
23159 * value-prof.c (dump_histogram_value): Print using PRId64.
23160 * gengtype.c (main): Also inject int64_t.
23161 * ggc-page.c (struct max_alignment): Use int64_t.
23162 * alloc-pool.c (struct allocation_object_def): Likewise.
23163 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23165 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23166 * doc/tm.texi: Regenerated.
23167 * gengtype-lex.l (IWORD): Handle [u]int64_t.
23168 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23169 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23170 mmix_output_register_setting): Use [u]int64_t in prototypes.
23171 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23172 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23173 mmix_output_octa, mmix_output_shifted_value): Adjust.
23174 (mmix_intval): Adjust. Remove unreachable case.
23175 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23177 2014-05-26 Richard Biener <rguenther@suse.de>
23179 * configure.ac: Drop __int64 type check. Insist that we
23180 found uint64_t and int64_t.
23181 * hwint.h (HOST_BITS_PER___INT64): Remove.
23182 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23183 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23184 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23185 (HOST_WIDEST_FAST_INT): Remove __int64 case.
23186 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23187 for dst_q_src_df_rms_cdt.
23188 * configure: Regenerate.
23189 * config.in: Likewise.
23191 2014-05-26 Michael Tautschnig <mt@debian.org>
23194 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23195 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23197 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23199 PR rtl-optimization/61278
23200 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23202 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23204 PR rtl-optimization/61220
23205 Part of PR rtl-optimization/61225
23206 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23207 insn; skip split_edge for a block with only one successor.
23209 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23211 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23214 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23216 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23217 (update_vtable_references): New function.
23218 (function_and_variable_visibility): Rewrite also vtable initializers.
23219 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23221 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23223 * ggc.h (ggc_grow): New function.
23224 * ggc-none.c (ggc_grow): New function.
23225 * ggc-page.c (ggc_grow): Likewise.
23227 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23229 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23230 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23231 comdat_can_be_unshared_p, cgraph_externally_visible_p,
23232 varpool_externally_visible_p, can_replace_by_local_alias,
23233 update_visibility_by_resolution_info, function_and_variable_visibility,
23234 pass_data_ipa_function_and_variable_visibility,
23235 make_pass_ipa_function_and_variable_visibility,
23236 whole_program_function_and_variable_visibility,
23237 pass_data_ipa_whole_program_visibility,
23238 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
23239 * cgraph.h (cgraph_local_node_p): Declare.
23240 * ipa-visibility.c: New file.
23241 * Makefile.in (OBJS): Add ipa-visiblity.o
23243 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23245 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
23246 that var decl is available.
23248 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23250 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
23251 symtab_node pointer.
23252 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
23253 (find_decls_types_r): Do not walk COMDAT_GROUP.
23254 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
23255 * varasm.c (make_decl_one_only): Use set_comdat_group;
23256 create node if needed.
23257 * ipa-inline-transform.c (save_inline_function_body): Update
23258 way we decl->symtab mapping.
23259 * symtab.c (symtab_hash, hash_node, eq_node
23260 symtab_insert_node_to_hashtable): Remove.
23261 (symtab_register_node): Update.
23262 (symtab_unregister_node): Update.
23263 (symtab_get_node): Reimplement as inline function.
23264 (symtab_add_to_same_comdat_group): Update.
23265 (symtab_dissolve_same_comdat_group_list): Update.
23266 (dump_symtab_base): Update.
23267 (verify_symtab_base): Update.
23268 (symtab_make_decl_local): Update.
23269 (fixup_same_cpp_alias_visibility): Update.
23270 (symtab_nonoverwritable_alias): Update.
23271 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
23272 * ipa.c (update_visibility_by_resolution_info): UPdate.
23273 * bb-reorder.c: Include cgraph.h
23274 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
23275 with comdat groups.
23276 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
23277 * cgraph.c (cgraph_get_create_node): Update.
23278 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
23280 (symtab_get_node): Make inline.
23281 (symtab_insert_node_to_hashtable): Remove.
23282 (symtab_can_be_discarded): Update.
23283 (decl_comdat_group): New function.
23284 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
23286 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
23288 (read_comdat_group): New function.
23289 (input_node, input_varpool_node): Use it.
23290 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
23292 * mips.c (mips_start_unique_function): Likewise.
23293 (ix86_code_end): Likewise.
23294 (rs6000_code_end): Likweise.
23295 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
23297 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23299 * gengtype-state.c (fatal_reading_state): Bring offline.
23300 * optabs.c (widening_optab_handler): Bring offline.
23301 * optabs.h (widening_optab_handler): Likewise.
23302 * final.c (get_attr_length_1): Likewise.
23304 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23306 * sched-int.h (sd_iterator_cond): Manually tail recurse.
23308 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23310 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
23311 (ppc440-compare): Include shift with dot.
23312 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
23313 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
23315 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
23317 (e6500_sfx2): Include it.
23318 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
23319 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
23320 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
23321 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
23322 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
23323 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
23324 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
23325 *lshiftrt_internal1le, *lshiftrt_internal1be,
23326 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
23327 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
23328 *rotldi3_internal10le, *rotldi3_internal10be,
23329 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
23330 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
23331 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
23332 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
23333 define_insns): Use type "shift" in the appropriate alternatives.
23335 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23337 * config/rs6000/rs6000.md (type): Add "logical". Delete
23339 (dot): Adjust comment.
23340 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
23341 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
23342 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
23343 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
23344 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
23345 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
23346 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
23347 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23349 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23350 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23351 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23352 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23353 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23354 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23355 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23356 * config/rs6000/8540.md (ppc8540_su): Adjust.
23357 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23358 cell-cmp-microcoded): Adjust.
23359 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23360 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23361 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23362 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23363 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23364 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23365 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23366 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23367 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23369 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23370 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
23371 Adjust. Adjust comment.
23372 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23373 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23375 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23377 * config/rs6000/rs6000.md (type): Add "add".
23378 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
23379 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
23380 define_insns): Use it.
23381 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23383 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23384 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23385 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23386 * config/rs6000/601.md (ppc601-integer): Adjust.
23387 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23388 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23389 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23390 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23391 * config/rs6000/8540.md (ppc8540_su): Adjust.
23392 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23393 cell-cmp-microcoded): Adjust.
23394 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23395 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23396 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23397 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23398 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23399 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23400 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23401 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23402 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23404 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23405 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
23406 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23407 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23409 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23411 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
23412 "delayed_compare", "var_delayed_compare".
23413 (var_shift): New attribute.
23414 (cell_micro): Adjust.
23415 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
23416 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
23417 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
23418 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23419 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23420 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23421 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23422 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
23423 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
23424 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23425 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
23426 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
23427 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
23428 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
23429 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
23430 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
23431 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
23432 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
23433 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
23434 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
23435 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
23436 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
23437 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
23438 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23439 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23441 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23442 * config/rs6000/440.md (ppc440-integer): Adjust.
23443 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23444 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
23445 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23446 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23447 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23448 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23449 * config/rs6000/8540.md (ppc8540_su): Adjust.
23450 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23451 cell-cmp-microcoded): Adjust.
23452 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
23453 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23454 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
23455 e500mc64_delayed): Adjust.
23456 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
23457 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
23458 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23459 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
23460 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
23461 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
23462 power6-delayed-compare, power6-var-delayed-compare): Adjust.
23463 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
23464 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
23466 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23467 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23469 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23471 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
23472 (bits): New mode_attr.
23473 (idiv_ldiv): Delete mode_attr.
23474 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
23475 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23476 rs6000_adjust_priority, is_nonpipeline_insn,
23477 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23479 * config/rs6000/40x.md (ppc403-idiv): Adjust.
23480 * config/rs6000/440.md (ppc440-idiv): Adjust.
23481 * config/rs6000/476.md (ppc476-idiv): Adjust.
23482 * config/rs6000/601.md (ppc601-idiv): Adjust.
23483 * config/rs6000/603.md (ppc603-idiv): Adjust.
23484 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23485 ppc620-ldiv): Adjust.
23486 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23487 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23488 * config/rs6000/8540.md (ppc8540_divide): Adjust.
23489 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23490 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23491 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23492 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23493 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23494 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23495 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23496 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23497 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23498 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23499 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23500 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23501 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23502 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23503 * config/rs6000/titan.md (titan_fxu_div): Adjust.
23505 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23507 * config/rs6000/rs6000.md (type): Delete "insert_word",
23508 "insert_dword". Add "insert".
23509 (size): Update comment.
23510 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23511 insn_must_be_first_in_group): Adjust.
23512 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23513 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23514 *insvsi_internal6, insvdi_internal): Adjust.
23516 * config/rs6000/40x.md (ppc403-integer): Adjust.
23517 * config/rs6000/440.md (ppc440-integer): Adjust.
23518 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23519 * config/rs6000/601.md (ppc601-integer): Adjust.
23520 * config/rs6000/603.md (ppc603-integer): Adjust.
23521 * config/rs6000/6xx.md (ppc604-integer): Adjust.
23522 * config/rs6000/7450.md (ppc7450-integer): Adjust.
23523 * config/rs6000/7xx.md (ppc750-integer): Adjust.
23524 * config/rs6000/8540.md (ppc8540_su): Adjust.
23525 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23526 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23527 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23528 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23529 * config/rs6000/e5500.md (e5500_sfx): Adjust.
23530 * config/rs6000/e6500.md (e6500_sfx): Adjust.
23531 * config/rs6000/mpc.md (mpccore-integer): Adjust.
23532 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23533 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23534 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23535 * config/rs6000/power7.md (power7-integer): Adjust.
23536 * config/rs6000/power8.md (power8-1cyc): Adjust.
23537 * config/rs6000/rs64.md (rs64a-integer): Adjust.
23538 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23540 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23542 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
23543 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23544 (size): New attribute.
23545 (dot): New attribute.
23546 (cell_micro): Adjust.
23547 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23548 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23549 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23550 umuldi3_highpart): Adjust.
23551 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23552 rs6000_adjust_priority, is_nonpipeline_insn,
23553 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23555 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23556 ppc405-imul3): Adjust.
23557 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23558 * config/rs6000/476.md (ppc476-imul): Adjust.
23559 * config/rs6000/601.md (ppc601-imul): Adjust.
23560 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23561 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23562 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23563 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23564 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23566 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23567 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23568 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23569 cell-imul): Adjust.
23570 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23571 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23572 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23573 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23574 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23575 * config/rs6000/mpc.md (mpccore-imul): Adjust.
23576 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23577 power4-lmul, power4-imul, power4-imul3): Adjust.
23578 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
23579 power5-lmul, power5-imul, power5-imul3): Adjust.
23580 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
23581 power6-lmul, power6-imul, power6-imul3): Adjust.
23582 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
23583 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
23585 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
23586 rs64a-lmul): Adjust.
23587 * config/rs6000/titan.md (titan_imul): Adjust.
23589 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23591 * config/rs6000/rs6000.md (type): Add new value "halfmul".
23592 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
23593 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
23594 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
23595 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
23596 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23597 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23598 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23599 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23600 * config/rs6000/titan.md: Delete nonsensical comment.
23601 (titan_imul): Add type imul3.
23602 (titan_mulhw): Remove type imul3; add type halfmul.
23604 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23606 * config/rs6000/rs6000.md (type): Reorder, reformat.
23608 2014-05-23 Martin Jambor <mjambor@suse.cz>
23610 PR tree-optimization/53787
23611 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23612 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23613 analysis_done, update all uses.
23614 * ipa-prop.c: Include domwalk.h
23615 (param_analysis_info): Removed.
23616 (param_aa_status): New type.
23617 (ipa_bb_info): Likewise.
23618 (func_body_info): Likewise.
23619 (ipa_get_bb_info): New function.
23620 (aa_overwalked): Likewise.
23621 (find_dominating_aa_status): Likewise.
23622 (parm_bb_aa_status_for_bb): Likewise.
23623 (parm_preserved_before_stmt_p): Changed to use new param AA info.
23624 (load_from_unmodified_param): Accept func_body_info as a parameter
23625 instead of parms_ainfo.
23626 (parm_ref_data_preserved_p): Changed to use new param AA info.
23627 (parm_ref_data_pass_through_p): Likewise.
23628 (ipa_load_from_parm_agg_1): Likewise. Update callers.
23629 (compute_complex_assign_jump_func): Changed to use new param AA info.
23630 (compute_complex_ancestor_jump_func): Likewise.
23631 (ipa_compute_jump_functions_for_edge): Likewise.
23632 (ipa_compute_jump_functions): Removed.
23633 (ipa_compute_jump_functions_for_bb): New function.
23634 (ipa_analyze_indirect_call_uses): Likewise, moved variable
23636 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
23637 and info, moved variable declarations down.
23638 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
23640 (ipa_analyze_stmt_uses): Likewise.
23641 (ipa_analyze_params_uses): Removed.
23642 (ipa_analyze_params_uses_in_bb): New function.
23643 (ipa_analyze_controlled_uses): Likewise.
23644 (free_ipa_bb_info): Likewise.
23645 (analysis_dom_walker): New class.
23646 (ipa_analyze_node): Handle node-specific forbidden analysis,
23647 initialize and free func_body_info, use dominator walker.
23648 (ipcp_modif_dom_walker): New class.
23649 (ipcp_transform_function): Create and free func_body_info, use
23650 ipcp_modif_dom_walker, moved a lot of functionality there.
23652 2014-05-23 Marek Polacek <polacek@redhat.com>
23653 Jakub Jelinek <jakub@redhat.com>
23655 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
23656 * gcc.c (sanitize_spec_function): Likewise.
23657 * convert.c (convert_to_integer): Include "ubsan.h". Add
23658 floating-point to integer instrumentation.
23659 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
23660 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
23661 SANITIZE_NONDEFAULT.
23662 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
23663 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
23664 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
23665 * ubsan.c: Include "realmpfr.h" and "dfp.h".
23666 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
23667 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
23668 float/double/long double.
23669 (ubsan_instrument_float_cast): New function.
23670 * ubsan.h (ubsan_instrument_float_cast): Declare.
23672 2014-05-23 Jiong Wang <jiong.wang@arm.com>
23674 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
23676 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
23677 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
23678 Adjust for tailcalling through registers.
23679 * config/aarch64/aarch64.h (enum reg_class): New caller save
23681 (REG_CLASS_NAMES): Likewise.
23682 (REG_CLASS_CONTENTS): Likewise.
23683 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
23684 Allow tailcalling without decls.
23686 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23688 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23689 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
23691 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
23692 gsi, and variables v_* to v*.
23694 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
23696 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
23698 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23700 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
23701 * omp-low.c: Update accordingly.
23703 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
23704 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
23705 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
23706 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
23707 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
23708 GF_OMP_TARGET_KIND_UPDATE.
23710 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23711 Explicitly enumerate the expected region types.
23713 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
23716 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
23717 documentation; the old documentation didn't clearly state the
23718 constraints on the contents of the pointed-to storage.
23720 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23722 Fix bootstrap error on ia64
23723 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
23724 Return default value.
23726 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
23728 PR tree-optimization/54733
23729 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
23731 (find_bswap_or_nop_load): New.
23732 (find_bswap_1): Renamed to ...
23733 (find_bswap_or_nop_1): This. Also add support for memory source.
23734 (find_bswap): Renamed to ...
23735 (find_bswap_or_nop): This. Also add support for memory source and
23736 detection of bitwise operations equivalent to load in target
23738 (execute_optimize_bswap): Likewise. Also move its leading comment back
23739 in place and split statement transformation into ...
23740 (bswap_replace): This.
23742 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23744 PR rtl-optimization/61215
23745 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
23746 simplify_gen_subreg until final substitution.
23748 2014-05-23 Alan Modra <amodra@gmail.com>
23751 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
23752 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
23753 Use "Y" constraint rather than "m".
23755 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
23757 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
23759 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
23760 New function declaration.
23761 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
23762 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
23763 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
23764 (aarch64_init_builtins) : Initialize builtins
23765 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23766 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23767 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
23768 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
23769 and __builtins_aarch64_set_fpsr.
23770 (aarch64_atomic_assign_expand_fenv): New function.
23771 * config/aarch64/aarch64.md (set_fpcr): New pattern.
23772 (get_fpcr) : Likewise.
23773 (set_fpsr) : Likewise.
23774 (get_fpsr) : Likewise.
23775 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
23776 and UNSPECV_SET_FPSR.
23777 * doc/extend.texi (AARCH64 Built-in Functions) : Document
23778 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23779 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23781 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23783 PR rtl-optimization/60969
23784 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
23785 constraints. Set up mem cost for NO_REGS case.
23787 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
23789 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
23791 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
23793 * config/darwin.c: Include "lto-section-names.h".
23794 (LTO_SEGMENT_NAME): Don't define.
23795 * config/i386/winnt.c: Include "lto-section-names.h".
23796 * lto-streamer.c: Include "lto-section-names.h".
23797 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
23798 * lto-wrapper.c: Include "lto-section-names.h".
23799 (LTO_SECTION_NAME_PREFIX): Don't define.
23800 * lto-section-names.h: New file.
23801 * cgraphunit.c: Include "lto-section-names.h".
23803 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
23805 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
23807 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
23810 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
23812 2014-05-22 Nick Clifton <nickc@redhat.com>
23814 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
23816 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
23818 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
23819 -> (T)A transformation to integer types.
23821 2014-05-22 Teresa Johnson <tejohnson@google.com>
23823 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
23824 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
23825 (gcov_rewrite): Use gcov_nonruntime_assert.
23826 (gcov_open): Ditto.
23827 (gcov_write_words): Ditto.
23828 (gcov_write_length): Ditto.
23829 (gcov_read_words): Use gcov_nonruntime_assert, and remove
23830 gcc_assert from IN_LIBGCOV code.
23831 (gcov_read_summary): Use gcov_error to flag profile corruption.
23832 (gcov_sync): Use gcov_nonruntime_assert.
23833 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
23834 (gcov_histo_index): Use gcov_nonruntime_assert.
23835 (static void gcov_histogram_merge): Ditto.
23836 (compute_working_sets): Ditto.
23837 * gcov-io.h (gcov_nonruntime_assert): Define.
23838 (gcov_error): Define for !IN_LIBGCOV
23840 2014-05-22 Richard Biener <rguenther@suse.de>
23842 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23843 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
23844 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
23845 and deallocation site.
23846 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23847 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
23848 passing through the incoming points-to set.
23849 (handle_lhs_call): Use flags argument instead of recomputing it.
23850 (find_func_aliases_for_call): Call handle_lhs_call with proper
23853 2014-05-22 Jakub Jelinek <jakub@redhat.com>
23855 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
23856 all padding bits in REAL_VALUE_TYPE are cleared.
23858 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23860 Cleanup and improve multipass_dfa_lookahead_guard
23861 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
23862 (core2i7_first_cycle_multipass_begin,)
23863 (core2i7_first_cycle_multipass_issue,)
23864 (core2i7_first_cycle_multipass_backtrack): Update signature.
23865 * config/ia64/ia64.c
23866 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
23867 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
23868 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
23870 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
23871 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
23873 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
23875 * doc/tm.texi: Regenerate.
23877 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
23878 * haifa-sched.c (ready_try): Make signed to allow negative values.
23879 (rebug_ready_list_1): Update.
23880 (choose_ready): Simplify.
23881 (sched_extend_ready_list): Update.
23883 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23885 Remove IA64 speculation tweaking flags
23886 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
23887 speculation tuning flags.
23888 (msched-prefer-non-data-spec-insns,)
23889 (msched-prefer-non-control-spec-insns): Obsolete options.
23890 * haifa-sched.c (choose_ready): Remove handling of
23891 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23892 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
23893 and PREFER_NON_DATA_SPEC.
23894 * sel-sched.c (process_spec_exprs): Remove handling of
23895 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23897 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23899 Improve scheduling debug output
23900 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
23901 (advance_one_cycle): Update.
23902 (schedule_insn, queue_to_ready): Add debug printouts.
23903 (debug_ready_list_1): New static function.
23904 (debug_ready_list): Update.
23905 (max_issue): Add debug printouts.
23906 (dump_insn_stream): New static function.
23907 (schedule_block): Use it. Also better indent printouts.
23909 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23911 Fix sched_insn debug counter
23912 * haifa-sched.c (schedule_insn): Update.
23913 (struct haifa_saved_data): Add nonscheduled_insns_begin.
23914 (save_backtrack_point, restore_backtrack_point): Update.
23915 (first_nonscheduled_insn): New static function.
23916 (queue_to_ready, choose_ready): Use it.
23917 (schedule_block): Init nonscheduled_insns_begin.
23918 (sched_emit_insn): Update.
23921 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23923 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
23925 (aarch64_secondary_reload) : LikeWise.
23926 (aarch64_class_max_nregs) : Remove CORE_REGS.
23927 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
23928 (REG_CLASS_NAMES) : Likewise.
23929 (REG_CLASS_CONTENTS) : LikeWise.
23930 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
23932 2014-05-21 Guozhi Wei <carrot@google.com>
23935 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
23937 (vqdmulhq_n_s16): Likewise.
23939 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23941 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
23943 2014-05-21 Marek Polacek <polacek@redhat.com>
23946 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
23948 2014-05-21 Martin Jambor <mjambor@suse.cz>
23950 * doc/invoke.texi (Optimize Options): Document parameters
23951 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
23952 ipa-cp-array-index-hint-bonus.
23954 2014-05-21 Mark Wielaard <mjw@redhat.com>
23957 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
23958 version >= 3 or not strict DWARF.
23959 * langhooks.h (struct lang_hooks_for_types): Add
23960 enum_underlying_base_type.
23961 * langhooks.c (lhd_enum_underlying_base_type): New function.
23962 * gcc/langhooks.h (struct lang_hooks_for_types): Add
23963 enum_underlying_base_type.
23964 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
23965 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
23966 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
23968 2014-05-21 Richard Biener <rguenther@suse.de>
23970 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
23972 2014-05-21 John Marino <gnugcc@marino.st>
23974 * config.gcc (*-*-dragonfly*): New target.
23975 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
23976 * configure: Regenerate.
23977 * config/dragonfly-stdint.h: New.
23978 * config/dragonfly.h: New.
23979 * config/dragonfly.opt: New.
23980 * config/i386/dragonfly.h: New.
23981 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
23983 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23985 * tree.def (VOID_CST): New.
23986 * tree-core.h (TI_VOID): New.
23987 * tree.h (void_node): New.
23988 * tree.c (tree_node_structure_for_code, tree_code_size)
23989 (iterative_hash_expr): Handle VOID_CST.
23990 (build_common_tree_nodes): Initialize void_node.
23992 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
23994 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
23996 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
23998 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24001 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24002 flag_reorder_blocks_and_partition.
24003 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24005 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
24008 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
24010 (*addc_r_t): Add new insn_and_split.
24012 2014-05-21 Jakub Jelinek <jakub@redhat.com>
24014 PR middle-end/61252
24015 * omp-low.c (handle_simd_reference): New function.
24016 (lower_rec_input_clauses): Use it. Defer adding reference
24017 initialization even for reduction without placeholder if in simd,
24018 handle it properly later on.
24020 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24022 PR tree-optimization/60899
24023 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24024 assume all static symbols will have definition wile parsing and
24025 check the do have definition later in compilation; check that
24026 variable referring symbol will be output before concluding that
24027 reference is safe; be conservative for referring local statics;
24028 be more precise about when comdat is output in other partition.
24030 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24033 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24035 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24036 (ipa_inline): Loop inline_to_all_callers until no more aliases
24039 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24041 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24042 set writeonly flag only for vars actually written to.
24044 2014-05-20 Dehao Chen <dehao@google.com>
24046 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24047 and callee count to get clone count.
24048 * tree-inline.c (expand_call_inline): Use callee count instead of bb
24049 count in copy_body.
24051 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
24053 PR rtl-optimization/61243
24054 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24056 2014-05-20 Xinliang David Li <davidxl@google.com>
24058 * cgraphunit.c (walk_polymorphic_call_targets): Add
24059 dbgcnt and fopt-info support.
24060 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24061 * ipa-devirt.c (ipa_devirt): Ditto.
24062 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24063 * ipa.c (walk_polymorphic_call_targets): Ditto.
24064 * gimple-fold.c (fold_gimple_assign): Ditto.
24065 (gimple_fold_call): Ditto.
24066 * dbgcnt.def: New counter.
24068 2014-05-20 DJ Delorie <dj@redhat.com>
24070 * config/msp430/msp430.md (split): Don't allow subregs when
24071 splitting SImode adds.
24072 (andneghi): Fix subtraction logic.
24073 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24075 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24077 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24079 * except.c (switch_to_exception_section, resolve_unique_section,
24080 get_named_text_section, default_function_rodata_section,
24081 align_variable, get_block_for_decl, default_section_type_flags):
24082 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24083 * symtab.c (symtab_add_to_same_comdat_group,
24084 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24085 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24087 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24088 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24089 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24090 (c6x_function_in_section_p): Likewise.
24091 * config/darwin.c (machopic_select_section): Likewise.
24092 * config/arm/arm.c (arm_function_in_section_p): Likewise.
24093 * config/mips/mips.c (mips_function_rodata_section): Likewise.
24094 * config/mep/mep.c (mep_select_section): LIkewise.
24095 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24097 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
24099 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
24100 EH region of calls to pure functions that can throw an exception.
24101 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
24102 (copy_reference_ops_from_call): Also copy the EH region of the call if
24103 it can throw an exception.
24105 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24107 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
24108 nested VEC_SELECTs that are inverses of each other.
24110 2014-05-20 Richard Biener <rguenther@suse.de>
24112 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
24113 (extract_and_process_scc_for_name): not here.
24114 (cond_dom_walker::before_dom_children): Only process
24115 stmts that end the BB in interesting ways.
24116 (run_scc_vn): Mark param uses as visited.
24118 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24120 * config/arm/arm.md (arith_shiftsi): Do not predicate for
24123 2014-05-20 Nick Clifton <nickc@redhat.com>
24125 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
24126 (msp430_gimplify_va_arg_expr): New function.
24127 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
24129 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
24130 operand 0 in order to prevent confusion about the number of
24131 registers involved.
24133 2014-05-20 Richard Biener <rguenther@suse.de>
24135 PR tree-optimization/61221
24136 * tree-ssa-pre.c (el_to_update): Remove.
24137 (eliminate_dom_walker::before_dom_children): Handle released
24138 VDEFs by value-numbering them to the associated VUSE. Update
24139 stmt immediately for substituted call address.
24140 (eliminate): Remove delayed stmt updating code.
24141 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24142 possibly late re-numbered vuses.
24143 (vn_reference_lookup_2): Adjust.
24144 (vn_reference_lookup_pieces): Likewise.
24145 (vn_reference_lookup): Likewise.
24147 2014-05-20 Richard Biener <rguenther@suse.de>
24149 * config.gcc: Remove need_64bit_hwint.
24150 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24151 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24153 * config.in: Regenerate.
24154 * configure: Likewise.
24156 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
24158 * doc/extend.texi: Create Label Attributes section,
24159 move all label attributes into it and reference it.
24161 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
24163 * arm.c (thumb1_reorg): When scanning backwards skip anything
24164 that's not a proper insn.
24166 2014-05-19 Richard Biener <rguenther@suse.de>
24168 PR tree-optimization/61221
24169 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24170 Do nothing for unreachable blocks.
24171 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24172 Improve unreachability detection.
24174 2014-05-19 Richard Biener <rguenther@suse.de>
24176 PR tree-optimization/61209
24177 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24179 2014-05-19 Nick Clifton <nickc@redhat.com>
24181 * except.c (init_eh): Fix computation of builtin setjmp buffer
24182 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24184 2014-05-19 Richard Biener <rguenther@suse.de>
24186 PR tree-optimization/61184
24187 * tree-vrp.c (is_negative_overflow_infinity): Use
24188 TREE_OVERFLOW_P and do that check first.
24189 (is_positive_overflow_infinity): Likewise.
24190 (is_overflow_infinity): Likewise.
24191 (vrp_operand_equal_p): Properly treat operands with
24192 differing overflow as not equal.
24194 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
24196 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24197 shift simplification where it was intended.
24199 2014-05-19 Christian Bruel <christian.bruel@st.com>
24202 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24204 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
24207 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24210 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24212 * reg-notes.def (CROSSING_JUMP): Likewise.
24213 * rtl.h (rtx_def): Update comment for jump flag.
24214 (CROSSING_JUMP_P): Define.
24215 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24216 of a REG_CROSSING_JUMP note.
24217 * cfghooks.c (tidy_fallthru_edges): Likewise.
24218 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24219 * emit-rtl.c (try_split): Likewise.
24220 * haifa-sched.c (sched_create_recovery_edges): Likewise.
24221 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24222 * jump.c (redirect_jump_2): Likewise.
24223 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24224 (relax_delay_slots): Likewise.
24225 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24226 (bbit_di): Likewise.
24227 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24228 * config/sh/sh.md (jump_compact): Likewise.
24229 * bb-reorder.c (rotate_loop): Likewise.
24230 (pass_duplicate_computed_gotos::execute): Likewise.
24231 (add_reg_crossing_jump_notes): Rename to...
24232 (update_crossing_jump_flags): ...this.
24233 (pass_partition_blocks::execute): Update accordingly.
24235 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24237 * tree.h: Remove extraneous template <>.
24239 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24241 * ipa.c (symtab_remove_unreachable_nodes): Remove
24242 symbol from comdat group if its body was eliminated.
24243 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
24244 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
24245 (symtab_unregister_node): ... this one.
24246 (verify_symtab_base): More strict checking of comdats.
24247 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
24249 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24251 * tree-pass.h (make_pass_ipa_comdats): New pass.
24252 * timevar.def (TV_IPA_COMDATS): New timevar.
24253 * passes.def (pass_ipa_comdats): Add.
24254 * Makefile.in (OBJS): Add ipa-comdats.o
24255 * ipa-comdats.c: New file.
24257 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24259 * ipa.c (update_visibility_by_resolution_info): New function.
24260 (function_and_variable_visibility): Use it.
24262 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24264 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
24266 (FOR_EACH_DEFINED_SYMBOL): New macro.
24267 (varpool_first_static_initializer, varpool_next_static_initializer,
24268 varpool_first_defined_variable, varpool_next_defined_variable):
24270 (symtab_in_same_comdat_p): Correctly deal with inline functions.
24272 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24274 * ggc-page.c (ggc_handle_finalizers): Add comment.
24276 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24278 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
24279 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
24280 (ggc_internal_cleared_alloc): Likewise.
24281 * ggc-page.c (finalizer): New class.
24282 (vec_finalizer): Likewise.
24283 (globals::finalizers): New member.
24284 (globals::vec_finalizers): Likewise.
24285 (ggc_internal_alloc): Record the finalizer if any for the block being
24287 (ggc_handle_finalizers): New function.
24288 (ggc_collect): Call ggc_handle_finalizers.
24289 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
24291 (ggc_internal_cleared_alloc): Likewise.
24292 (finalize): New function.
24293 (need_finalization_p): Likewise.
24294 (ggc_alloc): Install the type's destructor as the finalizer if it
24295 might do something.
24296 (ggc_cleared_alloc): Likewise.
24297 (ggc_vec_alloc): Likewise.
24298 (ggc_cleared_vec_alloc): Likewise.
24300 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24302 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
24304 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24306 * alias.c (record_alias_subset): Adjust.
24307 * bitmap.c (bitmap_element_allocate): Likewise.
24308 (bitmap_gc_alloc_stat): Likewise.
24309 * cfg.c (init_flow): Likewise.
24310 (alloc_block): Likewise.
24311 (unchecked_make_edge): Likewise.
24312 * cfgloop.c (alloc_loop): Likewise.
24313 (flow_loops_find): Likewise.
24314 (rescan_loop_exit): Likewise.
24315 * cfgrtl.c (init_rtl_bb_info): Likewise.
24316 * cgraph.c (insert_new_cgraph_node_version): Likewise.
24317 (cgraph_allocate_node): Likewise.
24318 (cgraph_create_edge_1): Likewise.
24319 (cgraph_allocate_init_indirect_info): Likewise.
24320 * cgraphclones.c (cgraph_clone_edge): Likewise.
24321 * cgraphunit.c (add_asm_node): Likewise.
24322 (init_lowered_empty_function): Likewise.
24323 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
24324 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24325 (alpha_use_linkage): Likewise.
24326 * config/arc/arc.c (arc_init_machine_status): Likewise.
24327 * config/arm/arm.c (arm_init_machine_status): Likewise.
24328 * config/avr/avr.c (avr_init_machine_status): Likewise.
24329 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24330 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
24331 * config/cris/cris.c (cris_init_machine_status): Likewise.
24332 * config/darwin.c (machopic_indirection_name): Likewise.
24333 (darwin_build_constant_cfstring): Likewise.
24334 (darwin_enter_string_into_cfstring_table): Likewise.
24335 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
24336 * config/frv/frv.c (frv_init_machine_status): Likewise.
24337 * config/i386/i386.c (get_dllimport_decl): Likewise.
24338 (ix86_init_machine_status): Likewise.
24339 (assign_386_stack_local): Likewise.
24340 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24341 (i386_pe_maybe_record_exported_symbol): Likewise.
24342 (i386_pe_record_stub): Likewise.
24343 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24344 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24345 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24346 (m32c_note_pragma_address): Likewise.
24347 * config/mep/mep.c (mep_init_machine_status): Likewise.
24348 (mep_note_pragma_flag): Likewise.
24349 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24350 (mips16_local_alias): Likewise.
24351 (mips_init_machine_status): Likewise.
24352 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24353 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24354 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
24355 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
24356 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
24357 * config/pa/pa.c (pa_init_machine_status): Likewise.
24358 (pa_get_deferred_plabel): Likewise.
24359 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
24360 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24361 (rs6000_init_machine_status): Likewise.
24362 (output_toc): Likewise.
24363 * config/s390/s390.c (s390_init_machine_status): Likewise.
24364 * config/score/score.c (score_output_external): Likewise.
24365 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24366 * config/spu/spu.c (spu_init_machine_status): Likewise.
24367 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
24368 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
24369 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24370 * coverage.c (coverage_end_function): Likewise.
24371 * dbxout.c (dbxout_init): Likewise.
24372 * doc/gty.texi: Don't mention variable_size attribute.
24373 * dwarf2cfi.c (new_cfi): Adjust.
24374 (new_cfi_row): Likewise.
24375 (copy_cfi_row): Likewise.
24376 (create_cie_data): Likewise.
24377 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
24378 (new_loc_descr): Likewise.
24379 (find_AT_string_in_table): Likewise.
24380 (add_addr_table_entry): Likewise.
24381 (new_die): Likewise.
24382 (add_var_loc_to_decl): Likewise.
24383 (clone_die): Likewise.
24384 (clone_as_declaration): Likewise.
24385 (break_out_comdat_types): Likewise.
24386 (new_loc_list): Likewise.
24387 (add_loc_descr_to_each): Likewise.
24388 (add_location_or_const_value_attribute): Likewise.
24389 (add_linkage_name): Likewise.
24390 (lookup_filename): Likewise.
24391 (dwarf2out_var_location): Likewise.
24392 (new_line_info_table): Likewise.
24393 (dwarf2out_init): Likewise.
24394 (mem_loc_descriptor): Likewise.
24395 (loc_descriptor): Likewise.
24396 (add_const_value_attribute): Likewise.
24397 (tree_add_const_value_attribute): Likewise.
24398 (comp_dir_string): Likewise.
24399 (dwarf2out_vms_debug_main_pointer): Likewise.
24400 (string_cst_pool_decl): Likewise.
24401 * emit-rtl.c (set_mem_attrs): Likewise.
24402 (get_reg_attrs): Likewise.
24403 (start_sequence): Likewise.
24404 (init_emit): Likewise.
24405 (init_emit_regs): Likewise.
24406 * except.c (init_eh_for_function): Likewise.
24407 (gen_eh_region): Likewise.
24408 (gen_eh_region_catch): Likewise.
24409 (gen_eh_landing_pad): Likewise.
24410 (add_call_site): Likewise.
24411 * function.c (add_frame_space): Likewise.
24412 (insert_temp_slot_address): Likewise.
24413 (assign_stack_temp_for_type): Likewise.
24414 (get_hard_reg_initial_val): Likewise.
24415 (allocate_struct_function): Likewise.
24416 (prepare_function_start): Likewise.
24417 (types_used_by_var_decl_insert): Likewise.
24418 * gengtype.c (variable_size_p): Remove function.
24419 (enum alloc_quantity): Remove enum.
24420 (write_typed_alloc_def): Remove function.
24421 (write_typed_struct_alloc_def): Likewise.
24422 (write_typed_typedef_alloc_def): Likewise.
24423 (write_typed_alloc_defns): Likewise.
24425 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
24426 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
24427 * ggc.h (ggc_alloc): new function.
24428 (ggc_cleared_alloc): Likewise.
24429 (ggc_vec_alloc): Template on type of vector element, and remove
24430 element size argument.
24431 (ggc_cleared_vec_alloc): Likewise.
24432 * gimple.c (gimple_build_omp_for): Adjust.
24433 (gimple_copy): Likewise.
24434 * ipa-cp.c (get_replacement_map): Likewise.
24435 (find_aggregate_values_for_callers_subset): Likewise.
24436 (known_aggs_to_agg_replacement_list): Likewise.
24437 * ipa-devirt.c (get_odr_type): Likewise.
24438 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
24439 (read_agg_replacement_chain): Likewise.
24440 * loop-iv.c (get_simple_loop_desc): Likewise.
24441 * lto-cgraph.c (input_node_opt_summary): Likewise.
24442 * lto-section-in.c (lto_new_in_decl_state): Likewise.
24443 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24444 (input_eh_region): Likewise.
24445 (input_eh_lp): Likewise.
24446 (input_cfg): Likewise.
24447 * optabs.c (set_optab_libfunc): Likewise.
24448 (init_tree_optimization_optabs): Likewise.
24449 (set_conv_libfunc): Likewise.
24450 * passes.c (do_per_function_toporder): Likewise.
24451 * rtl.h: Don't use variable_size gty attribute.
24452 * sese.c (if_region_set_false_region): Adjust.
24453 * stringpool.c (gt_pch_save_stringpool): Likewise.
24454 * target-globals.c (save_target_globals): Likewise.
24455 * toplev.c (general_init): Likewise.
24456 * trans-mem.c (record_tm_replacement): Likewise.
24457 (split_bb_make_tm_edge): Likewise.
24458 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24459 * tree-data-ref.h (lambda_vector_new): Likewise.
24460 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24461 * tree-iterator.c (tsi_link_before): Likewise.
24462 (tsi_link_after): Likewise.
24463 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24464 * tree-ssa-loop-niter.c (record_estimate): Likewise.
24465 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24466 * tree-ssa-operands.h: Don't use variable_size gty attribute.
24467 * tree-ssa.c (init_tree_ssa): Adjust.
24468 * tree-ssanames.c (set_range_info): Likewise.
24469 (get_ptr_info): Likewise.
24470 (duplicate_ssa_name_ptr_info): Likewise.
24471 (duplicate_ssa_name_range_info): Likewise.
24472 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
24473 (unpack_ts_fixed_cst_value_fields): Likewise.
24474 * tree.c (build_fixed): Likewise.
24475 (build_real): Likewise.
24476 (build_string): Likewise.
24477 (decl_priority_info): Likewise.
24478 (decl_debug_expr_insert): Likewise.
24479 (decl_value_expr_insert): Likewise.
24480 (decl_debug_args_insert): Likewise.
24481 (type_hash_add): Likewise.
24482 (build_omp_clause): Likewise.
24483 * ubsan.c (decl_for_type_insert): Likewise.
24484 * varasm.c (get_unnamed_section): Likewise.
24485 (get_noswitch_section): Likewise.
24486 (get_section): Likewise.
24487 (get_block_for_section): Likewise.
24488 (create_block_symbol): Likewise.
24489 (build_constant_desc): Likewise.
24490 (create_constant_pool): Likewise.
24491 (force_const_mem): Likewise.
24492 (record_tm_clone_pair): Likewise.
24493 * varpool.c (varpool_create_empty_node): Likewise.
24495 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24497 * dwarf2out.c (tree_add_const_value_attribute): Call
24498 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24499 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24500 instead of ggc_internal_<x>alloc_stat.
24501 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24502 (ggc_realloc): Likewise.
24503 * ggc-none.c (ggc_internal_alloc): Likewise.
24504 (ggc_internal_cleared_alloc): Likewise.
24505 * ggc-page.c: Likewise.
24506 * ggc.h (ggc_internal_alloc_stat): Likewise.
24507 (ggc_internal_alloc): Remove macro.
24508 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24509 (ggc_internal_cleared_alloc): Remove macro.
24510 (GGC_RESIZEVEC): Adjust.
24511 (ggc_resizevar): Remove macro.
24512 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24513 (ggc_internal_cleared_vec_alloc_stat): Likewise.
24514 (ggc_internal_vec_cleared_alloc): Remove macro.
24515 (ggc_alloc_atomic_stat): Drop _stat suffix.
24516 (ggc_alloc_atomic): Remove macro.
24517 (ggc_alloc_cleared_atomic): Remove macro.
24518 (ggc_alloc_string_stat): Drop _stat suffix.
24519 (ggc_alloc_string): Remove macro.
24520 (ggc_alloc_rtx_def_stat): Adjust.
24521 (ggc_alloc_tree_node_stat): Likewise.
24522 (ggc_alloc_cleared_tree_node_stat): Likewise.
24523 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24524 (ggc_alloc_cleared_simd_clone_stat): Likewise.
24525 * gimple.c (gimple_build_omp_for): Likewise.
24526 (gimple_copy): Likewise.
24527 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24528 * toplev.c (realloc_for_line_map): Adjust.
24529 * tree-data-ref.h (lambda_vector_new): Likewise.
24530 * tree-phinodes.c (allocate_phi_node): Likewise.
24531 * tree.c (grow_tree_vec_stat): Likewise.
24532 * vec.h (va_gc::reserve): Adjust.
24534 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
24536 * config/microblaze/microblaze.c (break_handler): New Declaration.
24537 (microblaze_break_function_p,microblaze_is_break_handler): New.
24538 (compute_frame_size): Use microblaze_break_function_p.
24539 Add the test of break_handler.
24540 (microblaze_function_prologue) : Add the test of variable
24541 break_handler. Check the fnname by BREAK_HANDLER_NAME.
24542 (microblaze_function_epilogue) : Add the test of break_handler.
24543 (microblaze_globalize_label) : Add the test of break_handler.
24544 Check the name by BREAK_HANDLER_NAME.
24546 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24548 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24549 microblaze_is_break_handler test.
24550 (call_internal1,call_value_intern): Use microblaze_break_function_p.
24551 Use SYMBOL_REF_DECL.
24553 * config/microblaze/microblaze-protos.h
24554 (microblaze_break_function_p,microblaze_is_break_handler):
24557 * doc/extend.texi (MicroBlaze break_handler Functions): Document
24558 new MicroBlaze break_handler functions.
24560 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24562 * doc/extend.texi (Size of an asm): Move node text according
24563 to its @menu entry position.
24565 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
24567 PR tree-optimization/61140
24568 PR tree-optimization/61150
24569 PR tree-optimization/61197
24570 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24572 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24574 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
24576 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
24578 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
24579 __SIZEOF_INT128__ is defined.
24581 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24583 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
24584 (rs6000_delegitimize_address): Use it.
24586 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24588 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
24589 inplace argument. Store the new address in the original MEM when true.
24590 * emit-rtl.c (change_address_1): Likewise.
24591 (adjust_address_1, adjust_automodify_address_1, offset_address):
24592 Update accordingly.
24593 * rtl.h (plus_constant): Add an inplace argument.
24594 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
24595 when true. Avoid generating (plus X (const_int 0)).
24596 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24597 in-place. Pass true to plus_constant.
24598 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24600 2014-05-16 Dehao Chen <dehao@google.com>
24602 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24604 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24607 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24609 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24611 2014-05-16 Dehao Chen <dehao@google.com>
24613 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24614 optimize_function_for_size_p.
24615 * regs.h (REG_FREQ_FROM_BB): Likewise.
24617 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24620 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24621 negt_reg_operand cases.
24622 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24624 * config/sh/predicates.md (cbranch_treg_value): Simplify.
24626 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24628 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
24631 2014-05-16 David Malcolm <dmalcolm@redhat.com>
24634 2014-04-29 David Malcolm <dmalcolm@redhat.com>
24636 * tree-cfg.c (dump_function_to_file): Dump the return type of
24637 functions, in a line to itself before the function body, mimicking
24638 the layout of a C function.
24640 2014-05-16 Dehao Chen <dehao@google.com>
24642 * cfghooks.c (make_forwarder_block): Use direct computation to
24643 get fall-through edge's count and frequency.
24645 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
24647 * config/arc/arc.c (arc_init): Fix typo in error message.
24648 * config/i386/i386.c (ix86_expand_builtin): Likewise.
24649 (split_stack_prologue_scratch_regno): Likewise.
24650 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
24651 word from error message.
24653 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24655 * ira-costs.c: Fix typo in comment.
24657 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
24659 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
24661 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
24663 * varpool.c (dump_varpool_node): Dump write-only flag.
24664 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
24666 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
24667 write-only variables.
24668 * ipa.c (process_references): New function.
24669 (set_readonly_bit): New function.
24670 (set_writeonly_bit): New function.
24671 (clear_addressable_bit): New function.
24672 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
24673 fix handling of aliases.
24674 * cgraph.h (struct varpool_node): Add writeonly flag.
24676 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
24678 PR rtl-optimization/60969
24679 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
24680 Calculate costs for this case.
24682 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
24684 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
24685 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
24687 2014-05-16 Richard Biener <rguenther@suse.de>
24689 PR tree-optimization/61194
24690 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
24691 bool patterns ending in a COND_EXPR.
24693 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24695 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
24697 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24699 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
24700 where we were unable to cost an RTX.
24702 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24704 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
24707 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24708 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24710 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
24712 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24713 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24715 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
24716 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
24718 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24719 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24721 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
24724 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24725 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24727 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24730 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24731 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24733 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
24734 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
24736 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24737 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24739 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24740 rotates and shifts.
24742 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24743 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24745 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
24746 ZERO_EXTEND and SIGN_EXTEND better.
24748 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24749 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24751 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
24752 logical operations.
24754 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24755 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24757 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
24758 costs when costing loads and stores to memory.
24760 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24761 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
24763 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
24766 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24768 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
24770 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24771 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24773 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
24775 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
24777 (aarch64_rtx_mult_cost): New.
24778 (aarch64_rtx_costs): Use it, refactor as appropriate.
24780 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24781 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24783 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
24784 emit instructions, return number of instructions which would
24786 (aarch64_add_constant): Update call to aarch64_build_constant.
24787 (aarch64_output_mi_thunk): Likewise.
24788 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
24791 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24793 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
24794 (TARGET_RTX_COSTS): Call it.
24796 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24798 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
24799 (cortexa57_vector_cost): Likewise.
24800 (cortexa57_tunings): Use them.
24802 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24804 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
24805 (cpu_addrcost_table): Use it.
24806 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
24807 (aarch64_address_cost): Rewrite using aarch64_classify_address,
24810 2014-05-16 Richard Biener <rguenther@suse.de>
24812 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
24813 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
24814 (visit_phi): Ignore edges marked as not executable.
24815 (class cond_dom_walker): New.
24816 (cond_dom_walker::before_dom_children): Value-number
24817 control statements and mark successor edges as not
24818 executable if possible.
24819 (run_scc_vn): First walk all control statements in
24820 dominator order, marking edges as not executable.
24821 * tree-inline.c (copy_edges_for_bb): Be not confused
24822 about random edge flags.
24824 2014-05-16 Richard Biener <rguenther@suse.de>
24826 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
24828 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
24831 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
24832 (__TM_simple_begin): Use it.
24833 (__TM_begin): Likewise.
24835 2014-05-15 Martin Jambor <mjambor@suse.cz>
24838 * ipa-prop.c (update_indirect_edges_after_inlining): Check
24839 type_preserved flag when the indirect edge is polymorphic.
24841 2014-05-15 Martin Jambor <mjambor@suse.cz>
24843 PR tree-optimization/61090
24844 * tree-sra.c (sra_modify_expr): Pass the current gsi to
24845 build_ref_for_model.
24847 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24849 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
24850 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
24852 2014-05-15 Jakub Jelinek <jakub@redhat.com>
24854 PR tree-optimization/61158
24855 * fold-const.c (fold_binary_loc): If X is zero-extended and
24856 shiftc >= prec, make sure zerobits is all ones instead of
24857 invoking undefined behavior.
24859 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24861 * regcprop.h: New file.
24862 * regcprop.c (skip_debug_insn_p): New decl.
24863 (replace_oldest_value_reg): Check skip_debug_insn_p.
24864 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
24865 * shrink-wrap.c: Include regcprop.h.
24866 (prepare_shrink_wrap): Call
24867 copyprop_hardreg_forward_bb_without_debug_insn.
24869 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24871 * shrink-wrap.h: Update comment.
24872 * shrink-wrap.c: Update comment.
24873 (next_block_for_reg): Rename to live_edge_for_reg.
24874 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
24875 (move_insn_for_shrink_wrap): Split live_edge.
24876 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
24878 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
24880 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
24882 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
24883 * config/sparc/sparc.md (fptype_ut699): New attribute.
24884 (in_branch_delay): Return false if -mfix-ut699 is specified and
24885 fptype_ut699 is set to single.
24886 (truncdfsf2): Add fptype_ut699 attribute.
24887 (fix_truncdfsi2): Likewise.
24888 (floatsisf2): Change fptype attribute.
24889 (fix_truncsfsi2): Likewise.
24890 (negtf2_notv9): Delete.
24891 (negtf2_v9): Likewise.
24892 (negtf2_hq): New instruction.
24893 (negtf2): New instruction and splitter.
24894 (negdf2_notv9): Rewrite.
24895 (abstf2_notv9): Delete.
24896 (abstf2_hq_v9): Likewise.
24897 (abstf2_v9): Likewise.
24898 (abstf2_hq): New instruction.
24899 (abstf2): New instruction and splitter.
24900 (absdf2_notv9): Rewrite.
24902 2014-05-14 Cary Coutant <ccoutant@google.com>
24905 * opts.c (common_handle_option): Don't special-case "-g".
24906 (set_debug_level): Default to at least level 2 with "-g".
24908 2014-05-14 DJ Delorie <dj@redhat.com>
24910 * config/msp430/msp430.c (msp430_builtin): Add
24911 MSP430_BUILTIN_DELAY_CYCLES.
24912 (msp430_init_builtins): Register void __delay_cycles(long long).
24913 (msp430_builtin_decl): Add it.
24914 (cg_magic_constant): New.
24915 (msp430_expand_delay_cycles): New.
24916 (msp430_expand_builtin): Call it.
24917 (msp430_print_operand_raw): Change integer printing from "int" to
24919 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
24920 (delay_cycles_start): New.
24921 (delay_cycles_end): New.
24922 (delay_cycles_32): New.
24923 (delay_cycles_32x): New.
24924 (delay_cycles_16): New.
24925 (delay_cycles_16x): New.
24926 (delay_cycles_2): New.
24927 (delay_cycles_1): New.
24928 * doc/extend.texi: Document __delay_cycles().
24930 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
24932 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
24933 length attribute computation.
24935 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
24938 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
24940 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
24943 * config/sparc/sparc.md: Fix types of low and high in DI constant
24944 splitter. Use gen_int_mode in some other splitters.
24946 2014-05-14 Martin Jambor <mjambor@suse.cz>
24949 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
24951 2014-05-14 James Norris <jnorris@codesourcery.com>
24953 * omp-low.c (expand_parallel_call): Remove shadow variable.
24954 (expand_omp_taskreg): Likewise.
24956 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
24958 * common/config/i386/i386-common.c
24959 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
24960 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
24961 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
24962 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
24963 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
24964 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
24965 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
24966 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
24967 xsavecintrin.h, xsavesintrin.h.
24968 (x86_64-*-*): Ditto.
24969 * config/i386/clflushoptintrin.h: New.
24970 * config/i386/xsavecintrin.h: Ditto.
24971 * config/i386/xsavesintrin.h: Ditto.
24972 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
24973 (bit_XSAVES): Ditto.
24974 (bit_XSAVES): Ditto.
24975 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24976 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
24978 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24979 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
24980 OPTION_MASK_ISA_XSAVES.
24981 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
24982 -mxsavec, -mxsaves.
24983 (PTA_CLFLUSHOPT) Define.
24984 (PTA_XSAVEC): Ditto.
24985 (PTA_XSAVES): Ditto.
24986 (ix86_option_override_internal): Handle new options.
24987 (ix86_valid_target_attribute_inner_p): Ditto.
24988 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
24989 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
24990 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
24991 (bdesc_special_args): Add __builtin_ia32_xsaves,
24992 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
24993 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
24994 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
24995 (ix86_expand_builtin): Handle new builtins.
24996 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
24997 (TARGET_CLFLUSHOPT_P): Ditto.
24998 (TARGET_XSAVEC): Ditto.
24999 (TARGET_XSAVEC_P): Ditto.
25000 (TARGET_XSAVES): Ditto.
25001 (TARGET_XSAVES_P): Ditto.
25002 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25003 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25004 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25006 (ANY_XRSTOR64): Ditto.
25008 (xrstor): Change into <xrstor>.
25009 (xrstor_rex64): Change into <xrstor>_rex64.
25010 (xrstor64): Change into <xrstor>64
25012 * config/i386/i386.opt (mclflushopt): New.
25015 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25017 * doc/invoke.texi: Document new options.
25019 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25021 PR rtl-optimization/60866
25022 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25023 Default it to -1. Pass it down to init_simplejump_data.
25024 (init_simplejump_data): New parameter old_seqno. Pass it down
25025 to get_seqno_for_a_jump.
25026 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
25027 initializing new jump seqno as a last resort. Add comment.
25028 (sel_redirect_edge_and_branch): Save old seqno of the conditional
25029 jump and pass it down to sel_init_new_insn.
25030 (sel_redirect_edge_and_branch_force): Likewise.
25032 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
25034 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25035 shifted values to avoid build warning.
25037 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25039 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25040 * cfgrtl.c (rtl_merge_blocks): Fix comment.
25041 (cfg_layout_merge_blocks): Likewise.
25042 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25044 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25046 PR rtl-optimization/60901
25047 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25048 bb predecessor belongs to the same scheduling region. Adjust comment.
25050 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
25052 * doc/sourcebuild.texi: (dfp_hw): Document.
25053 (p8vector_hw): Likewise.
25054 (powerpc_eabi_ok): Likewise.
25055 (powerpc_elfv2): Likewise.
25056 (powerpc_htm_ok): Likewise.
25057 (ppc_recip_hw): Likewise.
25058 (vsx_hw): Likewise.
25060 2014-05-13 Cary Coutant <ccoutant@google.com>
25062 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25064 2014-05-13 David Malcolm <dmalcolm@redhat.com>
25066 * gengtype-parse.c (require3): Eliminate in favor of...
25068 (require_template_declaration): Update to support optional single *
25071 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25072 (create_user_defined_type): Handle a single level of explicit
25073 pointerness within template arguments.
25074 (struct write_types_data): Add field "kind".
25075 (filter_type_name): Handle "*" character.
25076 (write_user_func_for_structure_ptr): Require a write_types_data
25077 rather than just a prefix string, so that we can look up the kind
25078 of the wtd and use it as an index into wrote_user_func_for_ptr,
25079 ensuring that such functions are written at most once. Support
25080 subclasses by invoking the marking function of the ultimate base class.
25081 (write_user_func_for_structure_body): Require a write_types_data
25082 rather than just a prefix string, so that we can pass this to
25083 write_user_func_for_structure_ptr.
25084 (write_func_for_structure): Likewise.
25085 (ggc_wtd): Add initializer of new "kind" field.
25086 (pch_wtd): Likewise.
25088 * gengtype.h (enum write_types_kinds): New.
25089 (struct type): Add field wrote_user_func_for_ptr to the "s"
25092 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25094 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25095 instead of const_binop.
25096 (fold_binary_loc): Likewise.
25098 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25100 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
25101 calculation to match get_ref_base_and_extent.
25103 2014-05-13 Catherine Moore <clm@codesourcery.com>
25104 Sandra Loosemore <sandra@codesourcery.com>
25106 * configure.ac: Fix assembly for explicit JALR relocation check.
25107 * configure: Regenerate.
25109 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25111 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
25112 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
25113 Remove associated type declarations and initialisations.
25114 (arm_expand_neon_builtin): Likewise.
25115 (neon_emit_pair_result_insn): Delete.
25116 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
25117 * config/arm/neon.md (neon_vtrn<mode>): Delete.
25118 (neon_vzip<mode>): Likewise.
25119 (neon_vuzp<mode>): Likewise.
25121 2014-05-13 Richard Biener <rguenther@suse.de>
25124 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
25125 it needs revisiting whether the call still may be tail-called.
25127 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25129 * rtl.def (SYMBOL_REF): Remove middle "0" field.
25130 * rtl.h (block_symbol): Reduce number of fields to 2.
25131 (rtx_def): Add u2.symbol_ref_flags.
25132 (SYMBOL_REF_FLAGS): Use it.
25133 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25134 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25135 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25136 Lower index of SYMBOL_REF_DATA.
25137 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25138 Print SYMBOL_REF_FLAGS at the same time.
25139 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25141 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25143 * rtl.def (VAR_LOCATION): Remove "i" field.
25144 * rtl.h (rtx_def): Add u2.var_location_status.
25145 (PAT_VAR_LOCATION_STATUS): Use it.
25146 (gen_rtx_VAR_LOCATION): Declare.
25147 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25148 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25149 * var-tracking.c (emit_note_insn_var_location): Remove casts.
25151 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25153 * rtl.def (scratch): Fix outdated comment and remove "0" field.
25154 * gengtype.c (adjust_field_rtx_def): Update accordingly.
25156 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25158 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25159 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25160 * rtl.h (rtx_def): Add insn_uid to u2 field.
25161 (RTX_FLAG_CHECK8): Delete in favor of...
25162 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25163 (INSN_DELETED_P): Update accordingly.
25164 (INSN_UID): Use u2.insn_uid.
25165 (INSN_CHAIN_CODE_P): Define.
25166 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25167 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25168 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25169 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25170 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25171 indices accordingly.
25172 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25173 Update indices for insn-chain rtxes.
25174 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25175 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25176 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25177 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25178 * combine.c (try_combine): Likewise.
25179 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25181 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25183 * rtl.def (REG): Remove middle field.
25184 * rtl.h (rtx_def): Add orignal_regno to u2.
25185 (ORIGINAL_REGNO): Use it instead of field 1.
25186 (REG_ATTRS): Lower field index accordingly.
25187 * gengtype.c (adjust_field_rtx_def): Remove handling of
25188 ORIGINAL_REGNO. Move REG_ATTRS index down.
25189 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25190 code that prints the REGNO.
25192 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25194 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25197 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25199 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25201 2014-05-13 Bin Cheng <bin.cheng@arm.com>
25203 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25204 (alloc_iv): Lower base expressions containing ADDR_EXPR.
25206 2014-05-13 Ian Bolton <ian.bolton@arm.com>
25208 * config/aarch64/aarch64-protos.h
25209 (aarch64_hard_regno_caller_save_mode): New prototype.
25210 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25212 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25214 2014-05-13 Christian Bruel <christian.bruel@st.com>
25216 * target.def (mode_switching): New hook vector.
25217 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25218 (mode_exit, modepriority_to_mode): Likewise.
25219 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25220 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25221 * target.h: Include tm.h and hard-reg-set.h.
25222 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25223 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25224 * doc/tm.texi Regenerate.
25225 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25226 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25227 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25228 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25229 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25230 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25231 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25232 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
25233 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
25234 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
25235 (ix86_emit_mode_set): Hookify.
25236 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
25238 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25239 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
25240 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
25241 (epiphany_mode_priority_to_mode): Remove declaration.
25242 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
25243 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
25244 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
25246 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
25247 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
25248 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
25250 2014-05-13 Jakub Jelinek <jakub@redhat.com>
25253 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
25254 is const0_rtx, return immediately. Don't test count == 0 when
25257 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25259 * Makefile.in: add shrink-wrap.o.
25260 * config/i386/i386.c: include "shrink-wrap.h"
25261 * function.c: Likewise.
25262 (requires_stack_frame_p, next_block_for_reg,
25263 move_insn_for_shrink_wrap, prepare_shrink_wrap,
25264 dup_block_and_redirect): Move to shrink-wrap.c
25265 (thread_prologue_and_epilogue_insns): Extract three code segments
25266 as functions in shrink-wrap.c
25267 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
25269 * shrink-wrap.c: New file.
25270 * shrink-wrap.h: New file.
25272 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25274 * doc/extend.texi: Reflect current numbers of pragmas. Remove
25275 reference to Solaris.
25277 2014-05-12 Mike Stump <mikestump@comcast.net>
25280 * genattrtab.c (filename): Add.
25281 (convert_set_attr_alternative): Improve error message.
25282 (check_defs): Restore read_md_filename for error messages.
25283 (gen_insn): Save filename.
25285 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
25287 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
25288 -fno-local-ivars and -fivar-visibility.
25289 * c-family/c.opt: Make -Wshadow also implicitly enable
25292 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25294 * doc/tm.texi: Remove reference to deleted macro.
25295 * doc/tm.texi.in: Likewise.
25297 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25300 * config/avr/avr.c (avr_out_store_psi): Use correct constant
25303 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
25306 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
25307 * config/arm/aout.h (License): Same.
25308 * config/arm/bpabi.h (License): Same.
25309 * config/arm/elf.h (License): Same.
25310 * config/arm/linux-elf.h (License): Same.
25311 * config/arm/linux-gas.h (License): Same.
25312 * config/arm/netbsd-elf.h (License): Same.
25313 * config/arm/uclinux-eabi.h (License): Same.
25314 * config/arm/uclinux-elf.h (License): Same.
25315 * config/arm/vxworks.h (License): Same.
25317 2014-05-11 Jakub Jelinek <jakub@redhat.com>
25319 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
25320 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
25321 number of operands to 3.
25322 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
25323 * tree-nested.c (convert_nonlocal_omp_clauses,
25324 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
25325 * gimplify.c (gimplify_scan_omp_clauses): Handle
25326 OMP_CLAUSE_LINEAR_STMT.
25327 * omp-low.c (lower_rec_input_clauses): Fix typo.
25328 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
25329 cast between Fortran boolean_type_node and C _Bool if
25332 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
25334 PR tree-optimization/61136
25335 * wide-int.h (multiple_of_p): Define a version that doesn't return
25337 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
25338 integer_zerop/const_binop pair.
25339 (multiple_of_p): Likewise, converting both operands to widest_int
25342 2014-05-09 Teresa Johnson <tejohnson@google.com>
25344 * cgraphunit.c (analyze_functions): Use correct dump file.
25346 2014-05-09 Florian Weimer <fweimer@redhat.com>
25348 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
25350 (stack_protect_return_slot_p): New function.
25351 (expand_used_vars): Call stack_protect_decl_p and
25352 stack_protect_return_slot_p for -fstack-protector-strong.
25354 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
25355 Andrew Haley <aph@redhat.com>
25356 Richard Sandiford <rdsandiford@googlemail.com>
25358 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
25361 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
25363 PR middle-end/61111
25364 * fold-const.c (fold_binary_loc): Changed width of mask.
25366 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25368 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
25369 unsigned int initializers for regno_in, regno_out.
25371 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25374 * config/avr/avr.md (cc): Add new attribute set_vzn.
25375 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
25376 Set cc insn attribute to set_vzn instead of set_zn for alternatives
25377 with INC, DEC or NEG.
25378 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
25379 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
25380 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
25382 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25385 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25387 * wide-int.cc (UTItype): Define.
25388 (UDWtype): Define for appropriate W_TYPE_SIZE.
25390 2014-05-09 Richard Biener <rguenther@suse.de>
25392 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
25393 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
25394 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
25395 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
25396 ssa_propagate): Adjust.
25398 2014-05-08 Jeff Law <law@redhat.com>
25400 PR tree-optimization/61009
25401 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
25402 tri-state rather than a boolean. When a block is too big to
25403 thread through, inform caller via negative return value.
25404 (thread_across_edge): If a block was too big for normal threading,
25405 then it's too big for a joiner too, so remove temporary equivalences
25406 and return immediately.
25408 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
25409 Matthias Klose <doko@ubuntu.com>
25412 * optc-gen.awk: Fix option handling for -Wunused-parameter.
25414 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25417 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
25419 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25422 * config/alpha/alpha.c: Include gimple-iterator.h.
25423 (alpha_gimple_fold_builtin): New function. Move
25424 ALPHA_BUILTIN_UMULH folding from ...
25425 (alpha_fold_builtin): ... here.
25426 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
25428 2014-05-08 Wei Mi <wmi@google.com>
25431 * config/i386/i386.c (ix86_compute_frame_layout): Update
25432 preferred_stack_boundary for call, expanded from tls descriptor.
25433 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
25434 to depend on SP register.
25435 (*tls_local_dynamic_base_32_gnu): Ditto.
25436 (*tls_local_dynamic_32_once): Ditto.
25437 (tls_global_dynamic_64_<mode>): Set
25438 ix86_tls_descriptor_calls_expanded_in_cfun.
25439 (tls_local_dynamic_base_64_<mode>): Ditto.
25440 (tls_global_dynamic_32): Set
25441 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
25442 to depend on SP register.
25443 (tls_local_dynamic_base_32): Ditto.
25445 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25447 * config/arm/arm_neon.h: Update comment.
25448 * config/arm/neon-docgen.ml: Delete.
25449 * config/arm/neon-gen.ml: Delete.
25450 * doc/arm-neon-intrinsics.texi: Update comment.
25452 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25454 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
25456 (vand, vorr, veor, vorn, vbic): Remove.
25457 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
25459 (neon_vsub_unspec): Likewise.
25460 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
25462 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25464 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
25465 (vadd_s16): Likewise.
25466 (vadd_s32): Likewise.
25467 (vadd_f32): Likewise.
25468 (vadd_u8): Likewise.
25469 (vadd_u16): Likewise.
25470 (vadd_u32): Likewise.
25471 (vadd_s64): Likewise.
25472 (vadd_u64): Likewise.
25473 (vaddq_s8): Likewise.
25474 (vaddq_s16): Likewise.
25475 (vaddq_s32): Likewise.
25476 (vaddq_s64): Likewise.
25477 (vaddq_f32): Likewise.
25478 (vaddq_u8): Likewise.
25479 (vaddq_u16): Likewise.
25480 (vaddq_u32): Likewise.
25481 (vaddq_u64): Likewise.
25482 (vmul_s8): Likewise.
25483 (vmul_s16): Likewise.
25484 (vmul_s32): Likewise.
25485 (vmul_f32): Likewise.
25486 (vmul_u8): Likewise.
25487 (vmul_u16): Likewise.
25488 (vmul_u32): Likewise.
25489 (vmul_p8): Likewise.
25490 (vmulq_s8): Likewise.
25491 (vmulq_s16): Likewise.
25492 (vmulq_s32): Likewise.
25493 (vmulq_f32): Likewise.
25494 (vmulq_u8): Likewise.
25495 (vmulq_u16): Likewise.
25496 (vmulq_u32): Likewise.
25497 (vsub_s8): Likewise.
25498 (vsub_s16): Likewise.
25499 (vsub_s32): Likewise.
25500 (vsub_f32): Likewise.
25501 (vsub_u8): Likewise.
25502 (vsub_u16): Likewise.
25503 (vsub_u32): Likewise.
25504 (vsub_s64): Likewise.
25505 (vsub_u64): Likewise.
25506 (vsubq_s8): Likewise.
25507 (vsubq_s16): Likewise.
25508 (vsubq_s32): Likewise.
25509 (vsubq_s64): Likewise.
25510 (vsubq_f32): Likewise.
25511 (vsubq_u8): Likewise.
25512 (vsubq_u16): Likewise.
25513 (vsubq_u32): Likewise.
25514 (vsubq_u64): Likewise.
25515 (vand_s8): Likewise.
25516 (vand_s16): Likewise.
25517 (vand_s32): Likewise.
25518 (vand_u8): Likewise.
25519 (vand_u16): Likewise.
25520 (vand_u32): Likewise.
25521 (vand_s64): Likewise.
25522 (vand_u64): Likewise.
25523 (vandq_s8): Likewise.
25524 (vandq_s16): Likewise.
25525 (vandq_s32): Likewise.
25526 (vandq_s64): Likewise.
25527 (vandq_u8): Likewise.
25528 (vandq_u16): Likewise.
25529 (vandq_u32): Likewise.
25530 (vandq_u64): Likewise.
25531 (vorr_s8): Likewise.
25532 (vorr_s16): Likewise.
25533 (vorr_s32): Likewise.
25534 (vorr_u8): Likewise.
25535 (vorr_u16): Likewise.
25536 (vorr_u32): Likewise.
25537 (vorr_s64): Likewise.
25538 (vorr_u64): Likewise.
25539 (vorrq_s8): Likewise.
25540 (vorrq_s16): Likewise.
25541 (vorrq_s32): Likewise.
25542 (vorrq_s64): Likewise.
25543 (vorrq_u8): Likewise.
25544 (vorrq_u16): Likewise.
25545 (vorrq_u32): Likewise.
25546 (vorrq_u64): Likewise.
25547 (veor_s8): Likewise.
25548 (veor_s16): Likewise.
25549 (veor_s32): Likewise.
25550 (veor_u8): Likewise.
25551 (veor_u16): Likewise.
25552 (veor_u32): Likewise.
25553 (veor_s64): Likewise.
25554 (veor_u64): Likewise.
25555 (veorq_s8): Likewise.
25556 (veorq_s16): Likewise.
25557 (veorq_s32): Likewise.
25558 (veorq_s64): Likewise.
25559 (veorq_u8): Likewise.
25560 (veorq_u16): Likewise.
25561 (veorq_u32): Likewise.
25562 (veorq_u64): Likewise.
25563 (vbic_s8): Likewise.
25564 (vbic_s16): Likewise.
25565 (vbic_s32): Likewise.
25566 (vbic_u8): Likewise.
25567 (vbic_u16): Likewise.
25568 (vbic_u32): Likewise.
25569 (vbic_s64): Likewise.
25570 (vbic_u64): Likewise.
25571 (vbicq_s8): Likewise.
25572 (vbicq_s16): Likewise.
25573 (vbicq_s32): Likewise.
25574 (vbicq_s64): Likewise.
25575 (vbicq_u8): Likewise.
25576 (vbicq_u16): Likewise.
25577 (vbicq_u32): Likewise.
25578 (vbicq_u64): Likewise.
25579 (vorn_s8): Likewise.
25580 (vorn_s16): Likewise.
25581 (vorn_s32): Likewise.
25582 (vorn_u8): Likewise.
25583 (vorn_u16): Likewise.
25584 (vorn_u32): Likewise.
25585 (vorn_s64): Likewise.
25586 (vorn_u64): Likewise.
25587 (vornq_s8): Likewise.
25588 (vornq_s16): Likewise.
25589 (vornq_s32): Likewise.
25590 (vornq_s64): Likewise.
25591 (vornq_u8): Likewise.
25592 (vornq_u16): Likewise.
25593 (vornq_u32): Likewise.
25594 (vornq_u64): Likewise.
25596 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25598 * wide-int.cc (UTItype): Define.
25599 (UDWtype): Define for appropriate W_TYPE_SIZE.
25601 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
25603 PR tree-optimization/59100
25604 * tree-ssa-phiopt.c: Include tree-inline.h.
25605 (neutral_element_p, absorbing_element_p): New functions.
25606 (value_replacement): Handle conditional binary operations with a
25607 neutral or absorbing element.
25609 2014-05-08 Richard Biener <rguenther@suse.de>
25611 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25612 folding the expression.
25613 (valueize_expr): Remove.
25614 (visit_reference_op_load): Do not valueize the result of
25616 (simplify_binary_expression): Likewise.
25617 (simplify_unary_expression): Likewise.
25619 2014-05-08 Richard Biener <rguenther@suse.de>
25621 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25622 looking at TYPE_ARG_TYPES.
25624 2014-05-08 Richard Biener <rguenther@suse.de>
25626 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
25627 pointer propagation special-case.
25629 2014-05-08 Bin Cheng <bin.cheng@arm.com>
25631 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
25632 core part of address expressions.
25634 2014-05-08 Alan Modra <amodra@gmail.com>
25637 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
25638 loads and stores when -mno-strict-align at any alignment.
25639 (expand_block_clear): Similarly. Also correct calculation of
25642 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
25644 PR middle-end/39246
25645 * tree-complex.c (expand_complex_move): Keep line info when expanding
25647 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
25648 of complex expression. Use new argument to display correct location
25649 for values coming from phi statement.
25650 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
25651 (warn_uninitialized_phi): Pass location of phi argument to
25653 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
25654 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
25656 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25658 * config/rs6000/predicates.md (indexed_address_mem): New.
25659 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
25660 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
25661 fpstore_ux, fpstore_u.
25662 (sign_extend, indexed, update): New.
25663 (cell_micro): Adjust.
25664 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
25665 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
25666 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
25667 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
25668 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
25669 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
25670 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
25671 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
25672 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
25673 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
25674 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
25675 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
25676 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
25677 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
25678 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
25680 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
25681 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
25682 *vsx_extract_<mode>_store): Adjust.
25683 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
25684 is_cracked_insn, insn_must_be_first_in_group,
25685 insn_must_be_last_in_group): Adjust.
25687 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
25689 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
25690 ppc440-fpstore): Adjust.
25691 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
25692 ppc476-fpstore): Adjust.
25693 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
25694 ppc601-fpstore): Adjust.
25695 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
25697 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
25699 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
25700 ppc7450-fpstore): Adjust.
25701 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
25702 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
25703 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
25705 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
25706 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
25707 cell-fpstore, cell-fpstore-update): Adjust.
25708 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
25709 ppce300c3_store, ppce300c3_fpstore): Adjust.
25710 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
25711 e500mc_fpstore): Adjust.
25712 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
25713 e500mc64_store, e500mc64_fpstore): Adjust.
25714 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
25715 e5500_fpstore): Adjust.
25716 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
25717 e6500_fpstore): Adjust.
25718 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
25720 * config/rs6000/power4.md (power4-load, power4-load-ext,
25721 power4-load-ext-update, power4-load-ext-update-indexed,
25722 power4-load-update-indexed, power4-load-update, power4-fpload,
25723 power4-fpload-update, power4-store, power4-store-update,
25724 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
25726 * config/rs6000/power5.md (power5-load, power5-load-ext,
25727 power5-load-ext-update, power5-load-ext-update-indexed,
25728 power5-load-update-indexed, power5-load-update, power5-fpload,
25729 power5-fpload-update, power5-store, power5-store-update,
25730 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
25732 * config/rs6000/power6.md (power6-load, power6-load-ext,
25733 power6-load-update, power6-load-update-indexed,
25734 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
25735 power6-fpload-update, power6-store, power6-store-update,
25736 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
25738 * config/rs6000/power7.md (power7-load, power7-load-ext,
25739 power7-load-update, power7-load-update-indexed,
25740 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
25741 power7-fpload-update, power7-store, power7-store-update,
25742 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
25744 * config/rs6000/power8.md (power8-load, power8-load-update,
25745 power8-load-ext, power8-load-ext-update, power8-fpload,
25746 power8-fpload-update, power8-store, power8-store-update-indexed,
25747 power8-fpstore, power8-fpstore-update): Adjust.
25748 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
25750 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
25751 titan_lsu_store, titan_lsu_fpstore): Adjust.
25752 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
25754 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25757 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
25758 unrolled byte insns. Emit address increments after move insns.
25760 2014-05-07 David Malcolm <dmalcolm@redhat.com>
25762 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
25763 const_gimple, rather than a gimple.
25764 (gimple_call_builtin_p): Likewise, for the three variants.
25766 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
25767 (gimple_call_builtin_p): Likewise, for the three variants.
25769 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25771 PR tree-optimization/61095
25772 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
25774 2014-05-07 Richard Biener <rguenther@suse.de>
25776 PR tree-optimization/61034
25777 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
25778 (maybe_skip_until): Use translate to take into account
25779 lattices when trying to do disambiguations.
25780 (get_continuation_for_phi_1): Likewise.
25781 (get_continuation_for_phi): Adjust for added translate arguments.
25782 (walk_non_aliased_vuses): Likewise.
25783 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
25784 (walk_non_aliased_vuses): Likewise.
25785 (call_may_clobber_ref_p_1): Declare.
25786 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
25787 calls. Stop early if we are only supposed to disambiguate.
25788 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
25790 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
25792 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
25793 Emit an error when the function has arguments.
25795 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
25797 * cfgloop.h (unswitch_loops): Remove.
25798 * doc/passes.texi: Remove references to loop-unswitch.c
25799 * timevar.def (TV_LOOP_UNSWITCH): Remove.
25801 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
25803 * tree-vect-data-refs.c (vect_grouped_load_supported): New
25804 check for loads group of length 3.
25805 (vect_permute_load_chain): New permutations for loads group of
25807 * tree-vect-stmts.c (vect_model_load_cost): Change cost
25808 of vec_perm_shuffle for the new permutations.
25810 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
25812 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
25813 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
25814 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
25815 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
25816 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
25817 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
25818 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
25819 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
25821 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
25823 * loop-unswitch.c: Delete.
25825 2014-05-07 Richard Biener <rguenther@suse.de>
25827 * config.gcc: Always set need_64bit_hwint to yes.
25829 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
25831 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
25832 of using optimize_size.
25834 2014-05-06 Mike Stump <mikestump@comcast.net>
25836 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
25838 2014-05-06 Joseph Myers <joseph@codesourcery.com>
25840 * config/i386/sse.md (*mov<mode>_internal)
25841 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
25842 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
25843 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
25844 (*<code><mode>3, *andnot<mode>3<mask_name>)
25845 (<mask_codefor><code><mode>3<mask_name>): Only consider
25846 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
25848 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25851 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
25853 * lra-constraints.c (valid_address_p): Move earlier in file.
25854 Add a constraint argument to the address_info version.
25855 (satisfies_memory_constraint_p): New function.
25856 (satisfies_address_constraint_p): Likewise.
25857 (process_alt_operands, curr_insn_transform): Use them.
25858 (process_address): Pass the constraint to valid_address_p when
25859 checking address operands.
25861 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
25863 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
25864 to their respective blocks. Fix inadvertent use of "node".
25866 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25868 * emit-rtl.c (init_derived_machine_modes): New functionm, split
25870 (init_emit_once): ...here.
25871 * rtl.h (init_derived_machine_modes): Declare.
25872 * toplev.c (do_compile): Call it even if no_backend.
25874 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
25875 Mike Stump <mikestump@comcast.net>
25876 Richard Sandiford <rdsandiford@googlemail.com>
25877 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25879 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
25880 (rtx_equal_for_memref_p): Update comment.
25881 (adjust_offset_for_component_ref): Use wide-int interfaces.
25882 * builtins.c (get_object_alignment_2): Likewise.
25883 (c_readstr): Likewise.
25884 (target_char_cast): Add comment.
25885 (determine_block_size): Use wide-int interfaces.
25886 (expand_builtin_signbit): Likewise.
25887 (fold_builtin_int_roundingfn): Likewise.
25888 (fold_builtin_bitop): Likewise.
25889 (fold_builtin_bswap): Likewise.
25890 (fold_builtin_logarithm): Use signop.
25891 (fold_builtin_pow): Likewise.
25892 (fold_builtin_memory_op): Use wide-int interfaces.
25893 (fold_builtin_object_size): Likewise.
25894 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
25895 nb_iterations_estimate.
25896 (record_niter_bound): Use wide-int interfaces.
25897 (get_estimated_loop_iterations_int): Likewise.
25898 (get_estimated_loop_iterations): Likewise.
25899 (get_max_loop_iterations): Likewise.
25900 * cfgloop.h: Include wide-int.h.
25901 (struct nb_iter_bound): Change bound to widest_int.
25902 (struct loop): Change nb_iterations_upper_bound and
25903 nb_iterations_estimate to widest_int.
25904 (record_niter_bound): Switch to use widest_int.
25905 (get_estimated_loop_iterations): Likewise.
25906 (get_max_loop_iterations): Likewise.
25907 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
25908 update for wide-int.
25909 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
25910 * combine.c (try_combine): Likewise.
25911 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
25912 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
25914 (aarch64_float_const_representable_p): Likewise.
25915 * config/arc/arc.c: Include wide-int.h.
25916 (arc_can_use_doloop_p): Use wide-int interfaces.
25917 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
25918 (vfp3_const_double_index): Likewise.
25919 * config/avr/avr.c (avr_out_round): Likewise.
25920 (avr_fold_builtin): Likewise.
25921 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
25922 (bfin_can_use_doloop_p): Likewise.
25923 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
25924 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
25925 * config/i386/i386.c: Include wide-int.h.
25926 (ix86_data_alignment): Use wide-int interfaces.
25927 (ix86_local_alignment): Likewise.
25928 (ix86_emit_swsqrtsf): Update real_from_integer.
25929 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
25930 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
25931 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
25932 (zero_constant): Likewise.
25933 (input_operand): Likewise.
25934 (splat_input_operand): Likewise.
25935 (non_logical_cint_operand): Change const_double to const_wide_int.
25936 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
25937 (easy_altivec_constant): Remove comment.
25938 (paired_expand_vector_init): Use CONSTANT_P.
25939 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
25940 (rs6000_emit_move): Update checks.
25941 (rs6000_aggregate_candidate): Use wide-int interfaces.
25942 (rs6000_expand_ternop_builtin): Likewise.
25943 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
25944 (rs6000_assemble_integer): Likewise.
25945 (rs6000_hash_constant): Likewise.
25946 (output_toc): Likewise.
25947 (rs6000_rtx_costs): Likewise.
25948 (rs6000_emit_swrsqrt); Update call to real_from_integer.
25949 * config/rs6000/rs6000-c.c: Include wide-int.h.
25950 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
25951 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
25952 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
25953 Handle CONST_WIDE_INT.
25954 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
25955 Use tree_fits_uhwi_p.
25956 * config/sparc/sparc.c: Include wide-int.h.
25957 (sparc_fold_builtin): Use wide-int interfaces.
25958 * config/vax/vax.c: Include wide-int.h.
25959 (vax_float_literal): Use real_from_integer.
25960 * coretypes.h (struct hwivec_def): New.
25962 (const_hwivec): New.
25963 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
25964 (equiv_constant): Handle CONST_WIDE_INT.
25965 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
25966 (cselib_hash_rtx): Handle CONST_WIDE_INT.
25967 * dbxout.c (stabstr_U): Use wide-int interfaces.
25968 (dbxout_type): Update to use cst_fits_shwi_p.
25969 * defaults.h (LOG2_BITS_PER_UNIT): Define.
25970 (TARGET_SUPPORTS_WIDE_INT): Add default.
25971 * dfp.c: Include wide-int.h.
25972 (decimal_real_to_integer2): Use wide-int interfaces and rename to
25973 decimal_real_to_integer.
25974 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
25975 decimal_real_to_integer.
25976 * doc/generic.texi (Constant expressions): Update for wide_int.
25977 * doc/rtl.texi (const_double): Likewise.
25978 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
25979 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
25980 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
25981 (REAL_VALUE_FROM_INT): Remove.
25982 (TARGET_SUPPORTS_WIDE_INT): New.
25983 * doc/tm.texi: Regenerate.
25984 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
25985 * double-int.h: Include wide-int.h.
25986 (struct wi::int_traits): New.
25987 * dwarf2out.c (get_full_len): New.
25988 (dw_val_equal_p): Add case dw_val_class_wide_int.
25989 (size_of_loc_descr): Likewise.
25990 (output_loc_operands): Likewise.
25991 (insert_double): Remove.
25992 (insert_wide_int): New.
25993 (add_AT_wide): New.
25994 (print_die): Add case dw_val_class_wide_int.
25995 (attr_checksum): Likewise.
25996 (attr_checksum_ordered): Likewise.
25997 (same_dw_val_p): Likewise.
25998 (size_of_die): Likewise.
25999 (value_format): Likewise.
26000 (output_die): Likewise.
26001 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26003 (clz_loc_descriptor): Use wide-int interfaces.
26004 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
26005 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
26006 (round_up_to_align): Use wide-int interfaces.
26007 (field_byte_offset): Likewise.
26008 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
26009 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
26010 CONST_DOUBLE handling. Use wide-int interfaces.
26011 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
26012 (gen_enumeration_type_die): Use add_AT_wide.
26013 (hash_loc_operands): Add case dw_val_class_wide_int.
26014 (compare_loc_operands): Likewise.
26015 * dwarf2out.h: Include wide-int.h.
26016 (wide_int_ptr): New.
26017 (enum dw_val_class): Add dw_val_class_wide_int.
26018 (struct dw_val_struct): Add val_wide.
26019 * emit-rtl.c (const_wide_int_htab): New.
26020 (const_wide_int_htab_hash): New.
26021 (const_wide_int_htab_eq): New.
26022 (lookup_const_wide_int): New.
26023 (const_double_htab_hash): Use wide-int interfaces.
26024 (const_double_htab_eq): Likewise.
26025 (rtx_to_double_int): Conditionally compile for wide-int.
26026 (immed_double_int_const): Rename to immed_wide_int_const and
26027 update for wide-int.
26028 (immed_double_const): Conditionally compile for wide-int.
26029 (init_emit_once): Use wide-int interfaces.
26030 * explow.c (plus_constant): Likewise.
26031 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
26032 (lshift_value): Use wide-int interfaces.
26033 (expand_mult): Likewise.
26034 (choose_multiplier): Likewise.
26035 (expand_smod_pow2): Likewise.
26036 (make_tree): Likewise.
26037 * expr.c (convert_modes): Consolidate handling of constants.
26038 Use wide-int interfaces.
26039 (emit_group_load_1): Add note.
26040 (store_expr): Update comment.
26041 (get_inner_reference): Use wide-int interfaces.
26042 (expand_constructor): Update comment.
26043 (expand_expr_real_2): Use wide-int interfaces.
26044 (expand_expr_real_1): Likewise.
26045 (reduce_to_bit_field_precision): Likewise.
26046 (const_vector_from_tree): Likewise.
26047 * final.c: Include wide-int-print.h.
26048 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
26049 * fixed-value.c: Include wide-int.h.
26050 (fixed_from_string): Use wide-int interfaces.
26051 (fixed_to_decimal): Likewise.
26052 (fixed_convert_from_real): Likewise.
26053 (real_convert_from_fixed): Likewise.
26054 * fold-const.h (mem_ref_offset): Return an offset_int.
26055 (div_if_zero_remainder): Remove code parameter.
26056 * fold-const.c (div_if_zero_remainder): Remove code parameter.
26057 Use wide-int interfaces.
26058 (may_negate_without_overflow_p): Use wide-int interfaces.
26059 (negate_expr_p): Likewise.
26060 (fold_negate_expr): Likewise.
26061 (int_const_binop_1): Likewise.
26062 (const_binop): Likewise.
26063 (fold_convert_const_int_from_int): Likewise.
26064 (fold_convert_const_int_from_real): Likewise.
26065 (fold_convert_const_int_from_fixed): Likewise.
26066 (fold_convert_const_fixed_from_int): Likewise.
26067 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
26068 (sign_bit_p): Use wide-int interfaces.
26069 (make_range_step): Likewise.
26070 (build_range_check): Likewise. Pass an integer of the correct type
26071 instead of using integer_one_node.
26072 (range_predecessor): Pass an integer of the correct type instead
26073 of using integer_one_node.
26074 (range_successor): Likewise.
26075 (merge_ranges): Likewise.
26076 (unextend): Use wide-int interfaces.
26077 (extract_muldiv_1): Likewise.
26078 (fold_div_compare): Likewise.
26079 (fold_single_bit_test): Likewise.
26080 (fold_sign_changed_comparison): Likewise.
26081 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26082 (fold_plusminus_mult_expr): Use wide-int interfaces.
26083 (native_encode_int): Likewise.
26084 (native_interpret_int): Likewise.
26085 (fold_unary_loc): Likewise.
26086 (pointer_may_wrap_p): Likewise.
26087 (size_low_cst): Likewise.
26088 (mask_with_tz): Likewise.
26089 (fold_binary_loc): Likewise.
26090 (fold_ternary_loc): Likewise.
26091 (multiple_of_p): Likewise.
26092 (tree_call_nonnegative_warnv_p): Update calls to
26093 tree_int_cst_min_precision and real_from_integer.
26094 (fold_negate_const): Use wide-int interfaces.
26095 (fold_abs_const): Likewise.
26096 (fold_relational_const): Use tree_int_cst_lt.
26097 (round_up_loc): Use wide-int interfaces.
26098 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
26099 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
26100 * gengtype.c: Remove include of double-int.h.
26101 (do_typedef): Use wide-int interfaces.
26102 (open_base_files): Add wide-int.h.
26103 (main): Add offset_int and widest_int typedefs.
26104 * gengtype-lex.l: Handle "^".
26105 (CXX_KEYWORD): Add "static".
26106 * gengtype-parse.c (require3): New.
26107 (require_template_declaration): Handle constant template arguments
26108 and nested templates.
26109 * gengtype-state.c: Don't include "double-int.h".
26110 * genpreds.c (write_one_predicate_function): Update comment.
26111 (write_tm_constrs_h): Add check for hval and lval use in
26113 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
26114 (add_to_sequence): Likewise.
26115 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
26116 and const_double_operand.
26117 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
26119 * gimple-fold.c (get_base_constructor): Likewise.
26120 (fold_array_ctor_reference): Likewise.
26121 (fold_nonarray_ctor_reference): Likewise.
26122 (fold_const_aggregate_ref_1): Likewise.
26123 (gimple_val_nonnegative_real_p): Likewise.
26124 (gimple_fold_indirect_ref): Likewise.
26125 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
26126 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
26127 (struct slsr_cand_d): Change index to be widest_int.
26128 (struct incr_info_d): Change incr to be widest_int.
26129 (alloc_cand_and_find_basis): Use wide-int interfaces.
26130 (slsr_process_phi): Likewise.
26131 (backtrace_base_for_ref): Likewise. Return a widest_int.
26132 (restructure_reference): Take a widest_int instead of a double_int.
26133 (slsr_process_ref): Use wide-int interfaces.
26134 (create_mul_ssa_cand): Likewise.
26135 (create_mul_imm_cand): Likewise.
26136 (create_add_ssa_cand): Likewise.
26137 (create_add_imm_cand): Take a widest_int instead of a double_int.
26138 (slsr_process_add): Use wide-int interfaces.
26139 (slsr_process_cast): Likewise.
26140 (slsr_process_copy): Likewise.
26141 (dump_candidate): Likewise.
26142 (dump_incr_vec): Likewise.
26143 (replace_ref): Likewise.
26144 (cand_increment): Likewise. Return a widest_int.
26145 (cand_abs_increment): Likewise.
26146 (replace_mult_candidate): Take a widest_int instead of a double_int.
26147 (replace_unconditional_candidate): Use wide-int interfaces.
26148 (incr_vec_index): Take a widest_int instead of a double_int.
26149 (create_add_on_incoming_edge): Likewise.
26150 (create_phi_basis): Use wide-int interfaces.
26151 (replace_conditional_candidate): Likewise.
26152 (record_increment): Take a widest_int instead of a double_int.
26153 (record_phi_increments): Use wide-int interfaces.
26154 (phi_incr_cost): Take a widest_int instead of a double_int.
26155 (lowest_cost_path): Likewise.
26156 (total_savings): Likewise.
26157 (analyze_increments): Use wide-int interfaces.
26158 (ncd_with_phi): Take a widest_int instead of a double_int.
26159 (ncd_of_cand_and_phis): Likewise.
26160 (nearest_common_dominator_for_cands): Likewise.
26161 (insert_initializers): Use wide-int interfaces.
26162 (all_phi_incrs_profitable): Likewise.
26163 (replace_one_candidate): Likewise.
26164 (replace_profitable_candidates): Likewise.
26165 * godump.c: Include wide-int-print.h.
26166 (go_output_typedef): Use wide-int interfaces.
26167 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26168 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26169 (build_loop_iteration_domains): Likewise.
26170 * hooks.h: Include wide-int.h rather than double-int.h.
26171 (hook_bool_dint_dint_uint_bool_true): Delete.
26172 (hook_bool_wint_wint_uint_bool_true): Declare.
26173 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26174 (hook_bool_wint_wint_uint_bool_true): New.
26175 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26177 (ubsan_expand_si_overflow_mul_check): Likewise.
26178 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26179 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26180 (get_ancestor_addr_info): Likewise.
26181 (ipa_modify_call_arguments): Likewise.
26182 * loop-doloop.c (doloop_modify): Likewise.
26183 (doloop_optimize): Likewise.
26184 * loop-iv.c (iv_number_of_iterations): Likewise.
26185 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26186 (unroll_loop_constant_iterations): Likewise.
26187 (decide_unroll_runtime_iterations): Likewise.
26188 (unroll_loop_runtime_iterations): Likewise.
26189 (decide_peel_simple): Likewise.
26190 (decide_unroll_stupid): Likewise.
26191 * lto-streamer-in.c (streamer_read_wi): Add.
26192 (input_cfg): Use wide-int interfaces.
26193 (lto_input_tree_1): Likewise.
26194 * lto-streamer-out.c (streamer_write_wi): Add.
26195 (hash_tree): Use wide-int interfaces.
26196 (output_cfg): Likewise.
26197 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26198 (GTFILES): Add wide-int.h and signop.h.
26199 (TAGS): Look for .cc files too.
26200 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26201 * optabs.c (expand_subword_shift): Likewise.
26202 (expand_doubleword_shift): Likewise.
26203 (expand_absneg_bit): Likewise.
26204 (expand_copysign_absneg): Likewise.
26205 (expand_copysign_bit): Likewise.
26206 * postreload.c (reload_cse_simplify_set): Likewise.
26207 * predict.c (predict_iv_comparison): Likewise.
26208 * pretty-print.h: Include wide-int-print.h.
26210 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26211 * print-tree.c: Include wide-int-print.h.
26212 (print_node_brief): Use wide-int interfaces.
26213 (print_node): Likewise.
26214 * read-rtl.c (validate_const_wide_int): New.
26215 (read_rtx_code): Add CONST_WIDE_INT case.
26216 * real.c: Include wide-int.h.
26217 (real_to_integer2): Delete.
26218 (real_to_integer): New function, returning a wide_int.
26219 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26220 (ten_to_ptwo): Update call to real_from_integer.
26221 (real_digit): Likewise.
26222 * real.h: Include signop.h, wide-int.h and insn-modes.h.
26223 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26224 (REAL_VALUE_TO_INT): Delete.
26225 (real_to_integer): Declare a wide-int form.
26226 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26227 * recog.c (const_int_operand): Improve comment.
26228 (const_scalar_int_operand): New.
26229 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26230 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26231 (split_double): Likewise.
26232 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
26233 (rtx_size): Likewise.
26234 (rtx_alloc_stat_v): New.
26235 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
26236 (cwi_output_hex): New.
26237 (iterative_hash_rtx): Handle CONST_WIDE_INT.
26238 (cwi_check_failed_bounds): New.
26239 * rtl.def (CONST_WIDE_INT): New.
26240 * rtl.h: Include <utility> and wide-int.h.
26241 (struct hwivec_def): New.
26242 (CWI_GET_NUM_ELEM): New.
26243 (CWI_PUT_NUM_ELEM): New.
26244 (struct rtx_def): Add num_elem and hwiv.
26245 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
26246 (CASE_CONST_UNIQUE): Likewise.
26247 (CASE_CONST_ANY): Likewise.
26248 (CONST_SCALAR_INT_P): Likewise.
26249 (CONST_WIDE_INT_P): New.
26251 (HWIVEC_CHECK): New.
26252 (cwi_check_failed_bounds): New.
26254 (HWIVEC_CHECK): New.
26255 (CONST_WIDE_INT_VEC) New.
26256 (CONST_WIDE_INT_NUNITS) New.
26257 (CONST_WIDE_INT_ELT) New.
26258 (rtx_mode_t): New type.
26259 (wi::int_traits <rtx_mode_t>): New.
26261 (wi::min_value): New.
26262 (wi::max_value): New.
26264 (const_wide_int_alloc): New.
26265 (immed_wide_int_const): New.
26266 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
26267 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
26268 * signop.h: New file.
26269 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
26270 (simplify_const_unary_operation): Use wide-int interfaces.
26271 (simplify_binary_operation_1): Likewise.
26272 (simplify_const_binary_operation): Likewise.
26273 (simplify_const_relational_operation): Likewise.
26274 (simplify_immed_subreg): Likewise.
26275 * stmt.c (expand_case): Likewise.
26276 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
26277 signop rather than a bool.
26278 * stor-layout.c (layout_type): Use wide-int interfaces.
26279 (initialize_sizetypes): Update calls to
26280 set_min_and_max_values_for_integral_type.
26281 (set_min_and_max_values_for_integral_type): Take a signop rather
26282 than a bool. Use wide-int interfaces.
26283 (fixup_signed_type): Update accordingly. Remove
26284 HOST_BITS_PER_DOUBLE_INT limit.
26285 (fixup_unsigned_type): Likewise.
26286 * system.h (STATIC_CONSTANT_P): New.
26287 (STATIC_ASSERT): New.
26288 * target.def (can_use_doloop_p): Take widest_ints rather than
26290 * target.h: Include wide-int.h rather than double-int.h.
26291 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
26293 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
26294 rather than INT_CST_LT_UNSIGNED.
26295 (can_use_doloop_if_innermost): Take widest_ints rather than
26297 * tree-affine.c: Include wide-int-print.h.
26298 (double_int_ext_for_comb): Delete.
26299 (wide_int_ext_for_comb): New.
26300 (aff_combination_zero): Use wide-int interfaces.
26301 (aff_combination_const): Take a widest_int instead of a double_int.
26302 (aff_combination_elt): Use wide-int interfaces.
26303 (aff_combination_scale): Take a widest_int instead of a double_int.
26304 (aff_combination_add_elt): Likewise.
26305 (aff_combination_add_cst): Likewise.
26306 (aff_combination_add): Use wide-int interfaces.
26307 (aff_combination_convert): Likewise.
26308 (tree_to_aff_combination): Likewise.
26309 (add_elt_to_tree): Take a widest_int instead of a double_int.
26310 (aff_combination_to_tree): Use wide-int interfaces.
26311 (aff_combination_remove_elt): Likewise.
26312 (aff_combination_add_product): Take a widest_int instead of
26314 (aff_combination_mult): Use wide-int interfaces.
26315 (aff_combination_expand): Likewise.
26316 (double_int_constant_multiple_p): Delete.
26317 (wide_int_constant_multiple_p): New.
26318 (aff_combination_constant_multiple_p): Take a widest_int pointer
26319 instead of a double_int pointer.
26320 (print_aff): Use wide-int interfaces.
26321 (get_inner_reference_aff): Take a widest_int pointer
26322 instead of a double_int pointer.
26323 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
26324 * tree-affine.h: Include wide-int.h.
26325 (struct aff_comb_elt): Change type of coef to widest_int.
26326 (struct affine_tree_combination): Change type of offset to widest_int.
26327 (double_int_ext_for_comb): Delete.
26328 (wide_int_ext_for_comb): New.
26329 (aff_combination_const): Use widest_int instead of double_int.
26330 (aff_combination_scale): Likewise.
26331 (aff_combination_add_elt): Likewise.
26332 (aff_combination_constant_multiple_p): Likewise.
26333 (get_inner_reference_aff): Likewise.
26334 (aff_comb_cannot_overlap_p): Likewise.
26335 (aff_combination_zero_p): Use wide-int interfaces.
26336 * tree.c: Include tree.h.
26337 (init_ttree): Use make_int_cst.
26338 (tree_code_size): Removed code for INTEGER_CST case.
26339 (tree_size): Add INTEGER_CST case.
26340 (make_node_stat): Update comment.
26341 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
26342 (build_int_cst_type): Use wide-int interfaces.
26343 (double_int_to_tree): Likewise.
26344 (double_int_fits_to_tree_p): Delete.
26345 (force_fit_type_double): Delete.
26346 (force_fit_type): New.
26347 (int_cst_hash_hash): Use wide-int interfaces.
26348 (int_cst_hash_eq): Likewise.
26349 (build_int_cst_wide): Delete.
26350 (wide_int_to_tree): New.
26351 (cache_integer_cst): Use wide-int interfaces.
26352 (build_low_bits_mask): Likewise.
26353 (cst_and_fits_in_hwi): Likewise.
26354 (real_value_from_int_cst): Likewise.
26355 (make_int_cst_stat): New.
26356 (integer_zerop): Use wide_int interfaces.
26357 (integer_onep): Likewise.
26358 (integer_all_onesp): Likewise.
26359 (integer_pow2p): Likewise.
26360 (integer_nonzerop): Likewise.
26361 (tree_log2): Likewise.
26362 (tree_floor_log2): Likewise.
26363 (tree_ctz): Likewise.
26364 (int_size_in_bytes): Likewise.
26365 (mem_ref_offset): Return an offset_int rather than a double_int.
26366 (build_type_attribute_qual_variant): Use wide_int interfaces.
26367 (type_hash_eq): Likewise
26368 (tree_int_cst_equal): Likewise.
26369 (tree_int_cst_lt): Delete.
26370 (tree_int_cst_compare): Likewise.
26371 (tree_fits_shwi_p): Use wide_int interfaces.
26372 (tree_fits_uhwi_p): Likewise.
26373 (tree_int_cst_sign_bit): Likewise.
26374 (tree_int_cst_sgn): Likewise.
26375 (tree_int_cst_min_precision): Take a signop rather than a bool.
26376 (simple_cst_equal): Use wide_int interfaces.
26377 (compare_tree_int): Likewise.
26378 (iterative_hash_expr): Likewise.
26379 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
26381 (get_type_static_bounds): Use wide_int interfaces.
26382 (tree_int_cst_elt_check_failed): New.
26383 (build_common_tree_nodes): Reordered to set prec before filling in
26385 (int_cst_value): Check cst_and_fits_in_hwi.
26386 (widest_int_cst_value): Use wide_int interfaces.
26387 (upper_bound_in_type): Likewise.
26388 (lower_bound_in_type): Likewise.
26389 (num_ending_zeros): Likewise.
26390 (drop_tree_overflow): Likewise.
26391 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
26392 (gen_conditions_for_pow_cst_base): Likewise.
26393 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
26394 (group_case_labels_stmt): Use wide-int interfaces.
26395 (verify_gimple_assign_binary): Likewise.
26396 (print_loop): Likewise.
26397 * tree-chrec.c (tree_fold_binomial): Likewise.
26398 * tree-core.h (struct tree_base): Add int_length.
26399 (struct tree_int_cst): Change rep of value.
26400 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
26401 (dr_may_alias_p): Likewise.
26402 (max_stmt_executions_tree): Likewise.
26403 * tree.def (INTEGER_CST): Update comment.
26404 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
26405 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
26406 * tree-dump.c: Include wide-int.h and wide-int-print.h.
26407 (dequeue_and_dump): Use wide-int interfaces.
26408 * tree.h: Include wide-int.h.
26409 (NULL_TREE): Moved to earlier loc in file.
26410 (TREE_INT_CST_ELT_CHECK): New.
26411 (tree_int_cst_elt_check_failed): New.
26413 (TREE_INT_CST): Delete.
26414 (TREE_INT_CST_LOW): Use wide-int interfaces.
26415 (TREE_INT_CST_HIGH): Delete.
26416 (TREE_INT_CST_NUNITS): New.
26417 (TREE_INT_CST_EXT_NUNITS): Likewise.
26418 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
26419 (TREE_INT_CST_ELT): Likewise.
26420 (INT_CST_LT): Delete.
26421 (tree_int_cst_elt_check): New (two forms).
26422 (type_code_size): Update comment.
26423 (make_int_cst_stat, make_int_cst): New.
26424 (tree_to_double_int): Delete.
26425 (double_int_fits_to_tree_p): Delete.
26426 (force_fit_type_double): Delete.
26427 (build_int_cstu): Replace with out-of-line function.
26428 (build_int_cst_wide): Delete.
26429 (tree_int_cst_lt): Define inline.
26430 (tree_int_cst_le): New.
26431 (tree_int_cst_compare): Define inline.
26432 (tree_int_cst_min_precision): Take a signop rather than a bool.
26433 (wi::int_traits <const_tree>): New.
26434 (wi::int_traits <tree>): New.
26435 (wi::extended_tree): New.
26436 (wi::int_traits <wi::extended_tree>): New.
26437 (wi::to_widest): New.
26438 (wi::to_offset): New.
26439 (wi::fits_to_tree_p): New.
26440 (wi::min_value): New.
26441 (wi::max_value): New.
26442 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
26443 (copy_tree_body_r): Likewise.
26444 * tree-object-size.c (compute_object_offset): Likewise.
26445 (addr_object_size): Likewise.
26446 * tree-predcom.c: Include wide-int-print.h.
26447 (struct dref_d): Change type of offset to widest_int.
26448 (dump_dref): Call wide-int printer.
26449 (aff_combination_dr_offset): Use wide-int interfaces.
26450 (determine_offset): Take a widest_int pointer rather than a
26451 double_int pointer.
26452 (split_data_refs_to_components): Use wide-int interfaces.
26453 (suitable_component_p): Likewise.
26454 (order_drefs): Likewise.
26455 (add_ref_to_chain): Likewise.
26456 (valid_initializer_p): Likewise.
26457 (determine_roots_comp): Likewise.
26458 * tree-pretty-print.c: Include wide-int-print.h.
26459 (dump_generic_node): Use wide-int interfaces.
26460 * tree-sra.c (sra_ipa_modify_expr): Likewise.
26461 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
26462 (move_fixed_address_to_symbol): Likewise.
26463 (move_hint_to_base): Likewise.
26464 (move_pointer_to_base): Likewise.
26465 (move_variant_to_index): Likewise.
26466 (most_expensive_mult_to_index): Likewise.
26467 (addr_to_parts): Likewise.
26468 (copy_ref_info): Likewise.
26469 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26470 (indirect_refs_may_alias_p): Likewise.
26471 (stmt_kills_ref_p_1): Likewise.
26472 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
26473 * tree-ssa-ccp.c: Update comment at top of file. Include
26475 (struct prop_value_d): Change type of mask to widest_int.
26476 (extend_mask): New function.
26477 (dump_lattice_value): Use wide-int interfaces.
26478 (get_default_value): Likewise.
26479 (set_constant_value): Likewise.
26480 (set_value_varying): Likewise.
26481 (valid_lattice_transition): Likewise.
26482 (set_lattice_value): Likewise.
26483 (value_to_double_int): Delete.
26484 (value_to_wide_int): New.
26485 (get_value_from_alignment): Use wide-int interfaces.
26486 (get_value_for_expr): Likewise.
26487 (do_dbg_cnt): Likewise.
26488 (ccp_finalize): Likewise.
26489 (ccp_lattice_meet): Likewise.
26490 (bit_value_unop_1): Use widest_ints rather than double_ints.
26491 (bit_value_binop_1): Likewise.
26492 (bit_value_unop): Use wide-int interfaces.
26493 (bit_value_binop): Likewise.
26494 (bit_value_assume_aligned): Likewise.
26495 (evaluate_stmt): Likewise.
26496 (ccp_fold_stmt): Likewise.
26497 (visit_cond_stmt): Likewise.
26498 (ccp_visit_stmt): Likewise.
26499 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26500 (constant_pointer_difference): Likewise.
26501 (associate_pointerplus): Likewise.
26502 (combine_conversions): Likewise.
26503 * tree-ssa-loop.h: Include wide-int.h.
26504 (struct tree_niter_desc): Change type of max to widest_int.
26505 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26506 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26507 (remove_redundant_iv_tests): Likewise.
26508 (canonicalize_loop_induction_variables): Likewise.
26509 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26510 (constant_multiple_of): Take a widest_int pointer instead of
26511 a double_int pointer.
26512 (get_computation_aff): Use wide-int interfaces.
26513 (ptr_difference_cost): Likewise.
26514 (difference_cost): Likewise.
26515 (get_loop_invariant_expr_id): Likewise.
26516 (get_computation_cost_at): Likewise.
26517 (iv_elimination_compare_lt): Likewise.
26518 (may_eliminate_iv): Likewise.
26519 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26520 instead of double_int.
26521 (max_loop_iterations): Likewise.
26522 (max_stmt_executions): Likewise.
26523 (estimated_stmt_executions): Likewise.
26524 * tree-ssa-loop-niter.c: Include wide-int-print.h.
26525 (split_to_var_and_offset): Use wide-int interfaces.
26526 (determine_value_range): Likewise.
26527 (bound_difference_of_offsetted_base): Likewise.
26528 (bounds_add): Take a widest_int instead of a double_int.
26529 (number_of_iterations_ne_max): Use wide-int interfaces.
26530 (number_of_iterations_ne): Likewise.
26531 (number_of_iterations_lt_to_ne): Likewise.
26532 (assert_loop_rolls_lt): Likewise.
26533 (number_of_iterations_lt): Likewise.
26534 (number_of_iterations_le): Likewise.
26535 (number_of_iterations_cond): Likewise.
26536 (number_of_iterations_exit): Likewise.
26537 (finite_loop_p): Likewise.
26538 (derive_constant_upper_bound_assign): Likewise.
26539 (derive_constant_upper_bound): Return a widest_int.
26540 (derive_constant_upper_bound_ops): Likewise.
26541 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26542 (record_estimate): Take a widest_int rather than a double_int.
26543 (record_nonwrapping_iv): Use wide-int interfaces.
26544 (double_int_cmp): Delete.
26545 (wide_int_cmp): New.
26546 (bound_index): Take a widest_int rather than a double_int.
26547 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26548 (maybe_lower_iteration_bound): Likewise.
26549 (estimate_numbers_of_iterations_loop): Likewise.
26550 (estimated_loop_iterations): Take a widest_int pointer than than
26551 a double_int pointer.
26552 (estimated_loop_iterations_int): Use wide-int interfaces.
26553 (max_loop_iterations): Take a widest_int pointer than than
26554 a double_int pointer.
26555 (max_loop_iterations_int): Use wide-int interfaces.
26556 (max_stmt_executions): Take a widest_int pointer than than
26557 a double_int pointer.
26558 (estimated_stmt_executions): Likewise.
26559 (n_of_executions_at_most): Use wide-int interfaces.
26560 (scev_probably_wraps_p): Likewise.
26561 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26562 to real_to_integer.
26563 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26565 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26566 double_ints. Adjust for trailing_wide_ints <3> representation.
26567 (set_nonzero_bits): Likewise.
26568 (get_range_info): Return wide_ints rather than double_ints.
26569 Adjust for trailing_wide_ints <3> representation.
26570 (get_nonzero_bits): Likewise.
26571 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26573 * tree-ssanames.h (struct range_info_def): Replace min, max and
26574 nonzero_bits with a trailing_wide_ints <3>.
26575 (set_range_info): Use wide_int_refs rather than double_ints.
26576 (set_nonzero_bits): Likewise.
26577 (get_range_info): Return wide_ints rather than double_ints.
26578 (get_nonzero_bits): Likewise.
26579 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
26580 * tree-ssa-pre.c (phi_translate_1): Likewise.
26581 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
26582 (acceptable_pow_call): Likewise.
26583 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
26585 (vn_reference_fold_indirect): Likewise.
26586 (vn_reference_maybe_forwprop_address): Likewise.
26587 (valueize_refs_1): Likewise.
26588 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
26589 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
26590 tree_int_cst_lt and tree_int_cst_le.
26591 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
26593 (streamer_alloc_tree): Likewise.
26594 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
26595 (streamer_write_tree_header): Likewise.
26596 (streamer_write_integer_cst): Likewise.
26597 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26598 (build_constructors): Likewise.
26599 (array_value_type): Likewise.
26600 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26601 (vect_check_gather): Likewise.
26602 * tree-vect-generic.c (build_replicated_const): Likewise.
26603 (expand_vector_divmod): Likewise.
26604 * tree-vect-loop.c (vect_transform_loop): Likewise.
26605 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26606 (vect_do_peeling_for_alignment): Likewise.
26607 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26608 * tree-vrp.c: Include wide-int.h.
26609 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26610 (extract_range_from_assert): Use wide-int interfaces.
26611 (vrp_int_const_binop): Likewise.
26612 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26613 double_int pointers.
26614 (ranges_from_anti_range): Use wide-int interfaces.
26615 (quad_int_cmp): Delete.
26616 (quad_int_pair_sort): Likewise.
26617 (extract_range_from_binary_expr_1): Use wide-int interfaces.
26618 (extract_range_from_unary_expr_1): Likewise.
26619 (adjust_range_with_scev): Likewise.
26620 (masked_increment): Take and return wide_ints rather than double_ints.
26621 (register_edge_assert_for_2): Use wide-int interfaces.
26622 (check_array_ref): Likewise.
26623 (search_for_addr_array): Likewise.
26624 (maybe_set_nonzero_bits): Likewise.
26625 (union_ranges): Pass an integer of the correct type instead of
26626 using integer_one_node.
26627 (intersect_ranges): Likewise.
26628 (simplify_truth_ops_using_ranges): Likewise.
26629 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
26630 (range_fits_type_p): Likewise.
26631 (simplify_cond_using_ranges): Likewise. Take a signop rather than
26633 (simplify_conversion_using_ranges): Use wide-int interfaces.
26634 (simplify_float_conversion_using_ranges): Likewise.
26635 (vrp_finalize): Likewise.
26636 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
26637 (gimple_stringops_transform): Likewise.
26638 * varasm.c (decode_addr_const): Likewise.
26639 (const_hash_1): Likewise.
26640 (const_rtx_hash_1): Likewise
26641 (output_constant): Likewise.
26642 (array_size_for_constructor): Likewise.
26643 (output_constructor_regular_field): Likewise.
26644 (output_constructor_bitfield): Likewise.
26645 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
26646 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
26648 * gencheck.c: Define BITS_PER_UNIT.
26649 * wide-int.cc: New.
26651 * wide-int-print.cc: New.
26652 * wide-int-print.h: New.
26654 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26656 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
26658 2014-05-06 Richard Biener <rguenther@suse.de>
26660 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
26661 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
26662 (TODO_verify_all): Adjust.
26663 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
26664 TODO_verify_stmts and TODO_verify_rtl_sharing.
26665 * bb-reorder.c: Likewise.
26666 * cfgexpand.c: Likewise.
26667 * cprop.c: Likewise.
26669 * function.c: Likewise.
26670 * fwprop.c: Likewise.
26671 * gcse.c: Likewise.
26672 * gimple-ssa-isolate-paths.c: Likewise.
26673 * gimple-ssa-strength-reduction.c: Likewise.
26674 * ipa-split.c: Likewise.
26675 * loop-init.c: Likewise.
26676 * loop-unroll.c: Likewise.
26677 * lower-subreg.c: Likewise.
26678 * modulo-sched.c: Likewise.
26679 * postreload-gcse.c: Likewise.
26680 * predict.c: Likewise.
26681 * recog.c: Likewise.
26682 * sched-rgn.c: Likewise.
26683 * store-motion.c: Likewise.
26684 * tracer.c: Likewise.
26685 * trans-mem.c: Likewise.
26686 * tree-call-cdce.c: Likewise.
26687 * tree-cfg.c: Likewise.
26688 * tree-cfgcleanup.c: Likewise.
26689 * tree-complex.c: Likewise.
26690 * tree-eh.c: Likewise.
26691 * tree-emutls.c: Likewise.
26692 * tree-if-conv.c: Likewise.
26693 * tree-into-ssa.c: Likewise.
26694 * tree-loop-distribution.c: Likewise.
26695 * tree-object-size.c: Likewise.
26696 * tree-parloops.c: Likewise.
26697 * tree-pass.h: Likewise.
26698 * tree-sra.c: Likewise.
26699 * tree-ssa-ccp.c: Likewise.
26700 * tree-ssa-copy.c: Likewise.
26701 * tree-ssa-copyrename.c: Likewise.
26702 * tree-ssa-dce.c: Likewise.
26703 * tree-ssa-dom.c: Likewise.
26704 * tree-ssa-dse.c: Likewise.
26705 * tree-ssa-forwprop.c: Likewise.
26706 * tree-ssa-ifcombine.c: Likewise.
26707 * tree-ssa-loop-ch.c: Likewise.
26708 * tree-ssa-loop-ivcanon.c: Likewise.
26709 * tree-ssa-loop.c: Likewise.
26710 * tree-ssa-math-opts.c: Likewise.
26711 * tree-ssa-phiopt.c: Likewise.
26712 * tree-ssa-phiprop.c: Likewise.
26713 * tree-ssa-pre.c: Likewise.
26714 * tree-ssa-reassoc.c: Likewise.
26715 * tree-ssa-sink.c: Likewise.
26716 * tree-ssa-strlen.c: Likewise.
26717 * tree-ssa-tail-merge.c: Likewise.
26718 * tree-ssa-uncprop.c: Likewise.
26719 * tree-switch-conversion.c: Likewise.
26720 * tree-tailcall.c: Likewise.
26721 * tree-vect-generic.c: Likewise.
26722 * tree-vectorizer.c: Likewise.
26723 * tree-vrp.c: Likewise.
26724 * tsan.c: Likewise.
26725 * var-tracking.c: Likewise.
26726 * bt-load.c: Likewise.
26727 * cfgcleanup.c: Likewise.
26728 * combine-stack-adj.c: Likewise.
26729 * combine.c: Likewise.
26730 * compare-elim.c: Likewise.
26731 * config/epiphany/resolve-sw-modes.c: Likewise.
26732 * config/i386/i386.c: Likewise.
26733 * config/mips/mips.c: Likewise.
26734 * config/s390/s390.c: Likewise.
26735 * config/sh/sh_treg_combine.cc: Likewise.
26736 * config/sparc/sparc.c: Likewise.
26739 * final.c: Likewise.
26740 * ifcvt.c: Likewise.
26741 * mode-switching.c: Likewise.
26742 * passes.c: Likewise.
26743 * postreload.c: Likewise.
26745 * reg-stack.c: Likewise.
26746 * regcprop.c: Likewise.
26747 * regrename.c: Likewise.
26750 2014-05-06 Richard Biener <rguenther@suse.de>
26752 PR middle-end/61070
26753 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
26754 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
26756 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
26759 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
26761 2014-05-05 Radovan Obradovic <robradovic@mips.com>
26762 Tom de Vries <tom@codesourcery.com>
26764 * target.def (call_fusage_contains_non_callee_clobbers): New
26766 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
26768 (@node Miscellaneous Register Hooks): New node.
26769 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
26770 * doc/tm.texi: Regenerate.
26772 2014-05-05 Marek Polacek <polacek@redhat.com>
26775 * opts.c (common_handle_option): Call error_at instead of warning_at.
26777 2014-05-05 Richard Biener <rguenther@suse.de>
26779 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
26780 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
26781 under the TODO_verify_il umbrella.
26783 2014-05-05 Richard Biener <rguenther@suse.de>
26785 * passes.c (execute_function_todo): Move TODO_verify_flow under
26786 the TODO_verify_ul umbrella.
26788 2014-05-05 Richard Biener <rguenther@suse.de>
26790 PR middle-end/61010
26791 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
26792 X & CST away from a CST that is the mask of a mode.
26794 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26796 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
26797 int argument to enum machine_mode.
26798 (picochip_class_max_nregs): Ditto.
26799 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
26800 (picochip_class_max_nregs): Ditto.
26802 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26804 * target.def: Add new target hook.
26805 * doc/tm.texi: Regenerate.
26806 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
26807 * targhooks.c (default_keep_leaf_when_profiled): New function.
26809 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
26810 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
26812 2014-05-05 Bin Cheng <bin.cheng@arm.com>
26814 PR tree-optimization/60363
26815 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
26816 (copy_phi_args): New parameters. Call get_value_locus_in_path.
26817 (update_destination_phis): New parameter.
26818 (create_edge_and_update_destination_phis): Ditto.
26819 (ssa_fix_duplicate_block_edges): Pass new arguments.
26820 (thread_single_edge): Ditto.
26822 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
26824 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
26825 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
26826 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
26827 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
26828 Use RS6000_BTM_HARD_FLOAT.
26829 (BU_MISC_2): Likewise.
26830 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
26831 RS6000_BTM_HARD_FLOAT.
26832 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
26833 is explicitly used.
26834 (rs6000_invalid_builtin): Add hard floating builtin support.
26835 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
26836 hard float builtins.
26837 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
26839 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26841 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
26842 Add missing function* argument.
26844 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26846 * lra-constraints.c (valid_address_p): Move earlier in file.
26847 Add a constraint argument to the address_info version.
26848 (satisfies_memory_constraint_p): New function.
26849 (satisfies_address_constraint_p): Likewise.
26850 (process_alt_operands, curr_insn_transform): Use them.
26851 (process_address): Pass the constraint to valid_address_p when
26852 checking address operands.
26854 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26856 * config/mips/mips.c (mips_isa_rev): New variable.
26857 (mips_set_architecture): Set it.
26858 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
26860 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
26861 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
26862 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
26863 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
26864 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
26865 conditions in terms of mips_isa_rev.
26866 (mips_isa_rev): Declare.
26868 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26870 * config/sh/sh-mem.cc: Use tabs instead of spaces.
26871 (prob_unlikely, prob_likely): Make variables const.
26873 2014-05-03 Denis Chertykov <chertykov@gmail.com>
26875 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
26877 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26879 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
26881 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26883 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
26884 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
26885 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
26887 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
26888 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
26890 Replace usage of ROUND_REG with sh_round_reg.
26891 Use CEIL instead of ROUND_ADVANCE.
26893 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26896 * config/sh/sh.c: Include stdlib headers before everything else.
26898 2014-05-02 Jakub Jelinek <jakub@redhat.com>
26900 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
26901 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
26902 (gimplify_adjust_omp_clauses): Simd region is never
26903 directly nested in combined parallel. Instead, for linear
26904 with copyin/copyout, if in combined for simd loop, make decl
26905 firstprivate/lastprivate on OMP_FOR.
26906 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
26907 expand_omp_for_static_chunk): When setting endvar, also set
26908 fd->loop.v to the same value.
26910 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26912 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
26914 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
26916 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
26919 2014-05-02 Marek Polacek <polacek@redhat.com>
26921 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
26923 2014-05-02 Kito Cheng <kito@0xlab.org>
26925 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
26926 to a C expression marco.
26927 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
26928 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
26929 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
26930 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
26931 HONOR_REG_ALLOC_ORDER.
26932 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
26934 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26936 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
26938 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26940 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
26942 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
26944 * tree-if-conv.c (is_cond_scalar_reduction): New function.
26945 (convert_scalar_cond_reduction): Likewise.
26946 (predicate_scalar_phi): Add recognition and transformation
26947 of simple conditioanl reduction to be vectorizable.
26949 2014-05-01 Marek Polacek <polacek@redhat.com>
26952 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
26954 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
26956 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
26957 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
26958 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
26959 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
26960 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
26961 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
26962 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
26963 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
26965 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
26967 * config/arc/arc.opt (mlra): Move comment above option name
26968 to avoid mis-parsing as language options.
26970 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26972 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
26973 * config/sol2.h: ... here.
26974 * config/sol2-10.h: Remove.
26976 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
26977 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
26978 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
26979 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
26980 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
26981 * config/sol2.h: ... here.
26982 (SECTION_NAME_FORMAT): Don't redefine.
26983 (STARTFILE_ARCH32_SPEC): Rename to ...
26984 (STARTFILE_ARCH_SPEC): ... this.
26985 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
26986 * config/sparc/sol2.h: ... here.
26987 (SECTION_NAME_FORMAT): Don't undef.
26988 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
26989 (SUBTARGET_EXTRA_SPECS): Remove.
26990 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
26992 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
26993 (MD_STARTFILE_PREFIX): Remove.
26994 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
26995 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
26996 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
26997 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
26998 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
26999 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27000 * config/i386/sol2.h: ... here.
27001 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27002 * config/i386/sol2-bi.h: Remove.
27003 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27004 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27006 * config/i386/t-sol2-64: Rename to ...
27007 * config/i386/t-sol2: ... this.
27008 * config/sparc/t-sol2-64: Rename to ...
27009 * config/sparc/t-sol2: ... this.
27011 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27012 sol2_tm_file_head, sol2_tm_file_tail.
27013 Include ${cpu_type}/sol2.h before sol2.h.
27015 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27016 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27017 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27018 Reflect i386/t-sol2-64 renaming.
27019 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27020 Reflect sparc/t-sol2-64 renaming.
27022 2014-04-30 Richard Biener <rguenther@suse.de>
27024 * passes.c (execute_function_todo): Move TODO_verify_stmts
27025 and TODO_verify_ssa under the TODO_verify_il umbrella.
27026 * tree-ssa.h (verify_ssa): Adjust prototype.
27027 * tree-ssa.c (verify_ssa): Add parameter to tell whether
27028 we should verify SSA operands.
27029 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27030 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27031 whether we should verify whether not throwing stmts have EH info.
27032 * graphite-scop-detection.c (create_sese_edges): Adjust.
27033 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27034 * tree-eh.c (lower_try_finally_switch): Do not add the
27035 default case label twice.
27037 2014-04-30 Marek Polacek <polacek@redhat.com>
27039 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27040 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27041 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27042 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27044 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
27046 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27047 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27048 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27049 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27050 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27051 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27052 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27053 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27055 2014-04-29 David Malcolm <dmalcolm@redhat.com>
27057 * tree-cfg.c (dump_function_to_file): Dump the return type of
27058 functions, in a line to itself before the function body, mimicking
27059 the layout of a C function.
27061 2014-04-29 Jakub Jelinek <jakub@redhat.com>
27063 PR tree-optimization/60971
27064 * tree-tailcall.c (process_assignment): Reject conversions which
27067 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27069 * calls.c (initialize_argument_information): Always treat
27070 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27071 (expand_call): Likewise.
27072 (emit_library_call_calue_1): Likewise.
27073 * expr.c (PUSH_ARGS_REVERSED): Do not define.
27074 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27077 2014-04-29 Nick Clifton <nickc@redhat.com>
27079 * config/msp430/msp430.md (umulsidi): Fix typo.
27080 (mulhisi3): Enable even inside interrupt handlers.
27081 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27082 bigger return address pushed in large mode.
27084 2014-04-29 Nick Clifton <nickc@redhat.com>
27086 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27087 (arc_init_reg_tables): Use a machine_mode enum to iterate over
27089 * config/m32r/m32r.c (init_reg_tables): Likewise.
27090 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27091 enum to hold the modes.
27093 2014-04-29 Richard Biener <rguenther@suse.de>
27095 * dominance.c (free_dominance_info): Add overload with
27096 function parameter.
27097 (dom_info_state): Likewise.
27098 (dom_info_available_p): Likewise.
27099 * basic-block.h (free_dominance_info, dom_info_state,
27100 dom_info_available_p): Declare overloads.
27101 * passes.c (execute_function_todo): Verify that verifiers
27102 don't change dominator info state. Drop dominator info
27103 for IPA pass invocations.
27104 * cgraph.c (release_function_body): Restore asserts that
27105 dominator information is released.
27107 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
27109 * doc/invoke.texi: Fix typo.
27110 * tree-vrp.c: Fix typos.
27111 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
27113 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27115 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
27117 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27119 * config/aarch64/aarch64-builtins.c
27120 (aarch64_types_storestruct_lane_qualifiers): New.
27121 (TYPES_STORESTRUCT_LANE): Likewise.
27122 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
27123 (st3_lane): Likewise.
27124 (st4_lane): Likewise.
27125 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
27126 (vec_store_lanesci_lane<mode>): Likewise.
27127 (vec_store_lanesxi_lane<mode>): Likewise.
27128 (aarch64_st2_lane<VQ:mode>): Likewise.
27129 (aarch64_st3_lane<VQ:mode>): Likewise.
27130 (aarch64_st4_lane<VQ:mode>): Likewise.
27131 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
27132 * config/aarch64/arm_neon.h
27133 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27134 use new macro arguments.
27135 (__ST3_LANE_FUNC): Likewise.
27136 (__ST4_LANE_FUNC): Likewise.
27137 * config/aarch64/iterators.md (V_TWO_ELEM): New.
27138 (V_THREE_ELEM): Likewise.
27139 (V_FOUR_ELEM): Likewise.
27141 2014-04-28 David Malcolm <dmalcolm@redhat.com>
27143 * doc/gimple.texi: Replace the description of the now-defunct
27144 union gimple_statement_d with a diagram showing the
27145 gimple_statement_base class hierarchy and its relationships to
27146 the GSS_ and GIMPLE_ enums.
27148 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27150 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27151 * config/aarch64/aarch64.c
27152 (aarch64_cannot_change_mode_class): Weaken conditions.
27153 (aarch64_modes_tieable_p): New.
27154 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27156 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
27158 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27159 (loadsync_<mode>): Change mode.
27160 (load_quadpti, store_quadpti): New.
27161 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27162 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27164 2014-04-28 Martin Jambor <mjambor@suse.cz>
27166 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27167 same alias type as the original statement.
27168 (subreplacement_assignment_data): New type.
27169 (handle_unscalarized_data_in_subtree): New type of parameter,
27170 generate new memory accesses with same alias type as the original
27172 (load_assign_lhs_subreplacements): Likewise.
27173 (sra_modify_constructor_assign): Generate new memory accesses with
27174 same alias type as the original statement.
27176 2014-04-28 Richard Biener <rguenther@suse.de>
27178 * tree-pass.h (TODO_verify_il): Define.
27179 (TODO_verify_all): Complete properly.
27180 * passes.c (execute_function_todo): Move existing loop-closed
27181 SSA verification under TODO_verify_il.
27182 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27183 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27184 Fix tree sharing issue.
27186 2014-04-28 Richard Biener <rguenther@suse.de>
27188 PR middle-end/60092
27189 * builtins.def (DEF_C11_BUILTIN): Add.
27190 (BUILT_IN_ALIGNED_ALLOC): Likewise.
27191 * coretypes.h (enum function_class): Add function_c11_misc.
27192 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27193 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27194 (call_may_clobber_ref_p_1): Likewise.
27195 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27196 (mark_all_reaching_defs_necessary_1): Likewise.
27197 (propagate_necessity): Likewise.
27198 (eliminate_unnecessary_stmts): Likewise.
27199 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27201 2014-04-28 Richard Biener <rguenther@suse.de>
27203 * tree-vrp.c (vrp_var_may_overflow): Remove.
27204 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27205 with overflow immediately bump to one before that value and
27206 let iteration figure out overflow status.
27208 2014-04-28 Richard Biener <rguenther@suse.de>
27210 * configure.ac: Do valgrind header checks unconditionally.
27211 Add --enable-valgrind-annotations.
27212 * system.h: Guard valgrind header inclusion with
27213 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27214 * alloc-pool.c (pool_alloc, pool_free): Use
27215 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27216 to guard possibly dead code.
27217 * config.in: Regenerated.
27218 * configure: Likewise.
27220 2014-04-28 Jeff Law <law@redhat.com>
27222 PR tree-optimization/60902
27223 * tree-ssa-threadedge.c
27224 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27225 over real defs when invalidating outputs from statements that do not
27226 produce useful outputs for threading.
27228 2014-04-28 Richard Biener <rguenther@suse.de>
27230 PR tree-optimization/60979
27231 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27232 SCOPs that end in a block with a successor with abnormal
27235 2014-04-28 Richard Biener <rguenther@suse.de>
27237 * tree-pass.h (execute_pass_list): Adjust prototype.
27238 * passes.c (pass_manager::execute_early_local_passes): Adjust.
27239 (do_per_function): Change callback signature, push all actual
27240 work to the callbals.
27241 (do_per_function_toporder): Likewise.
27242 (execute_function_dump): Adjust.
27243 (execute_function_todo): Likewise.
27244 (clear_last_verified): Likewise.
27245 (verify_curr_properties): Likewise.
27246 (update_properties_after_pass): Likewise.
27247 (execute_pass_list_1): Split out from ...
27248 (execute_pass_list): ... here. Adjust.
27249 (execute_ipa_pass_list): Likewise.
27250 * cgraphunit.c (cgraph_add_new_function): Adjust.
27251 (analyze_function): Likewise.
27252 (expand_function): Likewise.
27253 * cgraph.c (release_function_body): Free dominance info
27254 here instead of asserting it was magically freed elsewhere.
27256 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
27258 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
27259 * configure: Regenerate.
27260 * config/sparc/sparc.opt (muser-mode): New option.
27261 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
27263 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
27264 * doc/invoke.texi (SPARC options): Document -muser-mode.
27266 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
27268 * cselib.c (find_slot_memmode): Delete.
27269 (cselib_hasher): Change compare_type to a struct.
27270 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
27272 (preserve_constants_and_equivs): Adjust for new compare_type.
27273 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
27274 (wrap_constant): Delete.
27275 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
27277 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27279 * doc/install.texi (Building with profile feedback): Remove
27282 2014-04-26 Tom de Vries <tom@codesourcery.com>
27284 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
27287 2014-04-25 Cary Coutant <ccoutant@google.com>
27290 * dwarf2out.c (should_move_die_to_comdat): A type definition
27291 can contain a subprogram definition, but don't move it to a
27293 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
27294 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
27296 (clone_tree_hash): Rename to...
27297 (clone_tree_partial): ...this; change callers. Copy
27298 DW_TAG_subprogram DIEs as declarations.
27299 (copy_decls_walk): Don't copy children of a declaration into a
27302 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
27305 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
27308 2014-04-25 Jiong Wang <jiong.wang@arm.com>
27310 * config/arm/predicates.md (call_insn_operand): Add long_call check.
27311 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
27313 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
27316 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27318 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
27320 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27322 PR tree-optimization/60930
27323 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
27324 creating a multiply candidate by folding two constant
27325 multiplicands when the result overflows.
27327 2014-04-25 Jakub Jelinek <jakub@redhat.com>
27329 PR tree-optimization/60960
27330 * tree-vect-generic.c (expand_vector_operation): Only call
27331 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
27333 2014-04-25 Tom de Vries <tom@codesourcery.com>
27335 * expr.c (clobber_reg_mode): New function.
27336 * expr.h (clobber_reg): New function.
27338 2014-04-25 Tom de Vries <tom@codesourcery.com>
27340 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
27343 2014-04-25 Radovan Obradovic <robradovic@mips.com>
27344 Tom de Vries <tom@codesourcery.com>
27346 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
27348 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
27349 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
27350 new argument to find_all_hard_reg_sets call.
27352 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27354 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
27355 Use HOST_WIDE_INT_C for mask literal.
27356 (aarch_rev16_shleft_mask_imm_p): Likewise.
27358 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
27361 * config/sparc/sparc.md (ashlsi3_extend): Delete.
27363 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
27365 PR preprocessor/56540
27366 * config/i386/i386-c.c (ix86_target_macros): Define
27367 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
27369 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27371 * configure.ac (tga_func): Remove.
27372 (LIB_TLS_SPEC): Remove.
27373 * configure: Regenerate.
27374 * config.in: Regenerate.
27375 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
27377 2014-04-25 Richard Biener <rguenther@suse.de>
27380 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
27381 call stmt use/clobber sets during stmt walk instead of
27382 walking the possibly incomplete set of caller edges.
27384 2014-04-25 Richard Biener <rguenther@suse.de>
27387 * passes.c (apply_ipa_transforms): Inline into only caller ...
27388 (execute_one_pass): ... here. Properly bring in function
27389 bodies for nodes we want to apply IPA transforms to.
27391 2014-04-24 Cong Hou <congh@google.com>
27393 PR tree-optimization/60896
27394 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
27395 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
27396 (vect_mark_pattern_stmts): Set the def type of all statements in
27397 PATTERN_DEF_SEQ as vect_internal_def.
27399 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27401 * doc/extend.texi (PowerPC Built-in Functions): Document new
27402 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
27403 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
27405 * config/rs6000/predicates.md (const_0_to_3_operand): New
27406 predicate to match 0..3 integer constants.
27408 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
27409 to support adding miscellaneous builtin functions.
27410 (BU_DFP_MISC_2): Likewise.
27411 (BU_P7_MISC_1): Likewise.
27412 (BU_P7_MISC_2): Likewise.
27413 (BU_P8V_MISC_3): Likewise.
27414 (BU_MISC_1): Likewise.
27415 (BU_MISC_2): Likewise.
27416 (DIVWE): Add extended divide builtin functions.
27417 (DIVWEO): Likewise.
27418 (DIVWEU): Likewise.
27419 (DIVWEUO): Likewise.
27421 (DIVDEO): Likewise.
27422 (DIVDEU): Likewise.
27423 (DIVDEUO): Likewise.
27424 (DXEX): Add decimal floating-point builtin functions.
27426 (DDEDPD): Likewise.
27427 (DDEDPDQ): Likewise.
27428 (DENBCD): Likewise.
27429 (DENBCDQ): Likewise.
27433 (DSCLIQ): Likewise.
27435 (DSCRIQ): Likewise.
27436 (CDTBCD): Add new BCD builtin functions.
27437 (CBCDTD): Likewise.
27438 (ADDG6S): Likewise.
27439 (BCDADD): Likewise.
27440 (BCDADD_LT): Likewise.
27441 (BCDADD_EQ): Likewise.
27442 (BCDADD_GT): Likewise.
27443 (BCDADD_OV): Likewise.
27444 (BCDSUB): Likewise.
27445 (BCDSUB_LT): Likewise.
27446 (BCDSUB_EQ): Likewise.
27447 (BCDSUB_GT): Likewise.
27448 (BCDSUB_OV): Likewise.
27449 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
27450 (UNPACK_TD): Likewise.
27451 (PACK_TF): Likewise.
27452 (UNPACK_TF): Likewise.
27453 (UNPACK_TF_0): Likewise.
27454 (UNPACK_TF_1): Likewise.
27455 (PACK_V1TI): Likewise.
27456 (UNPACK_V1TI): Likewise.
27458 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27459 support for decimal floating point builtin functions.
27460 (rs6000_expand_ternop_builtin): Add checks for the new builtin
27461 functions that take constant arguments.
27462 (rs6000_invalid_builtin): Add decimal floating point builtin support.
27463 (rs6000_init_builtins): Setup long double, _Decimal64, and
27464 _Decimal128 types for new builtin functions.
27465 (builtin_function_type): Set the unsigned flags appropriately for
27466 the new builtin functions.
27467 (rs6000_opt_masks): Add support for decimal floating point builtin
27470 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
27471 floating point builtin functions.
27472 (RS6000_BTM_COMMON): Likewise.
27473 (RS6000_BTI_long_double): Likewise.
27474 (RS6000_BTI_dfloat64): Likewise.
27475 (RS6000_BTI_dfloat128): Likewise.
27476 (long_double_type_internal_node): Likewise.
27477 (dfloat64_type_internal_node): Likewise.
27478 (dfloat128_type_internal_node): Likewise.
27480 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
27481 2.07 bcd arithmetic instructions.
27482 (UNSPEC_BCDSUB): Likewise.
27483 (UNSPEC_BCD_OVERFLOW): Likewise.
27484 (UNSPEC_BCD_ADD_SUB): Likewise.
27485 (bcd_add_sub): Likewise.
27486 (BCD_TEST): Likewise.
27487 (bcd<bcd_add_sub>): Likewise.
27488 (bcd<bcd_add_sub>_test): Likewise.
27489 (bcd<bcd_add_sub>_test2): Likewise.
27490 (bcd<bcd_add_sub>_<code>): Likewise.
27491 (peephole2 for combined bcd ops): Likewise.
27493 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27494 decimal floating point builtin functions.
27495 (UNSPEC_DENBCD): Likewise.
27496 (UNSPEC_DXEX): Likewise.
27497 (UNSPEC_DIEX): Likewise.
27498 (UNSPEC_DSCLI): Likewise.
27499 (UNSPEC_DSCRI): Likewise.
27500 (D64_D128): Likewise.
27501 (dfp_suffix): Likewise.
27502 (dfp_ddedpd_<mode>): Likewise.
27503 (dfp_denbcd_<mode>): Likewise.
27504 (dfp_dxex_<mode>): Likewise.
27505 (dfp_diex_<mode>): Likewise.
27506 (dfp_dscli_<mode>): Likewise.
27507 (dfp_dscri_<mode>): Likewise.
27509 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27511 (UNSPEC_CDTBCD): Likewise.
27512 (UNSPEC_CBCDTD): Likewise.
27513 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27514 (UNSPEC_DIVEO): Likewise.
27515 (UNSPEC_DIVEU): Likewise.
27516 (UNSPEC_DIVEUO): Likewise.
27517 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27518 pack/unpack 128-bit types.
27519 (UNSPEC_PACK_128BIT): Likewise.
27520 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27521 (udiv<mode>3): Use idiv_ldiv mode attribute.
27522 (div<mode>3): Likewise.
27523 (addg6s): Add new BCD builtin functions.
27524 (cdtbcd): Likewise.
27525 (cbcdtd): Likewise.
27526 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27527 (div_extend): Likewise.
27528 (div<div_extend>_<mode>"): Likewise.
27529 (FP128_64): Add support for new builtin functions to pack/unpack
27531 (unpack<mode>): Likewise.
27532 (unpacktf_0): Likewise.
27533 (unpacktf_1): Likewise.
27534 (unpack<mode>_dm): Likewise.
27535 (unpack<mode>_nodm): Likewise.
27536 (pack<mode>): Likewise.
27537 (unpackv1ti): Likewise.
27538 (packv1ti): Likewise.
27540 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
27542 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27545 2014-04-24 Jakub Jelinek <jakub@redhat.com>
27547 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27548 * gimplify.c (omp_is_private): Change last argument's type to int.
27549 Only diagnose lastprivate if the simd argument is 1, only diagnose
27550 linear if the simd argument is 2.
27551 (gimplify_omp_for): Adjust omp_is_private callers. When adding
27552 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
27553 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
27554 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27555 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27556 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27557 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27558 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27559 * tree-nested.c (convert_nonlocal_omp_clauses,
27560 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27562 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
27565 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27568 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
27570 * flag-types.h (enum ivar_visibility): Add.
27572 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
27574 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27575 function * argument.
27577 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
27579 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
27581 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27582 Tom de Vries <tom@codesourcery.com>
27584 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
27585 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
27587 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
27588 * emit-rtl.c (try_split): Same.
27590 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27591 Tom de Vries <tom@codesourcery.com>
27593 * common.opt (fuse-caller-save): New option.
27595 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
27597 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27598 elements for big-endian.
27600 2014-04-24 Richard Biener <rguenther@suse.de>
27602 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27603 during TER and instead use the sepops interface for expanding
27604 non-GIMPLE_SINGLE_RHS.
27606 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27608 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27609 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27611 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27613 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27614 assembler 64-bit option.
27615 * configure: Regenerate.
27617 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27619 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27620 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27621 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27622 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27623 (TARGET_CRYPTO): Take TARGET_SIMD into account.
27625 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27627 * config/aarch64/aarch64-builtins.c
27628 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
27629 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
27630 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
27631 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
27633 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
27634 (Vrevsuff): New mode attribute.
27636 2014-04-24 Terry Guo <terry.guo@arm.com>
27638 * config/arm/arm.h (machine_function): Define variable
27639 after_arm_reorg here.
27640 * config/arm/arm.c (after_arm_reorg): Remove the definition.
27641 (arm_split_constant): Update the way to access variable
27643 (arm_reorg): Ditto.
27644 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
27646 2014-04-23 Tom de Vries <tom@codesourcery.com>
27648 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
27650 2014-04-23 David Malcolm <dmalcolm@redhat.com>
27652 * is-a.h: Update comments to reflect the following changes to the
27653 "pointerness" of the API, making the template parameter match the
27654 return type, allowing use of is-a.h with typedefs of pointers.
27655 (is_a_helper::cast): Return a T rather then a pointer to a T, so
27656 that the return type matches the parameter to the is_a_helper.
27658 (dyn_cast): Likewise.
27660 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
27661 pointer from the is-a.h API.
27663 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
27664 (is_a_helper <cgraph_node *>::test): ...this, matching change to
27666 (is_a_helper <varpool_node>::test): Likewise, convert to...
27667 (is_a_helper <varpool_node *>::test): ...this.
27669 (varpool_first_variable): Update for removal of implicit pointer
27670 from the is-a.h API.
27671 (varpool_next_variable): Likewise.
27672 (varpool_first_static_initializer): Likewise.
27673 (varpool_next_static_initializer): Likewise.
27674 (varpool_first_defined_variable): Likewise.
27675 (varpool_next_defined_variable): Likewise.
27676 (cgraph_first_defined_function): Likewise.
27677 (cgraph_next_defined_function): Likewise.
27678 (cgraph_first_function): Likewise.
27679 (cgraph_next_function): Likewise.
27680 (cgraph_first_function_with_gimple_body): Likewise.
27681 (cgraph_next_function_with_gimple_body): Likewise.
27682 (cgraph_alias_target): Likewise.
27683 (varpool_alias_target): Likewise.
27684 (cgraph_function_or_thunk_node): Likewise.
27685 (varpool_variable_node): Likewise.
27686 (symtab_real_symbol_p): Likewise.
27687 * cgraphunit.c (referred_to_p): Likewise.
27688 (analyze_functions): Likewise.
27689 (handle_alias_pairs): Likewise.
27690 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
27691 * gimple-ssa.h (gimple_vuse_op): Likewise.
27692 (gimple_vdef_op): Likewise.
27693 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
27694 * gimple.c (gimple_build_asm_1): Likewise.
27695 (gimple_build_try): Likewise.
27696 (gimple_build_resx): Likewise.
27697 (gimple_build_eh_dispatch): Likewise.
27698 (gimple_build_omp_for): Likewise.
27699 (gimple_omp_for_set_clauses): Likewise.
27701 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
27702 (is_a_helper <gimple_statement_asm *>::test): ...this.
27703 (is_a_helper <gimple_statement_bind>::test): Convert to...
27704 (is_a_helper <gimple_statement_bind *>::test): ...this.
27705 (is_a_helper <gimple_statement_call>::test): Convert to...
27706 (is_a_helper <gimple_statement_call *>::test): ...this.
27707 (is_a_helper <gimple_statement_catch>::test): Convert to...
27708 (is_a_helper <gimple_statement_catch *>::test): ...this.
27709 (is_a_helper <gimple_statement_resx>::test): Convert to...
27710 (is_a_helper <gimple_statement_resx *>::test): ...this.
27711 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
27712 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
27713 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
27714 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
27715 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
27716 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
27717 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
27718 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
27719 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
27720 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
27721 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
27722 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
27723 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
27724 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
27725 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
27726 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
27727 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
27728 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
27729 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
27730 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
27731 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
27732 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
27733 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
27734 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
27735 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
27736 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
27737 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
27738 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
27739 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
27740 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
27741 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
27742 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
27743 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
27744 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
27745 (is_a_helper <gimple_statement_phi>::test): Convert to...
27746 (is_a_helper <gimple_statement_phi *>::test): ...this.
27747 (is_a_helper <gimple_statement_transaction>::test): Convert to...
27748 (is_a_helper <gimple_statement_transaction *>::test): ...this.
27749 (is_a_helper <gimple_statement_try>::test): Convert to...
27750 (is_a_helper <gimple_statement_try *>::test): ...this.
27751 (is_a_helper <gimple_statement_wce>::test): Convert to...
27752 (is_a_helper <gimple_statement_wce *>::test): ...this.
27753 (is_a_helper <const gimple_statement_asm>::test): Convert to...
27754 (is_a_helper <const gimple_statement_asm *>::test): ...this.
27755 (is_a_helper <const gimple_statement_bind>::test): Convert to...
27756 (is_a_helper <const gimple_statement_bind *>::test): ...this.
27757 (is_a_helper <const gimple_statement_call>::test): Convert to...
27758 (is_a_helper <const gimple_statement_call *>::test): ...this.
27759 (is_a_helper <const gimple_statement_catch>::test): Convert to...
27760 (is_a_helper <const gimple_statement_catch *>::test): ...this.
27761 (is_a_helper <const gimple_statement_resx>::test): Convert to...
27762 (is_a_helper <const gimple_statement_resx *>::test): ...this.
27763 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
27764 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
27765 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
27766 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
27767 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
27769 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
27771 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
27773 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
27775 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
27776 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
27777 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
27779 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
27780 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
27782 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
27783 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
27784 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
27785 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
27786 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
27787 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
27789 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
27790 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
27791 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
27792 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
27794 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
27795 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
27796 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
27797 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
27798 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
27799 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
27800 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
27801 (is_a_helper <const gimple_statement_phi>::test): Convert to...
27802 (is_a_helper <const gimple_statement_phi *>::test): ...this.
27803 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
27804 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
27805 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
27806 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
27807 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
27808 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
27809 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
27811 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
27813 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
27814 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
27816 (gimple_use_ops): Update for removal of implicit pointer from the
27818 (gimple_set_use_ops): Likewise.
27819 (gimple_vuse): Likewise.
27820 (gimple_vdef): Likewise.
27821 (gimple_vuse_ptr): Likewise.
27822 (gimple_vdef_ptr): Likewise.
27823 (gimple_set_vuse): Likewise.
27824 (gimple_set_vdef): Likewise.
27825 (gimple_omp_return_set_lhs): Likewise.
27826 (gimple_omp_return_lhs): Likewise.
27827 (gimple_omp_return_lhs_ptr): Likewise.
27828 (gimple_call_fntype): Likewise.
27829 (gimple_call_set_fntype): Likewise.
27830 (gimple_call_set_internal_fn): Likewise.
27831 (gimple_call_use_set): Likewise.
27832 (gimple_call_clobber_set): Likewise.
27833 (gimple_bind_vars): Likewise.
27834 (gimple_bind_set_vars): Likewise.
27835 (gimple_bind_body_ptr): Likewise.
27836 (gimple_bind_set_body): Likewise.
27837 (gimple_bind_add_stmt): Likewise.
27838 (gimple_bind_block): Likewise.
27839 (gimple_bind_set_block): Likewise.
27840 (gimple_asm_ninputs): Likewise.
27841 (gimple_asm_noutputs): Likewise.
27842 (gimple_asm_nclobbers): Likewise.
27843 (gimple_asm_nlabels): Likewise.
27844 (gimple_asm_input_op): Likewise.
27845 (gimple_asm_input_op_ptr): Likewise.
27846 (gimple_asm_output_op): Likewise.
27847 (gimple_asm_output_op_ptr): Likewise.
27848 (gimple_asm_set_output_op): Likewise.
27849 (gimple_asm_clobber_op): Likewise.
27850 (gimple_asm_set_clobber_op): Likewise.
27851 (gimple_asm_label_op): Likewise.
27852 (gimple_asm_set_label_op): Likewise.
27853 (gimple_asm_string): Likewise.
27854 (gimple_catch_types): Likewise.
27855 (gimple_catch_types_ptr): Likewise.
27856 (gimple_catch_handler_ptr): Likewise.
27857 (gimple_catch_set_types): Likewise.
27858 (gimple_catch_set_handler): Likewise.
27859 (gimple_eh_filter_types): Likewise.
27860 (gimple_eh_filter_types_ptr): Likewise.
27861 (gimple_eh_filter_failure_ptr): Likewise.
27862 (gimple_eh_filter_set_types): Likewise.
27863 (gimple_eh_filter_set_failure): Likewise.
27864 (gimple_eh_must_not_throw_fndecl): Likewise.
27865 (gimple_eh_must_not_throw_set_fndecl): Likewise.
27866 (gimple_eh_else_n_body_ptr): Likewise.
27867 (gimple_eh_else_e_body_ptr): Likewise.
27868 (gimple_eh_else_set_n_body): Likewise.
27869 (gimple_eh_else_set_e_body): Likewise.
27870 (gimple_try_eval_ptr): Likewise.
27871 (gimple_try_cleanup_ptr): Likewise.
27872 (gimple_try_set_eval): Likewise.
27873 (gimple_try_set_cleanup): Likewise.
27874 (gimple_wce_cleanup_ptr): Likewise.
27875 (gimple_wce_set_cleanup): Likewise.
27876 (gimple_phi_capacity): Likewise.
27877 (gimple_phi_num_args): Likewise.
27878 (gimple_phi_result): Likewise.
27879 (gimple_phi_result_ptr): Likewise.
27880 (gimple_phi_set_result): Likewise.
27881 (gimple_phi_arg): Likewise.
27882 (gimple_phi_set_arg): Likewise.
27883 (gimple_resx_region): Likewise.
27884 (gimple_resx_set_region): Likewise.
27885 (gimple_eh_dispatch_region): Likewise.
27886 (gimple_eh_dispatch_set_region): Likewise.
27887 (gimple_omp_critical_name): Likewise.
27888 (gimple_omp_critical_name_ptr): Likewise.
27889 (gimple_omp_critical_set_name): Likewise.
27890 (gimple_omp_for_clauses): Likewise.
27891 (gimple_omp_for_clauses_ptr): Likewise.
27892 (gimple_omp_for_set_clauses): Likewise.
27893 (gimple_omp_for_collapse): Likewise.
27894 (gimple_omp_for_index): Likewise.
27895 (gimple_omp_for_index_ptr): Likewise.
27896 (gimple_omp_for_set_index): Likewise.
27897 (gimple_omp_for_initial): Likewise.
27898 (gimple_omp_for_initial_ptr): Likewise.
27899 (gimple_omp_for_set_initial): Likewise.
27900 (gimple_omp_for_final): Likewise.
27901 (gimple_omp_for_final_ptr): Likewise.
27902 (gimple_omp_for_set_final): Likewise.
27903 (gimple_omp_for_incr): Likewise.
27904 (gimple_omp_for_incr_ptr): Likewise.
27905 (gimple_omp_for_set_incr): Likewise.
27906 (gimple_omp_for_pre_body_ptr): Likewise.
27907 (gimple_omp_for_set_pre_body): Likewise.
27908 (gimple_omp_parallel_clauses): Likewise.
27909 (gimple_omp_parallel_clauses_ptr): Likewise.
27910 (gimple_omp_parallel_set_clauses): Likewise.
27911 (gimple_omp_parallel_child_fn): Likewise.
27912 (gimple_omp_parallel_child_fn_ptr): Likewise.
27913 (gimple_omp_parallel_set_child_fn): Likewise.
27914 (gimple_omp_parallel_data_arg): Likewise.
27915 (gimple_omp_parallel_data_arg_ptr): Likewise.
27916 (gimple_omp_parallel_set_data_arg): Likewise.
27917 (gimple_omp_task_clauses): Likewise.
27918 (gimple_omp_task_clauses_ptr): Likewise.
27919 (gimple_omp_task_set_clauses): Likewise.
27920 (gimple_omp_task_child_fn): Likewise.
27921 (gimple_omp_task_child_fn_ptr): Likewise.
27922 (gimple_omp_task_set_child_fn): Likewise.
27923 (gimple_omp_task_data_arg): Likewise.
27924 (gimple_omp_task_data_arg_ptr): Likewise.
27925 (gimple_omp_task_set_data_arg): Likewise.
27926 (gimple_omp_taskreg_clauses): Likewise.
27927 (gimple_omp_taskreg_clauses_ptr): Likewise.
27928 (gimple_omp_taskreg_set_clauses): Likewise.
27929 (gimple_omp_taskreg_child_fn): Likewise.
27930 (gimple_omp_taskreg_child_fn_ptr): Likewise.
27931 (gimple_omp_taskreg_set_child_fn): Likewise.
27932 (gimple_omp_taskreg_data_arg): Likewise.
27933 (gimple_omp_taskreg_data_arg_ptr): Likewise.
27934 (gimple_omp_taskreg_set_data_arg): Likewise.
27935 (gimple_omp_task_copy_fn): Likewise.
27936 (gimple_omp_task_copy_fn_ptr): Likewise.
27937 (gimple_omp_task_set_copy_fn): Likewise.
27938 (gimple_omp_task_arg_size): Likewise.
27939 (gimple_omp_task_arg_size_ptr): Likewise.
27940 (gimple_omp_task_set_arg_size): Likewise.
27941 (gimple_omp_task_arg_align): Likewise.
27942 (gimple_omp_task_arg_align_ptr): Likewise.
27943 (gimple_omp_task_set_arg_align): Likewise.
27944 (gimple_omp_single_clauses): Likewise.
27945 (gimple_omp_single_clauses_ptr): Likewise.
27946 (gimple_omp_single_set_clauses): Likewise.
27947 (gimple_omp_target_clauses): Likewise.
27948 (gimple_omp_target_clauses_ptr): Likewise.
27949 (gimple_omp_target_set_clauses): Likewise.
27950 (gimple_omp_target_child_fn): Likewise.
27951 (gimple_omp_target_child_fn_ptr): Likewise.
27952 (gimple_omp_target_set_child_fn): Likewise.
27953 (gimple_omp_target_data_arg): Likewise.
27954 (gimple_omp_target_data_arg_ptr): Likewise.
27955 (gimple_omp_target_set_data_arg): Likewise.
27956 (gimple_omp_teams_clauses): Likewise.
27957 (gimple_omp_teams_clauses_ptr): Likewise.
27958 (gimple_omp_teams_set_clauses): Likewise.
27959 (gimple_omp_sections_clauses): Likewise.
27960 (gimple_omp_sections_clauses_ptr): Likewise.
27961 (gimple_omp_sections_set_clauses): Likewise.
27962 (gimple_omp_sections_control): Likewise.
27963 (gimple_omp_sections_control_ptr): Likewise.
27964 (gimple_omp_sections_set_control): Likewise.
27965 (gimple_omp_for_set_cond): Likewise.
27966 (gimple_omp_for_cond): Likewise.
27967 (gimple_omp_atomic_store_set_val): Likewise.
27968 (gimple_omp_atomic_store_val): Likewise.
27969 (gimple_omp_atomic_store_val_ptr): Likewise.
27970 (gimple_omp_atomic_load_set_lhs): Likewise.
27971 (gimple_omp_atomic_load_lhs): Likewise.
27972 (gimple_omp_atomic_load_lhs_ptr): Likewise.
27973 (gimple_omp_atomic_load_set_rhs): Likewise.
27974 (gimple_omp_atomic_load_rhs): Likewise.
27975 (gimple_omp_atomic_load_rhs_ptr): Likewise.
27976 (gimple_omp_continue_control_def): Likewise.
27977 (gimple_omp_continue_control_def_ptr): Likewise.
27978 (gimple_omp_continue_set_control_def): Likewise.
27979 (gimple_omp_continue_control_use): Likewise.
27980 (gimple_omp_continue_control_use_ptr): Likewise.
27981 (gimple_omp_continue_set_control_use): Likewise.
27982 (gimple_transaction_body_ptr): Likewise.
27983 (gimple_transaction_label): Likewise.
27984 (gimple_transaction_label_ptr): Likewise.
27985 (gimple_transaction_set_body): Likewise.
27986 (gimple_transaction_set_label): Likewise.
27988 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
27989 * ipa-inline-analysis.c (inline_write_summary): Likewise.
27990 * ipa-ref.c (ipa_record_reference): Likewise.
27991 * ipa-reference.c (analyze_function): Likewise.
27992 (ipa_reference_write_optimization_summary): Likewise.
27993 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
27994 (address_taken_from_non_vtable_p): Likewise.
27995 (comdat_can_be_unshared_p_1): Likewise.
27996 * lto-cgraph.c (lto_output_ref): Likewise.
27997 (add_references): Likewise.
27998 (compute_ltrans_boundary): Likewise.
27999 (output_symtab): Likewise.
28000 (input_ref): Likewise.
28001 (input_cgraph_1): Likewise.
28002 (output_cgraph_opt_summary): Likewise.
28003 * lto-streamer-out.c (lto_output): Likewise.
28004 (output_symbol_p): Likewise.
28005 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28006 (lsei_start_function_in_partition): Likewise.
28007 (lsei_next_variable_in_partition): Likewise.
28008 (lsei_start_variable_in_partition): Likewise.
28009 * symtab.c (insert_to_assembler_name_hash): Likewise.
28010 (unlink_from_assembler_name_hash): Likewise.
28011 (symtab_unregister_node): Likewise.
28012 (symtab_remove_node): Likewise.
28013 (dump_symtab_node): Likewise.
28014 (verify_symtab_base): Likewise.
28015 (verify_symtab_node): Likewise.
28016 (symtab_make_decl_local): Likewise.
28017 (symtab_alias_ultimate_target): Likewise.
28018 (symtab_resolve_alias): Likewise.
28019 (symtab_get_symbol_partitioning_class): Likewise.
28020 * tree-phinodes.c (allocate_phi_node): Likewise.
28021 (reserve_phi_args_for_new_edge): Likewise.
28022 (remove_phi_args): Likewise.
28023 * varpool.c (varpool_node_for_asm): Likewise.
28024 (varpool_remove_unreferenced_decls): Likewise.
28026 2014-04-23 Jeff Law <law@redhat.com>
28028 PR tree-optimization/60902
28029 * tree-ssa-threadedge.c
28030 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28031 invalidate outputs from statements that do not produce useful
28032 outputs for threading.
28034 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
28036 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28037 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28038 machine descriptions for Stack Smashing Protector.
28040 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
28042 * aarch64.md (<optab>_rol<mode>3): New pattern.
28043 (<optab>_rolsi3_uxtw): Likewise.
28044 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28046 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
28048 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28049 (arm_cortex_a12_tune): Likewise.
28051 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28053 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28055 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28057 * config/arm/arm.md (arm_rev16si2): New pattern.
28058 (arm_rev16si2_alt): Likewise.
28059 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28061 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28063 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28064 (rev16<mode>2_alt): Likewise.
28065 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28066 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28067 (aarch_rev16_shleft_mask_imm_p): Likewise.
28068 (aarch_rev16_p_1): Likewise.
28069 (aarch_rev16_p): Likewise.
28070 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28071 (aarch_rev16_shright_mask_imm_p): Likewise.
28072 (aarch_rev16_shleft_mask_imm_p): Likewise.
28074 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28076 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28077 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28079 (cortex_a53_extra_costs): Likewise.
28080 (cortex_a57_extra_costs): Likewise.
28081 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28082 (cortexa7_extra_costs): Likewise.
28083 (cortexa8_extra_costs): Likewise.
28084 (cortexa12_extra_costs): Likewise.
28085 (cortexa15_extra_costs): Likewise.
28086 (v7m_extra_costs): Likewise.
28087 (arm_new_rtx_costs): Handle BSWAP.
28089 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28091 * config/arm/arm.c (cortexa8_extra_costs): New table.
28092 (arm_cortex_a8_tune): New tuning struct.
28093 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28095 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28097 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
28099 2014-04-23 Richard Biener <rguenther@suse.de>
28101 * Makefile.in (OBJS): Remove loop-unswitch.o.
28102 * tree-pass.h (make_pass_rtl_unswitch): Remove.
28103 * passes.def (pass_rtl_unswitch): Likewise.
28104 * loop-init.c (gate_rtl_unswitch): Likewise.
28105 (rtl_unswitch): Likewise.
28106 (pass_data_rtl_unswitch): Likewise.
28107 (pass_rtl_unswitch): Likewise.
28108 (make_pass_rtl_unswitch): Likewise.
28109 * rtl.h (reversed_condition): Likewise.
28110 (compare_and_jump_seq): Likewise.
28111 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
28113 * loop-unroll.c (compare_and_jump_seq): Likewise.
28115 2014-04-23 Richard Biener <rguenther@suse.de>
28117 PR tree-optimization/60903
28118 * tree-ssa-loop-im.c (analyze_memory_references): Remove
28119 commented code block.
28120 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
28121 loop flags to newly created BBs and edges.
28123 2014-04-23 Nick Clifton <nickc@redhat.com>
28125 * config/msp430/msp430.c (msp430_handle_option): Move function
28127 (msp430_option_override): Simplify mcu and mcpu option handling.
28128 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
28129 support for -mhwmult command line option.
28130 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
28131 -mhwmult command line option.
28132 (msp430_hwmult_enabled): Delete.
28133 (msp43o_output_labelref): Add support for -mhwmult command line option.
28134 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28135 (umulsidi3): Likewise.
28136 * config/msp430/msp430.opt (mmcu): Add Report attribute.
28137 (mcpu, mlarge, msmall): Likewise.
28138 (mhwmult): New option.
28139 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28141 (msp430_is_f5_mcu): Remove prototype.
28142 (msp430_use_f5_series_hwmult): Add prototype.
28143 * config/msp430/msp430-opts.h: New file.
28144 * common/config/msp430: New directory.
28145 * common/config/msp430/msp430-common.c: New file.
28146 * config.gcc (msp430): Remove target_has_targetm_common.
28147 * doc/invoke.texi: Document -mhwmult command line option.
28149 2014-04-23 Nick Clifton <nickc@redhat.com>
28151 * config/i386/cygwin.h (ENDFILE_SPEC): Include
28152 default-manifest.o if it can be found in the search path.
28153 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28155 2014-04-23 Terry Guo <terry.guo@arm.com>
28157 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28159 2014-04-23 Richard Biener <rguenther@suse.de>
28161 PR middle-end/60895
28162 * tree-inline.c (declare_return_variable): Use mark_addressable.
28164 2014-04-23 Richard Biener <rguenther@suse.de>
28166 PR middle-end/60891
28167 * loop-init.c (loop_optimizer_init): Make sure to apply
28168 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28170 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28173 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28175 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28176 if flag_sanitize_undefined_trap_on_error.
28177 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28178 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28179 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28180 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28181 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28182 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28183 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28184 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28185 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28186 * ubsan.c (ubsan_instrument_unreachable): Return
28187 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28188 (ubsan_expand_null_ifn): Emit __builtin_trap ()
28189 if flag_sanitize_undefined_trap_on_error and
28190 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28191 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28192 instrument_bool_enum_load): Emit __builtin_trap () if
28193 flag_sanitize_undefined_trap_on_error and
28194 __builtin_handle_*_abort () if !flag_sanitize_recover.
28195 * doc/invoke.texi (-fsanitize-recover,
28196 -fsanitize-undefined-trap-on-error): Document.
28198 2014-04-22 Christian Bruel <christian.bruel@st.com>
28200 * config/sh/sh.md (mov<mode>): Replace movQIHI.
28201 Force immediates to SImode.
28203 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
28205 * config/nios2/nios2.md (UNSPEC_ROUND): New.
28206 (lroundsfsi2): New.
28207 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28208 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28209 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28210 (nios2_fpu_insn): Add entry for round.
28211 (N2FPU_NO_ERRNO_P): Define.
28212 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28214 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28216 2014-04-22 Richard Henderson <rth@redhat.com>
28218 * config/aarch64/aarch64 (addti3, subti3): New expanders.
28219 (add<GPI>3_compare0): Remove leading * from name.
28220 (add<GPI>3_carryin): Likewise.
28221 (sub<GPI>3_compare0): Likewise.
28222 (sub<GPI>3_carryin): Likewise.
28223 (<su_optab>mulditi3): New expander.
28224 (multi3): New expander.
28225 (madd<GPI>): Remove leading * from name.
28227 2014-04-22 Martin Jambor <mjambor@suse.cz>
28229 * cgraphclones.c (cgraph_function_versioning): Copy
28230 ipa_transforms_to_apply instead of asserting it is empty.
28232 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
28235 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
28236 on count_exp to get mode.
28238 2014-04-22 Andrew Pinski <apinski@cavium.com>
28240 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28241 Handle TLS for ILP32.
28242 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
28243 (tlsie_small_<mode>): this and handle PTR.
28244 (tlsie_small_sidi): New pattern.
28245 (tlsle_small): Change to an expand to handle ILP32.
28246 (tlsle_small_<mode>): New pattern.
28247 (tlsdesc_small): Rename to ...
28248 (tlsdesc_small_<mode>): this and handle PTR.
28250 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28252 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
28254 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28256 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28257 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
28258 (aarch64_types_signed_poly_qualifiers): Likewise.
28259 (aarch64_types_unsigned_signed_qualifiers): Likewise.
28260 (aarch64_types_poly_signed_qualifiers): Likewise.
28261 (TYPES_REINTERP_SS): Type macro added.
28262 (TYPES_REINTERP_SU): Likewise.
28263 (TYPES_REINTERP_SP): Likewise.
28264 (TYPES_REINTERP_US): Likewise.
28265 (TYPES_REINTERP_PS): Likewise.
28266 (aarch64_fold_builtin): New expression folding added.
28267 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
28268 Declarations removed.
28269 (REINTERP_SS): Declarations added.
28270 (REINTERP_US): Likewise.
28271 (REINTERP_PS): Likewise.
28272 (REINTERP_SU): Likewise.
28273 (REINTERP_SP): Likewise.
28274 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
28275 (vreinterpretq_p8_f64): Likewise.
28276 (vreinterpret_p16_f64): Likewise.
28277 (vreinterpretq_p16_f64): Likewise.
28278 (vreinterpret_f32_f64): Likewise.
28279 (vreinterpretq_f32_f64): Likewise.
28280 (vreinterpret_f64_f32): Likewise.
28281 (vreinterpret_f64_p8): Likewise.
28282 (vreinterpret_f64_p16): Likewise.
28283 (vreinterpret_f64_s8): Likewise.
28284 (vreinterpret_f64_s16): Likewise.
28285 (vreinterpret_f64_s32): Likewise.
28286 (vreinterpret_f64_s64): Likewise.
28287 (vreinterpret_f64_u8): Likewise.
28288 (vreinterpret_f64_u16): Likewise.
28289 (vreinterpret_f64_u32): Likewise.
28290 (vreinterpret_f64_u64): Likewise.
28291 (vreinterpretq_f64_f32): Likewise.
28292 (vreinterpretq_f64_p8): Likewise.
28293 (vreinterpretq_f64_p16): Likewise.
28294 (vreinterpretq_f64_s8): Likewise.
28295 (vreinterpretq_f64_s16): Likewise.
28296 (vreinterpretq_f64_s32): Likewise.
28297 (vreinterpretq_f64_s64): Likewise.
28298 (vreinterpretq_f64_u8): Likewise.
28299 (vreinterpretq_f64_u16): Likewise.
28300 (vreinterpretq_f64_u32): Likewise.
28301 (vreinterpretq_f64_u64): Likewise.
28302 (vreinterpret_s64_f64): Likewise.
28303 (vreinterpretq_s64_f64): Likewise.
28304 (vreinterpret_u64_f64): Likewise.
28305 (vreinterpretq_u64_f64): Likewise.
28306 (vreinterpret_s8_f64): Likewise.
28307 (vreinterpretq_s8_f64): Likewise.
28308 (vreinterpret_s16_f64): Likewise.
28309 (vreinterpretq_s16_f64): Likewise.
28310 (vreinterpret_s32_f64): Likewise.
28311 (vreinterpretq_s32_f64): Likewise.
28312 (vreinterpret_u8_f64): Likewise.
28313 (vreinterpretq_u8_f64): Likewise.
28314 (vreinterpret_u16_f64): Likewise.
28315 (vreinterpretq_u16_f64): Likewise.
28316 (vreinterpret_u32_f64): Likewise.
28317 (vreinterpretq_u32_f64): Likewise.
28319 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28321 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28322 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
28323 (vreinterpret_p8_s8): Likewise.
28324 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
28325 (vreinterpret_p8_s16): Likewise.
28326 (vreinterpret_p8_s32): Likewise.
28327 (vreinterpret_p8_s64): Likewise.
28328 (vreinterpret_p8_f32): Likewise.
28329 (vreinterpret_p8_u8): Likewise.
28330 (vreinterpret_p8_u16): Likewise.
28331 (vreinterpret_p8_u32): Likewise.
28332 (vreinterpret_p8_u64): Likewise.
28333 (vreinterpret_p8_p16): Likewise.
28334 (vreinterpretq_p8_s8): Likewise.
28335 (vreinterpretq_p8_s16): Likewise.
28336 (vreinterpretq_p8_s32): Likewise.
28337 (vreinterpretq_p8_s64): Likewise.
28338 (vreinterpretq_p8_f32): Likewise.
28339 (vreinterpretq_p8_u8): Likewise.
28340 (vreinterpretq_p8_u16): Likewise.
28341 (vreinterpretq_p8_u32): Likewise.
28342 (vreinterpretq_p8_u64): Likewise.
28343 (vreinterpretq_p8_p16): Likewise.
28344 (vreinterpret_p16_s8): Likewise.
28345 (vreinterpret_p16_s16): Likewise.
28346 (vreinterpret_p16_s32): Likewise.
28347 (vreinterpret_p16_s64): Likewise.
28348 (vreinterpret_p16_f32): Likewise.
28349 (vreinterpret_p16_u8): Likewise.
28350 (vreinterpret_p16_u16): Likewise.
28351 (vreinterpret_p16_u32): Likewise.
28352 (vreinterpret_p16_u64): Likewise.
28353 (vreinterpret_p16_p8): Likewise.
28354 (vreinterpretq_p16_s8): Likewise.
28355 (vreinterpretq_p16_s16): Likewise.
28356 (vreinterpretq_p16_s32): Likewise.
28357 (vreinterpretq_p16_s64): Likewise.
28358 (vreinterpretq_p16_f32): Likewise.
28359 (vreinterpretq_p16_u8): Likewise.
28360 (vreinterpretq_p16_u16): Likewise.
28361 (vreinterpretq_p16_u32): Likewise.
28362 (vreinterpretq_p16_u64): Likewise.
28363 (vreinterpretq_p16_p8): Likewise.
28364 (vreinterpret_f32_s8): Likewise.
28365 (vreinterpret_f32_s16): Likewise.
28366 (vreinterpret_f32_s32): Likewise.
28367 (vreinterpret_f32_s64): Likewise.
28368 (vreinterpret_f32_u8): Likewise.
28369 (vreinterpret_f32_u16): Likewise.
28370 (vreinterpret_f32_u32): Likewise.
28371 (vreinterpret_f32_u64): Likewise.
28372 (vreinterpret_f32_p8): Likewise.
28373 (vreinterpret_f32_p16): Likewise.
28374 (vreinterpretq_f32_s8): Likewise.
28375 (vreinterpretq_f32_s16): Likewise.
28376 (vreinterpretq_f32_s32): Likewise.
28377 (vreinterpretq_f32_s64): Likewise.
28378 (vreinterpretq_f32_u8): Likewise.
28379 (vreinterpretq_f32_u16): Likewise.
28380 (vreinterpretq_f32_u32): Likewise.
28381 (vreinterpretq_f32_u64): Likewise.
28382 (vreinterpretq_f32_p8): Likewise.
28383 (vreinterpretq_f32_p16): Likewise.
28384 (vreinterpret_s64_s8): Likewise.
28385 (vreinterpret_s64_s16): Likewise.
28386 (vreinterpret_s64_s32): Likewise.
28387 (vreinterpret_s64_f32): Likewise.
28388 (vreinterpret_s64_u8): Likewise.
28389 (vreinterpret_s64_u16): Likewise.
28390 (vreinterpret_s64_u32): Likewise.
28391 (vreinterpret_s64_u64): Likewise.
28392 (vreinterpret_s64_p8): Likewise.
28393 (vreinterpret_s64_p16): Likewise.
28394 (vreinterpretq_s64_s8): Likewise.
28395 (vreinterpretq_s64_s16): Likewise.
28396 (vreinterpretq_s64_s32): Likewise.
28397 (vreinterpretq_s64_f32): Likewise.
28398 (vreinterpretq_s64_u8): Likewise.
28399 (vreinterpretq_s64_u16): Likewise.
28400 (vreinterpretq_s64_u32): Likewise.
28401 (vreinterpretq_s64_u64): Likewise.
28402 (vreinterpretq_s64_p8): Likewise.
28403 (vreinterpretq_s64_p16): Likewise.
28404 (vreinterpret_u64_s8): Likewise.
28405 (vreinterpret_u64_s16): Likewise.
28406 (vreinterpret_u64_s32): Likewise.
28407 (vreinterpret_u64_s64): Likewise.
28408 (vreinterpret_u64_f32): Likewise.
28409 (vreinterpret_u64_u8): Likewise.
28410 (vreinterpret_u64_u16): Likewise.
28411 (vreinterpret_u64_u32): Likewise.
28412 (vreinterpret_u64_p8): Likewise.
28413 (vreinterpret_u64_p16): Likewise.
28414 (vreinterpretq_u64_s8): Likewise.
28415 (vreinterpretq_u64_s16): Likewise.
28416 (vreinterpretq_u64_s32): Likewise.
28417 (vreinterpretq_u64_s64): Likewise.
28418 (vreinterpretq_u64_f32): Likewise.
28419 (vreinterpretq_u64_u8): Likewise.
28420 (vreinterpretq_u64_u16): Likewise.
28421 (vreinterpretq_u64_u32): Likewise.
28422 (vreinterpretq_u64_p8): Likewise.
28423 (vreinterpretq_u64_p16): Likewise.
28424 (vreinterpret_s8_s16): Likewise.
28425 (vreinterpret_s8_s32): Likewise.
28426 (vreinterpret_s8_s64): Likewise.
28427 (vreinterpret_s8_f32): Likewise.
28428 (vreinterpret_s8_u8): Likewise.
28429 (vreinterpret_s8_u16): Likewise.
28430 (vreinterpret_s8_u32): Likewise.
28431 (vreinterpret_s8_u64): Likewise.
28432 (vreinterpret_s8_p8): Likewise.
28433 (vreinterpret_s8_p16): Likewise.
28434 (vreinterpretq_s8_s16): Likewise.
28435 (vreinterpretq_s8_s32): Likewise.
28436 (vreinterpretq_s8_s64): Likewise.
28437 (vreinterpretq_s8_f32): Likewise.
28438 (vreinterpretq_s8_u8): Likewise.
28439 (vreinterpretq_s8_u16): Likewise.
28440 (vreinterpretq_s8_u32): Likewise.
28441 (vreinterpretq_s8_u64): Likewise.
28442 (vreinterpretq_s8_p8): Likewise.
28443 (vreinterpretq_s8_p16): Likewise.
28444 (vreinterpret_s16_s8): Likewise.
28445 (vreinterpret_s16_s32): Likewise.
28446 (vreinterpret_s16_s64): Likewise.
28447 (vreinterpret_s16_f32): Likewise.
28448 (vreinterpret_s16_u8): Likewise.
28449 (vreinterpret_s16_u16): Likewise.
28450 (vreinterpret_s16_u32): Likewise.
28451 (vreinterpret_s16_u64): Likewise.
28452 (vreinterpret_s16_p8): Likewise.
28453 (vreinterpret_s16_p16): Likewise.
28454 (vreinterpretq_s16_s8): Likewise.
28455 (vreinterpretq_s16_s32): Likewise.
28456 (vreinterpretq_s16_s64): Likewise.
28457 (vreinterpretq_s16_f32): Likewise.
28458 (vreinterpretq_s16_u8): Likewise.
28459 (vreinterpretq_s16_u16): Likewise.
28460 (vreinterpretq_s16_u32): Likewise.
28461 (vreinterpretq_s16_u64): Likewise.
28462 (vreinterpretq_s16_p8): Likewise.
28463 (vreinterpretq_s16_p16): Likewise.
28464 (vreinterpret_s32_s8): Likewise.
28465 (vreinterpret_s32_s16): Likewise.
28466 (vreinterpret_s32_s64): Likewise.
28467 (vreinterpret_s32_f32): Likewise.
28468 (vreinterpret_s32_u8): Likewise.
28469 (vreinterpret_s32_u16): Likewise.
28470 (vreinterpret_s32_u32): Likewise.
28471 (vreinterpret_s32_u64): Likewise.
28472 (vreinterpret_s32_p8): Likewise.
28473 (vreinterpret_s32_p16): Likewise.
28474 (vreinterpretq_s32_s8): Likewise.
28475 (vreinterpretq_s32_s16): Likewise.
28476 (vreinterpretq_s32_s64): Likewise.
28477 (vreinterpretq_s32_f32): Likewise.
28478 (vreinterpretq_s32_u8): Likewise.
28479 (vreinterpretq_s32_u16): Likewise.
28480 (vreinterpretq_s32_u32): Likewise.
28481 (vreinterpretq_s32_u64): Likewise.
28482 (vreinterpretq_s32_p8): Likewise.
28483 (vreinterpretq_s32_p16): Likewise.
28484 (vreinterpret_u8_s8): Likewise.
28485 (vreinterpret_u8_s16): Likewise.
28486 (vreinterpret_u8_s32): Likewise.
28487 (vreinterpret_u8_s64): Likewise.
28488 (vreinterpret_u8_f32): Likewise.
28489 (vreinterpret_u8_u16): Likewise.
28490 (vreinterpret_u8_u32): Likewise.
28491 (vreinterpret_u8_u64): Likewise.
28492 (vreinterpret_u8_p8): Likewise.
28493 (vreinterpret_u8_p16): Likewise.
28494 (vreinterpretq_u8_s8): Likewise.
28495 (vreinterpretq_u8_s16): Likewise.
28496 (vreinterpretq_u8_s32): Likewise.
28497 (vreinterpretq_u8_s64): Likewise.
28498 (vreinterpretq_u8_f32): Likewise.
28499 (vreinterpretq_u8_u16): Likewise.
28500 (vreinterpretq_u8_u32): Likewise.
28501 (vreinterpretq_u8_u64): Likewise.
28502 (vreinterpretq_u8_p8): Likewise.
28503 (vreinterpretq_u8_p16): Likewise.
28504 (vreinterpret_u16_s8): Likewise.
28505 (vreinterpret_u16_s16): Likewise.
28506 (vreinterpret_u16_s32): Likewise.
28507 (vreinterpret_u16_s64): Likewise.
28508 (vreinterpret_u16_f32): Likewise.
28509 (vreinterpret_u16_u8): Likewise.
28510 (vreinterpret_u16_u32): Likewise.
28511 (vreinterpret_u16_u64): Likewise.
28512 (vreinterpret_u16_p8): Likewise.
28513 (vreinterpret_u16_p16): Likewise.
28514 (vreinterpretq_u16_s8): Likewise.
28515 (vreinterpretq_u16_s16): Likewise.
28516 (vreinterpretq_u16_s32): Likewise.
28517 (vreinterpretq_u16_s64): Likewise.
28518 (vreinterpretq_u16_f32): Likewise.
28519 (vreinterpretq_u16_u8): Likewise.
28520 (vreinterpretq_u16_u32): Likewise.
28521 (vreinterpretq_u16_u64): Likewise.
28522 (vreinterpretq_u16_p8): Likewise.
28523 (vreinterpretq_u16_p16): Likewise.
28524 (vreinterpret_u32_s8): Likewise.
28525 (vreinterpret_u32_s16): Likewise.
28526 (vreinterpret_u32_s32): Likewise.
28527 (vreinterpret_u32_s64): Likewise.
28528 (vreinterpret_u32_f32): Likewise.
28529 (vreinterpret_u32_u8): Likewise.
28530 (vreinterpret_u32_u16): Likewise.
28531 (vreinterpret_u32_u64): Likewise.
28532 (vreinterpret_u32_p8): Likewise.
28533 (vreinterpret_u32_p16): Likewise.
28534 (vreinterpretq_u32_s8): Likewise.
28535 (vreinterpretq_u32_s16): Likewise.
28536 (vreinterpretq_u32_s32): Likewise.
28537 (vreinterpretq_u32_s64): Likewise.
28538 (vreinterpretq_u32_f32): Likewise.
28539 (vreinterpretq_u32_u8): Likewise.
28540 (vreinterpretq_u32_u16): Likewise.
28541 (vreinterpretq_u32_u64): Likewise.
28542 (vreinterpretq_u32_p8): Likewise.
28543 (vreinterpretq_u32_p16): Likewise.
28545 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28547 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28549 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28551 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28552 (vqnegd_s64): Likewise.
28553 (vqabs_s64): Likewise.
28554 (vqabsd_s64): Likewise.
28556 2014-04-22 Richard Henderson <rth@redhat.com>
28558 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28559 computation to the top of the loop.
28561 2014-04-22 Renlin <renlin.li@arm.com>
28562 Jiong Wang <jiong.wang@arm.com>
28564 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28565 * config/aarch64/aarch64.c (aarch64_layout_frame)
28566 (aarch64_initial_elimination_offset): Likewise.
28568 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
28570 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28573 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
28575 * machmode.h (bitwise_mode_for_mode): Declare.
28576 * stor-layout.h (bitwise_type_for_mode): Likewise.
28577 * stor-layout.c (bitwise_mode_for_mode): New function.
28578 (bitwise_type_for_mode): Likewise.
28579 * builtins.c (fold_builtin_memory_op): Use it instead of
28580 int_mode_for_mode and build_nonstandard_integer_type.
28582 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28584 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
28585 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
28586 (*-*-solaris2*): Simplify.
28587 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
28588 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
28589 *-*-solaris2.9* handling.
28591 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
28593 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
28594 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
28595 handling, simplify.
28596 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28597 * configure: Regenerate.
28599 * config/i386/sol2-9.h: Remove.
28601 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28602 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28603 Remove Solaris 9 references.
28605 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
28607 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28608 (floatuns<GPI:mode><GPF:mode>2): Remove.
28609 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28610 and floatuns conversions.
28611 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28612 and floatuns conversions.
28613 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28614 (w1,w2): New mode attributes for inequal width conversions.
28616 2014-04-22 Renlin Li <Renlin.Li@arm.com>
28618 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28619 the output asm format.
28621 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28623 * config/aarch64/aarch64-simd.md
28624 (aarch64_cm<optab>di): Always split.
28625 (*aarch64_cm<optab>di): New.
28626 (aarch64_cmtstdi): Always split.
28627 (*aarch64_cmtstdi): New.
28629 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28631 PR tree-optimization/60823
28632 * omp-low.c (ipa_simd_modify_function_body): Go through
28633 all SSA_NAMEs and for those refering to vector arguments
28634 which are going to be replaced adjust SSA_NAME_VAR and,
28635 if it is a default definition, change it into a non-default
28636 definition assigned at the beginning of function from new_decl.
28637 (ipa_simd_modify_stmt_ops): Rewritten.
28638 * tree-dfa.c (set_ssa_default_def): When removing default def,
28639 check for NULL loc instead of NULL *loc.
28641 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28643 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
28644 restrictions on core registers for DImode values in Thumb2.
28646 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28648 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
28649 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
28651 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28653 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
28654 (*iordi_notzesidi_di): Likewise.
28655 (*iordi_notsesidi_di): Likewise.
28657 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28659 * config/arm/arm-protos.h (tune_params): New struct members.
28660 * config/arm/arm.c: Initialise tune_params per processor.
28661 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
28662 for speed, based on new tune_params.
28664 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28666 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
28667 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
28668 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
28669 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
28670 * config/aarch64/arm_neon.h (vrnd_f64): Added.
28671 (vrnda_f64): Likewise.
28672 (vrndi_f64): Likewise.
28673 (vrndm_f64): Likewise.
28674 (vrndn_f64): Likewise.
28675 (vrndp_f64): Likewise.
28676 (vrndx_f64): Likewise.
28678 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28680 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
28681 GET_MODE_SIZE argument is enum machine_mode.
28683 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28686 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
28687 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
28689 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
28691 PR middle-end/60281
28692 * asan.c (asan_emit_stack_protection): Force the base to align to
28693 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
28694 appropriate bits if STRICT_ALIGNMENT.
28695 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
28697 (expand_used_vars): Leave a space in the stack frame for alignment
28698 if STRICT_ALIGNMENT.
28700 2014-04-21 David Malcolm <dmalcolm@redhat.com>
28702 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
28704 (gimple_store_p): Likewise.
28705 (gimple_assign_load_p): Likewise.
28706 (gimple_assign_cast_p): Likewise.
28707 (gimple_clobber_p): Likewise.
28709 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
28710 rather than a gimple.
28711 (gimple_assign_cast_p): Likewise.
28713 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28716 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
28717 If mode is DDmode and TARGET_E500_DOUBLE allow move.
28719 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
28720 more debug information for E500 if -mdebug=reg.
28722 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
28725 * config/i386/i386.c (ix86_expand_builtin)
28726 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
28727 register for target RTX.
28728 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
28730 2014-04-18 Cong Hou <congh@google.com>
28732 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
28733 the widen-mult pattern by handling two operands with different sizes,
28734 and operands whose size is smaller than half of the result type.
28736 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
28738 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
28739 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
28740 (do_estimate_edge_time): Compute it.
28741 * ipa-inline.c (want_inline_small_function_p): Bypass
28742 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
28744 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
28746 * ipa-inline.c (spec_rem): New static variable.
28747 (dump_overall_stats): New function.
28748 (dump_inline_stats): New function.
28750 2014-04-18 Richard Henderson <rth@redhat.com>
28752 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
28753 to GET_MODE_SIZE, not a reg_class_t.
28755 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28757 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
28758 (vsx_xxmrglw_<mode>): Likewise.
28760 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
28763 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
28764 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
28765 (rs6000_init_hard_regno_mode_ok): Likewise.
28767 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
28769 * ipa-inline.c (inline_small_functions): Account only non-cold
28771 * doc/invoke.texi (inline-unit-growth): Update documentation.
28773 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
28775 * config/rs6000/rs6000.md (addti3, subti3): New.
28777 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
28780 * config/i386/i386.c (ix86_expand_clear): Remove outdated
28781 comment. Check optimize_insn_for_size_p instead of
28782 optimize_insn_for_speed_p.
28784 2014-04-17 Martin Jambor <mjambor@suse.cz>
28786 * gimple-iterator.c (gsi_start_edge): New function.
28787 * gimple-iterator.h (gsi_start_edge): Declare.
28788 * tree-sra.c (single_non_eh_succ): New function.
28789 (disqualify_ops_if_throwing_stmt): Renamed to
28790 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
28791 having one non-EH successor BB.
28792 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
28793 generate loads into replacements.
28794 (sra_modify_assign): Likewise and and also use the simple path for
28796 (sra_modify_function_body): Commit statements on edges.
28798 2014-04-17 Richard Biener <rguenther@suse.de>
28800 PR middle-end/60849
28801 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
28802 comparison results and add clarifying comment.
28804 2014-04-17 Jakub Jelinek <jakub@redhat.com>
28806 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
28807 (blank_mode): Initialize it.
28808 (emit_mode_size_inline, emit_mode_nunits_inline,
28809 emit_mode_inner_inline): New functions.
28810 (emit_insn_modes_h): Call them and surround their output with
28811 #if GCC_VERSION >= 4001 ... #endif.
28812 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
28813 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
28814 mode_* arrays if the argument is __builtin_constant_p.
28815 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
28816 is enum machine_mode.
28818 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28820 * passes.c (opt_pass::execute): Adjust.
28821 (pass_manager::execute_pass_mode_switching): Likewise.
28822 (early_local_passes::execute): Likewise.
28823 (execute_one_pass): Pass cfun to the pass's execute method.
28824 * tree-pass.h (opt_pass::execute): Add function * argument.
28825 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28826 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28827 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28828 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28829 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28830 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
28831 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
28832 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28833 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28834 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
28835 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
28836 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
28837 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
28838 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
28839 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28840 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28841 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28842 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
28843 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
28844 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28845 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28846 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28847 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28848 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28849 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28850 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28851 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28852 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28853 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28856 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28858 * passes.c (opt_pass::gate): Take function * argument.
28859 (gate_all_early_local_passes): Merge into
28860 (early_local_passes::gate): this.
28861 (gate_all_early_optimizations): Merge into
28862 (all_early_optimizations::gate): this.
28863 (gate_all_optimizations): Mege into
28864 (all_optimizations::gate): this.
28865 (gate_all_optimizations_g): Merge into
28866 (all_optimizations_g::gate): this.
28867 (gate_rest_of_compilation): Mege into
28868 (rest_of_compilation::gate): this.
28869 (gate_postreload): Merge into
28870 (postreload::gate): this.
28871 (dump_one_pass): Pass cfun to the pass's gate method.
28872 (execute_ipa_summary_passes): Likewise.
28873 (execute_one_pass): Likewise.
28874 (ipa_write_summaries_2): Likewise.
28875 (ipa_write_optimization_summaries_1): Likewise.
28876 (ipa_read_summaries_1): Likewise.
28877 (ipa_read_optimization_summaries_1): Likewise.
28878 (execute_ipa_stmt_fixups): Likewise.
28879 * tree-pass.h (opt_pass::gate): Add function * argument.
28880 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
28881 combine-stack-adj.c, combine.c, compare-elim.c,
28882 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28883 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
28884 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
28885 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
28886 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28887 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28888 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28889 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
28890 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
28891 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
28892 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28893 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28894 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
28895 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28896 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28897 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28898 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28899 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28900 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28901 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28902 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28903 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28904 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
28905 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
28906 var-tracking.c, vtable-verify.c, web.c: Adjust.
28908 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28910 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
28911 * configure: Regenerate.
28913 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28915 * passes.c (dump_one_pass): don't check pass->has_gate.
28916 (execute_ipa_summary_passes): Likewise.
28917 (execute_one_pass): Likewise.
28918 (ipa_write_summaries_2): Likewise.
28919 (ipa_write_optimization_summaries_1): Likewise.
28920 (ipa_read_optimization_summaries_1): Likewise.
28921 (execute_ipa_stmt_fixups): Likewise.
28922 * tree-pass.h (pass_data::has_gate): Remove.
28923 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28924 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28925 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28926 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28927 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28928 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
28929 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
28930 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
28931 gimple-low.c, gimple-ssa-isolate-paths.c,
28932 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
28933 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
28934 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28935 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
28936 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
28937 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
28938 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
28939 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
28940 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
28941 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28942 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28943 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28944 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28945 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28946 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28947 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28948 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28949 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28950 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28951 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28952 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28953 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28956 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28958 * pass_manager.h (pass_manager::register_dump_files_1): Remove
28960 * passes.c (pass_manager::register_dump_files_1): Merge into
28961 (pass_manager::register_dump_files): this, and remove its handling of
28962 properties since the pass always has the properties anyway.
28963 (pass_manager::pass_manager): Adjust.
28965 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28967 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
28968 * passes.c (pass_manager::register_dump_files_1): Remove dead code
28969 dealing with properties.
28970 (pass_manager::register_dump_files): Adjust.
28972 2014-03-20 Mark Wielaard <mjw@redhat.com>
28974 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
28975 then represent the bound as normal constant value.
28977 2014-04-17 Jakub Jelinek <jakub@redhat.com>
28980 Forward port from 4.8 branch
28981 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
28983 * config/i386/bmiintrin.h (_blsi_u32): New.
28984 (_blsi_u64): Ditto.
28985 (_blsr_u32): Ditto.
28986 (_blsr_u64): Ditto.
28987 (_blsmsk_u32): Ditto.
28988 (_blsmsk_u64): Ditto.
28989 (_tzcnt_u32): Ditto.
28990 (_tzcnt_u64): Ditto.
28992 2014-04-17 Kito Cheng <kito@0xlab.org>
28994 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
28996 2014-04-17 Richard Biener <rguenther@suse.de>
28998 PR middle-end/60849
28999 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29000 boolean results for comparisons.
29002 2014-04-17 Richard Biener <rguenther@suse.de>
29004 PR tree-optimization/60836
29005 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29006 initial PHI args to be gimple values.
29008 2014-04-17 Richard Biener <rguenther@suse.de>
29010 PR tree-optimization/60841
29011 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29012 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29013 of stmts to SLP build.
29014 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29015 (vect_analyze_slp): Likewise.
29016 (vect_analyze_slp_instance): Likewise.
29017 (vect_build_slp_tree): Limit overall SLP tree growth.
29018 * tree-vectorizer.h (vect_analyze_data_refs,
29019 vect_analyze_slp): Adjust prototypes.
29021 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29023 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29026 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29028 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29029 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29030 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29031 for TARGET_SLOW_PSHUFB
29033 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29035 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29036 * config/i386/i386.c (intel_cost): Ditto.
29038 2014-04-17 Joey Ye <joey.ye@arm.com>
29040 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29042 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29044 * opts.c (common_handle_option): Disable -fipa-reference coorectly
29045 with -fuse-profile.
29047 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29049 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29050 (type_all_derivations_known_p): New predicate.
29051 (type_all_ctors_visible_p): New predicate.
29052 (type_possibly_instantiated_p): New predicate.
29053 (get_odr_type): Compute all_derivations_known.
29054 (dump_odr_type): Dump the flag.
29055 (maybe_record_type): Cleanup.
29056 (record_target_from_binfo): Add bases_to_consider array;
29057 record bases for types w/o instances and skip CXX destructor.
29058 (possible_polymorphic_call_targets_1): Add bases_to_consider
29059 and consider_construction parameters; check if type may have instance.
29060 (get_polymorphic_call_info): Set maybe_in_construction to true
29061 when we know nothing.
29062 (record_targets_from_bases): Skip CXX destructors; they are
29063 never called for types in construction.
29064 (possible_polymorphic_call_targets): Do not record target when
29065 type may not have instance.
29067 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29070 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29071 external aliases alive, too.
29073 2014-04-16 Andrew Pinski <apinski@cavium.com>
29075 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29078 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29080 * final.c (compute_alignments): Do not apply loop alignment to a block
29081 falling through to the exit.
29083 2014-04-16 Catherine Moore <clm@codesourcery.com>
29085 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29086 Adjust constraints for microMIPS store patterns.
29088 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29090 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29092 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29094 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29095 (append_use): Run at -O0.
29096 (append_vdef): Likewise.
29097 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
29098 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
29100 2014-04-16 Jakub Jelinek <jakub@redhat.com>
29102 PR tree-optimization/60844
29103 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
29104 (propagate_op_to_single_use, remove_visited_stmt_chain,
29105 linearize_expr, repropagate_negates, reassociate_bb): Use it
29106 instead of gsi_remove.
29108 2014-04-16 Martin Jambor <mjambor@suse.cz>
29110 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
29111 ipa_transforms_to_apply.
29112 (cgraph_function_versioning): Assert that old_node has empty
29113 ipa_transforms_to_apply.
29114 * trans-mem.c (ipa_tm_create_version): Likewise.
29115 * tree-inline.c (tree_function_versioning): Do not duplicate
29116 ipa_transforms_to_apply.
29118 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29121 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
29123 Pass necessary as flags on 64-bit Solaris/x86.
29124 Use lowercase relocs for x86_64-*-*.
29125 * configure: Regenerate.
29127 2014-04-15 Jan Hubicka <jh@suse.cz>
29129 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
29130 (maybe_record_node, likely_target_p): Use it.
29132 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29135 Revert following patch
29137 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29140 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29141 software floating point or no floating point registers, do not
29142 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29143 in GPRs that occurs after we tested for GPRs that would never be
29146 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29147 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29148 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29149 specifically allow DDmode, since that does not use the SPE SIMD
29152 2014-03-21 Mark Wielaard <mjw@redhat.com>
29154 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29155 as unsigned or int depending on type and value used.
29157 2014-04-15 Richard Biener <rguenther@suse.de>
29159 PR rtl-optimization/56965
29160 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29161 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29163 * alias.c (true_dependence_1): Do not call
29164 nonoverlapping_component_refs_p.
29165 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29166 nonoverlapping_component_refs_p.
29167 (indirect_refs_may_alias_p): Likewise.
29169 2014-04-15 Teresa Johnson <tejohnson@google.com>
29171 * cfg.c (dump_bb_info): Fix flags check.
29172 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29174 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29176 PR rtl-optimization/60663
29177 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29180 2014-04-15 Richard Biener <rguenther@suse.de>
29182 * lto-streamer.h (LTO_major_version): Bump to 4.
29184 2014-04-15 Richard Biener <rguenther@suse.de>
29186 * common.opt (lto_partition_model): New enum.
29187 (flto-partition=): Merge separate options with a single with argument,
29188 add -flto-partition=one support.
29189 * flag-types.h (enum lto_partition_model): Declare.
29190 * opts.c (finish_options): Remove duplicate -flto-partition=
29192 * lto-wrapper.c (run_gcc): Adjust.
29194 2014-04-15 Richard Biener <rguenther@suse.de>
29196 * alias.c (ncr_compar): New function.
29197 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29199 2014-04-15 Richard Biener <rguenther@suse.de>
29201 * alias.c (record_component_aliases): Do not walk BINFOs.
29203 2014-04-15 Richard Biener <rguenther@suse.de>
29205 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29206 Add struct function argument and adjust.
29207 (find_func_aliases_for_call): Likewise.
29208 (find_func_aliases): Likewise.
29209 (find_func_clobbers): Likewise.
29210 (intra_create_variable_infos): Likewise.
29211 (compute_points_to_sets): Likewise.
29212 (ipa_pta_execute): Adjust. Do not push/pop cfun.
29214 2014-04-15 Richard Biener <rguenther@suse.de>
29216 * tree.c (iterative_hash_expr): Use enum tree_code_class
29217 to store TREE_CODE_CLASS.
29218 (tree_block): Likewise.
29219 (tree_set_block): Likewise.
29220 * tree.h (fold_build_pointer_plus_loc): Use
29221 convert_to_ptrofftype_loc.
29223 2014-04-15 Jakub Jelinek <jakub@redhat.com>
29226 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29229 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
29231 * cfgloop.h (struct loop): Move force_vectorize down.
29232 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
29233 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
29234 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
29235 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
29236 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
29237 * tree-core.h (enum annot_expr_kind): Add new kind values.
29238 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
29239 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
29241 * tree.def (ANNOTATE_EXPR): Tweak comment.
29243 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29245 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
29248 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
29250 * tree.h (TYPE_IDENTIFIER): Declare.
29251 * tree.c (subrange_type_for_debug_p): Use it.
29252 * godump.c (go_format_type): Likewise.
29253 * dwarf2out.c (is_cxx_auto, modified_type_die,
29254 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
29255 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
29257 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29260 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
29262 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
29264 * config/i386/i386.c (examine_argument): Return bool. Return true if
29265 parameter should be passed in memory.
29266 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
29267 (construct_container): Update calls to examine_argument.
29268 (function_arg_advance_64): Ditto.
29269 (return_in_memory_32): Merge with ix86_return_in_memory.
29270 (return_in_memory_64): Ditto.
29271 (return_in_memory_ms_64): Ditto.
29273 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29275 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
29276 * coverage.c (coverage_compute_profile_id): Handle externally visible
29279 2014-04-14 Martin Jambor <mjambor@suse.cz>
29281 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
29282 DECL_DISREGARD_INLINE_LIMITS functions.
29284 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29287 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
29289 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29292 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
29293 optimize_insn_for_speed_p instead of
29294 optimize_function_for_speed_p.
29296 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
29298 * doc/invoke.texi (free): Document AArch64.
29300 2014-04-14 Richard Biener <rguenther@suse.de>
29302 PR tree-optimization/60042
29303 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
29304 (insert_into_preds_of_block): Do not prevent PHI insertion
29305 for REFERENCE exprs here ...
29306 (eliminate_dom_walker::before_dom_children): ... but prevent
29307 their use here under similar conditions when applied to the
29308 IL after PRE optimizations.
29310 2014-04-14 Richard Biener <rguenther@suse.de>
29312 * passes.def: Move early points-to after early SRA.
29314 2014-04-14 Richard Biener <rguenther@suse.de>
29316 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
29317 check for which sign-changes we allow when forwarding
29318 a converted value into a switch.
29320 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29322 * stor-layout.c (place_field): Finalize non-constant offset for the
29325 2014-04-14 Richard Biener <rguenther@suse.de>
29327 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
29329 (expand_switch_using_bit_tests_p): Likewise.
29330 (process_switch): Compute and pass on speed_p based on the
29332 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
29333 optimize_bb_for_speed_p.
29335 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29337 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
29338 * function.h (struct function): Rename has_force_vect_loops into
29339 has_force_vectorize_loops.
29340 * lto-streamer-in.c (input_cfg): Adjust for renaming.
29341 (input_struct_function_base): Likewise.
29342 * lto-streamer-out.c (output_cfg): Likewise.
29343 (output_struct_function_base): Likewise.
29344 * omp-low.c (expand_omp_simd): Likewise.
29345 * tree-cfg.c (move_sese_region_to_fn): Likewise.
29346 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
29347 (version_loop_for_if_conversion): Likewise.
29348 (tree_if_conversion): Likewise.
29349 (main_tree_if_conversion): Likewise.
29350 (gate_tree_if_conversion): Likewise.
29351 * tree-inline.c (copy_loops): Likewise.
29352 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
29353 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
29354 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
29355 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
29356 * tree-vectorizer.c (vectorize_loops): Likewise.
29357 * tree-vectorizer.h (unlimited_cost_model): Likewise.
29359 2014-04-14 Richard Biener <rguenther@suse.de>
29362 * lto-streamer-out.c (wrap_refs): New function.
29363 (lto_output): Wrap symbol references in global initializes in
29364 type-preserving MEM_REFs.
29366 2014-04-14 Christian Bruel <christian.bruel@st.com>
29368 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
29370 2014-04-14 Christian Bruel <christian.bruel@st.com>
29372 * config/sh/sh.md (setmemqi): New expand pattern.
29373 * config/sh/sh.h (CLEAR_RATIO): Define.
29374 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
29375 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
29377 2014-04-14 Richard Biener <rguenther@suse.de>
29379 PR middle-end/55022
29380 * fold-const.c (negate_expr_p): Don't negate directional rounding
29382 (fold_negate_expr): Likewise.
29384 2014-04-14 Richard Biener <rguenther@suse.de>
29386 PR tree-optimization/59817
29387 PR tree-optimization/60453
29388 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
29389 recursion to catch all CHRECs in the scalar evolution and restrict
29390 the predicate for the remains appropriately.
29392 2014-04-12 Catherine Moore <clm@codesourcery.com>
29394 * config/mips/constraints.md: Add new register constraint "kb".
29395 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
29396 (*movhi_internal): Likewise.
29397 (*movqi_internal): Likewise.
29398 * config/mips/mips.h (M16_STORE_REGS): New register class.
29399 (REG_CLASS_NAMES): Add M16_STORE_REGS.
29400 (REG_CLASS_CONTENTS): Likewise.
29401 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
29403 2014-04-11 Tobias Burnus <burnus@net-b.de>
29406 * doc/invoke.texi (-Wformat-signedness): Document it.
29407 (Wformat=2): Mention that this enables -Wformat-signedness.
29409 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29411 * common/config/epiphany/epiphany-common.c
29412 (epiphany_option_optimization_table): Enable section anchors by
29413 default at -O1 or higher.
29414 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
29415 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
29416 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
29417 carries no extra cost.
29418 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
29419 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
29420 * config/epiphany/predicates.md (memclob_operand): New predicate.
29421 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
29422 Use memclob_operand predicate and X constraint for operand 3.
29424 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29426 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
29427 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
29430 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29432 PR rtl-optimization/60651
29433 * mode-switching.c (optimize_mode_switching): Make sure to emit
29434 sets of a lower numbered entity before sets of a higher numbered
29435 entity to a mode of the same or lower priority.
29436 When creating a seginfo for a basic block that starts with a code
29437 label, move the insertion point past the code label.
29438 (new_seginfo): Document and enforce requirement that
29439 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
29440 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
29441 * doc/tm.texi: Regenerate.
29443 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
29446 * config/arc/arc.c (arc_save_restore): Fix assert typo.
29448 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29450 * BASE-VER: Set to 4.10.0.
29452 2014-04-11 Tobias Burnus <burnus@net-b.de>
29455 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
29456 * doc/gcc.texi (Service): Update description in the @menu
29457 * doc/invoke.texi (Option Summary): Remove misplaced and
29460 2014-04-11 Steve Ellcey <sellcey@mips.com>
29461 Jakub Jelinek <jakub@redhat.com>
29463 PR middle-end/60556
29464 * expr.c (convert_move): Use emit_store_flag_force instead of
29465 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
29468 2014-04-11 Richard Biener <rguenther@suse.de>
29470 PR middle-end/60797
29471 * varasm.c (assemble_alias): Avoid endless error reporting
29472 recursion by setting TREE_ASM_WRITTEN.
29474 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29476 * config/s390/s390.md: Add a splitter for NOT rtx.
29478 2014-04-11 Jakub Jelinek <jakub@redhat.com>
29480 PR rtl-optimization/60663
29481 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29483 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
29484 Jakub Jelinek <jakub@redhat.com>
29487 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29488 flag from decl_node to node.
29490 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29493 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29494 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29495 ameliorating the cases where it can be.
29497 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
29500 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29502 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29503 (loadsync_<mode>): Change mode.
29504 (load_quadpti, store_quadpti): New.
29505 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29506 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29507 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29509 2014-04-09 Cong Hou <congh@google.com>
29512 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29515 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29517 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29518 instead of vnor to exploit possible fusion opportunity in the
29520 (altivec_expand_vec_perm_const_le): Likewise.
29522 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29524 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29525 (loadsync_<mode>): Change mode.
29526 (load_quadpti, store_quadpti): New.
29527 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29528 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29530 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
29533 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29534 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29535 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29537 2014-04-08 Richard Biener <rguenther@suse.de>
29539 PR middle-end/60706
29540 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29541 a 64bit widest int print double-int similar to on HWI64 hosts.
29543 2014-04-08 Richard Biener <rguenther@suse.de>
29545 PR tree-optimization/60785
29546 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29547 default defs properly.
29549 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
29551 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29552 (Weffc++): Likewise.
29554 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
29556 * ipa-devirt.c (maybe_record_node): When node is not recorded,
29557 set completep to false rather than true.
29559 2014-04-07 Douglas B Rupp <rupp@adacore.com>
29562 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29563 ARM_TARGET2_DWARF_FORMAT.
29565 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
29568 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29569 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29572 2014-04-07 Richard Biener <rguenther@suse.de>
29574 PR tree-optimization/60766
29575 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29576 (may_eliminate_iv): Convert cand_value_at result to desired type.
29578 2014-04-07 Jason Merrill <jason@redhat.com>
29581 * common.opt (-fno-gnu-unique): Add.
29582 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
29584 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29586 * haifa-sched.c: Fix outdated function reference and minor
29587 grammar errors in introductory comment.
29589 2014-04-07 Richard Biener <rguenther@suse.de>
29591 PR middle-end/60750
29592 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
29593 for noreturn calls.
29594 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
29596 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
29599 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29600 size accounting for thunks.
29601 (pa_asm_output_mi_thunk): Use final_start_function() and
29602 final_end_function() to output function start and end directives.
29604 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29606 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29607 device specific ISA/ feature information. Remove short_sp and
29608 errata_skip ds. Add avr_device_specific_features enum to have device
29610 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29611 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29612 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29613 updated device specific info.
29614 * config/avr/avr-mcus.def: Merge device specific details to
29615 dev_attribute field.
29616 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29618 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29619 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29620 assembler if RMW isa supported by current device.
29621 * config/avr/genmultilib.awk: Update as device info structure changed.
29622 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29624 2014-04-04 Cong Hou <congh@google.com>
29626 PR tree-optimization/60656
29627 * tree-vect-stmts.c (supportable_widening_operation):
29628 Fix a bug that elements in a vector with vect_used_by_reduction
29629 property are incorrectly reordered when the operation on it is not
29630 consistant with the one in reduction operation.
29632 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
29634 PR rtl-optimization/60155
29635 * gcse.c (record_set_data): New function.
29636 (single_set_gcse): New function.
29637 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
29638 (hoist_code): Likewise.
29639 (get_pressure_class_and_nregs): Likewise.
29641 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
29643 * explow.c (probe_stack_range): Emit a final optimization blockage.
29645 2014-04-04 Anthony Green <green@moxielogic.com>
29647 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
29650 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
29653 * lto-cgraph.c (input_overwrite_node): Check that partitioning
29654 flags are set only during streaming.
29655 * ipa.c (process_references, walk_polymorphic_call_targets,
29656 symtab_remove_unreachable_nodes): Drop bodies of always inline
29657 after early inlining.
29658 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
29660 2014-04-04 Jakub Jelinek <jakub@redhat.com>
29661 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29664 * dwarf2out.c (const_ok_for_output_1): Reject expressions
29667 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29670 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
29672 (cortex_a53_fdivd): Likewise.
29674 2014-04-04 Martin Jambor <mjambor@suse.cz>
29677 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
29678 Adjust all callers.
29679 * cgraph.c (clone_of_p): Also return true if thunks match.
29680 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
29681 cgraph_function_or_thunk_node and an obsolete comment.
29682 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
29684 (build_function_decl_skip_args): Likewise.
29685 (set_new_clone_decl_and_node_flags): New function.
29686 (duplicate_thunk_for_node): Likewise.
29687 (redirect_edge_duplicating_thunks): Likewise.
29688 (cgraph_clone_node): New parameter args_to_skip, pass it to
29689 redirect_edge_duplicating_thunks which is called instead of
29690 cgraph_redirect_edge_callee.
29691 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
29692 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
29694 2014-04-04 Jeff Law <law@redhat.com>
29697 * config/arm/predicates.md (const_int_I_operand): New predicate.
29698 (const_int_M_operand): Similarly.
29699 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
29701 (insv_t2, extv_reg, extzv_t2): Likewise.
29702 (load_multiple_with_writeback): Similarly for const_int_I_operand.
29703 (pop_multiple_with_writeback_and_return): Likewise.
29704 (vfp_pop_multiple_with_writeback): Likewise
29706 2014-04-04 Richard Biener <rguenther@suse.de>
29709 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
29710 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
29712 * gimplify.h (gimple_add_tmp_var_fn): Declare.
29713 * gimplify.c (gimple_add_tmp_var_fn): New function.
29714 * gimple-expr.h (create_tmp_reg_fn): Declare.
29715 * gimple-expr.c (create_tmp_reg_fn): New function.
29716 * gimple-low.c (record_vars_into): Don't change cfun.
29717 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
29718 code generation without cfun.
29720 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
29723 * Makefile.in (install-driver): Fix shell scripting.
29725 2014-04-03 Cong Hou <congh@google.com>
29727 PR tree-optimization/60505
29728 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
29729 threshold of number of iterations below which no vectorization
29731 * tree-vect-loop.c (new_loop_vec_info):
29732 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
29733 * tree-vect-loop.c (vect_analyze_loop_operations):
29734 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
29735 * tree-vect-loop.c (vect_transform_loop):
29736 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
29737 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
29738 of iterations of the loop and see if we should build the epilogue.
29740 2014-04-03 Richard Biener <rguenther@suse.de>
29742 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
29743 (streamer_tree_cache_create): Adjust.
29744 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
29745 to allow optional nodes array.
29746 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
29747 (streamer_tree_cache_append): Likewise.
29748 (streamer_tree_cache_create): Create nodes array optionally
29749 as specified by parameter.
29750 * lto-streamer-out.c (create_output_block): Avoid maintaining
29751 the node array in the writer cache.
29752 (DFS_write_tree): Remove assertion.
29753 (produce_asm_for_decls): Free the out decl state hash table early.
29754 * lto-streamer-in.c (lto_data_in_create): Adjust for
29755 streamer_tree_cache_create prototype change.
29757 2014-04-03 Richard Biener <rguenther@suse.de>
29759 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
29760 set TREE_CHAIN to NULL_TREE.
29762 2014-04-03 Richard Biener <rguenther@suse.de>
29764 PR tree-optimization/60740
29765 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
29766 over all GIMPLE_COND operands.
29768 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
29770 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
29771 (Weffc++): Remove Scott's numbering, merge lists and reference
29774 2014-04-03 Nick Clifton <nickc@redhat.com>
29776 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
29779 2014-04-03 Martin Jambor <mjambor@suse.cz>
29781 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
29782 mention gcc_unreachable before failing.
29783 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
29786 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
29789 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
29790 inconsistent code and instead mark the context inconsistent.
29791 (possible_polymorphic_call_targets): For inconsistent contexts
29792 return empty complete list.
29794 2014-04-02 Anthony Green <green@moxielogic.com>
29796 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
29797 (extendqisi2, extendhisi2): Define.
29798 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
29799 (WCHAR_TYPE): Change to unsigned int.
29801 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29803 PR tree-optimization/60733
29804 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
29805 insertion point for PHI candidates to be the end of the feeding
29806 block for the PHI argument.
29808 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
29810 PR rtl-optimization/60650
29811 * lra-constraints.c (process_alt_operands): Decrease reject for
29812 earlyclobber matching.
29814 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29816 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
29818 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29820 * config/spu/spu.c (pad_bb): Do not crash when the last
29821 insn is CODE_FOR_blockage.
29823 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29825 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
29826 lies outside the target mode.
29828 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29831 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29832 software floating point or no floating point registers, do not
29833 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29834 in GPRs that occurs after we tested for GPRs that would never be
29837 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29838 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29839 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29840 specifically allow DDmode, since that does not use the SPE SIMD
29843 2014-04-02 Richard Biener <rguenther@suse.de>
29845 PR middle-end/60729
29846 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
29847 MODE_INTs. Properly use negv_optab.
29848 (expand_abs): Likewise.
29850 2014-04-02 Richard Biener <rguenther@suse.de>
29853 * Makefile.in (install-driver): Guard extra installs with special
29856 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
29858 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29859 Document vec_vgbbd.
29861 2014-04-01 Richard Henderson <rth@redhat.com>
29864 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
29865 alternative enabled before register allocation.
29867 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
29869 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
29870 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
29872 (nios2_large_got_address): Remove unneeded 'sym' parameter.
29873 (nios2_got_address): Update nios2_large_got_address call site.
29874 (nios2_delegitimize_address): New function.
29875 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
29876 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
29877 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
29879 2014-04-01 Martin Husemann <martin@duskware.de>
29881 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
29884 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
29886 PR rtl-optimization/60604
29887 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
29888 check from register_operand.
29889 (register_operand): Redefine in terms of general_operand.
29890 (nonmemory_operand): Use register_operand for the non-constant cases.
29892 2014-04-01 Richard Biener <rguenther@suse.de>
29894 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
29896 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
29898 * doc/invoke.texi (mapp-regs): Clarify.
29900 2014-03-31 Ulrich Drepper <drepper@gmail.com>
29902 * config/i386/avx512fintrin.h (__v32hi): Define type.
29903 (__v64qi): Likewise.
29904 (_mm512_set1_epi8): Define.
29905 (_mm512_set1_epi16): Define.
29906 (_mm512_set4_epi32): Define.
29907 (_mm512_set4_epi64): Define.
29908 (_mm512_set4_pd): Define.
29909 (_mm512_set4_ps): Define.
29910 (_mm512_setr4_epi64): Define.
29911 (_mm512_setr4_epi32): Define.
29912 (_mm512_setr4_pd): Define.
29913 (_mm512_setr4_ps): Define.
29914 (_mm512_setzero_epi32): Define.
29916 2014-03-31 Martin Jambor <mjambor@suse.cz>
29918 PR middle-end/60647
29919 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
29920 callsite_arguments_match_p. Updated all callers. Also check types of
29921 corresponding formal parameters and actual arguments.
29922 (not_all_callers_have_enough_arguments_p) Renamed to
29923 some_callers_have_mismatched_arguments_p.
29925 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
29927 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
29929 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
29932 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
29935 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
29937 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
29938 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
29940 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
29941 Use FMAMODE_NOVF512 mode iterator.
29942 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
29943 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
29944 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
29945 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
29947 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
29948 Use VF_128_256 mode iterator.
29949 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
29952 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29954 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
29955 static chain if needed.
29957 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
29960 * lra-constraints.c (index_part_to_reg): New.
29961 (process_address): Use it.
29963 2014-03-27 Jeff Law <law@redhat.com>
29964 Jakub Jelinek <jakub@redhat.com>
29967 * expr.c (do_tablejump): Use simplify_gen_binary rather than
29968 gen_rtx_{PLUS,MULT} to build up the address expression.
29970 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
29971 creating non-canonical RTL.
29973 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29976 * ipa-inline.c (want_inline_small_function_p): Short circuit large
29977 functions; reorganize to make cheap checks first.
29978 (inline_small_functions): Do not estimate growth when dumping;
29980 * ipa-inline.h (inline_summary): Add min_size.
29981 (growth_likely_positive): New function.
29982 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
29983 (set_cond_stmt_execution_predicate): Cleanup.
29984 (estimate_edge_size_and_time): Compute min_size.
29985 (estimate_calls_size_and_time): Likewise.
29986 (estimate_node_size_and_time): Likewise.
29987 (inline_update_overall_summary): Update min_size.
29988 (do_estimate_edge_time): Likewise.
29989 (do_estimate_edge_size): Update.
29990 (do_estimate_edge_hints): Update.
29991 (growth_likely_positive): New function.
29993 2014-03-28 Jakub Jelinek <jakub@redhat.com>
29996 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
29997 also if addr has VOIDmode.
29999 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30001 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30002 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30004 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30005 instructions as well as AdvancedSIMD loads.
30007 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30009 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30010 Use crypto_aese type.
30011 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30012 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30013 crypto_aese, crypto_aesmc. Move to types.md.
30014 * config/arm/types.md (crypto_aes): Split into crypto_aese,
30016 * config/arm/iterators.md (crypto_type): Likewise.
30018 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30020 * cgraph.c: Include expr.h and tree-dfa.h.
30021 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30024 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30027 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30028 regs from checking multi-reg pseudos.
30030 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30032 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30034 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30036 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30037 if it would clobber the stack pointer, even temporarily.
30039 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
30041 * mode-switching.c: Make small adjustments to the top comment.
30043 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
30045 * config/rs6000/constraints.md (wD constraint): New constraint to
30046 match the constant integer to get the top DImode/DFmode out of a
30047 vector in a VSX register.
30049 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30050 match the constant integer to get the top DImode/DFmode out of a
30051 vector in a VSX register.
30053 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30056 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30059 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30060 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30062 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30063 Optimize vec_extract of 64-bit values, where the value being
30064 extracted is in the top word, where we can use scalar
30065 instructions. Add direct move and store support. Combine the big
30066 endian/little endian vector select load support into a single insn.
30067 (vsx_extract_<mode>_internal1): Likewise.
30068 (vsx_extract_<mode>_internal2): Likewise.
30069 (vsx_extract_<mode>_load): Likewise.
30070 (vsx_extract_<mode>_store): Likewise.
30071 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30072 combined into vsx_extract_<mode>_load.
30073 (vsx_extract_<mode>_one_le): Likewise.
30075 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30076 define the top 64-bit vector element.
30078 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30081 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30082 Document vec_vbpermq builtin.
30085 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30086 enable use of xxsldwi and xxpermdi builtin functions.
30087 (vec_xxpermdi): Likewise.
30089 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30090 Document use of vec_xxsldwi and vec_xxpermdi builtins.
30092 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
30094 PR rtl-optimization/60650
30095 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30097 (find_spills_for): New.
30098 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
30099 Spill all pseudos on the second iteration.
30101 2014-03-27 Marek Polacek <polacek@redhat.com>
30104 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
30107 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30109 * config/s390/s390.c (s390_can_use_return_insn): Check for
30110 call-saved FPRs on 31 bit.
30112 2014-03-27 Jakub Jelinek <jakub@redhat.com>
30114 PR middle-end/60682
30115 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
30116 if they need regimplification, just drop them instead of
30117 calling gimple_regimplify_operands on them.
30119 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
30122 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
30123 (aarch64_frame_pointer_required): Adjust logic.
30124 (aarch64_can_eliminate): Adjust logic.
30125 (aarch64_override_options_after_change): Adjust logic.
30127 2014-03-27 Dehao Chen <dehao@google.com>
30129 * ipa-inline.c (early_inliner): Update node's inline info.
30131 2014-03-26 Dehao Chen <dehao@google.com>
30133 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30134 compiler inserted conditional jumps for NAN float check.
30136 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30138 * ubsan.h (ubsan_create_data): Change second argument's type
30139 to const location_t *.
30140 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30142 (ubsan_create_data): Change second argument to const location_t *PLOC.
30143 Create Loc field whenever PLOC is non-NULL.
30144 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30145 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30149 * real.c (real_to_integer2): Change type of low to UHWI.
30151 2014-03-26 Tobias Burnus <burnus@net-b.de>
30153 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30154 (CILK_SELF_SPECS): New define.
30155 (driver_self_specs): Use it.
30157 2014-03-26 Richard Biener <rguenther@suse.de>
30159 * tree-pretty-print.c (percent_K_format): Implement special
30160 case for LTO and its stripped down BLOCK tree.
30162 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30165 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30167 * tree-vrp.c (simplify_internal_call_using_ranges): If only
30168 one range is range_int_cst_p, but not both, at least optimize
30169 addition/subtraction of 0 and multiplication by 0 or 1.
30170 * gimple-fold.c (gimple_fold_call): Fold
30171 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30172 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30173 INTEGER_CSTs, try to fold at least x * 0 and y - y.
30175 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
30177 PR rtl-optimization/60452
30178 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30179 <case REG>: Return 1 for invalid offsets from the frame pointer.
30181 2014-03-26 Marek Polacek <polacek@redhat.com>
30184 * doc/extend.texi (C Extensions): Mention variable-length arrays in
30187 2014-03-26 Marek Polacek <polacek@redhat.com>
30190 * doc/extend.texi (Designated Inits): Describe what happens to omitted
30193 2014-03-26 Marek Polacek <polacek@redhat.com>
30196 * ira-color.c (update_conflict_hard_regno_costs): Perform the
30197 multiplication in unsigned type.
30199 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30201 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30203 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30205 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30207 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30210 * cif-code.def (UNREACHABLE) New code.
30211 * ipa-inline.c (inline_small_functions): Skip edges to
30212 __builtlin_unreachable.
30213 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30214 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30215 predicate to __bulitin_unreachable.
30216 (set_cond_stmt_execution_predicate): Fix issue when
30217 invert_tree_comparison returns ERROR_MARK.
30218 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30219 propagate to inline clones.
30220 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30222 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30223 * cgraphclones.c (cgraph_clone_node): If call destination is already
30224 ureachable, do not redirect it back.
30225 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30228 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30230 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30231 Do not modify inline clones.
30233 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30235 * config/i386/i386.md (general_sext_operand): New mode attr.
30236 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
30237 don't generate (sign_extend (const_int)).
30238 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
30239 operands[2]. Use We constraint instead of <i> and
30240 <general_sext_operand> predicate instead of <general_operand>.
30241 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
30242 * config/i386/constraints.md (We): New constraint.
30243 * config/i386/predicates.md (x86_64_sext_operand,
30244 sext_operand): New predicates.
30246 2014-03-25 Martin Jambor <mjambor@suse.cz>
30249 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
30250 inconsistent devirtualizations to __builtin_unreachable.
30252 2014-03-25 Marek Polacek <polacek@redhat.com>
30255 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
30257 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
30259 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
30260 order of elements for big-endian.
30262 2014-03-25 Richard Biener <rguenther@suse.de>
30264 PR middle-end/60635
30265 * gimplify-me.c (gimple_regimplify_operands): Update the
30268 2014-03-25 Martin Jambor <mjambor@suse.cz>
30271 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
30272 (lto_output_varpool_node): Likewise.
30273 (input_overwrite_node): Likewise.
30274 (input_varpool_node): Likewise.
30276 2014-03-25 Richard Biener <rguenther@suse.de>
30278 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
30279 (run_gcc): Likewise.
30281 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30283 * combine.c (simplify_compare_const): Add MODE argument.
30284 Handle mode_width 0 as very large mode_width.
30285 (try_combine, simplify_comparison): Adjust callers.
30287 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
30288 type to avoid signed integer overflow.
30289 * explow.c (plus_constant): Likewise.
30291 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
30293 * doc/generic.texi: Correct typos.
30295 2014-03-24 Tobias Burnus <burnus@net-b.de>
30297 * doc/invoke.texi (-flto): Expand section about
30298 using static libraries with LTO.
30300 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30302 PR rtl-optimization/60501
30303 * optabs.def (addptr3_optab): New optab.
30304 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
30305 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
30306 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
30308 * lra.c (emit_add3_insn): Use the addptr pattern if available.
30310 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
30312 2014-03-24 Ulrich Drepper <drepper@gmail.com>
30314 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
30317 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
30318 (_mm256_undefined_ps): Define.
30319 (_mm256_undefined_pd): Define.
30320 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
30321 (_mm_undefined_pd): Define.
30322 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
30323 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
30324 (_mm512_undefined_ps): Define.
30325 (_mm512_undefined_pd): Define.
30326 Use _mm*_undefined_*.
30327 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
30329 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
30331 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
30332 (lshr_simd): DI mode added.
30333 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
30334 (aarch64_ushr_simddi): Likewise.
30335 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
30336 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
30337 (vshrd_n_u64): Likewise.
30339 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30341 * Makefile.in (s-macro_list): Depend on cc1.
30343 2014-03-23 Teresa Johnson <tejohnson@google.com>
30345 * ipa-utils.c (ipa_print_order): Use specified dump file.
30347 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
30349 PR rtl-optimization/60601
30350 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
30352 * gcc.c (eval_spec_function): Initialize save_growing_value.
30354 2014-03-22 Jakub Jelinek <jakub@redhat.com>
30357 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
30358 code == MINUS_EXPR, never swap op0 with op1.
30360 * toplev.c (init_local_tick): Avoid signed integer multiplication
30362 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
30363 shift by first operand's bitsize.
30365 2014-03-21 Jakub Jelinek <jakub@redhat.com>
30368 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
30369 redefine to 1 or 0.
30370 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
30371 TARGET_ISA_64BIT_P(x).
30373 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30375 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
30376 pattern for vector nor instead of subtract from splat(-1).
30377 (altivec_expand_vec_perm_const_le): Likewise.
30379 2014-03-21 Richard Henderson <rth@twiddle.net>
30382 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
30383 related insns after epilogue_completed.
30385 2014-03-21 Martin Jambor <mjambor@suse.cz>
30388 * cgraph.h (symtab_node): New flag body_removed.
30389 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
30390 when removing bodies.
30391 * symtab.c (dump_symtab_base): Dump body_removed flag.
30392 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
30393 had their bodies removed.
30395 2014-03-21 Martin Jambor <mjambor@suse.cz>
30398 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
30401 2014-03-21 Richard Biener <rguenther@suse.de>
30403 PR tree-optimization/60577
30404 * tree-core.h (struct tree_base): Document nothrow_flag use
30405 in DECL_NONALIASED.
30406 * tree.h (DECL_NONALIASED): New.
30407 (may_be_aliased): Adjust.
30408 * coverage.c (build_var): Set DECL_NONALIASED.
30410 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30412 * expr.c (expand_expr_real_1): Remove outdated comment.
30414 2014-03-20 Jakub Jelinek <jakub@redhat.com>
30416 PR middle-end/60597
30417 * ira.c (adjust_cleared_regs): Call copy_rtx on
30418 *reg_equiv[REGNO (loc)].src_p before passing it to
30419 simplify_replace_fn_rtx.
30422 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
30423 into CONST, put pic register as first operand of PLUS. Use
30424 gen_const_mem for both 32-bit and 64-bit PIC got loads.
30426 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30428 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
30430 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30432 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
30433 around for store forwarding issue in the FPU on the UT699.
30434 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
30435 loads and operations if -mfix-ut699 is specified.
30436 (divtf3_hq): Tweak attribute.
30437 (sqrttf2_hq): Likewise.
30439 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30441 * calls.c (store_one_arg): Remove incorrect const qualification on the
30442 type of the temporary.
30443 * cfgexpand.c (expand_return): Likewise.
30444 * expr.c (expand_constructor): Likewise.
30445 (expand_expr_real_1): Likewise.
30447 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30449 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
30452 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
30455 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
30457 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
30459 * config/arm/aarch-common-protos.h
30460 (alu_cost_table): Fix spelling of "extend".
30461 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
30463 2014-03-19 Richard Biener <rguenther@suse.de>
30465 PR middle-end/60553
30466 * tree-core.h (tree_type_common): Re-order pointer members
30467 to reduce recursion depth during GC walks.
30469 2014-03-19 Marek Polacek <polacek@redhat.com>
30472 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
30473 before accessing it.
30475 2014-03-19 Richard Biener <rguenther@suse.de>
30478 * lto-streamer-in.c (input_function): In WPA stage do not drop
30481 2014-03-19 Jakub Jelinek <jakub@redhat.com>
30483 PR tree-optimization/60559
30484 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30485 with build_zero_cst assignment.
30487 2014-03-18 Kai Tietz <ktietz@redhat.com>
30489 PR rtl-optimization/56356
30490 * sdbout.c (sdbout_parms): Verify that parms'
30491 incoming argument is valid.
30492 (sdbout_reg_parms): Likewise.
30494 2014-03-18 Richard Henderson <rth@redhat.com>
30497 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30498 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
30499 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30501 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
30503 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30504 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30505 Italicize plugin event names in description. Explain that
30506 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
30507 Remind that no GCC functions should be called after PLUGIN_FINISH.
30508 Explain what pragmas with expansion are.
30510 2014-03-18 Martin Liska <mliska@suse.cz>
30512 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30513 gimple call statement is update.
30514 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30515 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30517 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30520 * ubsan.c (ubsan_instrument_unreachable): Call
30521 initialize_sanitizer_builtins.
30522 (ubsan_pass): Likewise.
30525 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30526 varpool_finalize_decl instead of rest_of_decl_compilation.
30528 2014-03-18 Richard Biener <rguenther@suse.de>
30530 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30531 by using bitmap_and_compl instead of bitmap_and_compl_into.
30532 (df_rd_transfer_function): Likewise.
30534 2014-03-18 Richard Biener <rguenther@suse.de>
30536 * doc/lto.texi (fresolution): Fix typo.
30538 2014-03-18 Richard Biener <rguenther@suse.de>
30540 * doc/invoke.texi (flto): Update for changes in 4.9.
30542 2014-03-18 Richard Biener <rguenther@suse.de>
30544 * doc/loop.texi: Remove section on the removed lambda framework.
30545 Update loop docs with recent changes in preserving loop structure.
30547 2014-03-18 Richard Biener <rguenther@suse.de>
30549 * doc/lto.texi (-fresolution): Document.
30551 2014-03-18 Richard Biener <rguenther@suse.de>
30553 * doc/contrib.texi: Adjust my name.
30555 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30558 * internal-fn.c: Include diagnostic-core.h.
30559 (expand_BUILTIN_EXPECT): New function.
30560 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30561 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30562 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30563 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30564 IFN_BUILTIN_EXPECT.
30565 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30566 Revert 3 argument __builtin_expect code.
30567 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30568 * gimple-fold.c (gimple_fold_call): Likewise.
30569 * tree.h (fold_builtin_expect): New prototype.
30570 * builtins.c (build_builtin_expect_predicate): Add predictor
30571 argument, if non-NULL, create 3 argument __builtin_expect.
30572 (fold_builtin_expect): No longer static. Add ARG2 argument,
30573 pass it through to build_builtin_expect_predicate.
30574 (fold_builtin_2): Adjust caller.
30575 (fold_builtin_3): Handle BUILT_IN_EXPECT.
30576 * internal-fn.def (BUILTIN_EXPECT): New.
30578 2014-03-18 Tobias Burnus <burnus@net-b.de>
30581 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
30582 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
30583 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
30585 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
30588 * predict.c (combine_predictions_for_bb): Fix up formatting.
30589 (expr_expected_value_1, expr_expected_value): Add predictor argument,
30590 fill what it points to if non-NULL.
30591 (tree_predict_by_opcode): Adjust caller, use the predictor.
30592 * predict.def (PRED_COMPARE_AND_SWAP): Add.
30594 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
30596 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30597 proper constant for the store mode.
30599 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
30601 * symtab.c (change_decl_assembler_name): Fix transparent alias
30602 chain construction.
30604 2014-03-16 Renlin Li <Renlin.Li@arm.com>
30606 * config/aarch64/aarch64.c: Correct the comments about the
30607 aarch64 stack layout.
30609 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
30611 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30612 check for GF_OMP_FOR_KIND_FOR.
30614 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
30616 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30617 ymm and zmm register names.
30619 2014-03-17 Jakub Jelinek <jakub@redhat.com>
30622 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30623 note creation for the 2010-08-31 changes.
30625 2014-03-17 Marek Polacek <polacek@redhat.com>
30627 PR middle-end/60534
30628 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
30629 as -fno-tree-loop-vectorize.
30630 (expand_omp_simd): Likewise.
30632 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
30634 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
30635 (eligible_for_call_delay): New prototype.
30636 * config/sparc/sparc.c (tls_call_delay): Rename into...
30637 (eligible_for_call_delay): ...this. Return false if the instruction
30638 cannot be put in the delay slot of a branch.
30639 (eligible_for_restore_insn): Simplify.
30640 (eligible_for_return_delay): Return false if the instruction cannot be
30641 put in the delay slot of a branch and simplify.
30642 (eligible_for_sibcall_delay): Return false if the instruction cannot be
30643 put in the delay slot of a branch.
30644 * config/sparc/sparc.md (fix_ut699): New attribute.
30645 (tls_call_delay): Delete.
30646 (in_call_delay): Reimplement.
30647 (eligible_for_sibcall_delay): Rename into...
30648 (in_sibcall_delay): ...this.
30649 (eligible_for_return_delay): Rename into...
30650 (in_return_delay): ...this.
30651 (in_branch_delay): Reimplement.
30652 (in_uncond_branch_delay): Delete.
30653 (in_annul_branch_delay): Delete.
30655 2014-03-14 Richard Henderson <rth@redhat.com>
30658 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
30659 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
30660 (*floathi<X87MODEF>2_i387_with_temp): Remove.
30661 (floathi splitters): Remove.
30662 (float<SWI48x>xf2): New pattern.
30663 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
30664 code that tried to handle DImode for 32-bit, but which was excluded
30665 by the pattern's condition. Drop allocation of stack temporary.
30666 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
30667 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
30668 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
30669 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
30670 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
30671 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
30672 (*float<SWI48><MODEF>2_sse_interunit): Remove.
30673 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
30674 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
30675 (*float<SWI48x><X87MODEF>2_i387): Remove.
30676 (all float _with_temp splitters): Remove.
30677 (*float<SWI48x><MODEF>2_i387): New pattern.
30678 (*float<SWI48><MODEF>2_sse): New pattern.
30679 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
30680 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
30682 2014-03-14 Jakub Jelinek <jakub@redhat.com>
30683 Marek Polacek <polacek@redhat.com>
30685 PR middle-end/60484
30686 * common.opt (dump_base_name_prefixed): New Variable.
30687 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
30688 if x_dump_base_name_prefixed is already set, set it at the end.
30690 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
30692 PR rtl-optimization/60508
30693 * lra-constraints.c (get_reload_reg): Add new parameter
30695 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
30696 Pass the new parameter values.
30698 2014-03-14 Richard Biener <rguenther@suse.de>
30700 * common.opt: Revert unintented changes from r205065.
30701 * opts.c: Likewise.
30703 2014-03-14 Richard Biener <rguenther@suse.de>
30705 PR middle-end/60518
30706 * cfghooks.c (split_block): Properly adjust all loops the
30707 block was a latch of.
30709 2014-03-14 Martin Jambor <mjambor@suse.cz>
30712 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
30715 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
30718 * config/avr/avr.c (avr_set_current_function): Pass function name
30719 through default_strip_name_encoding before sanity checking instead
30720 of skipping the first char of the assembler name.
30722 2014-03-13 Richard Henderson <rth@redhat.com>
30725 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
30726 (ix86_force_to_memory, ix86_free_from_memory): Remove.
30727 * config/i386/i386-protos.h: Likewise.
30728 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
30729 in the expander instead of a splitter.
30730 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
30731 any possibility of requiring a memory.
30732 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
30733 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
30734 (fp branch splitters): Update for ix86_split_fp_branch.
30735 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
30736 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
30737 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
30738 (*fop_<MODEF>_2_i387): Remove f/r alternative.
30739 (*fop_<MODEF>_3_i387): Likewise.
30740 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
30741 (splitters for the fop_* register patterns): Remove.
30742 (fscalexf4_i387): Rename from *fscalexf4_i387.
30743 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
30745 2014-03-13 Jakub Jelinek <jakub@redhat.com>
30747 PR tree-optimization/59779
30748 * tree-dfa.c (get_ref_base_and_extent): Use double_int
30749 type for bitsize and maxsize instead of HOST_WIDE_INT.
30751 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
30753 PR rtl-optimization/57320
30754 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
30755 the CFG after thread_prologue_and_epilogue_insns.
30757 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
30759 PR rtl-optimization/57189
30760 * lra-constraints.c (process_alt_operands): Disfavor spilling
30763 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
30765 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
30767 2014-03-13 Jakub Jelinek <jakub@redhat.com>
30769 PR tree-optimization/59025
30770 PR middle-end/60418
30771 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
30772 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
30774 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
30777 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
30778 calls of avr_out_plus_1.
30780 2014-03-13 Bin Cheng <bin.cheng@arm.com>
30782 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
30783 BB's single pred and update the father loop's latch info later.
30785 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
30787 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
30791 (VEC_base): Likewise.
30792 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
30793 registers, we need to swap double words in little endian mode.
30795 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
30796 to be a container mode for 128-bit integer operations added in ISA
30797 2.07. Unlike TImode and PTImode, the preferred register set is
30798 the Altivec/VMX registers for the 128-bit operations.
30800 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
30802 (rs6000_split_128bit_ok_p): Likewise.
30804 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
30805 macros for creating ISA 2.07 normal and overloaded builtin
30806 functions with 3 arguments.
30807 (BU_P8V_OVERLOAD_3): Likewise.
30808 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
30809 for use as overloaded functions.
30810 (VPERM_1TI_UNS): Likewise.
30811 (VSEL_1TI): Likewise.
30812 (VSEL_1TI_UNS): Likewise.
30813 (ST_INTERNAL_1ti): Likewise.
30814 (LD_INTERNAL_1ti): Likewise.
30815 (XXSEL_1TI): Likewise.
30816 (XXSEL_1TI_UNS): Likewise.
30817 (VPERM_1TI): Likewise.
30818 (VPERM_1TI_UNS): Likewise.
30819 (XXPERMDI_1TI): Likewise.
30820 (SET_1TI): Likewise.
30821 (LXVD2X_V1TI): Likewise.
30822 (STXVD2X_V1TI): Likewise.
30823 (VEC_INIT_V1TI): Likewise.
30824 (VEC_SET_V1TI): Likewise.
30825 (VEC_EXT_V1TI): Likewise.
30826 (EQV_V1TI): Likewise.
30827 (NAND_V1TI): Likewise.
30828 (ORC_V1TI): Likewise.
30829 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
30830 added in ISA 2.07. Add both normal 'altivec' builtins, and the
30831 overloaded builtin.
30832 (VADDUQM): Likewise.
30833 (VSUBCUQ): Likewise.
30834 (VADDEUQM): Likewise.
30835 (VADDECUQ): Likewise.
30836 (VSUBEUQM): Likewise.
30837 (VSUBECUQ): Likewise.
30839 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
30840 __int128_t and __uint128_t types.
30841 (__uint128_type): Likewise.
30842 (altivec_categorize_keyword): Add support for vector __int128_t,
30843 vector __uint128_t, vector __int128, and vector unsigned __int128
30844 as a container type for TImode operations that need to be done in
30845 VSX/Altivec registers.
30846 (rs6000_macro_to_expand): Likewise.
30847 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
30848 to support 128-bit integer instructions vaddcuq, vadduqm,
30849 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
30850 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
30852 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
30853 for V1TImode, and set up preferences to use VSX/Altivec registers.
30854 Setup VSX reload handlers.
30855 (rs6000_debug_reg_global): Likewise.
30856 (rs6000_init_hard_regno_mode_ok): Likewise.
30857 (rs6000_preferred_simd_mode): Likewise.
30858 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
30859 (easy_altivec_constant): Likewise.
30860 (output_vec_const_move): Likewise.
30861 (rs6000_expand_vector_set): Convert V1TImode set and extract to
30863 (rs6000_expand_vector_extract): Likewise.
30864 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
30866 (rs6000_const_vec): Add support for V1TImode.
30867 (rs6000_emit_le_vsx_load): Swap double words when loading or
30868 storing TImode/V1TImode.
30869 (rs6000_emit_le_vsx_store): Likewise.
30870 (rs6000_emit_le_vsx_move): Likewise.
30871 (rs6000_emit_move): Add support for V1TImode.
30872 (altivec_expand_ld_builtin): Likewise.
30873 (altivec_expand_st_builtin): Likewise.
30874 (altivec_expand_vec_init_builtin): Likewise.
30875 (altivec_expand_builtin): Likewise.
30876 (rs6000_init_builtins): Add support for V1TImode type. Add
30877 support for ISA 2.07 128-bit integer builtins. Define type names
30878 for the VSX/Altivec vector types.
30879 (altivec_init_builtins): Add support for overloaded vector
30880 functions with V1TImode type.
30881 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
30882 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
30884 (rs6000_split_128bit_ok_p): Likewise.
30885 (rs6000_handle_altivec_attribute): Create V1TImode from vector
30886 __int128_t and vector __uint128_t.
30888 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
30889 and mode attributes.
30891 (VSX_M2): Likewise.
30896 (VS_scalar): Likewise.
30897 (VS_double): Likewise.
30898 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
30900 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
30901 we support the ISA 2.07 128-bit integer arithmetic instructions.
30902 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
30903 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
30904 and TImode types for use with the builtin functions.
30905 (V1TI_type_node): Likewise.
30906 (unsigned_V1TI_type_node): Likewise.
30907 (intTI_type_internal_node): Likewise.
30908 (uintTI_type_internal_node): Likewise.
30910 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
30911 128-bit builtin functions.
30912 (UNSPEC_VADDEUQM): Likewise.
30913 (UNSPEC_VADDECUQ): Likewise.
30914 (UNSPEC_VSUBCUQ): Likewise.
30915 (UNSPEC_VSUBEUQM): Likewise.
30916 (UNSPEC_VSUBECUQ): Likewise.
30917 (VM): Add V1TImode to vector mode iterators.
30919 (VI_unit): Likewise.
30920 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
30921 (altivec_vaddcuq): Likewise.
30922 (altivec_vsubuqm): Likewise.
30923 (altivec_vsubcuq): Likewise.
30924 (altivec_vaddeuqm): Likewise.
30925 (altivec_vaddecuq): Likewise.
30926 (altivec_vsubeuqm): Likewise.
30927 (altivec_vsubecuq): Likewise.
30929 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
30931 (BOOL_128): Likewise.
30932 (BOOL_REGS_OUTPUT): Likewise.
30933 (BOOL_REGS_OP1): Likewise.
30934 (BOOL_REGS_OP2): Likewise.
30935 (BOOL_REGS_UNARY): Likewise.
30936 (BOOL_REGS_AND_CR0): Likewise.
30938 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
30939 128-bit integer builtin support.
30940 (vec_vadduqm): Likewise.
30941 (vec_vaddecuq): Likewise.
30942 (vec_vaddeuqm): Likewise.
30943 (vec_vsubecuq): Likewise.
30944 (vec_vsubeuqm): Likewise.
30945 (vec_vsubcuq): Likewise.
30946 (vec_vsubuqm): Likewise.
30948 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30949 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
30950 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
30951 128-bit integer add/subtract to ISA 2.07.
30953 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
30955 * config/arc/arc.c (arc_predicate_delay_insns):
30956 Fix third argument passed to conditionalize_nonjump.
30958 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
30960 * config/aarch64/aarch64-builtins.c
30961 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
30962 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
30963 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
30964 instead of __builtin_lfloor.
30965 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
30967 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30969 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
30970 (tree_ssa_ifcombine_bb_1): New function.
30971 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
30972 is an empty forwarder block to then_bb or vice versa and then_bb
30973 and else_bb are effectively swapped.
30975 2014-03-12 Christian Bruel <christian.bruel@st.com>
30978 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
30979 REG_CFA_DEF_CFA note.
30980 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
30981 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
30983 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
30985 PR tree-optimization/60454
30986 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
30988 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30990 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
30991 Do not define target_cpu_default2 to generic.
30992 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
30993 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
30994 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
30996 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30997 Marc Glisse <marc.glisse@inria.fr>
30999 PR tree-optimization/60502
31000 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31001 instead of build_low_bits_mask.
31003 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31005 PR middle-end/60482
31006 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31007 if there are multiple uses, but op doesn't live on E edge.
31008 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31009 clobber stmts before __builtin_unreachable.
31011 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
31013 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31014 hard_frame_pointer_rtx.
31015 * cse.c (cse_insn): Remove volatile check.
31016 * cselib.c (cselib_process_insn): Likewise.
31017 * dse.c (scan_insn): Likewise.
31019 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31021 * config/arc/arc.c (conditionalize_nonjump): New function,
31023 (arc_ifcvt): ... this.
31024 (arc_predicate_delay_insns): Use it.
31026 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31028 * config/arc/predicates.md (extend_operand): During/after reload,
31029 allow const_int_operand.
31030 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31031 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
31032 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31034 (umulsi3_highpart_i): Likewise.
31036 2014-03-11 Richard Biener <rguenther@suse.de>
31038 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31039 Add asserts to guard possible wrong-code bugs.
31041 2014-03-11 Richard Biener <rguenther@suse.de>
31043 PR tree-optimization/60429
31044 PR tree-optimization/60485
31045 * tree-ssa-structalias.c (set_union_with_increment): Properly
31046 take into account all fields that overlap the shifted vars.
31047 (do_sd_constraint): Likewise.
31048 (do_ds_constraint): Likewise.
31049 (get_constraint_for_ptr_offset): Likewise.
31051 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
31053 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31054 (nios2_compute_frame_layout):
31055 Add calculation of cfun->machine->fp_save_offset.
31056 (nios2_expand_prologue): Correct setting of frame pointer register
31058 (nios2_expand_epilogue): Update recovery of stack pointer from
31059 frame pointer accordingly.
31060 (nios2_initial_elimination_offset): Update calculation of offset
31061 for eliminating to HARD_FRAME_POINTER_REGNUM.
31063 2014-03-10 Jakub Jelinek <jakub@redhat.com>
31066 * ipa.c (symtab_remove_unreachable_nodes): Don't call
31067 cgraph_get_create_node on VAR_DECLs.
31069 2014-03-10 Richard Biener <rguenther@suse.de>
31071 PR middle-end/60474
31072 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31074 2014-03-08 Douglas B Rupp <rupp@gnat.com>
31076 * config/vms/vms.opt (vms_float_format): New variable.
31078 2014-03-08 Tobias Burnus <burnus@net-b.de>
31080 * doc/invoke.texi (-fcilkplus): Update implementation status.
31082 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
31083 Richard Biener <rguenther@suse.de>
31085 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31086 consistently accross all TUs.
31087 (run_gcc): Enable -fshort-double automatically at link at link-time
31088 and disallow override.
31090 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
31093 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31094 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31095 if they can't be used.
31097 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31099 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
31100 for Solaris 11/x86 ld.
31101 * configure: Regenerate.
31103 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31105 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
31106 (LIB_TLS_SPEC): Save as ld_tls_libs.
31107 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
31108 (HAVE_AS_IX86_TLSLDM): New test.
31109 * configure, config.in: Regenerate.
31110 * config/i386/i386.c (legitimize_tls_address): Fall back to
31111 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
31112 cannot support TLS_MODEL_LOCAL_DYNAMIC.
31113 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
31114 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
31116 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
31118 * common.opt (fira-loop-pressure): Mark as optimization.
31120 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
31122 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
31123 an OpenMP mappable type.
31125 2014-03-06 Matthias Klose <doko@ubuntu.com>
31127 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
31128 MULTILIB_OSDIRNAMES is not defined.
31130 2014-03-06 Jakub Jelinek <jakub@redhat.com>
31131 Meador Inge <meadori@codesourcery.com>
31134 * config/arm/arm.c (arm_tls_symbol_p): Remove.
31135 (arm_legitimize_address): Call legitimize_tls_address for any
31136 arm_tls_referenced_p expression, handle constant addend. Call it
31137 before testing for !TARGET_ARM.
31138 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31140 2014-03-06 Richard Biener <rguenther@suse.de>
31142 PR middle-end/60445
31146 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31148 * tree-streamer.c (record_common_node): Assert we don't record
31149 nodes with type double.
31150 (preload_common_node): Skip type double, complex double and double
31151 pointer since it is now frontend dependent due to fshort-double option.
31153 2014-03-06 Richard Biener <rguenther@suse.de>
31155 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31156 or -fno-lto is specified and the linker has full plugin support.
31157 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31158 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31159 * lto-wrapper.c (merge_and_complain): Merge compile-time
31160 optimization levels.
31161 (run_gcc): And pass it through to the link options.
31163 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
31167 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31169 * cselib.c (remove_useless_values): Skip to avoid quadratic
31170 behavior if the condition moved from...
31171 (cselib_process_insn): ... here holds.
31173 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31176 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31177 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31180 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31181 (TM_H): Add x86-tune.def.
31183 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31185 * config/aarch64/aarch64.c (generic_tunings):
31186 Use cortexa57_extra_costs.
31188 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31191 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31192 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31193 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31196 2014-03-04 Heiher <r@hev.cc>
31198 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31199 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31201 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
31203 * config/i386/predicates.md (const2356_operand): Change to ...
31204 (const2367_operand): ... this.
31205 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31207 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31208 (*avx512pf_scatterpf<mode>sf): Ditto.
31209 (avx512pf_scatterpf<mode>df): Ditto.
31210 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31211 (*avx512pf_scatterpf<mode>df): Ditto.
31212 * config/i386/i386.c (ix86_expand_builtin): Update
31213 incorrect hint operand error message.
31215 2014-03-04 Richard Biener <rguenther@suse.de>
31217 * lto-section-in.c (lto_get_section_data): Fix const cast.
31219 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31221 * tree-streamer.c (record_common_node): Assert we don't record
31222 nodes with type double.
31223 (preload_common_node): Skip type double, complex double and double
31224 pointer since it is now frontend dependent due to fshort-double option.
31226 2014-03-04 Richard Biener <rguenther@suse.de>
31229 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31230 (lto_input_toplevel_asms): Likewise.
31231 * lto-section-in.c (lto_get_section_data): Instead do it here
31234 2014-03-04 Richard Biener <rguenther@suse.de>
31236 PR tree-optimization/60382
31237 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
31238 dead PHIs a reduction.
31240 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
31242 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
31244 (_mm_prefetch): Move out of GCC target("sse") pragma.
31245 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
31246 GCC target("prfchw") pragma.
31247 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
31249 * config/i386/i386.c (ix86_option_override_internal): Enable
31250 -mprfchw with -mprefetchwt1.
31252 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31254 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
31257 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31259 * opts.h (CL_PCH_IGNORE): Define.
31260 * targhooks.c (option_affects_pch_p):
31261 Return false for options that have CL_PCH_IGNORE set.
31262 * opt-functions.awk: Process PchIgnore.
31263 * doc/options.texi: Document PchIgnore.
31265 * config/arc/arc.opt (misize): Add PchIgnore property.
31267 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31269 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
31270 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
31271 constraint on constants to permit them being loaded into
31272 GENERAL_REGS or BASE_REGS.
31274 2014-03-03 Nick Clifton <nickc@redhat.com>
31276 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
31277 anti-cacnonical alternatives.
31278 (negandhi3_real): New pattern.
31279 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
31281 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31283 * config/avr/avr-mcus.def: Remove atxmega16x1.
31284 * config/avr/avr-tables.opt: Regenerate.
31285 * config/avr/t-multilib: Regenerate.
31286 * doc/avr-mmcu.texi: Regenerate.
31288 2014-03-03 Tobias Grosser <tobias@grosser.es>
31289 Mircea Namolaru <mircea.namolaru@inria.fr>
31291 PR tree-optimization/58028
31292 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
31295 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31297 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
31298 not handled by recognizers.
31300 2014-03-03 Jakub Jelinek <jakub@redhat.com>
31302 PR middle-end/60175
31303 * function.c (expand_function_end): Don't emit
31304 clobber_return_register sequence if clobber_after is a BARRIER.
31305 * cfgexpand.c (construct_exit_block): Append instructions before
31306 return_label to prev_bb.
31308 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31310 * config/rs6000/constraints.md: Document reserved use of "wc".
31312 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31315 * ipa.c (function_and_variable_visibility): When dissolving comdat
31316 group, also set all symbols to local.
31318 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31323 2013-12-14 Jan Hubicka <jh@suse.cz>
31324 PR middle-end/58477
31325 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
31327 2014-03-02 Jon Beniston <jon@beniston.com>
31333 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
31334 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
31335 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
31336 (simple_return, *simple_return): New patterns
31337 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
31338 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
31340 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
31342 * dwarf2out.c (gen_subprogram_die): Tidy.
31344 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
31347 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
31348 (*mov_t_msb_neg_negc): ... this new insn.
31350 2014-02-28 Jason Merrill <jason@redhat.com>
31353 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
31356 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31359 * dwarf2out.c (decltype_auto_die): New static.
31360 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
31361 (gen_type_die_with_usage): Handle 'decltype(auto)'.
31362 (is_cxx_auto): Likewise.
31364 2014-02-28 Ian Bolton <ian.bolton@arm.com>
31366 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
31367 we are not using general regs only.
31369 2014-02-28 Richard Biener <rguenther@suse.de>
31372 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
31373 previous fix and only allow to remove trivial pre-headers
31374 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
31375 (remove_forwarder_block): Properly update the latch of a loop.
31377 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31380 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
31381 (cselib_preserved_hash_table): New.
31382 (preserve_constants_and_equivs): Move preserved vals to it.
31383 (cselib_find_slot): Look it up first.
31384 (cselib_init): Initialize it.
31385 (cselib_finish): Release it.
31386 (dump_cselib_table): Dump it.
31388 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31391 * cselib.c (remove_useless_values): Skip to avoid quadratic
31392 behavior if the condition moved from...
31393 (cselib_process_insn): ... here holds.
31395 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31398 * var-tracking.c (vt_initialize): Apply the same condition to
31399 preserve the CFA base value.
31401 2014-02-28 Joey Ye <joey.ye@arm.com>
31404 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
31405 if reload in progress or completed.
31407 2014-02-28 Tobias Burnus <burnus@net-b.de>
31409 PR middle-end/60147
31410 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
31413 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
31415 * doc/tm.texi.in (Condition Code Status): Update documention for
31416 relative locations of cc0-setter and cc0-user.
31418 2014-02-27 Jeff Law <law@redhat.com>
31420 PR rtl-optimization/52714
31421 * combine.c (try_combine): When splitting an unrecognized PARALLEL
31422 into two independent simple sets, if I3 is a jump, ensure the
31423 pattern we place into I3 is a (set (pc) ...).
31425 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
31426 Jeff Law <law@redhat.com>
31428 PR rtl-optimization/49847
31429 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
31430 are in different blocks.
31431 * doc/tm.texi (Condition Code Status): Update documention for
31432 relative locations of cc0-setter and cc0-user.
31434 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
31437 * lra.c (lra_emit_add): Check SUBREG too.
31439 2014-02-27 Andreas Schwab <schwab@suse.de>
31441 * config/m68k/m68k.c (m68k_option_override): Disable
31442 -flive-range-shrinkage for classic m68k.
31443 (m68k_override_options_after_change): Likewise.
31445 2014-02-27 Marek Polacek <polacek@redhat.com>
31447 PR middle-end/59223
31448 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
31449 -Wmaybe-uninitialized.
31451 2014-02-27 Alan Modra <amodra@gmail.com>
31454 * reload1.c (emit_input_reload_insns): When reload_override_in,
31455 set old to rl->in_reg when rl->in_reg is a subreg.
31457 2014-02-26 Richard Biener <rguenther@suse.de>
31460 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
31462 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31464 * common/config/i386/predicates.md (const1256_operand): Remove.
31465 (const2356_operand): New.
31466 (const_1_to_2_operand): Remove.
31467 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31468 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31469 (*avx512pf_gatherpf<mode>sf): Ditto.
31470 (avx512pf_gatherpf<mode>df): Ditto.
31471 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31472 (*avx512pf_gatherpf<mode>df): Ditto.
31473 (avx512pf_scatterpf<mode>sf): Ditto.
31474 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31475 (*avx512pf_scatterpf<mode>sf): Ditto.
31476 (avx512pf_scatterpf<mode>df): Ditto.
31477 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31478 (*avx512pf_scatterpf<mode>df): Ditto.
31479 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
31481 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
31483 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31484 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31485 (_mm512_mask_testn_epi64_mask): Move to ...
31486 * config/i386/avx512cdintrin.h: Here.
31487 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31488 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31489 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31490 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31491 TARGET_AVX512F from TARGET_AVX512CD.
31493 2014-02-26 Richard Biener <rguenther@suse.de>
31496 * ipa.c (walk_polymorphic_call_targets): Properly guard
31497 call to inline_update_overall_summary.
31499 2014-02-26 Bin Cheng <bin.cheng@arm.com>
31502 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31503 and latches only if requested. Fix latch if it is removed.
31504 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31505 LOOPS_HAVE_PREHEADERS.
31507 2014-02-25 Andrew Pinski <apinski@cavium.com>
31509 * builtins.c (expand_builtin_thread_pointer): Create a new target
31510 when the target is NULL.
31512 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
31514 PR rtl-optimization/60317
31515 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31516 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31517 * lra-assigns.c: Include params.h.
31518 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31519 other reload pseudos considerations.
31521 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31523 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31524 to use canonical form for nor<mode>3.
31526 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31529 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31532 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31534 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31535 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31536 (ix86_handle_option): Handle OPT_mprefetchwt1.
31537 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31538 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31540 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31541 OPTION_MASK_ISA_PREFETCHWT1.
31542 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31543 (PTA_PREFETCHWT1): New.
31544 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31545 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31546 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31547 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31548 (*prefetch_avx512pf_<mode>_: Change into ...
31549 (*prefetch_prefetchwt1_<mode>: This.
31550 * config/i386/i386.opt (mprefetchwt1): New.
31551 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31552 (_mm_prefetch): Handle intent to write.
31553 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31555 2014-02-25 Richard Biener <rguenther@suse.de>
31557 PR middle-end/60291
31558 * emit-rtl.c (mem_attrs_htab): Remove.
31559 (mem_attrs_htab_hash): Likewise.
31560 (mem_attrs_htab_eq): Likewise.
31561 (set_mem_attrs): Always allocate new mem-attrs when something changed.
31562 (init_emit_once): Do not allocate mem_attrs_htab.
31564 2014-02-25 Richard Biener <rguenther@suse.de>
31567 * lto-opts.c (lto_write_options): Output non-explicit conservative
31568 -fwrapv, -fno-trapv and -fno-strict-overflow.
31569 * lto-wrapper.c (merge_and_complain): Handle merging those options.
31570 (run_gcc): And pass them through.
31572 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31574 * sel-sched.c (calculate_new_fences): New parameter ptime.
31575 Calculate it as a maximum over all fence cycles.
31576 (sel_sched_region_2): Adjust the call to calculate_new_fences.
31577 Print the final schedule timing when sched_verbose.
31579 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31581 PR rtl-optimization/60292
31582 * sel-sched.c (fill_vec_av_set): Do not reset target availability
31583 bit fot the fence instruction.
31585 2014-02-24 Alangi Derick <alangiderick@gmail.com>
31587 * calls.h: Fix typo in comment.
31589 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
31591 * config/pa/pa.c (pa_output_move_double): Don't valididate when
31592 adjusting offsetable addresses.
31594 2014-02-24 Guozhi Wei <carrot@google.com>
31596 * sparseset.h (sparseset_pop): Fix the wrong index.
31598 2014-02-24 Walter Lee <walt@tilera.com>
31600 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31601 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31603 * common/config/tilegx/tilegx-common.c
31604 (TARGET_DEFAULT_TARGET_FLAGS): Define.
31605 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31606 (LINK_SPEC): Ditto.
31607 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31608 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31609 (tilegx_gimplify_va_arg_expr): Handle big endian.
31610 (tilegx_expand_unaligned_load): Ditto.
31611 (tilegx_expand_unaligned_store): Ditto.
31612 (TARGET_RETURN_IN_MSB): New.
31613 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31614 (TARGET_ENDIAN_DEFAULT): New.
31615 (TARGET_BIG_ENDIAN): Handle big endian.
31616 (BYTES_BIG_ENDIAN): Ditto.
31617 (WORDS_BIG_ENDIAN): Ditto.
31618 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31619 (ENDIAN_SPEC): New.
31620 (EXTRA_SPECS): New.
31621 * config/tilegx/tilegx.md (extv): Handle big endian.
31623 (insn_st<n>): Ditto.
31624 (insn_st<n>_add<bitsuffix>): Ditto.
31625 (insn_stnt<n>): Ditto.
31626 (insn_stnt<n>_add<bitsuffix>):Ditto.
31627 (vec_interleave_highv8qi): Handle big endian.
31628 (vec_interleave_highv8qi_be): New.
31629 (vec_interleave_highv8qi_le): New.
31630 (insn_v1int_h): Handle big endian.
31631 (vec_interleave_lowv8qi): Handle big endian.
31632 (vec_interleave_lowv8qi_be): New.
31633 (vec_interleave_lowv8qi_le): New.
31634 (insn_v1int_l): Handle big endian.
31635 (vec_interleave_highv4hi): Handle big endian.
31636 (vec_interleave_highv4hi_be): New.
31637 (vec_interleave_highv4hi_le): New.
31638 (insn_v2int_h): Handle big endian.
31639 (vec_interleave_lowv4hi): Handle big endian.
31640 (vec_interleave_lowv4hi_be): New.
31641 (vec_interleave_lowv4hi_le): New.
31642 (insn_v2int_l): Handle big endian.
31643 (vec_interleave_highv2si): Handle big endian.
31644 (vec_interleave_highv2si_be): New.
31645 (vec_interleave_highv2si_le): New.
31646 (insn_v4int_h): Handle big endian.
31647 (vec_interleave_lowv2si): Handle big endian.
31648 (vec_interleave_lowv2si_be): New.
31649 (vec_interleave_lowv2si_le): New.
31650 (insn_v4int_l): Handle big endian.
31651 * config/tilegx/tilegx.opt (mbig-endian): New option.
31652 (mlittle-endian): New option.
31653 * doc/install.texi: Document tilegxbe-linux.
31654 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
31656 2014-02-24 Martin Jambor <mjambor@suse.cz>
31659 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
31660 there are no parameter descriptors.
31662 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
31664 PR rtl-optimization/60268
31665 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
31666 initialization to ...
31667 (sched_rgn_init): ... here.
31668 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
31670 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31672 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
31675 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
31677 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
31680 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31682 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
31683 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
31685 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31687 * config/microblaze/predicates.md: Add cmp_op predicate.
31688 * config/microblaze/microblaze.md: Add branch_compare instruction
31689 which uses cmp_op predicate and emits cmp insn before branch.
31690 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
31691 to microblaze_expand_conditional_branch and consolidate logic.
31692 (microblaze_expand_conditional_branch): emit branch_compare
31693 insn instead of handling cmp op separate from branch insn.
31695 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31697 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
31700 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31702 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
31703 define_insn with define_expand and new define_insn
31704 *altivec_lve<VI_char>x_internal.
31705 (altivec_stve<VI_char>x): Replace define_insn with define_expand
31706 and new define_insn *altivec_stve<VI_char>x_internal.
31707 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
31709 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
31711 (altivec_expand_stvex_be): New function.
31713 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
31715 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
31716 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
31717 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
31718 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
31720 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
31723 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
31724 instead of emit_move_insn.
31726 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31728 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
31729 vspltw with vsldoi.
31730 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
31731 gen_altivec_vsumsws.
31733 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31735 * config/rs6000/altivec.md (altivec_lvxl): Rename as
31736 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
31737 (altivec_lvxl_<mode>): New define_expand incorporating
31738 -maltivec=be semantics where needed.
31739 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
31740 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
31741 semantics where needed.
31742 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
31743 (altivec_stvx_<mode>): New define_expand incorporating
31744 -maltivec=be semantics where needed.
31745 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
31746 VM2 iterator instead of V4SI.
31747 (altivec_stvxl_<mode>): New define_expand incorporating
31748 -maltivec=be semantics where needed.
31749 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
31750 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
31751 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
31752 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
31753 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
31754 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
31755 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
31756 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
31757 ALTIVEC_BUILTIN_STVXL.
31758 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
31759 (altivec_expand_stvx_be): Likewise.
31760 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
31761 (altivec_expand_lvx_be): Likewise.
31762 (altivec_expand_stvx_be): Likewise.
31763 (altivec_expand_builtin): Add cases for
31764 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
31765 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
31766 (altivec_init_builtins): Add definitions for
31767 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
31768 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
31770 2014-02-21 Catherine Moore <clm@codesourcery.com>
31772 * doc/invoke.texi (mvirt, mno-virt): Document.
31773 * config/mips/mips.opt (mvirt): New option.
31774 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
31776 2014-02-21 Richard Biener <rguenther@suse.de>
31778 PR tree-optimization/60276
31779 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
31780 (STMT_VINFO_MIN_NEG_DIST): New macro.
31781 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
31782 STMT_VINFO_MIN_NEG_DIST.
31783 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
31784 made for negative dependence distances still hold.
31786 2014-02-21 Richard Biener <rguenther@suse.de>
31788 PR middle-end/60291
31789 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
31790 DECL_INITIAL for globals not in the current function context.
31792 2014-02-21 Jakub Jelinek <jakub@redhat.com>
31794 PR tree-optimization/56490
31795 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
31796 * tree-ssa-uninit.c: Include params.h.
31797 (compute_control_dep_chain): Add num_calls argument, return false
31798 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
31799 num_calls to recursive call.
31800 (find_predicates): Change dep_chain into normal array,
31801 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
31802 variable and adjust compute_control_dep_chain caller.
31803 (find_def_preds): Likewise.
31805 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
31807 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
31808 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
31810 2014-02-21 Nick Clifton <nickc@redhat.com>
31812 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
31813 (pushhi1): Likewise.
31814 (popqi1): Add mode to pre_dec.
31815 (pophi1): Likewise.
31817 2014-02-21 Jakub Jelinek <jakub@redhat.com>
31819 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
31820 mode for mask of V8SFmode permutation.
31822 2014-02-20 Richard Henderson <rth@redhat.com>
31825 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
31826 a new pseudo for OLDVAL.
31828 2014-02-20 Jakub Jelinek <jakub@redhat.com>
31831 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
31832 gen_reg_rtx if d->testing_p.
31833 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
31834 if d->testing_p and we will certainly return true.
31835 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
31838 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
31840 * emit-rtl.c (gen_reg_rtx): Assert that
31841 crtl->emit.regno_pointer_align_length is non-zero.
31843 2014-02-20 Richard Henderson <rth@redhat.com>
31846 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
31847 on failure the store back into EXPECT.
31849 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
31850 Sandra Loosemore <sandra@codesourcery.com>
31852 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
31853 * config/nios2/nios2.c (nios2_function_profiler): Add
31854 -fPIC (flag_pic == 2) support.
31855 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
31856 (nios2_large_offset_p): New function.
31857 (nios2_unspec_reloc_p): Move up position, update to use
31858 nios2_large_offset_p.
31859 (nios2_unspec_address): Remove function.
31860 (nios2_unspec_offset): New function.
31861 (nios2_large_got_address): New function.
31862 (nios2_got_address): Add large offset support.
31863 (nios2_legitimize_tls_address): Update usage of removed and new
31865 (nios2_symbol_binds_local_p): New function.
31866 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
31867 (nios2_legitimize_address): Update to use nios2_large_offset_p.
31868 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
31869 (nios2_print_operand): Merge H/L processing, add hiadj/lo
31870 processing for (const (unspec ...)).
31871 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
31873 2014-02-20 Richard Biener <rguenther@suse.de>
31875 * tree-cfg.c (replace_uses_by): Mark altered BBs before
31876 doing the substitution.
31877 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
31879 2014-02-20 Martin Jambor <mjambor@suse.cz>
31882 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
31883 info when checking whether lattices are bottom.
31885 2014-02-20 Richard Biener <rguenther@suse.de>
31887 PR middle-end/60221
31888 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
31891 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
31894 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
31895 parameter specifying the scaling.
31896 (inline_call): Update.
31897 (want_inline_recursively): Guard division by zero.
31898 (recursive_inlining): Update.
31899 * ipa-inline.h (clone_inlined_nodes): Update.
31901 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
31904 * config/i386/i386.c (classify_argument): Pass structures of size
31905 64 bytes or less in register.
31907 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
31908 Kirill Yukhin <kirill.yukhin@intel.com>
31910 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
31911 (_mm_rcp28_round_ss): Ditto.
31912 (_mm_rsqrt28_round_sd): Ditto.
31913 (_mm_rsqrt28_round_ss): Ditto.
31914 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
31915 (_mm_rcp14_round_ss): Ditto.
31916 (_mm_rsqrt14_round_sd): Ditto.
31917 (_mm_rsqrt14_round_ss): Ditto.
31918 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
31919 the first input operand, get rid of match_dup.
31920 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
31922 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
31924 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
31925 operand as the first input operand, set type attribute.
31926 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
31927 Set type attribute.
31928 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
31929 operand as the first input operand, set type attribute.
31931 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31933 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
31936 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
31939 * config/i386/i386.c (construct_container): Remove TFmode check
31940 for X86_64_INTEGER_CLASS.
31942 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
31945 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
31946 only when -Wpsabi is enabled.
31948 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
31951 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
31952 passing arrays in registers are the same as for structs, so remove the
31953 special case for them.
31955 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
31957 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
31958 destination type, extract only the valid bits if the source type is not
31959 integral and has a different mode.
31961 2014-02-19 Richard Biener <rguenther@suse.de>
31964 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
31967 2014-02-19 Richard Biener <rguenther@suse.de>
31970 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
31971 (ipa_modify_call_arguments): Emit an argument load explicitely and
31972 preserve virtual SSA form there and for the replacement call.
31973 Do not update SSA form nor free dominance info.
31975 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31977 * ipa.c (function_and_variable_visibility): Also clear WEAK
31978 flag when disolving COMDAT_GROUP.
31980 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31982 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
31983 * ipa-prop.c (ipa_set_jf_known_type): Return early when
31984 not devirtualizing.
31985 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
31986 do more sanity checks.
31987 (detect_type_change): Return true when giving up early.
31988 (compute_complex_assign_jump_func): Fix type parameter of
31989 ipa_set_ancestor_jf.
31990 (compute_complex_ancestor_jump_func): Likewise.
31991 (update_jump_functions_after_inlining): Fix updating of
31993 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
31995 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31997 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
31998 inline clones when edge disappears.
32000 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
32003 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32004 Split 64-bit moves into 2 patterns. Do not allow the use of
32005 direct move for TDmode in little endian, since the decimal value
32006 has little endian bytes within a word, but the 64-bit pieces are
32007 ordered in a big endian fashion, and normal subreg's of TDmode are
32009 (mov<mode>_64bit_dm): Likewise.
32010 (movtd_64bit_nodm): Likewise.
32012 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32014 PR tree-optimization/60174
32015 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32016 statement of an SSA_NAME that occurs in an abnormal PHI node.
32018 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32021 * final.c (SEEN_BB): Remove.
32022 (SEEN_NOTE, SEEN_EMITTED): Renumber.
32023 (final_scan_insn): Don't force_source_line on second
32024 NOTE_INSN_BASIC_BLOCK.
32026 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
32029 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32030 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32031 (type_natural_mode): Warn ABI change when %zmm register is not
32032 available for AVX512F vector value passing.
32034 2014-02-18 Kai Tietz <ktietz@redhat.com>
32037 * config/i386/i386.c (ix86_expand_prologue): Use value in
32038 rax register as displacement when restoring %r10 or %rax.
32039 Fix wrong offset when restoring both registers.
32041 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32043 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32044 assertion with conditional return.
32046 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32047 Uros Bizjak <ubizjak@gmail.com>
32050 * config/i386/driver-i386.c (host_detect_local_cpu): If
32051 YMM state is not saved by the OS, also clear has_f16c. Move
32052 CPUID 0x80000001 handling before YMM state saving checking.
32054 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
32056 PR rtl-optimization/58960
32057 * haifa-sched.c (alloc_global_sched_pressure_data): New,
32058 factored out from ...
32059 (sched_init): ... here.
32060 (free_global_sched_pressure_data): New, factored out from ...
32061 (sched_finish): ... here.
32062 * sched-int.h (free_global_sched_pressure_data): Declare.
32063 * sched-rgn.c (nr_regions_initial): New static global.
32064 (haifa_find_rgns): Initialize it.
32065 (schedule_region): Disable sched-pressure for the newly
32068 2014-02-17 Richard Biener <rguenther@suse.de>
32070 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32071 release SSA defs of pattern stmts.
32073 2014-02-17 Richard Biener <rguenther@suse.de>
32075 * tree-inline.c (expand_call_inline): Release the virtual
32076 operand defined by the call we are about to inline.
32078 2014-02-17 Richard Biener <rguenther@suse.de>
32080 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32082 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
32083 Ilya Tocar <ilya.tocar@intel.com>
32085 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32086 arguments order in builtin.
32087 (_mm512_permutexvar_epi64): Ditto.
32088 (_mm512_mask_permutexvar_epi64): Ditto
32089 (_mm512_maskz_permutexvar_epi32): Ditto
32090 (_mm512_permutexvar_epi32): Ditto
32091 (_mm512_mask_permutexvar_epi32): Ditto
32093 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32095 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32096 (p8_vmrgow): Likewise.
32098 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32100 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
32103 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
32106 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
32107 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
32108 into 64-bit and 32-bit moves. On 64-bit moves, add support for
32109 using direct move instructions on ISA 2.07. Also adjust
32110 instruction length for 64-bit.
32111 (mov<mode>_64bit, TFmode/TDmode): Likewise.
32112 (mov<mode>_32bit, TFmode/TDmode): Likewise.
32114 2014-02-15 Alan Modra <amodra@gmail.com>
32118 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32119 find_replacement on parts of insn rtl that might be reloaded.
32121 2014-02-15 Richard Biener <rguenther@suse.de>
32123 PR tree-optimization/60183
32124 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
32125 (tree_ssa_phiprop): Calculate and free post-dominators.
32127 2014-02-14 Jeff Law <law@redhat.com>
32129 PR rtl-optimization/60131
32130 * ree.c (get_extended_src_reg): New function.
32131 (combine_reaching_defs): Use it rather than assuming location of REG.
32132 (find_and_remove_re): Verify first operand of extension is
32133 a REG before adding the insns to the copy list.
32135 2014-02-14 Roland McGrath <mcgrathr@google.com>
32137 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32138 * configure: Regenerated.
32139 * config.in: Regenerated.
32140 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32141 instead of ASM_SHORT.
32143 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
32144 Richard Earnshaw <rearnsha@arm.com>
32146 PR rtl-optimization/59535
32147 * lra-constraints.c (process_alt_operands): Encourage alternative
32148 when unassigned pseudo class is superset of the alternative class.
32149 (inherit_reload_reg): Don't inherit when optimizing for code size.
32150 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32151 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32152 modes not less than 4 for Thumb1.
32154 2014-02-14 Kyle McMartin <kyle@redhat.com>
32157 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32159 2014-02-14 Richard Biener <rguenther@suse.de>
32161 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32162 (get_frame_arg): Drop the assert with langhook types_compatible_p.
32163 Do not strip INDIRECT_REFs.
32165 2014-02-14 Richard Biener <rguenther@suse.de>
32168 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32169 DECL_FUNCTION_SPECIFIC_TARGET.
32170 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32171 * tree-streamer-out.c (pack_ts_target_option): Remove.
32172 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32173 (write_ts_function_decl_tree_pointers): Do not stream
32174 DECL_FUNCTION_SPECIFIC_TARGET.
32175 * tree-streamer-in.c (unpack_ts_target_option): Remove.
32176 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32177 (lto_input_ts_function_decl_tree_pointers): Do not stream
32178 DECL_FUNCTION_SPECIFIC_TARGET.
32180 2014-02-14 Jakub Jelinek <jakub@redhat.com>
32182 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32183 (get_initial_def_for_induction, vectorizable_induction): Ignore
32184 debug stmts when looking for exit_phi.
32185 (vectorizable_live_operation): Fix up condition.
32187 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32189 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32190 nreverse() because it changes the content of original tree list.
32192 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32194 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32195 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32197 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32199 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32200 GNU coding standards.
32202 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32205 * dwarf2out.c (gen_subprogram_die): Don't call
32206 add_calling_convention_attribute if subr_die is old_die.
32208 2014-02-13 Sharad Singhai <singhai@google.com>
32210 * doc/optinfo.texi: Fix order of nodes.
32212 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
32214 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32215 operands[2], not operands[3].
32217 2014-02-13 Richard Biener <rguenther@suse.de>
32220 * doc/install.texi (ISL): Update recommended version to 0.12.2,
32221 mention the possibility of an in-tree build.
32222 (CLooG): Update recommended version to 0.18.1, mention the
32223 possibility of an in-tree build and clarify that the ISL
32224 bundled with CLooG does not work.
32226 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32229 * expr.c (compress_float_constant): If x is a hard register,
32230 extend into a pseudo and then move to x.
32232 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
32234 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
32235 caused by bad second argument to warning_at() with -mhotpatch and
32236 nested functions (e.g. with gfortran).
32238 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
32240 * opts.c (option_name): Remove "enabled by default" rider.
32242 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
32244 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
32246 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
32247 Uros Bizjak <ubizjak@gmail.com>
32250 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
32251 * configure: Regenerated.
32253 2014-02-12 Richard Biener <rguenther@suse.de>
32255 * vec.c (vec_prefix::calculate_allocation): Move as
32256 inline variant to vec.h.
32257 (vec_prefix::calculate_allocation_1): New out-of-line version.
32258 * vec.h (vec_prefix::calculate_allocation_1): Declare.
32259 (vec_prefix::m_has_auto_buf): Rename to ...
32260 (vec_prefix::m_using_auto_storage): ... this.
32261 (vec_prefix::calculate_allocation): Inline the easy cases
32262 and dispatch to calculate_allocation_1 which doesn't need the
32264 (va_heap::reserve): Use gcc_checking_assert.
32265 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
32266 m_using_auto_storage.
32267 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
32269 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
32270 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
32271 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
32273 2014-02-12 Richard Biener <rguenther@suse.de>
32275 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
32276 when we found a dependence.
32278 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
32280 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
32282 (maybe_fold_stmt): ... into this new function.
32283 * omp-low.c (lower_omp): Update comment.
32285 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
32288 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
32291 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
32293 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
32294 identifiers in comments.
32295 (cortexa53_extra_costs): Likewise.
32296 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
32297 (cortexa7_extra_costs): Likewise.
32298 (cortexa12_extra_costs): Likewise.
32299 (cortexa15_extra_costs): Likewise.
32300 (v7m_extra_costs): Likewise.
32302 2014-02-12 Richard Biener <rguenther@suse.de>
32304 PR middle-end/60092
32305 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
32306 of posix_memalign being successful.
32307 (lower_stmt): Restrict lowering of posix_memalign to when
32308 -ftree-bit-ccp is enabled.
32310 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32312 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
32314 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
32316 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
32318 PR rtl-optimization/60116
32319 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
32320 other_insn once the combination has been validated.
32322 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
32325 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
32327 * ipa-devirt.c: Include demangle.h
32328 (odr_violation_reported): New static variable.
32329 (add_type_duplicate): Update odr_violations.
32330 (maybe_record_node): Add completep parameter; update it.
32331 (record_target_from_binfo): Add COMPLETEP parameter;
32332 update it as needed.
32333 (possible_polymorphic_call_targets_1): Likewise.
32334 (struct polymorphic_call_target_d): Add nonconstruction_targets;
32335 rename FINAL to COMPLETE.
32336 (record_targets_from_bases): Sanity check we found the binfo;
32337 fix COMPLETEP updating.
32338 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
32339 parameter, fix computing of COMPLETEP.
32340 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
32341 at LTO time do demangling.
32342 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
32343 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
32345 (gimple_get_virt_method_for_binfo): Likewise.
32346 * gimple-fold.h (gimple_get_virt_method_for_binfo,
32347 gimple_get_virt_method_for_vtable): Update prototypes.
32349 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
32352 * genautomata.c (add_presence_absence): Fix typo with
32353 {final_}presence_list.
32355 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
32358 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
32359 for VSX/Altivec vectors that land in GPR registers.
32361 2014-02-11 Richard Henderson <rth@redhat.com>
32362 Jakub Jelinek <jakub@redhat.com>
32365 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
32366 around drhs if type conversion to lacc->type is not useless.
32368 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32370 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
32372 (cortex-a57.cortex-a53): Likewise.
32373 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
32375 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32377 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
32380 2014-02-11 Renlin Li <Renlin.Li@arm.com>
32382 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
32383 add_options_for_arm_vfp3.
32385 2014-02-11 Jeff Law <law@redhat.com>
32387 PR middle-end/54041
32388 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
32389 object with an undesirable mode.
32391 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32394 * config/i386/sol2-9.h: New file.
32395 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
32396 *-*-solaris2.9*): Use it.
32398 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32400 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
32401 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
32403 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32405 * config/microblaze/microblaze.c: Extend mcpu version format
32407 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
32409 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
32411 2014-02-10 Richard Henderson <rth@redhat.com>
32414 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
32415 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
32416 ms-abi vs -mno-accumulate-outgoing-args.
32417 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
32418 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
32421 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
32423 PR middle-end/60080
32424 * cfgexpand.c (expand_asm_operands): Attach source location to
32425 ASM_INPUT rtx objects.
32426 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
32428 2014-02-10 Nick Clifton <nickc@redhat.com>
32430 * config/mn10300/mn10300.c (popcount): New function.
32431 (mn10300_expand_prologue): Include saved registers in stack usage
32434 2014-02-10 Jeff Law <law@redhat.com>
32436 PR middle-end/52306
32437 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
32438 when changing the SET_DEST of a prior insn to avoid an input reload.
32440 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32442 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
32443 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
32444 -mcall-openbsd, or -mcall-linux.
32445 (CC1_ENDIAN_BIG_SPEC): Remove.
32446 (CC1_ENDIAN_LITTLE_SPEC): Remove.
32447 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32448 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
32449 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
32450 and %cc1_endian_default.
32451 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32453 2014-02-10 Richard Biener <rguenther@suse.de>
32455 PR tree-optimization/60115
32456 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
32457 MEM_REF handling. Properly verify that the accesses are not
32458 out of the objects bound.
32460 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32462 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
32465 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
32467 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
32468 proper constants and fix formatting.
32469 (possible_polymorphic_call_targets): Fix formatting.
32471 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
32472 Ilya Tocar <ilya.tocar@intel.com>
32474 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
32475 (_mm512_loadu_epi32): Renamed into...
32476 (_mm512_loadu_si512): This.
32477 (_mm512_storeu_epi32): Renamed into...
32478 (_mm512_storeu_si512): This.
32479 (_mm512_maskz_ceil_ps): Removed.
32480 (_mm512_maskz_ceil_pd): Ditto.
32481 (_mm512_maskz_floor_ps): Ditto.
32482 (_mm512_maskz_floor_pd): Ditto.
32483 (_mm512_floor_round_ps): Ditto.
32484 (_mm512_floor_round_pd): Ditto.
32485 (_mm512_ceil_round_ps): Ditto.
32486 (_mm512_ceil_round_pd): Ditto.
32487 (_mm512_mask_floor_round_ps): Ditto.
32488 (_mm512_mask_floor_round_pd): Ditto.
32489 (_mm512_mask_ceil_round_ps): Ditto.
32490 (_mm512_mask_ceil_round_pd): Ditto.
32491 (_mm512_maskz_floor_round_ps): Ditto.
32492 (_mm512_maskz_floor_round_pd): Ditto.
32493 (_mm512_maskz_ceil_round_ps): Ditto.
32494 (_mm512_maskz_ceil_round_pd): Ditto.
32495 (_mm512_expand_pd): Ditto.
32496 (_mm512_expand_ps): Ditto.
32497 * config/i386/i386.c (ix86_builtins): Remove
32498 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32499 (bdesc_args): Ditto.
32500 * config/i386/predicates.md (const1256_operand): New.
32501 (const_1_to_2_operand): Ditto.
32502 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32503 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32504 (*avx512pf_gatherpf<mode>sf): Ditto.
32505 (avx512pf_gatherpf<mode>df): Ditto.
32506 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32507 (*avx512pf_gatherpf<mode>df): Ditto.
32508 (avx512pf_scatterpf<mode>sf): Ditto.
32509 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32510 (*avx512pf_scatterpf<mode>sf): Ditto.
32511 (avx512pf_scatterpf<mode>df): Ditto.
32512 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32513 (*avx512pf_scatterpf<mode>df): Ditto.
32514 (avx512f_expand<mode>): Removed.
32515 (<shift_insn><mode>3<mask_name>): Change predicate type.
32517 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32519 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32520 not at the end of datarefs vector use ordered_remove to avoid
32521 reordering datarefs vector.
32524 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32525 mark local addressable non-static vars as GOVD_PRIVATE
32526 instead of GOVD_LOCAL.
32527 * omp-low.c (lower_omp_for): Move gimple_bind_vars
32528 and BLOCK_VARS of gimple_bind_block to new_stmt rather
32531 PR middle-end/60092
32532 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32533 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32534 assume_aligned or alloc_align attributes.
32535 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32536 arguments. Handle also assume_aligned and alloc_align attributes.
32537 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
32538 calls to functions with assume_aligned or alloc_align attributes.
32539 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32541 2014-02-08 Terry Guo <terry.guo@arm.com>
32543 * doc/invoke.texi: Document ARM -march=armv7e-m.
32545 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32547 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32548 flag on __cilkrts_rethrow builtin.
32551 * ipa-cp.c (determine_versionability): Fail at -O0
32552 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32553 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32556 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32559 * tree-inline.c (copy_forbidden): Fail for
32560 __attribute__((optimize (0))) functions.
32562 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32564 * varpool.c: Include pointer-set.h.
32565 (varpool_remove_unreferenced_decls): Variables in other partitions
32566 will not be output; be however careful to not lose information
32567 about partitioning.
32569 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32571 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32572 lookup in the vtable constructor.
32574 2014-02-07 Jeff Law <law@redhat.com>
32577 * config/m68k/m68k.md (ashldi_extsi): Turn into a
32578 define_insn_and_split.
32580 * ipa-inline.c (inline_small_functions): Fix typos.
32582 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32584 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
32585 (s390_can_use_return_insn): Declare.
32586 * config/s390/s390.h (EPILOGUE_USES): Define.
32587 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
32589 (s390_chunkify_start): Handle return JUMP_LABELs.
32590 (s390_early_mach): Emit a main_pool instruction on the entry edge.
32591 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
32592 (s390_can_use_return_insn): New functions.
32593 (s390_fix_long_loop_prediction): Handle conditional returns.
32594 (TARGET_SET_UP_BY_PROLOGUE): Define.
32595 * config/s390/s390.md (ANY_RETURN): New code iterator.
32596 (*creturn, *csimple_return, return, simple_return): New patterns.
32598 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32600 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32601 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
32602 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
32603 REG_CFA_RESTORE list when deciding not to restore a register.
32605 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32607 * config/s390/s390.c: Include tree-pass.h and context.h.
32608 (s390_early_mach): New function, split out from...
32609 (s390_emit_prologue): ...here.
32610 (pass_data_s390_early_mach): New pass structure.
32611 (pass_s390_early_mach): New class.
32612 (s390_option_override): Create and register early_mach pass.
32613 Move to end of file.
32615 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32617 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32618 to match for the exit block.
32620 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32622 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32623 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32624 Reject misaligned operands.
32626 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32628 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
32630 2014-02-07 Richard Biener <rguenther@suse.de>
32632 PR middle-end/60092
32633 * gimple-low.c (lower_builtin_posix_memalign): New function.
32634 (lower_stmt): Call it to lower posix_memalign in a way
32635 to make alignment info accessible.
32637 2014-02-07 Jakub Jelinek <jakub@redhat.com>
32640 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
32641 __builtin_setjmp_receiver.
32643 2014-02-07 Richard Biener <rguenther@suse.de>
32645 PR middle-end/60092
32646 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
32647 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
32648 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32649 Handle BUILT_IN_POSIX_MEMALIGN.
32650 (find_func_clobbers): Likewise.
32651 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32652 (call_may_clobber_ref_p_1): Likewise.
32654 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32657 * ipa-devirt.c (record_target_from_binfo): Remove overactive
32660 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32663 * lto-cgraph.c (lto_output_node): Use
32664 symtab_get_symbol_partitioning_class.
32665 (lto_output_varpool_node): likewise.
32666 (symtab_get_symbol_partitioning_class): Move here from
32667 lto/lto-partition.c
32668 * cgraph.h (symbol_partitioning_class): Likewise.
32669 (symtab_get_symbol_partitioning_class): Declare.
32671 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32673 * ggc.h (ggc_internal_cleared_alloc): New macro.
32674 * vec.h (vec_safe_copy): Handle memory stats.
32675 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
32676 * target-globals.c (save_target_globals): Likewise.
32678 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32681 * expr.c (emit_move_resolve_push): Export; be bit more selective
32682 on when to clear alias set.
32683 * expr.h (emit_move_resolve_push): Declare.
32684 * function.h (struct function): Add tail_call_marked.
32685 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
32686 * config/i386/i386-protos.h (ix86_expand_push): Remove.
32687 * config/i386/i386.md (TImode move expander): De not call
32689 (FP push expanders): Preserve memory attributes.
32690 * config/i386/sse.md (push<mode>1): Remove.
32691 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
32692 (ix86_expand_push): Remove.
32693 * config/i386/mmx.md (push<mode>1): Remove.
32695 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32697 PR rtl-optimization/60030
32698 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
32699 lopart with paradoxical subreg before shifting it up by hprec.
32701 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32703 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
32704 Remove extra newline at end of file.
32705 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
32706 (arm_issue_rate): Handle cortexa57.
32707 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
32708 (cortex-a57.cortex-a53): Likewise.
32710 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32713 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
32714 don't record in REG_FRAME_RELATED_EXPR registers not set in that
32716 (arm_expand_prologue): Adjust all callers.
32717 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
32718 info, registers also at the lowest numbered registers side. Use
32719 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
32723 * var-tracking.c (adjust_mems): Before adding a SET to
32724 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
32726 2014-02-06 Alan Modra <amodra@gmail.com>
32729 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
32730 change SDmode to DDmode when lra_in_progress.
32732 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32734 PR middle-end/59150
32735 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
32736 free_data_ref on the dr first, and before goto again also set dr
32737 to the next dr. For simd_lane_access, free old datarefs[i] before
32738 overwriting it. For get_vectype_for_scalar_type failure, don't
32739 free_data_ref if simd_lane_access.
32741 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
32744 * tree.h (opts_for_fn): New inline function.
32745 (opt_for_fn): Define.
32746 * config/i386/i386.c (ix86_function_regparm): Use
32747 opt_for_fn (decl, optimize) instead of optimize.
32749 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
32751 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
32752 for SYMBOL_REF in large memory model.
32754 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32756 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
32757 and crypto support.
32758 (cortex-a57): Likewise.
32759 (cortex-a57.cortex-a53): Likewise.
32761 2014-02-06 Yury Gribov <y.gribov@samsung.com>
32762 Kugan Vivekanandarajah <kuganv@linaro.org>
32764 * config/arm/arm.c (arm_vector_alignment_reachable): Check
32766 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
32768 2014-02-06 Richard Biener <rguenther@suse.de>
32770 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
32771 set_loop_copy and initialize_original_copy_tables.
32773 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
32775 * config/aarch64/aarch64-simd.md
32776 (aarch64_ashr_simddi): Change QI to SI.
32778 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
32779 Jakub Jelinek <jakub@redhat.com>
32781 PR middle-end/60013
32782 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
32785 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32787 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
32788 CODE_FOR_altivec_vpku[hw]um to
32789 CODE_FOR_altivec_vpku[hw]um_direct.
32790 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
32791 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
32792 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
32793 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
32795 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32797 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
32798 generation for -maltivec=be.
32799 (altivec_vsumsws): Simplify redundant test.
32801 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32803 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
32804 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
32805 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
32806 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
32807 gen_altivec_vpkuwum.
32808 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
32810 (altivec_vpks<VI_char>ss): Likewise.
32811 (altivec_vpks<VI_char>us): Likewise.
32812 (altivec_vpku<VI_char>us): Likewise.
32813 (altivec_vpku<VI_char>um): Likewise.
32814 (altivec_vpku<VI_char>um_direct): New (copy of
32815 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
32817 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
32818 target is little endian and -maltivec=be is not specified.
32819 (*altivec_vupkhs<VU_char>_direct): New (copy of
32820 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
32821 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
32822 target is little endian and -maltivec=be is not specified.
32823 (*altivec_vupkls<VU_char>_direct): New (copy of
32824 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
32825 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
32826 little endian and -maltivec=be is not specified.
32827 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
32828 little endian and -maltivec=be is not specified.
32830 2014-02-05 Richard Henderson <rth@redhat.com>
32833 * combine-stack-adj.c: Revert r206943.
32834 * sched-int.h (struct deps_desc): Add last_args_size.
32835 * sched-deps.c (init_deps): Initialize it.
32836 (sched_analyze_insn): Add OUTPUT dependencies between insns that
32837 contain REG_ARGS_SIZE notes.
32839 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
32841 * lto-cgraph.c (asm_nodes_output): Make global.
32842 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
32843 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
32844 (driver_handle_option): Handle OPT_fwpa.
32846 2014-02-05 Jakub Jelinek <jakub@redhat.com>
32849 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
32850 a comment typo and formatting issue. If odr_hash hasn't been
32851 created, return vNULL and set *completep to false.
32853 PR middle-end/57499
32854 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
32855 bb with no successors.
32857 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
32860 * doc/invoke.texi (-march): Clarify documentation for ARM.
32861 (-mtune): Likewise.
32864 2014-02-05 Richard Biener <rguenther@suse.de>
32866 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
32867 when not vectorizing because of too many alias checks.
32868 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32869 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
32871 2014-02-05 Nick Clifton <nickc@redhat.com>
32873 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
32874 accept extended registers in any mode when compiling for the MN10300.
32876 2014-02-05 Yury Gribov <y.gribov@samsung.com>
32878 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
32879 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
32880 sanitization attributes.
32881 (can_inline_edge_p): Likewise.
32882 (sanitize_attrs_match_for_inline_p): New function.
32884 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32886 * ipa-prop.c (detect_type_change): Shor circuit testing of
32887 type changes on THIS pointer.
32889 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
32892 * config/pa/pa.c (legitimize_tls_address): Return original address
32893 if not passed a SYMBOL_REF rtx.
32894 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
32896 (pa_emit_move_sequence): Simplify TLS source operands.
32897 (pa_legitimate_constant_p): Reject all TLS constants.
32898 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
32899 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
32901 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32903 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
32904 groups when we know they are controlled by LTO.
32905 * varasm.c (default_binds_local_p_1): If object is in other partition,
32906 it will be resolved locally.
32908 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
32910 * config/host-linux.c (linux_gt_pch_use_address): Don't
32911 use SSIZE_MAX because it is not always defined.
32913 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
32916 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
32917 threshold for pseudo splitting.
32918 (update_ebb_live_info): Process call argument hard registers and
32919 hard registers from insn definition too.
32920 (max_small_class_regs_num): New constant.
32921 (inherit_in_ebb): Update live hard regs through EBBs. Update
32922 reloads_num only for small register classes. Don't split for
32925 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
32928 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
32931 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32933 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
32934 visibility is safe.
32936 2014-02-04 Marek Polacek <polacek@redhat.com>
32938 * gdbinit.in (pel): Define.
32940 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
32942 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
32945 2014-02-04 Richard Biener <rguenther@suse.de>
32948 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
32949 in function context local.
32950 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
32951 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
32952 similar to LTO_imported_decl_ref.
32954 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32956 PR tree-optimization/60002
32957 * cgraphclones.c (build_function_decl_skip_args): Clear
32958 DECL_LANG_SPECIFIC.
32960 PR tree-optimization/60023
32961 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
32962 false to gsi_replace.
32963 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
32964 has been in some EH region and vec_stmt could throw, add
32965 vec_stmt into the same EH region.
32966 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
32967 has no lhs, ignore it.
32968 * internal-fn.c (expand_MASK_LOAD): Likewise.
32971 * tree-inline.c (copy_forbidden): Fail for
32972 __attribute__((optimize (0))) functions.
32975 * omp-low.c (simd_clone_struct_copy): If from->inbranch
32976 is set, copy one less argument.
32977 (expand_simd_clones): Don't subtract clone_info->inbranch
32978 from simd_clone_struct_alloc argument.
32980 PR rtl-optimization/57915
32981 * recog.c (simplify_while_replacing): If all unary/binary/relational
32982 operation arguments are constant, attempt to simplify those.
32984 PR middle-end/59261
32985 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
32986 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
32988 2014-02-04 Richard Biener <rguenther@suse.de>
32990 PR tree-optimization/60012
32991 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
32992 TBAA disambiguation to all DDRs.
32994 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32997 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
32998 (LINK_SPEC): Use it for -shared, -shared-libgcc.
33000 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33003 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33005 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33007 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33008 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33010 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33013 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33014 to figure out targets of polymorphic calls with known decl.
33015 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33016 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33017 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33018 (get_polymorphic_call_info): ... here.
33019 (get_polymorphic_call_info_from_invariant): New function.
33021 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33023 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33024 lookup via vtable pointer; check for type consistency
33025 and turn inconsitent facts into UNREACHABLE.
33026 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33027 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33028 type inconsistent querries; return UNREACHABLE instead.
33030 2014-02-03 Richard Henderson <rth@twiddle.net>
33033 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33034 already processed this node.
33035 (normalize_one_pred_1): Pass along mark_set.
33036 (normalize_one_pred): Create and destroy a pointer_set_t.
33037 (normalize_one_pred_chain): Likewise.
33039 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
33041 PR gcov-profile/58602
33042 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33044 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33047 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33048 -fno-devirtualize; try to devirtualize by the knowledge of
33049 virtual table pointer given by aggregate propagation.
33050 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33051 (ipa_print_node_jump_functions): Dump also offset that
33052 is relevant for polymorphic calls.
33053 (determine_known_aggregate_parts): Add arg_type parameter; use it
33054 instead of determining the type from pointer type.
33055 (ipa_compute_jump_functions_for_edge): Update call of
33056 determine_known_aggregate_parts.
33057 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33058 (gimple_get_virt_method_for_binfo): ... here; simplify using
33059 vtable_pointer_value_to_vtable.
33060 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33061 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33062 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33063 (vtable_pointer_value_to_vtable): Break out from ...; handle also
33065 (vtable_pointer_value_to_binfo): ... here.
33066 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33068 2014-02-03 Teresa Johnson <tejohnson@google.com>
33070 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33071 redef of outer loop index variable.
33073 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
33077 * doc/extend.texi (Function Attributes): Typo.
33079 2014-02-03 Cong Hou <congh@google.com>
33081 PR tree-optimization/60000
33082 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33083 if the vectorized statement is a store. A store statement can only
33084 appear at the end of pattern statements.
33086 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33088 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33089 (ix86_option_override_internal): Default long double to 64-bit for
33090 32-bit Bionic and to 128-bit for 64-bit Bionic.
33092 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33093 TARGET_LONG_DOUBLE_128 is true.
33094 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33096 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33097 (mlong-double-64): Negate -mlong-double-128.
33098 (mlong-double-128): New option.
33100 * config/i386/i386-c.c (ix86_target_macros): Define
33101 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
33103 * doc/invoke.texi: Document -mlong-double-128.
33105 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33107 PR rtl-optimization/60024
33108 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
33110 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
33112 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
33114 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33116 PR rtl-optimization/57662
33117 * sel-sched.c (code_motion_path_driver): Do not mark already not
33118 existing blocks in the visiting bitmap.
33120 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33122 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
33123 on the insn being emitted.
33125 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
33126 Will Deacon <will.deacon@arm.com>
33128 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
33130 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33132 * config/arm/arm-tables.opt: Regenerate.
33134 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33136 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33137 for vector types other than V16QImode.
33138 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33139 define_expand, and call altivec_expand_vec_perm_le when producing
33140 code with little endian element order.
33141 (*altivec_vperm_<mode>_internal): New insn having previous
33142 behavior of altivec_vperm_<mode>.
33143 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33144 altivec_expand_vec_perm_le when producing code with little endian
33146 (*altivec_vperm_<mode>_uns_internal): New insn having previous
33147 behavior of altivec_vperm_<mode>_uns.
33149 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33151 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33152 (altivec_vsumsws): Add handling for -maltivec=be with a little
33154 (altivec_vsumsws_direct): New.
33155 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33156 gen_altivec_vsumsws.
33158 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33160 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33161 vtable_pointer_value_to_binfo): New functions.
33162 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33163 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33165 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
33167 * config/nios2/nios2.md (load_got_register): Initialize GOT
33168 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33169 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33171 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33173 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33174 preserverd by passthrough, do not propagate the type.
33176 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33178 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33179 (mips_atomic_assign_expand_fenv): New function.
33180 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33182 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33184 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33185 (__builtin_mips_set_fcsr): Likewise.
33186 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33187 MIPS_USI_FTYPE_VOID.
33188 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33189 (mips16_expand_set_fcsr): Likewise.
33190 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33191 (mips16_set_fcsr_stub): Likewise.
33192 (mips16_get_fcsr_one_only_stub): New class.
33193 (mips16_set_fcsr_one_only_stub): Likewise.
33194 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33195 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33196 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33197 (hard_float): New availability predicate.
33198 (mips_builtins): Add get_fcsr and set_fcsr.
33199 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33200 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33201 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33202 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33203 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33206 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33208 * config/mips/mips.c (mips_one_only_stub): New class.
33209 (mips_need_mips16_rdhwr_p): Replace with...
33210 (mips16_rdhwr_stub): ...this new variable.
33211 (mips16_stub_call_address): New function.
33212 (mips16_rdhwr_one_only_stub): New class.
33213 (mips_expand_thread_pointer): Use mips16_stub_call_address.
33214 (mips_output_mips16_rdhwr): Delete.
33215 (mips_finish_stub): New function.
33216 (mips_code_end): Use it to handle rdhwr stubs.
33218 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
33221 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33222 when calculating size of integer atomic types.
33224 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
33226 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33228 2014-02-01 Jakub Jelinek <jakub@redhat.com>
33230 PR tree-optimization/60003
33231 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33232 * profile.c (branch_prob): Use gimple_call_builtin_p
33233 to check for BUILT_IN_SETJMP_RECEIVER.
33234 * tree-inline.c (copy_bb): Call notice_special_calls.
33236 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
33239 * lra-constraints.c (process_alt_operands): Update reload_sum only
33242 2014-01-31 Richard Henderson <rth@redhat.com>
33244 PR middle-end/60004
33245 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
33246 until after else_eh is processed.
33248 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33250 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
33251 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
33252 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
33253 in smmintrin.h, remove them.
33254 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
33255 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
33256 * config/i386/i386.md (ROUND_SAE): Fix value.
33257 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
33258 (const48_operand): New.
33259 * config/i386/subst.md (round), (round_expand): Use
33260 const_4_or_8_to_11_operand.
33261 (round_saeonly), (round_saeonly_expand): Use const48_operand.
33263 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33265 * config/i386/constraints.md (Yk): Swap meaning with k.
33266 * config/i386/i386.md (movhi_internal): Change Yk to k.
33267 (movqi_internal): Ditto.
33268 (*k<logic><mode>): Ditto.
33271 (kandn<mode>): Ditto.
33272 (*<code>hi_1): Ditto.
33273 (*<code>qi_1): Ditto.
33274 (kxnor<mode>): Ditto.
33275 (kortestzhi): Ditto.
33276 (kortestchi): Ditto.
33278 (*one_cmplhi2_1): Ditto.
33279 (*one_cmplqi2_1): Ditto.
33280 * config/i386/sse.md (): Change k to Yk.
33281 (avx512f_load<mode>_mask): Ditto.
33282 (avx512f_blendm<mode>): Ditto.
33283 (avx512f_store<mode>_mask): Ditto.
33284 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
33285 (avx512f_storedqu<mode>_mask): Ditto.
33286 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
33288 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
33289 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
33290 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
33291 (avx512f_maskcmp<mode>3): Ditto.
33292 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
33293 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
33294 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
33295 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
33296 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
33297 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
33298 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
33299 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
33300 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
33301 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
33302 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
33303 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
33304 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
33305 (vec_extract_lo_<mode>_maskm): Ditto.
33306 (vec_extract_hi_<mode>_maskm): Ditto.
33307 (avx512f_vternlog<mode>_mask): Ditto.
33308 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
33309 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
33310 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
33311 (avx512f_<code>v8div16qi2_mask): Ditto.
33312 (avx512f_<code>v8div16qi2_mask_store): Ditto.
33313 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
33314 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
33315 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
33316 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
33317 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33318 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33319 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33320 (*avx512pf_scatterpf<mode>df_mask): Ditto.
33321 (avx512cd_maskb_vec_dupv8di): Ditto.
33322 (avx512cd_maskw_vec_dupv16si): Ditto.
33323 (avx512f_vpermi2var<mode>3_maskz): Ditto.
33324 (avx512f_vpermi2var<mode>3_mask): Ditto.
33325 (avx512f_vpermi2var<mode>3_mask): Ditto.
33326 (avx512f_vpermt2var<mode>3_maskz): Ditto.
33327 (*avx512f_gathersi<mode>): Ditto.
33328 (*avx512f_gathersi<mode>_2): Ditto.
33329 (*avx512f_gatherdi<mode>): Ditto.
33330 (*avx512f_gatherdi<mode>_2): Ditto.
33331 (*avx512f_scattersi<mode>): Ditto.
33332 (*avx512f_scatterdi<mode>): Ditto.
33333 (avx512f_compress<mode>_mask): Ditto.
33334 (avx512f_compressstore<mode>_mask): Ditto.
33335 (avx512f_expand<mode>_mask): Ditto.
33336 * config/i386/subst.md (mask): Change k to Yk.
33337 (mask_scalar_merge): Ditto.
33340 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
33342 * doc/extend.texi (Vector Extensions): Document ?: in C++.
33344 2014-01-31 Richard Biener <rguenther@suse.de>
33346 PR middle-end/59990
33347 * builtins.c (fold_builtin_memory_op): Make sure to not
33348 use a floating-point mode or a boolean or enumeral type for
33349 the copy operation.
33351 2014-01-30 DJ Delorie <dj@redhat.com>
33353 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
33354 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
33355 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
33356 whenever main() has an epilogue.
33358 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33360 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
33361 unused variable "field".
33362 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
33363 (vsx_mergeh_<mode>): Likewise.
33364 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
33365 (altivec_vmrghh): Likewise.
33366 (altivec_vmrghw): Likewise.
33367 (altivec_vmrglb): Likewise.
33368 (altivec_vmrglh): Likewise.
33369 (altivec_vmrglw): Likewise.
33370 (altivec_vspltb): Add missing uses.
33371 (altivec_vsplth): Likewise.
33372 (altivec_vspltw): Likewise.
33373 (altivec_vspltsf): Likewise.
33375 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33378 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
33379 frame related instructions.
33381 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
33383 PR rtl-optimization/59959
33384 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
33385 any reload of register whose subreg is invalid.
33387 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33389 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
33390 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
33391 Add missing return type - void.
33393 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33395 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
33396 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
33397 remove element index adjustment for endian (now handled in vsx.md
33399 (altivec_expand_vec_perm_const): Use
33400 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
33401 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
33402 (vsx_xxspltw_<mode>): Adjust element index for little endian.
33403 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
33404 define_expand and a new define_insn *altivec_vspltb_internal;
33405 adjust for -maltivec=be on a little endian target.
33406 (altivec_vspltb_direct): New.
33407 (altivec_vsplth): Divide into a define_expand and a new
33408 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
33409 little endian target.
33410 (altivec_vsplth_direct): New.
33411 (altivec_vspltw): Divide into a define_expand and a new
33412 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
33413 little endian target.
33414 (altivec_vspltw_direct): New.
33415 (altivec_vspltsf): Divide into a define_expand and a new
33416 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
33417 a little endian target.
33419 2014-01-30 Richard Biener <rguenther@suse.de>
33421 PR tree-optimization/59993
33422 * tree-ssa-forwprop.c (associate_pointerplus): Check we
33423 can propagate form the earlier stmt and avoid the transform
33424 when the intermediate result is needed.
33426 2014-01-30 Alangi Derick <alangiderick@gmail.com>
33428 * README.Portability: Fix typo.
33430 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
33432 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
33433 comparison_operator with ordered_comparison_operator.
33435 2014-01-30 Nick Clifton <nickc@redhat.com>
33437 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
33438 Rename to mn10300_store_multiple_regs.
33439 * config/mn10300/mn10300.c: Likewise.
33440 * config/mn10300/mn10300.md (store_movm): Fix typo: call
33441 store_multiple_regs.
33442 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
33443 Call mn10300_store_multiple_regs.
33445 2014-01-30 Nick Clifton <nickc@redhat.com>
33446 DJ Delorie <dj@redhat.com>
33448 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
33449 %fp 2 to keep registers after it properly word-aligned.
33450 (rl78_alloc_physical_registers_umul): Handle the case where both
33451 input operands are the same.
33453 2014-01-30 Richard Biener <rguenther@suse.de>
33455 PR tree-optimization/59903
33456 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
33459 2014-01-30 Jason Merrill <jason@redhat.com>
33462 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
33465 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
33467 2014-01-30 Richard Biener <rguenther@suse.de>
33469 PR tree-optimization/59951
33470 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
33472 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
33475 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
33476 SFmode to DFmode case.
33478 2014-01-29 DJ Delorie <dj@redhat.com>
33480 * config/msp430/msp430.opt (-minrt): New.
33481 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33483 (ENDFILE_SPEC): Likewise.
33485 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
33487 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33488 (estimate_function_body_sizes): Use it.
33490 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
33493 * dwarf2out.c (is_cxx_auto): New.
33494 (is_base_type): Use it.
33495 (gen_type_die_with_usage): Likewise.
33497 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33499 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
33500 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33501 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33502 -maltivec=be with LE targets.
33503 (vsx_mergeh_<mode>): Likewise.
33504 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33505 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33506 (altivec_vmrghb): Replace with define_expand and new
33507 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33508 (altivec_vmrghb_direct): New define_insn.
33509 (altivec_vmrghh): Replace with define_expand and new
33510 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33511 (altivec_vmrghh_direct): New define_insn.
33512 (altivec_vmrghw): Replace with define_expand and new
33513 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33514 (altivec_vmrghw_direct): New define_insn.
33515 (*altivec_vmrghsf): Adjust for endianness.
33516 (altivec_vmrglb): Replace with define_expand and new
33517 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33518 (altivec_vmrglb_direct): New define_insn.
33519 (altivec_vmrglh): Replace with define_expand and new
33520 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33521 (altivec_vmrglh_direct): New define_insn.
33522 (altivec_vmrglw): Replace with define_expand and new
33523 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33524 (altivec_vmrglw_direct): New define_insn.
33525 (*altivec_vmrglsf): Adjust for endianness.
33526 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33527 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33528 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33529 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33530 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33531 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33532 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33533 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33535 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
33537 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33538 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33541 2014-01-29 Richard Biener <rguenther@suse.de>
33543 PR tree-optimization/58742
33544 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33545 associate_pointerplus_align.
33546 (associate_pointerplus_diff): New function.
33547 (associate_pointerplus): Likewise. Call associate_pointerplus_align
33548 and associate_pointerplus_diff.
33550 2014-01-29 Richard Biener <rguenther@suse.de>
33552 * lto-streamer.h (LTO_major_version): Bump to 3.
33553 (LTO_minor_version): Reset to 0.
33555 2014-01-29 Renlin Li <Renlin.Li@arm.com>
33557 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33558 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33559 (arm_file_start): Generate correct asm header for armv7ve.
33560 * config/arm/bpabi.h: Add multilib support for armv7ve.
33561 * config/arm/driver-arm.c: Change the architectures of cortex-a7
33562 and cortex-a15 to armv7ve.
33563 * config/arm/t-aprofile: Add multilib support for armv7ve.
33564 * doc/invoke.texi: Document -march=armv7ve.
33566 2014-01-29 Richard Biener <rguenther@suse.de>
33568 PR tree-optimization/58742
33569 * tree-ssa-forwprop.c (associate_plusminus): Return true
33570 if we changed sth, defer EH cleanup to ...
33571 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
33572 (simplify_mult): New function.
33574 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33576 PR middle-end/59917
33577 PR tree-optimization/59920
33578 * tree.c (build_common_builtin_nodes): Remove
33579 __builtin_setjmp_dispatcher initialization.
33580 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
33581 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
33582 instead of gsi_after_labels + manually skipping debug stmts.
33583 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
33584 ignore bbs with IFN_ABNORMAL_DISPATCHER.
33585 * tree-inline.c (copy_edges_for_bb): Remove
33586 can_make_abnormal_goto argument, instead add abnormal_goto_dest
33587 argument. Ignore computed_goto_p stmts. Don't call
33588 make_abnormal_goto_edges. If a call might need abnormal edges
33589 for non-local gotos, see if it already has an edge to
33590 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
33591 with true argument, don't do anything then, otherwise add
33592 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
33593 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
33595 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
33596 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33597 (lower_stmt): Don't set data->calls_builtin_setjmp.
33598 (lower_builtin_setjmp): Adjust comment.
33599 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33600 * tree-cfg.c (found_computed_goto): Remove.
33601 (factor_computed_gotos): Remove.
33602 (make_goto_expr_edges): Return bool, true for computed gotos.
33603 Don't call make_abnormal_goto_edges.
33604 (build_gimple_cfg): Don't set found_computed_goto, don't call
33605 factor_computed_gotos.
33606 (computed_goto_p): No longer static.
33607 (make_blocks): Don't set found_computed_goto.
33608 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33609 (make_edges): If make_goto_expr_edges returns true, push bb
33610 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33611 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33612 vector. Record mapping between bbs and OpenMP regions if there
33613 are any, adjust make_gimple_omp_edges caller. Call
33614 handle_abnormal_edges.
33615 (make_abnormal_goto_edges): Remove.
33616 * tree-cfg.h (make_abnormal_goto_edges): Remove.
33617 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33618 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33619 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33620 * internal-fn.def (ABNORMAL_DISPATCHER): New.
33621 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33622 filling *region also set *region_idx to (*region)->entry->index.
33625 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
33626 For REGs set ORIGINAL_REGNO.
33628 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
33630 * doc/md.texi: Mention that a target shouldn't implement
33631 vec_widen_(s|u)mul_even/odd pair if it is less efficient
33634 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33636 PR tree-optimization/59594
33637 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
33638 a copy of the datarefs vector rather than the vector itself.
33640 2014-01-28 Jason Merrill <jason@redhat.com>
33643 * dwarf2out.c (auto_die): New static.
33644 (gen_type_die_with_usage): Handle C++1y 'auto'.
33645 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
33648 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
33651 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
33652 (SPEC_X32): Likewise.
33653 (SPEC_64): Likewise.
33654 * config/i386/i386.c (ix86_option_override_internal): Turn off
33655 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
33657 (x86_file_start): Output .code16gcc for TARGET_16BIT.
33658 * config/i386/i386.h (TARGET_16BIT): New macro.
33659 (TARGET_16BIT_P): Likewise.
33660 * config/i386/i386.opt: Add m16.
33661 * doc/invoke.texi: Document -m16.
33663 2014-01-28 Jakub Jelinek <jakub@redhat.com>
33665 PR preprocessor/59935
33666 * input.c (location_get_source_line): Bail out on when line number
33667 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
33669 2014-01-28 Richard Biener <rguenther@suse.de>
33671 PR tree-optimization/58742
33672 * tree-ssa-forwprop.c (associate_plusminus): Handle
33673 pointer subtraction of the form (T)(P + A) - (T)P.
33675 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33677 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
33680 2014-01-28 Richard Biener <rguenther@suse.de>
33683 2014-01-28 Richard Biener <rguenther@suse.de>
33685 PR rtl-optimization/45364
33686 PR rtl-optimization/59890
33687 * var-tracking.c (local_get_addr_clear_given_value): Handle
33688 already cleared slot.
33689 (val_reset): Handle not allocated local_get_addr_cache.
33690 (vt_find_locations): Use post-order on the inverted CFG.
33692 2014-01-28 Richard Biener <rguenther@suse.de>
33694 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
33696 2014-01-28 Richard Biener <rguenther@suse.de>
33698 PR rtl-optimization/45364
33699 PR rtl-optimization/59890
33700 * var-tracking.c (local_get_addr_clear_given_value): Handle
33701 already cleared slot.
33702 (val_reset): Handle not allocated local_get_addr_cache.
33703 (vt_find_locations): Use post-order on the inverted CFG.
33705 2014-01-28 Alan Modra <amodra@gmail.com>
33707 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
33708 * configure.ac <recursive call for build != host>: Define
33709 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
33710 and LD_FOR_BUILD too.
33711 * configure: Regenerate.
33713 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
33715 * config/i386/i386.c (get_builtin_code_for_version): Separate
33716 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
33717 Broadwell from Haswell.
33719 2014-01-27 Steve Ellcey <sellcey@mips.com>
33721 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33722 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
33723 * config/mips/mips.c (mips_option_override): Change setting
33725 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
33726 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
33727 Change from Mask to Var.
33729 2014-01-27 Jeff Law <law@redhat.com>
33731 * ipa-inline.c (inline_small_functions): Fix typo.
33733 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
33735 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
33736 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
33737 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
33738 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
33739 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
33740 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
33741 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
33742 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
33743 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
33744 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
33745 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
33746 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
33747 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
33748 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
33749 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
33750 (_mm512_storeu_epi64): Ditto.
33751 (_mm512_cmpge_epi32_mask): Ditto.
33752 (_mm512_cmpge_epu32_mask): Ditto.
33753 (_mm512_cmpge_epi64_mask): Ditto.
33754 (_mm512_cmpge_epu64_mask): Ditto.
33755 (_mm512_cmple_epi32_mask): Ditto.
33756 (_mm512_cmple_epu32_mask): Ditto.
33757 (_mm512_cmple_epi64_mask): Ditto.
33758 (_mm512_cmple_epu64_mask): Ditto.
33759 (_mm512_cmplt_epi32_mask): Ditto.
33760 (_mm512_cmplt_epu32_mask): Ditto.
33761 (_mm512_cmplt_epi64_mask): Ditto.
33762 (_mm512_cmplt_epu64_mask): Ditto.
33763 (_mm512_cmpneq_epi32_mask): Ditto.
33764 (_mm512_cmpneq_epu32_mask): Ditto.
33765 (_mm512_cmpneq_epi64_mask): Ditto.
33766 (_mm512_cmpneq_epu64_mask): Ditto.
33767 (_mm512_expand_pd): Ditto.
33768 (_mm512_expand_ps): Ditto.
33769 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
33770 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
33771 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
33772 * config/i386/i386.c (ix86_builtins): Add
33773 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
33774 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
33775 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
33776 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
33777 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
33778 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
33779 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
33780 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
33781 IX86_BUILTIN_PMOVUSQW512_MEM.
33782 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
33783 __builtin_ia32_pmovsqd512mem_mask,
33784 __builtin_ia32_pmovqd512mem_mask,
33785 __builtin_ia32_pmovusqw512mem_mask,
33786 __builtin_ia32_pmovsqw512mem_mask,
33787 __builtin_ia32_pmovqw512mem_mask,
33788 __builtin_ia32_pmovusdw512mem_mask,
33789 __builtin_ia32_pmovsdw512mem_mask,
33790 __builtin_ia32_pmovdw512mem_mask,
33791 __builtin_ia32_pmovqb512mem_mask,
33792 __builtin_ia32_pmovusqb512mem_mask,
33793 __builtin_ia32_pmovsqb512mem_mask,
33794 __builtin_ia32_pmovusdb512mem_mask,
33795 __builtin_ia32_pmovsdb512mem_mask,
33796 __builtin_ia32_pmovdb512mem_mask.
33797 (bdesc_args): Add __builtin_ia32_expanddf512,
33798 __builtin_ia32_expandsf512.
33799 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
33800 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
33801 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
33802 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
33803 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
33804 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
33805 (avx512f_<code>v8div16qi2_mask_store): This.
33806 (avx512f_expand<mode>): New.
33808 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
33810 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
33812 (_mm512_mask_prefetch_i64gather_pd): Ditto.
33813 (_mm512_prefetch_i32scatter_pd): Ditto.
33814 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
33815 (_mm512_prefetch_i64scatter_pd): Ditto.
33816 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
33817 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
33818 (_mm512_mask_prefetch_i64gather_ps): Ditto.
33819 (_mm512_prefetch_i32scatter_ps): Ditto.
33820 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
33821 (_mm512_prefetch_i64scatter_ps): Ditto.
33822 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
33823 * config/i386/i386-builtin-types.def: Define
33824 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
33825 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
33826 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
33827 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
33828 IX86_BUILTIN_SCATTERPFQPD.
33829 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
33830 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
33831 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
33832 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
33833 __builtin_ia32_scatterpfqps.
33834 (ix86_expand_builtin): Expand new built-ins.
33835 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
33836 fix memory access data type.
33837 (*avx512pf_gatherpf<mode>_mask): Ditto.
33838 (*avx512pf_gatherpf<mode>): Ditto.
33839 (avx512pf_scatterpf<mode>): Ditto.
33840 (*avx512pf_scatterpf<mode>_mask): Ditto.
33841 (*avx512pf_scatterpf<mode>): Ditto.
33842 (GATHER_SCATTER_SF_MEM_MODE): New.
33843 (avx512pf_gatherpf<mode>df): Ditto.
33844 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33845 (*avx512pf_scatterpf<mode>df): Ditto.
33847 2014-01-27 Jakub Jelinek <jakub@redhat.com>
33850 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
33851 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
33854 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
33856 * common/config/arm/arm-common.c
33857 (arm_rewrite_mcpu): Handle multiple names.
33859 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33861 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
33863 * gimple-builder.h (create_gimple_tmp): Delete.
33865 2014-01-27 Christian Bruel <christian.bruel@st.com>
33867 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
33870 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
33872 * config/pa/pa.md (call): Generate indirect long calls to non-local
33873 functions when outputing 32-bit code.
33874 (call_value): Likewise except for special call to buggy powf function.
33876 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
33877 portable runtime and PIC indirect calls.
33878 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
33879 and PIC call sequences. Use ldo instead of blr to set return register
33880 in PIC call sequence.
33882 2014-01-25 Walter Lee <walt@tilera.com>
33884 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
33885 avoid clobbering a live register.
33887 2014-01-25 Walter Lee <walt@tilera.com>
33889 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
33890 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
33891 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
33892 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
33894 2014-01-25 Walter Lee <walt@tilera.com>
33896 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
33897 arguments on even registers.
33898 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
33900 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
33901 (BIGGEST_ALIGNMENT): Ditto.
33902 (BIGGEST_FIELD_ALIGNMENT): Ditto.
33904 2014-01-25 Walter Lee <walt@tilera.com>
33906 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
33907 insns before bundling.
33908 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
33910 2014-01-25 Walter Lee <walt@tilera.com>
33912 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
33913 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
33914 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
33916 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
33918 * config/mips/constraints.md (kl): Delete.
33919 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
33920 define expands, using...
33921 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
33922 instructions for MIPS16.
33923 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
33924 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
33926 2014-01-25 Walter Lee <walt@tilera.com>
33928 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
33932 2014-01-25 Walter Lee <walt@tilera.com>
33934 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
33935 (TARGET_EXPAND_TO_RTL_HOOK): Define.
33937 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
33939 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
33942 2014-01-25 Jakub Jelinek <jakub@redhat.com>
33944 * print-rtl.c (in_call_function_usage): New var.
33945 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
33946 EXPR_LIST mode as mode and not as reg note name.
33948 PR middle-end/59561
33949 * cfgloopmanip.c (copy_loop_info): If
33950 loop->warned_aggressive_loop_optimizations, make sure
33951 the flag is set in target loop too.
33953 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
33955 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
33957 * builtins.def: Likewise.
33958 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
33959 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
33960 * ira.c (ira_setup_eliminable_regset): Likewise.
33961 * omp-low.c (gate_expand_omp): Likewise.
33962 (execute_lower_omp): Likewise.
33963 (diagnose_sb_0): Likewise.
33964 (gate_diagnose_omp_blocks): Likewise.
33965 (simd_clone_clauses_extract): Likewise.
33968 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33970 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
33971 correction for little endian...
33972 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
33975 2014-01-24 Jeff Law <law@redhat.com>
33977 PR tree-optimization/59919
33978 * tree-vrp.c (find_assert_locations_1): Do not register asserts
33979 for non-returning calls.
33981 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
33983 * common/config/aarch64/aarch64-common.c
33984 (aarch64_rewrite_mcpu): Handle multiple names.
33985 * config/aarch64/aarch64.h
33986 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33988 2014-01-24 Dodji Seketeli <dodji@redhat.com>
33990 * input.c (add_file_to_cache_tab): Handle the case where fopen
33993 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
33996 * config/i386/i386.md (pushsf splitter): Get stack adjustment
33997 from push operand if code of push isn't PRE_DEC.
33999 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
34002 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34003 -mquad-memory-atomic. Update -mquad-memory documentation to say
34004 it is only used for non-atomic loads/stores.
34006 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34007 -mquad-memory or -mquad-memory-atomic switches.
34009 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34010 -mquad-memory-atomic to ISA 2.07 support.
34012 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34013 to separate support of normal quad word memory operations (ldq, stq)
34014 from the atomic quad word memory operations.
34016 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34017 support to separate non-atomic quad word operations from atomic
34018 quad word operations. Disable non-atomic quad word operations in
34019 little endian mode so that we don't have to swap words after the
34020 load and before the store.
34021 (quad_load_store_p): Add comment about atomic quad word support.
34022 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34023 options printed with -mdebug=reg.
34025 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34026 -mquad-memory-atomic as the test for whether we have quad word
34027 atomic instructions.
34028 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34029 or -mp8-vector are used, allow byte/half-word atomic operations.
34031 * config/rs6000/sync.md (load_lockedti): Insure that the address
34032 is a proper indexed or indirect address for the lqarx instruction.
34033 On little endian systems, swap the hi/lo registers after the lqarx
34035 (load_lockedpti): Use indexed_or_indirect_operand predicate to
34036 insure the address is valid for the lqarx instruction.
34037 (store_conditionalti): Insure that the address is a proper indexed
34038 or indirect address for the stqcrx. instruction. On little endian
34039 systems, swap the hi/lo registers before doing the stqcrx.
34041 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34042 insure the address is valid for the stqcrx. instruction.
34044 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34045 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34046 type of quad memory support is available.
34048 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
34050 PR regression/59915
34051 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34052 there is a danger of looping.
34054 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
34056 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34057 force flag_ira_loop_pressure if set via command line.
34059 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34061 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34062 (ashr_simd): New builtin handling DI mode.
34063 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34064 (aarch64_sshr_simddi): New match pattern.
34065 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34066 (vshrd_n_s64): Likewise.
34067 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34069 2014-01-23 Nick Clifton <nickc@redhat.com>
34071 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34072 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34073 favour of mcu specific scripts.
34074 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34077 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34078 Alex Velenko <Alex.Velenko@arm.com>
34080 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34081 (vaddv_s16): Likewise.
34082 (vaddv_s32): Likewise.
34083 (vaddv_u8): Likewise.
34084 (vaddv_u16): Likewise.
34085 (vaddv_u32): Likewise.
34086 (vaddvq_s8): Likewise.
34087 (vaddvq_s16): Likewise.
34088 (vaddvq_s32): Likewise.
34089 (vaddvq_s64): Likewise.
34090 (vaddvq_u8): Likewise.
34091 (vaddvq_u16): Likewise.
34092 (vaddvq_u32): Likewise.
34093 (vaddvq_u64): Likewise.
34094 (vaddv_f32): Likewise.
34095 (vaddvq_f32): Likewise.
34096 (vaddvq_f64): Likewise.
34097 (vmaxv_f32): Likewise.
34098 (vmaxv_s8): Likewise.
34099 (vmaxv_s16): Likewise.
34100 (vmaxv_s32): Likewise.
34101 (vmaxv_u8): Likewise.
34102 (vmaxv_u16): Likewise.
34103 (vmaxv_u32): Likewise.
34104 (vmaxvq_f32): Likewise.
34105 (vmaxvq_f64): Likewise.
34106 (vmaxvq_s8): Likewise.
34107 (vmaxvq_s16): Likewise.
34108 (vmaxvq_s32): Likewise.
34109 (vmaxvq_u8): Likewise.
34110 (vmaxvq_u16): Likewise.
34111 (vmaxvq_u32): Likewise.
34112 (vmaxnmv_f32): Likewise.
34113 (vmaxnmvq_f32): Likewise.
34114 (vmaxnmvq_f64): Likewise.
34115 (vminv_f32): Likewise.
34116 (vminv_s8): Likewise.
34117 (vminv_s16): Likewise.
34118 (vminv_s32): Likewise.
34119 (vminv_u8): Likewise.
34120 (vminv_u16): Likewise.
34121 (vminv_u32): Likewise.
34122 (vminvq_f32): Likewise.
34123 (vminvq_f64): Likewise.
34124 (vminvq_s8): Likewise.
34125 (vminvq_s16): Likewise.
34126 (vminvq_s32): Likewise.
34127 (vminvq_u8): Likewise.
34128 (vminvq_u16): Likewise.
34129 (vminvq_u32): Likewise.
34130 (vminnmv_f32): Likewise.
34131 (vminnmvq_f32): Likewise.
34132 (vminnmvq_f64): Likewise.
34134 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34136 * config/aarch64/aarch64-simd.md
34137 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34138 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34139 (*aarch64_mul3_elt<mode>): Likewise.
34140 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34141 (*aarch64_mul3_elt_to_64v2df): Likewise.
34142 (*aarch64_mla_elt<mode>): Likewise.
34143 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34144 (*aarch64_mls_elt<mode>): Likewise.
34145 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34146 (*aarch64_fma4_elt<mode>): Likewise.
34147 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34148 (*aarch64_fma4_elt_to_64v2df): Likewise.
34149 (*aarch64_fnma4_elt<mode>): Likewise.
34150 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34151 (*aarch64_fnma4_elt_to_64v2df): Likewise.
34152 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34153 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34154 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34155 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34156 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34157 (aarch64_sqdmull_lane<mode>_internal): Likewise.
34158 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34160 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
34162 * config/aarch64/aarch64-simd.md
34163 (aarch64_be_checked_get_lane<mode>): New define_expand.
34164 * config/aarch64/aarch64-simd-builtins.def
34165 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34166 New builtin definition.
34167 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34168 Use new safe be builtin.
34170 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34172 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34174 (aarch64_be_st1<mode>): Likewise.
34175 (aarch_ld1<VALL:mode>): Define_expand modified.
34176 (aarch_st1<VALL:mode>): Likewise.
34177 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34178 (UNSPEC_ST1): Likewise.
34180 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
34182 * config/microblaze/microblaze.md: Add trap insn and attribute
34184 2014-01-23 Dodji Seketeli <dodji@redhat.com>
34186 PR preprocessor/58580
34187 * input.h (location_get_source_line): Take an additional line_size
34189 (void diagnostics_file_cache_fini): Declare new function.
34190 * input.c (struct fcache): New type.
34191 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34192 New static constants.
34193 (diagnostic_file_cache_init, total_lines_num)
34194 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34195 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34196 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34197 (get_next_line, read_next_line, goto_next_line, read_line_num):
34198 New static function definitions.
34199 (diagnostic_file_cache_fini): New function.
34200 (location_get_source_line): Take an additional output line_len
34201 parameter. Re-write using lookup_or_add_file_to_cache_tab and
34203 * diagnostic.c (diagnostic_finish): Call
34204 diagnostic_file_cache_fini.
34205 (adjust_line): Take an additional input parameter for the length
34206 of the line, rather than calculating it with strlen.
34207 (diagnostic_show_locus): Adjust the use of
34208 location_get_source_line and adjust_line with respect to their new
34209 signature. While displaying a line now, do not stop at the first
34210 null byte. Rather, display the zero byte as a space and keep
34211 going until we reach the size of the line.
34212 * Makefile.in: Add vec.o to OBJS-libcommon
34214 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34215 Ilya Tocar <ilya.tocar@intel.com>
34217 * config/i386/avx512fintrin.h (_mm512_kmov): New.
34218 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34219 (__builtin_ia32_kmov16): Ditto.
34220 * config/i386/i386.md (UNSPEC_KMOV): New.
34223 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34225 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34226 (_mm512_storeu_si512): Ditto.
34228 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
34231 * rtl.h (get_referenced_operands): Declare.
34232 * recog.c (get_referenced_operands): New function.
34233 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
34234 operands have been referenced when recording LO_SUM references.
34236 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
34238 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
34240 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34242 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
34243 Enable for generic and recent AMD targets.
34245 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34247 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
34248 ARG_SIZE note when adjustment was eliminated.
34250 2014-01-22 Jeff Law <law@redhat.com>
34252 PR tree-optimization/59597
34253 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
34254 in file. Accept new argument REGISTERING and use it to modify
34255 dump output appropriately.
34256 (register_jump_thread): Corresponding changes.
34257 (mark_threaded_blocks): Reinstate code to cancel unprofitable
34258 thread paths involving joiner blocks. Add code to dump cancelled
34259 jump threading paths.
34261 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
34263 PR rtl-optimization/59477
34264 * lra-constraints.c (inherit_in_ebb): Process call for living hard
34265 regs. Update reloads_num and potential_reload_hard_regs for all insns.
34267 2014-01-22 Tom Tromey <tromey@redhat.com>
34269 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
34271 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
34273 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34275 PR rtl-optimization/59896
34276 * lra-constraints.c (process_alt_operands): Check unused note for
34277 matched operands of insn with no output reloads.
34279 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
34281 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
34282 (mips_move_from_gpr_cost): Likewise.
34284 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34286 PR rtl-optimization/59858
34287 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
34288 ira_class_hard_regs_num.
34289 (process_alt_operands): Increase reject for dying matched operand.
34291 2014-01-21 Jakub Jelinek <jakub@redhat.com>
34294 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
34295 smaller than size, perform several stores or loads and stores
34296 at dst + count - size to store or copy all of size bytes, rather
34297 than just last modesize bytes.
34299 2014-01-20 DJ Delorie <dj@redhat.com>
34301 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
34302 that CLOBBERs are REGs before propogating their values.
34304 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
34306 PR middle-end/59789
34307 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
34308 (cgraph_inline_failed_type): New function.
34309 * cgraph.h (DEFCIFCODE): Add type.
34310 (cgraph_inline_failed_type_t): New enum.
34311 (cgraph_inline_failed_type): New prototype.
34312 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
34313 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34314 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
34315 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
34316 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
34317 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
34318 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
34319 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
34320 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
34321 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
34322 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
34323 OPTIMIZATION_MISMATCH.
34324 * tree-inline.c (expand_call_inline): Emit errors during
34325 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
34327 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34330 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
34331 mode attribute in insn output.
34333 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
34335 * output.h (output_constant): Delete.
34336 * varasm.c (output_constant): Make private.
34338 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
34340 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
34342 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34344 PR middle-end/59860
34345 * tree.h (fold_builtin_strcat): New prototype.
34346 * builtins.c (fold_builtin_strcat): No longer static. Add len
34347 argument, if non-NULL, don't call c_strlen. Optimize
34348 directly into __builtin_memcpy instead of __builtin_strcpy.
34349 (fold_builtin_2): Adjust fold_builtin_strcat caller.
34350 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
34352 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34354 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34355 for SImode_address_operand operands, having only a REG argument.
34357 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
34359 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34360 loader name using mbig-endian.
34361 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
34363 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34365 * doc/invoke.texi (-march): Clarify documentation for AArch64.
34366 (-mtune): Likewise.
34369 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
34371 * config/aarch64/aarch64-protos.h
34372 (aarch64_cannot_change_mode_class_ptr): Declare.
34373 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
34374 aarch64_cannot_change_mode_class_ptr): New.
34375 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
34376 backend hook aarch64_cannot_change_mode_class.
34378 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34380 * common/config/aarch64/aarch64-common.c
34381 (aarch64_handle_option): Don't handle any option order logic here.
34382 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
34383 selected_cpu, warn on architecture version mismatch.
34384 (aarch64_override_options): Fix parsing order for option strings.
34386 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34387 Iain Sandoe <iain@codesourcery.com>
34390 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
34391 warning. Amend comment to reflect current functionality.
34393 2014-01-20 Richard Biener <rguenther@suse.de>
34395 PR middle-end/59860
34396 * builtins.c (fold_builtin_strcat): Remove case better handled
34397 by tree-ssa-strlen.c.
34399 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
34401 * config/aarch64/aarch64.opt
34402 (mcpu, march, mtune): Make case-insensitive.
34404 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34407 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34408 if operands[1] is a REG or ZERO_EXTEND of a REG.
34410 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
34412 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
34414 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
34416 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
34417 long non-pic millicode calls.
34419 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34421 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
34423 2014-01-19 Kito Cheng <kito@0xlab.org>
34425 * builtins.c (expand_movstr): Check movstr expand done or fail.
34427 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34428 H.J. Lu <hongjiu.lu@intel.com>
34431 * config/i386/i386.md (*lea<mode>): Zero-extend return register
34432 to DImode for zero-extended addresses.
34434 2014-01-19 Jakub Jelinek <jakub@redhat.com>
34436 PR rtl-optimization/57763
34437 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
34438 on the new indirect jump_insn and increment LABEL_NUSES (label).
34440 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
34444 * config.gcc (x86_archs): New variable.
34445 (x86_64_archs): Likewise.
34446 (x86_cpus): Likewise.
34447 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
34448 --with-arch/--with-cpu= options.
34449 Support --with-arch=/--with-cpu={nehalem,westmere,
34450 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
34452 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34454 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
34455 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
34457 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34459 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
34461 2014-01-18 Jakub Jelinek <jakub@redhat.com>
34464 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
34465 clear cpp_get_options (parse_in)->warn_unused_macros for
34466 ix86_target_macros_internal with cpp_define.
34468 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
34470 * jump.c (delete_related_insns): Keep (use (insn))s.
34471 * reorg.c (redundant_insn): Check for barriers too.
34473 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34475 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
34477 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
34479 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
34480 call to $$dyncall when TARGET_LONG_CALLS is true.
34482 2014-01-17 Jeff Law <law@redhat.com>
34484 * ree.c (combine_set_extension): Temporarily disable test for
34485 changing number of hard registers.
34487 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34489 PR middle-end/58125
34490 * ipa-inline-analysis.c (inline_free_summary):
34491 Do not free summary of aliases.
34493 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34495 PR middle-end/59706
34496 * gimplify.c (gimplify_expr): Use create_tmp_var
34497 instead of create_tmp_var_raw. If cond doesn't have
34498 integral type, don't add the IFN_ANNOTATE builtin at all.
34500 2014-01-17 Martin Jambor <mjambor@suse.cz>
34503 * ipa-cp.c (prev_edge_clone): New variable.
34504 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34505 Also resize prev_edge_clone vector.
34506 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34507 (ipcp_edge_removal_hook): New function.
34508 (ipcp_driver): Register ipcp_edge_removal_hook.
34510 2014-01-17 Andrew Pinski <apinski@cavium.com>
34511 Steve Ellcey <sellcey@mips.com>
34514 * config/mips/mips.c (mips_print_operand): Check operand mode instead
34517 2014-01-17 Jeff Law <law@redhat.com>
34519 PR middle-end/57904
34520 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34521 so that pass_ccp runs first.
34523 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34525 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34526 (ix86_adjust_cost): Use !TARGET_XXX.
34527 (do_reorder_for_imul): Likewise.
34528 (swap_top_of_ready_list): Likewise.
34529 (ix86_sched_reorder): Likewise.
34531 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34533 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34534 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
34535 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
34536 (intel_memset): New. Duplicate slm_memset.
34537 (intel_cost): New. Duplicate slm_cost.
34538 (m_INTEL): New macro.
34539 (processor_target_table): Add "intel".
34540 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34541 with PROCESSOR_INTEL for "intel".
34542 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
34543 PROCESSOR_SILVERMONT.
34544 (ix86_issue_rate): Likewise.
34545 (ix86_adjust_cost): Likewise.
34546 (ia32_multipass_dfa_lookahead): Likewise.
34547 (swap_top_of_ready_list): Likewise.
34548 (ix86_sched_reorder): Likewise.
34549 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34550 instead of TARGET_OPT_AGU.
34551 * config/i386/i386.h (TARGET_INTEL): New.
34552 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34553 (processor_type): Add PROCESSOR_INTEL.
34554 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34555 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34557 2014-01-17 Marek Polacek <polacek@redhat.com>
34560 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34563 2014-01-17 Richard Biener <rguenther@suse.de>
34565 PR tree-optimization/46590
34566 * opts.c (default_options_table): Add entries for
34567 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34568 all enabled at -O1 but not for -Og.
34569 * common.opt (fbranch-count-reg): Remove Init(1).
34570 (fmove-loop-invariants): Likewise.
34571 (ftree-pta): Likewise.
34573 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34575 * config/i386/i386.c (ix86_data_alignment): For compatibility with
34576 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34577 decls to at least the GCC 4.8 used alignments.
34580 * tree-nested.c (convert_nonlocal_reference_stmt,
34581 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
34582 of GIMPLE_BIND stmts, adjust associated decls.
34584 2014-01-17 Richard Biener <rguenther@suse.de>
34586 PR tree-optimization/46590
34587 * vec.h (vec<>::bseach): New member function implementing
34588 binary search according to C89 bsearch.
34589 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
34590 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
34591 bitmap pointer again. Make accesses_in_loop a flat array.
34592 (mem_ref_obstack): New global.
34593 (outermost_indep_loop): Adjust for mem_ref->stored changes.
34594 (mark_ref_stored): Likewise.
34595 (ref_indep_loop_p_2): Likewise.
34596 (set_ref_stored_in_loop): New helper function.
34597 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34598 (memref_free): Adjust.
34599 (record_mem_ref_loc): Simplify.
34600 (gather_mem_refs_stmt): Adjust.
34601 (sort_locs_in_loop_postorder_cmp): New function.
34602 (analyze_memory_references): Sort accesses_in_loop after
34603 loop postorder number.
34604 (find_ref_loc_in_loop_cmp): New function.
34605 (for_all_locs_in_loop): Find relevant cluster of locs in
34606 accesses_in_loop and iterate without recursion.
34607 (execute_sm): Avoid uninit warning.
34608 (struct ref_always_accessed): Simplify.
34609 (ref_always_accessed::operator ()): Likewise.
34610 (ref_always_accessed_p): Likewise.
34611 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34612 loop postorder numbers here.
34613 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34616 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34619 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34620 on decls for which assemble_alias has been called.
34622 2014-01-17 Nick Clifton <nickc@redhat.com>
34624 * config/msp430/msp430.opt: (mcpu): New option.
34625 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
34626 (msp430_option_override): Parse target_cpu. If the MCU name
34627 matches a generic string, clear target_mcu.
34628 (msp430_attr): Allow numeric interrupt values up to 63.
34629 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
34630 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
34632 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
34634 * config/msp430/msp430.md (popm): Use %J rather than %I.
34635 (addsi3): Use msp430_nonimmediate_operand for operand 2.
34636 (addhi_cy_i): Use immediate_operand for operand 2.
34637 * doc/invoke.texi: Document -mcpu option.
34639 2014-01-17 Richard Biener <rguenther@suse.de>
34641 PR rtl-optimization/38518
34642 * df.h (df_analyze_loop): Declare.
34643 * df-core.c: Include cfgloop.h.
34644 (df_analyze_1): Split out main part of df_analyze.
34645 (df_analyze): Adjust.
34646 (loop_inverted_post_order_compute): New function.
34647 (loop_post_order_compute): Likewise.
34648 (df_analyze_loop): New function avoiding whole-function
34649 postorder computes.
34650 * loop-invariant.c (find_defs): Use df_analyze_loop.
34651 (find_invariants): Adjust.
34652 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
34654 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
34656 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
34657 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
34659 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
34661 * ipa-ref.c (ipa_remove_stmt_references): Fix references
34662 traversal when removing references.
34664 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
34667 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
34669 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
34671 PR middle-end/56791
34672 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
34673 pushing a reload for an autoinc when we had previously reloaded an
34674 inner part of the address.
34676 2014-01-16 Jakub Jelinek <jakub@redhat.com>
34678 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
34680 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
34681 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
34682 when not giving up or versioning for alias only because of
34684 (vect_analyze_data_ref_dependences): Set to true.
34685 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
34687 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
34688 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
34691 PR middle-end/58344
34692 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
34695 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
34696 operand 0 predicate for gathers, use a new pseudo as subtarget.
34698 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34700 PR middle-end/59609
34701 * lra-constraints.c (process_alt_operands): Add printing debug info.
34702 Check absence of input/output reloads for matched operands too.
34704 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34706 PR rtl-optimization/59835
34707 * ira.c (ira_init_register_move_cost): Increase cost for
34710 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
34712 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
34714 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
34717 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
34718 non-register objects. Use gen_(high/low)part more consistently.
34721 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
34724 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
34725 endian support, remove tests for WORDS_BIG_ENDIAN.
34726 (p8_mfvsrd_3_<mode>): Likewise.
34727 (reload_gpr_from_vsx<mode>): Likewise.
34728 (reload_gpr_from_vsxsf): Likewise.
34729 (p8_mfvsrd_4_disf): Likewise.
34731 2014-01-16 Richard Biener <rguenther@suse.de>
34733 PR rtl-optimization/46590
34734 * lcm.c (compute_antinout_edge): Use postorder iteration.
34735 (compute_laterin): Use inverted postorder iteration.
34737 2014-01-16 Nick Clifton <nickc@redhat.com>
34739 PR middle-end/28865
34740 * varasm.c (output_constant): Return the number of bytes actually
34742 (output_constructor_array_range): Update the field size with the
34743 number of bytes emitted by output_constant.
34744 (output_constructor_regular_field): Likewise. Also do not
34745 complain if the total number of bytes emitted is now greater
34746 than the expected fieldpos.
34747 * output.h (output_constant): Update prototype and descriptive comment.
34749 2014-01-16 Marek Polacek <polacek@redhat.com>
34751 PR middle-end/59827
34752 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
34753 it is error_mark_node.
34755 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
34757 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
34758 VALID_AVX256_REG_OR_OI_MODE.
34760 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
34762 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
34763 current procedure should be profiled.
34765 2014-01-15 Andrew Pinski <apinski@cavium.com>
34767 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
34768 of moving from/to the STACK_REG register class.
34770 2014-01-15 Richard Henderson <rth@redhat.com>
34773 * reginfo.c (global_regs_decl): Globalize.
34774 * rtl.h (global_regs_decl): Declare.
34775 * ira.c (do_reload): Diagnose frame_pointer_needed and it
34776 reserved via global_regs.
34778 2014-01-15 Teresa Johnson <tejohnson@google.com>
34780 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
34782 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
34784 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
34785 and vmulosh rather than call gen_vec_widen_smult_*.
34786 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
34787 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
34788 (vec_widen_smult_even_v16qi): Likewise.
34789 (vec_widen_umult_even_v8hi): Likewise.
34790 (vec_widen_smult_even_v8hi): Likewise.
34791 (vec_widen_umult_odd_v16qi): Likewise.
34792 (vec_widen_smult_odd_v16qi): Likewise.
34793 (vec_widen_umult_odd_v8hi): Likewise.
34794 (vec_widen_smult_odd_v8hi): Likewise.
34795 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
34796 vmuloub rather than call gen_vec_widen_umult_*.
34797 (vec_widen_umult_lo_v16qi): Likewise.
34798 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
34799 vmulosb rather than call gen_vec_widen_smult_*.
34800 (vec_widen_smult_lo_v16qi): Likewise.
34801 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
34802 rather than call gen_vec_widen_umult_*.
34803 (vec_widen_umult_lo_v8hi): Likewise.
34804 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
34805 rather than call gen_vec_widen_smult_*.
34806 (vec_widen_smult_lo_v8hi): Likewise.
34808 2014-01-15 Jeff Law <law@redhat.com>
34810 PR tree-optimization/59747
34811 * ree.c (find_and_remove_re): Properly handle case where a second
34812 eliminated extension requires widening a copy created for elimination
34813 of a prior extension.
34814 (combine_set_extension): Ensure that the number of hard regs needed
34815 for a destination register does not change when we widen it.
34817 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34819 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
34820 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
34821 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
34822 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
34823 (avr-*-rtems*): Likewise.
34824 (bfin*-rtems*): Likewise.
34825 (moxie-*-rtems*): Likewise.
34826 (h8300-*-rtems*): Likewise.
34827 (i[34567]86-*-rtems*): Likewise.
34828 (lm32-*-rtems*): Likewise.
34829 (m32r-*-rtems*): Likewise.
34830 (m68k-*-rtems*): Likewise.
34831 (microblaze*-*-rtems*): Likewise.
34832 (mips*-*-rtems*): Likewise.
34833 (powerpc-*-rtems*): Likewise.
34834 (sh-*-rtems*): Likewise.
34835 (sparc-*-rtems*): Likewise.
34836 (sparc64-*-rtems*): Likewise.
34837 (v850-*-rtems*): Likewise.
34838 (m32c-*-rtems*): Likewise.
34840 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
34842 PR rtl-optimization/59511
34843 * ira.c (ira_init_register_move_cost): Use memory costs for some
34844 cases of register move cost calculations.
34845 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
34846 instead of BB frequency.
34847 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
34848 * lra-assigns.c (find_hard_regno_for): Ditto.
34850 2014-01-15 Richard Biener <rguenther@suse.de>
34852 PR tree-optimization/59822
34853 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
34854 (vectorizable_load): Use it to hoist defs of uses of invariant
34855 loads out of the loop.
34857 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
34858 Kugan Vivekanandarajah <kuganv@linaro.org>
34861 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
34864 2014-01-15 Richard Biener <rguenther@suse.de>
34866 PR rtl-optimization/59802
34867 * lcm.c (compute_available): Use inverted postorder to seed
34868 the initial worklist.
34870 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34873 * config/s390/s390.c (s390_preferred_reload_class): Don't return
34874 ADDR_REGS for invalid symrefs in non-PIC code.
34876 2014-01-15 Jakub Jelinek <jakub@redhat.com>
34879 * builtins.c (determine_block_size): Initialize *probable_max_size
34880 even if len_rtx is CONST_INT.
34882 2014-01-14 Andrew Pinski <apinski@cavium.com>
34884 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
34885 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
34886 (cortexa53_tunings): Likewise.
34887 (aarch64_sched_issue_rate): New function.
34888 (TARGET_SCHED_ISSUE_RATE): Define.
34890 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
34892 * ira-costs.c (find_costs_and_classes): Add missed
34893 ira_init_register_move_cost_if_necessary.
34895 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
34898 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
34900 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
34903 * config/i386/i386.c (type_natural_mode): Add a bool parameter
34904 to indicate if type is used for function return value. Warn ABI
34905 change if the vector mode isn't available for function return value.
34906 (ix86_function_arg_advance): Pass false to type_natural_mode.
34907 (ix86_function_arg): Likewise.
34908 (ix86_gimplify_va_arg): Likewise.
34909 (function_arg_32): Don't warn ABI change.
34910 (ix86_function_value): Pass true to type_natural_mode.
34911 (ix86_return_in_memory): Likewise.
34912 (ix86_struct_value_rtx): Removed.
34913 (TARGET_STRUCT_VALUE_RTX): Likewise.
34915 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
34917 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
34918 converting a conditional jump into a conditional return.
34920 2014-01-14 Richard Biener <rguenther@suse.de>
34922 PR tree-optimization/58921
34923 PR tree-optimization/59006
34924 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
34925 hoisting invariant stmts.
34926 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
34927 invariant loads on the preheader edge if possible.
34929 2014-01-14 Joey Ye <joey.ye@arm.com>
34931 * doc/plugin.texi (Building GCC plugins): Update to C++.
34933 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
34935 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
34936 (_mm_rcp28_round_ss): Ditto.
34937 (_mm_rsqrt28_round_sd): Ditto.
34938 (_mm_rsqrt28_round_ss): Ditto.
34939 (_mm_rcp28_sd): Ditto.
34940 (_mm_rcp28_ss): Ditto.
34941 (_mm_rsqrt28_sd): Ditto.
34942 (_mm_rsqrt28_ss): Ditto.
34943 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
34944 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
34945 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
34946 (IX86_BUILTIN_RCP28SD): Ditto.
34947 (IX86_BUILTIN_RCP28SS): Ditto.
34948 (IX86_BUILTIN_RSQRT28SD): Ditto.
34949 (IX86_BUILTIN_RSQRT28SS): Ditto.
34950 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
34951 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
34952 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
34953 (ix86_expand_special_args_builtin): Expand new FTYPE.
34954 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
34955 (srcp14<mode>): Make insn unary.
34956 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
34957 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
34958 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
34959 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
34960 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
34961 Fix rounding: make it SAE only.
34962 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
34964 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
34966 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
34967 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
34968 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
34969 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
34970 (round_saeonly_mask_scalar_operand4): Ditto.
34971 (round_saeonly_mask_scalar_op3): Ditto.
34972 (round_saeonly_mask_scalar_op4): Ditto.
34974 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34976 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
34977 Implement -maltivec=be for vec_insert and vec_extract.
34979 2014-01-10 DJ Delorie <dj@redhat.com>
34981 * config/msp430/msp430.md (call_internal): Don't allow memory
34982 references with SP as the base register.
34983 (call_value_internal): Likewise.
34984 * config/msp430/constraints.md (Yc): New. For memory references
34985 that don't use SP as a base register.
34987 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
34988 "an integer without a # prefix"
34989 * config/msp430/msp430.md (epilogue_helper): Use it.
34991 2014-01-13 Jakub Jelinek <jakub@redhat.com>
34994 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
34995 AVX512F gather builtins.
34996 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
34997 on gather decls with INTEGER_TYPE masktype.
34998 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
34999 directly into the builtin rather than hoisting it before loop.
35001 PR tree-optimization/59387
35002 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35003 (scev_const_prop): If folded_casts and type has undefined overflow,
35004 use force_gimple_operand instead of force_gimple_operand_gsi and
35005 for each added stmt if it is assign with
35006 arith_code_with_undefined_signed_overflow, call
35007 rewrite_to_defined_overflow.
35008 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35009 gimple-fold.h instead.
35010 (arith_code_with_undefined_signed_overflow,
35011 rewrite_to_defined_overflow): Moved to ...
35012 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35013 rewrite_to_defined_overflow): ... here. No longer static.
35014 Include gimplify-me.h.
35015 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35016 rewrite_to_defined_overflow): New prototypes.
35018 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35020 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35022 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
35024 * builtins.c (get_object_alignment_2): Minor tweak.
35025 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35027 2014-01-13 Christian Bruel <christian.bruel@st.com>
35029 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35030 optimized non constant lengths.
35032 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35035 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35036 load as __atomic_load_N if possible.
35038 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35040 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35042 (rs6000_expand_builtin): Adjust call.
35044 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35047 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35048 * config/rs6000/rs6000.c: Include target-globals.h.
35049 (rs6000_set_current_function): Instead of doing target_reinit
35050 unconditionally, use save_target_globals_default_opts and
35051 restore_target_globals.
35053 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35055 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35056 (rs6000_expand_builtin): Handle mffs and mtfsf.
35057 (rs6000_init_builtins): Define mffs and mtfsf.
35058 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35059 (rs6000_mffs): New pattern.
35060 (rs6000_mtfsf): New pattern.
35062 2014-01-11 Bin Cheng <bin.cheng@arm.com>
35064 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35065 Start narrowing with START. Apply candidate-use pair
35066 and check overall cost in narrowing.
35067 (iv_ca_prune): Pass new argument.
35069 2014-01-10 Jeff Law <law@redhat.com>
35071 PR middle-end/59743
35072 * ree.c (combine_reaching_defs): Ensure the defining statement
35073 occurs before the extension when optimizing extensions with
35074 different source and destination hard registers.
35076 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35079 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35080 vtables into the type inheritance graph.
35082 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35084 PR rtl-optimization/59754
35085 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35086 modes in the REGNO != REGNO case.
35088 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35090 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35092 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35094 PR tree-optimization/59745
35095 * tree-predcom.c (tree_predictive_commoning_loop): Call
35096 free_affine_expand_cache if giving up because components is NULL.
35098 * target-globals.c (save_target_globals): Allocate < 4KB structs using
35099 GC in payload of target_globals struct instead of allocating them on
35100 the heap and the larger structs separately using GC.
35101 * target-globals.h (struct target_globals): Make regs, hard_regs,
35102 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
35103 of GTY((skip)) and change type to void *.
35104 (reset_target_globals): Cast loads from those fields to corresponding
35107 2014-01-10 Steve Ellcey <sellcey@mips.com>
35110 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
35111 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
35112 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
35114 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
35117 * aarch64-modes.def (CC_Zmode): New flags mode.
35118 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
35119 represents an equality.
35120 (aarch64_get_condition_code): Handle CC_Zmode.
35121 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
35123 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35125 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
35126 extraction in good case.
35128 2014-01-10 Richard Biener <rguenther@suse.de>
35130 PR tree-optimization/59374
35131 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
35132 checking after SLP discovery. Mark stmts not participating
35133 in any SLP instance properly.
35135 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35137 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35138 when handling a SET rtx.
35140 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35142 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35143 (cortex-a57): Likewise.
35144 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35146 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35148 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35149 non-iwmmxt builtins.
35151 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35155 * ipa-devirt.c record_target_from_binfo): Take as argument
35156 stack of binfos and lookup matching one for virtual inheritance.
35157 (possible_polymorphic_call_targets_1): Update.
35159 2014-01-10 Huacai Chen <chenhc@lemote.com>
35161 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35162 kernel strings for Loongson-2E/2F/3A.
35164 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35166 PR middle-end/59670
35167 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35168 is_gimple_call before calling gimple_call_internal_p.
35170 2014-01-09 Steve Ellcey <sellcey@mips.com>
35172 * Makefile.in (TREE_FLOW_H): Remove.
35173 (TREE_SSA_H): Add file names from tree-flow.h.
35174 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35175 * tree.h: Remove tree-flow.h reference.
35176 * hash-table.h: Remove tree-flow.h reference.
35177 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35178 reference with tree-ssa-loop.h.
35180 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35182 * doc/invoke.texi: Add -maltivec={be,le} options, and document
35183 default element-order behavior for -maltivec.
35184 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35185 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35186 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35187 when targeting big endian, at least for now.
35188 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35190 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35192 PR middle-end/47735
35193 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35194 var satisfies use_register_for_decl, just take into account type
35195 alignment, rather than decl alignment.
35197 PR tree-optimization/59622
35198 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
35199 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35200 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35201 Don't devirtualize for inplace at all. For targets.length () == 1,
35202 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35204 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35206 * config/i386/i386.md (cpu): Remove the unused btver1.
35208 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35210 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35212 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35215 * tree-core.h (struct target_globals): New forward declaration.
35216 (struct tree_target_option): Add globals field.
35217 * tree.h (TREE_TARGET_GLOBALS): Define.
35218 (prepare_target_option_nodes_for_pch): New prototype.
35219 * target-globals.h (struct target_globals): Define even if
35220 !SWITCHABLE_TARGET.
35221 * tree.c (prepare_target_option_node_for_pch,
35222 prepare_target_option_nodes_for_pch): New functions.
35223 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35224 * config/i386/i386.c: Include target-globals.h.
35225 (ix86_set_current_function): Instead of doing target_reinit
35226 unconditionally, use save_target_globals_default_opts and
35227 restore_target_globals.
35229 2014-01-09 Richard Biener <rguenther@suse.de>
35231 PR tree-optimization/59715
35232 * tree-cfg.h (split_critical_edges): Declare.
35233 * tree-cfg.c (split_critical_edges): Export.
35234 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
35236 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
35238 * cfgexpand.c (expand_stack_vars): Optionally disable
35239 asan stack protection.
35240 (expand_used_vars): Likewise.
35241 (partition_stack_vars): Likewise.
35242 * asan.c (asan_emit_stack_protection): Optionally disable
35243 after return stack usage.
35244 (instrument_derefs): Optionally disable memory access instrumentation.
35245 (instrument_builtin_call): Likewise.
35246 (instrument_strlen_call): Likewise.
35247 (asan_protect_global): Optionally disable global variables protection.
35248 * doc/invoke.texi: Added doc for new options.
35249 * params.def: Added new options.
35250 * params.h: Likewise.
35252 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35254 PR rtl-optimization/59724
35255 * ifcvt.c (cond_exec_process_if_block): Don't call
35256 flow_find_head_matching_sequence with 0 longest_match.
35257 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
35258 non-active insns if !stop_after.
35259 (try_head_merge_bb): Revert 2014-01-07 changes.
35261 2014-01-08 Jeff Law <law@redhat.com>
35263 * ree.c (get_sub_rtx): New function, extracted from...
35264 (merge_def_and_ext): Here.
35265 (combine_reaching_defs): Use get_sub_rtx.
35267 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
35269 * cgraph.h (varpool_variable_node): Do not choke on null node.
35271 2014-01-08 Catherine Moore <clm@codesourcery.com>
35273 * config/mips/mips.md (simple_return): Attempt to use JRC
35275 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
35277 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35279 PR rtl-optimization/59137
35280 * reorg.c (steal_delay_list_from_target): Call update_block for
35282 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
35284 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35286 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
35287 two duplicate entries.
35289 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35292 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
35294 * config/mips/mips.c (mips_truncated_op_cost): New function.
35295 (mips_rtx_costs): Adjust test for BADDU.
35296 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
35298 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
35300 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
35301 (*baddu_si): ...this new pattern.
35303 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35306 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
35308 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
35310 PR middle-end/57748
35311 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
35313 (expand_expr, expand_normal): Adjust.
35314 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
35315 inner_reference_p. Use inner_reference_p to expand inner references.
35316 (store_expr): Adjust.
35317 * cfgexpand.c (expand_call_stmt): Adjust.
35319 2014-01-08 Rong Xu <xur@google.com>
35321 * gcov-io.c (gcov_var): Move from gcov-io.h.
35322 (gcov_position): Ditto.
35323 (gcov_is_error): Ditto.
35324 (gcov_rewrite): Ditto.
35325 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
35326 only part to libgcc/libgcov.h.
35328 2014-01-08 Marek Polacek <polacek@redhat.com>
35330 PR middle-end/59669
35331 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
35333 2014-01-08 Marek Polacek <polacek@redhat.com>
35336 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
35338 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35340 PR rtl-optimization/59649
35341 * stor-layout.c (get_mode_bounds): For BImode return
35342 0 and STORE_FLAG_VALUE.
35344 2014-01-08 Richard Biener <rguenther@suse.de>
35346 PR middle-end/59630
35347 * gimple.h (is_gimple_builtin_call): Remove.
35348 (gimple_builtin_call_types_compatible_p): New.
35349 (gimple_call_builtin_p): New overload.
35350 * gimple.c (is_gimple_builtin_call): Remove.
35351 (validate_call): Rename to ...
35352 (gimple_builtin_call_types_compatible_p): ... this and export. Also
35353 check return types.
35354 (validate_type): New static function.
35355 (gimple_call_builtin_p): New overload and adjust.
35356 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
35357 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
35358 (gimple_fold_stmt_to_constant_1): Likewise.
35359 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
35361 2014-01-08 Richard Biener <rguenther@suse.de>
35363 PR middle-end/59471
35364 * gimplify.c (gimplify_expr): Gimplify register-register type
35365 VIEW_CONVERT_EXPRs to separate stmts.
35367 2014-01-07 Jeff Law <law@redhat.com>
35369 PR middle-end/53623
35370 * ree.c (combine_set_extension): Handle case where source
35371 and destination registers in an extension insn are different.
35372 (combine_reaching_defs): Allow source and destination registers
35373 in extension to be different under limited circumstances.
35374 (add_removable_extension): Remove restriction that the
35375 source and destination registers in the extension are the same.
35376 (find_and_remove_re): Emit a copy from the extension's
35377 destination to its source after the defining insn if
35378 the source and destination registers are different.
35380 PR middle-end/59285
35381 * ifcvt.c (merge_if_block): If we are merging a block with more than
35382 one successor with a block with no successors, remove any BARRIER
35383 after the second block.
35385 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
35387 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
35389 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
35392 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
35393 for 14-bit register offsets when INT14_OK_STRICT is false.
35395 2014-01-07 Roland Stigge <stigge@antcom.de>
35396 Michael Meissner <meissner@linux.vnet.ibm.com>
35399 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
35400 Only check TFmode for SPE constants. Don't check TImode or TDmode.
35402 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
35404 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
35407 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
35409 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
35410 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
35411 rtx is const0_rtx or not.
35413 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
35416 * target-globals.c (save_target_globals): Remove this_fn_optab
35418 * toplev.c: Include optabs.h.
35419 (target_reinit): Temporarily restore the global options if another
35420 set of options are in force.
35422 2014-01-07 Jakub Jelinek <jakub@redhat.com>
35424 PR rtl-optimization/58668
35425 * cfgcleanup.c (flow_find_cross_jump): Don't count
35426 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
35427 to determine what is counted.
35428 (flow_find_head_matching_sequence): Use active_insn_p to determine
35430 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
35432 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
35433 determine what is counted.
35435 PR tree-optimization/59643
35436 * tree-predcom.c (split_data_refs_to_components): If one dr is
35437 read and one write, determine_offset fails and the write isn't
35438 in the bad component, just put the read into the bad component.
35440 2014-01-07 Mike Stump <mikestump@comcast.net>
35441 Jakub Jelinek <jakub@redhat.com>
35444 * tree-core.h (struct tree_optimization_option): Change optabs
35445 type from unsigned char * to void *.
35446 * optabs.c (init_tree_optimization_optabs): Adjust
35447 TREE_OPTIMIZATION_OPTABS initialization.
35449 2014-01-06 Jakub Jelinek <jakub@redhat.com>
35452 * config/i386/i386.h (struct machine_function): Add
35453 no_drap_save_restore field.
35454 * config/i386/i386.c (ix86_save_reg): Use
35455 !cfun->machine->no_drap_save_restore instead of
35456 crtl->stack_realign_needed.
35457 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
35458 this function clears frame_pointer_needed. Set
35459 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
35460 and DRAP reg is needed.
35462 2014-01-06 Marek Polacek <polacek@redhat.com>
35465 * doc/implement-c.texi: Mention that other integer types are
35466 permitted as bit-field types in strictly conforming mode.
35468 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
35470 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
35471 is newly allocated.
35473 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
35475 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
35477 2014-01-06 Martin Jambor <mjambor@suse.cz>
35480 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35482 * ipa-prop.c (ipa_print_node_params): Fix indentation.
35484 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
35488 * var-tracking.c (add_stores): Preserve the value of the source even if
35489 we don't record the store.
35491 2014-01-06 Terry Guo <terry.guo@arm.com>
35493 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35495 2014-01-05 Iain Sandoe <iain@codesourcery.com>
35498 * config/darwin.c (darwin_function_section): Adjust return values to
35499 correspond to optimisation changes made in r206070.
35501 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
35503 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35504 from prefetch_block tune setting.
35505 (nocona_cost): Correct size of prefetch block to 64.
35507 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
35509 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35510 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35511 used to save the static chain register in the computation of the offset
35512 from which the FP registers need to be restored.
35514 2014-01-04 Jakub Jelinek <jakub@redhat.com>
35516 PR tree-optimization/59519
35517 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35518 ICE if get_current_def (current_new_name) is already non-NULL, as long
35519 as it is a phi result of some other phi in *new_exit_bb that has
35522 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35523 or vmovdqu* for misaligned_operand.
35524 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35525 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35526 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35527 aligned_mem for AVX512F masked aligned load and store builtins and for
35528 non-temporal moves.
35530 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
35532 PR tree-optimization/59651
35533 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35534 Address range for negative step should be added by TYPE_SIZE_UNIT.
35536 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
35538 * config/m68k/m68k.c (handle_move_double): Handle pushes with
35539 overlapping registers also for registers other than the stack pointer.
35541 2014-01-03 Marek Polacek <polacek@redhat.com>
35544 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35547 2014-01-03 Jakub Jelinek <jakub@redhat.com>
35550 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35553 * config/i386/i386.md (MODE_SIZE): New mode attribute.
35554 (push splitter): Use <P:MODE_SIZE> instead of
35555 GET_MODE_SIZE (<P:MODE>mode).
35556 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35557 (mov -1, reg peephole2): Likewise.
35558 * config/i386/sse.md (*mov<mode>_internal,
35559 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35560 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35561 *<code><mode>3, *andnot<mode>3<mask_name>,
35562 <mask_codefor><code><mode>3<mask_name>): Likewise.
35563 * config/i386/subst.md (mask_mode512bit_condition,
35564 sd_mask_mode512bit_condition): Likewise.
35566 2014-01-02 Xinliang David Li <davidxl@google.com>
35568 PR tree-optimization/59303
35569 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35570 (dump_predicates): Better output format.
35571 (pred_equal_p): New function.
35572 (is_neq_relop_p): Ditto.
35573 (is_neq_zero_form_p): Ditto.
35574 (pred_expr_equal_p): Ditto.
35575 (pred_neg_p): Ditto.
35576 (simplify_pred): Ditto.
35577 (simplify_preds_2): Ditto.
35578 (simplify_preds_3): Ditto.
35579 (simplify_preds_4): Ditto.
35580 (simplify_preds): Ditto.
35581 (push_pred): Ditto.
35582 (push_to_worklist): Ditto.
35583 (get_pred_info_from_cmp): Ditto.
35584 (is_degenerated_phi): Ditto.
35585 (normalize_one_pred_1): Ditto.
35586 (normalize_one_pred): Ditto.
35587 (normalize_one_pred_chain): Ditto.
35588 (normalize_preds): Ditto.
35589 (normalize_cond_1): Remove function.
35590 (normalize_cond): Ditto.
35591 (is_gcond_subset_of): Ditto.
35592 (is_subset_of_any): Ditto.
35593 (is_or_set_subset_of): Ditto.
35594 (is_and_set_subset_of): Ditto.
35595 (is_norm_cond_subset_of): Ditto.
35596 (pred_chain_length_cmp): Ditto.
35597 (convert_control_dep_chain_into_preds): Type change.
35598 (find_predicates): Ditto.
35599 (find_def_preds): Ditto.
35600 (destroy_predicates_vecs): Ditto.
35601 (find_matching_predicates_in_rest_chains): Ditto.
35602 (use_pred_not_overlap_with_undef_path_pred): Ditto.
35603 (is_pred_expr_subset): Ditto.
35604 (is_pred_chain_subset_of): Ditto.
35605 (is_included_in): Ditto.
35606 (is_superset_of): Ditto.
35608 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35610 Update copyright years.
35612 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35614 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35615 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35616 config/arc/arc.md, config/arc/arc.opt,
35617 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35618 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35619 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35620 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35621 config/linux-protos.h, config/linux.c, config/winnt-c.c,
35622 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35623 vtable-verify.c, vtable-verify.h: Use the standard form for the
35626 2014-01-02 Tobias Burnus <burnus@net-b.de>
35628 * gcc.c (process_command): Update copyright notice dates.
35629 * gcov-dump.c: Ditto.
35631 * doc/cpp.texi: Bump @copying's copyright year.
35632 * doc/cppinternals.texi: Ditto.
35633 * doc/gcc.texi: Ditto.
35634 * doc/gccint.texi: Ditto.
35635 * doc/gcov.texi: Ditto.
35636 * doc/install.texi: Ditto.
35637 * doc/invoke.texi: Ditto.
35639 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35641 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
35643 2014-01-01 Jakub Jelinek <jakub@redhat.com>
35645 * config/i386/sse.md (*mov<mode>_internal): Guard
35646 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
35648 PR rtl-optimization/59647
35649 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
35650 new_rtx into UNSIGNED_FLOAT rtxes.
35652 Copyright (C) 2014 Free Software Foundation, Inc.
35654 Copying and distribution of this file, with or without modification,
35655 are permitted in any medium without royalty provided the copyright
35656 notice and this notice are preserved.