1 2014-10-22 Richard Biener <rguenther@suse.de>
2 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
4 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
5 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
6 (gimple-match.c): Generate by triggering s-match.
7 (generic-match.c): Likewise.
8 (s-match): Rule to build gimple-match.c and generic-match.c
9 by running the genmatch generator program.
10 (build/hash-table.o): Dependencies to build hash-table.c for the host.
11 (build/genmatch.o): Dependencies to build genmatch.
13 (build/genmatch): Likewise.
14 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
15 * generic-match-head.c: New file.
16 * gimple-match-head.c: Likewise.
17 * gimple-match.h: Likewise.
18 * genmatch.c: Likewise.
20 * builtins.h (fold_builtin_n): Export.
21 * builtins.c (fold_builtin_n): Likewise.
22 * gimple-fold.h (gimple_build): Declare various overloads.
23 (gimple_simplify): Likewise.
24 (gimple_convert): Re-implement in terms of gimple_build.
25 * gimple-fold.c (gimple_convert): Remove.
26 (gimple_build): New functions.
27 * doc/match-and-simplify.texi: New file.
28 * doc/gccint.texi: Add menu item Match and Simplify and include
29 match-and-simplify.texi.
31 2014-10-22 Jakub Jelinek <jakub@redhat.com>
34 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
35 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
36 even for just TARGET_AVX2, not only for
37 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
38 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
39 otherwise build it using concatenation of 256-bit
41 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
42 avx512 broadcast patterns.
43 (vec_dup<mode>): Likewise. For avx2 use
44 v<sseintprefix>broadcast<bcstscalarsuff> instead of
45 vbroadcast<ssescalarmodesuffix>.
46 (AVX2_VEC_DUP_MODE): New mode iterator.
47 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
48 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
51 * config/i386/i386.c (ix86_pic_register_p): Also return
52 true if x is a hard register with ORIGINAL_REGNO equal to
53 pic_offset_table_rtx pseudo REGNO.
54 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
55 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
57 2014-10-22 Alan Modra <amodra@gmail.com>
59 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
60 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
61 (gcc_obstack_init): Use obstack_specify_allocation in place of
63 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
64 (regexp_representation): Likewise.
65 * godump.c (go_output_type): Likewise.
67 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
69 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
70 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
71 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
73 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
75 * doc/invoke.texi (pedantic-errors): Explain better.
77 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
78 Vidya Praveen <vidya.praveen@atmel.com>
79 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
80 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
81 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
83 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
85 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
86 (avr_nonconst_pointer_addrspace): Likewise.
87 * config/avr/avr.h (AVR_HAVE_LPM): Define.
89 Added AVRTINY architecture to avr target.
90 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
91 (base_arch_s): member added for AVRTINY architecture.
92 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
93 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
94 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
95 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
96 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
97 in callee saved register list.
98 (avr_option_override): CCP address updated for AVRTINY.
99 (avr_init_expanders): tmp and zero rtx initialized as per arch.
100 Reset avr_have_dimode if AVRTINY.
101 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
102 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
103 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
104 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
105 (expand_epilogue): Likewise.
106 (avr_print_operand): Print CCP address in case of AVRTINY also.
108 (function_arg_regno_p): Check different register list for arguments
110 (init_cumulative_args): Check for AVRTINY to update number of argument
112 (tiny_valid_direct_memory_access_range): New function. Return false if
113 direct memory access range is not in accepted range for AVRTINY.
114 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
115 indirect load (with displacement) for AVRTINY.
116 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
117 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
118 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
119 indirect load (no displacement) for AVRTINY.
120 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
121 indirect load (with displacement) for AVRTINY.
122 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
123 indirect load for pre-decrement address.
124 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
125 functions. Update instruction length for AVRTINY.
126 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
128 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
129 (out_movsi_r_mr): Likewise, for SImode.
130 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
131 indirect store (no displacement) for AVRTINY.
132 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
133 indirect store (with displacement) for AVRTINY.
134 (out_movsi_mr_r): Emit out insn for IO address store. Update store
135 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
137 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
138 indirect load (no displacement) for PSImode in AVRTINY.
139 (avr_out_load_psi_reg_disp_tiny): New function to handle register
140 indirect load (with displacement) for PSImode in AVRTINY.
141 (avr_out_load_psi): Call PSImode register indirect load functions for
142 AVRTINY. Update instruction length for AVRTINY.
143 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
144 indirect store (no displacement) for PSImode in AVRTINY.
145 (avr_out_store_psi_reg_disp_tiny): New function to handle register
146 indirect store (with displacement) for PSImode in AVRTINY.
147 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
148 register indirect store functions for AVRTINY.
149 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
150 register indirect store (with displacement) for AVRTINY.
151 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
152 register indirect store function for QImode in AVRTINY.
153 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
154 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
155 indirect store (no displacement) for HImode in AVRTINY.
156 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
157 indirect store (with displacement) for HImode in AVRTINY.
158 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
159 indirect store for post-increment address in HImode.
160 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
161 register indirect store function for HImode in AVRTINY.
162 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
164 (order_regs_for_local_alloc): Updated register allocation order for
166 (avr_conditional_register_usage): New function. It is a target hook
167 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
168 used registers list and register allocation order for AVRTINY.
169 (avr_return_in_memory): Update return value size for AVRTINY.
170 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
171 for AVRTINY arch and tiny program memory base address.
172 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
173 (avr_texinfo): Added description for AVRTINY arch.
174 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
175 STATIC_CHAIN_REGNUM for AVRTINY.
176 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
177 * config/avr/avr.md: Added constants for tmp/ zero registers in
178 AVRTINY. Attributes for AVRTINY added.
179 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
181 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
182 in AVRTINY memory access range.
183 (*mov<mode>): Likewise for HImode and SImode.
184 (*movsf): Likewise for SFmode.
185 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
187 * config/avr/avr-protos.h: Added function prototype for
188 tiny_valid_direct_memory_access_range.
189 * config/avr/avr-tables.opt: Regenerate.
190 * gcc/config/avr/t-multilib: Regenerate.
191 * doc/avr-mmcu.texi: Regenerate.
193 2014-10-21 Andrew Pinski <apinski@cavium.com>
195 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
196 available option also.
197 * config/aarch64/aarch64-cost-tables.h: New file.
198 * config/aarch64/aarch64-cores.def (thunderx): New core.
199 * config/aarch64/aarch64-tune.md: Regenerate.
200 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
201 of config/arm/aarch-cost-tables.h.
202 (thunderx_regmove_cost): New variable.
203 (thunderx_tunings): New variable.
205 2014-10-21 Dehao Chen <dehao@google.com>
207 * auto-profile.c: New file.
208 * auto-profile.h: New file.
209 * basic-block.h (maybe_hot_count_p): New export func.
210 (add_working_set): New export func.
211 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
212 (GCOV_TAG_AFDO_FUNCTION): Likewise.
213 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
214 * opts.c (enable_fdo_optimizations): New func.
215 (common_handle_option): Handle -fauto-profile flag.
216 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
217 (class pass_early_inline): Export early_inliner.
218 (early_inliner): Likewise.
219 (pass_early_inline::execute): Likewise.
220 * ipa-inline.h (early_inliner): Likewise.
221 * predict.c (maybe_hot_count_p): New export func.
222 (counts_to_freqs): AutoFDO logic.
223 (rebuild_frequencies): Likewise.
224 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
225 * profile.c (add_working_set): New func.
226 * Makefile.in (auto-profile.o): New object file.
227 * passes.def (pass_ipa_auto_profile): New pass.
228 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
229 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
230 * toplev.c (compile_file): AutoFDO logic.
231 * doc/invoke.texi (-fauto-profile): New doc.
232 * coverage.c (coverage_init): AutoFDO logic.
233 * common.opt (-fauto-profile): New flag.
234 * timevar.def (TV_IPA_AUTOFDO): New tag.
235 * value-prof.c (gimple_alloc_histogram_value): New export func.
236 (check_ic_target): Likewise.
237 * value-prof.h (gimple_alloc_histogram_value): Likewise.
238 (check_ic_target): Likewise.
240 2014-10-21 David Malcolm <dmalcolm@redhat.com>
242 * cgraph.c (cgraph_c_finalize): New function.
243 * cgraph.h (cgraph_c_finalize): New prototype.
244 (cgraphunit_c_finalize): New prototype.
245 * cgraphunit.c (first_analyzed): Move from analyze_functions
247 (first_analyzed_var): Likewise.
248 (analyze_functions): Move static variables into file-scope.
249 (cgraphunit_c_finalize): New function.
250 * diagnostic.c (diagnostic_finish): Free the memory for
251 context->classify_diagnostic and context->printer, running the
252 destructor for the latter.
253 (bt_stop): Use toplev::main.
254 * dwarf2out.c (dwarf2out_finalize): New function.
255 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
256 * gcse.c (gcse_c_finalize): New function.
257 * gcse.h (gcse_c_finalize): New prototype.
258 * ggc-page.c (init_ggc): Make idempotent.
259 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
260 * ipa-cp.c (ipa_cp_c_finalize): New function.
261 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
262 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
263 a field of class pass_ipa_pure_const.
264 (node_duplication_hook_holder): Likewise.
265 (node_removal_hook_holder): Likewise.
266 (register_hooks): Convert to method...
267 (pass_ipa_pure_const::register_hooks): ...here, converting
268 static variable init_p into...
269 (pass_ipa_pure_const::init_p): ...new field.
270 (pure_const_generate_summary): Update invocation of
271 register_hooks to invoke as a method of current_pass.
272 (pure_const_read_summary): Likewise.
273 (propagate): Convert to...
274 (pass_ipa_pure_const::execute): ...method.
275 * ipa-reference.c (ipa_init): Move static bool init_p from here
277 (ipa_init_p): New file-scope variable, so that it can be reset
278 when repeatedly invoking the compiler within one process by...
279 (ipa_reference_c_finalize): New function.
280 * ipa-reference.h (ipa_reference_c_finalize): New.
281 * main.c (main): Replace invocation of toplev_main with
282 construction of a toplev instance, and call its "main" method.
283 * params.c (global_init_params): Add an assert that
284 params_finished is false.
285 (params_c_finalize): New.
286 * params.h (params_c_finalize): New.
287 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
288 invoking generate_summary, for the benefit of pass_ipa_pure_const.
289 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
290 before calling write_summary hook.
291 (ipa_write_optimization_summaries_1): Likewise when calling
292 write_optimization_summary hook.
293 (ipa_read_summaries_1): Likewise for read_summary hook.
294 (ipa_read_optimization_summaries_1): Likewise for
295 read_optimization_summary hook.
296 (execute_ipa_stmt_fixups): Likewise.
297 * stringpool.c (init_stringpool): Clean up if we're called more
299 * timevar.c (timevar_init): Ignore repeated calls.
300 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
302 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
303 (initialize_rtl): Move static local "initialized_once"
304 into file scope, and rename to...
305 (rtl_initialized): New variable.
306 (do_compile): Move timevar initialization from here to
307 toplev::start_timevars.
308 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
309 toplev::finalize): New functions.
310 (toplev_main): Rename to...
311 (toplev::main): ...this.
312 * toplev.h (class toplev): New class.
314 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
316 * loop-doloop.c: Include loop-unroll.h.
318 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
320 * cfg.h: New. Header file for cfg.c.
321 * cfganal.h: New. Header file for cfganal.c.
322 * lcm.h: New. Header file for lcm.c.
323 * loop-unroll.h: New. Header file for loop-unroll.h.
324 * cfgloop.h: (unroll_loops): Remove prototype.
325 * basic-block.h: Move prototypes and structs to new header files.
326 Include cfg.h, cfganal.h, and lcm.h.
327 * loop-init.c: Include loop-unroll.h.
328 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
329 * modulo-sched.c: Include loop-unroll.h.
331 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
333 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
334 MARKER_BYTE_UNKNOWN markers when handling casts.
336 2014-10-21 Richard Biener <rguenther@suse.de>
338 * tree-ssa-phiopt.c (value_replacement): Properly verify we
339 are the non-singleton PHI.
341 2014-10-21 Jakub Jelinek <jakub@redhat.com>
343 PR tree-optimization/63563
344 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
345 if either dra or drb stmts are not normal loads/stores.
347 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
349 * config/i386/i386.c (expand_vec_perm_1): Fix
350 expand_vec_perm_palignr case.
351 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
354 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
356 * cfgloopanal.c (seq_cost): Delete.
357 * rtl.h (seq_cost): New prototype.
358 * rtlanal.c (seq_cost): New function.
359 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
361 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
363 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
364 * basic-block.h: Remove prototypes for cfgrtl.c.
365 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
366 prototypes to cfgrtl.h.
367 * profile.h (profile_info): Add extern export declaration.
368 * rtl.h: Remove prototypes for cfgrtl.h.
369 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
370 * ipa-inline.c: Include profile.h.
371 * loop-unroll.c: Ditto.
372 * modulo-sched.c: Ditto.
373 * postreload-gcse.c: Ditto.
375 * sched-ebb.c: Ditto.
376 * sched-rgn.c: Ditto.
378 * tree-ssa-loop-ivcanon.c: Ditto.
380 2014-10-20 Richard Biener <rguenther@suse.de>
382 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
383 operands to get a def operand kind match. Signal mismatches
384 to the parent so we can try swapping its operands.
385 (vect_build_slp_tree): Try swapping operands if they have
386 a mismatched operand kind.
388 2014-10-20 Alan Modra <amodra@gmail.com>
391 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
392 Increase "ops" array size. Correct array size tests. Init
393 n_constants in loop. Break out of innermost loop when finding
394 a trivial CONST expression.
396 2014-10-20 Martin Liska <mliska@suse.cz>
399 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
400 Gimple tempate string is compared.
402 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
404 * varasm.c (const_alias_set): Remove.
405 (init_varasm_once): Remove initialization of const_alias_set.
406 (build_constant_desc): Do not set alias set to const_alias_set.
408 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
410 * configure: Regenerate.
411 * configure.ac: Move the test for section attribute specifier "e" in GAS
412 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
413 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
414 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
415 ifdef HAVE_GAS_SECTION_EXCLUDE.
417 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
419 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
420 match_operand expression.
422 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
423 David Edelsohn <dje.gcc@gmail.com>
425 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
427 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
429 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
431 * doc/invoke.texi (Options to Request or Suppress Warnings):
432 Explain options precedence.
433 (Wtrampolines): Do not indent paragraph.
435 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
437 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
438 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
439 (pa_jump_in_call_delay): Likewise.
440 * config/pa/pa.c (pa_option_override): Remove jump in call delay
442 (pa_output_millicode_call): Remove support for jump in call delay.
443 (pa_output_call): Likewise.
444 (pa_jump_in_call_delay): Delete.
445 (pa_following_call): Likewise.
446 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
447 (uncond_branch): Remove following call check from attribute length.
449 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
452 * config/sh/sh-modes.def (PSI): Remove.
453 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
454 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
455 (sh_reorg): Remove commented out FPSCR code.
456 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
457 insn instead of move insn.
458 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
459 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
461 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
462 (sh1_builtin_p): Uncomment.
463 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
464 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
465 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
466 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
467 (general_movsrc_operand, general_movdst_operand): Disallow
469 * config/sh/sh.md (FPSCR_FR): New constant.
470 (push_fpscr): Emit sts_fpscr insn.
471 (pop_fpscr): Emit lds_fpscr_insn.
472 (movsi_ie): Disallow FPSCR operands.
473 (fpu_switch, unnamed related split, extend_psi_si,
474 truncate_si_psi): Remove insns.
475 (lds_fpscr, sts_fpscr): New insns.
476 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
478 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
480 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
481 (clone_inlined_nodes): Do not overwrite the clone if above predicate
484 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
486 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
487 (expand_vec_perm_d): Ditto.
488 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
489 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
491 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
492 (ix86_expand_sse_unpack): Handle V64QImode.
493 (expand_vec_perm_blend): Update conditions for TARGET, handle
494 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
495 (expand_vec_perm_pshufb): Handle V64QImode.
496 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
497 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
498 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
499 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
500 (ix86_expand_vecop_qihi): Handle V64QImode.
501 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
502 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
503 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
504 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
505 (mul<mode>3): Use VI1_AVX512.
506 (<sse2_avx2>_packsswb): Ditto.
507 (<sse2_avx2>_packuswb): Ditto.
508 (<ssse3_avx2>_pshufb<mode>3): Ditto.
509 (<shift_insn><mode>3): Ditto.
511 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
513 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
514 conditions to fix bootstrap.
516 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
518 gcc-plugin.h: Add tm.h and flattened includes from function.h.
520 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
521 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
522 Anna Tikhonova <anna.tikhonova@intel.com>
523 Ilya Tocar <ilya.tocar@intel.com>
524 Andrey Turetskiy <andrey.turetskiy@intel.com>
525 Ilya Verbin <ilya.verbin@intel.com>
526 Kirill Yukhin <kirill.yukhin@intel.com>
527 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
529 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
530 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
531 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
532 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
533 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
534 (define_expand "vec_init<mode>"): Use VF48_I1248.
536 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
537 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
538 Anna Tikhonova <anna.tikhonova@intel.com>
539 Ilya Tocar <ilya.tocar@intel.com>
540 Andrey Turetskiy <andrey.turetskiy@intel.com>
541 Ilya Verbin <ilya.verbin@intel.com>
542 Kirill Yukhin <kirill.yukhin@intel.com>
543 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
545 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
546 expand_sse2_mulvxdi3.
548 2014-10-17 Richard Biener <rguenther@suse.de>
550 * fold-const.c (fold_comparison): Remove redundant constant
551 folding and operand swapping.
552 (fold_binary_loc): Do comparison operand swapping here.
553 (fold_ternary_loc): Canonicalize operand order for
554 commutative ternary operations.
555 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
558 2014-10-17 Jakub Jelinek <jakub@redhat.com>
560 PR tree-optimization/63464
561 * gimple.h (gimple_seq_discard): New prototype.
562 * gimple.c: Include stringpool.h and tree-ssanames.h.
563 (gimple_seq_discard): New function.
564 * optabs.h (lshift_cheap_p): New prototype.
565 * optabs.c (lshift_cheap_p): New function, moved from...
566 * tree-switch-conversion.c (lshift_cheap_p): ... here.
567 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
568 (reassoc_branch_fixups): New variable.
569 (update_range_test): Add otherrangep and seq arguments.
570 Unshare exp. If otherrange is NULL, use for other ranges
571 array of pointers pointed by otherrangep instead.
572 Emit seq before gimplified statements for tem.
573 (optimize_range_tests_diff): Adjust update_range_test
575 (optimize_range_tests_xor): Likewise. Fix up comment.
576 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
578 (optimize_range_tests): Adjust update_range_test caller.
579 Call optimize_range_tests_to_bit_test.
580 (branch_fixup): New function.
581 (execute_reassoc): Call branch_fixup.
583 PR tree-optimization/63302
584 * tree-ssa-reassoc.c (optimize_range_tests_xor,
585 optimize_range_tests_diff): Use !integer_pow2p () instead of
588 2014-10-17 Martin Liska <mliska@suse.cz>
590 * ipa-icf.c (sem_function::merge): Local flags are set to false
591 to enforce equal calling convention to be used.
592 * opts.c (common_handle_option): Indentation fix.
594 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
596 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
598 2014-10-17 Tom de Vries <tom@codesourcery.com>
600 PR rtl-optimization/61605
601 * regcprop.c (copyprop_hardreg_forward_1): Use
602 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
604 2014-10-17 Tom de Vries <tom@codesourcery.com>
606 PR rtl-optimization/61605
607 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
608 notice stores for noops. Don't regard noops as copies.
610 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
612 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
613 register in a special way.
614 (__cpuid_count): Ditto.
615 * config/i386/driver-i386.h: Protect with
616 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
617 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
618 is required to compile the function.
620 2014-10-16 DJ Delorie <dj@redhat.com>
622 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
625 * config/rs6000/rs6000-c.c (rid_int128): New.
626 (rs6000_macro_to_expand): Use instead of RID_INT128.
628 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
630 * function.h: Flatten file. Remove includes, adjust prototypes to
631 reflect only what is in function.h.
632 (enum direction, struct args_size, struct locate_and_pad_arg_data,
633 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
635 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
636 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
637 prototypes to predict.h.
638 (init_varasm_status): Move prototype to varasm.h.
639 * expr.h: Adjust include files.
640 (enum direction, struct args_size, struct locate_and_pad_arg_data,
641 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
643 (locate_and_pad_parm): Move prototype to function.h.
644 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
645 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
646 assign_temp, reposition_prologue_and_epilogue_notes,
647 prologue_epilogue_contains, sibcall_epilogue_contains,
648 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
649 set_return_jump_label): Move prototypes to function.h.
650 * predict.h (optimize_function_for_size_p,
651 optimize_function_for_speed_p): Relocate prototypes from function.h.
652 * shrink-wrap.h (emit_return_into_block, active_insn_between,
653 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
655 * varasm.h (init_varasm_status): Relocate prototype from function.h.
656 * genattrtab.c (write_header): Add predict.h to include list.
657 * genconditions.c (write_header): Add predict.h to include list.
658 * genemit.c (main): Adjust header file includes.
659 * gengtype.c (ifiles): Add flattened function.h header files.
660 * genoutput.c (output_prologue): Add predict.h to include list.
661 * genpreds.c (write_insn_preds_c): Adjust header file includes.
662 * genrecog.c (write_header): Add flattened function.h header files.
663 * alias.c: Adjust include files.
664 * auto-inc-dec.c: Likewise.
665 * basic-block.h: Likewise.
666 * bb-reorder.c: Likewise.
667 * bt-load.c: Likewise.
668 * builtins.c: Likewise.
669 * caller-save.c: Likewise.
671 * cfgbuild.c: Likewise.
672 * cfgcleanup.c: Likewise.
673 * cfgexpand.c: Likewise.
674 * cfgloop.c: Likewise.
675 * cfgloop.h: Likewise.
676 * cfgrtl.c: Likewise.
677 * cgraph.h: Likewise.
678 * cgraphclones.c: Likewise.
679 * cgraphunit.c: Likewise.
680 * combine-stack-adj.c: Likewise.
681 * combine.c: Likewise.
682 * coverage.c: Likewise.
685 * cselib.c: Likewise.
686 * dbxout.c: Likewise.
688 * df-core.c: Likewise.
689 * df-problems.c: Likewise.
690 * df-scan.c: Likewise.
691 * dojump.c: Likewise.
692 * dwarf2cfi.c: Likewise.
693 * dwarf2out.c: Likewise.
694 * emit-rtl.c: Likewise.
695 * except.c: Likewise.
696 * explow.c: Likewise.
699 * function.c: Likewise.
701 * gimple-fold.c: Likewise.
702 * gimple-low.c: Likewise.
703 * gimple-streamer.h: Likewise.
704 * haifa-sched.c: Likewise.
709 * loop-invariant.c: Likewise.
710 * lra-assigns.c: Likewise.
711 * lra-coalesce.c: Likewise.
712 * lra-constraints.c: Likewise.
713 * lra-eliminations.c: Likewise.
714 * lra-lives.c: Likewise.
715 * lra-spills.c: Likewise.
717 * lto-cgraph.c: Likewise.
718 * lto-section-in.c: Likewise.
719 * lto-section-out.c: Likewise.
720 * lto-streamer-in.c: Likewise.
721 * lto-streamer-out.c: Likewise.
722 * mode-switching.c: Likewise.
723 * modulo-sched.c: Likewise.
724 * omp-low.c: Likewise.
725 * optabs.c: Likewise.
726 * passes.c: Likewise.
727 * postreload-gcse.c: Likewise.
728 * postreload.c: Likewise.
729 * predict.c: Likewise.
730 * profile.c: Likewise.
733 * reg-stack.c: Likewise.
734 * regcprop.c: Likewise.
735 * reginfo.c: Likewise.
736 * regrename.c: Likewise.
737 * reload.c: Likewise.
738 * reload1.c: Likewise.
740 * resource.c: Likewise.
741 * rtlanal.c: Likewise.
742 * sched-deps.c: Likewise.
743 * sched-ebb.c: Likewise.
744 * sched-rgn.c: Likewise.
745 * sel-sched-dump.c: Likewise.
746 * sel-sched-ir.c: Likewise.
747 * sel-sched.c: Likewise.
748 * shrink-wrap.c: Likewise.
749 * simplify-rtx.c: Likewise.
750 * statistics.c: Likewise.
752 * stor-layout.c: Likewise.
753 * store-motion.c: Likewise.
754 * symtab.c: Likewise.
755 * targhooks.c: Likewise.
756 * toplev.c: Likewise.
757 * trans-mem.c: Likewise.
758 * tree-cfg.c: Likewise.
759 * tree-cfgcleanup.c: Likewise.
760 * tree-dfa.c: Likewise.
761 * tree-eh.c: Likewise.
762 * tree-inline.c: Likewise.
763 * tree-into-ssa.c: Likewise.
764 * tree-nested.c: Likewise.
765 * tree-nrv.c: Likewise.
766 * tree-profile.c: Likewise.
767 * tree-ssa-alias.c: Likewise.
768 * tree-ssa-ccp.c: Likewise.
769 * tree-ssa-copy.c: Likewise.
770 * tree-ssa-copyrename.c: Likewise.
771 * tree-ssa-dom.c: Likewise.
772 * tree-ssa-operands.c: Likewise.
773 * tree-ssa-propagate.c: Likewise.
774 * tree-ssa-structalias.c: Likewise.
775 * tree-ssa-tail-merge.c: Likewise.
776 * tree-ssa-threadedge.c: Likewise.
777 * tree-ssa-threadupdate.c: Likewise.
778 * tree-ssa-uncprop.c: Likewise.
779 * tree-ssa-uninit.c: Likewise.
780 * tree-ssa.c: Likewise.
781 * tree-stdarg.c: Likewise.
782 * tree-tailcall.c: Likewise.
785 * valtrack.c: Likewise.
786 * varasm.c: Likewise.
787 * vmsdbgout.c: Likewise.
789 * config/aarch64/aarch64.c: Add flattened includes from function.h.
790 * config/alpha/alpha.c: Likewise.
791 * config/arc/arc.c: Likewise.
792 * config/arm/arm.c: Likewise.
793 * config/avr/avr-log.c: Likewise.
794 * config/avr/avr.c: Likewise.
795 * config/bfin/bfin.c: Likewise.
796 * config/c6x/c6x.c: Likewise.
797 * config/cr16/cr16.c: Likewise.
798 * config/cris/cris.c: Likewise.
799 * config/darwin.c: Likewise.
800 * config/epiphany/epiphany.c: Likewise.
801 * config/epiphany/mode-switch-use.c: Likewise.
802 * config/epiphany/resolve-sw-modes.c: Likewise.
803 * config/fr30/fr30.c: Likewise.
804 * config/frv/frv.c: Likewise.
805 * config/h8300/h8300.c: Likewise.
806 * config/i386/i386.c: Likewise.
807 * config/ia64/ia64.c: Likewise.
808 * config/iq2000/iq2000.c: Likewise.
809 * config/lm32/lm32.c: Likewise.
810 * config/m32c/m32c.c: Likewise.
811 * config/m32r/m32r.c: Likewise.
812 * config/m68k/m68k.c: Likewise.
813 * config/mcore/mcore.c: Likewise.
814 * config/mep/mep-pragma.c: Likewise.
815 * config/mep/mep.c: Likewise.
816 * config/microblaze/microblaze.c: Likewise.
817 * config/mips/mips.c: Likewise.
818 * config/mmix/mmix.c: Likewise.
819 * config/mn10300/mn10300.c: Likewise.
820 * config/moxie/moxie.c: Likewise.
821 * config/msp430/msp430.c: Likewise.
822 * config/nds32/nds32-cost.c: Likewise.
823 * config/nds32/nds32-fp-as-gp.c: Likewise.
824 * config/nds32/nds32-intrinsic.c: Likewise.
825 * config/nds32/nds32-isr.c: Likewise.
826 * config/nds32/nds32-md-auxiliary.c: Likewise.
827 * config/nds32/nds32-memory-manipulation.c: Likewise.
828 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
829 * config/nds32/nds32-predicates.c: Likewise.
830 * config/nds32/nds32.c: Likewise.
831 * config/nios2/nios2.c: Likewise.
832 * config/pa/pa.c: Likewise.
833 * config/pdp11/pdp11.c: Likewise.
834 * config/rl78/rl78.c: Likewise.
835 * config/rs6000/rs6000.c: Likewise.
836 * config/rx/rx.c: Likewise.
837 * config/s390/s390.c: Likewise.
838 * config/score/score.c: Likewise.
839 * config/sh/sh.c: Likewise.
840 * config/sparc/sparc.c: Likewise.
841 * config/spu/spu.c: Likewise.
842 * config/stormy16/stormy16.c: Likewise.
843 * config/tilegx/tilegx.c: Likewise.
844 * config/tilepro/tilepro.c: Likewise.
845 * config/v850/v850.c: Likewise.
846 * config/vax/vax.c: Likewise.
847 * config/xtensa/xtensa.c: Likewise.
849 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
851 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
852 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
854 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
856 * config/sh/sh-protos.h (fldi_ok): Remove.
857 * config/sh/sh.c (fldi_ok): Likewise.
858 (sh_secondary_reload): Don't use fldi_ok.
859 * config/sh/constraints.md (G constraint, H constraint): Don't use
862 2014-10-16 Martin Liska <mliska@suse.cz>
864 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
865 Cast to unsigned long.
866 (sem_item_optimizer::dump_cong_classes): Likewise.
868 2014-10-16 Tom de Vries <tom@codesourcery.com>
870 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
871 with SSA_NAME_IN_FREELIST.
873 2014-10-16 Richard Biener <rguenther@suse.de>
876 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
877 (fold_builtin_strncat_chk): Move ...
878 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
879 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
881 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
884 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
887 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
888 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
889 Anna Tikhonova <anna.tikhonova@intel.com>
890 Ilya Tocar <ilya.tocar@intel.com>
891 Andrey Turetskiy <andrey.turetskiy@intel.com>
892 Ilya Verbin <ilya.verbin@intel.com>
893 Kirill Yukhin <kirill.yukhin@intel.com>
894 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
896 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
899 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
900 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
901 Anna Tikhonova <anna.tikhonova@intel.com>
902 Ilya Tocar <ilya.tocar@intel.com>
903 Andrey Turetskiy <andrey.turetskiy@intel.com>
904 Ilya Verbin <ilya.verbin@intel.com>
905 Kirill Yukhin <kirill.yukhin@intel.com>
906 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
908 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
909 V16SI, V32HI, V64QI modes.
911 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
914 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
915 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
917 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
918 to match fp insn patterns.
919 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
921 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
922 expand_df_unop, expand_df_binop): Remove.
923 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
924 FPSCR_STAT_REG as not call clobbered.
925 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
926 invoking fpscr_set_from_mem.
928 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
929 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
931 (REGISTER_NAMES): Adjust.
932 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
933 (FIRST_PSEUDO_REGISTER): Increase to 156.
934 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
935 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
937 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
938 FPSCR_MODES_REG and FPSCR_STAT_REG.
939 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
941 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
942 FPSCR_SZ): Add new constants.
943 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
945 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
946 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
947 Use TARGET_FPU_ANY condition.
948 (fpu_switch peephole2): Remove.
949 (fpu_switch split): Use simple_mem_operand to capture the mem and
950 adjust split implementation.
951 (extend_psi_si, truncate_si_psi): New insns.
952 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
953 set of FPSCR_MODES_REG.
955 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
956 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
957 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
958 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
959 call_value_compact, call_value_compact_rettramp, call,
960 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
961 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
962 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
963 sibcall_value_compact, sibcall_value, call_value_pop_compact,
964 call_value_pop_compact_rettramp, various unnamed splits):
965 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
968 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
969 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
970 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
971 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
972 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
974 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
975 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
976 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
977 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
978 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
979 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
980 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
982 2014-10-16 Martin Liska <mliska@suse.cz>
983 Jan Hubicka <hubicka@ucw.cz>
985 * Makefile.in: New object files included.
986 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
988 (verify_edge_corresponds_to_fndecl): More sensitive verification
989 of nodes that are merged by IPA ICF.
990 * cgraph.h (cgraph_node::num_references): New function.
991 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
992 * common.opt: New options ipa-icf, ipa-icf-functions and
993 ipa-icf-variables introduced.
994 * doc/invoke.texi: Documentation of new options introduced.
995 * ipa-icf-gimple.c: New file.
996 * ipa-icf-gimple.h: New file.
997 * ipa-icf.c: New file.
998 * ipa-icf.h: New file.
999 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1000 (input_overwrite_node): Likewise.
1001 * lto-section-in.c: New icf section added.
1002 * lto-streamer.h (enum lto_section_type): Likewise.
1003 * opts.c (common_handle_option): New option added.
1004 * passes.def: New pass included.
1005 * timevar.def: Time variable for IPA ICF added.
1006 * tree-pass.h: New IPA ICF pass entry point added.
1008 2014-10-16 Richard Biener <rguenther@suse.de>
1010 PR tree-optimization/63168
1011 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1012 latches if after merging they are no longer simple.
1013 * cfghooks.c (merge_blocks): Handle merging a latch block
1016 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1017 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1018 Anna Tikhonova <anna.tikhonova@intel.com>
1019 Ilya Tocar <ilya.tocar@intel.com>
1020 Andrey Turetskiy <andrey.turetskiy@intel.com>
1021 Ilya Verbin <ilya.verbin@intel.com>
1022 Kirill Yukhin <kirill.yukhin@intel.com>
1023 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1025 * config/i386/sse.md
1026 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1027 support AVX-512VL instructions.
1029 2014-10-16 DJ Delorie <dj@redhat.com>
1031 * tree-core.h: Fix comment to not assume pointers are multiples of
1034 2014-10-15 Tom Tromey <tromey@redhat.com>
1036 * timevar.h (class auto_timevar): New class.
1038 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
1041 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1042 Remove the second alternative.
1043 (regprefix): Remove mode attribute.
1044 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1045 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1048 2013-11-05 Ian Lance Taylor <iant@google.com>
1050 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1051 If possible, add .cfi directives to record change to bx.
1052 * config/i386/i386.c (ix86_emit_cfi): New function.
1053 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1055 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
1058 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1060 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1063 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
1065 PR rtl-optimization/63448
1066 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
1067 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
1068 (LRA_MAX_INHERITANCE_PASSES): Use it.
1069 (lra_constraint_iter_after_spill): Remove.
1070 (lra_assignment_iter): New.
1071 (lra_assignment_iter_after_spill): New.
1072 * lra-assigns.c (lra_assignment_iter): New.
1073 (lra_assignment_iter_after_spill): New.
1074 (former_reload_pseudo_spill_p): New.
1075 (spill_for): Set up former_reload_pseudo_spill_p.
1076 (setup_live_pseudos_and_spill_after_risky): Ditto.
1077 (assign_by_spills): Ditto.
1078 (lra_assign): Increment lra_assignment_iter. Print the iteration
1079 number. Reset former_reload_pseudo_spill_p. Check
1080 lra_assignment_iter_after_spill.
1081 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
1082 lra_assignment_iter and lra_assignment_iter_after_spill.
1083 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
1084 (lra_constraints): Remove code with
1085 lra_assignment_iter_after_spill.
1087 2014-10-15 Teresa Johnson <tejohnson@google.com>
1090 * tree-ssa-threadupdate.c (recompute_probabilities): Better
1093 2014-10-15 Renlin Li <renlin.li@arm.com>
1095 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1096 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
1097 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
1098 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
1100 2014-10-15 Richard Biener <rguenther@suse.de>
1102 * gimple-fold.c (gimple_fold_call): Properly keep virtual
1103 SSA form up-to-date when devirtualizing a call to
1104 __builtin_unreachable and avoid fixing up EH info here.
1106 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1107 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1108 Anna Tikhonova <anna.tikhonova@intel.com>
1109 Ilya Tocar <ilya.tocar@intel.com>
1110 Andrey Turetskiy <andrey.turetskiy@intel.com>
1111 Ilya Verbin <ilya.verbin@intel.com>
1112 Kirill Yukhin <kirill.yukhin@intel.com>
1113 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1115 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
1116 to support AVX-512BW.
1117 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
1118 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
1119 (define_insn "*<plusminus_insn><mode>3"): Ditto.
1120 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
1121 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1122 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
1123 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1124 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
1125 (define_insn "*andnot<mode>3"): Ditto.
1126 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
1127 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
1128 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1129 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
1130 (define_insn "*abs<mode>2"): Remove masking support.
1131 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
1132 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
1133 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
1135 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1136 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1137 Anna Tikhonova <anna.tikhonova@intel.com>
1138 Ilya Tocar <ilya.tocar@intel.com>
1139 Andrey Turetskiy <andrey.turetskiy@intel.com>
1140 Ilya Verbin <ilya.verbin@intel.com>
1141 Kirill Yukhin <kirill.yukhin@intel.com>
1142 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1144 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
1145 * config/i386/sse.md
1146 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
1147 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
1148 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
1149 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1150 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1151 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1152 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1154 2014-10-15 Renlin Li <renlin.li@arm.com>
1156 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
1158 2014-10-15 Jakub Jelinek <jakub@redhat.com>
1160 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
1161 MINUS_EXPR in unsigned type to avoid undefined behavior.
1163 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
1165 * stor-layout.c (self_referential_size): Do not promote arguments.
1167 2014-10-15 Marek Polacek <polacek@redhat.com>
1169 * doc/invoke.texi: Update to reflect that GNU11 is the default
1171 * c-common.h (c_language_kind): Update comment.
1173 2014-10-15 Richard Biener <rguenther@suse.de>
1175 * hash-table.c: Include bconfig.h if building for the host.
1176 * hash-table.h: Do not include ggc.h on the host but just declare
1177 a few ggc allocation templates.
1179 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
1180 Jeff Law <law@redhat.com>
1182 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
1183 multiple hard registers, use smaller mode derived from MODE.
1185 2014-10-15 Andreas Schwab <schwab@suse.de>
1187 * explow.c (convert_memory_address_addr_space_1): Mark in_const
1188 as ATTRIBUTE_UNUSED.
1190 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
1192 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
1193 (decide_unrolling): ... this one.
1194 (peel_loops_completely): Remove.
1195 (decide_peel_simple): Remove.
1196 (decide_peel_once_rolling): Remove.
1197 (decide_peel_completely): Remove.
1198 (peel_loop_simple): Remove.
1199 (peel_loop_completely): Remove.
1200 (unroll_and_peel_loops): Rename to ...
1201 (unroll_loops): ... this one; handle only unrolling.
1202 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
1205 (unroll_and_peel_loops): Remove.
1206 (unroll_loops): New.
1207 * passes.def: Replace
1208 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
1209 * loop-init.c (gate_rtl_unroll_and_peel_loops,
1210 rtl_unroll_and_peel_loops): Rename to ...
1211 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
1212 (pass_rtl_unroll_and_peel_loops): Rename to ...
1213 (pass_rtl_unroll_loops): ... this one.
1214 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
1215 (make_pass_rtl_unroll_loops): New.
1216 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
1217 (canonicalize_loop_induction_variables): Update.
1219 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1221 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
1222 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
1223 !TARGET_HARD_FLOAT_POSTINC.
1224 (*lsip, *ssip): new instructions.
1226 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1228 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
1231 2014-10-14 Andrew Pinski <apinski@cavium.com>
1233 * explow.c (convert_memory_address_addr_space): Rename to ...
1234 (convert_memory_address_addr_space_1): This. Add in_const argument.
1235 Inside a CONST RTL, permute the conversion and addition of constant
1236 for zero and sign extended pointers.
1237 (convert_memory_address_addr_space): New function.
1239 2014-10-14 Andrew Pinski <apinski@cavium.com>
1242 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
1245 * explow.c (convert_memory_address_addr_space): Also permute the
1246 conversion and addition of constant for zero-extend.
1248 2014-10-14 DJ Delorie <dj@redhat.com>
1250 * config/msp430/msp430-modes.def (PSI): Add.
1252 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
1253 (msp430_hard_regno_nregs_with_padding): New.
1254 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
1255 (msp430_hard_regno_nregs_has_padding): New.
1256 (msp430_hard_regno_nregs_with_padding): New.
1257 (msp430_unwind_word_mode): Use PSImode instead of SImode.
1258 (msp430_addr_space_legitimate_address_p): New.
1259 (msp430_asm_integer): New.
1260 (msp430_init_dwarf_reg_sizes_extra): New.
1261 (msp430_print_operand): Use X suffix for PSImode even in small model.
1262 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
1263 (PTR_SIZE): ...but 4 bytes for EH.
1264 (SIZE_TYPE): Use __int20.
1265 (PTRDIFF_TYPE): Likewise.
1266 (INCOMING_FRAME_SP_OFFSET): Adjust.
1267 * config/msp430/msp430.md (movqi_topbyte): New.
1268 (movpsi): Use fixed suffixes.
1269 (movsipsi2): Enable for 430X, not large model.
1270 (extendhipsi2): Likewise.
1271 (zero_extendhisi2): Likewise.
1272 (zero_extendhisipsi2): Likewise.
1273 (extend_and_shift1_hipsi2): Likewise.
1274 (extendpsisi2): Likewise.
1275 (*bitbranch<mode>4_z): Fix suffix logic.
1277 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
1280 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
1281 do not choke on null node.
1282 <VAR_DECL>: Likewise.
1284 2014-10-14 DJ Delorie <dj@redhat.com>
1286 * machmode.h (int_n_data_t): New.
1287 (int_n_enabled_p): New.
1289 * tree.c (int_n_enabled_p): New.
1291 (make_or_reuse_type): Check for all __intN types, not just
1293 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
1295 * tree.h (int128_integer_type_node): Remove.
1296 (int128_unsigned_type_node): Remove.
1297 (int_n_trees_t): New.
1298 (int_n_enabled_p): New.
1300 * toplev.c (standard_type_bitsize): New.
1301 (do_compile): Check which __intN types are enabled for the current
1303 * builtin-types.def (BT_INT128): Remove.
1304 (BT_UINT128): Remove.
1305 * machmode.def: Add macro to create __int128 for all targets.
1306 * stor-layout.c (mode_for_size): Support __intN types.
1307 (smallest_mode_for_size): Likewise.
1308 (initialize_sizetypes): Support __intN types.
1309 * genmodes.c (struct mode_data): Add int_n field.
1310 (blank_mode): Likewise.
1313 (emit_insn_modes_h): Count __intN entries and define
1315 (emit_mode_int_n): New.
1316 (emit_insn_modes_c): Call it.
1317 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1318 types, not just __int128.
1319 * tree-core.h (integer_type_kind): Remove __int128-specific
1320 entries, reserve spots for __intN entries.
1322 * config/msp430/msp430-modes.def (PSI): Add.
1324 2014-10-14 Kito Cheng <kito@0xlab.org>
1326 * ira.c: Fix typo in comment.
1328 * ira-build.c: Ditto.
1329 * ira-color.c: Ditto.
1330 * ira-emit.c: Ditto.
1332 * ira-lives.c: Ditto.
1334 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
1336 PR rtl-optimization/63475
1337 * alias.c (true_dependence_1): Always use get_addr to extract
1338 true address operands from x_addr and mem_addr. Use extracted
1339 address operands to check for references with alignment ANDs.
1340 Use extracted address operands with find_base_term and
1341 base_alias_check. For noncanonicalized operands call canon_rtx with
1342 extracted address operand.
1343 (write_dependence_1): Ditto.
1344 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
1346 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
1349 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1352 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1353 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1354 Anna Tikhonova <anna.tikhonova@intel.com>
1355 Ilya Tocar <ilya.tocar@intel.com>
1356 Andrey Turetskiy <andrey.turetskiy@intel.com>
1357 Ilya Verbin <ilya.verbin@intel.com>
1358 Kirill Yukhin <kirill.yukhin@intel.com>
1359 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1361 * config/i386/i386.c
1362 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1363 (ix86_expand_int_vcond): Ditto.
1365 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1366 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1367 Anna Tikhonova <anna.tikhonova@intel.com>
1368 Ilya Tocar <ilya.tocar@intel.com>
1369 Andrey Turetskiy <andrey.turetskiy@intel.com>
1370 Ilya Verbin <ilya.verbin@intel.com>
1371 Kirill Yukhin <kirill.yukhin@intel.com>
1372 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1374 * config/i386/i386.c
1375 (emit_reduc_half): Handle V64QI and V32HI mode.
1376 * config/i386/sse.md
1377 (define_mode_iterator VI_AVX512BW): New.
1378 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1380 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1381 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1382 Anna Tikhonova <anna.tikhonova@intel.com>
1383 Ilya Tocar <ilya.tocar@intel.com>
1384 Andrey Turetskiy <andrey.turetskiy@intel.com>
1385 Ilya Verbin <ilya.verbin@intel.com>
1386 Kirill Yukhin <kirill.yukhin@intel.com>
1387 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1389 * config/i386/sse.md
1390 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1392 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1393 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1394 Anna Tikhonova <anna.tikhonova@intel.com>
1395 Ilya Tocar <ilya.tocar@intel.com>
1396 Andrey Turetskiy <andrey.turetskiy@intel.com>
1397 Ilya Verbin <ilya.verbin@intel.com>
1398 Kirill Yukhin <kirill.yukhin@intel.com>
1399 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1401 * config/i386/i386.c
1402 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1403 * config/i386/sse.md
1404 (define_mode_iterator VI): Add V64QI and V32HI modes.
1406 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1407 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1408 Anna Tikhonova <anna.tikhonova@intel.com>
1409 Ilya Tocar <ilya.tocar@intel.com>
1410 Andrey Turetskiy <andrey.turetskiy@intel.com>
1411 Ilya Verbin <ilya.verbin@intel.com>
1412 Kirill Yukhin <kirill.yukhin@intel.com>
1413 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1415 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
1417 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1418 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1419 Anna Tikhonova <anna.tikhonova@intel.com>
1420 Ilya Tocar <ilya.tocar@intel.com>
1421 Andrey Turetskiy <andrey.turetskiy@intel.com>
1422 Ilya Verbin <ilya.verbin@intel.com>
1423 Kirill Yukhin <kirill.yukhin@intel.com>
1424 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1426 * config/i386/sse.md
1427 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1428 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1430 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1431 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1432 Anna Tikhonova <anna.tikhonova@intel.com>
1433 Ilya Tocar <ilya.tocar@intel.com>
1434 Andrey Turetskiy <andrey.turetskiy@intel.com>
1435 Ilya Verbin <ilya.verbin@intel.com>
1436 Kirill Yukhin <kirill.yukhin@intel.com>
1437 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1439 * config/i386/sse.md
1440 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1441 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1443 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1444 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1445 Anna Tikhonova <anna.tikhonova@intel.com>
1446 Ilya Tocar <ilya.tocar@intel.com>
1447 Andrey Turetskiy <andrey.turetskiy@intel.com>
1448 Ilya Verbin <ilya.verbin@intel.com>
1449 Kirill Yukhin <kirill.yukhin@intel.com>
1450 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1452 * config/i386/sse.md
1453 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1454 (define_mode_iterator VI2_AVX2): Add V32HI mode.
1455 (define_expand "mul<mode>3<mask_name>"): Add masking.
1456 (define_insn "*mul<mode>3<mask_name>"): Ditto.
1457 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
1458 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
1459 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
1460 (define_mode_attr SDOT_PMADD_SUF): Ditto.
1461 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
1462 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
1463 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
1464 (define_insn "avx2_packusdw"): Delete.
1465 (define_insn "sse4_1_packusdw"): Ditto.
1466 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
1468 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1469 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1470 Anna Tikhonova <anna.tikhonova@intel.com>
1471 Ilya Tocar <ilya.tocar@intel.com>
1472 Andrey Turetskiy <andrey.turetskiy@intel.com>
1473 Ilya Verbin <ilya.verbin@intel.com>
1474 Kirill Yukhin <kirill.yukhin@intel.com>
1475 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1477 * config/i386/sse.md
1478 (define_insn "vec_dup<mode>"): Update constraints.
1480 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1481 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1482 Anna Tikhonova <anna.tikhonova@intel.com>
1483 Ilya Tocar <ilya.tocar@intel.com>
1484 Andrey Turetskiy <andrey.turetskiy@intel.com>
1485 Ilya Verbin <ilya.verbin@intel.com>
1486 Kirill Yukhin <kirill.yukhin@intel.com>
1487 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1489 * config/i386/sse.md
1490 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
1491 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
1492 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
1494 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1495 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1496 Anna Tikhonova <anna.tikhonova@intel.com>
1497 Ilya Tocar <ilya.tocar@intel.com>
1498 Andrey Turetskiy <andrey.turetskiy@intel.com>
1499 Ilya Verbin <ilya.verbin@intel.com>
1500 Kirill Yukhin <kirill.yukhin@intel.com>
1501 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1503 * config/i386/sse.md
1504 (define_expand "mul<mode>3<mask_name>"): Add masking.
1506 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1507 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1508 Anna Tikhonova <anna.tikhonova@intel.com>
1509 Ilya Tocar <ilya.tocar@intel.com>
1510 Andrey Turetskiy <andrey.turetskiy@intel.com>
1511 Ilya Verbin <ilya.verbin@intel.com>
1512 Kirill Yukhin <kirill.yukhin@intel.com>
1513 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1515 * config/i386/sse.md
1516 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
1517 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
1519 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1520 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1521 Anna Tikhonova <anna.tikhonova@intel.com>
1522 Ilya Tocar <ilya.tocar@intel.com>
1523 Andrey Turetskiy <andrey.turetskiy@intel.com>
1524 Ilya Verbin <ilya.verbin@intel.com>
1525 Kirill Yukhin <kirill.yukhin@intel.com>
1526 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1528 * config/i386/sse.md
1529 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
1530 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
1531 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
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/sse.md
1544 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
1545 use VF_128_256 mode iterator and update assembler emit code.
1546 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
1547 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
1548 Add masking, use VF_128_256 mode iterator.
1549 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
1550 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
1551 Add masking, use VF_128_256 mode iterator and update assembler emit
1553 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
1554 (define_mode_attr avx512flogicsuff): Delete.
1555 (define_insn "avx512f_<logic><mode>"): Ditto.
1556 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
1558 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1560 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1561 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1562 Anna Tikhonova <anna.tikhonova@intel.com>
1563 Ilya Tocar <ilya.tocar@intel.com>
1564 Andrey Turetskiy <andrey.turetskiy@intel.com>
1565 Ilya Verbin <ilya.verbin@intel.com>
1566 Kirill Yukhin <kirill.yukhin@intel.com>
1567 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1569 * config/i386/sse.md
1570 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
1571 (define_expand "vashr<mode>3<mask_name>"): Add masking,
1572 use VI12_128 mode iterator.
1573 (define_expand "ashrv2di3<mask_name>"): New.
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/i386.c
1585 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
1586 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
1587 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
1588 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
1589 CODE_FOR_avx512vl_ucmpv4si3_mask.
1590 * config/i386/sse.md
1591 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
1592 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
1594 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
1595 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
1596 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
1597 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
1598 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
1599 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
1601 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1602 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1603 Anna Tikhonova <anna.tikhonova@intel.com>
1604 Ilya Tocar <ilya.tocar@intel.com>
1605 Andrey Turetskiy <andrey.turetskiy@intel.com>
1606 Ilya Verbin <ilya.verbin@intel.com>
1607 Kirill Yukhin <kirill.yukhin@intel.com>
1608 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1610 * config/i386/sse.md
1611 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
1612 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
1613 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
1614 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
1615 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
1616 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
1617 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1618 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1619 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
1621 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1622 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1623 Anna Tikhonova <anna.tikhonova@intel.com>
1624 Ilya Tocar <ilya.tocar@intel.com>
1625 Andrey Turetskiy <andrey.turetskiy@intel.com>
1626 Ilya Verbin <ilya.verbin@intel.com>
1627 Kirill Yukhin <kirill.yukhin@intel.com>
1628 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1630 * config/i386/sse.md
1631 (define_insn "avx512f_blendm<mode>"): Delete.
1632 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
1633 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
1634 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
1635 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
1637 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1640 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1643 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1645 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
1646 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
1647 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
1648 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
1651 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
1654 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
1656 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
1659 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
1662 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
1665 2014-10-14 Richard Biener <rguenther@suse.de>
1667 PR tree-optimization/63512
1668 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
1671 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
1674 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
1675 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
1677 (negsf2_i): Rename to *negsf2_i.
1678 (abssf2_i): Rename to *abssf2_i.
1679 (negdf2_i): Rename to *negdf2_i.
1680 (absdf2_i): Rename to *absdf2_i.
1682 2014-10-14 Felix Yang <felix.yang@huawei.com>
1683 Jeff Law <law@redhat.com>
1685 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
1686 "replace" into boolean bitfields; turn member "loop_depth" into a short
1687 integer; add new member "no_equiv" and "reserved".
1688 (no_equiv): Set no_equiv of struct equivalence if register is marked
1689 as having no known equivalence.
1690 (update_equiv_regs): Check all definitions for a multiple-set
1691 register to make sure that the RHS have the same value.
1693 2014-10-13 Richard Henderson <rth@redhat.com>
1695 * combine-stack-adj.c (no_unhandled_cfa): New.
1696 (maybe_merge_cfa_adjust): New.
1697 (combine_stack_adjustments_for_block): Use them.
1699 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
1701 * Makefile.in (TAGS): Tag ../include files.
1703 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1705 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
1706 to rs6000_dbx_register_number.
1707 (DWARF_FRAME_REGNUM): Redefine as identity map.
1708 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
1709 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
1710 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
1711 argument to handle .debug_frame and .eh_frame directly. Always
1712 translate SPE high register numbers. Add special treatment for CR,
1713 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
1715 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
1716 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
1717 (RS6000_USE_DWARF_NUMBERING): Define.
1718 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
1719 (RS6000_USE_DWARF_NUMBERING): Define.
1720 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
1721 (RS6000_USE_DWARF_NUMBERING): Define.
1722 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
1723 (RS6000_USE_DWARF_NUMBERING): Define.
1724 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
1725 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
1727 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
1729 * config/i386/i386.c (ix86_address_cost): Lower cost for
1730 when address contains GOT register.
1732 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
1733 Vladimir Makarov <vmakarov@redhat.com>
1737 PR rtl-optimization/55458
1738 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
1739 (ix86_init_pic_reg): New.
1740 (ix86_select_alt_pic_regnum): Add check on pseudo register.
1741 (ix86_save_reg): Likewise.
1742 (ix86_expand_prologue): Remove PIC register initialization
1743 now performed in ix86_init_pic_reg.
1744 (ix86_output_function_epilogue): Add check on pseudo register.
1745 (set_pic_reg_ever_alive): New.
1746 (legitimize_pic_address): Replace df_set_regs_ever_live with new
1747 set_pic_reg_ever_alive.
1748 (legitimize_tls_address): Likewise.
1749 (ix86_pic_register_p): New check.
1750 (ix86_delegitimize_address): Add check on pseudo register.
1751 (ix86_expand_call): Insert move from pseudo PIC register to ABI
1752 defined REAL_PIC_OFFSET_TABLE_REGNUM.
1753 (TARGET_INIT_PIC_REG): New.
1754 (TARGET_USE_PSEUDO_PIC_REG): New.
1755 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
1756 if pic_offset_table_rtx exists.
1757 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
1759 * doc/tm.texi: Regenerate.
1760 * function.c (assign_parms): Generate pseudo register for PIC.
1761 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
1763 * ira-color.c (color_pass): Add check on pseudo register.
1764 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
1766 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
1768 (ira): Add target specific PIC register initialization.
1769 (do_reload): Keep PIC pseudo register.
1770 * lra-assigns.c (spill_for): Add checks on pseudo register.
1771 * lra-constraints.c (contains_symbol_ref_p): New.
1772 (lra_constraints): Enable lra risky transformations when PIC is pseudo
1774 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
1775 * target.def (use_pseudo_pic_reg): New.
1776 (init_pic_reg): New.
1778 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
1780 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
1781 Remove m_SILVERMONT and m_INTEL from the tune.
1783 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1786 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
1787 when _HPUX_SOURCE is defined.
1789 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
1791 PR tree-optimization/62127
1792 * tree.c (remap_type_1): When remapping array, remap
1795 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
1797 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
1798 longer impact parallelization.
1800 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
1803 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
1805 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
1807 * asan.c (instrument_derefs): BIT_FIELD_REF added.
1809 2014-10-13 Richard Biener <rguenther@suse.de>
1811 PR tree-optimization/63419
1812 * gimple-fold.h (gimple_convert): New function.
1813 * gimple-fold.c (gimple_convert): Likewise.
1814 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
1815 to split out required conversions early.
1817 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
1819 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
1820 Add the parts of an insn in reverse order, with the pattern at
1821 the top of the queue. Detect when we're iterating over a SEQUENCE
1822 pattern and in that case just consider patterns of subinstructions.
1824 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
1827 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
1829 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
1831 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
1832 address. Use def chains to handle GBR clobbering call insns.
1834 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1836 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
1837 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
1838 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
1839 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
1840 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
1841 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
1842 * doc/gty.texi (for_user): Document new option.
1843 * gengtype.c (create_user_defined_type): Don't try to get a struct for
1845 (walk_type): Don't error out on for_user option.
1846 (write_func_for_structure): Emit user marking routines if requested by
1848 (write_local_func_for_structure): Likewise.
1849 (main): Mark types with for_user option as used.
1850 * ggc.h (gt_pch_nx): Add overload for unsigned int.
1851 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
1852 * hash-table.h (ggc_hasher): New struct.
1853 (hash_table::create_ggc): New function.
1854 (gt_pch_nx): New overload for hash_table.
1856 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
1858 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
1859 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
1860 * config/sh/sh.c: Likewise.
1861 * config/sh/sh-mem.cc: Likewise.
1862 * config/sh/sh.md: Likewise.
1863 * config/sh/predicates.md: Likewise.
1864 * config/sh/sync.md: Likewise.
1866 2014-10-11 Martin Liska <mliska@suse.cz>
1869 * cgraphunit.c (symbol_table::process_new_functions): Missing call
1870 for call_cgraph_insertion_hooks added.
1872 2014-10-10 Jakub Jelinek <jakub@redhat.com>
1875 * stor-layout.c (min_align_of_type): Don't decrease alignment
1876 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
1877 TYPE_USER_ALIGN is set.
1879 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
1881 PR rtl-optimization/63483
1882 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
1883 references when alignment ANDs are involved.
1884 (write_dependence_p): Ditto.
1885 (may_alias_p): Ditto.
1887 2014-10-10 Marek Polacek <polacek@redhat.com>
1889 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
1890 * doc/invoke.texi: Document -fsanitize=object-size.
1891 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
1892 or it into SANITIZE_UNDEFINED.
1893 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
1894 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
1895 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
1896 * opts.c (common_handle_option): Handle -fsanitize=object-size.
1897 * ubsan.c: Include tree-object-size.h.
1898 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
1899 (ubsan_expand_bounds_ifn): Use false instead of 0.
1900 (ubsan_expand_objsize_ifn): New function.
1901 (instrument_object_size): New function.
1902 (pass_ubsan::execute): Add object size instrumentation.
1903 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
1905 2014-10-10 Richard Henderson <rth@redhat.com>
1908 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
1909 Restrict the set of expressions we're willing to move.
1911 2014-10-10 Jeff Law <law@redhat.com>
1913 * ira.c (struct equivalence): Promote INIT_INSNs field to
1914 an rtx_insn_list. Add comments.
1915 (no_equiv): Promote LIST to an rtx_insn_list. Update
1916 testing for and creating the special marker. Use methods
1917 to extract the insn and next pointers. Promote INSN to an
1919 (update_equiv_regs): Update test for special marker in the
1922 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1924 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
1925 * configure: Regenerate.
1926 * config/aarch64/aarch64.c (aarch64_override_options): Handle
1927 TARGET_FIX_ERR_A53_835769_DEFAULT.
1928 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
1930 * doc/install.texi (aarch64*-*-*): Document
1931 new --enable-fix-cortex-a53-835769 option.
1933 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1934 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1936 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
1937 (ADJUST_INSN_LENGTH): Define.
1938 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
1939 * config/aarch64/aarch64.c (is_mem_p): New function.
1940 (is_memory_op): Likewise.
1941 (aarch64_prev_real_insn): Likewise.
1942 (is_madd_op): Likewise.
1943 (dep_between_memop_and_curr): Likewise.
1944 (aarch64_madd_needs_nop): Likewise.
1945 (aarch64_final_prescan_insn): Likewise.
1946 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
1947 and -mno-fix-cortex-a53-835769 options.
1949 2014-10-10 Jakub Jelinek <jakub@redhat.com>
1951 PR tree-optimization/63464
1952 * tree-switch-conversion.c (struct case_bit_test): Remove
1953 hi and lo fields, add wide_int mask field.
1954 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
1955 hi/lo fields into wide_int mask operations, optimize by pretending
1956 minval to be 0 if maxval is small enough.
1957 (process_switch): Adjust caller.
1959 2014-10-10 Richard Biener <rguenther@suse.de>
1961 PR tree-optimization/63379
1962 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
1963 a neutral operand for min/max when it is not a reduction chain.
1965 2014-10-10 Richard Biener <rguenther@suse.de>
1967 PR tree-optimization/63476
1968 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
1969 (BB_LIVE_VOP_ON_EXIT): New define.
1970 (create_expression_by_pieces): Assign VUSEs to stmts.
1971 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
1972 (pass_pre::execute): Assert virtual SSA form is up-to-date
1975 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
1977 * lra-assigns.c (assign_by_spills): Error out on spill failure.
1979 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
1981 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
1984 2014-10-09 Richard Biener <rguenther@suse.de>
1986 PR tree-optimization/63380
1987 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
1990 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
1992 * config/avr/avr.opt (mmcu=): Change to have a string value.
1993 (mn-flash=, mskip-bug, march=, mrmw): New options.
1994 (HeaderInclude): New.
1995 (mmcu=): Remove Var / Init clauses.
1996 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
1998 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
1999 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2000 (SYMBOL_FLAG_IO_LOW): Define.
2001 (avr_device_to_as, avr_device_to_ld): Don't declare.
2002 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2003 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2004 (EXTRA_SPEC_FUNCTIONS): Don't define.
2005 (ASM_SPEC): Translate -arch= option to -mmcu= option.
2006 (LINK_SPEC): Translate -arch= option to -m= option.
2007 Don't use device_to_ld / device_to_data_start.
2008 (STARTFILE_SPEC): Now empty.
2009 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2010 * config/avr/gen-avr-mmcu-specs.c: New file.
2011 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2012 (s-device-specs): Likewise.
2013 (GCC_PASSES): Add s-device-specs.
2014 (install-driver): Depend on install-device-specs.
2015 (install-device-specs): New rule.
2016 * config/avr/avr.c (avr_option_override): Look up mcu arch by
2017 avr_arch_index and provide fallback initialization for avr_n_flash.
2018 (varasm.h): #include.
2019 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2020 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2021 (avr_attribute_table): Add "io", "address" and "io_low".
2022 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2023 Add special handling for symbols with "io" and/or "address" attributes.
2024 (avr_asm_asm_output_aligned_bss): New function.
2025 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2026 as appropriate. Handle io_low attribute.
2027 (avr_out_sbxx_branch): Handle symbolic io addresses.
2028 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2029 avr_n_flash instead of avr_current_device->n_flash.
2030 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2031 (avr_emit_movmemhi): Likewise.
2032 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2033 Use TARGET_RMW instead of avr_current_device->dev_attributes.
2034 Don't define avr_current_device->macro (that's the specfile's job).
2035 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2036 * config/avr/avr.c (avr_2word_insn_p): Likewise.
2037 * config/avr/avr.md (*cpse.ne): Likewise.
2038 (mov<mode>): Use avr_eval_addr_attrib.
2039 (cbi): Change constraint for low_io_address_operand operand to "i".
2040 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2041 * config/avr/predicates.md (io_address_operand):
2042 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2043 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2044 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2046 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2047 * config/avr/genmultilib.awk: Use -march=.
2048 Remove Multilib matches processing.
2049 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2050 * config/avr/avr-arch.h: Add double include guard.
2051 (avr_mcu_t) <library_name>: Update comment.
2052 * config/avr/driver-avr.c (avr_device_to_as): Delete.
2053 (avr_device_to_ld, avr_device_to_data_start): Likewise.
2054 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2055 (avr_device_to_sp8): Likewise.
2056 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
2058 * doc/extend.texi (io, address): Document new AVR variable attributes.
2061 2014-10-09 Marek Polacek <polacek@redhat.com>
2063 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2065 2014-10-08 Richard Biener <rguenther@suse.de>
2067 PR tree-optimization/61969
2068 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
2071 2014-10-09 Richard Biener <rguenther@suse.de>
2073 PR tree-optimization/63445
2074 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
2075 overflow for non-equality compares.
2077 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
2079 PR rtl-optimization/57003
2080 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2081 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
2082 killing regs_invalidated_by_call.
2084 2014-10-08 Teresa Johnson <tejohnson@google.com>
2087 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
2088 (ssa_fix_duplicate_block_edges): Invoke it.
2089 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
2091 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
2094 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2095 atomic_fetch_<fetchop_name>si_hard,
2096 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
2097 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
2098 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
2099 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
2101 2014-10-08 Rong Xu <xur@google.com>
2103 * gcov-tool.c (profile_overlap): New driver function
2104 to compute profile overlap.
2105 (print_overlap_usage_message): New.
2106 (overlap_usage): New.
2108 (print_usage): Add calls to overlap function.
2110 * doc/gcov-tool.texi: Add documentation.
2112 2014-10-08 Steve Ellcey <sellcey@mips.com>
2114 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
2115 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
2117 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
2119 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
2120 pattern matching of MEM_REF.
2121 (check_stmt_for_type_change): Update.
2123 2014-10-08 Steve Ellcey <sellcey@mips.com>
2125 * config/mips/linux64.h: Remove.
2126 * config/mips/gnu-user64.h: Remove.
2127 * gcc.config (mips*-*-*): Remove references to linux64.h and
2129 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
2130 with modified version from gnu-user64.h.
2131 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
2132 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
2133 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
2135 (GNU_USER_LINK_EMULATION64): Ditto.
2136 (GNU_USER_LINK_EMULATIONN32): Ditto.
2137 (GLIBC_DYNAMIC_LINKER32): Ditto.
2138 (GLIBC_DYNAMIC_LINKER64): Ditto.
2139 (GLIBC_DYNAMIC_LINKERN32): Ditto.
2140 (UCLIBC_DYNAMIC_LINKER32): Ditto.
2141 (UCLIBC_DYNAMIC_LINKER64): Ditto.
2142 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
2143 (BIONIC_DYNAMIC_LINKERN32): Ditto.
2144 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
2145 (GLIBC_DYNAMIC_LINKER): Delete.
2146 (UCLIBC_DYNAMIC_LINKER): Delete.
2148 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
2149 Richard Biener <rguenther@suse.de>
2151 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
2152 Get address space from operand 0 (BASE).
2154 2014-10-07 Iain Sandoe <iain@codesourcery.com>
2157 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
2159 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
2161 * dwarf2out.c: Remove current_function_has_inlines.
2162 (gen_subprogram_die): Same.
2163 (gen_inlined_subroutine_die): Same.
2165 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
2167 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
2169 (_addcarry_u64): Ditto.
2170 (_addcarryx_u64): Ditto.
2172 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2174 * cgraph.h (cgraph_node::get_fun): Declare.
2175 * cgraph.c (cgraph_node::get_fun): New method.
2176 * ipa-inline.c (can_inline_edge_p): Use it.
2178 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2180 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
2181 and -ftrapping-math.
2182 * lto-wrapper.c (merge_and_complain): Likewise.
2183 (run_gcc): Likewise.
2185 2014-10-06 Rong Xu <xur@google.com>
2187 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
2188 * tree-profile.c: (params.h): New include.
2189 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
2190 and __gcov_indirect_call_topn_counters for
2191 indirect_call_topn_profile.
2192 (gimple_init_edge_profiler): New decls for
2193 __gcov_indirect_call_topn_profiler.
2194 (gimple_gen_ic_profiler): Generate the correct profiler call.
2195 (gimple_gen_ic_func_profiler): Fix format.
2196 * value-prof.c (params.h): New include.
2197 (dump_histogram_value): Hanlde indirect_call_topn counters.
2198 (stream_in_histogram_value): Ditto.
2199 (gimple_indirect_call_to_profile): Use indirect_call_topn
2200 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
2201 (gimple_find_values_to_profile): Hanlde indirect_call_topn
2203 * value-prof.h (enum hist_type): Histrogram type for
2204 indirect_call_topn counters.
2205 * profile.c (instrument_values): Instrument
2206 indirect_call_topn counters.
2208 2014-10-06 Rong Xu <xur@google.com>
2210 * Makefile.in: Fix dependence.
2211 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
2212 indirect call topn profiler.
2215 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2217 * calls.c (expand_call): Do not use the target as the return slot if
2218 it is not sufficiently aligned.
2220 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2222 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
2223 discussion of permutes and why we don't handle them.
2225 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2227 * config/sparc/predicates.md (int_register_operand): Delete.
2229 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2231 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
2233 2014-10-06 Jakub Jelinek <jakub@redhat.com>
2235 * ubsan.h (ubsan_get_source_location): New prototype.
2236 * ubsan.c (ubsan_source_location_type): New variable.
2237 Function renamed to ...
2238 (ubsan_get_source_location_type): ... this. Cache
2239 return value in ubsan_source_location_type variable.
2240 (ubsan_source_location, ubsan_create_data): Use
2241 ubsan_get_source_location_type instead of
2242 ubsan_source_location_type.
2243 * asan.c (asan_protect_global): Don't protect globals
2244 with ubsan_get_source_location_type () type.
2245 (asan_add_global): Provide global decl location info
2248 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2250 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
2253 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2255 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
2257 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
2259 (ipa_polymorphic_call_context::dump): Fix formating.
2260 (walk_ssa_copies): Add logic avoiding loops; update uses.
2261 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
2263 2014-10-02 Mark Wielaard <mjw@redhat.com>
2266 * dwarf2out.c (gen_subprogram_die): When a member function is
2267 explicitly deleted then add a DW_AT_GNU_deleted attribute.
2268 * langhooks.h (struct lang_hooks_for_decls): Add
2269 function_decl_deleted_p langhook.
2270 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
2271 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
2273 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2275 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
2276 NULL pointer checks.
2277 (ipa_polymorphic_call_context::get_dynamic_type): Return true
2278 if type doesn't change.
2279 * cgraph.h (cgraph_indirect_call_info): New flag.
2280 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
2281 (cgraph_node::dump): Dump it.
2282 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
2283 of context.get_dynamic_type.
2284 (ipa_make_edge_direct_to_target): Do not speculate
2285 edge that is already speuclative.
2286 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
2287 speculate to __builtin_unreachable
2288 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
2290 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
2292 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2294 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
2295 get_dynamic_type; drop TODO.
2296 * ipa-polymorphic-call.c
2297 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
2298 for otr_type to be unknown.
2300 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2302 * common/config/score/score-common.c: Remove.
2303 * config.gcc: Remove support for score-*.
2304 * config/score/constraints.md: Remove.
2305 * config/score/elf.h: Remove.
2306 * config/score/predicates.md: Remove.
2307 * config/score/score-conv.h: Remove.
2308 * config/score/score-generic.md: Remove.
2309 * config/score/score-modes.def: Remove.
2310 * config/score/score-protos.h: Remove.
2311 * config/score/score.c: Remove.
2312 * config/score/score.h: Remove.
2313 * config/score/score.md: Remove.
2314 * config/score/score.opt: Remove.
2315 * doc/md.texi: Don't document score-*.
2317 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2320 * genconditions.c: Directly include ggc.h before rtl.h.
2322 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2324 * ipa-polymorphic-call.c
2325 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2326 code determining speculative type.
2327 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2329 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2331 * altivec.md (altivec_lvsl): New define_expand.
2332 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2333 (altivec_lvsr): New define_expand.
2334 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2335 * rs6000.c (rs6000_expand_builtin): Change to use
2336 altivec_lvs[lr]_direct; remove commented-out code.
2338 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2340 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2341 Issue a warning message when vec_lvsl or vec_lvsr is used with a
2342 little endian target.
2344 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2346 * tree-pretty-print.c (dump_location): Make it extern. Dump also
2348 * tree-pretty-print.h (dump_location): Declare.
2349 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2350 (pp_gimple_stmt_1): Likewise.
2351 (dump_implicit_edges): Likewise.
2352 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2356 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2358 * gcc.c (driver::global_initializations): Remove "const" so
2359 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2360 and decoded_options_count.
2362 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2364 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2366 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2367 TARGET_E500_DOUBLE case here.
2369 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2374 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2376 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2378 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2379 * lto-cgraph.c (lto_output_edge, input_edge): Stream
2380 in_polymorphic_cdtor
2381 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2382 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2383 * cgraphclones.c (cgraph_edge::clone): Likewise.
2384 * ipa-prop.c (update_jump_functions_after_inlining,
2385 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2386 to possible_dynamic_type_change.
2387 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2388 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2389 IN_POLY_CDOTR argument.
2391 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2392 for BASE and OUTER_TYPE being NULL.
2393 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2394 in_poly_cdtor parameter.
2396 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2398 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2399 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2401 (expand_vec_perm_1): Likewise.
2403 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2404 Uros Bizjak <ubizjak@gmail.com>
2406 PR tree-optimization/61403
2407 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2408 error in comment. Also optimize 256-bit vectors for AVX2
2409 or AVX (floating vectors only), provided the first permutation
2410 can be performed in one insn.
2412 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2414 * gcc.c (class driver): New class.
2415 (main): Reimplement in terms of driver::main, moving most of the
2416 locals to be locals within individual methods of class driver.
2417 The remaining locals "explicit_link_files", "decoded_options" and
2418 "decoded_options_count" are used by multiple driver:: methods, and
2419 so become member data. Doing so isolates the argc/argv reads and
2420 writes. Replace "goto out" with a special exit code from
2421 new method driver::prepare_infiles. Split out the old
2422 implementation of main into the following...
2423 (driver::main): New function, corresponding to the old "main"
2425 (driver::set_progname): New function, taken from the old
2426 "main" implementation.
2427 (driver::expand_at_files): Likewise.
2428 (driver::decode_argv): Likewise.
2429 (driver::global_initializations): Likewise.
2430 (driver::build_multilib_strings): Likewise.
2431 (driver::set_up_specs): Likewise.
2432 (driver::putenv_COLLECT_GCC): Likewise.
2433 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2434 (driver::handle_unrecognized_options): Likewise.
2435 (driver::maybe_print_and_exit): Likewise.
2436 (driver::prepare_infiles): Likewise.
2437 (driver::do_spec_on_infiles): Likewise.
2438 (driver::maybe_run_linker): Likewise.
2439 (driver::final_actions): Likewise.
2440 (driver::get_exit_code): Likewise.
2442 2014-10-03 Yury Gribov <y.gribov@samsung.com>
2444 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2445 don't emit empty ctors.
2447 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
2449 * convert.c (convert_to_integer): Do not introduce useless conversions
2450 between integral types.
2452 2014-10-03 David Sherwood <david.sherwood@arm.com>
2454 * ira-int.h (ira_allocno): Mark hard_regno as signed.
2456 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
2458 * lra-constraints.c (inherit_in_ebb): Handle calls with
2459 multiple return values.
2460 * caller-save.c (save_call_clobbered_regs): Likewise.
2462 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2464 * tree-vect-data-refs.c (vect_permute_load_chain,
2465 vect_shift_permute_load_chain): Fix a typo in temporary var names,
2466 suffle3 to shuffle3.
2469 * omp-low.c (taskreg_contexts): New variable.
2470 (scan_omp_parallel): Push newly created context into taskreg_contexts
2471 vector and move record layout code to finish_taskreg_scan.
2472 (scan_omp_task): Likewise.
2473 (finish_taskreg_scan): New function.
2474 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
2475 vector elements and release it.
2478 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
2479 of palignr arguments can't be used due to min 0 or max - min
2480 too high, try also op0, op1 order of palignr arguments.
2482 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
2484 * cgraph.h (ipa_polymorphic_call_context):
2485 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
2486 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
2487 * ipa-polymorphic-call.c
2488 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
2489 past end of dynamic types.
2490 (ipa_polymorphic_call_context::stream_out,
2491 speculative_outer_type): Stream dynamic flag.
2492 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
2493 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
2495 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
2497 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
2498 * ipa-prop.c (update_jump_functions_after_inlining,
2499 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
2501 2014-10-02 Teresa Johnson <tejohnson@google.com>
2503 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
2504 up when synthesizing counts to avoid rounding errors.
2506 2014-10-02 Teresa Johnson <tejohnson@google.com>
2509 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
2510 asserts to handle incoming insanities.
2512 2014-10-02 Martin Jambor <mjambor@suse.cz>
2514 PR tree-optimization/63375
2515 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
2518 2014-10-02 Olivier Hainque <hainque@adacore.com>
2520 * Makefile.in (CROSS): Define, to @CROSS.
2522 2014-10-02 Jakub Jelinek <jakub@redhat.com>
2525 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
2526 if it expands to a single insn only.
2527 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
2528 fail unless in_order is true. Add forward declaration.
2529 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
2530 is useful for one_operand_p.
2531 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
2533 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2535 * cgraphclones.c (build_function_type_skip_args): Do not make new
2536 type variant of old.
2538 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2540 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
2541 when speculation is added.
2542 (ipa_edge_args): Add polymorphic_call_contexts.
2543 (ipa_get_ith_polymorhic_call_context): New accesor.
2544 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
2545 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
2546 (ipa_compute_jump_functions_for_edge): Compute contexts.
2547 (update_jump_functions_after_inlining): Update contexts.
2548 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
2549 update dumping; add speculative edge creation.
2550 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
2552 (update_indirect_edges_after_inlining): Pass down context.
2553 (ipa_edge_duplication_hook): Duplicate contexts.
2554 (ipa_write_node_info): Stream out contexts.
2555 (ipa_read_node_info): Stream in contexts.
2556 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
2558 (try_speculative_devirtualization): New function.
2559 * ipa-utils.h (try_speculative_devirtualization): Declare.
2561 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2563 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
2566 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2568 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
2571 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2573 * ipa-polymorphic-call.c
2574 (ipa_polymorphic_call_context::restrict_to_inner_class):
2575 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
2576 use speculation_consistent_p to do so; Add CONSDER_BASES
2577 and CONSIDER_PLACEMENT_NEW parameters.
2578 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
2579 short circuit obvious cases.
2580 (ipa_polymorphic_call_context::dump): Improve formatting.
2581 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
2582 combine_speculation_with to record speculations; Do not ICE when
2583 object is located in pointer type decl; do not ICE for methods
2584 of UNION_TYPE; do not record nonpolymorphic types.
2585 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
2586 (ipa_polymorphic_call_context::combine_speculation_with): New method.
2587 (ipa_polymorphic_call_context::combine_with): New method.
2588 (ipa_polymorphic_call_context::make_speculative): Move here; use
2589 combine speculation.
2590 * cgraph.h (ipa_polymorphic_call_context): Update
2591 restrict_to_inner_class prototype; add offset_by, make_speculative,
2592 combine_with, useless_p, combine_speculation_with and
2593 speculation_consistent_p methods.
2594 (ipa_polymorphic_call_context::offset_by): New method.
2595 (ipa_polymorphic_call_context::useless_p): New method.
2597 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2599 PR rtl-optimization/62151
2600 * combine.c (can_combine_p): Allow the destination register of INSN
2601 to be clobbered in I3.
2602 (subst): Do not substitute into clobbers of registers.
2604 2014-10-01 Jakub Jelinek <jakub@redhat.com>
2607 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
2608 offset, TARGET_MEM_REF and SSA_NAME.
2610 * config/i386/i386.c (expand_vec_perm_palignr): Handle
2611 256-bit vectors for TARGET_AVX2.
2613 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
2617 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
2618 argument to avx2_permv2ti.
2620 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2622 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
2624 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
2626 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
2627 (fmod<mode>3): Ditto.
2628 (fpremxf4_i387): Ditto.
2629 (reminderxf3): Ditto.
2630 (reminder<mode>3): Ditto.
2631 (fprem1xf4_i387): Ditto.
2633 2014-09-30 Teresa Johnson <tejohnson@google.com>
2635 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
2636 duplicate_blocks bitmap.
2637 (remove_ctrl_stmt_and_useless_edges): Ditto.
2638 (create_block_for_threading): Ditto.
2639 (compute_path_counts): New function.
2640 (update_profile): Ditto.
2641 (recompute_probabilities): Ditto.
2642 (update_joiner_offpath_counts): Ditto.
2643 (freqs_to_counts_path): Ditto.
2644 (clear_counts_path): Ditto.
2645 (ssa_fix_duplicate_block_edges): Update profile info.
2646 (ssa_create_duplicates): Pass new parameter.
2647 (ssa_redirect_edges): Remove old profile update.
2648 (thread_block_1): New duplicate_blocks bitmap,
2649 remove old profile update.
2650 (thread_single_edge): Pass new parameter.
2652 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
2655 * varasm.c (decode_reg_name_and_count): Check availability for
2656 registers from ADDITIONAL_REGISTER_NAMES.
2658 2014-09-30 David Malcolm <dmalcolm@redhat.com>
2661 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
2662 (PLUGIN_HEADERS): Add pass-instances.def.
2664 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
2666 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
2668 * config/aarch64/aarch64-simd.md
2669 (aarch64_sqdmull_laneq<mode>): Expand iterator.
2670 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
2671 (vqdmulls_lane_s32): Fix return type.
2672 (vqdmulls_laneq_s32): New.
2674 2014-09-30 Jakub Jelinek <jakub@redhat.com>
2677 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
2678 or invert_jump_1 if jump isn't any_condjump_p.
2680 2014-09-30 Terry Guo <terry.guo@arm.com>
2682 * config/arm/arm-cores.def (cortex-m7): New core name.
2683 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
2685 * config/arm/arm-tables.opt: Regenerated.
2686 * config/arm/arm-tune.md: Regenerated.
2687 * config/arm/arm.h (TARGET_VFP5): New macro.
2688 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
2689 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
2690 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
2691 * doc/invoke.texi: Document new cpu and fpu names.
2693 2014-09-30 Jiong Wang <jiong.wang@arm.com>
2695 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
2696 before sinking insn.
2698 2014-09-30 David Sherwood <david.sherwood@arm.com>
2700 * ira-int.h (ira_allocno): Add "wmode" field.
2701 * ira-build.c (create_insn_allocnos): Add new "parent" function
2703 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
2704 that cannot be accessed in wmode.
2706 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2708 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
2711 2014-09-29 Andi Kleen <ak@linux.intel.com>
2713 * opts.c (print_filtered_help): Print --param min/max/default
2716 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
2718 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
2720 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
2722 * tree-vrp.c (get_single_symbol): New function.
2723 (build_symbolic_expr): Likewise.
2724 (symbolic_range_based_on_p): New predicate.
2725 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
2726 for PLUS and MINUS. Do not drop symbolic ranges at the end.
2727 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
2728 operand is symbolic and based on the other operand.
2730 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
2732 * config/microblaze/microblaze.md (call_internal1): Use VOID
2733 instead of SI to fix "((void (*)(void)) 0)()" issue
2735 2014-09-29 Nick Clifton <nickc@redhat.com>
2737 * config/msp430/msp430.c (msp430_expand_prologue): Return a
2738 CLOBBER rtx for naked functions.
2739 (msp430_expand_epilogue): Likewise.
2740 (msp430_use_f5_series_hwmult): Cache result.
2741 (use_32bit_hwmult): Cache result.
2742 (msp430_no_hwmult): New function.
2743 (msp430_output_labelref): Use it.
2745 2014-09-29 Jakub Jelinek <jakub@redhat.com>
2748 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
2749 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
2750 use the alignment of avar rather than ovar.
2752 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
2754 * config/pa/pa.c (pa_output_function_epilogue): Only update
2755 last_address when a nonnote insn is found.
2757 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2760 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
2762 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2765 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
2766 fix pasto in checking array size.
2768 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2771 * passes.def (pass_tracer): Move before last dominator pass.
2773 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
2775 * gcc.c (try_generate_repro): Remove argument "prog". Change all
2777 (run_attempt): Handle errors of "pex_run" invocation.
2779 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
2781 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
2783 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
2784 (TARGET_ASAN_SHADOW_OFFSET): Define.
2786 2014-09-26 Martin Liska <mliska@suse.cz>
2788 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
2790 * cgraph.h: Likewise.
2791 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
2792 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
2793 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
2794 * tree-ssa-alias.h: Likewise.
2796 2014-09-26 Jakub Jelinek <jakub@redhat.com>
2797 Max Ostapenko <m.ostapenko@partner.samsung.com>
2799 * common.opt: New option.
2800 * doc/invoke.texi: Describe new option.
2801 * gcc.c (execute): Don't free first string early, but at the end
2802 of the function. Call retry_ice if compiler exited with
2804 (main): Factor out common code.
2805 (print_configuration): New function.
2806 (files_equal_p): Likewise.
2807 (check_repro): Likewise.
2808 (run_attempt): Likewise.
2809 (do_report_bug): Likewise.
2810 (append_text): Likewise.
2811 (try_generate_repro): Likewise
2813 2014-09-25 Andi Kleen <ak@linux.intel.com>
2815 * config/i386/i386.c (x86_print_call_or_nop): New function.
2816 (x86_function_profiler): Support -mnop-mcount and
2818 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
2819 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
2821 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2823 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
2824 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
2825 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
2828 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2830 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
2831 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
2832 types_odr_comparable): Declare.
2833 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
2834 * ipa-polymorphic-call.c: New file.
2835 (contains_polymorphic_type_p, possible_placement_new,
2836 ipa_polymorphic_call_context::restrict_to_inner_class,
2837 contains_type_p, decl_maybe_in_construction_p,
2838 ipa_polymorphic_call_context::stream_out,
2839 ipa_polymorphic_call_context::debug,
2840 ipa_polymorphic_call_context::stream_in,
2841 ipa_polymorphic_call_context::set_by_decl,
2842 ipa_polymorphic_call_context::set_by_invariant,
2844 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2845 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
2846 extr_type_from_vtbl_ptr_store, record_known_type
2847 check_stmt_for_type_change,
2848 ipa_polymorphic_call_context::get_dynamic_type): Move here from
2850 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
2851 and streamer-hooks.h
2852 (contains_polymorphic_type_p, possible_placement_new,
2853 ipa_polymorphic_call_context::restrict_to_inner_class,
2854 contains_type_p, decl_maybe_in_construction_p,
2855 ipa_polymorphic_call_context::stream_out,
2856 ipa_polymorphic_call_context::debug,
2857 ipa_polymorphic_call_context::stream_in,
2858 ipa_polymorphic_call_context::set_by_decl,
2859 ipa_polymorphic_call_context::set_by_invariant,
2861 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2862 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
2863 extr_type_from_vtbl_ptr_store, record_known_type
2864 check_stmt_for_type_change,
2865 ipa_polymorphic_call_context::get_dynamic_type): Move to
2866 ipa-polymorphic-call.c
2867 (type_all_derivations_known_p, types_odr_comparable,
2868 types_must_be_same_for_odr): Export.
2869 (type_known_to_have_no_deriavations_p): New function.
2870 * Makefile.in: Add ipa-polymorphic-call.c
2872 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2874 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
2876 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
2877 (possible_polymorphic_call_targets): Instead of computing both
2878 speculative and non-speculative answers, do just one at a time.
2879 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
2880 (dump_targets): Break out from ...
2881 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
2882 and non-speculative lists.
2883 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
2884 * ipa-utils.h (possible_polymorphic_call_targets): Update.
2886 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
2888 PR rtl-optimization/63348
2889 * emit-rtl.c (try_split): Do not emit extra barrier.
2891 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
2893 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
2894 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
2896 (aarch64_<sur>shll2_n<mode>): Likewise.
2897 (aarch64_<sur>shr_n<mode>): Likewise.
2898 (aarch64_<sur>sra_n<mode>: Likewise.
2899 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
2900 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
2901 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
2902 * config/aarch64/iterators.md (ve_mode): New.
2903 (offsetlr): Remap to infix text for use in new predicates.
2904 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
2905 (aarch64_simd_shift_imm_hi): Likewise.
2906 (aarch64_simd_shift_imm_si): Likewise.
2907 (aarch64_simd_shift_imm_di): Likewise.
2908 (aarch64_simd_shift_imm_offset_qi): Likewise.
2909 (aarch64_simd_shift_imm_offset_hi): Likewise.
2910 (aarch64_simd_shift_imm_offset_si): Likewise.
2911 (aarch64_simd_shift_imm_offset_di): Likewise.
2912 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
2913 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
2914 (aarch64_simd_shift_imm_bitsize_si): Likewise.
2915 (aarch64_simd_shift_imm_bitsize_di): Likewise.
2917 2014-09-25 Jiong Wang <jiong.wang@arm.com>
2919 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
2920 new created BB as the intersection of live-in from "old_dest" and
2923 2014-09-25 Felix Yang <felix.yang@huawei.com>
2925 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
2926 * genautomata.c (merge_states): Ditto.
2928 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
2931 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
2932 in instruction sequence.
2934 2014-09-25 Nick Clifton <nickc@redhat.com>
2937 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
2938 in instruction sequence.
2940 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2943 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
2944 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
2946 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2947 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2948 Anna Tikhonova <anna.tikhonova@intel.com>
2949 Ilya Tocar <ilya.tocar@intel.com>
2950 Andrey Turetskiy <andrey.turetskiy@intel.com>
2951 Ilya Verbin <ilya.verbin@intel.com>
2952 Kirill Yukhin <kirill.yukhin@intel.com>
2953 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2955 * config/i386/sse.md
2956 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
2957 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
2958 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
2959 (define_expand "<avx512>_perm<mode>_mask"): ... this.
2960 Use VI8F_256_512 mode iterator.
2961 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
2962 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
2964 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2965 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2966 Anna Tikhonova <anna.tikhonova@intel.com>
2967 Ilya Tocar <ilya.tocar@intel.com>
2968 Andrey Turetskiy <andrey.turetskiy@intel.com>
2969 Ilya Verbin <ilya.verbin@intel.com>
2970 Kirill Yukhin <kirill.yukhin@intel.com>
2971 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2973 * config/i386/sse.md
2974 (define_insn "avx_movshdup256<mask_name>"): Add masking.
2975 (define_insn "sse3_movshdup<mask_name>"): Ditto.
2976 (define_insn "avx_movsldup256<mask_name>"): Ditto.
2977 (define_insn "sse3_movsldup<mask_name>"): Ditto.
2978 (define_insn "vec_dupv2df<mask_name>"): Ditto.
2979 (define_insn "*vec_concatv2df"): Add EVEX version.
2981 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2982 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2983 Anna Tikhonova <anna.tikhonova@intel.com>
2984 Ilya Tocar <ilya.tocar@intel.com>
2985 Andrey Turetskiy <andrey.turetskiy@intel.com>
2986 Ilya Verbin <ilya.verbin@intel.com>
2987 Kirill Yukhin <kirill.yukhin@intel.com>
2988 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2990 * config/i386/sse.md
2991 (define_insn "vec_set<mode>_0"): Add EVEX version.
2993 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2994 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2995 Anna Tikhonova <anna.tikhonova@intel.com>
2996 Ilya Tocar <ilya.tocar@intel.com>
2997 Andrey Turetskiy <andrey.turetskiy@intel.com>
2998 Ilya Verbin <ilya.verbin@intel.com>
2999 Kirill Yukhin <kirill.yukhin@intel.com>
3000 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3002 * config/i386/sse.md
3004 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3006 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3007 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3008 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3009 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3010 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3011 (define_expand "sse2_cvtpd2ps_mask): New.
3012 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3013 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3015 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3016 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3017 Anna Tikhonova <anna.tikhonova@intel.com>
3018 Ilya Tocar <ilya.tocar@intel.com>
3019 Andrey Turetskiy <andrey.turetskiy@intel.com>
3020 Ilya Verbin <ilya.verbin@intel.com>
3021 Kirill Yukhin <kirill.yukhin@intel.com>
3022 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3024 * config/i386/i386.c
3025 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3026 (ufix_notruncv8dfv8si2_mask_round): ... this.
3027 * config/i386/sse.md
3028 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3029 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3030 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3031 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3032 (define_expand "sse2_cvtpd2dq"): Delete.
3033 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3034 make 2nd operand const0 vector.
3035 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3037 (define_mode_attr pd2udqsuff): New.
3039 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3040 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3041 (define_insn "*avx_cvttpd2dq256_2"): Delete.
3042 (define_expand "sse2_cvttpd2dq"): Ditto.
3043 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3044 make 2nd operand const0 vector.
3046 2014-09-25 Jakub Jelinek <jakub@redhat.com>
3048 PR tree-optimization/63341
3049 * tree-vectorizer.h (vect_create_data_ref_ptr,
3050 vect_create_addr_base_for_vector_ref): Add another tree argument
3051 defaulting to NULL_TREE.
3052 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3053 argument, pass it down to vect_create_addr_base_for_vector_ref.
3054 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3055 add that to base_offset too if non-NULL.
3056 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3057 for dr_explicit_realign_optimized set it to vector byte size
3058 - 1 instead of setting offset, pass byte_offset down to
3059 vect_create_data_ref_ptr.
3061 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3063 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
3064 forgotten debug output; canonicalize querries more wtih LTO.
3066 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3068 * cgraph.h (class ipa_polymorphic_call_context): Move here from
3069 ipa-utils.h; add stream_int and stream_out methods.
3070 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
3071 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
3072 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
3074 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3075 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3076 ipa_polymorphic_call_context::clear_speculation,
3077 ipa_polymorphic_call_context::clear_outer_type): Move here from
3079 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
3080 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3081 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3082 ipa_polymorphic_call_context::clear_speculation,
3083 ipa_polymorphic_call_context::clear_outer_type): Likewise.
3084 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
3086 (ipa_polymorphic_call_context::stream_out): New method.
3087 (ipa_polymorphic_call_context::stream_in): New method.
3088 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
3089 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
3091 (ipa_analyze_call_uses): Simplify.
3092 (update_indirect_edges_after_inlining): Do not care about outer_type.
3093 (ipa_write_indirect_edge_info): Update.
3094 (ipa_write_indirect_edge_info): Likewise.
3095 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
3096 (dump_edge_flags): Break out from ...
3097 (cgraph_node::dump): ... here; dump indirect edges.
3099 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3101 * ipa-utils.h (polymorphic_call_context): Add
3102 metdhos dump, debug and clear_outer_type.
3103 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3104 (ipa_polymorphic_call_context::clear_outer_type): New method.
3105 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
3106 * ipa-devirt.c (types_odr_comparable): New function.
3107 (types_must_be_same_for_odr): New function.
3108 (odr_subtypes_equivalent_p): Simplify.
3109 (possible_placement_new): Break out from ...
3110 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
3111 be more cuatious about returning false in cases the context may be
3112 valid in derived type or via placement new.
3113 (contains_type_p): Clear maybe_derived_type
3114 (ipa_polymorphic_call_context::dump): New method.
3115 (ipa_polymorphic_call_context::debug): New method.
3116 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
3117 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
3118 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3119 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
3120 to suceed on all valid cases; remove confused sanity check.
3121 (dump_possible_polymorphic_call_targets): Simplify.
3123 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
3125 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
3126 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
3127 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
3128 varpool.c: Rename all instances of DECL_ABSTRACT to
3131 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3133 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
3134 special handling for stores whose SET_SRC is an UNSPEC (such as
3137 2014-09-24 Jiong Wang <jiong.wang@arm.com>
3139 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
3140 !REG_P (src) to release more instruction sink opportunities.
3142 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
3144 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
3145 move costs for 128-bit types.
3147 2014-09-24 Martin Jambor <mjambor@suse.cz>
3149 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
3150 when duplicating a PASS_THROUGH jump function when creating a
3153 2014-09-24 Marek Polacek <polacek@redhat.com>
3157 * asan.c (maybe_instrument_call): Add default case.
3158 * ipa-pure-const.c (special_builtin_state): Likewise.
3159 * predict.c (expr_expected_value_1): Likewise.
3160 * lto-streamer-out.c (write_symbol): Initialize variable.
3162 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3164 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
3166 (vmuld_laneq_f64): Likewise.
3167 (vmuls_lane_f32): Likewise.
3168 (vmuls_laneq_f32): Likewise.
3170 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
3173 * varpool.c (varpool_node::add): Pass decl attributes
3174 to lookup_attribute.
3176 2014-09-24 Jakub Jelinek <jakub@redhat.com>
3179 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
3181 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3183 PR tree-optimization/63266
3184 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
3185 marker for unknown byte value.
3186 (MARKER_MASK): New macro.
3187 (MARKER_BYTE_UNKNOWN): New macro.
3188 (HEAD_MARKER): New macro.
3189 (do_shift_rotate): Mark bytes with unknown values due to sign
3190 extension when doing an arithmetic right shift. Replace hardcoded
3191 mask for marker by new MARKER_MASK macro.
3192 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
3193 numbers accordingly.
3195 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3196 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3197 Anna Tikhonova <anna.tikhonova@intel.com>
3198 Ilya Tocar <ilya.tocar@intel.com>
3199 Andrey Turetskiy <andrey.turetskiy@intel.com>
3200 Ilya Verbin <ilya.verbin@intel.com>
3201 Kirill Yukhin <kirill.yukhin@intel.com>
3202 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3204 * config/i386/sse.md
3206 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
3208 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
3209 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
3211 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3212 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3213 Anna Tikhonova <anna.tikhonova@intel.com>
3214 Ilya Tocar <ilya.tocar@intel.com>
3215 Andrey Turetskiy <andrey.turetskiy@intel.com>
3216 Ilya Verbin <ilya.verbin@intel.com>
3217 Kirill Yukhin <kirill.yukhin@intel.com>
3218 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3220 * config/i386/sse.md
3221 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
3222 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
3223 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
3224 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
3225 (define_expand "avx512vl_pshuflw_mask"): New.
3226 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
3227 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
3228 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
3229 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
3230 (define_expand "avx512vl_pshufhw_mask"): New.
3231 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
3233 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3234 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3235 Anna Tikhonova <anna.tikhonova@intel.com>
3236 Ilya Tocar <ilya.tocar@intel.com>
3237 Andrey Turetskiy <andrey.turetskiy@intel.com>
3238 Ilya Verbin <ilya.verbin@intel.com>
3239 Kirill Yukhin <kirill.yukhin@intel.com>
3240 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3242 * config/i386/i386.c
3243 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
3244 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
3245 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
3246 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
3247 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
3248 * config/i386/sse.md
3249 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
3251 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
3252 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
3254 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
3255 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
3256 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
3257 (define_expand "avx512vl_pshufd_mask"): New.
3258 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
3260 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3261 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3262 Anna Tikhonova <anna.tikhonova@intel.com>
3263 Ilya Tocar <ilya.tocar@intel.com>
3264 Andrey Turetskiy <andrey.turetskiy@intel.com>
3265 Ilya Verbin <ilya.verbin@intel.com>
3266 Kirill Yukhin <kirill.yukhin@intel.com>
3267 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3269 * config/i386/i386.c
3270 (CODE_FOR_avx2_extracti128): Rename to ...
3271 (CODE_FOR_avx_vextractf128v4di): this.
3272 (CODE_FOR_avx2_inserti128): Rename to ...
3273 (CODE_FOR_avx_vinsertf128v4di): this.
3274 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
3275 CODE_FOR_avx_vextractf128v4di.
3276 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
3277 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
3278 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
3279 CODE_FOR_avx512vl_vinsertv8si.
3280 * config/i386/sse.md
3282 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
3283 AVX512_VEC mode iterator.
3285 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
3288 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
3289 AVX512_VEC_2 mode iterator.
3290 (define_insn "vec_set_lo_<mode><mask_name>"): New.
3291 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3292 (define_expand "avx512vl_vinsert<mode>"): Ditto.
3293 (define_insn "avx2_vec_set_lo_v4di"): Delete.
3294 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
3295 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
3296 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3297 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
3298 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3299 (define_expand "avx2_extracti128"): Delete.
3300 (define_expand "avx2_inserti128"): Ditto.
3302 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3303 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3304 Anna Tikhonova <anna.tikhonova@intel.com>
3305 Ilya Tocar <ilya.tocar@intel.com>
3306 Andrey Turetskiy <andrey.turetskiy@intel.com>
3307 Ilya Verbin <ilya.verbin@intel.com>
3308 Kirill Yukhin <kirill.yukhin@intel.com>
3309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3311 * config/i386/sse.md
3312 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3313 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3314 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3315 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3316 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3317 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3318 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3319 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3320 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3321 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3322 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3323 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3324 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3326 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
3328 PR rtl-optimization/63210
3329 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3330 HARD_REGNO is not available for CONFLICT_A.
3332 2014-09-23 Andi Kleen <ak@linux.intel.com>
3334 * cgraph.h (symtab_node): Add no_reorder attribute.
3335 (symbol_table::output_asm_statements): Remove.
3336 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3337 (cgraph_node::create_version_clone): Dito.
3338 (symbol_table::output_asm_statements): Remove.
3339 * trans-mem.c (ipa_tm_create_version_alias): Dito.
3340 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3341 (output_in_order): Add no_reorder flag. Only handle no_reorder
3343 (symbol_table::compile): Add separate pass for no_reorder nodes.
3344 (process_common_attributes): Set no_reorder flag in symtab node.
3346 (process_function_and_variable_attributes): Pass symtab nodes to
3347 process_common_attributes.
3348 * doc/extend.texi (no_reorder): Document no_reorder attribute.
3349 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3350 (lto_output_varpool_node): Dito.
3351 (input_overwrite_node): Dito.
3352 (input_varpool_node): Dito.
3353 * varpool.c (varpool_node::add): Set no_reorder attribute.
3354 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3355 (symbol_table::output_variables): Dito.
3356 * symtab.c (symtab_node::dump_base): Print no_reorder.
3358 2014-09-23 Jiong Wang <jiong.wang@arm.com>
3360 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3363 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
3365 * configure: Regenerate.
3367 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
3369 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3370 when result_mode == shift_mode.
3372 2014-09-23 Kostya Serebryany <kcc@google.com>
3374 Update to match the changed asan API.
3375 * asan.c (asan_global_struct): Update the __asan_global definition
3376 to match the new API.
3377 (asan_add_global): Ditto.
3378 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3381 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3383 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3384 refine the constraints used on 32/64-bit floating point moves.
3386 (f64_vsx): Likewise.
3389 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3390 (BOOL_REGS_OP1): Likewise.
3391 (BOOL_REGS_OP2): Likewise.
3392 (BOOL_REGS_UNARY): Likewise.
3393 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3394 32/64-bit floating point moves. Do not use wa, instead use ww/ws
3395 for moves involving VSX registers. Do not use constraints that
3396 target VSX registers for decimal types.
3397 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3398 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3400 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
3402 * tree.h (int_bit_position): Turn into inline function;
3403 implement using wide int.
3404 * tree.c (int_bit_position): Remove.
3406 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
3409 * target-globals.c (target_globals::~target_globals): Fix location
3410 of ira_int destruction.
3412 2014-09-23 Renlin Li <renlin.li@arm.com>
3414 * config/aarch64/aarch64.md (return): New.
3415 (simple_return): Likewise.
3416 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
3417 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
3419 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
3421 * common/config/aarch64/aarch64-common.c:
3422 (default_options aarch_option_optimization_table):
3423 Default to -fsched-pressure.
3425 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
3427 * cfgcleanup.c (try_optimize_cfg): Do not remove label
3428 with LABEL_PRESERVE_P flag set.
3430 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3431 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3432 Anna Tikhonova <anna.tikhonova@intel.com>
3433 Ilya Tocar <ilya.tocar@intel.com>
3434 Andrey Turetskiy <andrey.turetskiy@intel.com>
3435 Ilya Verbin <ilya.verbin@intel.com>
3436 Kirill Yukhin <kirill.yukhin@intel.com>
3437 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3439 * config/i386/sse.md
3440 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
3441 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3442 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3443 (define_insn "sse2_shufpd_v2df_mask"): New.
3445 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3446 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3447 Anna Tikhonova <anna.tikhonova@intel.com>
3448 Ilya Tocar <ilya.tocar@intel.com>
3449 Andrey Turetskiy <andrey.turetskiy@intel.com>
3450 Ilya Verbin <ilya.verbin@intel.com>
3451 Kirill Yukhin <kirill.yukhin@intel.com>
3452 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3454 * config/i386/sse.md
3455 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3456 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
3457 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
3458 (define_insn "sse_shufps_v4sf_mask"): New.
3460 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3461 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3462 Anna Tikhonova <anna.tikhonova@intel.com>
3463 Ilya Tocar <ilya.tocar@intel.com>
3464 Andrey Turetskiy <andrey.turetskiy@intel.com>
3465 Ilya Verbin <ilya.verbin@intel.com>
3466 Kirill Yukhin <kirill.yukhin@intel.com>
3467 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3469 * config/i386/sse.md
3470 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
3471 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
3472 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
3473 (define_insn "unpcklps128_mask"): New.
3475 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3476 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3477 Anna Tikhonova <anna.tikhonova@intel.com>
3478 Ilya Tocar <ilya.tocar@intel.com>
3479 Andrey Turetskiy <andrey.turetskiy@intel.com>
3480 Ilya Verbin <ilya.verbin@intel.com>
3481 Kirill Yukhin <kirill.yukhin@intel.com>
3482 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3484 * config/i386/sse.md
3485 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
3486 (define_insn "avx512vl_unpckhpd128_mask"): New.
3487 (define_expand "avx_movddup256<mask_name>"): Add masking.
3488 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
3489 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
3490 (define_insn "avx512vl_unpcklpd128_mask"): New.
3492 2014-09-22 Joseph Myers <joseph@codesourcery.com>
3494 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3495 * doc/tm.texi: Regenerate.
3496 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
3497 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3498 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3500 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3501 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3502 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3503 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3504 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3506 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3507 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3508 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3509 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3510 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3511 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3512 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3513 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3514 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3515 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3516 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3519 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
3521 * tree-ssa-ccp.c (prop_value_d): Rename to ...
3522 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
3523 * ipa-prop.c (struct type_change_info): Rename to ...
3524 (prop_type_change_info): ... this; update uses.
3525 * ggc-page.c (globals): Rename to ...
3526 (static struct ggc_globals): ... this; update uses.
3527 * tree-ssa-loop-im.c (mem_ref): Rename to ...
3528 (im_mem_ref): ... this; update uses.
3529 * ggc-common.c (loc_descriptor): Rename to ...
3530 (ggc_loc_descriptor): ... this; update uses.
3531 * lra-eliminations.c (elim_table): Rename to ...
3532 (lra_elim_table): ... this; update uses.
3533 * bitmap.c (output_info): Rename to ...
3534 (bitmap_output_info): ... this; update uses.
3535 * gcse.c (expr): Rename to ...
3536 (gcse_expr) ... this; update uses.
3537 (occr): Rename to ...
3538 (gcse_occr): .. this; update uses.
3539 * tree-ssa-copy.c (prop_value_d): Rename to ...
3540 (prop_value_t): ... this.
3541 * predict.c (block_info_def): Rename to ...
3542 (block_info): ... this; update uses.
3543 (edge_info_def): Rename to ...
3544 (edge_info): ... this; update uses.
3545 * profile.c (bb_info): Rename to ...
3546 (bb_profile_info): ... this; update uses.
3547 * alloc-pool.c (output_info): Rename to ...
3548 (pool_output_info): ... this; update uses.
3549 * ipa-cp.c (topo_info): Rename to ..
3550 (ipa_topo_info): ... this; update uses.
3551 * tree-nrv.c (nrv_data): Rename to ...
3552 (nrv_data_t): ... this; update uses.
3553 * ipa-split.c (bb_info): Rename to ...
3554 (split_bb_info): ... this one.
3555 * profile.h (edge_info): Rename to ...
3556 (edge_profile_info): ... this one; update uses.
3557 * dse.c (bb_info): Rename to ...
3558 (dse_bb_info): ... this one; update uses.
3559 * cprop.c (occr): Rename to ...
3560 (cprop_occr): ... this one; update uses.
3561 (expr): Rename to ...
3562 (cprop_expr): ... this one; update uses.
3564 2014-09-22 Jason Merrill <jason@redhat.com>
3566 * Makefile.in (check-parallel-%): Add @.
3568 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3570 * config/aarch64/geniterators.sh: New.
3571 * config/aarch64/iterators.md (VDQF_DF): New.
3572 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
3573 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
3575 2014-09-22 Peter A. Bigot <pab@pabigot.com>
3577 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
3578 -lnosys when -msim absent.
3580 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
3582 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3584 2014-09-22 Richard Biener <rguenther@suse.de>
3586 * gimplify.c (gimplify_init_constructor): Do not leave
3587 non-GIMPLE vector constructors around.
3588 * tree-cfg.c (verify_gimple_assign_single): Verify that
3589 CONSTRUCTORs have gimple elements.
3591 2014-09-22 Jakub Jelinek <jakub@redhat.com>
3594 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
3595 insert a debug source bind stmt setting DEBUG_EXPR_DECL
3596 instead of a normal gimple assignment stmt.
3598 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3600 * config/bfin/bfin.md: Fix use of constraints in define_split.
3602 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3604 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
3605 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
3607 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3609 * hard-reg-set.h: Include hash-table.h.
3610 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
3612 * target-globals.c (target_globals::~target_globals): Call
3613 hard_regs->finalize.
3614 * rtl.h (subreg_shape): New structure.
3615 (shape_of_subreg): New function.
3616 (simplifiable_subregs): Declare.
3617 * reginfo.c (simplifiable_subreg): New structure.
3618 (simplifiable_subregs_hasher): Likewise.
3619 (simplifiable_subregs): New function.
3620 (invalid_mode_changes): Delete.
3621 (alid_mode_changes, valid_mode_changes_obstack): New variables.
3622 (record_subregs_of_mode): Remove subregs_of_mode parameter.
3623 Record valid mode changes in valid_mode_changes.
3624 (find_subregs_of_mode): Remove subregs_of_mode parameter.
3625 Update calls to record_subregs_of_mode.
3626 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
3627 handling. Initialize new variables. Update call to
3628 find_subregs_of_mode.
3629 (invalid_mode_change_p): Check new variables instead of
3630 invalid_mode_changes.
3631 (finish_subregs_of_mode): Finalize new variables instead of
3632 invalid_mode_changes.
3633 (target_hard_regs::finalize): New function.
3634 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
3635 even when CLASS_CANNOT_CHANGE_MODE is undefined.
3637 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3639 * combine.c (subst): Use simplify_subreg_regno rather than
3640 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
3642 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3644 * rtl.h (subreg_info): Expand commentary
3645 * rtlanal.c (subreg_get_info): Likewise.
3647 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3649 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3650 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3651 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
3653 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
3655 * config/arm/arm.c: #include "tm-constrs.h"
3656 (thumb1_size_rtx_costs): Adjust rtx costs.
3658 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
3660 * configure.ac (target_header_dir): Move block defining
3661 this to before the block setting inhibit_libc.
3662 (inhibit_libc): When considering $with_headers, just
3663 check it it's explicitly "no". If not, also check if
3664 $target_header_dir/stdio.h is present. If not, set
3666 * configure: Regenerate.
3668 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
3670 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
3672 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3674 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
3675 insn for divides by integer powers of two.
3676 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
3677 (mod<mode>3): Fix formatting.
3678 (three anonymous define_insn and two define_split): Delete.
3680 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3682 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
3683 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
3684 (floatdisf2_internal2): Ditto.
3685 (ashrdi3_no_power): Ditto. Fix formatting.
3687 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3689 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3690 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
3693 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3695 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
3696 constant, use addsi3 directly.
3697 (three anonymous define_insn, two define_split): Delete.
3698 (sub<mode>3): Move. Do not allow constant second operand.
3699 Generate different insn for constant first operand.
3700 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
3701 (subf<mode>3_imm): New.
3702 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
3703 (*plus_ltu<mode>): Only handle registers.
3704 (*plus_ltu<mode>_1): New. Handle integer third operand.
3705 (*plus_gtu<mode>): Only handle registers.
3706 (*plus_gtu<mode>_1): New. Handle integer third operand.
3708 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3710 * config/rs6000/rs6000.md (iorxor): New code_iterator.
3711 (iorxor): New code_attr.
3712 (IORXOR): New code_attr.
3713 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
3714 (ior<mode>3, xor<mode>3): Delete.
3715 (<iorxor><mode>3): New.
3716 (splitter for "big" integer ior, xor): New.
3717 (*bool<mode>3): Move. Also handle AND.
3718 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
3719 (splitter for "big" integer ior, xor): Delete.
3721 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3723 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
3724 (two anonymous define_insn and two define_split): Delete.
3725 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
3727 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3729 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
3730 (two anonymous define_insn and two define_split): Delete.
3731 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
3733 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3735 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
3737 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3739 * config/rs6000/predicates.md (ca_operand): Allow subregs.
3740 (input_operand): Do not allow ca_operand.
3741 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
3742 carry bit, allow SImode and Pmode.
3743 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
3745 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
3747 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
3748 clobbered registers using clobber_reg. Remove UNSPEC decoration.
3749 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
3750 (*call_rex64_ms_sysv): Remove.
3751 (*call_value_rex64_ms_sysv): Ditto.
3752 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
3754 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
3756 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
3759 2014-09-20 Andreas Schwab <schwab@suse.de>
3761 * config/ia64/ia64.md: Remove constraints from define_split
3764 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3766 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
3767 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
3768 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
3769 (get_dynamic_type): Remove.
3770 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
3771 (clear_speculation): Bring to ipa-deivrt.h
3772 (get_class_context): Rename to ...
3773 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
3774 (contains_type_p): Update.
3775 (get_dynamic_type): Rename to ...
3776 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
3777 (possible_polymorphic_call_targets): UPdate.
3778 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
3779 * ipa-prop.c (ipa_analyze_call_uses): Update.
3781 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3783 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
3784 privatize dynamic TLS variables.
3786 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3788 * diagnostic.c (warning_n): New function.
3789 * diagnostic-core.h (warning_n): Declare.
3790 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
3791 output dynamic counts when available.
3793 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3795 PR tree-optimization/63255
3796 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
3797 issue in setting body_removed flag.
3799 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3802 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
3803 that visibility change is possible
3804 (handle_weakref_attribute): Likewise.
3805 * cgraph.h (symtab_node): Add method get_create and
3806 field refuse_visibility_changes.
3807 (symtab_node::get_create): New method.
3808 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
3809 * varasm.c (mark_weak): Verify that visibility change is
3812 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
3814 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
3815 for base_reg_operand to be common between LO_SUM and PLUS.
3816 (fusion_gpr_mem_combo): New predicate to match a fused address
3817 that combines the addis and memory offset address.
3819 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
3821 (emit_fusion_gpr_load): Likewise.
3823 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
3824 signature to pass each argument separately, rather than
3825 using an operands array. Rewrite the insns found by peephole2 to
3826 be a single insn, rather than hoping the insns will still be
3827 together when the peephole pass is done. Drop being called via a
3829 (emit_fusion_gpr_load): Change calling signature to be called from
3830 the fusion_gpr_load_<mode> insns with a combined memory address
3831 instead of the peephole pass passing the addis and offset
3834 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
3836 (power8 fusion peephole): Drop support for doing power8 via a
3837 normal peephole that was created by the peephole2 pass.
3838 (power8 fusion peephole2): Create a new insn with the fused
3839 address, so that the fused operation is kept together after
3840 register allocation is done.
3841 (fusion_gpr_load_<mode>): Likewise.
3843 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3846 * tree.c (need_assembler_name_p): Do not mangle variadic types.
3848 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
3850 * recog.c (scratch_operand): Do not simply allow all hard registers:
3851 only allow those that are allocatable.
3853 2014-09-19 Felix Yang <felix.yang@huawei.com>
3855 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
3856 comments and fix spacing to conform to coding style.
3858 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3860 * genrecog.c (validate_pattern): Allow empty constraints in
3863 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
3865 * dwarf2out.c (decl_ultimate_origin): Update comment.
3866 * tree.c (block_ultimate_origin): Same.
3868 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3870 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
3871 Update GCC version name to GCC 5.
3872 (rs6000_function_arg_boundary): Likewise.
3873 (rs6000_function_arg): Likewise.
3875 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3877 * config/sh/sh.md: Fix use of constraints in define_split.
3879 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
3882 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
3884 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3886 * doc/md.texi (Modifiers): Consistently use "read/write"
3887 nomenclature rather than "input/output".
3888 * genrecog.c (constraints_supported_in_insn_p): New.
3889 (validate_pattern): If needed, also check constraints on
3890 MATCH_SCRATCH operands.
3891 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
3892 operands with no '=' or '+' modifier.
3894 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3896 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
3897 scratch register as written.
3899 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3901 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
3904 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3906 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
3909 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3912 * config/s390/s390.c (s390_emit_epilogue): When doing the return
3913 address load optimization force s390_optimize_prologue to leave it
3914 that way. Only do the optimization if we already decided to push
3915 r14 into a stack slot.
3917 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
3919 * asan.c (build_check_stmt): Alignment arg was added.
3920 (asan_expand_check_ifn): Optimization for alignment >= 8.
3922 2014-09-19 Olivier Hainque <hainque@adacore.com>
3924 * config/i386/vxworksae.h: Remove obsolete definitions.
3925 (STACK_CHECK_PROTECT): Define.
3926 * config/i386/vx-common.h: Remove. Merge contents within
3927 config/i386/vxworks.h.
3928 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
3931 2014-09-19 Olivier Hainque <hainque@adacore.com>
3933 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
3934 * config/rs6000/t-vxworksmils: New file.
3935 * config/rs6000/vxworksmils.h: New file.
3937 2014-09-19 Olivier Hainque <hainque@adacore.com>
3939 * varasm.c (default_section_type_flags): Flag .persistent.bss
3940 sections as SECTION_BSS.
3942 2014-09-19 Nick Clifton <nickc@redhat.com>
3944 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
3945 pop'ed registers so that DCE does not eliminate them.
3947 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
3950 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
3952 2014-09-18 Joseph Myers <joseph@codesourcery.com>
3954 * system.h (LIBGCC2_TF_CEXT): Poison.
3955 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
3956 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
3957 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
3958 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
3959 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
3960 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
3961 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
3962 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
3963 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
3965 2014-09-19 Kito Cheng <kito@0xlab.org>
3967 * except.h: Fix header guard.
3968 * addresses.h: Add missing header guard.
3969 * cfghooks.h: Likewise.
3970 * collect-utils.h: Likewise.
3971 * collect2-aix.h: Likewise.
3972 * conditions.h: Likewise.
3973 * cselib.h: Likewise.
3974 * dwarf2asm.h: Likewise.
3975 * graphds.h: Likewise.
3976 * graphite-scop-detection.h: Likewise.
3977 * gsyms.h: Likewise.
3978 * hw-doloop.h: Likewise.
3979 * incpath.h: Likewise.
3980 * ipa-inline.h: Likewise.
3981 * ipa-ref.h: Likewise.
3982 * ira-int.h: Likewise.
3984 * lra-int.h: Likewise.
3986 * lto-section-names.h: Likewise.
3987 * read-md.h: Likewise.
3988 * reload.h: Likewise.
3989 * rtl-error.h: Likewise.
3990 * sdbout.h: Likewise.
3991 * targhooks.h: Likewise.
3992 * tree-affine.h: Likewise.
3993 * xcoff.h: Likewise.
3994 * xcoffout.h: Likewise.
3996 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
3999 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4002 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4005 * lra.c (lra): Call recog_init.
4007 2014-09-18 Jakub Jelinek <jakub@redhat.com>
4010 * asan.c (transform_statements): Don't instrument clobber statements.
4012 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4014 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4015 to neon_load1_1reg<q>.
4017 2014-09-17 Jakub Jelinek <jakub@redhat.com>
4020 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4021 if there are only debug stmts after the noreturn call, instead
4022 remove the debug stmts.
4024 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
4026 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4027 (odr_types_equivalent_p): Use pair hash.
4028 (odr_subtypes_equivalent_p): Likewise, do structural compare
4029 on ODR types that may be mismatched.
4030 (warn_odr): Support warning when only one field is given.
4031 (odr_types_equivalent_p): Strenghten comparsions made;
4033 (add_type_duplicate): Update VISITED hash set.
4035 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
4037 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4038 Enable selection of 'posix' or no thread model.
4040 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
4042 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4043 when architecture is older than ARMv7.
4045 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
4048 * config/pa/pa.c (pa_function_value): Directly handle aggregates
4049 that fit exactly in a word or double word.
4051 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
4053 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4056 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
4057 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4058 Anna Tikhonova <anna.tikhonova@intel.com>
4059 Ilya Tocar <ilya.tocar@intel.com>
4060 Andrey Turetskiy <andrey.turetskiy@intel.com>
4061 Ilya Verbin <ilya.verbin@intel.com>
4062 Kirill Yukhin <kirill.yukhin@intel.com>
4063 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4065 * config/i386/i386.c
4066 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
4067 * config/i386/sse.md
4068 (define_mode_iterator VI48F_256): New.
4069 (define_mode_attr extract_type): Ditto.
4070 (define_mode_attr extract_suf): Ditto.
4071 (define_mode_iterator AVX512_VEC): Ditto.
4073 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
4075 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
4077 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
4079 (define_mode_attr extract_type_2): Ditto.
4080 (define_mode_attr extract_suf_2): Ditto.
4081 (define_mode_iterator AVX512_VEC_2): Ditto.
4083 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
4084 AVX512_VEC_2 mode iterator.
4085 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4086 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
4087 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4088 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4089 (define_split for V16FI mode): Ditto.
4090 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4091 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4092 (define_split for VI8F_256 mode): Ditto.
4093 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4094 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4095 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4096 (define_split for VI4F_256 mode): Ditto.
4097 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
4098 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4099 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4100 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
4101 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
4102 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
4103 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
4104 Update `type' attribute, remove explicit `memory' attribute calculation.
4106 2014-09-16 Kito Cheng <kito@0xlab.org>
4108 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
4109 ira_spilled_reg_stack_slots_num if using lra.
4110 (do_reload): Remove release ira_spilled_reg_stack_slots part.
4111 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
4112 make sure not using lra.
4113 (ira_reuse_stack_slot): Likewise.
4114 (ira_mark_new_stack_slot): Likewise.
4116 2014-09-15 Andi Kleen <ak@linux.intel.com>
4118 * function.c (allocate_struct_function): Force
4119 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
4120 profiling is disabled.
4122 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4124 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
4125 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
4126 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
4127 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
4128 macro with statically checked member functions.
4129 * rtl.h (rtx_insn::deleted): New method.
4130 (rtx_insn::set_deleted): Likewise.
4131 (rtx_insn::set_undeleted): Likewise.
4132 (INSN_DELETED_P): Remove.
4134 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4136 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
4137 result of emit_jump_insn_before to a new variable.
4138 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
4139 (mark_jump_label_1): Likewise.
4140 (mark_jump_label_asm): Likewise.
4141 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
4142 * rtl.h (mark_jump_label): Adjust.
4144 2014-09-15 Jakub Jelinek <jakub@redhat.com>
4146 * Makefile.in (dg_target_exps): Remove.
4147 (check_gcc_parallelize): Change to just an upper bound number.
4148 (check-%-subtargets): Always print the non-parallelized goals.
4149 (check_p_vars, check_p_comma, check_p_subwork): Remove.
4150 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
4151 check_p_numbers3, check_p_numbers4, check_p_numbers5,
4152 check_p_numbers6): New variables.
4153 (check_p_numbers): Set to sequence from 1 to 9999.
4154 (check_p_subdirs): Set to sequence from 1 to minimum of
4155 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
4157 (check-%, check-parallel-%): Rewritten so that for parallelized
4158 testing each job runs all the *.exp files, with
4159 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
4161 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4163 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4165 (arc_sets_cc_p): Likewise.
4166 * config/arc/arc.c (arc_print_operand): Use methods of
4167 "final_sequence" for clarity, and to enable strengthening of
4168 locals "jump" and "delay" from rtx to rtx_insn *.
4169 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
4170 rtx_insn *; use method of rtx_sequence for typesafety.
4171 (arc_get_insn_variants): Use insn method of rtx_sequence for
4173 (arc_pad_return): Likewise.
4174 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
4175 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
4176 dyn_cast to rtx_sequence *, using insn method for typesafety.
4177 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
4178 rtx_sequence * and use insn method when invoking get_attr_length.
4179 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
4180 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
4181 rtx_sequence *, introducing a local "seq", using its insn method
4182 from typesafety and clarity.
4183 (add_sched_insns_for_speculation): Strengthen local "next" from
4185 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
4186 (predicate_insn): Likewise.
4187 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
4189 * config/cris/cris.c (cris_notice_update_cc): Likewise.
4190 * config/epiphany/epiphany-protos.h
4191 (extern void epiphany_insert_mode_switch_use): Likewise for param
4193 (get_attr_sched_use_fpu): Likewise for param.
4194 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
4195 Likewise for param "insn".
4196 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
4197 param "insn" of "target_insert_mode_switch_use" callback.
4198 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
4199 (frv_issues_to_branch_unit_p): Likewise.
4200 (frv_pack_insn_p): Likewise.
4201 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
4202 const rtx * (i.e. mutable rtx_def * const *) to
4204 * config/i386/i386-protos.h (standard_sse_constant_opcode):
4205 Strengthen first param from rtx to rtx_insn *.
4206 (output_fix_trunc): Likewise.
4207 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
4208 (output_fix_trunc): Likewise.
4209 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
4211 (min_insn_size): Likewise for param "insn".
4212 (get_mem_group): Likewise.
4214 (get_insn_path): Likewise.
4215 (get_insn_group): Likewise.
4216 (count_num_restricted): Likewise.
4217 (fits_dispatch_window): Likewise.
4218 (add_insn_window): Likewise.
4219 (add_to_dispatch_window): Likewise.
4220 (debug_insn_dispatch_info_file): Likewise.
4221 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
4223 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
4224 "cmp" and local "prev".
4225 (m32c_output_compare): Likewise for param "insn".
4226 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
4227 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
4228 (define_predicate "large_insn_p"): Likewise.
4229 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
4230 param from rtx to rtx_insn *.
4231 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
4232 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
4233 (m68k_sched_attr_size): Likewise.
4234 (sched_get_opxy_mem_type): Likewise for param "insn".
4235 (m68k_sched_attr_op_mem): Likewise.
4236 (sched_mem_operand_p): Likewise.
4237 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
4238 * config/mep/mep.c (mep_multi_slot): Likewise.
4239 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
4241 (mips_sync_loop_insns): Likewise.
4242 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
4243 method of "final_sequence" for typesafety.
4244 (mips_process_sync_loop): Strengthen param "insn" from rtx to
4246 (mips_output_sync_loop): Likewise.
4247 (mips_sync_loop_insns): Likewise.
4248 (mips_74k_agen_init): Likewise.
4249 (mips_sched_init): Use NULL rather than NULL_RTX when working with
4251 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
4252 Strengthen param "insn" from rtx to rtx_insn *.
4253 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
4255 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
4257 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
4258 "insn". Use method of rtx_sequence for typesafety.
4259 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
4261 (branch_needs_nop_p): Likewise.
4262 (use_skip_p): Likewise.
4263 (pa_insn_refs_are_delayed): Likewise.
4264 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
4265 for locals "insn", "ninsn".
4266 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
4268 (is_cracked_insn): Likewise.
4269 (is_branch_slot_insn): Likewise.
4270 (is_nonpipeline_insn): Likewise.
4271 (insn_terminates_group_p): Likewise.
4272 (insn_must_be_first_in_group): Likewise.
4273 (insn_must_be_last_in_group): Likewise.
4274 (force_new_group): Likewise for param "next_insn".
4275 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
4277 (s390_sched_score): Likewise.
4278 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
4279 (rtx sfunc_uses_reg): Likewise for sole param.
4280 * config/sh/sh.c (sh_print_operand): Use insn method of
4281 final_sequence for typesafety.
4282 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
4283 Use insn method of final_sequence for typesafety.
4284 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
4285 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
4287 (eligible_for_return_delay): Likewise.
4288 (eligible_for_sibcall_delay): Likewise.
4289 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
4290 (eligible_for_return_delay): Likewise.
4291 (eligible_for_sibcall_delay): Likewise.
4292 * config/stormy16/stormy16-protos.h
4293 (xstormy16_output_cbranch_hi): Likewise for final param.
4294 (xstormy16_output_cbranch_si): Likewise.
4295 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
4296 (xstormy16_output_cbranch_si): Likewise.
4297 * config/v850/v850-protos.h (notice_update_cc): Likewise.
4298 * config/v850/v850.c (notice_update_cc): Likewise.
4300 * final.c (get_attr_length_1): Strengthen param "insn" and param
4301 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
4302 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
4303 (get_attr_min_length): Likewise.
4304 (shorten_branches): Likewise for signature of locals "length_fun"
4305 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
4306 from a checked cast and use its methods for clarity and to enable
4307 strengthening local "inner_insn" from rtx to rtx_insn *.
4308 * genattr.c (gen_attr): When writing out the prototypes of the
4309 various generated "get_attr_" functions, strengthen the params of
4310 the non-const functions from rtx to rtx_insn *.
4311 Similarly, strengthen the params of insn_default_length,
4312 insn_min_length, insn_variable_length_p, insn_current_length.
4313 (main): Similarly, strengthen the param of num_delay_slots,
4314 internal_dfa_insn_code, insn_default_latency, bypass_p,
4315 insn_latency, min_issue_delay, print_reservation,
4316 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4317 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
4318 to hook_int_rtx_insn_unreachable.
4319 * genattrtab.c (write_attr_get): When writing out the generated
4320 "get_attr_" functions, strengthen the param "insn" from rtx to
4321 rtx_insn *, eliminating a checked cast.
4322 (make_automaton_attrs): When writing out prototypes of
4323 "internal_dfa_insn_code_", "insn_default_latency_" functions
4324 and the "internal_dfa_insn_code" and "insn_default_latency"
4325 callbacks, strengthen their params from rtx to rtx_insn *
4326 * genautomata.c (output_internal_insn_code_evaluation): When
4327 writing out code, add a checked cast from rtx to rtx_insn * when
4328 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4329 (output_dfa_insn_code_func): Strengthen param of generated
4330 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4331 (output_trans_func): Likewise for generated function
4333 (output_internal_insn_latency_func): When writing out generated
4334 function "internal_insn_latency", rename params from "insn" and
4335 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
4336 locals "insn" and "insn2" as rtx_insn * with checked casts once
4337 we've proven that we're not dealing with const0_rtx.
4338 (output_insn_latency_func): Strengthen param of generated
4339 function "insn_latency" from rtx to rtx_insn *.
4340 (output_print_reservation_func): Likewise for generated function
4341 "print_reservation".
4342 (output_insn_has_dfa_reservation_p): Likewise for generated
4343 function "insn_has_dfa_reservation_p".
4344 * hooks.c (hook_int_rtx_unreachable): Rename to...
4345 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4346 from rtx to rtx_insn *.
4347 * hooks.h (hook_int_rtx_unreachable): Likewise.
4348 (extern int hook_int_rtx_insn_unreachable): Likewise.
4349 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4350 (get_attr_min_length): Likewise.
4351 * recog.c (get_enabled_alternatives): Likewise.
4352 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4353 * reorg.c (find_end_label): Introduce local rtx "pat" and
4354 strengthen local "insn" from rtx to rtx_insn *.
4355 (redundant_insn): Use insn method of "seq" rather than element for
4356 typesafety; strengthen local "control" from rtx to rtx_insn *.
4357 * resource.c (mark_referenced_resources): Add checked cast to
4358 rtx_insn * within INSN/JUMP_INSN case.
4359 (mark_set_resources): Likewise.
4360 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4363 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4365 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4366 param "label" from rtx to rtx_insn *.
4367 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4369 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4370 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4371 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4372 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4373 * final.c (default_label_align_after_barrier_max_skip): Strengthen
4374 param from rtx to rtx_insn *.
4375 (default_loop_align_max_skip): Likewise.
4376 (default_label_align_max_skip): Likewise.
4377 (default_jump_align_max_skip): Likewise.
4378 * target.def (label_align_after_barrier_max_skip): Likewise.
4379 (loop_align_max_skip): Likewise.
4380 (label_align_max_skip): Likewise.
4381 (jump_align_max_skip): Likewise.
4382 * targhooks.h (default_label_align_after_barrier_max_skip):
4384 (default_loop_align_max_skip): Likewise.
4385 (default_label_align_max_skip): Likewise.
4386 (default_jump_align_max_skip): Likewise.
4388 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4390 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4391 from const_rtx to const rtx_insn *. Update union members from rtx
4393 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4394 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4395 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4396 strengthen both params from const_rtx to const rtx_insn *.
4397 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4398 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4399 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4401 * target.def (can_follow_jump): Strengthen both params from
4402 const_rtx to const rtx_insn *, and update default implementation
4403 from hook_bool_const_rtx_const_rtx_true to
4404 hook_bool_const_rtx_insn_const_rtx_insn_true.
4406 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4408 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
4409 "insn" from rtx to rtx_insn *.
4410 * sched-int.h (deps_start_bb): Likewise for 2nd param.
4412 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4413 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4414 Anna Tikhonova <anna.tikhonova@intel.com>
4415 Ilya Tocar <ilya.tocar@intel.com>
4416 Andrey Turetskiy <andrey.turetskiy@intel.com>
4417 Ilya Verbin <ilya.verbin@intel.com>
4418 Kirill Yukhin <kirill.yukhin@intel.com>
4419 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4421 * config/i386/sse.md
4422 (define_insn "vcvtph2ps<mask_name>"): Add masking.
4423 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
4424 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
4425 (define_expand "vcvtps2ph_mask"): New.
4426 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
4427 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4428 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4430 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4431 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4432 Anna Tikhonova <anna.tikhonova@intel.com>
4433 Ilya Tocar <ilya.tocar@intel.com>
4434 Andrey Turetskiy <andrey.turetskiy@intel.com>
4435 Ilya Verbin <ilya.verbin@intel.com>
4436 Kirill Yukhin <kirill.yukhin@intel.com>
4437 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4439 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4441 (define_mode_iterator VI24_AVX512BW_1): Ditto.
4442 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4443 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4444 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4445 also for TARGET_AVX512VL.
4446 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4448 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
4450 * doc/install.texi (Options specification): add
4451 --disable-libsanitizer item.
4453 2014-09-14 James Clarke <jrtc27@jrtc27.com>
4454 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4457 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
4459 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
4460 kernel version check to avoid incrementing it after every major OS X
4462 (darwin_default_min_version): Avoid static memory buffer.
4464 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
4466 * tree.c (need_assembler_name_p): Store C++ type mangling only
4469 2014-09-13 Marek Polacek <polacek@redhat.com>
4471 * tree.c (protected_set_expr_location): Don't check whether T is
4474 2014-09-12 DJ Delorie <dj@redhat.com>
4476 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
4477 (extend_and_shift1_hipsi2): Likewise.
4478 (extend_and_shift2_hipsi2): Likewise.
4480 2014-09-12 David Malcolm <dmalcolm@redhat.com>
4482 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
4483 with NULL when dealing with an insn.
4484 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
4485 from rtx to rtx_insn *.
4486 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
4487 const_rtx to const rtx_insn *.
4488 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
4490 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
4492 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
4495 2014-09-12 Joseph Myers <joseph@codesourcery.com>
4497 * target.def (libgcc_floating_mode_supported_p): New hook.
4498 * targhooks.c (default_libgcc_floating_mode_supported_p): New
4500 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
4501 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
4502 (LIBGCC2_HAS_TF_MODE): Remove.
4503 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
4504 * doc/tm.texi: Regenerate.
4505 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
4507 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
4508 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
4509 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
4510 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
4511 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4512 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
4513 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
4514 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
4515 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
4516 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
4518 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
4519 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4520 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4521 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4522 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4523 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4524 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4525 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
4526 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
4527 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
4528 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4529 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
4530 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
4531 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
4533 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
4535 (ia64_libgcc_floating_mode_supported_p): New function.
4536 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
4537 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
4538 (IA64_NO_LIBGCC_TFMODE): Define.
4539 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
4540 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
4542 (pdp11_scalar_mode_supported_p): New function.
4543 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
4544 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
4546 2014-09-12 Richard Biener <rguenther@suse.de>
4549 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
4551 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
4553 * tree.c (integer_each_onep): New function.
4554 * tree.h (integer_each_onep): Declare it.
4555 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
4556 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
4557 (X & 1) == 0 for vector and complex.
4559 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4561 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
4563 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
4564 cost to spilling from integer to FP registers.
4566 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4568 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
4570 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
4571 are now handled correctly.
4573 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4575 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
4576 handling of CALLER_SAVE_REGS and POINTER_REGS.
4578 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4580 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
4581 the number of hard registers.
4583 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4584 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4585 Anna Tikhonova <anna.tikhonova@intel.com>
4586 Ilya Tocar <ilya.tocar@intel.com>
4587 Andrey Turetskiy <andrey.turetskiy@intel.com>
4588 Ilya Verbin <ilya.verbin@intel.com>
4589 Kirill Yukhin <kirill.yukhin@intel.com>
4590 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4592 * config/i386/sse.md
4593 (define_mode_iterator VI48_AVX512VL): New.
4594 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
4595 "avx512f_vternlog<mode>_maskz" and update mode iterator.
4596 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
4597 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
4598 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
4599 "avx512f_vternlog<mode>_mask" and update mode iterator.
4600 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
4601 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
4603 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
4604 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
4605 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
4606 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
4607 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
4608 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
4610 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4611 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4612 Anna Tikhonova <anna.tikhonova@intel.com>
4613 Ilya Tocar <ilya.tocar@intel.com>
4614 Andrey Turetskiy <andrey.turetskiy@intel.com>
4615 Ilya Verbin <ilya.verbin@intel.com>
4616 Kirill Yukhin <kirill.yukhin@intel.com>
4617 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4619 * config/i386/sse.md (VI128_256): Delete.
4620 (define_mode_iterator VI124_256): New.
4621 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
4622 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
4623 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
4624 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
4625 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
4626 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
4627 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
4628 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
4630 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
4631 in presence of AVX-512.
4633 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4634 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4635 Anna Tikhonova <anna.tikhonova@intel.com>
4636 Ilya Tocar <ilya.tocar@intel.com>
4637 Andrey Turetskiy <andrey.turetskiy@intel.com>
4638 Ilya Verbin <ilya.verbin@intel.com>
4639 Kirill Yukhin <kirill.yukhin@intel.com>
4640 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4642 * config/i386/sse.md
4643 (define_expand "<avx512>_gathersi<mode>"): Rename from
4644 "avx512f_gathersi<mode>".
4645 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
4646 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
4647 (define_expand "<avx512>_gatherdi<mode>"): Rename from
4648 "avx512f_gatherdi<mode>".
4649 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
4650 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
4652 (define_expand "<avx512>_scattersi<mode>"): Rename from
4653 "avx512f_scattersi<mode>".
4654 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
4655 (define_expand "<avx512>_scatterdi<mode>"): Rename from
4656 "avx512f_scatterdi<mode>".
4657 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
4659 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
4661 * ira.h (ira_finish_once): Delete.
4662 * ira-int.h (target_ira_int::~target_ira_int): Declare.
4663 (target_ira_int::free_ira_costs): Likewise.
4664 (target_ira_int::free_register_move_costs): Likewise.
4665 (ira_finish_costs_once): Delete.
4666 * ira.c (free_register_move_costs): Replace with...
4667 (target_ira_int::free_register_move_costs): ...this new function.
4668 (target_ira_int::~target_ira_int): Define.
4669 (ira_init): Call free_register_move_costs as a member function rather
4670 than a global function.
4671 (ira_finish_once): Delete.
4672 * ira-costs.c (free_ira_costs): Replace with...
4673 (target_ira_int::free_ira_costs): ...this new function.
4674 (ira_init_costs): Call free_ira_costs as a member function rather
4675 than a global function.
4676 (ira_finish_costs_once): Delete.
4677 * target-globals.c (target_globals::~target_globals): Call the
4678 target_ira_int destructor.
4679 * toplev.c: Include lra.h.
4680 (finalize): Call lra_finish_once rather than ira_finish_once.
4682 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
4684 * common.opt (flto-odr-type-merging): New flag.
4685 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
4686 (types_same_for_odr): Likewise.
4687 (odr_subtypes_equivalent_p): Likewise.
4688 (add_type_duplicate): Do not walk type variants.
4689 (register_odr_type): New function.
4690 * ipa-utils.h (register_odr_type): Declare.
4691 (odr_type_p): New function.
4692 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
4694 * doc/invoke.texi (-flto-odr-type-merging): Document.
4695 * tree.c (need_assembler_name_p): Compute ODR names when asked
4697 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
4699 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
4702 * config/i386/i386.c (ix86_option_override_internal): Also turn
4703 off OPTION_MASK_ABI_X32 for -m16.
4705 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
4707 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
4710 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
4713 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4714 Directly forward to __*_DENORM_MIN__.
4716 2014-09-11 David Malcolm <dmalcolm@redhat.com>
4718 * rtl.h (LABEL_REF_LABEL): New macro.
4720 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
4721 of XEXP (, 0), where we know that we have a LABEL_REF.
4722 * cfgbuild.c (make_edges): Likewise.
4723 (purge_dead_tablejump_edges): Likewise.
4724 * cfgexpand.c (convert_debug_memory_address): Likewise.
4725 * cfgrtl.c (patch_jump_insn): Likewise.
4726 * combine.c (distribute_notes): Likewise.
4727 * cse.c (hash_rtx_cb): Likewise.
4728 (exp_equiv_p): Likewise.
4729 (fold_rtx): Likewise.
4730 (check_for_label_ref): Likewise.
4731 * cselib.c (rtx_equal_for_cselib_1): Likewise.
4732 (cselib_hash_rtx): Likewise.
4733 * emit-rtl.c (mark_label_nuses): Likewise.
4734 * explow.c (convert_memory_address_addr_space): Likewise.
4735 * final.c (output_asm_label): Likewise.
4736 (output_addr_const): Likewise.
4737 * gcse.c (add_label_notes): Likewise.
4738 * genconfig.c (walk_insn_part): Likewise.
4739 * genrecog.c (validate_pattern): Likewise.
4740 * ifcvt.c (cond_exec_get_condition): Likewise.
4741 (noce_emit_store_flag): Likewise.
4742 (noce_get_alt_condition): Likewise.
4743 (noce_get_condition): Likewise.
4744 * jump.c (maybe_propagate_label_ref): Likewise.
4745 (mark_jump_label_1): Likewise.
4746 (redirect_exp_1): Likewise.
4747 (rtx_renumbered_equal_p): Likewise.
4748 * lra-constraints.c (operands_match_p): Likewise.
4749 * reload.c (operands_match_p): Likewise.
4750 (find_reloads): Likewise.
4751 * reload1.c (set_label_offsets): Likewise.
4752 * reorg.c (get_branch_condition): Likewise.
4753 * rtl.c (rtx_equal_p_cb): Likewise.
4754 (rtx_equal_p): Likewise.
4755 * rtlanal.c (reg_mentioned_p): Likewise.
4756 (rtx_referenced_p): Likewise.
4757 (get_condition): Likewise.
4758 * sched-vis.c (print_value): Likewise.
4759 * varasm.c (const_hash_1): Likewise.
4760 (compare_constant): Likewise.
4761 (const_rtx_hash_1): Likewise.
4762 (output_constant_pool_1): Likewise.
4764 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
4766 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
4767 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
4769 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
4770 cr6_test_for_lt_reverse): Ditto.
4772 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
4775 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
4777 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
4779 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
4780 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
4781 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
4782 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
4785 (aarch64_fold_builtin): Remove all reinterpret cases.
4787 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
4789 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
4791 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
4792 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
4793 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
4794 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
4795 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
4796 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
4797 aarch64_reinterpretv2df<mode>): Delete.
4799 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
4801 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
4802 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
4803 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
4804 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
4805 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
4806 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
4807 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
4808 vreinterpret_u32_f64): Use cast.
4810 * config/aarch64/iterators.md (VD_RE): Delete.
4812 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
4814 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
4815 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
4816 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
4817 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
4818 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
4819 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
4820 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
4821 Replace inline assembler with __aarch64_vset_lane_any.
4823 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
4825 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
4827 (vmull_high_lane_s32): Likewise.
4828 (vmull_high_lane_u16): Likewise.
4829 (vmull_high_lane_u32): Likewise.
4831 2014-09-11 Jason Merrill <jason@redhat.com>
4834 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
4836 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
4839 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
4840 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
4841 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
4843 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
4844 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4845 Anna Tikhonova <anna.tikhonova@intel.com>
4846 Ilya Tocar <ilya.tocar@intel.com>
4847 Andrey Turetskiy <andrey.turetskiy@intel.com>
4848 Ilya Verbin <ilya.verbin@intel.com>
4849 Kirill Yukhin <kirill.yukhin@intel.com>
4850 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4852 * config/i386/sse.md
4853 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
4854 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
4855 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
4857 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
4858 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
4860 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
4862 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
4863 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
4864 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
4865 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
4866 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
4867 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
4868 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
4869 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
4871 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
4873 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
4874 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
4875 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
4877 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
4879 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
4880 to access removed nodes.
4882 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
4884 PR tree-optimization/63186
4885 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
4886 (mark_nonssa_use): Likewise.
4887 (verify_non_ssa_vars): Verify all header blocks for label
4890 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
4891 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4892 Anna Tikhonova <anna.tikhonova@intel.com>
4893 Ilya Tocar <ilya.tocar@intel.com>
4894 Andrey Turetskiy <andrey.turetskiy@intel.com>
4895 Ilya Verbin <ilya.verbin@intel.com>
4896 Kirill Yukhin <kirill.yukhin@intel.com>
4897 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4899 * config/i386/sse.md
4900 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
4901 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
4902 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
4903 "<avx2_avx512f>_permvar<mode><mask_name>".
4904 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
4905 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
4906 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
4907 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
4909 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
4910 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
4911 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
4912 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
4914 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4916 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
4917 V2DF, V4SF, DF, and DI modes.
4918 (vsx_fmav2df2): Likewise.
4919 (vsx_float_fix_<mode>2): Likewise.
4920 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
4922 2014-09-10 Xinliang David Li <davidxl@google.com>
4925 * config/arm/arm.md (movcond_addsi): Handle case where source
4926 and target operands are the same.
4928 2014-09-10 David Malcolm <dmalcolm@redhat.com>
4930 * final.c (this_is_asm_operands): Strengthen this variable from
4931 rtx to const rtx_insn *.
4932 * output.h (this_is_asm_operands): Likewise.
4933 * rtl-error.c (location_for_asm): Strengthen param "insn" from
4934 const_rtx to const rtx_insn *.
4935 (diagnostic_for_asm): Likewise.
4936 * rtl-error.h (error_for_asm): Likewise.
4937 (warning_for_asm): Likewise.
4939 2014-09-10 David Malcolm <dmalcolm@redhat.com>
4941 * genextract.c (print_header): When writing out insn_extract to
4942 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
4943 * recog.h (insn_extract): Strengthen the param from rtx to
4946 2014-09-10 Mike Stump <mikestump@comcast.net>
4948 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
4951 2014-09-10 Martin Jambor <mjambor@suse.cz>
4953 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
4954 (analyze): Do not set analyze flag if expand_thunk returns false;.
4955 (create_wrapper): Likewise.
4956 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
4958 2014-09-10 Martin Jambor <mjambor@suse.cz>
4961 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
4962 new decl properly. Analyze the new thunk if it is expanded.
4964 2014-09-10 Andreas Schwab <schwab@suse.de>
4966 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
4967 [USED_FOR_TARGET]: Define.
4969 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
4971 * config/mips/mips.c (mips_secondary_reload_class): Handle
4974 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
4976 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
4979 2014-09-10 Jakub Jelinek <jakub@redhat.com>
4981 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
4982 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
4983 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
4984 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
4985 flag_delete_null_pointer_checks for them.
4986 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
4987 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
4988 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
4989 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
4990 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
4992 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
4993 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
4994 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
4995 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
4996 * doc/invoke.texi (-fsanitize=nonnull-attribute,
4997 -fsanitize=returns-nonnull-attribute): Document.
4999 * ubsan.h (struct ubsan_mismatch_data): Removed.
5000 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5001 * ubsan.c (ubsan_source_location): For unknown locations,
5002 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5003 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5004 Allow more than one location and arbitrary extra arguments passed
5005 in ... instead of through MISMATCH pointer.
5006 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5007 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5008 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5011 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5012 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5013 Anna Tikhonova <anna.tikhonova@intel.com>
5014 Ilya Tocar <ilya.tocar@intel.com>
5015 Andrey Turetskiy <andrey.turetskiy@intel.com>
5016 Ilya Verbin <ilya.verbin@intel.com>
5017 Kirill Yukhin <kirill.yukhin@intel.com>
5018 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5020 * config/i386/sse.md
5021 (define_mode_iterator VI48F): New.
5022 (define_insn "<avx512>_compress<mode>_mask"): Rename from
5023 "avx512f_compress<mode>_mask" and update mode iterator.
5024 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5025 "avx512f_compressstore<mode>_mask" and update mode iterator.
5026 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5027 "avx512f_expand<mode>_maskz" and update mode iterator.
5028 (define_insn "<avx512>_expand<mode>_mask"): Rename from
5029 "avx512f_expand<mode>_mask" and update mode iterator.
5031 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5032 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5033 Anna Tikhonova <anna.tikhonova@intel.com>
5034 Ilya Tocar <ilya.tocar@intel.com>
5035 Andrey Turetskiy <andrey.turetskiy@intel.com>
5036 Ilya Verbin <ilya.verbin@intel.com>
5037 Kirill Yukhin <kirill.yukhin@intel.com>
5038 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5040 * config/i386/i386.c
5041 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5042 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5043 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5044 avx512dq_rangepv4sf_mask.
5045 * config/i386/sse.md
5046 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5048 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5049 (define_insn "reduces<mode>"): Ditto.
5050 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5052 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5053 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5054 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5056 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5057 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5058 Anna Tikhonova <anna.tikhonova@intel.com>
5059 Ilya Tocar <ilya.tocar@intel.com>
5060 Andrey Turetskiy <andrey.turetskiy@intel.com>
5061 Ilya Verbin <ilya.verbin@intel.com>
5062 Kirill Yukhin <kirill.yukhin@intel.com>
5063 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5065 * config/i386/i386.c
5066 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
5067 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
5068 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
5069 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
5070 avx512vl_getmantv2df_mask.
5071 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
5072 avx512f_vgetmantv4sf_round.
5073 * config/i386/sse.md
5074 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
5075 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
5077 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
5078 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
5079 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
5080 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
5082 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
5083 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
5084 update mode iterator.
5086 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
5087 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
5090 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
5091 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
5092 update mode iterator.
5093 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
5094 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
5097 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
5098 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
5100 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
5101 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
5102 update mode iterator.
5103 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
5104 "avx512f_getmant<mode><round_saeonly_name>".
5106 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5109 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5111 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5112 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5113 Anna Tikhonova <anna.tikhonova@intel.com>
5114 Ilya Tocar <ilya.tocar@intel.com>
5115 Andrey Turetskiy <andrey.turetskiy@intel.com>
5116 Ilya Verbin <ilya.verbin@intel.com>
5117 Kirill Yukhin <kirill.yukhin@intel.com>
5118 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5120 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
5121 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
5122 (define_mode_iterator FMAMODE_AVX512): New.
5123 (define_mode_iterator FMAMODE): Remove conditions.
5124 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
5125 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
5126 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
5128 (define_mode_iterator FMAMODE_NOVF512): Remove.
5129 (define_insn "*fma_fmadd_<mode>"): Rename from
5130 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
5131 FMAMODE mode iterator.
5132 (define_mode_iterator VF_SF_AVX512VL): New.
5133 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
5134 Use VF_SF_AVX512VL mode iterator.
5135 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
5136 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5138 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
5139 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5141 (define_insn "*fma_fmsub_<mode>"): Rename from
5142 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
5143 FMAMODE mode iterator.
5144 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
5145 Use VF_SF_AVX512VL mode iterator.
5146 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
5147 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5149 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
5150 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5152 (define_insn "*fma_fnmadd_<mode>"): Rename from
5153 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
5154 use FMAMODE mode iterator.
5155 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
5156 Use VF_SF_AVX512VL mode iterator.
5157 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
5158 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5160 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
5161 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5163 (define_insn "*fma_fnmsub_<mode>"): Rename from
5164 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
5165 FMAMODE mode iterator.
5166 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
5167 Use VF_SF_AVX512VL mode iterator.
5168 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
5169 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5171 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
5172 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5174 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
5175 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
5176 use VF_AVX512VL mode iterator.
5177 (define_insn "*fma_fmaddsub_<mode>"): Rename from
5178 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
5180 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
5181 Use VF_SF_AVX512VL mode iterator.
5182 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
5183 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5185 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
5186 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5188 (define_insn "*fma_fmsubadd_<mode>"): Rename from
5189 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
5190 remove usage of subst.
5191 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
5192 Use VF_SF_AVX512VL mode iterator.
5193 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
5194 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5196 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
5197 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5200 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5203 * calls.c (precompute_arguments): Check
5204 promoted_for_signed_and_unsigned_p and set the promoted mode.
5205 (promoted_for_signed_and_unsigned_p): New function.
5206 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5207 and set the promoted mode.
5208 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5209 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5210 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5212 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5214 * opth-gen.awk: Generate mapping from cpp message reasons to the
5215 options that enable them.
5216 * doc/options.texi (CppReason): Document.
5218 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5220 * doc/invoke.texi (Wnormalized=): Update.
5222 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
5225 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
5226 operands. Split off the constant operand alternative to ...
5227 (*bool<mode>3_imm): New.
5229 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5231 * rtl.h (single_set_2): Strengthen first param from const_rtx to
5232 const rtx_insn *, and move prototype to above...
5233 (single_set): ...this. Convert this from a macro to an inline
5234 function, enforcing the requirement that the param is a const
5236 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
5238 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
5239 Strengthen both params from rtx to rtx_insn *.
5240 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5241 Likewise; introduce locals "producer_set", "consumer_set", using
5242 them in place of "producer" and "consumer" when dealing with SET
5244 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
5245 when invoking single_set in region guarded by INSN_P.
5246 (avr_out_bitop): Likewise.
5247 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
5248 region guarded by GET_CODE check, using methods to strengthen
5249 local "this_insn" from rtx to rtx_insn *, and for clarity.
5250 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
5251 Strengthen local "insn" from rtx to rtx_insn *.
5252 (define_insn_and_split "xload<mode>_A"): Likewise.
5253 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
5255 (find_load): Likewise for return type.
5256 (workaround_speculation): Likewise for both locals named
5258 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
5260 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
5262 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
5264 * config/h8300/h8300.c (notice_update_cc): Likewise.
5265 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
5266 "insn" and "dep_insn".
5267 (exact_store_load_dependency): Likewise for both params.
5268 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
5269 since this now clashes with inline function. Instead, delay
5270 calling single_set until the point where its needed, and then
5271 assign the result to "compare_set" and rework the conditional that
5273 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
5274 local "last" from rtx to rtx_insn *.
5275 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
5277 (mips_store_data_bypass_p): Likewise for both params.
5278 * config/mips/mips.c (mips_load_store_insns): Likewise for second
5280 (mips_store_data_bypass_p): Likewise for both params.
5281 (mips_orphaned_high_part_p): Likewise for param "insn".
5282 * config/mn10300/mn10300.c (extract_bundle): Likewise.
5283 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
5284 Introduce local rtx "insn2_pat".
5285 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
5287 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
5288 Introduce local rtx "set", using it in place of "insn" for the
5289 result of single_set. This appears to fix a bug, since the call
5290 to find_regno_note on a SET does nothing.
5291 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
5292 params from rtx to rtx_insn *.
5293 (set_to_load_agen): Likewise.
5294 * config/s390/s390.c (s390_label_align): Likewise for local
5295 "prev_insn". Introduce new rtx locals "set" and "src", using
5296 them in place of "prev_insn" for the results of single_set
5297 and SET_SRC respectively.
5298 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
5299 Introduce new rtx local "set" using in place of "jump" for the
5300 result of single_set. Use SET_SRC (set) rather than plain
5302 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
5304 (noncall_uses_reg): Likewise.
5305 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
5306 guarded by GET_CODE check, using its methods for clarity, and to
5307 enable strengthening local "this_insn" from rtx to rtx_insn *.
5308 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
5309 "insn" from rtx to rtx_insn *.
5310 (define_expand "umulhisi3"): Likewise.
5311 (define_expand "smulsi3_highpart"): Likewise.
5312 (define_expand "umulsi3_highpart"): Likewise.
5313 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5314 local "after". Replace GET_CODE check with a dyn_cast,
5315 introducing new local rtx_sequence * "seq", using insn method for
5318 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5319 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
5320 place of "insn" once we're dealing with patterns rather than the
5322 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5323 (scan_trace): Likewise for local "elt", updating lookups within
5324 sequence to use insn method rather than element method.
5325 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5327 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5328 * ifcvt.c (noce_try_abs): Likewise for local "insn".
5329 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5330 invoking single_set.
5331 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5332 "insn" from rtx to rtx_insn *.
5333 (skip_usage_debug_insns): Likewise for return type, adding a
5335 (check_secondary_memory_needed_p): Likewise for local "insn".
5336 (inherit_reload_reg): Likewise.
5337 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5338 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5340 (store_data_bypass_p): Likewise for both params.
5341 (if_test_bypass_p): Likewise.
5342 * recog.h (store_data_bypass_p): Likewise for both params.
5343 (if_test_bypass_p): Likewise.
5344 * reload.c (find_equiv_reg): Likewise for local "where".
5345 * reorg.c (delete_jump): Likewise for param "insn".
5346 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5347 to const rtx_insn *.
5348 * store-motion.c (replace_store_insn): Likewise for param "del".
5349 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5350 and use its methods for clarity, and to strengthen local "del"
5351 from rtx to rtx_insn *.
5352 (build_store_vectors): Use insn method of "st" when calling
5353 replace_store_insn for typesafety and clarity.
5355 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5357 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5358 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5359 on how to make it legal in future.
5361 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5363 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5365 (restinsn): Likewise.
5366 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5368 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5370 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5372 (arc_hazard): Likewise for both params.
5373 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5374 checked casts to rtx_sequence * and uses of the insn method for
5376 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5377 (arc_adjust_insn_length): Likewise for param "insn".
5378 (struct insn_length_parameters_s): Likewise for first param of
5379 "get_variants" callback field.
5380 (arc_get_insn_variants): Likewise for first param and local
5381 "inner". Replace a check of GET_CODE with a dyn_cast to
5382 rtx_sequence *, using methods for type-safety and clarity.
5383 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5384 rtx_sequence * and uses of the insn method for type-safety when
5385 invoking arc_adjust_insn_length.
5386 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5388 (arm_address_offset_is_imm): Likewise.
5389 (struct tune_params): Likewise for params 1 and 3 of the
5390 "sched_adjust_cost" callback field.
5391 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5392 params 1 and 3 ("insn" and "dep").
5393 (xscale_sched_adjust_cost): Likewise.
5394 (fa726te_sched_adjust_cost): Likewise.
5395 (cortexa7_older_only): Likewise for param "insn".
5396 (cortexa7_younger): Likewise.
5397 (arm_attr_length_move_neon): Likewise.
5398 (arm_address_offset_is_imm): Likewise.
5399 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5400 * config/avr/avr.c (avr_notice_update_cc): Likewise.
5401 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5402 (workaround_speculation): Likewise for local "last_condjump".
5403 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5404 (shadow_or_blockage_p): Likewise.
5405 (get_unit_reqs): Likewise.
5406 (get_unit_operand_masks): Likewise.
5407 (c6x_registers_update): Likewise.
5408 (returning_call_p): Likewise.
5409 (can_use_callp): Likewise.
5410 (convert_to_callp): Likewise.
5411 (find_last_same_clock): Likwise for local "t".
5412 (reorg_split_calls): Likewise for local "shadow".
5413 (hwloop_pattern_reg): Likewise for param "insn".
5414 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
5415 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
5416 (frv_extract_membar): Likewise.
5417 (frv_optimize_membar_local): Strengthen param "last_membar" from
5418 rtx * to rtx_insn **.
5419 (frv_optimize_membar_global): Strengthen param "membar" from rtx
5421 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
5423 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
5424 both params from rtx to rtx_insn *.
5425 (ia64_ld_address_bypass_p): Likewise.
5426 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
5428 (ia64_safe_type): Likewise.
5429 (group_barrier_needed): Likewise.
5430 (safe_group_barrier_needed): Likewise.
5431 (ia64_single_set): Likewise.
5432 (is_load_p): Likewise.
5433 (record_memory_reference): Likewise.
5434 (get_mode_no_for_insn): Likewise.
5435 (important_for_bundling_p): Likewise.
5436 (unknown_for_bundling_p): Likewise.
5437 (ia64_st_address_bypass_p): Likewise for both params.
5438 (ia64_ld_address_bypass_p): Likewise.
5439 (expand_vselect): Introduce new local rtx_insn * "insn", using it
5440 in place of rtx "x" after the emit_insn call.
5441 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5442 Strengthen param from rtx to rtx_insn *.
5443 (ix86_agi_dependent): Likewise for both params.
5444 (ix86_attr_length_immediate_default): Likewise for param 1.
5445 (ix86_attr_length_address_default): Likewise for param.
5446 (ix86_attr_length_vex_default): Likewise for param 1.
5447 * config/i386/i386.c (ix86_attr_length_immediate_default):
5448 Likewise for param "insn".
5449 (ix86_attr_length_address_default): Likewise.
5450 (ix86_attr_length_vex_default): Likewise.
5451 (ix86_agi_dependent): Likewise for both params.
5452 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5453 (vselect_insn): Likewise for this variable.
5454 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5456 (m68k_sched_attr_opy_type): Likewise.
5457 * config/m68k/m68k.c (sched_get_operand): Likewise.
5458 (sched_attr_op_type): Likewise.
5459 (m68k_sched_attr_opx_type): Likewise.
5460 (m68k_sched_attr_opy_type): Likewise.
5461 (sched_get_reg_operand): Likewise.
5462 (sched_get_mem_operand): Likewise.
5463 (m68k_sched_address_bypass_p): Likewise for both params.
5464 (sched_get_indexed_address_scale): Likewise.
5465 (m68k_sched_indexed_address_bypass_p): Likewise.
5466 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
5467 (m68k_sched_indexed_address_bypass_p): Likewise.
5468 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
5469 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
5471 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
5472 params from rtx to rtx_insn *.
5473 (mips_fmadd_bypass): Likewise.
5474 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
5475 (mips_linked_madd_p): Likewise.
5476 (mips_macc_chains_last_hilo): Likewise for this variable.
5477 (mips_macc_chains_record): Likewise for param.
5478 (vr4130_last_insn): Likewise for this variable.
5479 (vr4130_swap_insns_p): Likewise for both params.
5480 (mips_ls2_variable_issue): Likewise for param.
5481 (mips_need_noat_wrapper_p): Likewise for param "insn".
5482 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
5483 in place of "x" after the emit_insn.
5484 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
5485 params from rtx to rtx_insn *.
5486 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
5487 (pa_combine_instructions): Introduce local "par" for result of
5488 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
5490 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
5491 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
5492 (rl78_alloc_physical_registers_op1): Likewise.
5493 (rl78_alloc_physical_registers_op2): Likewise.
5494 (rl78_alloc_physical_registers_ro1): Likewise.
5495 (rl78_alloc_physical_registers_cmp): Likewise.
5496 (rl78_alloc_physical_registers_umul): Likewise.
5497 (rl78_alloc_address_registers_macax): Likewise.
5498 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
5499 * config/s390/predicates.md (execute_operation): Likewise for
5501 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
5503 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
5504 (addr_generation_dependency_p): Likewise for param "insn".
5505 (s390_agen_dep_p): Likewise for both params.
5506 (s390_fpload_toreg): Likewise for param "insn".
5507 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
5508 * config/sh/sh.c (sh_loop_align): Likewise for param and local
5510 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
5511 * config/sh/sh_treg_combine.cc
5512 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
5514 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
5515 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
5516 "and_insn", "load", "shift".
5517 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
5519 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
5520 for XEXP (note, 0) of the REG_CC_SETTER note.
5521 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
5522 rtx_insn *, eliminating a checked cast made redundant by this.
5523 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
5525 * genattr.c (main): When writing out the prototype to
5526 const_num_delay_slots, strengthen the param from rtx to
5528 * genattrtab.c (write_const_num_delay_slots): Likewise when
5529 writing out the implementation of const_num_delay_slots.
5530 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
5531 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
5532 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
5533 favor of new rtx locals "src" and "set" and new local rtx_insn *
5535 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
5537 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
5538 locals "cond", "if_then_else", "set" and new rtx_insn * locals
5540 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
5541 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
5542 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
5543 the top-level scope, replacing with new more tightly-scoped rtx
5544 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
5545 "new_insn", "copy_of_insn_b", and make local rtx "set" more
5547 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
5549 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
5551 (ira_setup_alts): Likewise for param "insn".
5552 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
5553 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
5555 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
5556 new more-tightly scoped rtx locals "add3_insn", "insn",
5557 "add2_insn" and rtx_insn * "move_insn".
5558 * postreload-gcse.c (eliminate_partially_redundant_load): Add
5559 checked cast on result of gen_move_insn when invoking
5561 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
5563 (verify_changes): Add a checked cast on "object" when invoking
5565 (extract_insn_cached): Strengthen param "insn" from rtx to
5567 (extract_constrain_insn_cached): Likewise.
5568 (extract_insn): Likewise.
5569 * recog.h (insn_invalid_p): Likewise for param 1.
5570 (recog_memoized): Likewise for param.
5571 (extract_insn): Likewise.
5572 (extract_constrain_insn_cached): Likewise.
5573 (extract_insn_cached): Likewise.
5574 * reload.c (can_reload_into): Likewise for local "test_insn".
5575 * reload.h (cleanup_subreg_operands): Likewise for param.
5576 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
5577 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
5578 result of emit_insn. Remove a checked cast made redundant by this
5580 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
5582 * sel-sched.c (get_reg_class): Likewise.
5584 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
5585 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5587 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
5588 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
5590 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
5592 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5594 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
5595 const rtx_insn *, and from rtx to rtx_insn * for the other
5597 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
5598 INSN_LOCATION, since we know INSN_P holds.
5599 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
5600 (insn_file): Likewise.
5601 (insn_scope): Likewise.
5602 (insn_location): Likewise.
5604 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
5605 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
5606 for the result of gen_load_const_gp.
5607 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
5608 param from rtx to rtx_insn *.
5609 * config/rs6000/rs6000.c (output_call): Likewise.
5610 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
5611 introducing a checked cast to rtx_sequence * and use of the insn
5613 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
5614 from rtx to rtx_insn *.
5615 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
5616 (insn_line): Likewise.
5617 (insn_file): Likewise.
5618 (insn_location): Likewise.
5619 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
5620 from rtx to rtx_insn *.
5621 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
5622 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
5623 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
5625 * reorg.c (relax_delay_slots): Strengthen locals named "after"
5626 from rtx to rtx_insn *; use methods of "pat" for type-safety.
5628 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5630 * combine.c (try_combine): Eliminate checked cast on result of
5632 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
5633 autogenerated one by strengthening the return type and params 2 and 3
5634 from rtx to rtx_insn *, and by naming the params.
5635 * gengenrtl.c (special_rtx): Add INSN to those that are
5637 * rtl.h (gen_rtx_INSN): New prototype.
5639 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5641 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
5643 (no_equiv): Likewise.
5644 (update_equiv_regs): Likewise.
5645 (setup_reg_equiv): Likewise. Strengthen locals "elem",
5646 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
5647 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
5649 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
5650 from rtx to rtx_insn_list *.
5651 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
5652 rtx_insn_list * and use methods for clarity and typesafety.
5653 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
5655 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
5656 redundant check on INSN_P (insns): this cannot hold, as "insns" is
5657 an INSN_LIST, not an insn.
5658 (reverse_equiv_p): Strengthen local "insns" from rtx to
5659 rtx_insn_list * and use methods for clarity and typesafety.
5660 (contains_reloaded_insn_p): Likewise for local "list".
5662 2014-09-09 Jiong Wang <jiong.wang@arm.com>
5664 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
5665 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
5666 (arm_builtin_vectorized_function): Likewise.
5667 * config/arm/arm_neon_builtins.def: New macro for copysignf.
5668 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
5670 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
5672 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
5673 * builtins.h (default_target_builtins): Likewise.
5674 * gcse.h (default_target_gcse): Likewise.
5675 * target-globals.h (target_globals): Add a destructor. Convert
5676 void-pointer fields back to their real type and change from
5677 GTY((atomic)) to GTY((skip)).
5678 (restore_target_globals): Remove casts accordingly.
5679 * target-globals.c (save_target_globals): Use XCNEW rather than
5680 ggc_internal_cleared_alloc to allocate non-GC structures.
5681 Use ggc_cleared_alloc to allocate the target_globals structure
5683 (target_globals::~target_globals): Define.
5685 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5687 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
5688 mnemonic instead of fldmfdd.
5689 * config/arm/arm.c (vfp_output_fstmd): Rename to...
5690 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
5691 Output vpush when address register is SP.
5692 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
5693 (vfp_output_vstmd): ... This.
5694 * config/arm/vfp.md (push_multi_vfp): Update call to
5697 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5699 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
5701 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5703 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
5704 (*sqrtdf2_vfp): Likewise.
5705 (*cmpsf_vfp): Likewise.
5706 (*cmpsf_trap_vfp): Likewise.
5707 (*cmpdf_vfp): Likewise.
5708 (*cmpdf_trap_vfp): Likewise.
5710 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5712 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
5713 (*truncdfsf2_vfp): Likewise.
5714 (*truncsisf2_vfp): Likewise.
5715 (*truncsidf2_vfp): Likewise.
5716 (fixuns_truncsfsi2): Likewise.
5717 (fixuns_truncdfsi2): Likewise.
5718 (*floatsisf2_vfp): Likewise.
5719 (*floatsidf2_vfp): Likewise.
5720 (floatunssisf2): Likewise.
5721 (floatunssidf2): Likewise.
5723 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5725 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
5726 (*muldf3_vfp): Likewise.
5727 (*mulsf3negsf_vfp): Likewise.
5728 (*muldf3negdf_vfp): Likewise.
5729 (*mulsf3addsf_vfp): Likewise.
5730 (*muldf3adddf_vfp): Likewise.
5731 (*mulsf3subsf_vfp): Likewise.
5732 (*muldf3subdf_vfp): Likewise.
5733 (*mulsf3negsfaddsf_vfp): Likewise.
5734 (*fmuldf3negdfadddf_vfp): Likewise.
5735 (*mulsf3negsfsubsf_vfp): Likewise.
5736 (*muldf3negdfsubdf_vfp): Likewise.
5738 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5740 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
5741 (*absdf2_vfp): Likewise.
5742 (*negsf2_vfp): Likewise.
5743 (*negdf2_vfp): Likewise.
5744 (*addsf3_vfp): Likewise.
5745 (*adddf3_vfp): Likewise.
5746 (*subsf3_vfp): Likewise.
5747 (*subdf3_vfp): Likewise.
5748 (*divsf3_vfp): Likewise.
5749 (*divdf3_vfp): Likewise.
5751 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5753 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
5755 (arm_print_operand): Don't convert real values to decimal
5756 representation in default case.
5757 (fp_immediate_constant): Delete.
5758 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
5759 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
5761 (*thumb2_movsi_vfp): Likewise.
5762 (*movdi_vfp): Likewise.
5763 (*movdi_vfp_cortexa8): Likewise.
5764 (*movhf_vfp_neon): Likewise.
5765 (*movhf_vfp): Likewise.
5766 (*movsf_vfp): Likewise.
5767 (*thumb2_movsf_vfp): Likewise.
5768 (*movdf_vfp): Likewise.
5769 (*thumb2_movdf_vfp): Likewise.
5770 (*movsfcc_vfp): Likewise.
5771 (*thumb2_movsfcc_vfp): Likewise.
5772 (*movdfcc_vfp): Likewise.
5773 (*thumb2_movdfcc_vfp): Likewise.
5775 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
5777 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
5781 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5784 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
5785 Use qualifier_immediate for last operand. Rename to...
5786 (aarch64_types_ternop_lane_qualifiers): ... This.
5787 (TYPES_QUADOP): Rename to...
5788 (TYPES_TERNOP_LANE): ... This.
5789 (aarch64_simd_expand_args): Return const0_rtx when encountering user
5790 error. Change return of 0 to return of NULL_RTX.
5791 (aarch64_crc32_expand_builtin): Likewise.
5792 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
5793 ICE when expanding unknown builtin.
5794 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
5795 TERNOP_LANE qualifiers.
5796 (sqdmlsl_lane): Likewise.
5797 (sqdmlal_laneq): Likewise.
5798 (sqdmlsl_laneq): Likewise.
5799 (sqdmlal2_lane): Likewise.
5800 (sqdmlsl2_lane): Likewise.
5801 (sqdmlal2_laneq): Likewise.
5802 (sqdmlsl2_laneq): Likewise.
5804 2014-09-09 Nick Clifton <nickc@redhat.com>
5806 * doc/invoke.texi (Optimization Options): Add missing @gol to the
5808 (S/390 and zSeries Options): Remove superfluous word from the
5809 description of the -mhotpatch option.
5811 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
5813 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
5814 * ira.c: #include "shrink-wrap.h"
5815 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
5816 * ifcvt.c: #include "shrink-wrap.h"
5817 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
5819 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
5821 * common/config/picochip/picochip-common.c: Remove.
5822 * config.gcc: Remove support for picochip.
5823 * config/picochip/constraints.md: Remove.
5824 * config/picochip/dfa_space.md: Remove.
5825 * config/picochip/dfa_speed.md: Remove.
5826 * config/picochip/picochip-protos.h: Remove.
5827 * config/picochip/picochip.c: Remove.
5828 * config/picochip/picochip.h: Remove.
5829 * config/picochip/picochip.md: Remove.
5830 * config/picochip/picochip.opt: Remove.
5831 * config/picochip/predicates.md: Remove.
5832 * config/picochip/t-picochip: Remove.
5833 * doc/md.texi: Don't document picochi.
5835 2014-09-08 David Malcolm <dmalcolm@redhat.com>
5837 * basic-block.h (control_flow_insn_p): Strengthen param from
5838 const_rtx to const rtx_insn *.
5839 * cfgbuild.c (control_flow_insn_p): Likewise.
5841 2014-09-08 David Malcolm <dmalcolm@redhat.com>
5843 * gcse.c (modify_mem_list): Strengthen this variable from
5844 vec<rtx> * to vec<rtx_insn *> *.
5845 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
5847 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
5848 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
5849 (record_last_mem_set_info): Strengthen param "insn" from rtx to
5851 (record_last_set_info): Likewise for local "last_set_insn".
5853 2014-09-08 DJ Delorie <dj@redhat.com>
5855 * doc/invoke.texi (MSP430 Options): Add -minrt.
5857 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5859 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
5860 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
5861 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
5863 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
5865 (adjust_splat): New function.
5866 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
5867 (dump_swap_insn_table): Add case for SH_SPLAT.
5869 2014-09-08 Richard Biener <rguenther@suse.de>
5872 * tree-inline.c (copy_loops): The source loop header should
5874 (tree_function_versioning): If loops need fixup after removing
5875 unreachable blocks fix them.
5876 * omp-low.c (simd_clone_adjust): Do not add incr block to
5877 loop under construction.
5879 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
5881 * config/aarch64/aarch64-builtins.c
5882 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
5884 2014-09-08 Joseph Myers <joseph@codesourcery.com>
5886 * config/i386/cygming.h (TF_SIZE): Remove.
5887 * config/i386/darwin.h (TF_SIZE): Remove.
5888 * config/i386/dragonfly.h (TF_SIZE): Remove.
5889 * config/i386/freebsd.h (TF_SIZE): Remove.
5890 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
5891 * config/i386/openbsdelf.h (TF_SIZE): Remove.
5892 * config/i386/sol2.h (TF_SIZE): Remove.
5893 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
5894 * config/ia64/linux.h (TF_SIZE): Remove.
5895 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
5896 * doc/tm.texi: Regenerate.
5897 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
5899 2014-09-08 Joseph Myers <joseph@codesourcery.com>
5901 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
5903 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
5905 * doc/tm.texi: Regenerate.
5906 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
5908 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
5909 * config/cris/cris.h (__make_dp): Remove.
5911 2014-09-08 Richard Biener <rguenther@suse.de>
5914 * cfgloop.c (mark_loop_for_removal): Track former header
5916 * cfgloop.h (struct loop): Add former_header member unconditionally.
5917 * loop-init.c (fix_loop_structure): Enable bogus loop removal
5918 diagnostic unconditionally.
5920 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
5923 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
5924 constraint for operand0 and remove write only modifier from operand3.
5926 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
5928 PR rtl-optimization/62208
5929 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
5930 rather than const0_rtx in eq/ne-xor simplifications.
5932 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
5934 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
5935 (arc_output_mi_thunk): Likewise.
5937 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
5938 arguments to silence bogus warning.
5940 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
5943 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
5945 2014-09-06 Tom de Vries <tom@codesourcery.com>
5947 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
5948 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
5949 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
5951 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
5954 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
5955 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
5957 2014-09-05 Easwaran Raman <eraman@google.com>
5959 PR rtl-optimization/62146
5960 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
5961 hoisted instruction unconditional.
5963 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
5966 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
5967 Do not allow any_mask_operand for operands[2].
5968 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
5970 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5972 * config/arc/arc.c (arc_print_operand): Use insn method of
5973 final_sequence for type-safety.
5974 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
5975 "insn" from rtx to rtx_insn *.
5976 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
5977 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
5978 Likewise for locals "branch", "label".
5979 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
5980 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
5981 (same_cmp_following_p): Likewise for locals "i2", "i3".
5982 * config/sh/sh_optimize_sett_clrt.cc
5983 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
5984 param "cbranch_insn".
5985 * function.c (convert_jumps_to_returns): Likewis for local "jump".
5986 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
5987 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
5989 (condjump_p): Likewise.
5990 (condjump_in_parallel_p): Likewise.
5992 (any_uncondjump_p): Likewise.
5993 (any_condjump_p): Likewise.
5994 (condjump_label): Likewise.
5995 (returnjump_p): Strengthen param "insn" from rtx to
5997 (onlyjump_p): Strengthen param "insn" from const_rtx to
5999 (jump_to_label_p): Likewise.
6000 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6001 (invert_jump): Likewise.
6002 * reorg.c (simplejump_or_return_p): Add checked cast when calling
6004 (get_jump_flags): Strengthen param "insn" from rtx to
6006 (get_branch_condition): Likewise.
6007 (condition_dominates_p): Likewise.
6008 (make_return_insns): Move declaration of local "pat" earlier, to
6009 after we've handled NONJUMP_INSN_P and non-sequences, using its
6010 methods to simplify the code and for type-safety.
6011 * rtl.h (find_constant_src): Strengthen param from const_rtx to
6013 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6014 (condjump_p): Strengthen param from const_rtx to
6016 (any_condjump_p): Likewise.
6017 (any_uncondjump_p): Likewise.
6019 (condjump_label): Likewise.
6020 (simplejump_p): Likewise.
6021 (returnjump_p): Likewise.
6022 (onlyjump_p): Likewise.
6023 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6024 (invert_jump): Likewise.
6025 (condjump_in_parallel_p): Strengthen param from const_rtx to
6027 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6028 to const rtx_insn *.
6029 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6030 to const rtx_insn *.
6031 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6033 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6035 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6036 above the conditional, and convert the check on GET_CODE to a
6037 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6038 the conditional. Simplify the conditional by using methods of
6041 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6043 * haifa-sched.c (check_clobbered_conditions): Strengthen local
6044 "link" from rtx to rtx_insn_list *, and use its methods for
6045 clarity and type-safety.
6046 (toggle_cancelled_flags): Likewise.
6047 (restore_last_backtrack_point): Likewise.
6048 (queue_to_ready): Use insn method of "link" in one place.
6049 (schedule_block): Strengthen local "link" from rtx to
6050 rtx_insn_list *, and use its methods for clarity and type-safety.
6052 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6054 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6055 param "insn" from const_rtx to const rtx_insn *.
6056 (sched_get_reverse_condition_uncached): Likewise.
6057 (sched_get_condition_with_rev): Likewise.
6058 (sched_has_condition_p): Likewise.
6059 (sched_insns_conditions_mutex_p): Likewise for both params.
6060 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6061 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6062 (setup_insn_reg_uses): Move local "list" to be more tightly
6063 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
6064 its methods for clarity and type-safety.
6065 (sched_analyze_1): Strengthen local "pending" from rtx to
6066 rtx_insn_list *, and local "pending_mem" from rtx to
6067 rtx_expr_list *. Use methods of each for clarity and type-safety.
6068 (sched_analyze_2): Likewise.
6069 (sched_analyze_insn): Likewise.
6071 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
6072 param from const_rtx to const rtx_insn *.
6073 (sched_insns_conditions_mutex_p): Likewise for both params.
6074 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
6077 * system.h (CONST_CAST_RTX_INSN): New macro.
6079 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6081 * recog.c (peep2_attempt): Strengthen return type from rtx to
6083 (peep2_update_life): Likewise for params "last", "prev", removing
6084 a checked cast made redundant by this.
6085 (peephole2_optimize): Likewise for local "last".
6087 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6089 * basic-block.h (set_block_for_insn): Eliminate this macro in
6091 * rtl.h (set_block_for_insn): New inline function, imposing the
6092 requirement that the "insn" param is an rtx_insn *.
6094 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6096 * caller-save.c (setup_save_areas): Strengthen local "insn" from
6098 * final.c (get_call_reg_set_usage): Likewise for first param,
6099 eliminating a checked cast.
6100 * regs.h (get_call_reg_set_usage): Likewise for first param.
6101 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
6102 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
6103 cast, replacing references to "x" with "call_insn" where
6105 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
6106 rtx_insn *, adding a checked cast.
6108 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6110 * output.h (final_scan_insn): Strengthen first param from rtx to
6113 * final.c (final_scan_insn): Likewise, renaming it back from
6114 "uncast_insn" to "insn", eliminating the checked cast.
6116 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
6117 "vec" with an rtx_sequence * "seq", taking a copy of
6118 "final_sequence", and using methods of "seq" for clarity, and for
6119 type-safety in the calls to final_scan_insn.
6120 * config/mips/mips.c (mips_output_conditional_branch): Use methods
6121 of "final_sequence" for clarity, and for type-safety in the call to
6123 * config/sh/sh.c (print_slot): Strengthen param from rtx to
6124 rtx_sequence * and rename from "insn" to "seq".
6126 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6128 * jump.c (delete_related_insns): Introduce a new local "table" by
6129 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
6130 get_labels method of "table" to simplify access to the labels in
6133 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6135 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
6136 f_minmaxs, f_minmaxd types.
6138 2014-09-05 Richard Biener <rguenther@suse.de>
6140 * cfgloop.c (mark_loop_for_removal): Record former header
6141 when ENABLE_CHECKING.
6142 * cfgloop.h (strut loop): Add former_header member when
6144 * loop-init.c (fix_loop_structure): Sanity check loops
6145 marked for removal if they re-appeared.
6147 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6149 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
6150 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
6152 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
6153 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
6154 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
6155 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
6156 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
6157 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
6158 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
6159 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
6160 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
6161 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
6162 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
6163 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
6164 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
6165 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
6166 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
6167 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
6168 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
6169 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
6170 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
6171 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
6172 with int{32,16,8}_t.
6174 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6176 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
6177 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
6178 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
6179 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
6180 Remove temporary __asm__ and reimplement.
6182 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6184 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
6185 handling cmge, cmgt, cmeq, cmtst.
6187 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
6188 cmlt, cmgeu, cmgtu, cmtst): Remove.
6190 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
6191 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
6192 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
6193 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
6195 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6197 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
6199 (aarch64_fold_builtin): Update pattern for cmtst.
6201 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
6204 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
6206 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
6207 Switch operands, separate out more cases, refactor.
6209 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
6211 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
6212 argument; rename old version to...
6213 (aarch64_const_vec_all_same_in_range_p): ...this.
6214 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
6216 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
6218 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6220 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6221 Remove qualifier_const_pointer, update comment.
6223 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6225 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
6227 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6229 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
6230 varargs with pointer parameter.
6231 (aarch64_simd_expand_builtin): pass pointer into previous.
6233 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6235 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
6238 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6240 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
6241 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
6242 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6243 Replace temporary asm with call to builtin.
6244 (vrbit_p8, vrbitq_p8): New functions.
6246 2014-09-05 Richard Biener <rguenther@suse.de>
6248 * cfgloop.c (mark_loop_for_removal): New function.
6249 * cfgloop.h (mark_loop_for_removal): Declare.
6250 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
6251 (merge_blocks): Likewise.
6252 (duplicate_block): Likewise.
6253 * except.c (sjlj_emit_dispatch_table): Likewise.
6254 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
6255 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
6256 (thread_through_loop_header): Likewise.
6258 2014-09-05 Richard Biener <rguenther@suse.de>
6261 * fold-const.c (try_move_mult_to_index): Remove.
6262 (fold_binary_loc): Do not call it.
6263 * tree-data-ref.c (dr_analyze_indices): Strip conversions
6264 from the base object again.
6266 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6268 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
6271 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6274 * config/arm/arm.md (setmem): New pattern.
6275 * config/arm/arm-protos.h (struct tune_params): New fields.
6276 (arm_gen_setmem): New prototype.
6277 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6278 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6279 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6280 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6281 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6282 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6283 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6284 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6285 (arm_const_inline_cost): New function.
6286 (arm_block_set_max_insns): New function.
6287 (arm_block_set_non_vect_profit_p): New function.
6288 (arm_block_set_vect_profit_p): New function.
6289 (arm_block_set_unaligned_vect): New function.
6290 (arm_block_set_aligned_vect): New function.
6291 (arm_block_set_unaligned_non_vect): New function.
6292 (arm_block_set_aligned_non_vect): New function.
6293 (arm_block_set_vect, arm_gen_setmem): New functions.
6295 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6297 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
6299 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6301 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6303 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6305 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
6307 * valtrack.h: Adjust.
6309 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6311 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6313 (emit_jump_insn_before_noloc): Likewise.
6314 (emit_call_insn_before_noloc): Likewise.
6315 (emit_label_before): Likewise.
6316 (emit_label_after): Likewise.
6317 (emit_insn_before_setloc): Likewise.
6318 (emit_jump_insn_before_setloc): Likewise.
6319 (emit_call_insn_before_setloc): Likewise.
6320 (emit_call_insn_before): Likewise.
6323 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6325 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6326 rtx_insn *, eliminating a checked cast.
6328 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6330 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6331 const_rtx to const rtx_insn *.
6332 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6335 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6337 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6338 fixup_args_size_notes.
6339 * expr.c (fixup_args_size_notes): Strengthen first two params from
6340 rtx to rtx_insn *, eliminating a checked cast.
6341 * rtl.h (fixup_args_size_notes): Strengthen first two params from
6344 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6346 * haifa-sched.c (get_ready_element): Strengthen return type from
6348 * sched-int.h (get_ready_element): Likewise.
6350 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
6353 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6354 indexed_or_indirect_operand instead of memory_operand.
6355 (floatsi<mode>2_lfiwzx_mem): Ditto.
6357 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6359 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6360 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6361 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6363 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6365 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6367 (get_last_nonnote_insn): Likewise.
6368 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6369 * resource.c (find_basic_block): Likewise.
6371 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6374 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6376 * genattr.c (main): Within the prototype of insn_latency written
6377 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6378 * genautomata.c (output_internal_maximal_insn_latency_func):
6379 Within the implementation of insn_latency written out to
6380 insn-automata.c, strengthen both params from rtx to rtx_insn *,
6381 eliminating a pair of checked casts.
6383 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6385 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6388 * rtl.h (eh_returnjump_p): Likewise.
6390 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
6392 * Makefile.in (TAGS): Handle constructs in timevar.def.
6394 2014-09-04 Guozhi Wei <carrot@google.com>
6397 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6398 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6399 it into two patterns.
6400 (move_lo_quad_internal_be_<mode>): Likewise.
6402 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6404 * doc/options.texi: Document that Var and Init are required if CPP
6406 * optc-gen.awk: Require Var and Init if CPP is given.
6407 * common.opt (Wpedantic): Use Init.
6409 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6411 * config/rs6000/rs6000.c (special_handling_values): Add
6413 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
6414 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
6415 as swappable with special handling SH_EXTRACT. Remove
6416 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
6418 (adjust_extract): New function.
6419 (handle_special_swappables): Add default to case statement; add
6420 case for SH_EXTRACT that calls adjust_extract.
6421 (dump_swap_insn_table): Handle SH_EXTRACT.
6423 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6425 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
6426 selection of 0th memory doubleword, regardless of endianness.
6428 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6430 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6432 2014-09-04 Alan Modra <amodra@gmail.com>
6435 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6438 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
6440 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6441 * targhooks.c (default_dwarf_frame_reg_mode): New function.
6442 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6443 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6444 * doc/tm.texi: Regenerate.
6445 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6446 selection logic to default_dwarf_frame_reg_mode.
6448 2014-09-03 Marek Polacek <polacek@redhat.com>
6450 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6453 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6455 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6456 the automodified register.
6458 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6460 * output.h (get_some_local_dynamic_name): Declare.
6461 * final.c (some_local_dynamic_name): New variable.
6462 (get_some_local_dynamic_name): New function.
6463 (final_end_function): Clear some_local_dynamic_name.
6464 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
6465 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6466 (print_operand): Report an error if '%&' is used inappropriately.
6467 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
6468 (get_some_local_dynamic_name_1): Delete.
6469 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
6470 (rs6000_get_some_local_dynamic_name): Delete.
6471 (rs6000_get_some_local_dynamic_name_1): Delete.
6472 (print_operand): Report an error if '%&' is used inappropriately.
6473 * config/s390/s390.c (machine_function): Remove some_ld_name.
6474 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6475 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
6476 * config/sparc/sparc.c: Include rtl-iter.h.
6477 (machine_function): Remove some_ld_name.
6478 (sparc_print_operand): Report an error if '%&' is used inappropriately.
6479 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6481 2014-09-03 Richard Henderson <rth@redhat.com>
6483 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
6484 (aarch64_popwb_pair_reg): Remove.
6485 (aarch64_set_frame_expr): Remove.
6486 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
6487 the restore ops performed by the insns generated.
6488 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
6489 insn. Perform the calls_eh_return addition later; do not attempt to
6490 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
6491 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
6492 special markup at all. Load cfun->machine->frame.hard_fp_offset
6493 into a local variable.
6494 (aarch64_frame_pointer_required): Don't check calls_alloca.
6496 2014-09-03 Richard Biener <rguenther@suse.de>
6498 * opts.c (default_options_optimization): Adjust
6499 max-combine-insns to 2 for -Og.
6501 2014-09-03 Martin Jambor <mjambor@suse.cz>
6504 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
6505 pass-trough jump functions correctly.
6507 2014-09-03 Martin Jambor <mjambor@suse.cz>
6510 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
6511 created replacements in ascending order of offsets.
6512 (known_aggs_to_agg_replacement_list): Likewise.
6514 2014-09-03 Martin Liska <mliska@suse.cz>
6516 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
6517 is set to set uninitialized value for vnresult.
6519 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6521 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
6522 for TARGET_MUST_PASS_IN_STACK.
6524 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6526 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
6527 for TARGET_ARG_PARTIAL_BYTES.
6529 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6531 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
6532 instructions for varargs implementation.
6533 (nds32_expand_epilogue): Emit stack adjustment instructions for
6534 varargs implementation.
6536 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6538 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
6539 optimization detection.
6541 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6543 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
6545 (nds32_function_arg_advance): Deal with nameless arguments.
6546 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
6547 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
6548 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
6550 2014-09-03 Richard Biener <rguenther@suse.de>
6552 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
6553 (struct bb_bitmap_sets): Remove deferred member.
6554 (BB_DEFERRED): Remove.
6555 (defer_or_phi_translate_block): Remove.
6556 (compute_antic_aux): Remove deferring of blocks, assert
6557 proper iteration order.
6558 (compute_antic): Do not set BB_DEFERRED.
6559 (eliminate): Allocate el_avail of proper size initially.
6561 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6563 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
6564 according to the value of crtl->args.pretend_args_size.
6566 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6568 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
6569 varargs information.
6571 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6573 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
6574 implementation for TARGET_SETUP_INCOMING_VARARGS.
6575 (nds32_strict_argument_naming): Refine comment.
6576 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
6577 Define for future implementation.
6579 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
6581 * config/i386/adxintrin.h (_subborrow_u32): New.
6582 (_addcarry_u32): Ditto.
6583 (_subborrow_u64): Ditto.
6584 (_addcarry_u64): Ditto.
6585 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
6587 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
6588 __builtin_ia32_sbb_u64
6590 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6592 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
6594 (nds32_function_arg_advance): Likewise.
6595 (nds32_init_cumulative_args): Likewise.
6596 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
6597 (NDS32_FIRST_GPR_REGNUM): Define.
6598 (NDS32_LAST_GPR_REGNUM): Define.
6599 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
6600 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6601 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6602 (machine_function): Use GRP-specific stuff.
6604 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6606 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
6607 (nds32_expand_epilogue): Likewise.
6608 (nds32_expand_prologue_v3push): Likewise.
6609 (nds32_expand_epilogue_v3pop): Likewise.
6611 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6613 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
6614 v3push/v3pop for variadic function.
6615 * config/nds32/nds32.md (prologue, epilogue): Likewise.
6617 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6619 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
6620 Check rtx for varargs implementation.
6621 (nds32_output_stack_pop): Likewise.
6622 * config/nds32/nds32-protos.h: Have a rtx argument for
6623 nds32_output_stack_push and nds32_output_stack_pop.
6624 * config/nds32/nds32.md: Likewise.
6626 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6628 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
6629 to check if FUNC is an interrupt service routine.
6630 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
6632 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6634 * config/nds32/nds32.h (machine_function): Add some fields for variadic
6635 arguments implementation.
6637 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6639 * config/nds32/nds32-predicates.c
6640 (nds32_valid_stack_push_pop): Rename to ...
6641 (nds32_valid_stack_push_pop_p): ... this.
6642 * config/nds32/nds32-protos.h: Likewise.
6643 * config/nds32/predicates.md: Likewise.
6645 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6647 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
6648 (nds32_emit_stack_v3push): ... this.
6649 (nds32_gen_stack_v3pop): Rename to ...
6650 (nds32_emit_stack_v3pop): ... this and consider CFA restore
6653 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6655 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
6656 (nds32_emit_stack_push_multiple): ... this.
6657 (nds32_gen_stack_pop_multiple): Rename to ...
6658 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
6661 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6664 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
6665 and add a second splitter to handle the remaining cases.
6667 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6669 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
6671 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6673 * cfgexpand.c (label_rtx_for_bb): Change type to
6674 hash_map<basic_block, rtx_code_label *> *.
6675 (expand_gimple_basic_block): Adjust.
6676 (pass_expand::execute): Likewise.
6678 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6680 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
6681 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
6682 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
6683 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
6684 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
6685 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
6686 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
6689 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6691 * alloc-pool.c: Include coretypes.h.
6692 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
6693 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
6694 hash_set instead of htab.
6695 * ggc-page.c (in_gc): New variable.
6696 (ggc_free): Do nothing if a collection is taking place.
6697 (ggc_collect): Set in_gc appropriately.
6698 * ggc.h (gt_ggc_mx(const char *)): New function.
6699 (gt_pch_nx(const char *)): Likewise.
6700 (gt_ggc_mx(int)): Likewise.
6701 (gt_pch_nx(int)): Likewise.
6702 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
6703 (hash_map::hash_entry::pch_nx): Likewise.
6704 (hash_map::hash_entry::pch_nx_helper): Likewise.
6705 (hash_map::hash_map): Adjust.
6706 (hash_map::create_ggc): New function.
6707 (gt_ggc_mx): Likewise.
6708 (gt_pch_nx): Likewise.
6709 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
6710 (default_hashset_traits::pch_nx): Likewise.
6711 (hash_set::hash_entry::ggc_mx): Likewise.
6712 (hash_set::hash_entry::pch_nx): Likewise.
6713 (hash_set::hash_entry::pch_nx_helper): Likewise.
6714 (hash_set::hash_set): Adjust.
6715 (hash_set::create_ggc): New function.
6716 (hash_set::elements): Likewise.
6717 (gt_ggc_mx): Likewise.
6718 (gt_pch_nx): Likewise.
6719 * hash-table.h (hash_table::hash_table): Adjust.
6720 (hash_table::m_ggc): New member.
6721 (hash_table::~hash_table): Adjust.
6722 (hash_table::expand): Likewise.
6723 (hash_table::empty): Likewise.
6724 (gt_ggc_mx): New function.
6725 (hashtab_entry_note_pointers): Likewise.
6726 (gt_pch_nx): Likewise.
6728 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6730 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
6731 built-in definition.
6732 (XVCVUXDDP_SCALE): Likewise.
6733 (XVCVDPSXDS_SCALE): Likewise.
6734 (XVCVDPUXDS_SCALE): Likewise.
6735 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6736 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
6737 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
6738 VSX_BUILTIN_XVCVDPUXDS_SCALE.
6739 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
6741 * config/rs6000/rs6000.c (real.h): New include.
6742 (rs6000_scale_v2df): New function.
6743 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
6744 (UNSPEC_VSX_XVCVUXDDP): Likewise.
6745 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
6746 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
6747 (vsx_xvcvsxddp_scale): New define_expand.
6748 (vsx_xvcvsxddp): New define_insn.
6749 (vsx_xvcvuxddp_scale): New define_expand.
6750 (vsx_xvcvuxddp): New define_insn.
6751 (vsx_xvcvdpsxds_scale): New define_expand.
6752 (vsx_xvcvdpsxds): New define_insn.
6753 (vsx_xvcvdpuxds_scale): New define_expand.
6754 (vsx_xvcvdpuxds): New define_insn.
6755 * doc/extend.texi (vec_ctf): Add new prototypes.
6756 (vec_cts): Likewise.
6757 (vec_ctu): Likewise.
6758 (vec_splat): Likewise.
6759 (vec_div): Likewise.
6760 (vec_mul): Likewise.
6762 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6765 * config/arm/neon.md
6766 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
6767 <v_cmp_result>): New pattern.
6768 * config/arm/iterators.md (NEON_VCVT): New int iterator.
6769 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
6770 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
6771 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
6772 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
6773 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
6775 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6778 * config/arm/iterators.md (FIXUORS): New code iterator.
6779 (VCVT): New int iterator.
6780 (su_optab): New code attribute.
6782 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
6784 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6786 * config/aarch64/predicates.md (aarch64_comparison_operation):
6787 New special predicate.
6788 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
6789 aarch64_comparison_operation instead of matching an operator.
6790 Update operand numbers.
6791 (csinc3<mode>_insn): Likewise.
6792 (*csinv3<mode>_insn): Likewise.
6793 (*csneg3<mode>_insn): Likewise.
6794 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
6795 * config/aarch64/aarch64.c (aarch64_get_condition_code):
6796 Return -1 instead of aborting on invalid condition codes.
6797 (aarch64_print_operand): Update aarch64_get_condition_code callsites
6798 to assert that the returned condition code is valid.
6799 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
6801 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
6803 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
6804 tree.def, and gimple.def
6806 2014-09-02 Jakub Jelinek <jakub@redhat.com>
6807 Balaji V. Iyer <balaji.v.iyer@intel.com>
6808 Igor Zamyatin <igor.zamyatin@intel.com>
6810 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
6811 (__cilkrts_cilk_for_64): Likewise.
6812 * cilk-common.c (declare_cilk_for_builtin): New function.
6813 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
6814 __cilkrts_cilk_for_64 bultins.
6815 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
6817 (cilk_for_32_fndecl): New define.
6818 (cilk_for_64_fndecl): Likewise.
6819 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
6820 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
6821 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
6822 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
6823 GF_OMP_FOR_COMBINED_INTO.
6824 * gimplify.c (gimplify_scan_omp_clauses): Added
6825 OMP_CLAUSE__CILK_FOR_COUNT_ case.
6826 (gimplify_adjust_omp_clauses): Ditto.
6827 (gimplify_omp_for): Added CILK_FOR case.
6828 (gimplify_expr): Ditto.
6829 * omp-low.c: Include cilk.h.
6830 (extract_omp_for_data): Set appropriate kind for
6831 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
6832 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
6833 (create_omp_child_function_name): Added second argument to handle
6835 (cilk_for_check_loop_diff_type): New function.
6836 (expand_cilk_for_call): Likewise.
6837 (expand_cilk_for): Likewise.
6838 (create_omp_child_function): Set cilk_for_count; handle the cases when
6839 it is true; call create_omp_child_function_name with second argument.
6840 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
6841 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
6842 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
6843 * tree-nested.c (convert_nonlocal_omp_clauses): Added
6844 OMP_CLAUSE__CILK_FOR_COUNT_ case.
6845 (convert_local_omp_clauses): Ditto.
6846 * tree-pretty-print.c (dump_omp_clause): Added
6847 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
6848 (dump_generic_node): Added CILK_FOR case.
6849 * tree.c (omp_clause_num_ops): New element
6850 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
6851 (omp_clause_code_name): New element _Cilk_for_count_.
6852 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
6853 * tree.def: Add tree code for CILK_FOR.
6855 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6857 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
6858 (ppc403-compare): Add "exts with dot" case.
6859 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
6860 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
6861 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
6862 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
6863 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
6864 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
6865 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
6866 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
6867 cell-cmp-microcoded): Similarly.
6868 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
6869 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
6870 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
6871 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
6872 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
6873 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
6874 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
6875 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
6876 (power6-compare): Add "exts with dot" case.
6877 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
6878 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
6879 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
6881 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
6882 if avoiding Cell microcode.
6883 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
6884 (is_cracked_insn): Ditto.
6885 (insn_must_be_first_in_group): Ditto.
6886 * config/rs6000/rs6000.md (dot): Adjust comment.
6887 (cell_micro): Handle exts+dot.
6888 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
6889 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
6890 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
6891 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
6892 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
6893 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
6894 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
6896 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6898 * config/rs6000/rs6000.md (QHSI): Delete.
6899 (EXTQI, EXTHI, EXTSI): New mode iterators.
6900 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
6901 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
6902 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
6903 9 anonymous instructions, and 8 splitters): Delete.
6904 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
6905 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
6906 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
6907 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
6908 *zero_extendsi<mode>2_dot2): New.
6910 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6912 * config/rs6000/rs6000.md (any_extend): New code iterator.
6913 (u, su): New code attributes.
6914 (dmode, DMODE): New mode attributes.
6915 (<su>mul<mode>3_highpart): New.
6916 (*<su>mul<mode>3_highpart): New.
6917 (<su>mulsi3_highpart_le): New.
6918 (<su>muldi3_highpart_le): New.
6919 (<su>mulsi3_highpart_64): New.
6920 (<u>mul<mode><dmode>3): New.
6921 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
6923 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
6926 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6928 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
6929 *mulsi3_internal2, and two splitters): Delete.
6930 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
6932 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
6934 2014-09-02 Richard Biener <rguenther@suse.de>
6936 PR tree-optimization/62695
6937 * tree-ssa-structalias.c (find_func_clobbers): Add missing
6940 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
6943 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
6945 2014-09-01 Andi Kleen <ak@linux.intel.com>
6947 * file-find.c (add_prefix_begin): Add.
6948 (do_add_prefix): Rename from add_prefix with first argument.
6949 (add_prefix): Add new wrapper.
6950 * file-find.h (add_prefix_begin): Add.
6951 * gcc-ar.c (main): Support -B option.
6953 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
6955 * genemit.c: Include dumpfile.h.
6956 (gen_split): Print name of splitter function to dump file.
6958 2014-09-01 Richard Biener <rguenther@suse.de>
6960 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
6961 Use stack auto_vecs for constraint expressions.
6962 (find_func_aliases_for_call): Likewise.
6963 (find_func_aliases): Likewise.
6964 (find_func_clobbers): Likewise.
6966 2014-09-01 Richard Biener <rguenther@suse.de>
6968 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
6969 operands vector in most cases. Remove redundant code.
6971 2014-09-01 Olivier Hainque <hainque@adacore.com>
6973 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
6974 $WIND_BASE instead of designating a harcoded arbitrary home dir.
6975 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
6977 2014-09-01 Richard Biener <rguenther@suse.de>
6979 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
6980 copy_reference_ops_from_call, vn_nary_op_compute_hash,
6981 vn_reference_compute_hash, vn_reference_insert): Remove.
6982 (vn_reference_lookup_call): New function.
6983 * tree-ssa-sccvn.c (vn_reference_compute_hash,
6984 copy_reference_ops_from_ref, copy_reference_ops_from_call,
6985 vn_reference_insert, vn_nary_op_compute_hash): Make static.
6986 (create_reference_ops_from_call): Remove.
6987 (vn_reference_lookup_3): Properly update shared_lookup_references.
6988 (vn_reference_lookup_pieces): Assert that we updated
6989 shared_lookup_references properly.
6990 (vn_reference_lookup): Likewise.
6991 (vn_reference_lookup_call): New function.
6992 (visit_reference_op_call): Use it. Avoid re-building the
6994 (visit_reference_op_load): Remove redundant lookup.
6995 (visit_reference_op_store): Perform special tail-merging work
6996 only when possibly doing tail-merging.
6997 (visit_use): Likewise.
6998 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7000 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7003 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7004 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7005 (find_inc): Revert 2014-08-13 change.
7007 2014-09-01 Marek Polacek <polacek@redhat.com>
7010 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7011 Change the type of V to unsigned HOST_WIDE_INT.
7013 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
7015 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7016 the size of byte markers.
7017 (do_shift_rotate): Fix confusion between host, target and marker byte
7019 (verify_symbolic_number_p): Likewise.
7020 (find_bswap_or_nop_1): Likewise.
7021 (find_bswap_or_nop): Likewise.
7023 2014-09-01 Olivier Hainque <hainque@adacore.com>
7025 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7026 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7028 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7030 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7031 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7032 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7034 2014-09-01 Yury Gribov <y.gribov@samsung.com>
7038 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7039 (build_check_stmt): Likewise.
7040 (instrument_strlen_call): Likewise.
7041 (asan_expand_check_ifn): Likewise and fix types.
7042 (maybe_cast_to_ptrmode): New function.
7044 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7046 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7048 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
7050 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7052 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
7054 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7055 prefix to function labels when generating fast indirect calls.
7057 2014-08-30 David Malcolm <dmalcolm@redhat.com>
7061 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7062 param back from rtx_insn * to rtx. Rename param from "label" to
7063 "label_or_return", reintroducing "label" as an rtx_insn * after
7064 we've ensured it's not a RETURN.
7065 (first_active_target_insn): Likewise for return type and param;
7066 add a checked cast to rtx_insn * once we've ensured "insn" is not
7068 (steal_delay_list_from_target): Convert param "pnew_thread" back
7069 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
7071 (own_thread_p): Convert param "thread" back from an rtx_insn * to
7072 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
7073 cast once we've established we're not dealing with a RETURN,
7074 renaming subsequent uses of "thread" to "thread_insn".
7075 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
7077 (follow_jumps): Convert return type and param "label" from
7078 rtx_insn * back to rtx. Move initialization of "value" to after
7079 the handling for ANY_RETURN_P, adding a checked cast there to
7080 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
7081 rename to "this_label_or_return", reintroducing "this_label" as
7082 an rtx_insn * once we've handled the case where it could be an
7084 (fill_slots_from_thread): Rename param "thread" to
7085 "thread_or_return", converting from an rtx_insn * back to an rtx.
7086 Reintroduce name "thread" as an rtx_insn * local with a checked
7087 cast once we've handled the case of it being an ANY_RETURN_P.
7088 Convert local "new_thread" from an rtx_insn * back to an rtx.
7089 Add a checked cast when assigning to "trial" from "new_thread".
7090 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
7091 checked cast to rtx_insn * from "new_thread" when invoking
7093 (fill_eager_delay_slots): Convert locals "target_label",
7094 "insn_at_target" from rtx_insn * back to rtx.
7095 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
7096 (relax_delay_slots): Convert locals "trial", "target_label" from
7097 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
7098 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
7099 invoking update_block.
7100 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
7101 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
7103 * resource.h (mark_target_live_regs): Undo erroneous conversion
7104 of second param of r214693, converting it back from rtx_insn * to
7105 rtx, since it could be a RETURN.
7107 * resource.c (find_dead_or_set_registers): Similarly, convert
7108 param "jump_target" back from an rtx_insn ** to an rtx *, as we
7109 could be writing back a RETURN. Rename local rtx_insn * "next" to
7110 "next_insn", and introduce "lab_or_return" as a local rtx,
7111 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
7112 (mark_target_live_regs): Undo erroneous conversion
7113 of second param of r214693, converting it back from rtx_insn * to
7114 rtx, since it could be a RETURN. Rename it from "target" to
7115 "target_maybe_return", reintroducing the name "target" as a local
7116 rtx_insn * with a checked cast, after we've handled the case of
7119 2014-08-29 DJ Delorie <dj@redhat.com>
7121 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
7122 pointer size up to a power of two.
7123 * defaults.h (DWARF2_ADDR_SIZE): Round up.
7124 (POINTER_SIZE_UNITS): New, rounded up value.
7125 * dwarf2asm.c (size_of_encoded_value): Use it.
7126 (dw2_output_indirect_constant_1): Likewise.
7127 * expmed.c (init_expmed_one_conv): We now know the sizes of
7129 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
7130 * optabs.c (expand_float): Use precision, not size.
7131 (expand_fix): Likewise.
7132 * simplify-rtx (simplify_unary_operation_1): Likewise.
7133 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7134 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
7135 (default_assemble_integer) Likewise.
7136 (dump_tm_clone_pairs): Likewise.
7137 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
7138 * var-tracking.c (adjust_mems): Allow partial-int modes also.
7139 (prepare_call_arguments): Likewise.
7140 * stor-layout.c (finalize_type_size): Preserve precision.
7141 (layout_type): Use precision, not size.
7143 * expr.c (convert_move): If the target has an explicit converter,
7146 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7148 * gdbinit.in: Skip various inline functions in rtl.h when
7151 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
7154 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
7156 2014-08-29 Richard Biener <rguenther@suse.de>
7158 PR tree-optimization/62291
7159 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
7160 exactly the vector size needed and use quick_push.
7161 (phi_translate_1): Adjust comment.
7162 (valid_in_sets): Remove block argument and remove pointless
7164 (dependent_clean): Adjust for removal of block argument.
7166 (compute_antic_aux): Likewise.
7167 (compute_partial_antic_aux): Likewise.
7169 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7170 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7171 Anna Tikhonova <anna.tikhonova@intel.com>
7172 Ilya Tocar <ilya.tocar@intel.com>
7173 Andrey Turetskiy <andrey.turetskiy@intel.com>
7174 Ilya Verbin <ilya.verbin@intel.com>
7175 Kirill Yukhin <kirill.yukhin@intel.com>
7176 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7178 * config/i386/sse.md
7179 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
7180 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
7181 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
7182 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
7184 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7185 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7186 Anna Tikhonova <anna.tikhonova@intel.com>
7187 Ilya Tocar <ilya.tocar@intel.com>
7188 Andrey Turetskiy <andrey.turetskiy@intel.com>
7189 Ilya Verbin <ilya.verbin@intel.com>
7190 Kirill Yukhin <kirill.yukhin@intel.com>
7191 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7193 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
7194 * config/i386/sse.md
7195 (define_mode_iterator VI4_128_8_256): New.
7196 (define_mode_iterator VI2_128_4_256): Ditto.
7197 (define_mode_iterator PMOV_DST_MODE): Rename into
7198 (define_mode_iterator PMOV_DST_MODE_1): this.
7199 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
7200 Use PMOV_DST_MODE_1 mode iterator.
7201 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7203 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7205 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
7206 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
7207 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
7208 (define_mode_iterator PMOV_DST_MODE_2): New.
7209 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
7210 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
7211 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
7213 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
7214 (define_mode_attr pmov_dst_3): Ditto.
7215 (define_mode_attr pmov_dst_zeroed_3): Ditto.
7216 (define_mode_attr pmov_suff_3): Ditto.
7217 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
7218 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
7219 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
7220 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
7221 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
7222 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
7223 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
7224 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
7225 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
7226 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
7227 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
7228 (define_mode_attr pmov_dst_4): Ditto.
7229 (define_mode_attr pmov_dst_zeroed_4): Ditto.
7230 (define_mode_attr pmov_suff_4): Ditto.
7231 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
7232 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
7233 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
7234 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
7235 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
7236 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
7237 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
7238 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
7239 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
7240 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
7241 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
7243 2014-08-29 Richard Biener <rguenther@suse.de>
7245 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
7246 NON_LVALUE_EXPR in gimple.
7248 2014-08-29 Richard Biener <rguenther@suse.de>
7251 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
7252 from previous refactoring.
7253 (gimple_fold_builtin_strncpy): Likewise.
7255 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7258 * function.c (assign_parm_setup_reg): Remove erroneous checked
7259 cast to rtx_insn * on result of gen_extend_insn in favor of
7260 introducing a new local rtx "pat".
7262 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7264 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
7266 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
7268 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7270 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
7271 (next_insn): Likewise.
7272 * emit-rtl.c (next_insn): Likewise.
7273 (previous_insn): Likewise.
7274 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
7275 "insn" and "next" from rtx to rtx_insn *.
7276 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
7277 "insn", "insn1", "vliw_start", "prologue_end_note",
7278 "last_insn_in_packet".
7280 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7282 * shrink-wrap.h (active_insn_between): Strengthen both params from
7284 * function.c (active_insn_between): Likewise.
7286 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7288 * genattr.c (main): When writing out insn-attr.h, strengthen param
7289 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
7290 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
7291 writing out the definition of dfa_clear_single_insn_cache to the
7292 generated insn-automata.c
7294 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7296 * resource.h (clear_hashed_info_for_insn): Strengthen param from
7298 (incr_ticks_for_insn): Likewise.
7299 (init_resource_info): Likewise.
7301 * resource.c (init_resource_info): Likewise.
7302 (clear_hashed_info_for_insn): Likewise.
7303 (incr_ticks_for_insn): Likewise.
7305 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
7307 (steal_delay_list_from_target): Use methods of "seq".
7308 (try_merge_delay_insns): Use methods of "merged_insns".
7309 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
7310 (reorg_redirect_jump): Likewise for param "jump".
7312 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7314 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7316 * config/s390/s390.c (s390_split_branches): Eliminate top-level
7317 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7319 (s390_mainpool_finish): In three places, split out a local rtx
7320 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7321 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
7322 and split another local rtx "insn" out into rtx "pat" and
7324 * config/sh/sh.c (output_branchy_insn): Rather than working
7325 directly on operands[9], introduce local rtx_code_label *
7326 variables named "lab" in two places, working on them, and then
7327 assigning them to operands[9], so that the intervening operations
7328 are known by the type system to be on insns.
7330 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7332 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7335 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7336 in invocation of INSN_HAS_LOCATION.
7338 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7340 * config/rs6000/altivec.h (vec_xl): New #define.
7341 (vec_xst): Likewise.
7342 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7343 (XXSPLTD_V2DI): Likewise.
7344 (DIV_V2DI): Likewise.
7345 (UDIV_V2DI): Likewise.
7346 (MUL_V2DI): Likewise.
7347 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7348 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7349 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7350 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7351 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7352 (UNSPEC_VSX_DIVSD): Likewise.
7353 (UNSPEC_VSX_DIVUD): Likewise.
7354 (UNSPEC_VSX_MULSD): Likewise.
7355 (vsx_mul_v2di): New insn-and-split.
7356 (vsx_div_v2di): Likewise.
7357 (vsx_udiv_v2di): Likewise.
7358 (vsx_xxspltd_<mode>): New insn.
7360 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7362 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7364 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7365 (NEXT_INSN): Likewise.
7366 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7367 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7369 (no_labels_between_p): Likewise for both params.
7371 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7372 cast when using NEXT_INSN on operands[2].
7373 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7374 "insn" from rtx to rtx_insn *, adding a checked cast.
7375 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7377 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7379 (arc_text_label): Likewise for param "insn".
7380 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7382 (arc_ccfsm_record_condition): Likewise for param "jump".
7383 (arc_text_label): Likewise for local "label".
7384 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7385 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7386 a method for typesafety. Add a checked cast.
7387 * config/arc/constraints.md (Clb): Add a checked cast when getting
7388 the CODE_LABEL from a LABEL_REF.
7389 * config/arm/arm.c (require_pic_register): Strengthen locals
7390 "seq", "insn" from rtx to rtx_insn *.
7391 (create_fix_barrier): Likewise for locals "selected", "next".
7392 (thumb1_reorg): Likewise for locals "prev", "insn".
7393 (arm_expand_prologue): Likewise for local "last".
7394 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7396 (thumb2_output_casesi): Likewise for operands[2].
7397 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7398 strengthen local "insn" from rtx to rtx_insn *.
7399 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7400 type and param "insn".
7401 (find_prev_insn_start): Likewise.
7402 (hwloop_optimize): Likewise for locals "insn", "last_insn",
7404 (gen_one_bundle): Likewise for loal "t".
7405 (find_load): Likewise for param "insn".
7406 (workaround_speculation): Likewise for locals "insn", "next",
7407 "target", "next_tgt".
7408 * config/c6x/c6x.c (assign_reservations): Likewise for both params
7409 and for locals "insn", "within", "last".
7410 (count_unit_reqs): Likewise for params "head", "tail" and local
7412 (try_rename_operands): Likewise for params "head", "tail".
7413 (reshuffle_units): Likewise for locals "head", "tail", "insn".
7414 (struct c6x_sched_context): Likewise for fields
7415 "last_scheduled_insn", "last_scheduled_iter0".
7416 (init_sched_state): Replace NULL_RTX with NULL.
7417 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
7419 (undo_split_delayed_nonbranch): Likewise for param and for local
7421 (conditionalize_after_sched): Likewise for local "insn".
7422 (bb_earliest_end_cycle): Likewise.
7423 (filter_insns_above): Likewise for locals "insn", "next".
7424 (hwloop_optimize): Remove redundant checked cast.
7425 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
7426 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
7428 (cris_simple_epilogue): Likewise.
7429 (cris_expand_prologue): Likewise.
7430 (cris_expand_epilogue): Likewise.
7431 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7432 local "insn" from rtx to rtx_insn *.
7433 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7434 (struct frv_packet_group): Likewise for the elements within array
7435 fields "insns", "sorted", and for field "nop".
7436 (frv_packet): Likewise for the elements within array field
7438 (frv_add_insn_to_packet): Likewise for param "insn".
7439 (frv_insert_nop_in_packet): Likewise for param "insn" and local
7441 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7442 (frv_sort_insn_group_1): Likewise for local "insn".
7443 (frv_optimize_membar_local): Likewise.
7444 (frv_align_label): Likewise for locals "x", "last", "barrier",
7446 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7448 (ia64_sched_init): Likewise for local "insn".
7449 (scheduled_good_insn): Likewise for param "last".
7450 (struct _ia64_sched_context): Likewise for field
7451 "last_scheduled_insn".
7452 (ia64_init_sched_context): Replace NULL_RTX with NULL.
7453 (struct bundle_state): Likewise for field "insn".
7454 (issue_nops_and_insn): Likewise for param "insn".
7455 (get_next_important_insn): Likewise for return type and both
7457 (ia64_add_bundle_selector_before): Likewise for param "insn".
7458 (bundling): Likewise for params "prev_head_insn", "tail" and
7459 locals "insn", "next_insn", "b". Eliminate top-level local rtx
7460 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
7461 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
7462 Strengthen final param from rtx to rtx_insn *.
7463 (iq2000_move_1word): Likewise for second param.
7464 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
7465 param "cur_insn" and local "next_insn".
7466 (iq2000_move_1word): Likewise for param "insn".
7467 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
7468 casts when using NEXT_INSN on operands[1].
7469 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
7470 "insn" from rtx to rtx_insn *.
7471 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
7472 "x", introducing local rtx_insn * "insn" for when working with the
7473 CODE_LABEL of the LABEL_REF.
7474 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
7476 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
7478 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
7480 (conditionalize_block): Likewise for return type and param.
7481 (mcore_is_dead): Likewise for param "first" and local "insn".
7482 (emit_new_cond_insn): Likewise for return type.
7483 (conditionalize_block): Likewise for return type, param, and
7484 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
7486 (conditionalize_optimization): Likewise for local "insn".
7487 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
7489 * config/microblaze/microblaze.md: Add checked casts when using
7491 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
7492 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
7493 and rtx_insn * "insn".
7494 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
7495 checked cast when using NEXT_INSN on operands[2].
7496 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
7497 local "insn" from rtx to rtx_insn *.
7498 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
7500 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
7501 Add a checked cast when using NEXT_INSN on operands[1].
7502 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
7504 (pa_output_cbranch): Likewise for final param.
7505 (pa_output_lbranch): Likewise for second param.
7506 (pa_output_bb): Likewise for third param.
7507 (pa_output_bvb): Likewise.
7508 (pa_output_dbra): Likewise for second param.
7509 (pa_output_movb): Likewise.
7510 (pa_output_parallel_movb): Likewise.
7511 (pa_output_parallel_addb): Likewise.
7512 (pa_output_millicode_call): Likewise for first param.
7513 (pa_output_mul_insn): Likewise for second param.
7514 (pa_output_div_insn): Likewise for third param.
7515 (pa_output_mod_insn): Likewise for second param.
7516 (pa_jump_in_call_delay): Likewise for param.
7517 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
7518 (pa_output_div_insn): Likewise.
7519 (pa_output_mod_insn): Likewise.
7520 (pa_output_cbranch): Likewise.
7521 (pa_output_lbranch): Likewise.
7522 (pa_output_bb): Likewise.
7523 (pa_output_bvb): Likewise.
7524 (pa_output_dbra): Likewise.
7525 (pa_output_movb): Likewise.
7526 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
7527 to simplify and for typesafety.
7528 (pa_output_call): Use method of rtx_sequence *.
7529 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
7530 (pa_jump_in_call_delay): Likewise.
7531 (pa_output_parallel_movb): Likewise.
7532 (pa_output_parallel_addb): Likewise.
7533 (pa_following_call): Likewise.
7534 (pa_combine_instructions): Likewise for locals "anchor",
7536 (pa_can_combine_p): Likewise for params "anchor", "floater" and
7537 locals "start", "end".
7538 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
7539 param "insn" and local "local_insn".
7540 (picochip_final_prescan_insn): Likewise for local "local_insn".
7541 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
7543 (uses_TOC): Likewise.
7544 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
7545 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
7546 splitting out to more tightly-scoped locals, 3 as rtx and one as
7548 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
7550 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
7552 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
7554 (fixup_addr_diff_vecs): Likewise.
7555 (reg_unused_after): Likewise for param 2.
7556 (sh_can_redirect_branch): Likewise for both params.
7557 (check_use_sfunc_addr): Likewise for param 1.
7558 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
7559 (find_barrier): Likewise for local "last_got".
7560 (gen_block_redirect): Likewise for return type, param "jump" and
7561 locals "prev", "scan", "next", "insn".
7562 (struct far_branch): Likewise for fields "near_label",
7563 "insert_place", "far_label".
7564 (gen_far_branch): Likewise for local "jump".
7565 (fixup_addr_diff_vecs): Likewise for param "first" and locals
7567 (barrier_align): Likewise for param and for locals "prev", "x".
7568 Introduce local rtx_sequence * "prev_seq" and use insn method for
7569 typesafety and clarity.
7570 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
7571 (get_dest_uid): Likewise for local "dest".
7572 (split_branches): Likewise for locals "next", "beyond", "label",
7573 "block", "far_label". Add checked casts when assigning to
7574 bp->far_label and "far_label".
7575 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
7576 (sequence_insn_p): Likewise.
7577 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
7578 more loop-scoped rtx "insn" when walking LABEL_REFS.
7579 (sh_can_redirect_branch): Strengthen both params from rtx to
7581 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
7582 new local rtx_sequence * "seq" via a dyn_cast, and use a method
7583 for clarity and typesafety.
7584 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
7585 "insn" from rtx to rtx_insn *.
7586 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
7587 when using NEXT_INSN on the CODE_LABEL in operands[2].
7588 (define_insn "casesi_worker_2"): Likewise.
7589 (define_insn "casesi_shift_media"): Likewise.
7590 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
7592 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
7593 Strengthen field "insn" from rtx to rtx_insn *.
7594 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
7595 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
7596 param "start_insn" and local "start_insn".
7597 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
7599 (find_set_of_reg_bb): Likewise for param "insn".
7600 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
7601 (trace_reg_uses): Likewise for param "start_insn".
7602 (sh_treg_combine::cbranch_trace): Likewise for field
7604 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
7606 (sh_treg_combine::record_set_of_reg): Likewise for param
7607 "start_insn" and local "i".
7608 (sh_treg_combine::can_remove_cstore): Likewise for local
7610 (sh_treg_combine::try_optimize_cbranch): Likewise for param
7612 (sh_treg_combine::execute): Likewise for local "i".
7613 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
7615 (sparc_check_64): Likewise for second param.
7616 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
7617 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
7618 dyn_cast, using its insn method for typesafety and clarity.
7619 (empty_delay_slot): Strengthen param "insn" from rtx to
7621 (set_extends): Likewise.
7622 (sparc_check_64): Likewise.
7623 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
7624 for locals "seq", "last_insn".
7625 (combine_bnp): Likewise for param "insn".
7626 (xstormy16_reorg): Likewise for local "insn".
7627 * config/v850/v850.c (substitute_ep_register): Likewise for params
7628 "first_insn", "last_insn" and local "insn".
7629 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
7630 elements of "regs" array, and local "insn".
7631 * except.c (emit_note_eh_region_end): Likewise for param "insn".
7632 * final.c (final_sequence): Strengthen this global from rtx to
7634 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
7636 (final_scan_insn): Update assignment to "final_sequence" to be
7637 from "seq", the cast version of "body", for type-safety.
7638 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
7639 "insns" from rtx to rtx_insn *.
7640 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
7641 * genattr.c (main): When writing out generated insn-attr.h,
7642 strengthen params 1 and 3 of eligible_for_delay,
7643 eligible_for_annul_true, eligible_for_annul_false from rtx to
7645 * genattrtab.c (write_eligible_delay): Likewise when writing out
7646 generated insn-attrtab.c; also local "insn" the generated
7648 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
7650 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
7651 "start_label" from rtx to rtx_insn *.
7652 * ira.c (decrease_live_ranges_number): Likewise for local "p".
7653 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
7654 "insns" and local "insn".
7655 (validate_equiv_mem): Likewise for param "start" and local "insn".
7656 (memref_used_between_p): Likewise for params "start", "end" and
7658 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
7660 * loop-doloop.c (doloop_optimize): Within region guarded by
7661 INSN_P (doloop_pat), introduce a new local rtx_insn *
7662 "doloop_insn" via a checked cast, and use it for typesafety,
7663 eventually writing the value back into doloop_pat.
7664 * output.h (final_sequence): Strengthen this global from rtx to
7666 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
7667 reintroducing "insn" as an rtx_insn * via a checked cast.
7668 Strengthen param "attempt" and local "new_insn"from rtx to
7670 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
7672 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
7673 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
7674 "p" in favor of more tightly-scoped replacements, sometimes rtx
7675 and sometimes rtx_insn *, as appropriate.
7676 (delete_output_reload): Eliminate top-level rtx "i1", splitting
7677 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
7678 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
7679 local "trial" from rtx to rtx_insn *.
7680 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
7681 rtx to rtx_insn *. Strenghten local "pat" from rtx to
7682 rtx_sequence * and use methods for clarity and typesafety.
7683 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
7684 rtx to rtx_insn *. Strenghten local "li" from rtx to
7685 rtx_insn_list * and use its methods for clarity and typesafety.
7686 (steal_delay_list_from_target): Strengthen param "insn" from rtx
7688 (steal_delay_list_from_fallthrough): Likewise.
7689 (try_merge_delay_insns): Likewise for param "thread" and locals
7690 "trial", "next_trial", "delay_insn".
7691 (redundant_insn): Likewise for param "target" and local "trial".
7692 (own_thread_p): Likewise for param "thread" and locals
7693 "active_insn", "insn".
7694 (get_label_before): Likewise for param "insn".
7695 (fill_simple_delay_slots): Likewise for local "new_label"; use
7696 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
7697 (label_before_next_insn): Strengthen return type and local "insn"
7698 from rtx to rtx_insn *.
7699 (relax_delay_slots): Likewise for locals "other", "tmp".
7700 (make_return_insns): Likewise for param "first" and locals "insn",
7701 "jump_insn", "prev". Move declaration of "pat" to its assignment
7702 and strengthen from rtx to rtx_sequence *. Use its methods for
7703 clarity and typesafety.
7704 * rtlanal.c (no_labels_between_p): Strengthen params from
7705 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
7707 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
7708 from const_rtx to const rtx_insn *.
7709 (reg_set_between_p): Rename param "from_insn" to
7710 "uncast_from_insn", and reintroduce "from_insn" as a
7711 const rtx_insn * via a checked cast.
7712 (modified_between_p): Likewise for param "start" as "uncast_start".
7713 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
7714 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
7715 "tmp", head" from rtx to rtx_insn *.
7716 (recompute_rev_top_order): Likewise for local "insn".
7717 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
7718 * store-motion.c (build_store_vectors): Likewise for local "insn".
7719 Strengthen local "st" from rtx to rtx_insn_list * and use methods
7720 for clarity and typesafety.
7721 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
7723 (computation_cost): Likewise for local "seq".
7724 (get_address_cost): Likewise.
7726 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7728 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
7730 (label_is_jump_target_p): Likewise for second param.
7732 * rtlanal.c (tablejump_p): Likewise for param "insn".
7733 (label_is_jump_target_p): Likewise for param "jump_insn".
7735 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7737 * rtl.h (find_first_parameter_load): Strengthen return type and
7738 both params from rtx to rtx_insn *.
7739 * rtlanal.c (find_first_parameter_load): Strengthen return type,
7740 both params and locals "before", "first_set" from rtx to
7741 rtx_insn *. Remove now-redundant cast.
7742 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
7744 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7746 * rtl.h (find_last_value): Delete.
7747 * rtlanal.c (find_last_value): Delete.
7749 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7751 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
7752 from rtx to rtx_insn *.
7753 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
7754 rtx "note" with new local rtx_insn * "new_head" when calculating
7755 head insn of new basic block.
7756 * combine.c (combine_split_insns): Strengthen return type and local
7757 "ret" from rtx to rtx_insn *.
7758 (likely_spilled_retval_p): Likewise for locals "use" and "p".
7759 (try_combine): Eliminate local "m_split", splitting into new
7760 locals "m_split_insn" and "m_split_pat".
7761 (find_split_point): Strengthen local "seq" from rtx into
7763 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
7764 locals "label", "branch".
7765 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
7767 (define_expand "umulsi3_highpart"): Likewise for local "insn".
7768 * dse.c (note_add_store_info): Likewise for fields "first",
7770 (note_add_store): Likewise for local "insn".
7771 (emit_inc_dec_insn_before): Likewise for locals "insn",
7773 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
7774 (replace_read): Likewise for locals "insns", "this_insn".
7775 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
7776 (notice_eh_throw): Likewise for param "insn".
7777 (before_next_cfi_note): Likewise for return type, param, and local
7779 (connect_traces): Likewise for local "note".
7780 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
7781 (verify_rtl_sharing): Likewise.
7782 (unshare_all_rtl_in_chain): Likewise for param "insn".
7783 (get_first_nonnote_insn): Likewise for local "insn".
7784 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
7785 "seq" and use its methods to clarify things.
7786 (next_insn): Strengthen return type from rtx to rtx_insn *.
7787 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
7788 local rtx_insn * using a checked cast, dropping a checked cast
7789 made redundant by this change. Use a cast to and method of
7790 rtx_sequence to clarify the code.
7791 (previous_insn): Rename param "insn" to "uncast_insn" and
7792 reintroduce "insn" as a local rtx_insn * using a checked cast,
7793 dropping a checked cast made redundant by this change. Use a cast
7794 to and method of rtx_sequence to clarify the code.
7795 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
7796 reintroduce "insn" as a local rtx_insn * using a checked cast,
7797 dropping a checked cast made redundant by this change.
7798 (next_nonnote_insn_bb): Likewise.
7799 (prev_nonnote_insn): Likewise.
7800 (prev_nonnote_insn_bb): Likewise.
7801 (next_nondebug_insn): Likewise.
7802 (prev_nondebug_insn): Likewise.
7803 (next_nonnote_nondebug_insn): Likewise.
7804 (prev_nonnote_nondebug_insn): Likewise.
7805 (next_real_insn): Likewise.
7806 (prev_real_insn): Likewise.
7807 (next_active_insn): Likewise.
7808 (prev_active_insn): Likewise.
7809 (next_cc0_user): Likewise. Use rtx_sequence and a method for
7811 (prev_cc0_setter): Likewise.
7812 (try_split): Rename param "trial" to "uncast_trial" and
7813 reintroduce "insn" as a local rtx_insn * using a checked cast,
7814 dropping checked casts made redundant by this change.
7815 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
7817 (remove_insn): Rename param "insn" to "uncast_insn" and
7818 reintroduce "insn" as a local rtx_insn * using a checked cast.
7819 (emit_pattern_after_setloc): Likewise for param "after", as
7821 (emit_pattern_after): Likewise. Strengthen local "prev" from
7823 (emit_pattern_before_setloc): Rename param "before" to
7824 "uncast_before" and reintroduce "before" as a local rtx_insn *
7825 using a checked cast. Strengthen locals "first", "last" from
7827 (emit_pattern_before): Likewise rename/cast param "before" to
7828 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
7829 * except.c (copy_reg_eh_region_note_forward): Strengthen param
7830 "first" and local "insn" from rtx to rtx_insn *.
7831 (copy_reg_eh_region_note_backward): Likewise for param "last"
7833 * expr.c (fixup_args_size_notes): Rename param "last" to
7834 "uncast_last" and reintroduce "last" as a local rtx_insn *
7835 using a checked cast. Strengthen local "insn" from rtx to
7837 * function.c (set_insn_locations): Strengthen param "insn" from
7839 (record_insns): Likewise for param "insns" and local "tmp".
7840 (active_insn_between): Rename param "tail" to
7841 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
7842 using a checked cast.
7843 (thread_prologue_and_epilogue_insns): Split out top-level local
7844 rtx "seq" into three different rtx_insn * locals. Strengthen
7845 local "prologue_seq" from rtx to rtx_insn *.
7846 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
7847 from rtx to rtx_insn *.
7848 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
7849 (priority): Likewise for locals "prev_first", "twin".
7850 (setup_insn_max_reg_pressure): Likewise for param "after".
7851 (sched_setup_bb_reg_pressure_info): Likewise.
7852 (no_real_insns_p): Strengthen params from const_rtx to
7854 (schedule_block): Strengthen local "next_tail" from rtx to
7856 * ifcvt.c (find_active_insn_before): Strengthen return type and
7857 param "insn" from rtx to rtx_insn *.
7858 (find_active_insn_after): Likewise.
7859 (cond_exec_process_insns): Likewise for param "start" and local "insn".
7860 (cond_exec_process_if_block): Likewise for locals "then_start",
7861 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
7862 (noce_process_if_block): Likewise for local "jump".
7863 (merge_if_block): Likewise for two locals named "end".
7864 (cond_exec_find_if_block): Likewise for local "last_insn".
7865 * jump.c (delete_related_insns): Rename param "insn" to
7866 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
7867 checked cast. Strengthen local "p" from rtx to rtx_insn *.
7868 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
7870 (split_reg): Likewise.
7871 * lra.c (lra_process_new_insns): Likewise.
7872 * modulo-sched.c (permute_partial_schedule): Strengthen param
7873 "last" from rtx to rtx_insn *.
7874 * optabs.c (add_equal_note): Likewise for param "insns" and local
7876 (expand_binop_directly): Add checked casts to rtx_insn * within
7877 NEXT_INSN (pat) uses.
7878 (expand_unop_direct): Likewise.
7879 (maybe_emit_unop_insn): Likewise.
7880 * recog.c (peep2_attempt): Strengthen locals "last",
7881 "before_try", "x" from rtx to rtx_insn *.
7882 * reorg.c (optimize_skip): Strengthen return type and local
7883 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
7884 and locals "trial", "next_trial" from rtx to rtx_insn *.
7885 * resource.c (next_insn_no_annul): Strengthen return type and
7886 param "insn" from rtx to rtx_insn *. Use a cast to and method of
7887 rtx_sequence to clarify the code.
7888 (mark_referenced_resources): Add a checked cast to rtx_insn *
7889 within PREV_INSN (x).
7890 (find_dead_or_set_registers): Strengthen return type, param
7891 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
7892 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
7894 (mark_target_live_regs): Strengthen params "insns" and "target",
7895 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
7896 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
7898 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
7899 from rtx to rtx_insn *.
7900 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
7901 from rtx to rtx_insn *.
7902 (copy_reg_eh_region_note_backward): Likewise.
7903 (unshare_all_rtl_in_chain): Likewise for sole param.
7904 (dump_rtl_slim): Strengthen second and third params from const_rtx
7905 to const rtx_insn *.
7906 * sched-deps.c (sched_free_deps): Strengthen params "head" and
7907 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
7908 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
7909 "next_tail" from rtx to rtx_insn *.
7910 (begin_move_insn): Likewise for local "next".
7911 * sched-int.h (sched_free_deps): Likewise for first and second
7913 (no_real_insns_p): Strengthen both params from const_rtx to
7915 (sched_setup_bb_reg_pressure_info): Strengthen second params from
7917 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
7919 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
7920 and locals "insn", "tail" from const_rtx to const rtx_insn *.
7921 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
7923 (debug_rtl_slim): Strengthen params "first" and "last" from
7924 const_rtx to const rtx_insn *.
7925 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
7926 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
7927 (convert_to_simple_return): Likewise for param "returnjump".
7928 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
7930 (convert_to_simple_return): Likewise for param "returnjump".
7931 * valtrack.c (propagate_for_debug): Likewise for params
7933 * valtrack.h (propagate_for_debug): Likewise for second param.
7935 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7937 * output.h (insn_current_reference_address): Strengthen param
7938 from rtx to rtx_insn *.
7939 * final.c (insn_current_reference_address): Likewise.
7941 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7943 * basic-block.h (inside_basic_block_p): Strengthen param from
7944 const_rtx to const rtx_insn *.
7945 * cfgbuild.c (inside_basic_block_p): Likewise.
7947 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7949 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
7951 (get_trace_info): Likewise for param "insn".
7952 (save_point_p): Likewise.
7953 (maybe_record_trace_start): Likewise for both params.
7954 (maybe_record_trace_start_abnormal): Likewise.
7955 (create_trace_edges): Likewise for sole param and for three of the
7957 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
7958 to rtx_insn *, and update a call to pat->element to pat->insn.
7960 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7962 * function.h (struct expr_status): Convert field "x_forced_labels"
7963 from rtx_expr_list * to rtx_insn_list *.
7965 * cfgbuild.c (make_edges): Convert local "x" from an
7966 rtx_expr_list * to an rtx_insn_list *, replacing use of
7967 "element" method with "insn" method.
7968 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
7969 * except.c (sjlj_emit_dispatch_table): Replace use of
7970 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
7972 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
7973 rtx_expr_list * to an rtx_insn_list *, replacing use of
7974 "element" method with "insn" method.
7975 * reload1.c (set_initial_label_offsets): Likewise for local "x".
7976 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
7977 rtx_insn *, adding a checked cast. Replace use of
7978 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
7980 (expand_label): Likewise for local "label_r".
7982 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7984 * function.h (struct rtl_data): Convert field
7985 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
7987 * rtl.h (remove_node_from_insn_list): New prototype.
7989 * builtins.c (expand_builtin): When prepending to
7990 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
7992 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
7993 to rtx_insn_list *, and use its "insn" method rather than
7995 * cfgrtl.c (delete_insn): Use new function
7996 remove_node_from_insn_list rather than
7997 remove_node_from_expr_list.
7998 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
7999 to rtx_insn_list *, and use its "insn" method rather than
8001 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8002 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8003 * rtlanal.c (remove_node_from_insn_list): New function, adapted
8004 from remove_node_from_expr_list.
8005 * stmt.c (expand_label): When prepending to
8006 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8009 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8011 * function.h (struct rtl_data): Strengthen fields "x_return_label"
8012 and "x_naked_return_label" from rtx to rtx_code_label *.
8014 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8016 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8017 (SET_NEXT_INSN): Likewise.
8018 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8020 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8021 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
8022 to split out the SEQUENCE from local "bundle", strengthening the
8023 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8024 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8025 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8026 and the type of the elements of the "slot" array from rtx to
8028 (reorg_split_calls): Likewise for locals "insn" and "next", and
8029 the type of the elements of the "slot" array.
8031 * config/frv/frv.c (frv_nops): Likewise for the elements of this
8033 (frv_function_prologue): Likewise for locals "insn", "next",
8035 (frv_register_nop): Introduce a local "nop_insn" to be the
8036 rtx_insn * containing rtx "nop".
8038 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8039 used as an insn and sometimes as a pattern, so rename it to
8040 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8041 using it where dealing with the core insn.
8043 * config/picochip/picochip.c (reorder_var_tracking_notes):
8044 Strengthen locals "insn", "next", "last_insn", "queue",
8045 "next_queue", "prev" from rtx to rtx_insn *.
8047 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8048 the second param is an rtx_insn ** rather than an rtx **.
8049 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8050 from rtx to rtx_sequence *, and introduce local named "sequence",
8051 using methods of rtx_sequence to clarify the code.
8052 (remove_insn): Introduce local rtx_sequence * named "sequence" and
8054 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8055 Rename param "after" to "uncast_after", reintroducing "after" as a
8056 local rtx_insn * with a checked cast.
8057 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8058 reintroducing "after" as a local rtx_insn * with a checked cast.
8059 Strengthen local "last" from rtx to rtx_insn * and remove the
8060 now-redundant checked casts.
8061 (copy_delay_slot_insn): Strengthen return type and param from rtx
8064 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
8065 "last" from rtx to rtx_insn *.
8067 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8069 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
8070 param from rtx to rtx_insn *.
8072 * emit-rtl.c (copy_delay_slot_insn): Likewise.
8074 * reorg.c (skip_consecutive_labels): Strengthen return type, param
8075 and local "insn" from rtx to rtx_insn *.
8076 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
8077 (unfilled_slots_next): Likewise.
8078 (function_return_label): Strengthen from rtx to rtx_code_label *.
8079 (function_simple_return_label): Likewise.
8080 (first_active_target_insn): Strengthen return type and param from
8082 (find_end_label): Strengthen return type from rtx to
8083 rtx_code_label *; strengthen locals as appropriate.
8084 (emit_delay_sequence): Strengthen return type, param "insn" and
8085 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
8086 and local "li" from rtx to rtx_insn_list *, using methods of
8087 rtx_insn_list for clarity and typesafety.
8088 (add_to_delay_list): Strengthen return type and param "insn" from
8089 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
8090 rtx_insn_list * and use methods of rtx_insn_list.
8091 (delete_from_delay_slot): Strengthen return type, param "insn",
8092 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
8093 Strengthen local "seq" from rtx to rtx_sequence *, and local
8094 "delay_list" from rtx to rtx_insn_list *, using methods of
8095 rtx_sequence for clarity and type-safety.
8096 (delete_scheduled_jump): Add checked cast when invoking
8097 delete_from_delay_slot. Strengthen local "trial" from rtx to
8099 (optimize_skip): Strengthen return type and local "delay_list"
8100 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
8102 (steal_delay_list_from_target): Strengthen return type, param
8103 "delay_list" and local "new_delay_list" from rtx to
8104 rtx_insn_list *. Strengthen param "seq" from rtx to
8105 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
8107 Split out local "temp" into multiple more-tightly scoped locals:
8108 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
8109 of rtx_insn_list and rtx_sequence for clarity and typesafety.
8110 Strengthen locals named "trial" from rtx to rtx_insn *.
8111 (steal_delay_list_from_fallthrough): Strengthen return type and
8112 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
8113 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
8114 Strengthen local "trial" from rtx to rtx_insn *.
8115 (try_merge_delay_insns): Strength local "merged_insns" from rtx
8116 to rtx_insn_list * and use its methods. Strengthen local "pat"
8117 from rtx to rtx_sequence * and use its methods. Strengthen locals
8118 "dtrial" and "new_rtx" from rtx to rtx_insn *.
8119 (get_label_before): Strengthen return type and local "label" from
8121 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
8122 "next_trial", "next", prev". Strengthen local "delay_list" from
8123 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
8125 (follow_jumps): Strengthen return type, param "label" and locals
8126 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
8127 (fill_slots_from_thread): Strengthen return type, param
8128 "delay_list" from rtx to rtx_insn_list *. Strengthen params
8129 "insn", "thread", "opposite_thread" and locals "new_thread",
8130 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
8131 "sequence" from a checked cast to rtx_sequence so that we can call
8132 steal_delay_list_from_target and steal_delay_list_from_fallthrough
8133 with an rtx_sequence *.
8134 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
8135 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
8136 Strengthen local "delay_list" from rtx to rtx_insn_list *.
8137 (relax_delay_slots): Strengthen param "first" and locals "insn",
8138 "next", "trial", "delay_insn", "target_label" from rtx to
8139 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
8140 Introduce a local "trial_seq" for PATTERN (trial) of type
8141 rtx_sequence *, in both cases using methods of rtx_sequence.
8142 (dbr_schedule): Strengthen param "first" and locals "insn",
8143 "next", "epilogue_insn" from rtx to rtx_insn *.
8145 2014-08-28 Richard Biener <rguenther@suse.de>
8147 PR tree-optimization/62283
8148 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8149 Do not peel loops for alignment where the vector loop likely
8150 doesn't run at least VF times.
8152 2014-08-28 Bin Cheng <bin.cheng@arm.com>
8154 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
8155 important_candidates. Consider all important candidates if
8156 IVS doesn't give any result. Remove check on ivs->upto.
8157 (try_add_cand_for): Call iv_ca_add_use only once.
8159 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8160 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8161 Anna Tikhonova <anna.tikhonova@intel.com>
8162 Ilya Tocar <ilya.tocar@intel.com>
8163 Andrey Turetskiy <andrey.turetskiy@intel.com>
8164 Ilya Verbin <ilya.verbin@intel.com>
8165 Kirill Yukhin <kirill.yukhin@intel.com>
8166 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8168 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
8169 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
8171 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
8172 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8173 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8174 (define_insn "*mul<mode>3"): Add EVEX version.
8176 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8177 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8178 Anna Tikhonova <anna.tikhonova@intel.com>
8179 Ilya Tocar <ilya.tocar@intel.com>
8180 Andrey Turetskiy <andrey.turetskiy@intel.com>
8181 Ilya Verbin <ilya.verbin@intel.com>
8182 Kirill Yukhin <kirill.yukhin@intel.com>
8183 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8185 * config/i386/sse.md
8186 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
8187 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
8188 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
8189 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
8190 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
8191 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
8192 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
8193 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
8194 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
8195 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
8196 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
8197 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
8198 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
8199 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
8200 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
8201 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
8203 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8204 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8205 Anna Tikhonova <anna.tikhonova@intel.com>
8206 Ilya Tocar <ilya.tocar@intel.com>
8207 Andrey Turetskiy <andrey.turetskiy@intel.com>
8208 Ilya Verbin <ilya.verbin@intel.com>
8209 Kirill Yukhin <kirill.yukhin@intel.com>
8210 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8212 * config/i386/sse.md
8213 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
8214 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
8215 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
8217 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8218 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8219 Anna Tikhonova <anna.tikhonova@intel.com>
8220 Ilya Tocar <ilya.tocar@intel.com>
8221 Andrey Turetskiy <andrey.turetskiy@intel.com>
8222 Ilya Verbin <ilya.verbin@intel.com>
8223 Kirill Yukhin <kirill.yukhin@intel.com>
8224 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8226 * config/i386/sse.md
8227 (define_mode_iterator VI128_256): New.
8228 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
8230 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8231 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8232 Anna Tikhonova <anna.tikhonova@intel.com>
8233 Ilya Tocar <ilya.tocar@intel.com>
8234 Andrey Turetskiy <andrey.turetskiy@intel.com>
8235 Ilya Verbin <ilya.verbin@intel.com>
8236 Kirill Yukhin <kirill.yukhin@intel.com>
8237 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8239 * config/i386/sse.md
8240 (define_mode_iterator VI8_256_512): New.
8241 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
8243 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8244 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
8246 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
8248 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8250 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
8251 pointer to the cumulative reloc value and return the value for
8253 (compute_reloc_for_rtx): Take a const_rtx. Call
8254 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
8255 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
8256 for_each_rtx for the CONST case.
8258 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8260 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
8261 (mark_constants_in_pattern): ...this new function to iterate over
8263 (mark_constants): Update accordingly.
8265 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8267 * varasm.c: Include rtl-iter.h.
8268 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
8269 Remove the pointer to the cumulative hashval_t and just return
8270 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
8271 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8272 Accumulate the hashval_ts here instead of const_rtx_hash_1.
8274 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8276 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
8277 Give real type of data parameter. Remove return value.
8278 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
8279 to iterate over subrtxes.
8281 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8283 * var-tracking.c (use_narrower_mode_test): Turn from being a
8284 for_each_rtx callback to being a function that examines each
8286 (adjust_mems): Update accordingly.
8288 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8290 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
8291 callback to being a function that examines each subrtx itself.
8292 Remove handling of null rtxes.
8293 (add_uses): Update accordingly.
8295 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8297 * var-tracking.c: Include rtl-iter.h.
8298 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
8299 to being a function that examines each subrtx itself.
8300 (use_type): Update accordingly.
8302 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8304 * store-motion.c: Include rtl-iter.h.
8305 (extract_mentioned_regs_1): Delete.
8306 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
8307 for_each_rtx to iterate over subrtxes.
8309 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8311 * sel-sched.c: Include rtl-iter.h
8312 (count_occurrences_1): Delete.
8313 (count_occurrences_equiv): Turn rtxes into const_rtxes.
8314 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8316 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8318 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8319 * rtlanal.c (tls_referenced_p_1): Delete.
8320 (tls_referenced_p): Take a const_rtx rather than an rtx.
8321 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8323 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8325 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8326 (for_each_inc_dec): Take an rtx rather than an rtx *.
8327 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8328 (cselib_record_sets): Likewise.
8329 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8330 (check_for_inc_dec): Likewise.
8331 * rtlanal.c (for_each_inc_dec_ops): Delete.
8332 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8333 rather than a pointer to the memory address. Replace
8334 for_each_inc_dec_ops argument with separate function and data
8335 arguments. Abort on non-autoinc addresses.
8336 (for_each_inc_dec_find_mem): Delete.
8337 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
8338 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8340 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8342 * rtl.h (find_all_hard_regs): Declare.
8343 * rtlanal.c (find_all_hard_regs): New function.
8344 (record_hard_reg_uses_1): Delete.
8345 (record_hard_reg_uses): Use find_all_hard_regs.
8347 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8349 * rtl.h (replace_label_data): Delete.
8350 (replace_label): Take the old label, new label and update-nuses flag
8351 as direct arguments. Return void.
8352 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8353 * rtlanal.c (replace_label): Update interface as above. Handle
8354 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
8355 iterator. Use FOR_EACH_SUBRTX_PTR.
8357 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8359 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8360 with const_rtx parameters.
8361 * varasm.c (get_pool_constant): Likewise.
8362 * rtlanal.c (rtx_referenced_p_1): Delete.
8363 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8364 Assert that the rtx we're looking for is nonnull. Allow searches
8365 for constant pool SYMBOL_REFs.
8367 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8369 * reload1.c: Include rtl-iter.h.
8370 (note_reg_elim_costly): Turn from being a for_each_rtx callback
8371 to being a function that examines each subrtx itself.
8372 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8374 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8376 * regcprop.c (cprop_find_used_regs_1): Delete.
8377 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8379 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8381 * regcprop.c: Include rtl-iter.h.
8382 (kill_value): Take a const_rtx.
8383 (kill_autoinc_value): Turn from being a for_each_rtx callback
8384 to being a function that examines each subrtx itself.
8385 (copyprop_hardreg_forward_1): Update accordingly.
8387 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8389 * reg-stack.c: Include rtl-iter.h.
8390 (subst_stack_regs_in_debug_insn): Delete.
8391 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8392 instead of for_each_rtx.
8394 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8396 * lower-subreg.c (find_decomposable_subregs): Turn from being
8397 a for_each_rtx callback to being a function that examines each
8398 subrtx itself. Remove handling of null rtxes.
8399 (decompose_multiword_subregs): Update accordingly.
8401 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8403 * lower-subreg.c (adjust_decomposed_uses): Delete.
8404 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8405 Remove handling of null rtxes.
8407 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8409 * lower-subreg.c: Include rtl-iter.h.
8410 (resolve_subreg_use): Turn from being a for_each_rtx callback
8411 to being a function that examines each subrtx itself. Remove
8412 handling of null rtxes.
8413 (resolve_reg_notes, resolve_simple_move): Update accordingly.
8414 (decompose_multiword_subregs): Likewise.
8416 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8418 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
8419 to being a function that examines each subrtx itself.
8420 (simplify_using_condition, simplify_using_initial_values): Update
8423 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8425 * loop-iv.c: Include rtl-iter.h.
8426 (find_single_def_src): New function.
8427 (replace_single_def_regs): Turn from being a for_each_rtx callback
8428 to being a function that examines each subrtx itself.
8429 (replace_in_expr, simplify_using_initial_values): Update accordingly.
8431 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8433 * jump.c (eh_returnjump_p_1): Delete.
8434 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8435 Remove handling of null rtxes.
8437 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8439 * jump.c: Include rtl-iter.h.
8440 (returnjump_p_1): Delete.
8441 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8442 Remove handling of null rtxes.
8444 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8446 * ira.c: Include rtl-iter.h.
8447 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8448 to being a function that examines each subrtx itself. Remove
8449 handling of null rtxes.
8450 (update_equiv_regs): Update call accordingly.
8452 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8454 * fwprop.c: Include rtl-iter.h.
8455 (varying_mem_p): Turn from being a for_each_rtx callback to being
8456 a function that examines each subrtx itself.
8457 (propagate_rtx): Update accordingly.
8459 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8461 * function.c: Include rtl-iter.h
8462 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
8463 callback to being a function that examines each subrtx itself.
8464 Return the changed flag.
8465 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
8466 (instantiate_virtual_regs): Update calls accordingly.
8468 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8470 * final.c: Include rtl-iter.h.
8471 (mark_symbol_ref_as_used): Delete.
8472 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
8475 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8477 * emit-rtl.c: Include rtl-iter.h.
8478 (find_auto_inc): Turn from being a for_each_rtx callback to being
8479 a function that examines each subrtx itself. Assume the first operand
8480 to an RTX_AUTOINC is the automodified register.
8481 (try_split): Update call accordingly.
8483 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8485 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
8486 Return a bool, inverting the result so that 0/false means "not ok".
8487 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
8488 subrtxes of a CONST.
8489 (mem_loc_descriptor, add_const_value_attribute)
8490 (resolve_addr_in_expr): Update calls accordingly.
8492 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8494 * dwarf2out.c: Include rtl-iter.h.
8495 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
8496 Remove unused data parameter. Return a bool, inverting the result
8497 so that 0/false means "not ok".
8498 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
8499 instead of for_each_rtx.
8501 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8503 * dse.c: Include rtl-iter.h.
8504 (check_mem_read_rtx): Change void * parameter to real type.
8505 Remove return value.
8506 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
8507 for_each_rtx. Don't handle null rtxes.
8509 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8511 * df-problems.c: Include rtl-iter.h.
8512 (find_memory): Turn from being a for_each_rtx callback to being
8513 a function that examines each subrtx itself. Continue to look for
8514 volatile references even after a nonvolatile one has been found.
8515 (can_move_insns_across): Update calls accordingly.
8517 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8519 * ddg.c (walk_mems_2, walk_mems_1): Delete.
8520 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
8521 to iterate over subrtxes. Return a bool rather than an int.
8523 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8525 * ddg.c: Include rtl-iter.h.
8526 (mark_mem_use_1): Rename to...
8527 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
8528 instead of for_each_rtx.
8529 (mem_read_insn_p): Update accordingly.
8531 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8533 * cse.c (change_cc_mode_args): Delete.
8534 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
8535 a function that examines each subrtx itself. Take the fields of
8536 change_cc_mode_args as argument and return void.
8537 (cse_change_cc_mode_insn): Update calls accordingly.
8539 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8541 * cse.c (is_dead_reg): Change argument to const_rtx.
8542 (dead_debug_insn_data): Delete.
8543 (is_dead_debug_insn): Expand commentary. Turn from being a
8544 for_each_rtx callback to being a function that examines
8545 each subrtx itself. Take the fields of dead_debug_insn_data
8547 (delete_trivially_dead_insns): Update call accordingly.
8549 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8551 * cse.c (check_for_label_ref): Move earlier in file. Turn from
8552 being a for_each_rtx callback to being a function that examines
8554 (cse_extended_basic_block): Update call accordingly.
8556 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8558 * cse.c (check_dependence_data): Delete.
8559 (check_dependence): Change from being a for_each_rtx callback to being
8560 a function that examines all subrtxes itself. Don't handle null rtxes.
8561 (invalidate): Update call accordingly.
8563 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8565 * cse.c: Include rtl-iter.h.
8566 (approx_reg_cost_1): Delete.
8567 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8568 Don't handle null rtxes.
8570 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8572 * cfgcleanup.c: Include rtl-iter.h.
8573 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
8574 to being a function that examines each subrtx itself.
8575 (thread_jump): Update accordingly.
8577 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8579 * combine-stack-adj.c: Include rtl-iter.h.
8580 (record_stack_refs_data): Delete.
8581 (record_stack_refs): Turn from being a for_each_rtx callback
8582 to being a function that examines each subrtx itself.
8583 Take a pointer to the reflist. Invert sense of return value
8584 so that true means success and false means failure. Don't
8586 (combine_stack_adjustments_for_block): Update accordingly.
8588 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8590 * combine.c (record_truncated_value): Turn from being a for_each_rtx
8591 callback to a function that takes an rtx and returns a bool
8592 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
8595 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8597 * combine.c: Include rtl-iter.h.
8598 (unmentioned_reg_p_1): Delete.
8599 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8600 Don't handle null rtxes.
8602 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8604 * calls.c: Include rtl-iter.h.
8605 (internal_arg_pointer_based_exp_1): Delete.
8606 (internal_arg_pointer_based_exp): Take a const_rtx.
8607 Use FOR_EACH_SUBRTX to iterate over subrtxes.
8609 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8611 * caller-save.c: Include rtl-iter.h.
8612 (add_used_regs_1): Delete.
8613 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
8614 to iterate over subrtxes. Assert that any remaining pseudos
8617 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8619 * bt-load.c: Include rtl-iter.h.
8620 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
8621 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
8622 to iterate over subrtxes.
8623 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
8624 find_btr_use rather than btr_referenced_p.
8626 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8628 * alias.c: Include rtl-iter.h.
8629 (refs_newer_value_cb): Delete.
8630 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8632 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8634 * rtl-iter.h: New file.
8635 * rtlanal.c: Include it.
8636 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
8637 (generic_subrtx_iterator <T>::add_single_to_queue)
8638 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
8639 (generic_subrtx_iterator <T>::free_array): New functions.
8640 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
8641 (generic_subrtx_iterator <const_rtx_accessor>)
8642 (generic_subrtx_iterator <rtx_var_accessor>
8643 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
8644 (setup_reg_subrtx_bounds): New function.
8645 (init_rtlanal): Call it.
8647 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
8650 * config/sh/sh.md (ashlsi3): Handle negative shift count for
8652 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
8654 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
8656 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
8658 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8660 * rtl.h (JUMP_LABEL_AS_INSN): New.
8662 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8664 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
8666 (alloc_EXPR_LIST): Strengthen return type from rtx to
8668 (remove_free_EXPR_LIST_node): Likewise for param.
8669 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
8670 from rtx to rtx_expr_list *.
8671 * sched-int.h (struct deps_desc): Strengthen fields
8672 "pending_read_mems" and "pending_write_mems" from rtx to
8675 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
8676 rtx to rtx_expr_list *.
8677 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
8678 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
8680 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
8681 from rtx to rtx_expr_list *.
8682 * loop-iv.c (simplify_using_initial_values): Strengthen local
8683 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
8684 "pnote_next" from rtx * to rtx_expr_list **.
8685 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
8686 param "exprp" from rtx * to rtx_expr_list **.
8687 (add_insn_mem_dependence): Strengthen local "mem_list" from
8688 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
8690 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
8691 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
8692 param "old_mems_p" from rtx * to rtx_expr_list **.
8693 * var-tracking.c (struct adjust_mem_data): Strengthen field
8694 "side_effects" from rtx to rtx_expr_list *.
8695 (adjust_insn): Replace NULL_RTX with NULL when assigning to
8697 (prepare_call_arguments): Likewise.
8699 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8701 * function.h (struct rtl_data): Strengthen field
8702 "x_stack_slot_list" from rtx to rtx_expr_list *.
8704 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
8705 when assigning to stack_slot_list.
8707 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8709 * function.h (struct rtl_data): Strengthen field
8710 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
8711 * rtl.h (remove_node_from_expr_list): Strengthen second param from
8712 rtx * to rtx_expr_list **.
8714 * cfgbuild.c (make_edges): In loop over
8715 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
8716 rtx_expr_list *, and use methods of the latter class to clarify
8718 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
8719 rtx_expr_list *, and use methods of the latter class to clarify
8721 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8722 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8723 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
8724 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
8725 to rtx_expr_list *. Use methods of the latter class to clarify
8728 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8730 * function.h (struct expr_status): Strengthen field
8731 "x_forced_labels" from rtx to rtx_expr_list *.
8733 * cfgbuild.c (make_edges): Split local "x" into two locals,
8734 strengthening one from rtx to rtx_expr_list *, and using methods
8736 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
8737 loop over forced_labels, introduce strengthen it from rtx to
8738 rtx_expr_list *, using methods to clarify the code.
8739 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
8740 to rtx_expr_list *, using methods of said class to clarify the
8742 * reload1.c (set_initial_label_offsets): Split local "x" into two
8743 per-loop variables, strengthening the first from rtx to
8744 rtx_expr_list * and using methods.
8746 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8748 * coretypes.h (class rtx_expr_list): Add forward declaration.
8749 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
8750 * gengenrtl.c (special_rtx): Add EXPR_LIST.
8751 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
8752 invariant: GET_CODE (X) == EXPR_LIST.
8753 (is_a_helper <rtx_expr_list *>::test): New.
8754 (rtx_expr_list::next): New.
8755 (rtx_expr_list::element): New.
8756 (gen_rtx_EXPR_LIST): New.
8758 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8760 * varasm.c (mark_constants): Convert a GET_CODE check into a
8761 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8762 Use methods of rtx_sequence to clarify the code.
8764 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8766 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
8767 local "seq" via a checked cast, and use methods of rtx_sequence
8768 to simplify the code.
8770 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8772 * resource.c (mark_referenced_resources): Strengthen local
8773 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
8774 using methods of rtx_sequence to clarify the code.
8775 (find_dead_or_set_registers): Within the switch statement, convert
8776 a GET_CODE check to a dyn_cast, introducing local "seq". Within
8777 the JUMP_P handling, introduce another local "seq", adding a
8778 checked cast to rtx_sequence *. In both cases, use methods of
8779 rtx_sequence to clarify the code.
8780 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
8781 via a checked cast, and use methods of rtx_sequence to simplify
8784 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8786 * reorg.c (redundant_insn): In two places in the function, replace
8787 a check of GET_CODE with a dyn_cast, introducing local "seq", and
8788 usings methods of rtx_sequence to clarify the code.
8790 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8792 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
8793 local "seq" with a checked cast, and use methods of rtx_sequence
8794 to clarify the code.
8796 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8798 * function.c (contains): Introduce local "seq" for PATTERN (insn),
8799 with a checked cast, in the region for where we know it's a
8800 SEQUENCE. Use methods of rtx_sequence.
8802 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8804 * final.c (get_attr_length_1): Replace GET_CODE check with a
8805 dyn_cast, introducing local "seq" and the use of methods of
8807 (shorten_branches): Likewise, introducing local "body_seq".
8808 Strengthen local "inner_insn" from rtx to rtx_insn *.
8809 (reemit_insn_block_notes): Replace GET_CODE check with a
8810 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
8811 Use methods of rtx_sequence.
8812 (final_scan_insn): Likewise, introducing local "seq" for when
8813 "body" is known to be a SEQUENCE, using its methods.
8815 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8817 * except.c (can_throw_external): Strengthen local "seq" from rtx
8818 to rtx_sequence *. Use methods of rtx_sequence.
8819 (insn_nothrow_p): Likewise.
8821 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8823 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
8824 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8825 Use methods of rtx_sequence.
8826 (scan_trace): Likewise for local "pat".
8828 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8830 * coretypes.h (class rtx_sequence): Add forward declaration.
8831 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
8832 invariant: GET_CODE (X) == SEQUENCE.
8833 (is_a_helper <rtx_sequence *>::test): New.
8834 (is_a_helper <const rtx_sequence *>::test): New.
8835 (rtx_sequence::len): New.
8836 (rtx_sequence::element): New.
8837 (rtx_sequence::insn): New.
8839 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8841 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
8843 (alloc_INSN_LIST): Strengthen return type from rtx to
8845 (copy_INSN_LIST): Likewise for return type and param.
8846 (concat_INSN_LIST): Likewise for both params and return type.
8847 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
8848 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
8849 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
8850 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
8852 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
8853 "implicit_sets", "control_uses", "clobbers" from rtx to
8855 (struct deps_desc): Likewise for fields "pending_read_insns",
8856 "pending_write_insns", "pending_jump_insns",
8857 "last_pending_memory_flush", "last_function_call",
8858 "last_function_call_may_noreturn", "sched_before_next_call",
8859 "sched_before_next_jump".
8860 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
8861 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
8863 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
8864 from rtx to rtx_insn_list *.
8865 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
8868 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
8869 to rtx_insn_list **.
8870 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
8872 (queue_insn): Likewise for local "link".
8873 (struct haifa_saved_data): Strengthen field "insn_queue" from
8874 rtx * to rtx_insn_list **.
8875 (save_backtrack_point): Update allocation of save->insn_queue to
8876 reflect the strengthening of elements from rtx to rtx_insn_list *.
8877 (queue_to_ready): Strengthen local "link" from rtx to
8878 rtx_insn_list *; use methods "next" and "insn" when traversing the
8880 (early_queue_to_ready): Likewise for locals "link", "next_link",
8882 (schedule_block): Update allocation of insn_queue to reflect the
8883 strengthening of elements from rtx to rtx_insn_list *. Strengthen
8884 local "link" from rtx to rtx_insn_list *, and use methods when
8886 (add_to_speculative_block): Strengthen locals "twins" and
8887 "next_node" from rtx to rtx_insn_list *, and use methods when
8888 working with them. Strengthen local "twin" from rtx to
8889 rtx_insn *, eliminating a checked cast.
8890 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
8891 from rtx to rtx_insn_list *, and use methods when working with
8894 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
8895 from rtx to rtx_insn_list *, adding a checked cast.
8896 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
8898 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
8899 "newlink" from rtx to rtx_insn_list *. Strengthen local
8900 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
8901 from rtx to rtx_insn *.
8902 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
8903 from rtx to rtx_insn_list *. Use methods of the latter class.
8904 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
8905 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
8906 (remove_free_INSN_LIST_node): Strengthen return type and local
8907 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
8908 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
8909 rtx_insn_list *, using "insn" method.
8911 * sched-deps.c (add_dependence_list): Strengthen param "list"
8912 from rtx to rtx_insn_list *, and use methods when working with it.
8913 (add_dependence_list_and_free): Strengthen param "listp" from
8914 rtx * to rtx_insn_list **.
8915 (remove_from_dependence_list): Strenghten param "listp" from rtx *
8916 to rtx_insn_list **, and use methods when working with *listp.
8917 (remove_from_both_dependence_lists): Strengthen param "listp" from
8918 rtx * to rtx_insn_list **
8919 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
8920 to rtx_insn_list **. Eliminate local "link", in favor of two new
8921 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
8923 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
8924 by introducing local "cond_deps".
8925 (remove_from_deps): Strengthen param "insn" from rtx to
8928 * sched-rgn.c (concat_insn_mem_list): Strengthen param
8929 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
8930 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
8931 Use methods of rtx_insn_list.
8933 * store-motion.c (struct st_expr): Strengthen fields
8934 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
8935 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
8937 (find_moveable_store): Split out "tmp" into multiple more-tightly
8938 scoped locals. Use methods of rtx_insn_list *.
8939 (compute_store_table): Strengthen local "tmp" from rtx to
8940 rtx_insn *. Use methods of rtx_insn_list *.
8942 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8944 * coretypes.h (class rtx_insn_list): Add forward declaration.
8945 * rtl.h (class rtx_insn_list): New subclass of rtx_def
8946 (is_a_helper <rtx_insn_list *>::test): New.
8947 (rtx_insn_list::next): New.
8948 (rtx_insn_list::insn): New.
8949 (gen_rtx_INSN_LIST): Add prototype.
8950 * emit-rtl.c (gen_rtx_INSN_LIST): New.
8951 * gengenrtl.c (special_rtx): Add INSN_LIST.
8953 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8955 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
8956 "prev" from rtx to rtx_insn *.
8958 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8960 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
8961 functions. Require merely an rtx for now, not an rtx_insn *.
8962 (BLOCK_FOR_INSN): Likewise.
8963 (INSN_LOCATION): Likewise.
8964 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
8966 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8968 * rtl.h (PATTERN): Convert this macro into a pair of inline
8969 functions, for now, requiring const_rtx and rtx.
8971 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8973 * target.def (unwind_emit): Strengthen param "insn" from rtx to
8975 (final_postscan_insn): Likewise.
8976 (adjust_cost): Likewise.
8977 (adjust_priority): Likewise.
8978 (variable_issue): Likewise.
8979 (macro_fusion_pair_p): Likewise.
8980 (dfa_post_cycle_insn): Likewise.
8981 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
8982 (first_cycle_multipass_issue): Likewise.
8983 (dfa_new_cycle): Likewise.
8984 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
8985 (speculate_insn): Likewise for param "insn".
8986 (gen_spec_check): Likewise for params "insn" and "label".
8987 (get_insn_spec_ds): Likewise for param "insn".
8988 (get_insn_checked_ds): Likewise.
8989 (dispatch_do): Likewise.
8990 (dispatch): Likewise.
8991 (cannot_copy_insn_p): Likewise.
8992 (invalid_within_doloop): Likewise.
8993 (legitimate_combined_insn): Likewise.
8997 * doc/tm.texi: Automatically updated to reflect changes to
9000 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9002 (schedule_block): Likewise.
9003 (sched_init): Likewise.
9004 (sched_speculate_insn): Strengthen param "insn" from rtx to
9006 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9008 * hooks.c (hook_bool_rtx_true): Rename to...
9009 hook_bool_rtx_insn_true): ...this, and strengthen first param from
9011 (hook_constcharptr_const_rtx_null): Rename to...
9012 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9013 first param from const_rtx to const rtx_insn *.
9014 (hook_bool_rtx_int_false): Rename to...
9015 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9016 param from rtx to rtx_insn *.
9017 (hook_void_rtx_int): Rename to...
9018 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9021 * hooks.h (hook_bool_rtx_true): Rename to...
9022 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9024 (hook_bool_rtx_int_false): Rename to...
9025 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9026 param from rtx to rtx_insn *.
9027 (hook_void_rtx_int): Rename to...
9028 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9030 (hook_constcharptr_const_rtx_null): Rename to...
9031 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9032 first param from const_rtx to const rtx_insn *.
9034 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9035 and local "prev" from rtx to rtx_insn *.
9037 * sched-int.h (sched_speculate_insn): Strengthen first param from
9040 * sel-sched.c (create_speculation_check): Likewise for local "label".
9041 * targhooks.c (default_invalid_within_doloop): Strengthen param
9042 "insn" from const_rtx to const rtx_insn *.
9043 * targhooks.h (default_invalid_within_doloop): Strengthen param
9044 from const_rtx to const rtx_insn *.
9046 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9047 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9049 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9051 (arc_invalid_within_doloop): Likewise, with const.
9053 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9054 (arm_cannot_copy_insn_p): Likewise for param "insn".
9055 (arm_unwind_emit): Likewise.
9057 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9060 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9061 (c6x_variable_issue): Likewise. Removed now-redundant checked
9063 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
9065 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
9066 Likewise for param "insn".
9067 (epiphany_mode_after): Likewise.
9068 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
9069 params "insn", "dep_insn".
9070 (epiphany_mode_needed): Likewise for param "insn".
9071 (epiphany_mode_after): Likewise.
9073 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
9074 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9075 (ix86_avx_u128_mode_needed): Likewise.
9076 (ix86_i387_mode_needed): Likewise.
9077 (ix86_mode_needed): Likewise.
9078 (ix86_avx_u128_mode_after): Likewise.
9079 (ix86_mode_after): Likewise.
9080 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
9081 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
9082 (ix86_adjust_priority): Likewise for param "insn".
9083 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
9084 (do_dispatch): Likewise.
9085 (has_dispatch): Likewise.
9086 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
9088 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
9089 reflect renaming of default hook implementation from
9090 hook_constcharptr_const_rtx_null to
9091 hook_constcharptr_const_rtx_insn_null.
9092 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
9094 (ia64_variable_issue): Likewise for param "insn".
9095 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
9096 (ia64_dfa_new_cycle): Likewise.
9097 (ia64_get_insn_spec_ds): Likewise.
9098 (ia64_get_insn_checked_ds): Likewise.
9099 (ia64_speculate_insn): Likewise.
9100 (ia64_gen_spec_check): Likewise for params "insn", "label".
9101 (ia64_asm_unwind_emit): Likewise for param "insn".
9103 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
9105 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
9107 (m68k_sched_variable_issue): Likewise for param "insn".
9109 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
9112 * config/microblaze/microblaze.c (microblaze_adjust_cost):
9113 Likewise for params "insn", "dep".
9115 * config/mips/mips.c (mips_adjust_cost): Likewise.
9116 (mips_variable_issue): Likewise for param "insn".
9117 (mips_final_postscan_insn): Likewise.
9119 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
9120 for params "insn", "dep".
9122 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
9124 (pa_adjust_priority): Likewise for param "insn".
9126 * config/picochip/picochip.c (picochip_sched_adjust_cost):
9127 Likewise for params "insn", "dep_insn".
9129 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
9131 (rs6000_variable_issue): Likewise.
9132 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
9133 (rs6000_debug_adjust_cost): Likewise.
9134 (rs6000_adjust_priority): Likewise for param "insn".
9135 (rs6000_use_sched_lookahead_guard): Likewise.
9136 (get_next_active_insn): Likewise for return type and both params.
9137 (redefine_groups): Likewise for params "prev_head_insn", "tail"
9138 and locals "insn", "next_insn".
9139 (pad_groups): Likewise.
9141 * config/s390/s390.c (s390_adjust_priority): Likewise for param
9143 (s390_cannot_copy_insn_p): Likewise.
9144 (s390_sched_variable_issue): Likewise for third param, eliminating
9146 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
9147 default hook implementation from hook_constcharptr_const_rtx_null
9148 to hook_constcharptr_const_rtx_insn_null.
9150 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
9151 from rtx to rtx_insn *.
9152 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
9153 (sh_variable_issue): Likewise for param "insn".
9154 (sh_dfa_new_cycle): Likewise.
9155 (sh_mode_needed): Likewise.
9156 (sh_mode_after): Likewise.
9158 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
9159 params "insn", "dep_insn".
9160 (hypersparc_adjust_cost): Likewise.
9161 (sparc_adjust_cost): Likewise.
9163 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
9164 param, eliminated checked cast.
9165 (spu_sched_adjust_cost): Likewise for first and third params.
9167 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
9168 params "insn" and "dep_insn" from rtx to rtx_insn *.
9170 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
9172 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9174 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
9175 (set_is_load_p): ...this, updating to work on a SET pattern rather
9177 (is_store_insn): Rename to...
9178 (set_is_store_p): ...this, updating to work on a SET pattern
9179 rather than an insn.
9180 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
9181 top of function to where it is needed. Rewrite the bogus
9182 condition that checks for "insn" and "dep" being PARALLEL to
9183 instead use single_set, introducing locals "insn_set" and
9184 "dep_set". Given that we only ever returned "cost" for a non-pair
9185 of SETs, bail out early if we don't have a pair of SET.
9186 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
9187 use the new locals "insn_set" and "dep_set", and update calls to
9188 is_load_insn and is_store_insn to be calls to set_is_load_p and
9191 2014-08-27 Guozhi Wei <carrot@google.com>
9194 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
9195 amount before using it.
9197 2014-08-27 Richard Biener <rguenther@suse.de>
9199 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
9200 get_maxval_strlen inside a more useful API.
9201 (gimple_fold_builtin_with_strlen): Remove and fold into ...
9202 (gimple_fold_builtin): ... caller.
9203 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
9204 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
9205 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
9206 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
9207 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
9208 gimple_fold_builtin_sprintf): Adjust to compute maxval
9211 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
9214 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
9216 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9217 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9218 Anna Tikhonova <anna.tikhonova@intel.com>
9219 Ilya Tocar <ilya.tocar@intel.com>
9220 Andrey Turetskiy <andrey.turetskiy@intel.com>
9221 Ilya Verbin <ilya.verbin@intel.com>
9222 Kirill Yukhin <kirill.yukhin@intel.com>
9223 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9225 * config/i386/sse.md
9226 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
9227 Use `concat_tg_mode' attribute to determine asm register size.
9229 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9230 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9231 Anna Tikhonova <anna.tikhonova@intel.com>
9232 Ilya Tocar <ilya.tocar@intel.com>
9233 Andrey Turetskiy <andrey.turetskiy@intel.com>
9234 Ilya Verbin <ilya.verbin@intel.com>
9235 Kirill Yukhin <kirill.yukhin@intel.com>
9236 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9238 * config/i386/sse.md
9239 (define_mode_iterator VI48_AVX512VL): New.
9240 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
9241 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
9242 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
9243 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9244 with VI1): Change mode iterator.
9245 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9246 with VI_ULOADSTORE_BW_AVX512VL): New.
9247 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9248 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9249 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9250 with VI1): Change mode iterator.
9251 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9252 with VI_ULOADSTORE_BW_AVX512VL): New.
9253 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9254 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9255 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9256 with VI1): Change mode iterator.
9257 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9258 with VI_ULOADSTORE_BW_AVX512VL): New.
9259 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9260 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
9261 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
9262 (define_insn "<avx512>_storedqu<mode>_mask" with
9263 VI48_AVX512VL): New.
9264 (define_insn "<avx512>_storedqu<mode>_mask" with
9265 VI12_AVX512VL): Ditto.
9267 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9268 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9269 Anna Tikhonova <anna.tikhonova@intel.com>
9270 Ilya Tocar <ilya.tocar@intel.com>
9271 Andrey Turetskiy <andrey.turetskiy@intel.com>
9272 Ilya Verbin <ilya.verbin@intel.com>
9273 Kirill Yukhin <kirill.yukhin@intel.com>
9274 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9276 * config/i386/sse.md
9277 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
9278 (define_mode_iterator VI48_AVX512BW): New.
9279 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
9280 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9281 with VI48_AVX2_48_AVX512F): New.
9282 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9283 with VI2_AVX512VL): Ditto.
9285 2014-08-27 Richard Biener <rguenther@suse.de>
9288 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
9289 (fold_builtin_3): Do not fold strcat_chk here.
9290 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
9292 (gimple_fold_builtin): Fold strcat_chk here.
9294 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
9296 * dwarf2out.h (dwarf2out_decl): Remove prototype.
9297 * dwarf2out.c (dwarf2out_decl): Make static.
9299 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
9301 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
9303 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9305 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
9306 from rtx to rtx_insn *.
9307 (cselib_lookup_from_insn): Likewise for final param.
9308 (cselib_subst_to_values_from_insn): Likewise.
9309 (cselib_add_permanent_equiv): Likewise.
9311 * cselib.c (cselib_current_insn): Likewise for this variable.
9312 (cselib_subst_to_values_from_insn): Likewise for param "insn".
9313 (cselib_lookup_from_insn): Likewise.
9314 (cselib_add_permanent_equiv): Likewise for param "insn" and local
9315 "save_cselib_current_insn".
9316 (cselib_process_insn): Replace use of NULL_RTX with NULL.
9318 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9319 from rtx to rtx_insn *.
9321 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9323 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9326 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9328 * df.h (df_dump_insn_problem_function): Strengthen first param of
9329 this callback from const_rtx to const rtx_insn *.
9330 (struct df_insn_info): Strengthen field "insn" from rtx to
9332 (DF_REF_INSN): Eliminate this function, reinstating the older
9334 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9335 (df_reg_defined): Likewise.
9336 (df_find_use): Likewise.
9337 (df_reg_used): Likewise.
9338 (df_dump_insn_top): Strengthen param 1 from const_rtx to
9340 (df_dump_insn_bottom): Likewise.
9341 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9342 (df_insn_debug_regno): Likewise.
9343 (debug_df_insn): Likewise.
9344 (df_rd_simulate_one_insn): Likewise for param 2.
9345 (df_word_lr_simulate_defs): Likewise for param 1.
9346 (df_word_lr_simulate_uses): Likewise.
9347 (df_md_simulate_one_insn): Likewise for param 2.
9348 (df_simulate_find_noclobber_defs): Likewise for param 1.
9349 (df_simulate_find_defs): Likewise.
9350 (df_simulate_defs): Likewise.
9351 (df_simulate_uses): Likewise.
9352 (df_simulate_one_insn_backwards): Likewise for param 2.
9353 (df_simulate_one_insn_forwards): Likewise.
9354 (df_uses_create): Likewise for param 2.
9355 (df_insn_create_insn_record): Likewise for param 1.
9356 (df_insn_delete): Likewise.
9357 (df_insn_rescan): Likewise.
9358 (df_insn_rescan_debug_internal): Likewise.
9359 (df_insn_change_bb): Likewise.
9360 (df_notes_rescan): Likewise.
9361 * rtl.h (remove_death): Likewise for param 2.
9362 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9364 * sched-int.h (reemit_notes): Strengthen param from rtx to
9366 * valtrack.h (propagate_for_debug): Likewise for param 1.
9368 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9369 local "tmp_rtx" from const_rtx to const rtx_insn *.
9370 * combine.c (remove_death): Strengthen param "insn" from rtx to
9372 (move_deaths): Likewise for local "where_dead".
9373 * cse.c (delete_trivially_dead_insns): Introduce local
9374 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9375 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9377 (df_reg_defined): Likewise.
9378 (df_find_use): Likewise.
9379 (df_reg_used): Likewise.
9380 (df_dump_insn_problem_data): Strengthen param "insn" from
9381 const_rtx to const rtx_insn *.
9382 (df_dump_insn_top): Likewise.
9383 (df_dump_insn_bottom): Likewise.
9384 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9385 (df_insn_debug_regno): Likewise.
9386 (debug_df_insn): Likewise.
9387 (DF_REF_INSN): Delete.
9388 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9389 from rtx to rtx_insn *.
9390 (df_chain_insn_top_dump): Strengthen param "insn" from
9391 const_rtx to const rtx_insn *.
9392 (df_chain_insn_bottom_dump): Likewise.
9393 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9395 (df_word_lr_simulate_uses): Likewise.
9396 (df_print_note): Likewise.
9397 (df_remove_dead_and_unused_notes): Likewise.
9398 (df_set_unused_notes_for_mw): Likewise.
9399 (df_set_dead_notes_for_mw): Likewise.
9400 (df_create_unused_note): Likewise.
9401 (df_simulate_find_defs): Likewise.
9402 (df_simulate_find_uses): Likewise.
9403 (df_simulate_find_noclobber_defs): Likewise.
9404 (df_simulate_defs): Likewise.
9405 (df_simulate_uses): Likewise.
9406 (df_simulate_one_insn_backwards): Likewise.
9407 (df_simulate_one_insn_forwards): Likewise.
9408 (df_md_simulate_one_insn): Likewise.
9409 * df-scan.c (df_uses_create): Likewise.
9410 (df_insn_create_insn_record): Likewise.
9411 (df_insn_delete): Likewise.
9412 (df_insn_rescan): Likewise.
9413 (df_insn_rescan_debug_internal): Likewise.
9414 (df_insn_change_bb): Likewise.
9415 (df_notes_rescan): Likewise.
9416 (df_refs_add_to_chains): Likewise.
9417 (df_insn_refs_verify): Likewise.
9418 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
9419 when invoking df_insn_delete.
9420 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
9421 (set_unique_reg_note): Add checked cast.
9422 * final.c (cleanup_subreg_operands): Likewise.
9423 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
9424 "insn" from rtx to rtx_insn *.
9425 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
9426 "last" from rtx to rtx_insn *.
9427 * ira-emit.c (change_regs_in_insn): New function.
9428 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9429 Invoke change_regs_in_insn rather than change_regs.
9430 * ira.c (update_equiv_regs): Strengthen locals "insn",
9431 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
9432 for_each_rtx_in_insn rather than for_each_rtx.
9433 * recog.c (confirm_change_group): Add checked casts.
9434 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9436 (peep2_fill_buffer): Add checked cast.
9437 * rtlanal.c (remove_note): Likewise.
9438 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9439 locals "next" "end" from rtx to rtx_insn *.
9441 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9443 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9445 (struct reg_use_data): Likewise for field "insn".
9446 (insn_cost): Likewise for param.
9447 (real_insn_for_shadow): Likewise for return type and param.
9448 (increase_insn_priority): Likewise for param 1.
9449 (debug_dependencies): Likewise for both params.
9451 * haifa-sched.c (insn_delay): Likewise for param "insn".
9452 (real_insn_for_shadow): Likewise for return type and param "insn".
9453 (update_insn_after_change): Likewise for param "insn".
9454 (recompute_todo_spec): Likewise for param "next" and locals "pro",
9456 (insn_cost): Likewise for param "insn".
9457 (increase_insn_priority): Likewise.
9458 (calculate_reg_deaths): Likewise.
9459 (setup_insn_reg_pressure_info): Likewise.
9460 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
9461 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
9462 (model_recompute): Likewise.
9463 (must_restore_pattern_p): Likewise for param "next".
9464 (model_excess_cost): Likewise for param "insn".
9465 (queue_remove): Likewise.
9466 (adjust_priority): Likewise for param "prev".
9467 (update_register_pressure): Likewise for param "insn".
9468 (setup_insn_max_reg_pressure): Likewise for local "insn".
9469 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
9470 (model_add_to_schedule): Likewise.
9471 (model_reset_queue_indices): Likewise for local "insn".
9472 (unschedule_insns_until): Strengthen local "recompute_vec" from
9473 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
9474 "con" from rtx to rtx_insn *.
9475 (restore_last_backtrack_point): Likewise for both locals "x". Add
9477 (estimate_insn_tick): Likewise for param "insn".
9478 (commit_schedule): Likewise for params "prev_head", "tail" and
9480 (verify_shadows): Likewise for locals "i1", "i2".
9481 (dump_insn_stream): Likewise for params "head", "tail" and locals
9482 "next_tail", "insn".
9483 (schedule_block): Likewise for locals "insn", "x". Add a checked
9485 (fix_inter_tick): Likewise for params "head", "tail".
9486 (create_check_block_twin): Likewise for local "jump".
9487 (haifa_change_pattern): Likewise for param "insn".
9488 (haifa_speculate_insn): Likewise.
9489 (dump_new_block_header): Likewise for params "head", "tail".
9490 (fix_jump_move): Likewise for param "jump".
9491 (move_block_after_check): Likewise.
9492 (sched_init_insn_luid): Likewise for param "insn".
9493 (sched_init_luids): Likewise for local "insn".
9494 (insn_luid): Likewise for param "insn".
9495 (init_h_i_d): Likewise.
9496 (haifa_init_h_i_d): Likewise for local "insn".
9497 (haifa_init_insn): Likewise for param "insn".
9498 * sched-deps.c (add_dependence): Likewise for local "real_pro",
9500 (create_insn_reg_use): Likewise for param "insn".
9501 (setup_insn_reg_uses): Likewise. Add a checked cast.
9502 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
9503 "tail" from rtx to rtx_insn *.
9504 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
9505 "insn", "next_tail".
9507 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9509 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
9510 from rtx to rtx_insn *.
9511 (model_add_to_schedule): Likewise for locals "start", "end",
9514 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9516 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
9518 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
9519 "to" and locals "insn", "next", "copy". Remove now-redundant
9522 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9524 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
9525 rtx_insn * and param 4 from rtx * to rtx_insn **.
9526 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
9527 param 2 from rtx * to rtx_insn **.
9529 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
9530 rtx_insn * and final param from rtx * to rtx_insn **.
9532 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
9533 from rtx to rtx_insn *.
9534 (try_head_merge_bb): Likewise for both locals named "move_upto".
9535 * df-problems.c (can_move_insns_across): Likewise for params
9536 "from", "to", "across_from", "across_to" and locals "insn",
9537 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
9539 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
9540 from rtx to rtx_insn *.
9541 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
9542 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
9543 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
9545 (noce_try_abs): Likewise.
9546 (noce_get_condition): Likewise for param "jump". Strengthen param
9547 "earliest" from rtx * to rtx_insn **.
9548 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
9550 (find_cond_trap): Likewise.
9551 (dead_or_predicable): Likewise for local "earliest".
9552 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
9554 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
9555 and local "prev". Strengthen param "earliest" from rtx * to
9557 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
9558 Strengthen param "earliest" from rtx * to rtx_insn **.
9560 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9562 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
9563 "to" and local "insn" from rtx to rtx_insn *.
9565 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9567 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
9568 from rtx to rtx_insn *.
9569 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
9570 (code_motion_path_driver): Likewise for local "last_insn".
9571 (simplify_changed_insns): Likewise for local "insn".
9573 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9575 * rtl.h (push_to_sequence): Strengthen param from rtx to
9577 (push_to_sequence2): Likewise for both params.
9578 (delete_insns_since): Likewise for param.
9579 (reorder_insns_nobb): Likewise for all three params.
9580 (set_new_first_and_last_insn): Likewise for both params.
9582 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
9583 rtx_insn *. Remove now-redundant cast.
9584 (set_last_insn): Likewise.
9586 * builtins.c (expand_builtin_return): Strengthen local
9587 "call_fusage" from rtx to rtx_insn *.
9588 * cfgrtl.c (create_basic_block_structure): Likewise for local
9590 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
9591 "first", "last" and local "insn".
9592 (delete_insns_since): Likewise for param "from".
9593 (reorder_insns_nobb): Likewise for params "from", "to", "after"
9595 (push_to_sequence): Likewise for param "first" and local "last".
9596 (push_to_sequence2): Likewise for params "first" and "last".
9597 * lra.c (emit_add3_insn): Likewise for local "last".
9598 (lra_emit_add): Likewise.
9599 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
9601 (process_address_1): Likewise for locals "insn", last".
9602 * modulo-sched.c (ps_first_note): Likewise for return type.
9603 * optabs.c (expand_binop_directly): Likewise for param "last".
9605 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9607 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
9609 * emit-rtl.c (get_last_insn_anywhere): Likewise.
9611 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9613 * function.h (struct sequence_stack): Strengthen fields "first"
9614 and "last" from rtx to rtx_insn *.
9615 (struct emit_status): Likewise for fields "x_first_insn" and
9618 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
9619 (set_first_insn): Add checked cast.
9620 (get_last_insn): Remove now-redundant checked cast.
9621 (set_last_insn): Add checked cast.
9623 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
9624 "saved_first" and "saved_last" from rtx to rtx_insn *.
9626 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9628 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
9629 (unlink_insn_chain): Strengthen both params from rtx to
9632 * cfgrtl.c (cfg_layout_function_header): Likewise for this
9634 (unlink_insn_chain): Likewise for params "first" and "last".
9635 Remove now-redundant checked cast.
9636 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
9637 (fixup_reorder_chain): Strengthen local "insn" from rtx to
9639 * emit-rtl.c (link_insn_into_chain): Likewise for all three
9641 (add_insn): Likewise for param "insn" and local "prev".
9642 (add_insn_after_nobb): Likewise for both params and local "next".
9643 (add_insn_before_nobb): Likewise for both params and local "prev".
9644 (add_insn_after): Rename param "after" to "uncast_after",
9645 introducing local "after" with another checked cast.
9646 (add_insn_before): Rename params "insn" and "before", giving them
9647 "uncast_" prefixes, adding the old names back using checked casts.
9648 (emit_note_after): Likewise for param "after".
9649 (emit_note_before): Likewise for param "before".
9650 (emit_label): Add a checked cast.
9652 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9654 * cselib.h (cselib_record_sets_hook): Strengthen initial param
9655 "insn" from rtx to rtx_insn *.
9657 * cselib.c (cselib_record_sets_hook): Likewise.
9659 * var-tracking.c (add_with_sets): Likewise, renaming back from
9660 "uncast_insn" to "insn" and eliminating the checked cast from rtx
9663 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9665 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
9666 and "header_" from rtx to rtx_insn *.
9667 (struct basic_block_d): Likewise for field "head_" within "x"
9668 field of union basic_block_il_dependent.
9669 (BB_HEAD): Drop function...
9670 (SET_BB_HEAD): ...and this function in favor of...
9671 (BB_HEAD): ...reinstate macro.
9672 (BB_END): Drop function...
9673 (SET_BB_END): ...and this function in favor of...
9674 (BB_END): ...reinstate macro.
9675 (BB_HEADER): Drop function...
9676 (SET_BB_HEADER): ...and this function in favor of...
9677 (BB_HEADER): ...reinstate macro.
9679 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
9680 (fix_crossing_unconditional_branches): Likewise.
9681 * caller-save.c (save_call_clobbered_regs): Likewise.
9682 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
9683 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
9684 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9685 (merge_blocks_move_successor_nojumps): Likewise.
9686 (outgoing_edges_match): Update use of for_each_rtx to
9687 for_each_rtx_in_insn.
9688 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
9689 (expand_gimple_cond): Likewise.
9690 (expand_gimple_tailcall): Likewise.
9691 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
9693 (construct_exit_block): Drop use of SET_BB_END.
9694 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
9696 (delete_insn): Rename param "insn" to "uncast_insn", introducing
9697 a new local "insn" with a checked cast to rtx_insn *. Drop use of
9698 SET_BB_HEAD and SET_BB_END.
9699 (create_basic_block_structure): Drop use of SET_BB_HEAD and
9701 (rtl_delete_block): Drop use of SET_BB_HEAD.
9702 (rtl_split_block): Drop use of SET_BB_END.
9703 (emit_nop_for_unique_locus_between): Likewise.
9704 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
9705 (block_label): Drop use of SET_BB_HEAD.
9706 (fixup_abnormal_edges): Drop use of SET_BB_END.
9707 (record_effective_endpoints): Drop use of SET_BB_HEADER.
9708 (relink_block_chain): Likewise.
9709 (fixup_reorder_chain): Drop use of SET_BB_END.
9710 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
9711 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
9712 rtx_insn **. Drop use of SET_BB_HEADER.
9713 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
9715 (BB_HEAD): Delete this function.
9716 (SET_BB_HEAD): Likewise.
9718 (SET_BB_END): Likewise.
9719 (BB_HEADER): Likewise.
9720 (SET_BB_HEADER): Likewise.
9721 * emit-rtl.c (add_insn_after): Rename param "insn" to
9722 "uncast_insn", adding a new local "insn" and a checked cast to
9723 rtx_insn *. Drop use of SET_BB_END.
9724 (remove_insn): Strengthen locals "next" and "prev" from rtx to
9725 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
9726 (reorder_insns): Drop use of SET_BB_END.
9727 (emit_insn_after_1): Strengthen param "first" and locals "last",
9728 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
9729 (emit_pattern_after_noloc): Add checked cast.
9730 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
9731 (restore_other_notes): Likewise.
9732 (move_insn): Likewise.
9733 (sched_extend_bb): Likewise.
9734 (fix_jump_move): Likewise.
9735 * ifcvt.c (noce_process_if_block): Likewise.
9736 (dead_or_predicable): Likewise.
9737 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
9738 * reg-stack.c (change_stack): Drop use of SET_BB_END.
9739 * sel-sched-ir.c (sel_move_insn): Likewise.
9740 * sel-sched.c (move_nop_to_previous_block): Likewise.
9742 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
9744 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9746 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9748 * basic-block.h (create_basic_block_structure): Strengthen params
9749 1 "head" and 2 "end" from rtx to rtx_insn *.
9750 * cfgrtl.c (create_basic_block_structure): Likewise.
9751 (rtl_create_basic_block): Update casts from void * to rtx to
9752 rtx_insn *, so that we can pass them as rtx_insn * to
9753 create_basic_block_structure.
9754 * sel-sched-ir.c (sel_create_basic_block): Likewise.
9756 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9758 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
9760 (check_for_inc_dec): Strengthen param "insn" from rtx to
9763 * cselib.h (cselib_process_insn): Likewise.
9765 * cselib.c (cselib_record_sets): Likewise.
9766 (cselib_process_insn): Likewise.
9768 * dse.c (struct insn_info): Likewise for field "insn".
9769 (check_for_inc_dec_1): Likewise for local "insn".
9770 (check_for_inc_dec): Likewise for param "insn".
9771 (scan_insn): Likewise.
9772 (dse_step1): Likewise for local "insn".
9774 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
9775 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
9777 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9779 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
9780 from rtx to rtx_insn *.
9781 (DEP_PRO): Delete this function and...
9782 (SET_DEP_PRO): ...this function in favor of...
9783 (DEP_PRO): ...reinstate this macro.
9784 (DEP_CON): Delete this function and...
9785 (SET_DEP_CON): ...this function in favor of...
9786 (DEP_CON): ...reinstate this old macro.
9787 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
9788 (init_dep): Likewise.
9789 (set_priorities): Likewise for both params.
9790 (sd_copy_back_deps): Likewise for params 1 and 2.
9792 * haifa-sched.c (priority): Likewise for param "insn" and local
9794 (set_priorities): Likewise for params "head" and "tail" and local
9796 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
9798 (add_to_speculative_block): Add a checked cast.
9799 (create_check_block_twin): Drop use of SET_DEP_CON.
9800 (add_jump_dependencies): Strengthen params "insn" and "jump" from
9803 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
9804 Drop use of SET_DEP_PRO
9805 (init_dep): Strengthen params "pro" and "con" from rtx to
9807 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
9811 (SET_DEP_PRO): Delete.
9812 (SET_DEP_CON): Delete.
9814 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9816 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
9817 from rtx to rtx_insn *.
9818 (VINSN_INSN_RTX): Eliminate rvalue function and...
9819 (SET_VINSN_INSN): ...lvalue function in favor of...
9820 (VINSN_INSN_RTX): reinstate this old macro.
9822 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
9823 in favor of VINSN_INSN_RTX.
9824 (VINSN_INSN_RTX): Delete this function.
9825 (SET_VINSN_INSN_RTX): Likewise.
9827 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9829 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
9830 (BND_TO): Delete this function and...
9831 (SET_BND_TO): ...this functions in favor of...
9832 (BND_TO): ...reinstating this macro.
9833 (struct _fence): Strengthen field "executing_insns" from
9834 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
9835 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
9836 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
9837 and param "insn" from rtx to insn_t.
9838 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
9841 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
9843 (rtx_vec_t): Likewise.
9844 (struct sched_deps_info_def): Strengthen param of "start_insn"
9845 callback from rtx to rtx_insn *. Likewise for param "insn2" of
9846 "note_mem_dep" callback and first param of "note_dep" callback.
9848 * haifa-sched.c (add_to_speculative_block): Strengthen param
9849 "insn" from rtx to rtx_insn *.
9850 (clear_priorities): Likewise.
9851 (calc_priorities): Likewise for local "insn".
9853 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
9854 Remove redundant checked cast.
9855 (haifa_note_mem_dep): Likewise for param "pending_insn".
9856 (haifa_note_dep): Likewise for param "elem".
9857 (note_mem_dep): Likewise for param "e".
9858 (sched_analyze_1): Add checked casts.
9859 (sched_analyze_2): Likewise.
9861 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
9862 from rtx to rtx_insn *.
9863 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
9864 from vec<rtx> * to vec<rtx_insn *> *.
9866 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
9868 (flist_add): Strengthen param "executing_insns" from
9869 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
9870 (advance_deps_context): Remove now-redundant checked cast.
9871 (init_fences): Replace uses of NULL_RTX with NULL.
9872 (merge_fences): Strengthen params "last_scheduled_insn" and
9873 "sched_next" from rtx to rtx_insn * and "executing_insns" from
9874 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
9875 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
9876 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
9877 an instruction, rather than doing double-duty as a pattern.
9878 (return_nop_to_pool): Update for change of insn_t.
9879 (deps_init_id): Remove now-redundant checked cast.
9880 (struct sched_scan_info_def): Strengthen param of "init_insn"
9881 callback from rtx to insn_t.
9882 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
9883 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
9885 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
9886 "end" from rtx to rtx_insn *.
9887 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
9888 (rtx insn_rtx, bool force_unique_p)
9889 (BND_TO): Delete function.
9890 (SET_BND_TO): Delete function.
9892 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
9894 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
9895 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
9897 (undo_transformations): Likewise for param "insn".
9898 (update_liveness_on_insn): Likewise.
9899 (compute_live_below_insn): Likewise for param "insn" and local
9901 (update_data_sets): Likewise for param "insn".
9902 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
9903 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
9904 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
9906 (move_cond_jump): Likewise for param "insn".
9907 (move_cond_jump): Drop use of SET_BND_TO.
9908 (compute_av_set_on_boundaries): Likewise.
9909 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
9910 (update_and_record_unavailable_insns): Strengthen local "bb_end"
9911 from rtx to rtx_insn *.
9912 (maybe_emit_renaming_copy): Likewise for param "insn".
9913 (maybe_emit_speculative_check): Likewise.
9914 (handle_emitting_transformations): Likewise.
9915 (remove_insn_from_stream): Likewise.
9916 (code_motion_process_successors): Strengthen local "succ" from rtx
9919 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9921 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
9922 ilist_t, not _xlist_t;
9923 (ILIST_INSN): Define in terms of new union field "insn".
9924 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
9926 (struct _list_node): Add new field "insn" to the union, of type
9928 (ilist_add): Replace macro with an inline function, requiring an
9930 (ilist_remove): Define this macro directly in terms of
9931 _list_remove, rather than indirectly via _xlist_remove.
9932 (ilist_clear): Likewise, in terms of _list_clear rather than
9934 (ilist_is_in_p): Replace macro with an inline function, requiring
9936 (_list_iter_cond_insn): New function.
9937 (ilist_iter_remove): Define this macro directly in terms of
9938 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
9939 (ilist_iterator): Define directly in terms of _list_iterator
9940 rather than indirectly through _xlist_iterator.
9941 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
9942 than in terms of _FOR_EACH_X.
9943 (FOR_EACH_INSN_1): Likewise.
9945 2014-08-26 Joseph Myers <joseph@codesourcery.com>
9949 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
9950 DECL_HARD_REGISTER and return for invalid register specifications.
9951 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
9952 DECL_HARD_REGISTER, call expand_one_error_var.
9953 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
9954 CC_REGNUM with non-MODE_CC modes.
9955 (arm_regno_class): Return NO_REGS for PC_REGNUM.
9957 2014-08-26 Marek Polacek <polacek@redhat.com>
9960 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
9962 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
9964 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
9965 qi cost; add di cost.
9966 (cortexa57_addrcost_table): Likewise.
9968 2014-08-26 Marek Polacek <polacek@redhat.com>
9971 * expr.c (is_aligning_offset): Remove logical not.
9973 2014-08-26 Marek Polacek <polacek@redhat.com>
9976 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
9977 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
9979 2014-08-26 Richard Biener <rguenther@suse.de>
9981 PR tree-optimization/62175
9982 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
9983 expand possibly trapping operations.
9985 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9987 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
9988 "insn" from rtx to rtx_insn *.
9989 (permute_load): Likewise for param "insn".
9990 (permute_store): Likewise.
9991 (handle_special_swappables): Likewise for local "insn".
9992 (replace_swap_with_copy): Likewise for locals "insn" and
9994 (rs6000_analyze_swaps): Likewise for local "insn".
9996 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9998 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10001 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10003 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10004 "note_list" from rtx to rtx_insn *.
10005 (BB_NOTE_LIST): Replace this function and...
10006 (SET_BB_NOTE_LIST): ...this function with...
10007 (BB_NOTE_LIST): ...the former macro implementation.
10009 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10010 local "from_start" from rtx to rtx_insn *. Strengthen param
10011 "to_endp" from rtx * to rtx_insn **.
10013 * haifa-sched.c (concat_note_lists): Likewise.
10014 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10016 (sel_restore_notes): Likewise.
10017 (move_bb_info): Likewise.
10018 (BB_NOTE_LIST): Delete this function.
10019 (SET_BB_NOTE_LIST): Delete this function.
10020 * sel-sched.c (create_block_for_bookkeeping): Eliminate
10021 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10023 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10025 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10026 from rtx * to rtx_insn **.
10027 (reorder2): Likewise.
10028 (dependencies_evaluation_hook): Strengthen params "head", "tail"
10029 from rtx to rtx_insn *.
10031 * doc/tm.texi: Update mechanically for above change to target.def.
10033 * sched-int.h (note_list): Strengthen this variable from rtx to
10035 (remove_notes): Likewise for both params.
10036 (restore_other_notes): Likewise for return type and first param.
10037 (struct ready_list): Strengthen field "vec" from rtx * to
10039 (struct dep_replacement): Strenghten field "insn" from rtx to
10041 (struct deps_desc): Likewise for fields "last_debug_insn",
10043 (struct haifa_sched_info): Likewise for callback field
10044 "can_schedule_ready_p"'s param, for first param of "new_ready"
10045 callback field, for both params of "rank" callback field, for
10046 first field of "print_insn" callback field (with a const), for
10047 both params of "contributes_to_priority" callback, for param
10048 of "insn_finishes_block_p" callback, for fields "prev_head",
10049 "next_tail", "head", "tail", for first param of "add_remove_insn"
10050 callback, for first param of "begin_schedule_ready" callback, for
10051 both params of "begin_move_insn" callback, and for second param
10052 of "advance_target_bb" callback.
10053 (add_dependence): Likewise for params 1 and 2.
10054 (sched_analyze): Likewise for params 2 and 3.
10055 (deps_analyze_insn): Likewise for param 2.
10056 (ready_element): Likewise for return type.
10057 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10058 (try_ready): Strenghten param from rtx to rtx_insn *.
10059 (sched_emit_insn): Likewise for return type.
10060 (record_delay_slot_pair): Likewise for params 1 and 2.
10061 (add_delay_dependencies): Likewise for param.
10062 (contributes_to_priority): Likewise for both params.
10063 (find_modifiable_mems): Likewise.
10065 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
10066 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
10067 "first_older_only_insn" from rtx to rtx_insn *.
10068 (arm_sched_reorder): Strengthen param "ready" from rtx * to
10071 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
10072 "last_scheduled_iter0" from rtx to rtx_insn *.
10073 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
10074 (c6x_sched_reorder_1): Strengthen param "ready" and locals
10075 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10076 "insn" from rtx to rtx_insn *.
10077 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
10079 (c6x_sched_reorder2): Strengthen param "ready" and locals
10080 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10081 "insn" from rtx to rtx_insn *.
10082 (c6x_variable_issue): Add a checked cast when assigning from insn
10083 to ss.last_scheduled_iter0.
10084 (split_delayed_branch): Strengthen param "insn" and local "i1"
10085 from rtx to rtx_insn *.
10086 (split_delayed_nonbranch): Likewise.
10087 (undo_split_delayed_nonbranch): Likewise for local "insn".
10088 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
10089 "entry_after", "end_packet", "head_insn", "tail_insn",
10090 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
10091 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
10092 to rtx_insn **. Remove now-redundant checked cast on last_insn,
10093 but add a checked cast on loop->start_label. Consolidate calls to
10094 avoid assigning result of gen_spkernel to "insn", now an
10097 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
10098 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
10100 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
10101 rtx_insn **. Strengthen locals "top", "next" from rtx to
10103 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
10104 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
10105 (add_parameter_dependencies): Strengthen params "call", "head" and
10106 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
10107 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
10108 (add_dependee_for_func_arg): Likewise for param "arg" and local
10110 (ix86_dependencies_evaluation_hook): Likewise for params "head",
10111 "tail" and locals "insn", "first_arg".
10113 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
10114 for params "head", "tail" and locals "insn", "next", "next_tail".
10115 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
10116 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
10117 "insn", "lowest", "highest" from rtx to rtx_insn *.
10118 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
10120 (ia64_sched_reorder2): Likewise.
10122 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
10123 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
10124 from rtx * to rtx_insn **.
10125 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
10127 (mep_print_sched_insn): Strengthen param "insn" from rtx to
10129 (mep_sched_reorder): Strengthen param "ready" from rtx * to
10130 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
10133 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
10134 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
10136 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
10137 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
10138 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
10140 (vr4130_reorder): Likewise.
10141 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
10143 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
10145 (mips_sched_reorder): Likewise.
10146 (mips_sched_reorder2): Likewise.
10148 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
10150 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
10151 Strengthen local "tmp" from rtx to rtx_insn *.
10152 (rs6000_sched_reorder2): Likewise.
10154 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
10155 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
10156 (s390_sched_reorder): Strengthen param "ready" from rtx * to
10157 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
10159 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
10160 "tmp2" from rtx to rtx_insn *.
10161 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
10162 Strengthen local "insn" from rtx to rtx_insn *.
10163 (ready_reorder): Strengthen param "ready" from rtx * to
10164 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
10165 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
10166 (sh_reorder2): Likewise.
10168 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
10169 local "insn" from rtx to rtx_insn *.
10171 * haifa-sched.c (note_list): Strengthen this variable from rtx to
10173 (scheduled_insns): Strengthen this variable from vec<rtx> to
10175 (set_modulo_params): Likewise for locals "i1", "i2".
10176 (record_delay_slot_pair): Likewise for params "i1", "i2".
10177 (add_delay_dependencies): Likewise for param "insn".
10178 (cond_clobbered_p): Likewise.
10179 (recompute_todo_spec): Likewise for local "prev".
10180 (last_scheduled_insn): Likewise for this variable.
10181 (nonscheduled_insns_begin): Likewise.
10182 (model_set_excess_costs): Strengthen param "insns" from rtx * to
10184 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
10186 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
10187 Strengthen local "insn" from rtx to rtx_insn *.
10188 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
10189 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10190 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
10191 (ready_remove_first): Likewise for return type and local "t".
10192 (ready_element): Likewise for return type.
10193 (ready_remove): Likewise for return type and local "t".
10194 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
10195 (check_clobbered_conditions): Strengthen local "x" from rtx to
10196 rtx_insn *, adding a checked cast.
10197 (schedule_insn): Likewise for param "insn".
10198 (remove_notes): Likewise for params "head", "tail" and locals
10199 "next_tail", "insn", "next".
10200 (struct haifa_saved_data): Likewise for fields
10201 "last_scheduled_insn", "nonscheduled_insns_begin".
10202 (save_backtrack_point): Update for change to field "vec" of
10204 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
10206 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
10207 from rtx to rtx_insn *
10208 (resolve_dependencies): Strengthen param "insn" from rtx to
10210 (restore_other_notes): Likewise for return type, for param "head"
10211 and local "note_head".
10212 (undo_all_replacements): Likewise for local "insn".
10213 (first_nonscheduled_insn): Likewise for return type and local "insn".
10214 (queue_to_ready): Likewise for local "insn", adding checked casts.
10215 (early_queue_to_ready): Likewise for local "insn".
10216 (debug_ready_list_1): Strengthen local "p" from rtx * to
10218 (move_insn): Strengthen param "insn" and local "note" from rtx to
10220 (insn_finishes_cycle_p): Likewise for param "insn".
10221 (max_issue): Likewise for local "insn".
10222 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
10224 (commit_schedule): Strengthen param "prev_head" and local "insn"
10225 from rtx to rtx_insn *
10226 (prune_ready_list): Likewise for local "insn".
10227 (schedule_block): Likewise for locals "prev_head", "head", "tail",
10228 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
10229 (set_priorities): Likewise for local "prev_head".
10230 (try_ready): Likewise for param "next".
10231 (fix_tick_ready): Likewise.
10232 (change_queue_index): Likewise.
10233 (sched_extend_ready_list): Update for change to field "vec" of
10235 (generate_recovery_code): Strengthen param "insn" from rtx to
10237 (begin_speculative_block): Likewise.
10238 (create_check_block_twin): Likewise for param "insn" and locals
10239 "label", "check", "twin". Introduce local "check_pat" to avoid
10240 "check" being used as a plain rtx before being used as an insn.
10241 (fix_recovery_deps): Add a checked cast to rtx_insn * when
10242 extracting elements from ready_list.
10243 (sched_remove_insn): Strengthen param "insn" from rtx to
10245 (sched_emit_insn): Likewise for return type.
10246 (ready_remove_first_dispatch): Likewise for return type and local
10249 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
10251 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
10254 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
10255 from rtx to rtx_insn *.
10256 (add_dependence_list): Likewise for param "insn". Add a checked
10258 (add_dependence_list_and_free): Strengthen param "insn" from rtx
10259 to rtx_insn *. Strengthen param "list_p" from rtx * to
10261 (chain_to_prev_insn): Strengthen param "insn" and locals
10262 "prec_nonnote", "i" from rtx to rtx_insn *.
10263 (flush_pending_lists): Likewise for param "insn".
10264 (cur_insn): Likewise for this variable.
10265 (haifa_start_insn): Add a checked cast.
10266 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
10267 (sched_analyze_reg): Likewise for param "insn".
10268 (sched_analyze_1): Likewise.
10269 (sched_analyze_2): Likewise. Add checked casts.
10270 (sched_analyze_insn): Likewise. Also for local "prev".
10271 (deps_analyze_insn): Likewise for param "insn".
10272 (sched_analyze): Likewise for params "head", "tail" and local "insn".
10273 (add_dependence_1): Likewise for params "insn", "elem".
10274 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
10275 (parse_add_or_inc): Likewise for param "insn".
10276 (find_inc): Likewise for local "inc_cand".
10277 (find_modifiable_mems): Likewise for params "head", "tail" and
10278 locals "insn", "next_tail".
10280 * sched-ebb.c (init_ready_list): Likewise for local "insn".
10281 (begin_schedule_ready): Likewise for param "insn".
10282 (begin_move_insn): Likewise for params "insn" and "last".
10283 (ebb_print_insn): Strengthen param "insn" from const_rtx to
10285 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
10286 (ebb_contributes_to_priority): Likewise for params "next", "insn".
10287 (ebb_add_remove_insn): Likewise for param "insn".
10288 (advance_target_bb): Likewise.
10290 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
10292 (check_live): Likewise for param "insn".
10293 (init_ready_list): Likewise for local "insn".
10294 (can_schedule_ready_p): Likewise for param "insn".
10295 (begin_schedule_ready): Likewise.
10296 (new_ready): Likewise for param "next".
10297 (rgn_print_insn): Likewise for param "insn".
10298 (rgn_rank): Likewise for params "insn1", "insn2".
10299 (contributes_to_priority): Likewise for params "next", "insn".
10300 (rgn_insn_finishes_block_p): Likewise for param "insn".
10301 (add_branch_dependences): Likewise for params "head", "tail" and
10302 locals "insn", "last".
10303 (rgn_add_remove_insn): Likewise for param "insn".
10304 (advance_target_bb): Likewise.
10306 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
10307 const_rtx to const rtx_insn *.
10309 * sel-sched-dump.h (sel_print_insn): Likewise.
10311 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
10312 (deps_init_id): Likewise.
10314 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10315 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10318 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10320 * output.h (final_start_function): Strengthen param 1 from rtx to
10323 * final.c (final_start_function): Likewise, renaming back from
10324 "uncast_first" to "first", and dropping the checked cast from rtx
10327 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10329 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10330 * final.c (final): Likewise. Rename param back from
10331 "uncast_first" to "first" and eliminate the checked cast from rtx
10334 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10336 * output.h (shorten_branches): Strengthen param from rtx to
10339 * final.c (shorten_branches): Likewise, renaming param back from
10340 "uncast_first" to "first", and dropping the checked cast from rtx
10343 * genattr.c (gen_attr): Likewise when writing out the prototype of
10346 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10348 * sched-int.h (struct haifa_sched_info): Strengthen fields
10349 "prev_head" and "next_tail" from rtx to rtx_insn *.
10351 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10353 * rtl.h (rtx_jump_table_data::get_labels): New method.
10354 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10355 with use of the new rtx_jump_table_data::get_labels method.
10356 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10357 to rtx_jump_table_data *. Simplify by using get_labels method.
10358 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10359 a dyn_cast, introducing local "table", using it to replace
10360 label-lookup logic with a get_labels method call.
10361 (patch_jump_insn): Simplify using get_labels method.
10362 * dwarf2cfi.c (create_trace_edges): Likewise.
10363 * rtlanal.c (label_is_jump_target_p): Likewise.
10365 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10367 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10370 * emit-rtl.c (unshare_all_rtl_1): Likewise.
10371 (unshare_all_rtl_again): Likewise, also for local "p".
10373 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10375 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10377 * cfgrtl.c (delete_insn_and_edges): Likewise.
10379 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10381 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10382 from rtx to rtx_insn *.
10384 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10386 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10388 * function.c (thread_prologue_and_epilogue_insns): Likewise for
10389 locals "returnjump", "epilogue_end", "insn", "next".
10391 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10392 "returnjump" from rtx * to rtx_insn **.
10393 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10395 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10397 * basic-block.h (struct edge_def). Strengthen "r" within
10398 union edge_def_insns from rtx to rtx_insn *.
10400 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10401 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
10403 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10404 from rtx to rtx_insn *.
10405 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10407 * postreload-gcse.c (reg_killed_on_edge): Likewise.
10408 (reg_used_on_edge): Likewise.
10409 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
10410 (gt_pch_nx): New overload for rtx_insn *&.
10411 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
10412 from rtx to rtx_insn *.
10414 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10416 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
10417 from rtx to rtx_insn *.
10418 (BB_FOOTER): Replace function with access macro.
10419 (SET_BB_FOOTER): Delete.
10421 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
10423 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10424 (emit_barrier_after_bb): Likewise.
10425 (record_effective_endpoints): Likewise.
10426 (relink_block_chain): Likewise.
10427 (fixup_fallthru_exit_predecessor): Likewise.
10428 (cfg_layout_duplicate_bb): Likewise.
10429 (cfg_layout_split_block): Likewise.
10430 (cfg_layout_delete_block): Likewise.
10431 (cfg_layout_merge_blocks): Likewise.
10432 (BB_FOOTER): Delete function.
10433 (SET_BB_FOOTER): Delete function.
10434 * combine.c (update_cfg_for_uncondjump): Replace uses of
10435 SET_BB_FOOTER with BB_FOOTER.
10437 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10439 * except.h (struct eh_landing_pad_d): Strengthen field
10440 "landing_pad" from rtx to rtx_code_label *.
10442 * except.c (sjlj_emit_dispatch_table): Likewise for param
10444 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10446 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10448 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10449 first param from rtx to rtx_insn *.
10450 * config/xtensa/xtensa.c (struct machine_function): Likewise for
10451 field "set_frame_ptr_insn".
10452 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10453 "csend" from rtx to rtx_code_label *.
10454 (xtensa_expand_atomic): Likewise for local "csloop".
10455 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
10457 (xtensa_call_tls_desc): Likewise for return type and locals
10458 "call_insn", "insns".
10459 (xtensa_legitimize_tls_address): Likewise for local "insns".
10460 (xtensa_expand_prologue): Likewise for locals "insn", "first".
10462 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10464 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
10465 first param from rtx to rtx_insn *.
10466 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
10469 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10471 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
10472 Strengthen param 1 from rtx to rtx_insn *.
10473 (tilepro_output_cbranch): Likewise.
10474 (tilepro_adjust_insn_length): Likewise.
10475 (tilepro_final_prescan_insn): Likewise for sole param.
10477 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
10478 Likewise for local "last".
10479 (cbranch_predicted_p): Likewise for param "insn".
10480 (tilepro_output_simple_cbranch_with_opcode): Likewise.
10481 (tilepro_output_cbranch_with_opcode): Likewise.
10482 (tilepro_output_cbranch): Likewise.
10483 (frame_emit_load): Likewise for return type and locals "seq",
10485 (emit_sp_adjust): Likewise for return type and local "insn".
10486 (tilepro_expand_epilogue): Likewise for locals "last_insn",
10488 (tilepro_adjust_insn_length): Likewise for param "insn".
10489 (next_insn_to_bundle): Likewise for return type and params
10491 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
10492 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
10494 (match_addli_pcrel): Likewise for param "insn".
10495 (replace_addli_pcrel): Likewise.
10496 (match_auli_pcrel): Likewise.
10497 (replace_auli_pcrel): Likewise.
10498 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
10500 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10501 "queue", "next_queue", "prev".
10502 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
10503 (tilepro_final_prescan_insn): Likewise for param "insn".
10505 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10507 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
10508 Strengthen param 1 from rtx to rtx_insn *.
10509 (tilegx_output_cbranch): Likewise.
10510 (tilegx_adjust_insn_length): Likewise.
10511 (tilegx_final_prescan_insn): Likewise for sole param.
10513 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
10515 (cbranch_predicted_p): Likewise for param "insn".
10516 (tilegx_output_simple_cbranch_with_opcode): Likewise.
10517 (tilegx_output_cbranch_with_opcode): Likewise.
10518 (tilegx_output_cbranch): Likewise.
10519 (frame_emit_load): Likewise for return type.
10520 (set_frame_related_p): Likewise for locals "seq", "insn".
10521 (emit_sp_adjust): Likewise for return type, and for local "insn".
10522 Introduce local "pat" for use in place of "insn" where the latter
10523 isn't an instruction.
10524 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
10525 from rtx to rtx_insn *.
10526 (tilegx_adjust_insn_length): Likewise for param "insn".
10527 (next_insn_to_bundle): Likewise for return type and params "r" and
10529 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
10531 (replace_insns): Likewise for params "old_insn", "new_insns".
10532 (replace_mov_pcrel_step1): Likewise for param "insn" and local
10534 (replace_mov_pcrel_step2): Likewise.
10535 (replace_mov_pcrel_step3): Likewise.
10536 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
10538 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10539 "queue", "next_queue", "prev".
10540 (tilegx_output_mi_thunk): Likewise for local "insn".
10541 (tilegx_final_prescan_insn): Likewise for param "insn".
10543 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10545 * config/spu/spu.c (frame_emit_store): Strengthen return type from
10547 (frame_emit_load): Likewise.
10548 (frame_emit_add_imm): Likewise, also for local "insn".
10549 (spu_expand_prologue): Likewise for local "insn".
10550 (struct spu_bb_info): Likewise for field "prop_jump".
10551 (emit_nop_for_insn): Likewise for param "insn" and local
10553 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
10555 (spu_emit_branch_hint): Likewise for params "before", "branch" and
10556 locals "hint", "insn".
10557 (get_branch_target): Likewise for param "branch".
10558 (insn_clobbers_hbr): Likewise for param "insn".
10559 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
10560 locals "insn", "before_4", "before_16".
10561 (insert_hbrp): Likewise for local "insn".
10562 (spu_machine_dependent_reorg): Likewise for locals "branch",
10563 "insn", "next", "bbend".
10564 (uses_ls_unit): Likewise for param "insn".
10565 (get_pipe): Likewise.
10566 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
10567 introducing a checked cast.
10568 (spu_sched_adjust_cost): Likewise for params "insn" and
10570 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
10571 (spu_sms_res_mii): Likewise.
10573 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10575 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
10576 from rtx to rtx_insn *.
10577 (output_cbranch): Likewise for param 6.
10578 (output_return): Likewise for param 1.
10579 (output_sibcall): Likewise.
10580 (output_v8plus_shift): Likewise.
10581 (output_v8plus_mult): Likewise.
10582 (output_v9branch): Likewise for param 7.
10583 (output_cbcond): Likewise for param 3.
10585 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
10587 (sparc_legitimize_pic_address): Likewise.
10588 (sparc_emit_call_insn): Likewise.
10589 (emit_save_or_restore_regs): Likewise.
10590 (emit_window_save): Likewise for return type and local "insn".
10591 (sparc_expand_prologue): Likewise for local "insn".
10592 (sparc_flat_expand_prologue): Likewise.
10593 (output_return): Likewise for param "insn".
10594 (output_sibcall): Likewise for param "insn" and local "delay".
10595 (output_ubranch): Likewise for param "insn".
10596 (output_cbranch): Likewise.
10597 (output_cbcond): Likewise.
10598 (output_v9branch): Likewise.
10599 (output_v8plus_shift): Likewise.
10600 (sparc_output_mi_thunk): Likewise for local "insn".
10601 (get_some_local_dynamic_name): Likewise.
10602 (output_v8plus_mult): Likewise for param "insn".
10604 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10606 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
10607 from rtx to rtx_insn *.
10608 (output_branchy_insn): Likewise for param 3.
10609 (output_far_jump): Likewise for param 1.
10610 (final_prescan_insn): Likewise.
10611 (sh_insn_length_adjustment): Likewise for sole param.
10613 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
10614 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
10616 (sh_emit_compare_and_set): Likewise for local "lab".
10617 (output_far_jump): Strengthen param "insn" and local "prev" from
10619 (output_branchy_insn): Likewise for param "insn" and local
10621 (output_ieee_ccmpeq): Likewise for param "insn".
10622 (struct label_ref_list_d): Strengthen field "label" from rtx to
10624 (pool_node): Likewise.
10625 (pool_window_label): Likewise for this global.
10626 (add_constant): Likewise for return type and locals "lab", "new_rtx".
10627 (dump_table): Strengthen params "start", "barrier" and local
10628 "scan" from rtx to rtx_insn *.
10629 (broken_move): Likewise for param "insn".
10630 (untangle_mova): Likewise for params "first_mova" and "new_mova".
10631 Strengthen param "first_mova" from rtx * to rtx_insn **.
10632 (mova_p): Likewise for param "insn".
10633 (fixup_mova): Likewise for param "mova".
10634 (find_barrier): Likewise for return type, params "mova" and
10635 "from", and locals "barrier_before_mova", "found_barrier",
10636 "good_barrier", "orig", "last_symoff", "next". Strengthen local
10637 "label" from rtx to rtx_code_label *.
10638 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
10640 (sh_reorg): Likewise for locals "link", "scan", "barrier".
10641 (split_branches): Likewise for param "first" and local "insn".
10642 (final_prescan_insn): Likewise for param "insn".
10643 (sequence_insn_p): Likewise for locals "prev", "next".
10644 (sh_insn_length_adjustment): Likewise for param "insn".
10645 (sh_can_redirect_branch): Likewise for local "insn".
10646 (find_r0_life_regions): Likewise for locals "end", "insn".
10647 (sh_output_mi_thunk): Likewise for local "insns".
10649 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10651 * config/score/score.c (score_output_mi_thunk): Strengthen local
10652 "insn" from rtx to rtx_insn *.
10653 (score_prologue): Likewise.
10655 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10657 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
10658 1 from rtx to rtx_insn *.
10659 (s390_emit_jump): Likewise for return type.
10660 (s390_emit_call): Likewise.
10661 (s390_load_got): Likewise.
10663 * config/s390/s390.c (last_scheduled_insn): Likewise for this
10665 (s390_match_ccmode): Likewise for param "insn".
10666 (s390_emit_jump): Likewise for return type.
10667 (s390_split_branches): Likewise for local "label".
10668 (struct constant): Strengthen field "label" from rtx to
10670 (struct constant_pool): Likewise for field "label". Strengthen
10671 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
10673 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
10675 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
10676 (s390_end_pool): Likewise.
10677 (s390_dump_pool): Likewise for local "insn".
10678 (s390_mainpool_start): Likewise.
10679 (s390_chunkify_start): Likewise.
10680 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
10681 with insns. Strengthen locals "label", "jump", "barrier", "next",
10682 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
10683 (s390_chunkify_finish): Strengthen local "insn" from rtx to
10685 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
10686 "jump", "label", "next_insn".
10687 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
10688 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
10690 (s390_load_got): Likewise for return type and local "insns".
10691 (s390_save_gprs_to_fprs): Likewise for local "insn".
10692 (s390_restore_gprs_from_fprs): Likewise.
10693 (pass_s390_early_mach::execute): Likewise.
10694 (s390_emit_prologue): Likewise for local "insns".
10695 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
10697 (s390_emit_call): Strengthen return type and local "insn" from
10699 (s390_emit_tpf_eh_return): Likewise for local "insn".
10700 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
10701 "next_insn", introducing locals "s_pat", "rpat" to allow this.
10702 (s390_fix_long_loop_prediction): Likewise for param "insn" and
10704 (s390_non_addr_reg_read_p): Likewise for param "insn".
10705 (find_cond_jump): Likewise for return type and param "insn".
10706 (s390_swap_cmp): Likewise for param "insn".
10707 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
10708 "prev_insn", "next_insn".
10709 (s390_reorg): Likewise for locals "insn", "target".
10710 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
10711 (s390_sched_variable_issue): For now, rename param "insn" to
10712 "uncast_insn", introducing a checked cast.
10713 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
10715 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
10716 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
10718 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10720 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
10721 param from rtx to rtx_insn *.
10722 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
10724 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10726 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
10727 4 from rtx to rtx_insn *.
10728 (rs6000_final_prescan_insn): Likewise for first param.
10729 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
10731 (rs6000_get_some_local_dynamic_name): Likewise.
10732 (output_cbranch): Likewise for param "insn".
10733 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
10734 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
10735 (rs6000_emit_allocate_stack): Likewise for local "insn".
10736 (load_cr_save): Likewise.
10737 (restore_saved_cr): Likewise.
10738 (restore_saved_lr): Likewise.
10739 (emit_cfa_restores): Likewise.
10740 (rs6000_output_function_epilogue): Likewise for locals "insn" and
10741 "deleted_debug_label".
10742 (rs6000_output_mi_thunk): Likewise for local "insn".
10743 (rs6000_final_prescan_insn): Likewise for param "insn".
10745 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10747 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
10748 Strengthen param "insn" from rtx to rtx_insn *.
10749 * config/picochip/picochip.c (picochip_current_prescan_insn):
10750 Likewise for this variable.
10751 (picochip_final_prescan_insn): Likewise for param "insn".
10753 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10755 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
10756 from rtx to rtx_insn *.
10757 (pa_output_indirect_call): Likewise.
10758 (pa_adjust_insn_length): Likewise.
10759 (pa_attr_length_millicode_call): Likewise.
10760 (pa_attr_length_call): Likewise.
10761 (pa_attr_length_indirect_call): Likewise.
10763 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
10765 (pa_attr_length_millicode_call): Likewise.
10766 (pa_attr_length_call): Likewise.
10767 (pa_output_call): Likewise.
10768 (pa_attr_length_indirect_call): Likewise.
10769 (pa_output_indirect_call): Likewise.
10771 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10773 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
10774 Strengthen first param from rtx to rtx_insn *.
10775 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
10778 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10780 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
10781 type from rtx to rtx_insn *.
10782 (mips_expand_call): Likewise.
10783 (mips_adjust_insn_length): Likewise for first param.
10784 (mips_output_conditional_branch): Likewise.
10785 (mips_output_order_conditional_branch): Likewise.
10786 (mips_final_prescan_insn): Likewise.
10788 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
10789 rtx_insn * for the SEQUENCE case.
10790 (SEQ_END): Likewise.
10791 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
10792 (mips_emit_call_insn): Likewise, also for local "insn".
10793 (mips16_gp_pseudo_reg): Likewise for local "scan".
10794 (mips16_build_call_stub): Likewise for return type and for local
10795 "insn". Introduce a new local "pattern" so that "insn" can indeed
10797 (mips_expand_call): Strengthen return type and local "insn" from
10799 (mips_block_move_loop): Strengthen local "label" from rtx to
10801 (mips_expand_synci_loop): Likewise for locals "label",
10803 (mips_set_frame_expr): Strengthen local "insn" from rtx to
10805 (mips16e_collect_argument_saves): Likewise for locals "insn",
10807 (mips_find_gp_ref): Likewise for param of callback for "pred"
10808 param, and for local "insn".
10809 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
10810 (mips_insn_has_flexible_gp_ref_p): Likewise.
10811 (mips_epilogue_emit_cfa_restores): Likewise for return type and
10813 (mips_epilogue_set_cfa): Likewise for local "insn".
10814 (mips_expand_epilogue): Likewise.
10815 (mips_adjust_insn_length): Likewise for param "insn".
10816 (mips_output_conditional_branch): Likewise.
10817 (mips_output_order_conditional_branch): Likewise.
10818 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
10819 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
10820 "falu2_turn_enabled_insn".
10821 (mips_builtin_branch_and_move): Strengthen locals "true_label",
10822 "done_label" from rtx to rtx_code_label *.
10823 (struct mips16_constant): Likewise for field "label".
10824 (mips16_add_constant): Likewise for return type.
10825 (mips16_emit_constants_1): Strengthen return type and param "insn"
10826 from rtx to rtx_insn *.
10827 (mips16_emit_constants): Likewise for param "insn".
10828 (mips16_insn_length): Likewise.
10829 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
10830 to rtx_code_label *.
10831 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
10832 from rtx to rtx_insn *.
10833 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
10834 "jump". Strengthen local "label" from rtx to rtx_code_label *.
10835 (r10k_simplify_address): Strengthen param "insn" and local
10836 "def_insn" from rtx to rtx_insn *.
10837 (r10k_safe_address_p): Strengthen param "insn" from rtx to
10839 (r10k_needs_protection_p_1): Update target type of cast of data
10840 from to rtx to rtx_insn *.
10841 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
10842 rtx * to rtx_insn **.
10843 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
10845 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
10846 (mips_call_expr_from_insn): Likewise for param "insn".
10847 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
10848 (mips_find_pic_call_symbol): Likewise for param "insn".
10849 (mips_annotate_pic_calls): Likewise for local "insn".
10850 (mips_sim_insn): Likewise for this variable.
10851 (struct mips_sim): Likewise for field "insn" within elements of
10853 (mips_sim_wait_reg): Likewise for param "insn".
10854 (mips_sim_wait_regs): Likewise.
10855 (mips_sim_wait_units): Likewise.
10856 (mips_sim_wait_insn): Likewise.
10857 (mips_sim_issue_insn): Likewise.
10858 (mips_sim_finish_insn): Likewise.
10859 (mips_seq_time): Likewise for param "seq" and local "insn".
10860 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
10861 locals "first", "second".
10862 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
10863 "last", "last2", "next".
10864 (mips_avoid_hazard): Likewise for params "after", "insn".
10865 (mips_reorg_process_insns): Likewise for locals "insn",
10866 "last_insn", "subinsn", "next_insn".
10867 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
10868 (mips16_split_long_branches): Likewise for locals "insn" "jump",
10870 (mips_output_mi_thunk): Likewise for local "insn".
10871 (mips_final_prescan_insn): Likewise for param "insn".
10873 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10875 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
10876 Strengthen return type and local "insns" from rtx to rtx_insn *.
10877 (microblaze_legitimize_tls_address): Likewise for local "insns".
10878 (microblaze_block_move_loop): Strengthen local "label" from rtx
10879 to rtx_code_label *.
10880 (microblaze_expand_prologue): Strengthen two locals named "insn"
10881 from rtx to rtx_insn *.
10882 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
10883 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
10884 "insn". Strengthen locals "div_label", "div_end_label" from rtx
10885 to rtx_code_label *.
10887 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10889 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
10890 param from rtx to rtx_insn *.
10891 (mep_reuse_lo): Likewise for third param.
10892 (mep_use_post_modify_p): Likewise for first param.
10893 (mep_core_address_length): Likewise.
10894 (mep_cop_address_length): Likewise.
10895 (mep_final_prescan_insn): Likewise.
10896 (mep_store_data_bypass_p): Likewise for both params.
10897 (mep_mul_hilo_bypass_p): Likewise.
10898 (mep_ipipe_ldc_p): Likewise for param.
10900 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
10901 (mep_rewrite_mult): Likewise.
10902 (mep_rewrite_mulsi3): Likewise.
10903 (mep_rewrite_maddsi3): Likewise.
10904 (mep_reuse_lo_p_1): Likewise.
10905 (mep_reuse_lo_p): Likewise.
10906 (mep_frame_expr): Likewise.
10907 (mep_make_parallel): Likewise for both params.
10908 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
10910 (mep_use_post_modify_p): Likewise for param "insn".
10911 (mep_core_address_length): Likewise.
10912 (mep_cop_address_length): Likewise.
10913 (mep_reg_set_in_function): Likewise for local "insn".
10914 (mep_asm_without_operands_p): Likewise.
10915 (F): Likewise for return type and param "x".
10916 (add_constant): Likewise for local "insn".
10917 (maybe_dead_move): Likewise for return type and local "insn".
10918 (mep_expand_prologue): Likewise for local "insn".
10919 (mep_final_prescan_insn): Likewise for param "insn".
10920 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
10921 "next", "follow", "x".
10922 (mep_insert_repeat_label_last): Likewise for return type, param
10923 "last_insn", and locals "next", "prev". Strengthen param "label"
10924 from rtx to rtx_code_label *.
10925 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
10927 (struct mep_doloop_end): Likewise for fields "insn" and
10929 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
10930 Strengthen local "repeat_label" from rtx to rtx_code_label *.
10931 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
10933 (mep_invert_branch): Likewise for params "insn" and "after".
10934 (mep_reorg_erepeat): Likewise for param "insns" and locals
10935 "insn", "prev", "new_last", "barrier", "user". Strengthen local
10936 "l" from rtx to rtx_code_label *.
10937 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
10938 from rtx to rtx_insn *.
10939 (mep_reorg_addcombine): Likewise for param "insns" and locals
10941 (add_sp_insn_p): Likewise for param "insn".
10942 (mep_reorg_noframe): Likewise for param "insns" and locals
10943 "start_frame_insn", "end_frame_insn", "next".
10944 (mep_reorg): Likewise for local "insns".
10945 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
10947 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
10948 (mep_mul_hilo_bypass_p): Likewise.
10949 (mep_ipipe_ldc_p): Likewise for param "insn".
10950 (mep_make_bundle): Likewise for return type, param "cop" and local
10951 "insn", splitting out the latter into a new local "seq" for when it
10952 is a SEQUENCE rather than an insn.
10953 (core_insn_p): Likewise for param "insn".
10954 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
10955 "last", "first", "note", "prev", "core_insn".
10957 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10959 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
10961 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
10962 (m68k_final_prescan_insn): Likewise for first param.
10964 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
10965 (m68k_set_frame_related): Likewise for param "insn".
10966 (output_btst): Likewise for param "insn".
10967 (m68k_final_prescan_insn): Likewise.
10968 (m68k_move_to_reg): Likewise for local "insn".
10969 (m68k_call_tls_get_addr): Likewise for local "insns".
10970 (m68k_call_m68k_read_tp): Likewise.
10971 (strict_low_part_peephole_ok): Likewise for param "first_insn".
10972 (m68k_output_mi_thunk): Likewise for local "insn".
10974 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10976 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
10977 first param from rtx to rtx_insn *.
10978 (iq2000_adjust_insn_length): Likewise.
10979 (iq2000_output_conditional_branch): Likewise.
10980 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
10981 "insn" and local "nop_insn".
10982 (iq2000_annotate_frame_insn): Likewise for param "insn".
10983 (iq2000_expand_prologue): Likewise for both locals "insn".
10984 (iq2000_adjust_insn_length): Likewise for param "insn".
10985 (iq2000_output_conditional_branch): Likewise.
10987 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10989 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
10990 "insns" from rtx to rtx_insn *.
10991 (ia64_emit_cond_move): Likewise for locals "insn", "first".
10992 (struct spill_fill_data): Likewise for field "init_after" and for
10993 elements of array field "prev_insn".
10994 (spill_restore_mem): Likewise for locals "insn", "first".
10995 (do_spill): Likewise for local "insn".
10996 (do_restore): Likewise.
10997 (ia64_expand_prologue): Likewise.
10998 (ia64_expand_epilogue): Likewise.
10999 (emit_insn_group_barriers): Likewise for locals "insn",
11001 (emit_all_insn_group_barriers): Likewise for locals "insn",
11003 (dfa_stop_insn): Likewise for this global.
11004 (dfa_pre_cycle_insn): Likewise.
11005 (ia64_nop): Likewise.
11006 (final_emit_insn_group_barriers): Likewise for locals "insn",
11008 (emit_predicate_relation_info): Likewise for locals "head", "n",
11010 (ia64_reorg): Likewise for local "insn".
11011 (ia64_output_mi_thunk): Likewise.
11012 (expand_vec_perm_interleave_2): Likewise for local "seq".
11014 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11016 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11017 param 1 "insn" from rtx to rtx_insn *.
11018 (ix86_use_lea_for_mov): Likewise.
11019 (ix86_avoid_lea_for_addr): Likewise.
11020 (ix86_split_lea_for_addr): Likewise.
11021 (ix86_lea_for_add_ok): Likewise.
11022 (ix86_output_call_insn): Likewise.
11024 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11025 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11026 (ix86_output_function_epilogue): Likewise for locals "insn",
11027 "deleted_debug_label".
11028 (legitimize_tls_address): Likewise for local "insn".
11029 (get_some_local_dynamic_name): Likewise.
11030 (increase_distance): Likewise for params "prev", "next".
11031 (distance_non_agu_define_in_bb): Likewise for params "insn",
11032 "start" and locals "prev", "next".
11033 (distance_non_agu_define): Likewise for param "insn".
11034 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11035 locals "next", "prev".
11036 (distance_agu_use): Likewise for param "insn".
11037 (ix86_lea_outperforms): Likewise.
11038 (ix86_ok_to_clobber_flags): Likewise.
11039 (ix86_avoid_lea_for_add): Likewise.
11040 (ix86_use_lea_for_mov): Likewise.
11041 (ix86_avoid_lea_for_addr): Likewise.
11042 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11043 (ix86_split_lea_for_addr): Likewise for param "insn".
11044 (ix86_lea_for_add_ok): Likewise for param "insn".
11045 (ix86_expand_carry_flag_compare): Likewise for local
11047 (ix86_expand_int_movcc): Likewise.
11048 (ix86_output_call_insn): Likewise for param "insn".
11049 (ix86_output_call_insn): Likewise for local "i".
11050 (x86_output_mi_thunk): Introduce local "insn", using it in place
11051 of "tmp" when dealing with insns.
11052 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11054 (ix86_pad_returns): Likewise for locals "ret", "prev".
11055 (ix86_count_insn_bb): Likewise for local "insn".
11056 (ix86_pad_short_function): Likewise for locals "ret", "insn".
11057 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11058 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11059 (expand_vec_perm_interleave2): Likewise for local "seq".
11060 (expand_vec_perm_vperm2f128_vblend): Likewise.
11061 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
11062 call to for_each_rtx with for_each_rtx_in_insn.
11064 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11066 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
11067 "label" from rtx to rtx_code_label *.
11068 (ix86_expand_prologue): Likewise.
11069 (ix86_expand_split_stack_prologue): Likewise for locals "label",
11071 (ix86_split_idivmod): Likewise for locals "end_label" and
11073 (ix86_expand_branch): Likewise for local "label2".
11074 (ix86_expand_aligntest): Likewise for return type and local "label".
11075 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
11077 (expand_movmem_epilogue): Likewise for the various locals named
11079 (expand_setmem_epilogue): Likewise.
11080 (expand_small_movmem_or_setmem): Likewise for local "label".
11081 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11082 Strengthen param "done_label" from rtx * to rtx_code_label **.
11083 Strengthen locals "loop_label" and "label" from rtx to
11085 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11086 Likewise for locals "loop_label", "label".
11087 (ix86_expand_set_or_movmem): Likewise for locals "label",
11088 "jump_around_label", "hot_label".
11089 (ix86_expand_strlensi_unroll_1): Likewise for locals
11090 "align_2_label", align_3_label", "align_4_label", "end_0_label",
11092 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
11093 (void ix86_emit_i387_log1p): Likewise for locals "label1",
11094 "label2", "jump_label".
11095 (ix86_expand_sse_compare_and_jump): Likewise for return type and
11097 (ix86_expand_lfloorceil): Likewise for local "label".
11098 (ix86_expand_rint): Likewise.
11099 (ix86_expand_floorceildf_32): Likewise.
11100 (ix86_expand_floorceil): Likewise.
11101 (ix86_expand_rounddf_32): Likewise.
11102 (ix86_expand_trunc): Likewise.
11103 (ix86_expand_truncdf_32): Likewise.
11104 (ix86_expand_round): Likewise.
11106 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11108 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
11109 first param from rtx to rtx_insn *.
11110 (h8300_insn_length_from_table): Likewise.
11111 * config/h8300/h8300.c (F): Likewise for return type and param
11113 (Fpa): Add a checked cast to rtx_insn *.
11114 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
11116 (final_prescan_insn): Likewise for param "insn".
11117 (h8300_binary_length): Likewise.
11118 (h8300_insn_length_from_table): Likewise.
11120 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11122 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
11123 Strengthen first param "insn" from rtx to rtx_insn *.
11125 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
11127 (frame_insn): Likewise for return type. Introduce local "insn"
11128 for use in place of local "x" for use as an rtx_insn *.
11129 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
11130 (epiphany_expand_prologue): Likewise for local "insn".
11131 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
11132 * config/epiphany/resolve-sw-modes.c
11133 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
11136 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11138 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
11139 param from rtx to rtx_insn *.
11140 (c6x_final_prescan_insn): Likewise for first param.
11142 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
11143 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
11144 (c6x_expand_compare): Strengthen local "insns" from rtx to
11146 (c6x_get_unit_specifier): Likewise for param "insn".
11147 (c6x_print_unit_specifier_field): Likewise.
11148 (c6x_final_prescan_insn): Likewise.
11149 (emit_add_sp_const): Likewise for local "insn".
11150 (c6x_expand_prologue): Likewise.
11152 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11154 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
11155 param 1 from rtx to rtx_insn *.
11156 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
11157 the various locals named "insn".
11158 (expand_epilogue_reg_restore): Likewise.
11159 (frame_related_constant_load): Likewise.
11160 (add_to_reg): Likewise.
11161 (emit_link_insn): Likewise.
11162 (do_link): Likewise.
11163 (expand_interrupt_handler_prologue): Likewise.
11164 (branch_dest): Likewise for param "branch".
11165 (asm_conditional_branch): Likewise for param "insn".
11166 (gen_one_bundle): Likewise for elements of param "slot" and local
11168 (bfin_gen_bundles): Likewise for locals "insn", "next" and
11169 elements of local "slot".
11170 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11171 "queue", "next_queue", "prev".
11172 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
11173 (add_sched_insns_for_speculation): Likewise for local "insn".
11175 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11177 * config/avr/avr-protos.h (output_movqi): Strengthen first param
11178 from rtx to rtx_insn *.
11179 (output_movhi): Likewise.
11180 (output_movsisf): Likewise.
11181 (avr_out_tstsi): Likewise.
11182 (avr_out_tsthi): Likewise.
11183 (avr_out_tstpsi): Likewise.
11184 (avr_out_compare): Likewise.
11185 (avr_out_compare64): Likewise.
11186 (avr_out_movpsi): Likewise.
11187 (ashlqi3_out): Likewise.
11188 (ashlhi3_out): Likewise.
11189 (ashlsi3_out): Likewise.
11190 (ashrqi3_out): Likewise.
11191 (ashrhi3_out): Likewise.
11192 (ashrsi3_out): Likewise.
11193 (lshrqi3_out): Likewise.
11194 (lshrhi3_out): Likewise.
11195 (lshrsi3_out): Likewise.
11196 (avr_out_ashlpsi3): Likewise.
11197 (avr_out_ashrpsi3): Likewise.
11198 (avr_out_lshrpsi3): Likewise.
11199 (avr_out_fract): Likewise.
11200 (avr_out_sbxx_branch): Likewise.
11201 (avr_out_round): Likewise.
11202 (avr_out_xload): Likewise.
11203 (avr_out_movmem): Likewise.
11204 (adjust_insn_length): Likewise.
11205 (avr_out_lpm): Likewise.
11206 (reg_unused_after): Likewise.
11207 (_reg_unused_after): Likewise.
11208 (avr_jump_mode): Likewise for second param.
11209 (jump_over_one_insn): Likewise for first param.
11210 (avr_final_prescan_insn): Likewise.
11211 (out_shift_with_cnt): Likewise for second param.
11213 * config/avr/avr.c (get_sequence_length): Likewise for param
11214 "insns" and local "insn".
11215 (emit_push_byte): Likewise for local "insn".
11216 (emit_push_sfr): Likewise.
11217 (avr_prologue_setup_frame): Likewise for locals "insn",
11218 "fp_plus_insns", "sp_plus_insns".
11219 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
11221 (avr_jump_mode): Likewise for param "insn".
11222 (avr_final_prescan_insn): Likewise.
11223 (avr_find_unused_d_reg): Likewise.
11224 (avr_out_lpm_no_lpmx): Likewise.
11225 (avr_out_lpm): Likewise.
11226 (avr_out_xload): Likewise.
11227 (output_movqi): Likewise.
11228 (output_movhi): Likewise.
11229 (out_movqi_r_mr): Likewise.
11230 (out_movhi_r_mr): Likewise.
11231 (out_movsi_r_mr): Likewise.
11232 (out_movsi_mr_r): Likewise.
11233 (output_movsisf): Likewise.
11234 (avr_out_load_psi): Likewise.
11235 (avr_out_store_psi): Likewise.
11236 (avr_out_movpsi): Likewise.
11237 (out_movqi_mr_r): Likewise.
11238 (avr_out_movhi_mr_r_xmega): Likewise.
11239 (out_movhi_mr_r): Likewise.
11240 (compare_condition): Likewise for param "insn" and local "next".
11241 (compare_sign_p): Likewise for param "insn".
11242 (compare_diff_p): Likewise.
11243 (compare_eq_p): Likewise.
11244 (avr_out_compare): Likewise.
11245 (avr_out_compare64): Likewise.
11246 (avr_out_tsthi): Likewise.
11247 (avr_out_tstpsi): Likewise.
11248 (avr_out_tstsi): Likewise.
11249 (out_shift_with_cnt): Likewise.
11250 (ashlqi3_out): Likewise.
11251 (ashlhi3_out): Likewise.
11252 (avr_out_ashlpsi3): Likewise.
11253 (ashlsi3_out): Likewise.
11254 (ashrqi3_out): Likewise.
11255 (ashrhi3_out): Likewise.
11256 (avr_out_ashrpsi3): Likewise.
11257 (ashrsi3_out): Likewise.
11258 (lshrqi3_out): Likewise.
11259 (lshrhi3_out): Likewise.
11260 (avr_out_lshrpsi3): Likewise.
11261 (lshrsi3_out): Likewise.
11262 (avr_out_fract): Likewise.
11263 (avr_out_round): Likewise.
11264 (avr_adjust_insn_length): Likewise.
11265 (reg_unused_after): Likewise.
11266 (_reg_unused_after): Likewise.
11267 (avr_compare_pattern): Likewise.
11268 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
11269 and locals "branch1", "branch2", "insn2", "jump".
11270 (avr_reorg): Likewise for local "insn".
11271 (avr_2word_insn_p): Likewise for param "insn".
11272 (jump_over_one_insn_p): Likewise.
11273 (avr_out_sbxx_branch): Likewise.
11274 (avr_out_movmem): Likewise.
11276 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11278 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
11279 param from rtx to rtx_insn *.
11280 (thumb1_final_prescan_insn): Likewise.
11281 (thumb2_final_prescan_insn): Likewise.
11283 * config/arm/arm.c (emit_set_insn): Strengthen return type from
11285 (struct minipool_node): Likewise for field "insn".
11286 (dump_minipool): Likewise for param "scan".
11287 (create_fix_barrier): Likewise for local "from". Strengthen local
11288 "label" from rtx to rtx_code_label *.
11289 (push_minipool_barrier): Strengthen param "insn" from rtx to
11291 (push_minipool_fix): Likewise.
11292 (note_invalid_constants): Likewise.
11293 (thumb2_reorg): Likewise for local "insn".
11294 (arm_reorg): Likewise.
11295 (thumb2_final_prescan_insn): Likewise for param
11296 "insn" and local "first_insn".
11297 (arm_final_prescan_insn): Likewise for param "insn" and locals
11298 "start_insn", "this_insn".
11299 (arm_debugger_arg_offset): Likewise for param "insn".
11300 (thumb1_emit_multi_reg_push): Likewise for return type and local
11302 (thumb1_final_prescan_insn): Likewise for param "insn".
11303 (thumb_far_jump_used_p): Likewise for local "insn".
11304 (thumb1_expand_prologue): Likewise.
11305 (arm_expand_epilogue_apcs_frame): Likewise.
11306 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
11307 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
11308 from rtx to rtx_code_label *.
11309 (arm_split_atomic_op): Likewise for local "label".
11310 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
11312 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11314 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11315 first param from rtx to rtx_insn *.
11316 (arc_verify_short): Likewise.
11317 (arc_short_long): Likewise.
11318 (arc_need_delay): Likewise.
11320 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11322 (arc_ccfsm_advance): Likewise for param "insn" and locals
11323 "start_insn", "this_insn".
11324 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11325 (arc_ccfsm_post_advance): Likewise for param "insn".
11326 (arc_next_active_insn): Likewise for return type and param "insn".
11327 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
11328 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11329 (output_short_suffix): Likewise for local "insn".
11330 (arc_final_prescan_insn): Likewise for param "insn". Remove
11331 now-redundant checked cast.
11332 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11333 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11334 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
11335 for use where lc_set became an insn.
11336 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11338 (arc_get_insn_variants): Likewise for local "prev".
11339 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11341 (arc_predicate_delay_insns): Likewise for local "insn".
11342 (arc_pad_return): Likewise for local "prev". For now, add a
11343 checked cast when extracting the insn from "final_sequence".
11344 (arc_short_long): Likewise for param "insn".
11345 (arc_need_delay): Likewise for param "insn" and local "next".
11346 (arc_label_align): Likewise for locals "prev", "next".
11348 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11350 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11351 "insn" from rtx to rtx_insn *.
11352 (alpha_gp_save_rtx): Likewise for local "seq".
11353 (alpha_instantiate_decls): Likewise for local "top".
11354 (get_some_local_dynamic_name): Likewise for local "insn".
11355 (alpha_does_function_need_gp): Likewise.
11356 (set_frame_related_p): Likewise for return type and for locals
11358 (emit_frame_store_1): Likewise for local "insn".
11359 (alpha_expand_prologue): Likewise for locals "insn", "seq".
11360 (alpha_end_function): Likewise for local "insn".
11361 (alpha_output_mi_thunk_osf): Likewise.
11362 (alphaev4_insn_pipe): Likewise for param "insn".
11363 (alphaev5_insn_pipe): Likewise.
11364 (alphaev4_next_group): Likewise for return type and param 1
11366 (alphaev5_next_group): Likewise.
11367 (alpha_align_insns_1): Likewise for return type and param 1 of
11368 callback param "next_group", and for locals "i", "next", "prev",
11369 "where", "where2", "insn".
11371 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
11373 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11374 rather than modifying the stmt.
11376 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11378 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11379 cgraph_state conversion.
11381 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11383 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11384 Strengthen local "insns" from rtx to rtx_insn *.
11385 (aarch64_set_frame_expr): Likewise for local "insn".
11386 (aarch64_save_or_restore_fprs): Likewise.
11387 (aarch64_save_or_restore_callee_save_registers): Likewise.
11388 (aarch64_expand_prologue): Likewise.
11389 (aarch64_expand_epilogue): Likewise.
11390 (aarch64_output_mi_thunk): Likewise.
11391 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11392 "label2" from rtx to rtx_code_label *.
11393 (aarch64_split_atomic_op): Likewise for local "label".
11395 2014-08-25 Martin Liska <mliska@suse.cz>
11397 * cgraph.h (symtab_node):
11398 (bool needed_p (void)): created from decide_is_symbol_needed
11399 (bool referred_to_p (void)): created from referred_to_p
11400 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11401 * cgraph.h (cgraph_node):
11402 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11403 (void expand (void)): created from expand_function
11404 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11405 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11406 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11407 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11408 * cgraph.h (varpool_node):
11409 (static void add (tree decl): created from varpool_add_new_variable
11410 * cgraph.h (cgraph_edge):
11411 void remove (void);
11412 (void remove_caller (void)): created from cgraph_edge_remove_caller
11413 (void remove_callee (void)): created from cgraph_edge_remove_callee
11414 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
11415 created from cgraph_set_call_stmt
11416 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
11417 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
11418 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
11419 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
11420 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
11421 created from cgraph_speculative_call_info
11422 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
11423 int freq_scale, bool update_original)): created from cgraph_clone_edge
11424 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
11425 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
11426 (bool recursive_p (void)): created from cgraph_edge_recursive_p
11427 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11428 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11429 (static void rebuild_references (void)): created from cgraph_rebuild_references
11430 * cgraph.h (symbol_table):
11431 (create_reference): renamed from add_reference
11432 (maybe_create_reference): renamed from maybe_add_reference
11433 (void register_symbol (symtab_node *node)): new function
11434 (void clear_asm_symbols (void)): new function
11435 (void unregister (symtab_node *node)): new function
11436 (void release_symbol (cgraph_node *node, int uid)): new function
11437 (cgraph_node * allocate_cgraph_symbol (void)): new function
11438 (void initialize (void)): created from cgraph_init
11439 (symtab_node *first_symbol (void)):new function
11440 (asm_node *first_asm_symbol (void)):new function
11441 (symtab_node *first_defined_symbol (void)):new function
11442 (varpool_node *first_variable (void)):new function
11443 (varpool_node *next_variable (varpool_node *node)):new function
11444 (varpool_node *first_static_initializer (void)):new function
11445 (varpool_node *next_static_initializer (varpool_node *node)):new function
11446 (varpool_node *first_defined_variable (void)):new function
11447 (varpool_node *next_defined_variable (varpool_node *node)):new function
11448 (cgraph_node *first_defined_function (void)):new function
11449 (cgraph_node *next_defined_function (cgraph_node *node)):new function
11450 (cgraph_node *first_function (void)):new function
11451 (cgraph_node *next_function (cgraph_node *node)):new function
11452 (cgraph_node *first_function_with_gimple_body (void)):new function
11453 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11454 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11455 created from symtab_remove_unreachable_nodes
11456 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
11457 (void process_new_functions (void)): created from cgraph_process_new_functions
11458 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
11459 (bool output_variables (void)): created from varpool_node::output_variables
11460 (void output_asm_statements (void)): created from output_asm_statements
11461 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
11462 (void compile (void)): created from compile
11463 (void output_weakrefs (void)): created from output_weakrefs
11464 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
11465 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
11466 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
11467 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
11468 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
11469 created from cgraph_next_function_with_gimple_body
11470 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
11471 created from cgraph_remove_edge_removal_hook
11472 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
11473 created from cgraph_add_node_removal_hook
11474 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
11475 created from cgraph_remove_node_removal_hook
11476 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
11477 created from varpool_add_node_removal_hook
11478 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
11479 created from varpool_remove_node_removal_hook
11480 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
11481 created from cgraph_add_function_insertion_hook
11482 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
11483 created from cgraph_remove_function_insertion_hook
11484 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
11485 created from varpool_add_variable_insertion_hook
11486 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
11487 created from varpool_remove_variable_insertion_hook
11488 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
11489 created from cgraph_add_edge_duplication_hook
11490 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
11491 created from cgraph_remove_edge_duplication_hook
11492 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
11493 created from cgraph_add_node_duplication_hook
11494 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
11495 created from cgraph_remove_node_duplication_hook
11496 (void call_edge_removal_hooks (cgraph_edge *e)):
11497 created from cgraph_call_edge_removal_hooks
11498 (void call_cgraph_insertion_hooks (cgraph_node *node)):
11499 created from call_function_insertion_hooks
11500 (void call_cgraph_removal_hooks (cgraph_node *node)):
11501 created from cgraph_call_node_removal_hooks
11502 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
11503 created from cgraph_node::call_duplication_hooks
11504 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
11505 created from cgraph_call_edge_duplication_hooks
11506 (void call_varpool_removal_hooks (varpool_node *node)):
11507 created from varpool_call_node_removal_hooks
11508 (void call_varpool_insertion_hooks (varpool_node *node)):
11509 created from varpool_call_variable_insertion_hooks
11510 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
11511 created from insert_to_assembler_name_hash
11512 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
11513 created from unlink_from_assembler_name_hash
11514 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
11515 created from symtab_prevail_in_asm_name_hash
11516 (void symtab_initialize_asm_name_hash (void)):
11517 created from symtab_initialize_asm_name_hash
11518 (void change_decl_assembler_name (tree decl, tree name)):
11519 created from change_decl_assembler_name
11520 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
11521 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
11522 created from decl_assembler_name_hash
11523 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
11524 created from decl_assembler_name_equal
11525 (static hashval_t hash_node_by_assembler_name (const void *p)):
11526 created from hash_node_by_assembler_name
11527 (static int eq_assembler_name (const void *p1, const void *p2)):
11528 created from eq_assembler_name
11530 2014-08-25 Marek Polacek <polacek@redhat.com>
11532 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
11534 2014-08-25 Petr Murzin <petr.murzin@intel.com>
11536 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
11537 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
11538 SWI1248_AVX512BW mode iterator.
11540 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
11543 * config/sh/predicates.md (general_extend_operand): Disable
11544 TRUNCATE before reload completes.
11546 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
11548 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
11550 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
11553 * config/sh/sh.opt (musermode): Allow negative form.
11554 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
11555 targets that don't support it.
11556 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
11557 Document -mno-usermode option.
11559 2014-08-24 Kito Cheng <kito@0xlab.org>
11561 * system.h (CALLER_SAVE_PROFITABLE): Poison.
11562 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
11563 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
11564 * doc/tm.texi: Regenerate.
11566 2014-08-24 Kito Cheng <kito@0xlab.org>
11568 * ira.c: Fix typo in comment.
11570 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
11572 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
11573 Deprecate c++1y. Change language to reflect greater confidence in C++14.
11575 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
11578 * config/pa/pa.c (pa_output_function_epilogue): Don't set
11579 last_address when the current function is a thunk.
11580 (pa_asm_output_mi_thunk): When we don't have named sections or they
11581 are not being used, check that thunk can reach the stub table with a
11584 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11586 * web.c (union_match_dups): Strengthen param "insn" from rtx to
11588 (pass_web::execute): Likewise for local "insn".
11590 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11592 * var-tracking.c (struct micro_operation_def): Strengthen field
11593 "insn" from rtx to rtx_insn *.
11594 (struct emit_note_data_def): Likewise.
11595 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
11596 (vt_stack_adjustments): Likewise for local "insn".
11597 (adjust_insn): Likewise for param "insn".
11598 (val_store): Likewise.
11599 (val_resolve): Likewise.
11600 (struct count_use_info): Likewise for field "insn".
11601 (log_op_type): Likewise for param "insn".
11602 (reverse_op): Likewise.
11603 (prepare_call_arguments): Likewise.
11604 (add_with_sets): The initial param takes an insn, but we can't
11605 yet strengthen it from rtx to rtx_insn * since it's used as a
11606 cselib_record_sets_hook callback. For now rename initial param
11607 from "insn" to "uncast_insn", and introduce a local "insn" of
11608 the stronger rtx_insn * type, with a checked cast.
11609 (compute_bb_dataflow): Strengthen local "insn" from rtx to
11611 (emit_note_insn_var_location): Likewise.
11612 (emit_notes_for_changes): Likewise.
11613 (emit_notes_for_differences): Likewise.
11614 (next_non_note_insn_var_location): Likewise for return type and
11616 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
11617 (vt_initialize): Likewise for local "insn".
11618 (delete_debug_insns): Likewise for locals "insn" and "next".
11620 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11622 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
11624 (mark_constant_pool): Likewise for local "insn".
11626 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11628 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
11630 (dead_debug_promote_uses): Likewise.
11631 (dead_debug_insert_temp): Likewise.
11633 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11635 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
11636 from const_rtx to const rtx_insn *.
11637 (store_killed_after): Likewise. Strengthen locals "last", "act"
11638 from rtx to rtx_insn *.
11639 (store_killed_before): Strengthen param "insn" from const_rtx to
11640 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
11641 (find_moveable_store): Strengthen param "insn" from rtx to
11643 (compute_store_table): Likewise for local "insn".
11644 (insert_insn_start_basic_block): Likewise for param "insn" and
11645 locals "prev", "before", "insn".
11646 (insert_store): For now, add a checked cast to rtx_insn * on the
11647 result of gen_move_insn.
11648 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
11650 (replace_store_insn): Likewise. For now, add a checked cast to
11651 rtx_insn * on the result of gen_move_insn.
11653 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11655 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
11657 (expand_sjlj_dispatch_table): Likewise.
11659 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11661 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
11662 "insn" from rtx to rtx_insn *.
11664 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11666 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
11667 "insn" from rtx to rtx_insn *.
11668 (dup_block_and_redirect): Likewise for param 3 "before".
11670 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
11671 from rtx to rtx_insn *.
11672 (move_insn_for_shrink_wrap): Likewise.
11673 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
11674 (dup_block_and_redirect): Likewise for param "before" and local
11676 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
11678 (convert_to_simple_return): Likewise for local "start".
11680 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
11681 Strengthen local "insn" from rtx to rtx_insn *, for use when
11682 invoking requires_stack_frame_p.
11684 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11686 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
11688 (speculate_expr): Likewise for locals "orig_insn_rtx",
11690 (eq_transformed_insns): Likewise for locals "i1", "i2".
11691 (check_for_new_jump): Likewise for return type and local "end".
11692 (find_new_jump): Likewise for return type and local "jump".
11693 (sel_split_edge): Likewise for local "jump".
11694 (sel_create_recovery_block): Likewise.
11695 (sel_redirect_edge_and_branch_force): Likewise.
11696 (sel_redirect_edge_and_branch): Likewise.
11698 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11700 * sel-sched.c (substitute_reg_in_expr): Strengthen local
11701 "new_insn" from rtx to rtx_insn *.
11702 (create_insn_rtx_with_rhs): Likewise for return type and for local
11704 (create_insn_rtx_with_lhs): Likewise.
11705 (create_speculation_check): Likewise for local "insn_rtx".
11706 (implicit_clobber_conflict_p): Likewise for local "insn".
11707 (get_expr_cost): Likewise.
11708 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
11709 (move_cond_jump): Likewise for locals "next", "prev", "link",
11710 "head", "from", "to".
11712 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11714 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
11715 "next" from rtx to rtx_insn *.
11716 (find_conditional_protection): Likewise for local "next".
11717 (is_conditionally_protected): Likewise for local "insn1".
11718 (is_pfree): Likewise for locals "insn1", "insn2".
11720 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11722 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
11723 from rtx to rtx_insn *.
11725 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
11726 locals "insn1", "insn2" from rtx to rtx_insn *.
11727 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
11728 locals "insn", "prev", "last_jump", "next_tail".
11729 (schedule_ebb): Likewise for params "head", "tail".
11730 (schedule_ebbs): Likewise for locals "tail", "head".
11732 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
11733 to rtx_insn on "last_insn" in one of the invocations of
11736 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11738 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
11739 "elem", "insn" from rtx to rtx_insn *.
11740 (change_spec_dep_to_hard): Likewise.
11741 (get_back_and_forw_lists): Likewise for local "con".
11742 (sd_add_dep): Likewise for locals "elem", "insn".
11743 (sd_resolve_dep): Likewise for locals "pro", "con".
11744 (sd_unresolve_dep): Likewise.
11745 (sd_delete_dep): Likewise.
11746 (chain_to_prev_insn): Likewise for local "pro".
11747 (find_inc): Likewise for locals "pro", "con".
11749 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11751 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
11753 (reg_set_between_p): Strengthen local "insn" from const_rtx to
11755 (modified_between_p): Strengthen local "insn" from rtx to
11757 (remove_reg_equal_equiv_notes_for_regno): Likewise.
11758 (keep_with_call_p): Strengthen local "i2" from const_rtx to
11761 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11763 * resource.c (next_insn_no_annul): Strengthen local "next" from
11765 (mark_referenced_resources): Likewise for local "insn".
11767 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11769 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
11771 (find_reloads): Likewise for param 1.
11772 (subst_reloads): Likewise for sole param.
11773 (find_equiv_reg): Likwise for param 2.
11774 (regno_clobbered_p): Likwise for param 2.
11775 (reload): Likewise for param 1.
11777 * caller-save.c (save_call_clobbered_regs): Strengthen local
11778 "insn" from rtx to rtx_insn *.
11779 (insert_one_insn): Likewise for local "insn".
11781 * reload.c (this_insn): Likewise for this global.
11782 (find_reloads): Likewise for param "insn".
11783 (find_reloads_toplev): Likewise.
11784 (find_reloads_address): Likewise.
11785 (subst_reg_equivs): Likewise.
11786 (update_auto_inc_notes): Likewise.
11787 (find_reloads_address_1): Likewise.
11788 (find_reloads_subreg_address): Likewise.
11789 (subst_reloads): Likewise.
11790 (find_equiv_reg): Likewise, also for local "p".
11791 (regno_clobbered_p): Likewise for param "insn".
11793 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
11795 (spill_reg_store): Likewise for the elements of this array.
11796 (remove_init_insns): Likewise for local "equiv_insn".
11797 (will_delete_init_insn_p): Likewise for param "insn".
11798 (reload): Likewise for param ""first" and local "insn".
11799 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
11801 (calculate_elim_costs_all_insns): Likewise.
11802 (delete_caller_save_insns): Likewise.
11803 (spill_failure): Likewise for param "insn".
11804 (delete_dead_insn): Likewise.
11805 (set_label_offsets): Likewise.
11806 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
11808 (elimination_costs_in_insn): Likewise for param "insn".
11809 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
11810 when referring to an insn.
11811 (set_initial_label_offsets): Likewise.
11812 (set_offsets_for_label): Strengthen param "insn" from rtx to
11814 (init_eliminable_invariants): Likewise for param "first" and local
11816 (fixup_eh_region_note): Likewise for param "insn".
11817 (reload_as_needed): Likewise for locals "prev", "insn",
11818 "old_next", "old_prev", "next".
11819 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
11821 (reload_inheritance_insn): Strengthen elements of this array from
11823 (failed_reload): Likewise for param "insn".
11824 (choose_reload_regs): Likewise for local "insn". Replace use of
11825 NULL_RTX with NULL when referring to an insn.
11826 (input_reload_insns): Strengthen elements of this array from rtx
11828 (other_input_address_reload_insns): Likewise for this global.
11829 (other_input_reload_insns): Likewise for this global.
11830 (input_address_reload_insns): Likwise for the elements of this
11832 (inpaddr_address_reload_insns): Likwise for the elements of this
11834 (output_reload_insns): Likewise for the elements of this array.
11835 (output_address_reload_insns): Likewise for the elements of this
11837 (outaddr_address_reload_insns): Likewise for the elements of this
11839 (operand_reload_insns): Likewise for this global.
11840 (other_operand_reload_insns): Likewise for this global.
11841 (other_output_reload_insns): Likewise for the elements of this
11843 (new_spill_reg_store): Likewise for the elements of this
11845 (emit_input_reload_insns): Likewise for locals "insn", "temp".
11846 Strengthen local "where" from rtx * to rtx_insn **.
11847 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
11848 from rtx to rtx_insn *.
11849 (do_input_reload): Likewise for local "insn".
11850 (do_output_reload): Likewise for local "insn".
11851 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
11852 (emit_insn_if_valid_for_reload): Likewise for return type and local
11853 "last". Add checked cast to rtx_insn when returning "insn" since
11854 this has been through emit_insn.
11855 (gen_reload): Strengthen return type and locals "last", "insn", "set"
11856 from rtx to rtx_insn *. Add checked cast to rtx_insn when
11857 returning "insn" since it's been through
11858 emit_insn_if_valid_for_reload at this point.
11859 (delete_output_reload): Strengthen param "insn" and locals
11860 "output_reload_insn", "i2" from rtx to rtx_insn *.
11861 (delete_address_reloads): Likewise for params "dead_insn",
11862 "current_insn" and locals "prev", "next".
11863 (delete_address_reloads_1): Likewise for params "dead_insn",
11864 "current_insn" and locals "prev", "i2".
11865 (inc_for_reload): Likewise for locals "last", "add_insn".
11866 (add_auto_inc_notes): Strengthen param "insn" from rtx to
11869 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
11870 param of this duplicate of the prototype from reload.h
11872 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11874 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
11876 (regstat_bb_compute_calls_crossed): Likewise.
11878 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11880 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
11882 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
11884 (regrename_analyze): Strengthen local "insn" from rtx to
11886 (scan_rtx_reg): Likewise for param "insn".
11887 (scan_rtx_address): Likewise.
11888 (scan_rtx): Likewise.
11889 (restore_operands): Likewise.
11890 (record_out_operands): Likewise.
11891 (build_def_use): Likewise for local "insn". Replace use of
11892 NULL_RTX with NULL when dealing with an insn.
11894 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11896 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
11897 * reginfo.c (reg_scan): Likewise, also for local "insn".
11898 (reg_scan_mark_refs): Likewise for param "insn".
11899 (init_subregs_of_mode): Likewise for local "insn".
11901 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11903 * regcprop.c (struct queued_debug_insn_change): Strengthen field
11904 "insn" from rtx to rtx_insn *.
11905 (replace_oldest_value_reg): Likewise for param "insn".
11906 (replace_oldest_value_addr): Likewise.
11907 (replace_oldest_value_mem): Likewise.
11908 (apply_debug_insn_changes): Likewise for local "last_insn".
11909 (copyprop_hardreg_forward_1): Likewise for local "insn".
11911 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11913 * reg-stack.c (next_flags_user): Strengthen return type and param
11914 "insn" from rtx to rtx_insn *.
11915 (straighten_stack): Likewise for param "insn".
11916 (check_asm_stack_operands): Likewise.
11917 (remove_regno_note): Likewise.
11918 (emit_pop_insn): Likewise for return type, param "insn", local
11920 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
11921 "limit" from rtx to rtx_insn *.
11922 (swap_to_top): Likewise for param "insn".
11923 (move_for_stack_reg): Likewise.
11924 (move_nan_for_stack_reg): Likewise.
11925 (swap_rtx_condition): Likewise.
11926 (compare_for_stack_reg): Likewise.
11927 (subst_all_stack_regs_in_debug_insn): Likewise.
11928 (subst_stack_regs_pat): Likewise, and local "insn2".
11929 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
11931 (subst_stack_regs): Likewise.
11932 (change_stack): Likewise.
11933 (convert_regs_1): Likewise for locals "insn", "next".
11935 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11937 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
11939 (combine_set_extension): Likewise for param "curr_insn".
11940 (transform_ifelse): Likewise for param "def_insn".
11941 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
11942 from vec<rtx> * to vec<rtx_insn *> *.
11943 (is_cond_copy_insn): Likewise for param "insn".
11944 (struct ext_state): Strengthen the four vec fields from vec<rtx>
11945 to vec<rtx_insn *>.
11946 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
11947 local "def_insn" from rtx to rtx_insn *.
11948 (get_sub_rtx): Likewise for param "def_insn".
11949 (merge_def_and_ext): Likewise.
11950 (combine_reaching_defs): Likewise.
11951 (add_removable_extension): Likewise for param "insn".
11952 (find_removable_extensions): Likewise for local "insn".
11953 (find_and_remove_re): Likewise for locals "curr_insn" and
11954 "def_insn". Strengthen locals "reinsn_del_list" and
11955 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
11957 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11959 * recog.c (split_insn): Strengthen param "insn" and locals
11960 "first", "last" from rtx to rtx_insn *.
11961 (split_all_insns): Likewise for locals "insn", "next".
11962 (split_all_insns_noflow): Likewise.
11964 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11966 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
11968 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
11969 (debug_rtx_find): Likewise for param 1 "x".
11971 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
11972 const_rtx to const rtx_insn *. Likewise for local "insn".
11973 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
11974 (debug_rtx_find): Likewise for param 1 "x".
11975 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
11976 from const_rtx to const rtx_insn * within the appropriate cases of
11977 the switch statement.
11979 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
11980 Strengthen local "insns" from rtx to rtx_insn * since this is
11981 passed to a call to debug_rtx_list.
11983 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11985 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
11988 * function.c (stack_protect_epilogue): Add checked cast to
11989 rtx_insn for now when invoking predict_insn_def.
11991 * predict.c (predict_insn): Strengthen param "insn" from rtx to
11993 (predict_insn_def): Likewise.
11994 (rtl_predict_edge): Likewise for local "last_insn".
11995 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
11997 (combine_predictions_for_insn): Strengthen param "insn" from rtx
11999 (bb_estimate_probability_locally): Likewise for local "last_insn".
12000 (expensive_function_p): Likewise for local "insn".
12002 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12003 local "jmp", since this is used when invoking predict_insn_def.
12005 2014-08-22 Marek Polacek <polacek@redhat.com>
12008 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12010 2014-08-22 Marek Polacek <polacek@redhat.com>
12013 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12014 a comparison in parens.
12015 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12018 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12020 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12023 * cprop.c (fis_get_condition): Likewise.
12025 * postreload.c (reload_cse_regs): Likewise for param "first".
12026 (reload_cse_simplify): Likewise for param "insn".
12027 (reload_cse_regs_1): Likewise for local "insn".
12028 (reload_cse_simplify_set): Likewise for param "insn".
12029 (reload_cse_simplify_operands): Likewise.
12030 (struct reg_use): Likewise for field "insn".
12031 (reload_combine_purge_insn_uses): Likewise for param "insn".
12032 (fixup_debug_insns): Likewise for params "from", "to" and local
12034 (try_replace_in_use): Likewise for local "use_insn".
12035 (reload_combine_recognize_const_pattern): Likewise for param
12036 "insn" and locals "add_moved_after_insn", "use_insn".
12037 (reload_combine_recognize_pattern): Likewise for param "insn" and
12039 (reload_combine): Likewise for locals "insn", "prev".
12040 (reload_combine_note_use): Likewise for param "insn".
12041 (move2add_use_add2_insn): Likewise.
12042 (move2add_use_add3_insn): Likewise.
12043 (reload_cse_move2add): Likewise, also for local "next".
12044 (move2add_note_store): Likewise for local "insn".
12046 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12048 * postreload-gcse.c (struct occr): Strengthen field "insn" from
12050 (struct unoccr): Likewise.
12051 (struct modifies_mem): Likewise.
12052 (alloc_mem): Likewise for local "insn".
12053 (insert_expr_in_table): Likewise for param "insn".
12054 (dump_expr_hash_table_entry): Likewise for local "insn".
12055 (oprs_unchanged_p): Likewise for param "insn".
12056 (load_killed_in_block_p): Likewise for local "setter".
12057 (record_last_reg_set_info): Likewise for param "insn".
12058 (record_last_reg_set_info_regno): Likewise.
12059 (record_last_mem_set_info): Likewise.
12060 (record_last_set_info): Likewise for local "last_set_insn".
12061 (record_opr_changes): Likewise for param "insn".
12062 (hash_scan_set): Likewise.
12063 (compute_hash_table): Likewise for local "insn".
12064 (get_avail_load_store_reg): Likewise for param "insn".
12065 (eliminate_partially_redundant_load): Likewise, also for locals
12066 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
12068 (eliminate_partially_redundant_loads): Likewise for local "insn".
12070 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12072 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
12074 (expand_binop): Likewise for locals "entry_last", "last", "insns"
12075 (expand_twoval_unop): Likewise for locals entry_last", "last".
12076 (expand_twoval_binop): Likewise.
12077 (expand_twoval_binop_libfunc): Likewise for local "insns".
12078 (widen_leading): Likewise for local "last".
12079 (expand_doubleword_clz): Likewise for local "seq". Strengthen
12080 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
12081 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
12082 (expand_parity): Likewise for locals "last" and "seq".
12083 (expand_ffs): Likewise for local "seq". Strengthen local
12084 "nonzero_label" from rtx to rtx_code_label *.
12085 (expand_absneg_bit): Strengthen local "insns" from rtx to
12087 (expand_unop_direct): Likewise for local "last".
12088 (expand_unop): Likewise for locals "last", "insns".
12089 (expand_abs_nojump): Likewise for local "last".
12090 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
12091 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
12093 (expand_copysign_absneg): Strengthen local "label" from rtx to
12095 (expand_copysign_bit): Strengthen local "insns" from rtx to
12097 (struct no_conflict_data): Likewise for fields "first", "insn".
12098 (emit_libcall_block_1): Likewise for param "insns" and locals
12099 "next", "last", "insn".
12100 (emit_libcall_block): For now, add a checked cast to rtx_insn *
12101 on "insns" when invoking emit_libcall_block_1. Ultimately we
12102 want to strengthen insns itself.
12103 (prepare_cmp_insn): Strengthen local "last" from rtx to
12105 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
12106 (prepare_float_lib_cmp): Likewise for local "insns".
12107 (emit_conditional_move): Likewise for local "last".
12108 (emit_conditional_add): Likewise.
12109 (have_sub2_insn): Likewise for local "seq".
12110 (expand_float): Likewise for local "insns". Strengthen locals
12111 "label", "neglabel" from rtx to rtx_code_label *.
12112 (expand_fix): Likewise for locals "last", "insn", "insns" (to
12113 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
12114 (expand_fixed_convert): Likewise for local "insns" (to
12116 (expand_sfix_optab): Likewise for local "last".
12117 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
12118 to rtx_code_label *.
12119 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
12120 from rtx to rtx_insn *.
12121 (expand_atomic_fetch_op): Likewise for local "insn".
12122 (maybe_legitimize_operand_same_code): Likewise for local "last".
12123 (maybe_legitimize_operands): Likewise.
12125 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12127 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
12128 "insn" from rtx to rtx_insn *.
12129 (ps_rtl_insn): Likewise for return type.
12130 (doloop_register_get): Likewise for params "head", "tail" and
12131 locals "insn", "first_insn_not_to_check".
12132 (schedule_reg_move): Likewise for local "this_insn".
12133 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
12134 of gen_move_insn for now.
12135 (reset_sched_times): Strengthen local "insn" from rtx to
12137 (permute_partial_schedule): Likewise.
12138 (duplicate_insns_of_cycles): Likewise for local "u_insn".
12139 (dump_insn_location): Likewise for param "insn".
12140 (loop_canon_p): Likewise for local "insn".
12141 (sms_schedule): Likewise.
12142 (print_partial_schedule): Likewise.
12143 (ps_has_conflicts): Likewise.
12145 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12147 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
12148 "tailp" from rtx * to rtx_insn **.
12150 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
12151 from rtx to rtx_insn *.
12152 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
12153 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
12154 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
12156 * modulo-sched.c (const_iteration_count): Strengthen return type
12157 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
12158 use of NULL_RTX with NULL when working with insns.
12159 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
12161 (sms_schedule): Likewise.
12162 * sched-rgn.c (init_ready_list): Likewise, also for locals
12163 "src_head" and "src_next_tail".
12164 (compute_block_dependences): Likewise.
12165 (free_block_dependencies): Likewise.
12166 (debug_rgn_dependencies): Likewise.
12167 (free_rgn_deps): Likewise.
12168 (compute_priorities): Likewise.
12169 (schedule_region): Likewise.
12170 * sel-sched.c (find_ebb_boundaries): Likewise.
12172 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
12173 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
12175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12177 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
12178 from rtx to rtx_insn *.
12179 (new_seginfo): Likewise for param "insn".
12180 (create_pre_exit): Likewise for locals "last_insn",
12181 "before_return_copy", "return_copy".
12182 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
12185 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12187 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
12188 from rtx to rtx_insn *.
12189 (lra_push_insn): Likewise for 1st param.
12190 (lra_push_insn_and_update_insn_regno_info): Likewise.
12191 (lra_pop_insn): Likewise for return type.
12192 (lra_invalidate_insn_data): Likewise for 1st param.
12193 (lra_set_insn_deleted): Likewise.
12194 (lra_delete_dead_insn): Likewise.
12195 (lra_process_new_insns): Likewise for first 3 params.
12196 (lra_set_insn_recog_data): Likewise for 1st param.
12197 (lra_update_insn_recog_data): Likewise.
12198 (lra_set_used_insn_alternative): Likewise.
12199 (lra_invalidate_insn_regno_info): Likewise.
12200 (lra_update_insn_regno_info): Likewise.
12201 (lra_former_scratch_operand_p): Likewise.
12202 (lra_eliminate_regs_1): Likewise.
12203 (lra_get_insn_recog_data): Likewise.
12205 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
12208 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
12210 (substitute_within_insn): New.
12211 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
12212 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
12213 Replace call to "substitute" with call to substitute_within_insn.
12215 * lra-constraints.c (curr_insn): Strengthen from rtx to
12217 (get_equiv_with_elimination): Likewise for param "insn".
12218 (match_reload): Strengthen params "before" and "after" from rtx *
12220 (emit_spill_move): Likewise for return type. Add a checked cast
12221 to rtx_insn * on result of gen_move_insn for now.
12222 (check_and_process_move): Likewise for local "before". Replace
12223 NULL_RTX with NULL when referring to insns.
12224 (process_addr_reg): Strengthen params "before" and "after" from
12225 rtx * to rtx_insn **.
12226 (insert_move_for_subreg): Likewise.
12227 (simplify_operand_subreg): Strengthen locals "before" and "after"
12228 from rtx to rtx_insn *.
12229 (process_address_1): Strengthen params "before" and "after" from
12230 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
12232 (process_address): Strengthen params "before" and "after" from
12233 rtx * to rtx_insn **.
12234 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
12235 (curr_insn_transform): Strengthen locals "before" and "after"
12236 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
12238 (loc_equivalence_callback): Update cast of "data", changing
12239 resulting type from rtx to rtx_insn *.
12240 (substitute_pseudo_within_insn): New.
12241 (inherit_reload_reg): Strengthen param "insn" from rtx to
12242 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
12243 NULL when referring to insns. Add a checked cast to rtx_insn *
12244 when using usage_insn to invoke lra_update_insn_regno_info.
12245 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
12246 likewise for locals "restore", "save". Add checked casts to
12247 rtx_insn * when using usage_insn to invoke
12248 lra_update_insn_regno_info and lra_process_new_insns. Replace
12249 NULL_RTX with NULL when referring to insns.
12250 (split_if_necessary): Strengthen param "insn" from rtx to
12252 (update_ebb_live_info): Likewise for params "head", "tail" and local
12254 (get_last_insertion_point): Likewise for return type and local "insn".
12255 (get_live_on_other_edges): Likewise for local "last".
12256 (inherit_in_ebb): Likewise for params "head", "tail" and locals
12257 "prev_insn", "next_insn", "restore".
12258 (remove_inheritance_pseudos): Likewise for local "prev_insn".
12259 (undo_optional_reloads): Likewise for local "insn".
12261 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
12263 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
12265 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
12267 (spill_pseudos): Likewise for local "insn".
12268 (init_elimination): Likewise.
12269 (process_insn_for_elimination): Likewise for param "insn".
12271 * lra-lives.c (curr_insn): Likewise.;
12273 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
12274 (remove_pseudos): Likewise for param "insn".
12275 (spill_pseudos): Likewise for local "insn".
12276 (lra_final_code_change): Likewise for locals "insn", "curr".
12278 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
12279 (lra_set_insn_deleted): Likewise.
12280 (lra_delete_dead_insn): Likewise, and for local "prev".
12281 (new_insn_reg): Likewise for param "insn".
12282 (lra_set_insn_recog_data): Likewise.
12283 (lra_update_insn_recog_data): Likewise.
12284 (lra_set_used_insn_alternative): Likewise.
12285 (get_insn_freq): Likewise.
12286 (invalidate_insn_data_regno_info): Likewise.
12287 (lra_invalidate_insn_regno_info): Likewise.
12288 (lra_update_insn_regno_info): Likewise.
12289 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
12291 (lra_push_insn_1): Strengthen param "insn" from rtx to
12293 (lra_push_insn): Likewise.
12294 (lra_push_insn_and_update_insn_regno_info): Likewise.
12295 (lra_pop_insn): Likewise for return type and local "insn".
12296 (push_insns): Likewise for params "from", "to", and local "insn".
12297 (setup_sp_offset): Likewise for params "from", "last" and locals
12299 (lra_process_new_insns): Likewise for params "insn", "before",
12300 "after" and local "last".
12301 (struct sloc): Likewise for field "insn".
12302 (lra_former_scratch_operand_p): Likewise for param "insn".
12303 (remove_scratches): Likewise for locals "insn", "last".
12304 (check_rtl): Likewise for local "insn".
12305 (add_auto_inc_notes): Likewise for param "insn".
12306 (update_inc_notes): Likewise for local "insn".
12307 (lra): Replace NULL_RTX with NULL when referring to insn.
12309 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12311 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12313 (resolve_reg_notes): Likewise.
12314 (resolve_simple_move): Likewise for return type, param "insn", and
12315 locals "insns", "minsn".
12316 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12317 (resolve_use): Likewise.
12318 (resolve_debug): Likewise.
12319 (find_decomposable_shift_zext): Likewise.
12320 (resolve_shift_zext): Likewise for return type, param "insn", and
12321 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
12322 (decompose_multiword_subregs): Likewise for local "insn",
12323 "orig_insn", "decomposed_shift", "end".
12325 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12327 * basic-block.h (basic_block split_edge_and_insert): Strengthen
12328 param "insns" from rtx to rtx_insn *.
12330 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12332 (struct iv_to_split): Likewise.
12333 (loop_exit_at_end_p): Likewise for local "insn".
12334 (split_edge_and_insert): Likewise for param "insns".
12335 (compare_and_jump_seq): Likewise for return type, param "cinsn",
12336 and locals "seq", "jump".
12337 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12338 "branch_code"; update invocations of compare_and_jump_seq to
12339 eliminate NULL_RTX in favor of NULL.
12340 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12342 (reset_debug_uses_in_loop): Likewise.
12343 (analyze_insn_to_expand_var): Likewise for param "insn".
12344 (analyze_iv_to_split_insn): Likewise.
12345 (analyze_insns_in_loop): Likewise for local "insn".
12346 (insert_base_initialization): Likewise for param
12347 "insn" and local "seq".
12348 (split_iv): Likewise for param "insn" and local "seq".
12349 (expand_var_during_unrolling): Likewise for param "insn".
12350 (insert_var_expansion_initialization): Likewise for local "seq".
12351 (combine_var_copies_in_loop_exit): Likewise.
12352 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12354 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12355 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12358 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12360 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12362 (iv_analyze_result): Likewise.
12363 (iv_analyze_expr): Likewise.
12366 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12367 local "def_insn" from rtx to rtx_insn *.
12368 (get_biv_step_1): Likewise for local "insn".
12369 (iv_analyze_expr): Likewise for param "insn".
12370 (iv_analyze_def): Likewise for local "insn".
12371 (iv_analyze_op): Likewise for param "insn".
12372 (iv_analyze): Likewise.
12373 (iv_analyze_result): Likewise.
12375 (suitable_set_for_replacement): Likewise.
12376 (simplify_using_initial_values): Likewise for local "insn".
12377 (iv_number_of_iterations): Likewise for param "insn".
12378 (check_simple_exit): Add checked cast to rtx_insn when invoking
12379 iv_number_of_iterations for now (until get_condition is
12382 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12383 "insn" from rtx to rtx_insn *.
12384 (analyze_insns_in_loop): Likewise for local "insn".
12386 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12388 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12390 (struct invariant): Likewise.
12391 (hash_invariant_expr_1): Likewise for param "insn".
12392 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12393 (find_exits): Likewise for local "insn".
12394 (create_new_invariant): Likewise for param "insn".
12395 (check_dependencies): Likewise.
12396 (find_invariant_insn): Likewise.
12397 (record_uses): Likewise.
12398 (find_invariants_insn): Likewise.
12399 (find_invariants_bb): Likewise for local "insn".
12400 (get_pressure_class_and_nregs): Likewise for param "insn".
12401 (calculate_loop_reg_pressure): Likewise for local "insn".
12403 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12405 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12407 (add_test): Likewise for locals "seq", "jump".
12408 (doloop_modify): Likewise for locals "sequence", "jump_insn".
12410 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12412 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
12414 (rebuild_jump_labels_chain): Likewise for param "chain".
12416 * cfgexpand.c (pass_expand::execute): Add checked cast to
12417 rtx_insn * when calling rebuild_jump_labels_chain in region where
12418 we know e->insns.r is non-NULL.
12420 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
12422 (rebuild_jump_labels): Likewise.
12423 (rebuild_jump_labels_chain): Likewise for param "chain".
12424 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
12425 (init_label_info): Likewise for param "f".
12426 (maybe_propagate_label_ref): Likewise for params "jump_insn",
12427 "prev_nonjump_insn".
12428 (mark_all_labels): Likewise for param "f" and locals "insn",
12429 "prev_nonjump_insn".
12431 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12433 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12434 from rtx to rtx_insn *insn.
12435 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12436 (ira_add_allocno_copy): Likewise.
12437 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12439 (ira_create_copy): Likewise.
12440 (ira_add_allocno_copy): Likewise.
12441 (create_bb_allocnos): Likewise for local "insn".
12442 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12443 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12444 process_regs_for_copy for rtx_insn * param.
12445 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12446 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
12447 process_regs_for_copy for rtx_insn * param.
12448 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12449 * ira-costs.c (record_reg_classes): Likewise for param "insn".
12450 (record_operand_costs): Likewise.
12451 (scan_one_insn): Likewise for return type, and for param "insn".
12452 (process_bb_for_costs): Likewise for local "insn".
12453 (process_bb_node_for_hard_reg_moves): Likewise.
12454 * ira-emit.c (struct move): Likewise for field "insn".
12455 (create_move): Eliminate use of NULL_RTX when dealing with an
12457 (emit_move_list): Strengthen return type and locals "result",
12458 "insn" from rtx to rtx_insn *insn.
12459 (emit_moves): Likewise for locals "insns", "tmp".
12460 (ira_emit): Likewise for local "insn".
12461 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
12463 (find_call_crossed_cheap_reg): Likewise.
12464 (process_bb_node_lives): Likewise for local "insn".
12465 * ira.c (decrease_live_ranges_number): Likewise.
12466 (compute_regs_asm_clobbered): Likewise.
12467 (build_insn_chain): Likewise.
12468 (find_moveable_pseudos): Likewise, also locals "def_insn",
12469 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
12470 to rtx_insn **. Add a checked cast when assigning from
12471 "closest_use" into closest_uses array in a region where we know
12472 it's a non-NULL insn.
12473 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
12475 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
12476 "last_interesting_insn", "uin".
12477 (move_unallocated_pseudos): Likewise for locals "def_insn",
12478 "move_insn", "newinsn".
12480 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12482 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
12483 Strengthen locals "done_label", "do_error" from rtx to
12485 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
12486 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
12488 (ubsan_expand_si_overflow_neg_check): Likewise for locals
12489 "done_label", "do_error" to rtx_code_label * and local "last" to
12491 (ubsan_expand_si_overflow_mul_check): Likewise for locals
12492 "done_label", "do_error", "large_op0", "small_op0_large_op1",
12493 "one_small_one_large", "both_ops_large", "after_hipart_neg",
12494 "after_lopart_neg", "do_overflow", "hipart_different" to
12495 rtx_code_label * and local "last" to rtx_insn *.
12497 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12499 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
12500 "insn" and "move_insn" from rtx to rtx_insn *.
12502 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12504 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
12506 (cheap_bb_rtx_cost_p): Likewise.
12507 (first_active_insn): Likewise for return type and local "insn".
12508 (last_active_insn): Likewise for return type and locals "insn",
12510 (struct noce_if_info): Likewise for fields "jump", "insn_a",
12512 (end_ifcvt_sequence): Likewise for return type and locals "insn",
12514 (noce_try_move): Likewise for local "seq".
12515 (noce_try_store_flag): Likewise.
12516 (noce_try_store_flag_constants): Likewise.
12517 (noce_try_addcc): Likewise.
12518 (noce_try_store_flag_mask): Likewise.
12519 (noce_try_cmove): Likewise.
12520 (noce_try_minmax): Likewise.
12521 (noce_try_abs): Likewise.
12522 (noce_try_sign_mask): Likewise.
12523 (noce_try_bitop): Likewise.
12524 (noce_can_store_speculate_p): Likewise for local "insn".
12525 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
12527 (check_cond_move_block): Likewise for local "insn".
12528 (cond_move_convert_if_block): Likewise.
12529 (cond_move_process_if_block): Likewise for locals "seq",
12531 (noce_find_if_block): Likewise for local "jump".
12532 (merge_if_block): Likewise for local "last".
12533 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
12534 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
12535 (block_has_only_trap): Likewise for return type and local "trap".
12536 (find_if_case_1): Likewise for local "jump".
12537 (dead_or_predicable): Likewise for locals "head", "end", "jump",
12540 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12542 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
12543 "last_insn", "loop_end" from rtx to rtx_insn *.
12545 * hw-doloop.c (scan_loop): Likewise for local "insn".
12546 (discover_loop): Likewise for param "tail_insn".
12547 (discover_loops): Likewise for local "tail".
12549 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
12550 cast to rtx_insn * when assigning from an rtx local to a
12551 hwloop_info's "last_insn" field.
12553 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12555 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
12556 (add_delay_dependencies): Strengthen local "pro" from rtx to
12558 (recompute_todo_spec): Likewise.
12559 (dep_cost_1): Likewise for locals "insn", "used".
12560 (schedule_insn): Likewise for local "dbg".
12561 (schedule_insn): Likewise for locals "pro", "next".
12562 (unschedule_insns_until): Likewise for local "con".
12563 (restore_pattern): Likewise for local "next".
12564 (estimate_insn_tick): Likewise for local "pro".
12565 (resolve_dependencies): Likewise for local "next".
12566 (fix_inter_tick): Likewise.
12567 (fix_tick_ready): Likewise for local "pro".
12568 (add_to_speculative_block): Likewise for locals "check", "twin",
12570 (sched_extend_bb): Likewise for locals "end", "insn".
12571 (init_before_recovery): Likewise for local "x".
12572 (sched_create_recovery_block): Likewise for local "barrier".
12573 (create_check_block_twin): Likewise for local "pro".
12574 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
12576 (unlink_bb_notes): Update for change to type of bb_header.
12577 Strengthen locals "prev", "label", "note", "next" from rtx to
12579 (clear_priorities): Likewise for local "pro".
12581 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12583 * gcse.c (struct occr): Strengthen field "insn" from rtx to
12585 (test_insn): Likewise for this global.
12586 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
12588 (oprs_anticipatable_p): Likewise.
12589 (oprs_available_p): Likewise.
12590 (insert_expr_in_table): Strengthen param "insn" from rtx to
12592 (hash_scan_set): Likewise.
12593 (hash_scan_clobber): Likewise.
12594 (hash_scan_call): Likewise.
12595 (hash_scan_insn): Likewise.
12596 (compute_hash_table_work): Likewise for local "insn".
12597 (process_insert_insn): Likewise for return type and local "pat".
12598 (insert_insn_end_basic_block): Likewise for locals "new_insn",
12599 "pat", "pat_end", "maybe_cc0_setter".
12600 (pre_edge_insert): Likewise for local "insn".
12601 (pre_insert_copy_insn): Likewise for param "insn".
12602 (pre_insert_copies): Likewise for local "insn".
12603 (struct set_data): Likewise for field "insn".
12604 (single_set_gcse): Likewise for param "insn".
12605 (gcse_emit_move_after): Likewise.
12606 (pre_delete): Likewise for local "insn".
12607 (update_bb_reg_pressure): Likewise for param "from" and local
12609 (should_hoist_expr_to_dom): Likewise for param "from".
12610 (hoist_code): Likewise for local "insn".
12611 (get_pressure_class_and_nregs): Likewise for param "insn".
12612 (calculate_bb_reg_pressure): Likewise for local "insn".
12613 (compute_ld_motion_mems): Likewise.
12615 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12617 * genpeep.c (main): Rename param back from "uncast_ins1" to
12618 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
12621 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
12623 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12626 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
12627 documentation to state it is only for VSX operations.
12629 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
12630 constraint only active if VSX.
12632 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
12633 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
12634 (lfiwzx): Likewise.
12636 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12638 * fwprop.c (single_def_use_dom_walker::before_dom_children):
12639 Strengthen local "insn" from rtx to rtx_insn *.
12640 (use_killed_between): Likewise for param "target_insn".
12641 (all_uses_available_at): Likewise for param "target_insn" and
12643 (update_df_init): Likewise for params "def_insn", "insn".
12644 (update_df): Likewise for param "insn".
12645 (try_fwprop_subst): Likewise for param "def_insn" and local
12647 (free_load_extend): Likewise for param "insn".
12648 (forward_propagate_subreg): Likewise for param "def_insn" and
12650 (forward_propagate_asm): Likewise for param "def_insn" and local
12652 (forward_propagate_and_simplify): Likewise for param "def_insn"
12653 and local "use_insn".
12654 (forward_propagate_into): Likewise for locals "def_insn" and
12657 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12659 * function.c (emit_initial_value_sets): Strengthen local "seq"
12660 from rtx to rtx_insn *.
12661 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
12663 (instantiate_virtual_regs): Likewise for local "insn".
12664 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
12665 (reorder_blocks_1): Likewise for param "insns" and local "insn".
12666 (expand_function_end): Likewise for locals "insn" and "seq".
12667 (epilogue_done): Likewise for local "insn".
12668 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
12670 (reposition_prologue_and_epilogue_notes): Likewise for locals
12671 "insn", "last", "note", "first".
12672 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
12673 (pass_match_asm_constraints::execute): Likewise for local "insn".
12675 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12677 * output.h (final_scan_insn): Strengthen return type from rtx to
12679 (final_forward_branch_p): Likewise for param.
12680 (current_output_insn): Likewise for this global.
12682 * final.c (rtx debug_insn): Likewise for this variable.
12683 (current_output_insn): Likewise.
12684 (get_attr_length_1): Rename param "insn" to "uncast_insn",
12685 adding "insn" back in as an rtx_insn * with a checked cast, so
12686 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
12688 (compute_alignments): Strengthen local "label" from rtx to
12690 (shorten_branches): Rename param from "first" to "uncast_first",
12691 introducing a new local rtx_insn * "first" using a checked cast to
12692 effectively strengthen "first" from rtx to rtx_insn * without
12693 affecting the type signature. Strengthen locals "insn", "seq",
12694 "next", "label" from rtx to rtx_insn *.
12695 (change_scope): Strengthen param "orig_insn" and local "insn" from
12697 (final_start_function): Rename param from "first" to "uncast_first",
12698 introducing a new local rtx_insn * "first" using a checked cast to
12699 effectively strengthen "first" from rtx to rtx_insn * without
12700 affecting the type signature. Strengthen local "insn" from rtx to
12702 (dump_basic_block_info): Strengthen param "insn" from rtx to
12704 (final): Rename param from "first" to "uncast_first",
12705 introducing a new local rtx_insn * "first" using a checked cast to
12706 effectively strengthen "first" from rtx to rtx_insn * without
12707 affecting the type signature. Strengthen locals "insn", "next"
12708 from rtx to rtx_insn *.
12709 (output_alternate_entry_point): Strengthen param "insn" from rtx to
12711 (call_from_call_insn): Strengthen param "insn" from rtx to
12713 (final_scan_insn): Rename param from "insn" to "uncast_insn",
12714 introducing a new local rtx_insn * "insn" using a checked cast to
12715 effectively strengthen "insn" from rtx to rtx_insn * without
12716 affecting the type signature. Strengthen return type and locals
12717 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
12718 now-redundant checked cast to rtx_insn * from both invocations of
12719 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
12720 introducing a local "call_insn" for use when invoking
12721 call_from_call_insn.
12722 (notice_source_line): Strengthen param "insn" from rtx to
12724 (leaf_function_p): Likewise for local "insn".
12725 (final_forward_branch_p): Likewise.
12726 (leaf_renumber_regs): Likewise for param "first".
12727 (rest_of_clean_state): Likewise for locals "insn" and "next".
12728 (self_recursive_call_p): Likewise for param "insn".
12729 (collect_fn_hard_reg_usage): Likewise for local "insn".
12730 (get_call_fndecl): Likewise for param "insn".
12731 (get_call_cgraph_rtl_info): Likewise.
12732 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
12733 introducing a new local rtx_insn * "insn" using a checked cast to
12734 effectively strengthen "insn" from rtx to rtx_insn * without
12735 affecting the type signature.
12737 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
12738 cast when assigning from param "insn" to current_output_insn.
12739 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
12740 so that we can assign it back to current_output_insn.
12742 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12744 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
12745 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
12746 atmxt540s and atmxt540sreva devices.
12747 * config/avr/avr-tables.opt: Regenerate.
12748 * config/avr/t-multilib: Regenerate.
12749 * doc/avr-mmcu.texi: Regenerate.
12751 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12753 * expr.c (convert_move): Strengthen local "insns" from rtx to
12755 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
12756 "top_label" from rtx to rtx_code_label *.
12757 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
12759 (emit_single_push_insn): Likewise for locals "prev", "last".
12760 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
12761 to rtx_code_label *.
12762 (store_constructor): Likewise for locals "loop_start", "loop_end".
12763 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
12765 (expand_expr_real_2): Likewise.
12766 (expand_expr_real_1): Strengthen local "label" from rtx to
12769 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12771 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
12772 from rtx to rtx_insn *.
12773 (store_bit_field_1): Likewise.
12774 (extract_bit_field_1): Likewise.
12775 (expand_mult_const): Likewise for local "insns".
12776 (expmed_mult_highpart): Strengthen local "label" from rtx to
12778 (expand_smod_pow2): Likewise.
12779 (expand_sdiv_pow2): Likewise.
12780 (expand_divmod): Strengthen locals "last", "insn" from rtx to
12781 rtx_insn *. Strengthen locals "label", "label1", "label2",
12782 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
12783 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
12784 (emit_store_flag): Likewise.
12785 (emit_store_flag_force): Strengthen local "label" from rtx to
12787 (do_cmp_and_jump): Likewise for param "label".
12789 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12791 * explow.c (force_reg): Strengthen local "insn" from rtx to
12793 (adjust_stack_1): Likewise.
12794 (allocate_dynamic_stack_space): Likewise. Strengthen locals
12795 "final_label", "available_label", "space_available" from rtx to
12797 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
12798 (anti_adjust_stack_and_probe): Likewise.
12800 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12802 * except.h (sjlj_emit_function_exit_after): Strengthen param
12803 "after" from rtx to rtx_insn *. This is only called with
12804 result of get_last_insn (in function.c) so type-change should be
12807 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
12808 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
12809 to rtx_insn *. These fields are only used from except.c so this
12810 type-change should be self-contained to this patch.
12812 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
12813 local "last" from rtx to rtx_insn *.
12814 (dw2_build_landing_pads): Likewise for local "seq".
12815 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
12816 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
12817 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
12819 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
12821 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
12822 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
12823 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
12824 referring to an insn. Strengthen local "dispatch_label" from
12825 rtx to rtx_code_label *.
12826 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
12828 (expand_eh_return): Strengthen local "around_label" from
12829 rtx to rtx_code_label *.
12830 (convert_to_eh_region_ranges): Strengthen locals "iter",
12831 "last_action_insn", "first_no_action_insn",
12832 "first_no_action_insn_before_switch",
12833 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
12835 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12837 * dwarf2out.c (last_var_location_insn): Strengthen this variable
12838 from rtx to rtx_insn *.
12839 (cached_next_real_insn): Likewise.
12840 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
12841 working with insns.
12842 (dwarf2out_var_location): Strengthen locals "next_real",
12843 "next_note", "expected_next_loc_note", "last_start", "insn" from
12846 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12848 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
12849 from rtx to rtx_insn *.
12850 (create_pseudo_cfg): Likewise for local "insn".
12852 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12854 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
12855 from rtx to rtx_insn *.
12856 (df_bb_regno_last_def_find): Likewise.
12858 * df-problems.c (df_rd_bb_local_compute): Likewise.
12859 (df_lr_bb_local_compute): Likewise.
12860 (df_live_bb_local_compute): Likewise.
12861 (df_chain_remove_problem): Likewise.
12862 (df_chain_create_bb): Likewise.
12863 (df_word_lr_bb_local_compute): Likewise.
12864 (df_remove_dead_eq_notes): Likewise for param "insn".
12865 (df_note_bb_compute): Likewise for local "insn".
12866 (simulate_backwards_to_point): Likewise.
12867 (df_md_bb_local_compute): Likewise.
12869 * df-scan.c (df_scan_free_bb_info): Likewise.
12870 (df_scan_start_dump): Likewise.
12871 (df_scan_start_block): Likewise.
12872 (df_install_ref_incremental): Likewise for local "insn".
12873 (df_insn_rescan_all): Likewise.
12874 (df_reorganize_refs_by_reg_by_insn): Likewise.
12875 (df_reorganize_refs_by_insn_bb): Likewise.
12876 (df_recompute_luids): Likewise.
12877 (df_bb_refs_record): Likewise.
12878 (df_update_entry_exit_and_calls): Likewise.
12879 (df_bb_verify): Likewise.
12881 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12883 * ddg.h (struct ddg_node): Strengthen fields "insn" and
12884 "first_note" from rtx to rtx_insn *.
12885 (get_node_of_insn): Likewise for param 2 "insn".
12886 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
12888 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
12890 (mem_write_insn_p): Likewise.
12891 (mem_access_insn_p): Likewise.
12892 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
12893 (def_has_ccmode_p): Likewise for param "insn".
12894 (add_cross_iteration_register_deps): Likewise for locals
12895 "def_insn" and "use_insn".
12896 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
12897 (build_intra_loop_deps): Likewise for local "src_insn".
12898 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
12900 (get_node_of_insn): Likewise for param "insn".
12902 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12904 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
12905 (deletable_insn_p): Strengthen param "insn" from rtx to
12906 rtx_insn *. Add checked cast to rtx_call_insn when invoking
12907 find_call_stack_args, since this is guarded by CALL_P (insn).
12908 (marked_insn_p): Strengthen param "insn" from rtx to
12910 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
12911 invoking find_call_stack_args, since this is guarded by
12913 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
12914 rtx_insn *; we know this is an insn since this was called by
12915 mark_nonreg_stores.
12916 (mark_nonreg_stores_2): Likewise.
12917 (mark_nonreg_stores): Strengthen param "insn" from rtx to
12919 (find_call_stack_args): Strengthen param "call_insn" from rtx to
12920 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
12922 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
12923 from rtx to rtx_insn *.
12924 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
12925 "next", "ref_insn".
12926 (delete_unmarked_insns): Likewise for locals "insn", "next".
12927 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
12928 (mark_reg_dependencies): Likewise for param "insn".
12929 (rest_of_handle_ud_dce): Likewise for local "insn".
12930 (word_dce_process_block): Likewise.
12931 (dce_process_block): Likewise.
12933 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12935 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
12936 from rtx to rtx_insn *.
12937 (struct change_cc_mode_args): Likewise for field "insn".
12938 (this_insn): Strengthen from rtx to rtx_insn *.
12939 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
12941 (validate_canon_reg): Strengthen param "insn" from rtx to
12943 (canon_reg): Likewise.
12944 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
12946 (record_jump_equiv): Strengthen param "insn" from rtx to
12948 (try_back_substitute_reg): Likewise, also for locals "prev",
12950 (find_sets_in_insn): Likewise for param "insn".
12951 (canonicalize_insn): Likewise.
12952 (cse_insn): Likewise. Add a checked cast.
12953 (invalidate_from_clobbers): Likewise for param "insn".
12954 (invalidate_from_sets_and_clobbers): Likewise.
12955 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
12957 (cse_prescan_path): Strengthen local "insn" from rtx to
12959 (cse_extended_basic_block): Likewise for locals "insn" and
12961 (cse_main): Likewise for param "f".
12962 (check_for_label_ref): Likewise for local "insn".
12963 (set_live_p): Likewise for second param ("insn").
12964 (insn_live_p): Likewise for first param ("insn") and for local
12966 (cse_change_cc_mode_insn): Likewise for first param "insn".
12967 (cse_change_cc_mode_insns): Likewise for first and second params
12969 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
12971 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
12974 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
12975 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12976 Anna Tikhonova <anna.tikhonova@intel.com>
12977 Ilya Tocar <ilya.tocar@intel.com>
12978 Andrey Turetskiy <andrey.turetskiy@intel.com>
12979 Ilya Verbin <ilya.verbin@intel.com>
12980 Kirill Yukhin <kirill.yukhin@intel.com>
12981 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12983 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
12985 * config/i386/sse.md
12986 (define_mode_iterator VI248_AVX2): Delete.
12987 (define_mode_iterator VI2_AVX2_AVX512BW): New.
12988 (define_mode_iterator VI48_AVX2): Ditto.
12989 (define_insn <shift_insn><mode>3): Delete.
12990 (define_insn "<shift_insn><mode>3<mask_name>" with
12991 VI2_AVX2_AVX512BW): New.
12992 (define_insn "<shift_insn><mode>3<mask_name>" with
12995 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
12996 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12997 Anna Tikhonova <anna.tikhonova@intel.com>
12998 Ilya Tocar <ilya.tocar@intel.com>
12999 Andrey Turetskiy <andrey.turetskiy@intel.com>
13000 Ilya Verbin <ilya.verbin@intel.com>
13001 Kirill Yukhin <kirill.yukhin@intel.com>
13002 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13004 * config/i386/sse.md
13005 (define_mode_iterator VI4F_BRCST32x2): New.
13006 (define_mode_attr 64x2_mode): Ditto.
13007 (define_mode_attr 32x2mode): Ditto.
13008 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13009 with VI4F_BRCST32x2): Ditto.
13010 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13011 with V16FI mode iterator): Ditto.
13012 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13013 with V16FI): Ditto.
13014 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13015 with VI8F_BRCST64x2): Ditto.
13017 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13018 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13019 Anna Tikhonova <anna.tikhonova@intel.com>
13020 Ilya Tocar <ilya.tocar@intel.com>
13021 Andrey Turetskiy <andrey.turetskiy@intel.com>
13022 Ilya Verbin <ilya.verbin@intel.com>
13023 Kirill Yukhin <kirill.yukhin@intel.com>
13024 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13026 * config/i386/sse.md
13027 (define_mode_iterator VI8_AVX512VL): New.
13028 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13030 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
13032 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13033 (define_mode_iterator V48_AVX512VL): New.
13034 (define_mode_iterator V12_AVX512VL): Ditto.
13035 (define_insn <avx512>_load<mode>_mask): Split into two similar
13036 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13037 Refactor output template.
13038 (define_insn "<avx512>_store<mode>_mask"): Ditto.
13040 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13042 * cprop.c (struct occr): Strengthen field "insn" from rtx to
13044 (reg_available_p): Likewise for param "insn".
13045 (insert_set_in_table): Likewise.
13046 (hash_scan_set): Likewise.
13047 (hash_scan_insn): Likewise.
13048 (make_set_regs_unavailable): Likewise.
13049 (compute_hash_table_work): Likewise for local "insn".
13050 (reg_not_set_p): Strengthen param "insn" from const_rtx to
13052 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13053 (try_replace_reg): Likewise.
13054 (find_avail_set): Likewise.
13055 (cprop_jump): Likewise for params "setcc", "jump".
13056 (constprop_register): Likewise for param "insn".
13057 (cprop_insn): Likewise.
13058 (do_local_cprop): Likewise.
13059 (local_cprop_pass): Likewise for local "insn".
13060 (bypass_block): Likewise for params "setcc" and "jump".
13061 (bypass_conditional_jumps): Likewise for locals "setcc" and
13063 (one_cprop_pass): Likewise for local "insn".
13065 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13067 * compare-elim.c (struct comparison_use): Strengthen field "insn"
13068 from rtx to rtx_insn *.
13069 (struct comparison): Likewise, also for field "prev_clobber".
13070 (conforming_compare): Likewise for param "insn".
13071 (arithmetic_flags_clobber_p): Likewise.
13072 (find_flags_uses_in_insn): Likewise.
13073 (find_comparison_dom_walker::before_dom_children): Likewise for
13074 locals "insn", "next", "last_clobber".
13075 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
13077 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13079 * combine-stack-adj.c (struct csa_reflist): Strengthen field
13080 "insn" from rtx to rtx_insn *.
13081 (single_set_for_csa): Likewise for param "insn".
13082 (record_one_stack_ref): Likewise.
13083 (try_apply_stack_adjustment): Likewise.
13084 (struct record_stack_refs_data): Likewise for field "insn".
13085 (maybe_move_args_size_note): Likewise for params "last" and "insn".
13086 (prev_active_insn_bb): Likewise for return type and param "insn".
13087 (next_active_insn_bb): Likewise.
13088 (force_move_args_size_note): Likewise for params "prev" and "last"
13089 and locals "test", "next_candidate", "prev_candidate".
13090 (combine_stack_adjustments_for_block): Strengthen locals
13091 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
13094 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13096 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
13097 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
13098 (subst_insn): Likewise for this variable.
13099 (added_links_insn): Likewise.
13100 (struct insn_link): Likewise for field "insn".
13101 (alloc_insn_link): Likewise for param "insn".
13102 (struct undobuf): Likewise for field "other_insn".
13103 (find_single_use): Likewise for param "insn" and local "next".
13104 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
13105 (delete_noop_moves): Likewise for locals "insn", "next".
13106 (create_log_links): Likewise for locals "insn", "use_insn".
13107 Strengthen local "next_use" from rtx * to rtx_insn **.
13108 (insn_a_feeds_b): Likewise for params "a", "b".
13109 (combine_instructions): Likewise for param "f" and locals "insn",
13110 "next", "prev", "first", "last_combined_insn", "link", "link1",
13111 "temp". Replace use of NULL_RTX with NULL when referring to
13113 (setup_incoming_promotions): Likewise for param "first"
13114 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
13115 (can_combine_p): Likewise for params "insn", "i3", "pred",
13116 "pred2", "succ", "succ2" and for local "p".
13117 (combinable_i3pat): Likewise for param "i3".
13118 (cant_combine_insn_p): Likewise for param "insn".
13119 (likely_spilled_retval_p): Likewise.
13120 (adjust_for_new_dest): Likewise.
13121 (update_cfg_for_uncondjump): Likewise, also for local "insn".
13122 (try_combine): Likewise for return type and for params "i3", "i2",
13123 "i1", "i0", "last_combined_insn", and for locals "insn",
13124 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
13125 "i0_insn". Eliminate local "tem" in favor of new locals
13126 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
13127 checked cast for now to rtx_insn * on the return type of
13128 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
13130 (find_split_point): Strengthen param "insn" from rtx to
13132 (simplify_set): Likewise for local "other_insn".
13133 (recog_for_combine): Likewise for param "insn".
13134 (record_value_for_reg): Likewise.
13135 (record_dead_and_set_regs_1): Likewise for local
13136 "record_dead_insn".
13137 (record_dead_and_set_regs): Likewise for param "insn".
13138 (record_promoted_value): Likewise.
13139 (check_promoted_subreg): Likewise.
13140 (get_last_value_validate): Likewise.
13141 (reg_dead_at_p): Likewise.
13142 (move_deaths): Likewise for param "to_insn".
13143 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
13144 and locals "place", "place2", "cc0_setter". Eliminate local "tem
13145 in favor of new locals "tem_note" and "tem_insn", the latter being
13147 (distribute_links): Strengthen locals "place", "insn" from rtx to
13150 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13152 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
13154 (can_delete_label_p): Require a const rtx_code_label * rather than
13156 (delete_insn): Add checked cast to rtx_code_label * when we know
13157 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
13159 (delete_insn_chain): Strengthen locals "prev" and "current" from
13160 rtx to rtx_insn *. Add a checked cast when assigning from
13161 "finish" (strengthening the params will come later). Add a
13162 checked cast to rtx_note * in region where we know
13164 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
13166 (compute_bb_for_insn): Likewise.
13167 (free_bb_for_insn): Likewise for local "insn".
13168 (compute_bb_for_insn): Likewise.
13169 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
13170 local "insn" from rtx to rtx_insn *
13171 (flow_active_insn_p): Require a const rtx_insn * rather than a
13173 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
13175 (can_fallthru): Likewise for locals "insn" and "insn2".
13176 (bb_note): Likewise for local "note".
13177 (first_insn_after_basic_block_note): Likewise for local "note" and
13179 (rtl_split_block): Likewise for locals "insn" and "next".
13180 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
13182 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
13183 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
13185 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
13186 them), "kill_from", "barrier", "new_insn".
13187 (patch_jump_insn): Likewise for params "insn", "old_label".
13188 (redirect_branch_edge): Likewise for locals "old_label", "insn".
13189 (force_nonfallthru_and_redirect): Likewise for locals "insn",
13190 "old_label", "new_label".
13191 (rtl_tidy_fallthru_edge): Likewise for local "q".
13192 (rtl_split_edge): Likewise for locals "before", "last".
13193 (commit_one_edge_insertion): Likewise for locals "before",
13194 "after", "insns", "tmp", "last", adding a checked cast where
13195 currently necessary.
13196 (commit_edge_insertions): Likewise.
13197 (rtl_dump_bb): Likewise for locals "insn", "last".
13198 (print_rtl_with_bb): Likewise for local "x".
13199 (rtl_verify_bb_insns): Likewise for local "x".
13200 (rtl_verify_bb_pointers): Likewise for local "insn".
13201 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
13203 (rtl_verify_fallthru): Likewise for local "insn".
13204 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
13205 (purge_dead_edges): Likewise for local "insn".
13206 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
13207 (skip_insns_after_block): Likewise for return type and for locals
13208 "insn", "last_insn", "next_head", "prev".
13209 (record_effective_endpoints): Likewise for locals "next_insn",
13211 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
13212 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
13213 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
13214 (duplicate_insn_chain): For now, add checked cast from rtx to
13215 rtx_insn * when returning insn.
13216 (cfg_layout_duplicate_bb): Likewise for local "insn".
13217 (cfg_layout_delete_block): Likewise for locals "insn", "next",
13218 "prev", "remaints".
13219 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
13220 (rtl_block_empty_p): Likewise.
13221 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
13222 "split_point", "last".
13223 (rtl_block_ends_with_call_p): Likewise for local "insn".
13224 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
13226 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
13227 "split_at_insn" from rtx to rtx_insn *.
13228 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
13229 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
13230 to const rtx_insn *.
13231 (rtl_account_profile_record): Likewise.
13233 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13235 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
13237 (average_num_loop_insns): Likewise.
13238 (init_set_costs): Likewise for local "seq".
13239 (seq_cost): Likewise for param "seq", from const_rtx to const
13242 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13244 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
13247 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13249 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
13250 "f1" and "f2" from rtx * to rtx_insn **.
13251 (flow_find_head_matching_sequence): Likewise.
13253 * cfgcleanup.c (try_simplify_condjump): Strengthen local
13254 "cbranch_insn" from rtx to rtx_insn *.
13255 (thread_jump): Likewise for local "insn".
13256 (try_forward_edges): Likewise for local "last".
13257 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
13258 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
13260 (can_replace_by): Likewise for params "i1", "i2".
13261 (old_insns_match_p): Likewise.
13262 (merge_notes): Likewise.
13263 (walk_to_nondebug_insn): Likewise for param "i1".
13264 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
13265 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
13266 "afterlast1", "afterlast2" from rtx to rtx_insn *.
13267 (flow_find_head_matching_sequence): Strengthen params "f1" and
13268 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
13269 "last1", "last2", "beforelast1", "beforelast2" from rtx to
13271 (outgoing_edges_match): Likewise for locals "last1", "last2".
13272 (try_crossjump_to_edge): Likewise for local "insn".
13273 Replace call to for_each_rtx with for_each_rtx_in_insn.
13275 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
13276 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
13277 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
13278 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
13279 (try_optimize_cfg): Strengthen local "last" from rtx to
13281 (delete_dead_jumptables): Likewise for locals "insn", "next",
13284 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
13285 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
13286 "rtx else_first_tail", to reflect the basic-block.h changes above.
13288 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13290 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
13292 (purge_dead_tablejump_edges): Likewise.
13293 (find_bb_boundaries): Likewise for locals "insn", "end",
13294 "flow_transfer_insn".
13296 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13298 * caller-save.c (save_call_clobbered_regs): Strengthen locals
13299 "ins" and "prev" from rtx to rtx_insn *.
13301 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13303 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
13305 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
13306 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
13308 (load_register_parameters): Likewise for local "before_arg".
13309 (check_sibcall_argument_overlap): Likewise for param "insn".
13310 (expand_call): Likewise for locals "normal_call_insns",
13311 "tail_call_insns", "insns", "before_call", "after_args",
13312 "before_arg", "last", "prev". Strengthen one of the "last" from
13313 rtx to rtx_call_insn *.
13314 (fixup_tail_calls): Strengthen local "insn" from rtx to
13316 (emit_library_call_value_1): Likewise for locals "before_call" and
13319 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13321 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13322 and "last" from rtx to rtx_insn *.
13323 (expand_builtin_nonlocal_goto): Likewise for local "insn".
13324 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13326 (expand_errno_check): Strengthen local "lab" from rtx to
13328 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13330 (expand_builtin_mathfn_2): Likewise.
13331 (expand_builtin_mathfn_ternary): Likewise.
13332 (expand_builtin_mathfn_3): Likewise.
13333 (expand_builtin_interclass_mathfn): Likewise for local "last".
13334 (expand_builtin_int_roundingfn): Likewise for local "insns".
13335 (expand_builtin_int_roundingfn_2): Likewise.
13336 (expand_builtin_strlen): Likewise for local "before_strlen".
13337 (expand_builtin_strncmp): Likewise for local "seq".
13338 (expand_builtin_signbit): Likewise for local "last".
13339 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13340 from rtx to rtx_code_label *.
13341 (expand_stack_restore): Strengthen local "prev" from rtx to
13344 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13346 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13348 (struct btr_def_s): Likewise.
13349 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13351 (add_btr_def): Likewise.
13352 (new_btr_user): Likewise.
13353 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13355 (link_btr_uses): Likewise.
13356 (move_btr_def): Likewise for locals "insp", "old_insn",
13357 "new_insn". Add checked cast to rtx_insn * for now on result of
13359 (can_move_up): Strengthen param "insn" from const_rtx to
13362 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13364 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13366 (get_uncond_jump_length): Likewise for locals "label", "jump".
13367 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13369 (add_labels_and_missing_jumps): Likewise for local "new_jump".
13370 (fix_up_fall_thru_edges): Likewise for local "old_jump".
13371 (find_jump_block): Likewise for local "insn".
13372 (fix_crossing_conditional_branches): Likewise for locals
13373 "old_jump", "new_jump".
13374 (fix_crossing_unconditional_branches): Likewise for locals
13375 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13376 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13378 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13380 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13382 (struct mem_insn): Likewise for field "insn".
13383 (reg_next_use): Strengthen from rtx * to rtx_insn **.
13384 (reg_next_inc_use): Likewise.
13385 (reg_next_def): Likewise.
13386 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13387 from rtx to rtx_insn *.
13388 (move_insn_before): Likewise for param "next_insn" and local "insns".
13389 (attempt_change): Likewise for local "mov_insn".
13390 (try_merge): Likewise for param "last_insn".
13391 (get_next_ref): Likewise for return type and local "insn".
13392 Strengthen param "next_array" from rtx * to rtx_insn **.
13393 (parse_add_or_inc): Strengthen param "insn" from rtx to
13395 (find_inc): Likewise for locals "insn" and "other_insn" (three of
13397 (merge_in_block): Likewise for locals "insn", "curr",
13399 (pass_inc_dec::execute): Update allocations of the arrays to
13400 reflect the stronger types.
13402 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13404 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13405 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
13406 from rtx to rtx_code_label *.
13408 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13410 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
13413 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13415 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
13416 generated a warning and prevented bootstrapping the compiler.
13418 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13420 * rtl.h (delete_related_insns): Strengthen return type from rtx to
13423 * jump.c (delete_related_insns): Likewise, also for locals "next"
13426 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13428 * genautomata.c (output_internal_insn_latency_func): When writing
13429 the function "internal_insn_latency" to insn-automata.c,
13430 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13431 allowing the optional guard function of (define_bypass) clauses to
13432 expect a pair of rtx_insn *, rather than a pair of rtx.
13433 (output_insn_latency_func): When writing the function
13434 "insn_latency", add an "uncast_" prefix to params "insn" and
13435 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13436 using checked casts from the params, thus enabling the above
13437 change to the generated "internal_insn_latency" function.
13439 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
13441 PR tree-optimization/62091
13442 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13443 handle correctly arrays.
13444 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13445 inheritance binfos.
13446 (record_known_type): Walk into inner type.
13447 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13448 condition on no type changes.
13450 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13452 * genattrtab.c (write_attr_get): Within the generated get_attr_
13453 functions, rename param "insn" to "uncast_insn" and reintroduce
13454 "insn" as an local rtx_insn * using a checked cast, so that "insn"
13455 is an rtx_insn * within insn-attrtab.c
13457 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13459 * output.h (peephole): Strengthen return type from rtx to
13461 * rtl.h (delete_for_peephole): Likewise for both params.
13462 * genpeep.c (main): In generated "peephole" function, strengthen
13463 return type and local "insn" from rtx to rtx_insn *. For now,
13464 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
13465 rtx_insn *, with a checked cast.
13466 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
13467 locals "insn", "next", "prev" from rtx to rtx_insn *.
13469 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
13471 PR tree-optimization/62112
13472 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
13473 * gimple-iterator.h (gsi_replace): Return bool.
13474 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
13475 moved from ref_may_alias_global_p.
13476 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
13478 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
13479 (stmt_kills_ref_p_1): Rename...
13480 (stmt_kills_ref_p): ... to this.
13481 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
13482 stmt_kills_ref_p): Declare.
13483 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
13484 Move the self-assignment case...
13485 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
13487 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13489 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
13491 * emit-rtl.c (try_split): Likewise, also for locals "before" and
13492 "after". For now, don't strengthen param "trial", which requires
13493 adding checked casts when returning it.
13495 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13497 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
13498 "label" from rtx to rtx_code_label *. Strengthen param 1 of
13499 "var_location" hook from rtx to rtx_insn *.
13500 (debug_nothing_rtx): Delete in favor of...
13501 (debug_nothing_rtx_code_label): New prototype.
13502 (debug_nothing_rtx_rtx): Delete unused prototype.
13503 (debug_nothing_rtx_insn): New prototype.
13505 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
13506 invoking debug_hooks->var_location (in two places, one in a NOTE
13507 case of a switch statement, the other guarded by a CALL_P
13508 conditional. Add checked cast to rtx_code_label * when invoking
13509 debug_hooks->label (within CODE_LABEL case of switch statement).
13511 * dbxout.c (dbx_debug_hooks): Update "label" hook from
13512 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13513 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
13514 (xcoff_debug_hooks): Likewise.
13515 * debug.c (do_nothing_debug_hooks): Likewise.
13516 (debug_nothing_rtx): Delete in favor of...
13517 (debug_nothing_rtx_insn): New function.
13518 (debug_nothing_rtx_rtx): Delete unused function.
13519 (debug_nothing_rtx_code_label): New function.
13520 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
13521 debug_nothing_rtx to debug_nothing_rtx_code_label.
13522 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
13524 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
13525 debug_nothing_rtx to debug_nothing_rtx_insn.
13526 (sdbout_label): Strengthen param "insn" from rtx to
13528 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
13529 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13530 "var_location" hook from debug_nothing_rtx to
13531 debug_nothing_rtx_insn.
13533 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13535 * recog.h (insn_output_fn): Update this function typedef to match
13536 the changes below to the generated output functions, strengthening
13537 the 2nd param from rtx to rtx_insn *.
13539 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
13540 insn when invoking an output function, to match the new signature
13541 of insn_output_fn with a stronger second param.
13543 * genconditions.c (write_header): In the generated code for
13544 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
13545 to match the other changes in this patch.
13547 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
13548 the generated "gen_" functions from rtx to rtx_insn * within their
13551 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
13552 the subfunctions within the generated "recog_", "split", "peephole2"
13553 function trees from rtx to rtx_insn *. For now, the top-level
13554 generated functions ("recog", "split", "peephole2") continue to
13555 take a plain rtx for "insn", to avoid introducing dependencies on
13556 other patches. Rename this 2nd param from "insn" to
13557 "uncast_insn", and reintroduce "insn" as a local variable of type
13558 rtx_insn *, initialized at the top of the generated function with
13559 a checked cast on "uncast_insn".
13560 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
13561 the generated "gen_" functions from rtx to rtx_insn * within their
13564 * genoutput.c (process_template): Strengthen the 2nd param within
13565 the generated "output_" functions "insn" from rtx to rtx_insn *.
13567 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13569 * tree-profile.c (tree_profiling): Skip external functions
13570 when doing coverage instrumentation.
13571 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
13573 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13575 * config/rs6000/altivec.h (vec_cpsgn): New #define.
13576 (vec_mergee): Likewise.
13577 (vec_mergeo): Likewise.
13578 (vec_cntlz): Likewise.
13579 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
13580 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
13581 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
13582 VMRGEW, and VMRGOW.
13583 * doc/extend.texi: Document various forms of vec_cpsgn,
13584 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
13585 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
13586 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
13587 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
13588 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
13590 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13592 * config/rs6000/rs6000.c (context.h): New include.
13593 (tree-pass.h): Likewise.
13594 (make_pass_analyze_swaps): New decl.
13595 (rs6000_option_override): Register pass_analyze_swaps.
13596 (swap_web_entry): New subsclass of web_entry_base (df.h).
13597 (special_handling_values): New enum.
13598 (union_defs): New function.
13599 (union_uses): Likewise.
13600 (insn_is_load_p): Likewise.
13601 (insn_is_store_p): Likewise.
13602 (insn_is_swap_p): Likewise.
13603 (rtx_is_swappable_p): Likewise.
13604 (insn_is_swappable_p): Likewise.
13605 (chain_purpose): New enum.
13606 (chain_contains_only_swaps): New function.
13607 (mark_swaps_for_removal): Likewise.
13608 (swap_const_vector_halves): Likewise.
13609 (adjust_subreg_index): Likewise.
13610 (permute_load): Likewise.
13611 (permute_store): Likewise.
13612 (handle_special_swappables): Likewise.
13613 (replace_swap_with_copy): Likewise.
13614 (dump_swap_insn_table): Likewise.
13615 (rs6000_analyze_swaps): Likewise.
13616 (pass_data_analyze_swaps): New pass_data.
13617 (pass_analyze_swaps): New rtl_opt_pass.
13618 (make_pass_analyze_swaps): New function.
13619 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
13621 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13623 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
13624 type from rtx to rtx_insn *.
13625 (create_copy_of_insn_rtx): Likewise.
13626 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
13627 (create_copy_of_insn_rtx): Likewise, also for local "res".
13629 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13631 * rtl.h (find_first_parameter_load): Strengthen return type from
13633 * rtlanal.c (find_first_parameter_load): Strengthen return type
13634 from rtx to rtx_insn *. Add checked cast for now, to postpone
13635 strengthening the params.
13637 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13640 * diagnostic.c: Set default caret.
13641 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
13643 * diagnostic.h (struct diagnostic_context):
13645 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13647 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
13648 (sel_bb_head): Strengthen return type insn_t (currently just an
13649 rtx) to rtx_insn *.
13650 (sel_bb_end): Likewise.
13652 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
13653 (sel_bb_head): Strengthen return type and local "head" from
13654 insn_t (currently just an rtx) to rtx_insn *.
13655 (sel_bb_end): Likewise for return type.
13656 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
13659 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13661 * basic-block.h (get_last_bb_insn): Strengthen return type from
13663 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
13666 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13669 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
13671 (diagnostic_report_diagnostic): ... from here.
13672 * toplev.c (general_init): Move code to c-family.
13674 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13676 * df.h (web_entry_base): Replace existing struct web_entry with a
13677 new class web_entry_base with only the predecessor member.
13678 (unionfind_root): Remove declaration and move to class member.
13679 (unionfind_union): Remove declaration and move to friend
13681 (union_defs): Remove declaration.
13682 * web.c (web_entry_base::unionfind_root): Modify to be member
13683 function and adjust accessors.
13684 (unionfind_union): Modify to be friend function and adjust
13686 (web_entry): New subclass of web_entry_base containing the reg
13688 (union_match_dups): Modify for struct -> class changes.
13689 (union_defs): Likewise.
13690 (entry_register): Likewise.
13691 (pass_web::execute): Likewise.
13693 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
13695 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
13696 builtin define __VEC_ELEMENT_REG_ORDER__.
13698 2014-08-20 Martin Jambor <mjambor@suse.cz>
13699 Wei Mi <wmi@google.com>
13702 PR middle-end/61776
13703 * tree-ssa-operands.c (update_stmt_operands): Remove
13704 MODIFIED_NORETURN_CALLS.
13705 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
13706 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
13707 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
13708 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
13709 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
13710 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
13711 (gimple_call_set_ctrl_altering): New func.
13712 (gimple_call_ctrl_altering_p): Ditto.
13713 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
13714 (make_blocks): Use gimple_call_initialize_ctrl_altering.
13715 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
13716 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
13717 remove MODIFIED_NORETURN_CALLS.
13719 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13721 * coverage.c (coverage_compute_profile_id): Return non-0;
13722 also handle symbols with unique name.
13723 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
13725 2014-08-20 Steve Ellcey <sellcey@mips.com>
13727 PR middle-end/49191
13728 * doc/sourcebuild.texi (non_strict_align): New.
13730 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13732 * cgraphunit.c (ipa_passes, compile): Reshedule
13733 symtab_remove_unreachable_nodes passes; update comments.
13734 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
13735 TODO_remove_functions before the pass; the functions ought to be
13737 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
13738 TODO_remove_functions.
13739 * passes.c (pass_data_early_local_passes): Do not schedule function
13741 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
13743 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13746 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
13747 before setting the option.
13748 * diagnostic.c (diagnostic_classify_diagnostic): Record
13749 command-line status.
13751 2014-08-20 Richard Biener <rguenther@suse.de>
13754 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
13755 to build uint{16,32,64}_type_node.
13757 2014-08-20 Terry Guo <terry.guo@arm.com>
13759 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
13760 with immediate_operand.
13762 2014-08-20 David Malcolm <dmalcolm@redhat.com>
13764 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
13765 "insn" from an as_a to a safe_as_a, for the case when "insn" is
13768 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13770 PR preprocessor/51303
13771 * incpath.c (remove_duplicates): Use cpp_warning.
13773 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13777 * doc/options.texi (CPP): Document it.
13778 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
13779 * optc-gen.awk: Handle CPP.
13780 * opth-gen.awk: Likewise.
13782 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13784 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
13786 (duplicate_insn_chain): Likewise.
13787 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
13788 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
13789 checked cast for now (until we can strengthen the params in the
13791 (duplicate_insn_chain): Likewise.
13793 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13795 * rtl.h (next_cc0_user): Strengthen return type from rtx to
13797 (prev_cc0_setter): Likewise.
13799 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
13800 rtx_insn *, adding checked casts for now as necessary.
13801 (prev_cc0_setter): Likewise.
13803 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13805 * expr.h (emit_move_insn): Strengthen return type from rtx to
13807 (emit_move_insn_1): Likewise.
13808 (emit_move_complex_push): Likewise.
13809 (emit_move_complex_parts): Likewise.
13811 * expr.c (emit_move_via_integer): Strengthen return type from rtx
13812 to rtx_insn *. Replace use of NULL_RTX with NULL when working
13814 (emit_move_complex_push): Strengthen return type from rtx to
13816 (emit_move_complex): Likewise, also for local "ret".
13817 (emit_move_ccmode): Likewise.
13818 (emit_move_multi_word): Likewise for return type and locals
13819 "last_insn", "seq".
13820 (emit_move_insn_1): Likewise for return type and locals "result",
13822 (emit_move_insn): Likewise for return type and local "last_insn".
13823 (compress_float_constant): Likewise.
13825 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13827 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
13828 from rtx to rtx_insn *.
13830 * rtl.h (emit_insn_before): Likewise.
13831 (emit_insn_before_noloc): Likewise.
13832 (emit_insn_before_setloc): Likewise.
13833 (emit_jump_insn_before): Likewise.
13834 (emit_jump_insn_before_noloc): Likewise.
13835 (emit_jump_insn_before_setloc): Likewise.
13836 (emit_call_insn_before): Likewise.
13837 (emit_call_insn_before_noloc): Likewise.
13838 (emit_call_insn_before_setloc): Likewise.
13839 (emit_debug_insn_before): Likewise.
13840 (emit_debug_insn_before_noloc): Likewise.
13841 (emit_debug_insn_before_setloc): Likewise.
13842 (emit_label_before): Likewise.
13843 (emit_insn_after): Likewise.
13844 (emit_insn_after_noloc): Likewise.
13845 (emit_insn_after_setloc): Likewise.
13846 (emit_jump_insn_after): Likewise.
13847 (emit_jump_insn_after_noloc): Likewise.
13848 (emit_jump_insn_after_setloc): Likewise.
13849 (emit_call_insn_after): Likewise.
13850 (emit_call_insn_after_noloc): Likewise.
13851 (emit_call_insn_after_setloc): Likewise.
13852 (emit_debug_insn_after): Likewise.
13853 (emit_debug_insn_after_noloc): Likewise.
13854 (emit_debug_insn_after_setloc): Likewise.
13855 (emit_label_after): Likewise.
13856 (emit_insn): Likewise.
13857 (emit_debug_insn): Likewise.
13858 (emit_jump_insn): Likewise.
13859 (emit_call_insn): Likewise.
13860 (emit_label): Likewise.
13861 (gen_clobber): Likewise.
13862 (emit_clobber): Likewise.
13863 (gen_use): Likewise.
13864 (emit_use): Likewise.
13867 (emit_barrier_before): Strengthen return type from rtx to
13869 (emit_barrier_after): Likewise.
13870 (emit_barrier): Likewise.
13872 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
13873 from rtx to rtx_insn *. Add checked casts for now when converting
13874 "last" from rtx to rtx_insn *.
13875 (emit_insn_before_noloc): Likewise for return type.
13876 (emit_jump_insn_before_noloc): Likewise.
13877 (emit_call_insn_before_noloc): Likewise.
13878 (emit_debug_insn_before_noloc): Likewise.
13879 (emit_barrier_before): Strengthen return type and local "insn"
13880 from rtx to rtx_barrier *.
13881 (emit_label_before): Strengthen return type from rtx to
13882 rtx_insn *. Add checked cast for now when returning param
13883 (emit_pattern_after_noloc): Strengthen return type from rtx to
13884 rtx_insn *. Add checked casts for now when converting "last" from
13886 (emit_insn_after_noloc): Strengthen return type from rtx to
13888 (emit_jump_insn_after_noloc): Likewise.
13889 (emit_call_insn_after_noloc): Likewise.
13890 (emit_debug_insn_after_noloc): Likewise.
13891 (emit_barrier_after): Strengthen return type from rtx to
13893 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
13894 Add checked cast for now when converting "label" from rtx to
13896 (emit_pattern_after_setloc): Strengthen return type from rtx to
13897 rtx_insn *. Add checked casts for now when converting "last" from
13899 (emit_pattern_after): Strengthen return type from rtx to
13901 (emit_insn_after_setloc): Likewise.
13902 (emit_insn_after): Likewise.
13903 (emit_jump_insn_after_setloc): Likewise.
13904 (emit_jump_insn_after): Likewise.
13905 (emit_call_insn_after_setloc): Likewise.
13906 (emit_call_insn_after): Likewise.
13907 (emit_debug_insn_after_setloc): Likewise.
13908 (emit_debug_insn_after): Likewise.
13909 (emit_pattern_before_setloc): Likewise. Add checked casts for now
13910 when converting "last" from rtx to rtx_insn *.
13911 (emit_pattern_before): Strengthen return type from rtx to
13913 (emit_insn_before_setloc): Likewise.
13914 (emit_insn_before): Likewise.
13915 (emit_jump_insn_before_setloc): Likewise.
13916 (emit_jump_insn_before): Likewise.
13917 (emit_call_insn_before_setloc): Likewise.
13918 (emit_call_insn_before): Likewise.
13919 (emit_debug_insn_before_setloc): Likewise.
13920 (emit_debug_insn_before): Likewise.
13921 (emit_insn): Strengthen return type and locals "last", "insn",
13922 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
13923 within cases where we know we have an insn.
13924 (emit_debug_insn): Likewise.
13925 (emit_jump_insn): Likewise.
13926 (emit_call_insn): Strengthen return type and local "insn" from rtx
13928 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
13929 a checked cast to rtx_insn * for now on "label".
13930 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
13931 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
13932 (emit_use): Likewise.
13933 (gen_use): Likewise, also for local "seq".
13934 (emit): Likewise for return type and local "insn".
13935 (rtx_insn): Likewise for return type and local "new_rtx".
13937 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
13938 from rtx to rtx_barrier *.
13940 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
13941 changed return type from rtx to rtx_insn *, we must update
13942 "emit_fn" type, and this in turn means updating...
13943 (frame_insn): ...this. Strengthen return type from rtx to
13944 rtx_insn *. Introduce a new local "insn" of the appropriate type.
13946 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13948 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
13949 rtx to rtx_jump_table_data *. Also for local.
13950 * rtl.h (emit_jump_table_data): Likewise.
13952 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13954 * basic-block.h (create_basic_block_structure): Strengthen third
13955 param "bb_note" from rtx to rtx_note *.
13956 * rtl.h (emit_note_before): Strengthen return type from rtx to
13958 (emit_note_after): Likewise.
13959 (emit_note): Likewise.
13960 (emit_note_copy): Likewise. Also, strengthen param similarly.
13961 * function.h (struct rtl_data): Strengthen field
13962 "x_stack_check_probe_note" from rtx to rtx_note *.
13964 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
13965 from rtx to rtx_note *.
13966 * cfgrtl.c (create_basic_block_structure): Strengthen third param
13967 "bb_note" from rtx to rtx_note *.
13968 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
13969 when calling emit_note_copy.
13970 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
13972 (emit_note_after): Likewise.
13973 (emit_note_before): Likewise.
13974 (emit_note_copy): Likewise. Also, strengthen param similarly.
13975 (emit_note): Likewise.
13976 * except.c (emit_note_eh_region_end): Likewise for return type.
13977 Strengthen local "next" from rtx to rtx_insn *.
13978 (convert_to_eh_region_ranges): Strengthen local "note"
13979 from rtx to rtx_note *.
13980 * final.c (change_scope): Likewise.
13981 (reemit_insn_block_notes): Likewise, for both locals named "note".
13982 Also, strengthen local "insn" from rtx to rtx_insn *.
13983 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
13985 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
13986 strengthen local "seq" from rtx to rtx_insn *.
13987 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
13989 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
13991 (get_bb_note_from_pool): Strengthen return type from rtx to
13993 (sel_create_basic_block): Strengthen local "new_bb_note" from
13994 insn_t to rtx_note *.
13995 * var-tracking.c (emit_note_insn_var_location): Strengthen local
13996 "note" from rtx to rtx_note *.
13997 (emit_notes_in_bb): Likewise.
13999 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14001 * function.h (struct rtl_data): Strengthen field
14002 "x_parm_birth_insn" from rtx to rtx_insn *.
14003 * function.c (struct assign_parm_data_all): Strengthen fields
14004 "first_conversion_insn" and "last_conversion_insn" from rtx to
14007 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14009 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14010 to rtx_insn *; also for local "var_end_seq".
14011 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14012 (maybe_cleanup_end_of_block): Likewise for param "last" and local
14014 (expand_gimple_cond): Likewise for locals "last2" and "last".
14015 (mark_transaction_restart_calls): Likewise for local "insn".
14016 (expand_gimple_stmt): Likewise for return type and locals "last"
14018 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14019 (avoid_complex_debug_insns): Likewise for param "insn".
14020 (expand_debug_locations): Likewise for locals "insn", "last",
14021 "prev_insn" and "insn2".
14022 (expand_gimple_basic_block): Likewise for local "last".
14023 (construct_exit_block): Likewise for locals "head", "end",
14025 (pass_expand::execute): Likewise for locals "var_seq",
14026 "var_ret_seq", "next".
14028 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14030 * asan.h (asan_emit_stack_protection): Strengthen return type from
14032 * asan.c (asan_emit_stack_protection): Likewise. Add local
14033 "insns" to hold the return value.
14035 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14037 * basic-block.h (bb_note): Strengthen return type from rtx to
14039 * sched-int.h (bb_note): Likewise.
14040 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
14042 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14044 * rtl.h (make_insn_raw): Strengthen return type from rtx to
14047 * emit-rtl.c (make_insn_raw): Strengthen return type and local
14048 "insn" from rtx to rtx_insn *.
14049 (make_debug_insn_raw): Strengthen return type from rtx to
14050 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14051 (make_jump_insn_raw): Strengthen return type from rtx to
14052 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14053 (make_call_insn_raw): Strengthen return type from rtx to
14054 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14055 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14056 callback from rtx to rtx_insn *; likewise for local "insn" and
14057 "next", adding a checked cast to rtx_insn in the relevant cases of
14058 the switch statement.
14059 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14060 callback from rtx to rtx_insn *.
14061 (emit_pattern_after_setloc): Likewise.
14062 (emit_pattern_after): Likewise.
14063 (emit_pattern_before_setloc): Likewise.
14064 (emit_pattern_before): Likewise.
14066 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14068 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
14070 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
14071 accepting an rtx_insn *.
14072 (last_call_insn): Strengthen return type from rtx to
14075 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14077 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
14078 "insns" from rtx to rtx_insn *.
14079 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
14080 locals "insn" and "prev".
14082 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14084 * rtl.h (tablejump_p): Strengthen third param from rtx * to
14085 rtx_jump_table_data **.
14087 * cfgbuild.c (make_edges): Introduce local "table", using it in
14088 place of "tmp" for jump table data.
14089 (find_bb_boundaries): Strengthen local "table" from rtx to
14090 rtx_jump_table_data *.
14091 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14092 (outgoing_edges_match): Likewise for locals "table1" and "table2".
14093 (try_crossjump_to_edge): Likewise.
14094 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
14096 (patch_jump_insn): Introduce local "table", using it in place of
14097 "tmp" for jump table data.
14098 (force_nonfallthru_and_redirect): Introduce local "table", so that
14099 call to tablejump_p can receive an rtx_jump_table_data **. Update
14100 logic around the call to overwrite "note" appropriately if
14101 tablejump_p returns non-zero.
14102 (get_last_bb_insn): Introduce local "table", using it in place of
14103 "tmp" for jump table data.
14104 * dwarf2cfi.c (create_trace_edges): Likewise.
14106 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
14107 from rtx to rtx_jump_table_data *.
14108 (create_fix_barrier): Strengthen local "tmp" from rtx to
14109 rtx_jump_table_data *.
14110 (arm_reorg): Likewise for local "table".
14112 * config/s390/s390.c (s390_chunkify_start): Likewise.
14114 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
14116 * jump.c (delete_related_insns): Strengthen local "lab_next" from
14117 rtx to rtx_jump_table_data *.
14119 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
14120 rtx_jump_table_data **. Add a checked cast when writing through
14121 the pointer: we know there that local "table" is non-NULL and that
14122 JUMP_TABLE_DATA_P (table) holds.
14123 (label_is_jump_target_p): Introduce local "table", using it in
14124 place of "tmp" for jump table data.
14126 2014-08-19 Marek Polacek <polacek@redhat.com>
14129 * doc/invoke.texi: Document -Wbool-compare.
14131 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14133 * rtl.h (entry_of_function): Strengthen return type from rtx to
14135 * cfgrtl.c (entry_of_function): Likewise.
14137 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14139 * emit-rtl.h (get_insns): Strengthen return type from rtx to
14140 rtx_insn *, adding a checked cast for now.
14141 (get_last_insn): Likewise.
14143 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14145 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
14148 * emit-rtl.c (gen_label_rtx): Likewise.
14150 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14152 * rtl.h (previous_insn): Strengthen return type from rtx to
14154 (next_insn): Likewise.
14155 (prev_nonnote_insn): Likewise.
14156 (prev_nonnote_insn_bb): Likewise.
14157 (next_nonnote_insn): Likewise.
14158 (next_nonnote_insn_bb): Likewise.
14159 (prev_nondebug_insn): Likewise.
14160 (next_nondebug_insn): Likewise.
14161 (prev_nonnote_nondebug_insn): Likewise.
14162 (next_nonnote_nondebug_insn): Likewise.
14163 (prev_real_insn): Likewise.
14164 (next_real_insn): Likewise.
14165 (prev_active_insn): Likewise.
14166 (next_active_insn): Likewise.
14168 * emit-rtl.c (next_insn): Strengthen return type from rtx to
14169 rtx_insn *, adding a checked cast.
14170 (previous_insn): Likewise.
14171 (next_nonnote_insn): Likewise.
14172 (next_nonnote_insn_bb): Likewise.
14173 (prev_nonnote_insn): Likewise.
14174 (prev_nonnote_insn_bb): Likewise.
14175 (next_nondebug_insn): Likewise.
14176 (prev_nondebug_insn): Likewise.
14177 (next_nonnote_nondebug_insn): Likewise.
14178 (prev_nonnote_nondebug_insn): Likewise.
14179 (next_real_insn): Likewise.
14180 (prev_real_insn): Likewise.
14181 (next_active_insn): Likewise.
14182 (prev_active_insn): Likewise.
14184 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
14185 param "stepfunc" so that it returns an rtx_insn * rather than an
14186 rtx, to track the change to prev_nonnote_insn_bb, which is the
14187 only function this is called with.
14188 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
14190 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
14192 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
14195 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14197 * coretypes.h (class rtx_debug_insn): Add forward declaration.
14198 (class rtx_nonjump_insn): Likewise.
14199 (class rtx_jump_insn): Likewise.
14200 (class rtx_call_insn): Likewise.
14201 (class rtx_jump_table_data): Likewise.
14202 (class rtx_barrier): Likewise.
14203 (class rtx_code_label): Likewise.
14204 (class rtx_note): Likewise.
14206 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
14207 adding the invariant DEBUG_INSN_P (X).
14208 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
14209 the invariant NONJUMP_INSN_P (X).
14210 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
14211 the invariant JUMP_P (X).
14212 (class rtx_call_insn): New, a subclass of rtx_insn, adding
14213 the invariant CALL_P (X).
14214 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
14215 invariant JUMP_TABLE_DATA_P (X).
14216 (class rtx_barrier): New, a subclass of rtx_insn, adding the
14217 invariant BARRIER_P (X).
14218 (class rtx_code_label): New, a subclass of rtx_insn, adding
14219 the invariant LABEL_P (X).
14220 (class rtx_note): New, a subclass of rtx_insn, adding
14221 the invariant NOTE_P(X).
14222 (is_a_helper <rtx_debug_insn *>::test): New.
14223 (is_a_helper <rtx_nonjump_insn *>::test): New.
14224 (is_a_helper <rtx_jump_insn *>::test): New.
14225 (is_a_helper <rtx_call_insn *>::test): New.
14226 (is_a_helper <rtx_jump_table_data *>::test): New functions,
14227 overloaded for both rtx and rtx_insn *.
14228 (is_a_helper <rtx_barrier *>::test): New.
14229 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
14230 for both rtx and rtx_insn *.
14231 (is_a_helper <rtx_note *>::test): New.
14233 2014-08-19 Marek Polacek <polacek@redhat.com>
14235 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
14236 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14237 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
14238 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14240 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14242 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
14243 rtx_insn *. To help with transition, for now, convert from an
14244 access macro into a pair of functions: BND_TO, returning an
14246 (SET_BND_TO): New function, for use where BND_TO is used as an
14249 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
14251 (BND_TO): New function, adding a checked cast.
14252 (SET_BND_TO): New function.
14254 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
14256 (compute_av_set_on_boundaries): Likewise.
14258 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14260 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
14261 destination if it is used in source.
14262 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
14263 (*popcount<mode>2_falsedep_1): Likewise.
14265 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14268 * configure.ac: Set install_gold_as_default to no first.
14269 * configure: Regenerated.
14271 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14273 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
14274 "note_list" field will eventually be an rtx_insn *. To help with
14275 transition, for now, convert from an access macro into a pair of
14276 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
14277 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
14280 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
14281 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
14283 * sel-sched-ir.c (init_bb): Likewise.
14284 (sel_restore_notes): Likewise.
14285 (move_bb_info): Likewise.
14286 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
14287 (SET_BB_NOTE_LIST): New function.
14289 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14291 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
14292 field will eventually be an rtx_insn *. To help with transition,
14293 for now, convert from an access macro into a pair of functions:
14294 VINSN_INSN_RTX, returning an rtx_insn *, and...
14295 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
14296 is used as an lvalue.
14298 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
14299 SET_VINSN_INSN_RTX where it's used as an lvalue.
14300 (VINSN_INSN_RTX): New function.
14301 (SET_VINSN_INSN_RTX): New function.
14303 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14305 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
14306 eventually be rtx_insn *, but to help with transition, for now,
14307 convert from an access macro into a pair of functions: DEP_PRO
14308 returning an rtx_insn * and...
14309 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
14310 lvalue, returning an rtx&.
14311 (DEP_CON): Analogous changes to DEP_PRO above.
14312 (SET_DEP_CON): Likewise.
14314 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14315 an lvalue to SET_DEP_CON.
14316 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14317 (sd_copy_back_deps): Likewise for DEP_CON.
14318 (DEP_PRO): New function, adding a checked cast for now.
14319 (DEP_CON): Likewise.
14320 (SET_DEP_PRO): New function.
14321 (SET_DEP_CON): Likewise.
14323 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14325 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14326 (extra_options): Add i386/cygwin.opt.
14327 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14328 (CPP_SPEC): Accept -pthread.
14329 (LINK_SPEC): Ditto.
14330 (GOMP_SELF_SPECS): Update comment.
14331 * config/i386/cygwin.opt: New file for -pthread flag.
14333 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14335 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14336 * df.h (DF_REF_INSN): Convert from a macro to a function, so
14337 that we can return an rtx_insn *.
14339 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14341 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14342 when building executables, not DLLs. Add --large-address-aware
14343 under the same conditions.
14344 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14345 when building executables, not DLLs. Add --large-address-aware
14346 under the same conditions when using -m32.
14348 * config/i386/cygwin-stdint.h: Throughout, make type
14349 definitions dependent on target architecture, not host.
14351 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14353 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
14354 the return type from rtx to rtx_insn *, which will enable various
14355 conversions in followup patches. For now this is is done by a
14357 (NEXT_INSN): Likewise.
14358 (SET_PREV_INSN): Convert to an inline function. This is intended
14359 for use as an lvalue, and so returns an rtx& to allow in-place
14361 (SET_NEXT_INSN): Likewise.
14363 2014-07-08 Mark Wielaard <mjw@redhat.com>
14366 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14368 2014-08-19 Marek Polacek <polacek@redhat.com>
14371 * cgraphunit.c (handle_alias_pairs): Fix condition.
14373 2014-08-19 Richard Biener <rguenther@suse.de>
14375 * gimple-fold.c (fold_gimple_assign): Properly build a
14376 null-pointer constant when devirtualizing addresses.
14378 2014-07-07 Mark Wielaard <mjw@redhat.com>
14380 * dwarf2out.c (decl_quals): New function.
14381 (modified_type_die): Take one cv_quals argument instead of two,
14382 one for const and one for volatile.
14383 (add_type_attribute): Likewise.
14384 (generic_parameter_die): Call add_type_attribute with one modifier
14386 (base_type_for_mode): Likewise.
14387 (add_bounds_info): Likewise.
14388 (add_subscript_info): Likewise.
14389 (gen_array_type_die): Likewise.
14390 (gen_descr_array_type_die): Likewise.
14391 (gen_entry_point_die): Likewise.
14392 (gen_enumeration_type_die): Likewise.
14393 (gen_formal_parameter_die): Likewise.
14394 (gen_subprogram_die): Likewise.
14395 (gen_variable_die): Likewise.
14396 (gen_const_die): Likewise.
14397 (gen_field_die): Likewise.
14398 (gen_pointer_type_die): Likewise.
14399 (gen_reference_type_die): Likewise.
14400 (gen_ptr_to_mbr_type_die): Likewise.
14401 (gen_inheritance_die): Likewise.
14402 (gen_subroutine_type_die): Likewise.
14403 (gen_typedef_die): Likewise.
14404 (force_type_die): Likewise.
14406 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14408 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
14410 * configure: Regenerate.
14412 2014-08-19 Richard Biener <rguenther@suse.de>
14414 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
14415 DECL_EXTERNALs in BLOCKs as non-references.
14416 * tree-streamer-out.c (streamer_write_chain): Likewise.
14418 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
14419 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14420 Anna Tikhonova <anna.tikhonova@intel.com>
14421 Ilya Tocar <ilya.tocar@intel.com>
14422 Andrey Turetskiy <andrey.turetskiy@intel.com>
14423 Ilya Verbin <ilya.verbin@intel.com>
14424 Kirill Yukhin <kirill.yukhin@intel.com>
14425 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14427 * config/i386/sse.md
14428 (define_mode_iterator VI48_AVX512F): Delete.
14429 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14430 (define_mode_iterator VI2_AVX512VL): Ditto.
14431 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14434 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14436 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14437 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14438 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14439 with VI48_AVX512F_AVX512VL): New.
14440 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14441 with VI2_AVX512VL): Ditto.
14443 2014-08-19 Marek Polacek <polacek@redhat.com>
14445 * doc/invoke.texi: Document -Wc99-c11-compat.
14447 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14449 * rtl.h (PREV_INSN): Split macro in two: the existing one,
14450 for rvalues, and...
14451 (SET_PREV_INSN): New macro, for use as an lvalue.
14452 (NEXT_INSN, SET_NEXT_INSN): Likewise.
14454 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14455 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14456 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14457 (fixup_abnormal_edges): Likewise.
14458 (unlink_insn_chain): Likewise.
14459 (fixup_reorder_chain): Likewise.
14460 (cfg_layout_delete_block): Likewise.
14461 (cfg_layout_merge_blocks): Likewise.
14462 * combine.c (update_cfg_for_uncondjump): Likewise.
14463 * emit-rtl.c (link_insn_into_chain): Likewise.
14464 (remove_insn): Likewise.
14465 (delete_insns_since): Likewise.
14466 (reorder_insns_nobb): Likewise.
14467 (emit_insn_after_1): Likewise.
14468 * final.c (rest_of_clean_state): Likewise.
14469 (final_scan_insn): Likewise.
14470 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
14471 * haifa-sched.c (concat_note_lists): Likewise.
14472 (remove_notes): Likewise.
14473 (restore_other_notes): Likewise.
14474 (move_insn): Likewise.
14475 (unlink_bb_notes): Likewise.
14476 (restore_bb_notes): Likewise.
14477 * jump.c (delete_for_peephole): Likewise.
14478 * optabs.c (emit_libcall_block_1): Likewise.
14479 * reorg.c (emit_delay_sequence): Likewise.
14480 (fill_simple_delay_slots): Likewise.
14481 * sel-sched-ir.c (sel_move_insn): Likewise.
14482 (sel_remove_insn): Likewise.
14483 (get_bb_note_from_pool): Likewise.
14484 * sel-sched.c (move_nop_to_previous_block): Likewise.
14486 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
14487 * config/c6x/c6x.c (gen_one_bundle): Likewise.
14488 (c6x_gen_bundles): Likewise.
14489 (hwloop_optimize): Likewise.
14490 * config/frv/frv.c (frv_function_prologue): Likewise.
14491 (frv_register_nop): Likewise.
14492 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
14493 (ia64_reorg): Likewise.
14494 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
14495 (mep_make_bundle): Likewise.
14496 (mep_bundle_insns): Likewise.
14497 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
14498 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
14499 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
14501 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14503 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
14504 return type from rtx to rtx_insn *.
14505 (BB_END): Likewise.
14506 (BB_HEADER): Likewise.
14507 (BB_FOOTER): Likewise.
14508 (SET_BB_HEAD): Convert to a function.
14509 (SET_BB_END): Likewise.
14510 (SET_BB_HEADER): Likewise.
14511 (SET_BB_FOOTER): Likewise.
14513 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
14514 Strengthen the return type from rtx to rtx_insn *. For now, this
14515 is done by adding a checked cast, but this will eventually
14516 become a field lookup.
14517 (BB_END): Likewise.
14518 (BB_HEADER): Likewise.
14519 (BB_FOOTER): Likewise.
14520 (SET_BB_HEAD): New function, from macro of same name. This is
14521 intended for use as an lvalue, and so returns an rtx& to allow
14522 in-place modification.
14523 (SET_BB_END): Likewise.
14524 (SET_BB_HEADER): Likewise.
14525 (SET_BB_FOOTER): Likewise.
14527 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14529 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
14530 for rvalues, and...
14531 (SET_BB_HEAD): New macro, for use as a lvalue.
14532 (BB_END, SET_BB_END): Likewise.
14533 (BB_HEADER, SET_BB_HEADER): Likewise.
14534 (BB_FOOTER, SET_BB_FOOTER): Likewise.
14536 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
14537 of BB_* macros into SET_BB_* macros.
14538 (fix_crossing_unconditional_branches): Likewise.
14539 * caller-save.c (save_call_clobbered_regs): Likewise.
14540 (insert_one_insn): Likewise.
14541 * cfgbuild.c (find_bb_boundaries): Likewise.
14542 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14543 (outgoing_edges_match): Likewise.
14544 (try_optimize_cfg): Likewise.
14545 * cfgexpand.c (expand_gimple_cond): Likewise.
14546 (expand_gimple_tailcall): Likewise.
14547 (expand_gimple_basic_block): Likewise.
14548 (construct_exit_block): Likewise.
14549 * cfgrtl.c (delete_insn): Likewise.
14550 (create_basic_block_structure): Likewise.
14551 (rtl_delete_block): Likewise.
14552 (rtl_split_block): Likewise.
14553 (emit_nop_for_unique_locus_between): Likewise.
14554 (rtl_merge_blocks): Likewise.
14555 (block_label): Likewise.
14556 (try_redirect_by_replacing_jump): Likewise.
14557 (emit_barrier_after_bb): Likewise.
14558 (fixup_abnormal_edges): Likewise.
14559 (record_effective_endpoints): Likewise.
14560 (relink_block_chain): Likewise.
14561 (fixup_reorder_chain): Likewise.
14562 (fixup_fallthru_exit_predecessor): Likewise.
14563 (cfg_layout_duplicate_bb): Likewise.
14564 (cfg_layout_split_block): Likewise.
14565 (cfg_layout_delete_block): Likewise.
14566 (cfg_layout_merge_blocks): Likewise.
14567 * combine.c (update_cfg_for_uncondjump): Likewise.
14568 * emit-rtl.c (add_insn_after): Likewise.
14569 (remove_insn): Likewise.
14570 (reorder_insns): Likewise.
14571 (emit_insn_after_1): Likewise.
14572 * haifa-sched.c (get_ebb_head_tail): Likewise.
14573 (restore_other_notes): Likewise.
14574 (move_insn): Likewise.
14575 (sched_extend_bb): Likewise.
14576 (fix_jump_move): Likewise.
14577 * ifcvt.c (noce_process_if_block): Likewise.
14578 (dead_or_predicable): Likewise.
14579 * ira.c (update_equiv_regs): Likewise.
14580 * reg-stack.c (change_stack): Likewise.
14581 * sel-sched-ir.c (sel_move_insn): Likewise.
14582 * sel-sched.c (move_nop_to_previous_block): Likewise.
14584 * config/c6x/c6x.c (hwloop_optimize): Likewise.
14585 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
14587 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14589 * rtl.h (for_each_rtx_in_insn): New function.
14590 * rtlanal.c (for_each_rtx_in_insn): Likewise.
14592 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14594 * coretypes.h (class rtx_insn): Add forward declaration.
14596 * rtl.h: Include is-a.h.
14597 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
14598 workaround to ensure gengtype knows inheritance is occurring,
14599 whilst continuing to use the pre-existing special-casing for
14601 (class rtx_insn): New subclass of rtx_def, adding the
14602 invariant that we're dealing with something we can sanely use
14603 INSN_UID, NEXT_INSN, PREV_INSN on.
14604 (is_a_helper <rtx_insn *>::test): New.
14605 (is_a_helper <const rtx_insn *>::test): New.
14607 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14609 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
14611 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
14613 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
14616 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
14618 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
14619 to BUILT_IN_UNREACHABLE.
14621 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
14624 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
14626 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
14627 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
14628 (ffs<mode>2): Do not expand with tzcnt for
14629 TARGET_AVOID_FALSE_DEP_FOR_BMI.
14630 (ffssi2_no_cmove): Ditto.
14631 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
14632 (ctz<mode>2): New expander.
14633 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
14634 (*ctz<mode>2_falsedep): New insn.
14635 (*ctz<mode>2): Rename from ctz<mode>2.
14636 (clz<mode>2_lzcnt): New expander.
14637 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
14638 (*clz<mode>2_lzcnt_falsedep): New insn.
14639 (*clz<mode>2): Rename from ctz<mode>2.
14640 (popcount<mode>2): New expander.
14641 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
14642 (*popcount<mode>2_falsedep): New insn.
14643 (*popcount<mode>2): Rename from ctz<mode>2.
14644 (*popcount<mode>2_cmp): Remove.
14645 (*popcountsi2_cmp_zext): Ditto.
14647 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
14649 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
14650 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
14651 * config/microblaze/microblaze.h
14652 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
14654 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
14657 * configure.ac: Set install_gold_as_default to no for
14659 * configure: Regenerated.
14661 2014-08-18 Roman Gareev <gareevroman@gmail.com>
14663 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
14664 * config.in: Add undef of HAVE_isl.
14665 * configure: Regenerate.
14666 * configure.ac: Add definition of HAVE_isl.
14667 * graphite-blocking.c: Add checking of HAVE_isl.
14668 * graphite-dependences.c: Likewise.
14669 * graphite-interchange.c: Likewise.
14670 * graphite-isl-ast-to-gimple.c: Likewise.
14671 * graphite-optimize-isl.c: Likewise.
14672 * graphite-poly.c: Likewise.
14673 * graphite-scop-detection.c: Likewise.
14674 * graphite-sese-to-poly.c: Likewise.
14675 * graphite.c: Likewise.
14676 * toplev.c: Replace the checking of HAVE_cloog with the checking
14679 2014-08-18 Richard Biener <rguenther@suse.de>
14681 PR tree-optimization/62090
14682 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
14683 (fold_builtin_3): Do not fold snprintf.
14684 (fold_builtin_4): Likewise.
14685 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
14686 moved from builtins.c.
14687 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
14688 (gimple_fold_builtin): Do not fold sprintf here.
14690 2014-08-18 Richard Biener <rguenther@suse.de>
14692 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
14694 (maybe_canonicalize_mem_ref_addr): ... this function.
14695 (fold_stmt_1): Apply it here before all simplification.
14697 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
14700 * cgraph.h (cgraph_node::create_indirect_edge): Add
14701 compute_indirect_info param.
14702 * cgraph.c (cgraph_node::create_indirect_edge): Compute
14703 indirect_info only when it is required.
14704 * cgraphclones.c (cgraph_clone_edge): Do not recompute
14705 indirect_info fore cloned indirect edge.
14707 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14708 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14709 Anna Tikhonova <anna.tikhonova@intel.com>
14710 Ilya Tocar <ilya.tocar@intel.com>
14711 Andrey Turetskiy <andrey.turetskiy@intel.com>
14712 Ilya Verbin <ilya.verbin@intel.com>
14713 Kirill Yukhin <kirill.yukhin@intel.com>
14714 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14716 * config/i386/sse.md
14717 (define_mode_iterator VI8_AVX2_AVX512BW): New.
14718 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
14720 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14721 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14722 Anna Tikhonova <anna.tikhonova@intel.com>
14723 Ilya Tocar <ilya.tocar@intel.com>
14724 Andrey Turetskiy <andrey.turetskiy@intel.com>
14725 Ilya Verbin <ilya.verbin@intel.com>
14726 Kirill Yukhin <kirill.yukhin@intel.com>
14727 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14729 * config/i386/sse.md
14730 (define_mode_iterator VF1_AVX512VL): New.
14731 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
14732 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
14735 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14736 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14737 Anna Tikhonova <anna.tikhonova@intel.com>
14738 Ilya Tocar <ilya.tocar@intel.com>
14739 Andrey Turetskiy <andrey.turetskiy@intel.com>
14740 Ilya Verbin <ilya.verbin@intel.com>
14741 Kirill Yukhin <kirill.yukhin@intel.com>
14742 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14744 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
14745 * config/i386/i386.md
14746 (define_code_iterator any_float): New.
14747 (define_code_attr floatsuffix): New.
14748 * config/i386/sse.md
14749 (define_mode_iterator VF1_128_256VL): New.
14750 (define_mode_iterator VF2_512_256VL): New.
14751 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
14753 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
14754 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
14756 (define_mode_attr qq2pssuff): New.
14757 (define_mode_attr sselongvecmode): New.
14758 (define_mode_attr sselongvecmodelower): New.
14759 (define_mode_attr sseintvecmode3): New.
14760 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
14762 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
14763 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
14764 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
14765 (define_insn "ufloatv2siv2df2<mask_name>"): New.
14767 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14768 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14769 Anna Tikhonova <anna.tikhonova@intel.com>
14770 Ilya Tocar <ilya.tocar@intel.com>
14771 Andrey Turetskiy <andrey.turetskiy@intel.com>
14772 Ilya Verbin <ilya.verbin@intel.com>
14773 Kirill Yukhin <kirill.yukhin@intel.com>
14774 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14776 * config/i386/sse.md
14777 (define_mode_iterator VF2_AVX512VL): New.
14778 (define_mode_attr sseintvecmode2): New.
14779 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
14780 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
14781 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
14783 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
14785 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14787 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14790 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14791 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14792 Anna Tikhonova <anna.tikhonova@intel.com>
14793 Ilya Tocar <ilya.tocar@intel.com>
14794 Andrey Turetskiy <andrey.turetskiy@intel.com>
14795 Ilya Verbin <ilya.verbin@intel.com>
14796 Kirill Yukhin <kirill.yukhin@intel.com>
14797 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14799 * config/i386/i386.md
14800 (define_insn "*movoi_internal_avx"): Add evex version.
14801 (define_insn "*movti_internal"): Ditto.
14803 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14804 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14805 Anna Tikhonova <anna.tikhonova@intel.com>
14806 Ilya Tocar <ilya.tocar@intel.com>
14807 Andrey Turetskiy <andrey.turetskiy@intel.com>
14808 Ilya Verbin <ilya.verbin@intel.com>
14809 Kirill Yukhin <kirill.yukhin@intel.com>
14810 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14812 * config/i386/i386.md
14813 (define_attr "isa"): Add avx512dq, noavx512dq.
14814 (define_attr "enabled"): Ditto.
14815 * config/i386/sse.md
14816 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
14818 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14819 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14820 Anna Tikhonova <anna.tikhonova@intel.com>
14821 Ilya Tocar <ilya.tocar@intel.com>
14822 Andrey Turetskiy <andrey.turetskiy@intel.com>
14823 Ilya Verbin <ilya.verbin@intel.com>
14824 Kirill Yukhin <kirill.yukhin@intel.com>
14825 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14827 * config/i386/i386.c
14828 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
14829 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
14830 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
14831 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
14832 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
14833 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
14834 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
14835 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
14836 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
14837 * config/i386/sse.md
14838 (define_mode_iterator VMOVE): Allow V4TI mode.
14839 (define_mode_iterator V_AVX512VL): New.
14840 (define_mode_iterator V): New handling for AVX512VL.
14841 (define_insn "avx512f_load<mode>_mask"): Delete.
14842 (define_insn "<avx512>_load<mode>_mask"): New.
14843 (define_insn "avx512f_store<mode>_mask"): Delete.
14844 (define_insn "<avx512>_store<mode>_mask"): New.
14847 2014-08-18 Yury Gribov <y.gribov@samsung.com>
14850 * asan.c (instrument_derefs): Fix bitfield check.
14852 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14854 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
14855 * config/rs6000/htm.md (ttest): Remove clobber.
14856 * config/rs6000/predicates.md (any_mask_operand): New predicate.
14857 (and_operand): Reformat.
14858 (and_2rld_operand): New predicate.
14859 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
14861 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
14862 parameter. Handle AND directly.
14863 (rs6000_split_logical_di): Remove last parameter.
14864 (rs6000_split_logical): Remove last parameter. Remove obsolete
14866 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
14867 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
14868 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
14869 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
14870 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
14871 and 5 anonymous splitters): Delete.
14872 (and<mode>3): New expander.
14873 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
14874 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
14875 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
14876 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
14877 (floatdisf2_internal1): Remove clobbers.
14878 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
14879 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
14880 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
14881 (and<mode>3 for BOOL_128): Remove clobber.
14882 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
14883 rs6000_split_logical.
14884 (*bool<mode>3_internal for BOOL_128): Adjust call of
14885 rs6000_split_logical.
14886 (*boolc<mode>3_internal1 for BOOL_128,
14887 *boolc<mode>3_internal2 for BOOL_128,
14888 *boolcc<mode>3_internal1 for BOOL_128,
14889 *boolcc<mode>3_internal2 for BOOL_128,
14890 *eqv<mode>3_internal1 for BOOL_128,
14891 *eqv<mode>3_internal2 for BOOL_128,
14892 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
14893 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
14895 (*vec_reload_and_reg_<mptrsize>): Delete.
14897 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14899 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
14900 and split, *boolccsi3_internal3 and split): Delete.
14901 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
14902 *boolccdi3_internal3 and split): Delete.
14903 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
14904 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
14906 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14908 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
14909 and split, *boolcsi3_internal3 and split): Delete.
14910 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
14911 *boolcdi3_internal3 and split): Delete.
14912 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
14914 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14916 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
14917 <'u'>: Also support printing the low-order 16 bits.
14918 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
14919 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
14920 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
14921 *booldi3_internal3 and split): Delete.
14922 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
14923 *bool<mode>3_dot2): New.
14924 (two anonymous define_splits for non_logical_cint_operand): Merge.
14926 2014-08-17 Marek Polacek <polacek@redhat.com>
14927 Manuel López-Ibáñez <manu@gcc.gnu.org>
14930 * diagnostic.c (adjust_line): Add gcc_checking_assert.
14931 (diagnostic_show_locus): Don't print caret diagnostic
14932 if a column is larger than the line_width.
14934 2014-08-17 Roman Gareev <gareevroman@gmail.com>
14936 * common.opt: Make the ISL AST generator to be the main code generator
14939 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
14941 * wide-int.h (generic_wide_int): Declare as class instead of struct.
14943 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
14946 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
14948 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
14949 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
14950 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
14952 * config/pa/pa.md (begin_brtab): Delete insn.
14953 (end_brtab): Likewise.
14955 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
14957 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
14959 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
14961 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
14962 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
14963 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
14964 (get_dynamic_type): Remove.
14965 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
14966 (clear_speculation): Bring to ipa-deivrt.h
14967 (get_class_context): Rename to ...
14968 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
14969 (contains_type_p): Update.
14970 (get_dynamic_type): Rename to ...
14971 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
14972 (possible_polymorphic_call_targets): UPdate.
14973 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
14974 * ipa-prop.c (ipa_analyze_call_uses): Update.
14976 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
14978 * doc/invoke.texi (SH options): Document missing processor variant
14979 options. Remove references to Hitachi. Undocument deprecated mspace
14982 2014-08-15 Jason Merrill <jason@redhat.com>
14984 * tree.c (type_hash_canon): Uncomment assert.
14986 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
14988 * input.h (in_system_header_at): Add comment.
14990 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
14993 * diagnostic.c (build_message_string): Make it extern.
14994 * diagnostic.h (build_message_string): Make it extern.
14996 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
14998 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
14999 load/store from/to non-floating class pseudo.
15001 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15003 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15005 2014-08-15 Richard Biener <rguenther@suse.de>
15007 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15008 (get_constraint_for_ssa_var): Remove dead code.
15009 (get_constraint_for_1): Adjust.
15010 (find_what_var_points_to): Likewise.
15011 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
15013 2014-08-15 Ilya Tocar <tocarip@gmail.com>
15016 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15017 (_mm512_mask_cmpge_epu32_mask): Ditto.
15018 (_mm512_cmpge_epu32_mask): Ditto.
15019 (_mm512_mask_cmpge_epi64_mask): Ditto.
15020 (_mm512_cmpge_epi64_mask): Ditto.
15021 (_mm512_mask_cmpge_epu64_mask): Ditto.
15022 (_mm512_cmpge_epu64_mask): Ditto.
15023 (_mm512_mask_cmple_epi32_mask): Ditto.
15024 (_mm512_cmple_epi32_mask): Ditto.
15025 (_mm512_mask_cmple_epu32_mask): Ditto.
15026 (_mm512_cmple_epu32_mask): Ditto.
15027 (_mm512_mask_cmple_epi64_mask): Ditto.
15028 (_mm512_cmple_epi64_mask): Ditto.
15029 (_mm512_mask_cmple_epu64_mask): Ditto.
15030 (_mm512_cmple_epu64_mask): Ditto.
15031 (_mm512_mask_cmplt_epi32_mask): Ditto.
15032 (_mm512_cmplt_epi32_mask): Ditto.
15033 (_mm512_mask_cmplt_epu32_mask): Ditto.
15034 (_mm512_cmplt_epu32_mask): Ditto.
15035 (_mm512_mask_cmplt_epi64_mask): Ditto.
15036 (_mm512_cmplt_epi64_mask): Ditto.
15037 (_mm512_mask_cmplt_epu64_mask): Ditto.
15038 (_mm512_cmplt_epu64_mask): Ditto.
15039 (_mm512_mask_cmpneq_epi32_mask): Ditto.
15040 (_mm512_mask_cmpneq_epu32_mask): Ditto.
15041 (_mm512_cmpneq_epu32_mask): Ditto.
15042 (_mm512_mask_cmpneq_epi64_mask): Ditto.
15043 (_mm512_cmpneq_epi64_mask): Ditto.
15044 (_mm512_mask_cmpneq_epu64_mask): Ditto.
15045 (_mm512_cmpneq_epu64_mask): Ditto.
15046 (_mm512_castpd_ps): Ditto.
15047 (_mm512_castpd_si512): Ditto.
15048 (_mm512_castps_pd): Ditto.
15049 (_mm512_castps_si512): Ditto.
15050 (_mm512_castsi512_ps): Ditto.
15051 (_mm512_castsi512_pd): Ditto.
15052 (_mm512_castpd512_pd128): Ditto.
15053 (_mm512_castps512_ps128): Ditto.
15054 (_mm512_castsi512_si128): Ditto.
15055 (_mm512_castpd512_pd256): Ditto.
15056 (_mm512_castps512_ps256): Ditto.
15057 (_mm512_castsi512_si256): Ditto.
15058 (_mm512_castpd128_pd512): Ditto.
15059 (_mm512_castps128_ps512): Ditto.
15060 (_mm512_castsi128_si512): Ditto.
15061 (_mm512_castpd256_pd512): Ditto.
15062 (_mm512_castps256_ps512): Ditto.
15063 (_mm512_castsi256_si512): Ditto.
15064 (_mm512_cmpeq_epu32_mask): Ditto.
15065 (_mm512_mask_cmpeq_epu32_mask): Ditto.
15066 (_mm512_mask_cmpeq_epu64_mask): Ditto.
15067 (_mm512_cmpeq_epu64_mask): Ditto.
15068 (_mm512_cmpgt_epu32_mask): Ditto.
15069 (_mm512_mask_cmpgt_epu32_mask): Ditto.
15070 (_mm512_mask_cmpgt_epu64_mask): Ditto.
15071 (_mm512_cmpgt_epu64_mask): Ditto.
15072 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
15073 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
15074 * config/i386/i386.c (enum ix86_builtins): Add
15075 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
15076 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
15077 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
15078 (bdesc_args): Add __builtin_ia32_si512_256si,
15079 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
15080 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
15081 __builtin_ia32_pd512_pd.
15082 (ix86_expand_args_builtin): Handle new FTYPEs.
15083 * config/i386/sse.md (castmode): Add 512-bit modes.
15084 (AVX512MODE2P): New.
15085 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
15086 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
15088 2014-08-15 Richard Biener <rguenther@suse.de>
15090 * fold-const.c (tree_swap_operands_p): Put all constants
15091 last, also strip sign-changing NOPs when considering further
15092 canonicalization. Canonicalize also when optimizing for size.
15094 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15096 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
15097 one_match > zero_match case to just before simple_sequence.
15099 2014-08-15 Richard Biener <rguenther@suse.de>
15101 * data-streamer.h (streamer_string_index, string_for_index):
15103 * data-streamer-out.c (streamer_string_index): Make static.
15104 * data-streamer-in.c (string_for_index): Likewise.
15105 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
15106 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
15108 2014-08-15 Richard Biener <rguenther@suse.de>
15110 PR tree-optimization/62031
15111 * tree-data-ref.c (dr_analyze_indices): Do not set
15112 DR_UNCONSTRAINED_BASE.
15113 (dr_may_alias_p): All indirect accesses have to go the
15114 formerly DR_UNCONSTRAINED_BASE path.
15115 * tree-data-ref.h (struct indices): Remove
15116 unconstrained_base member.
15117 (DR_UNCONSTRAINED_BASE): Remove.
15119 2014-08-15 Jakub Jelinek <jakub@redhat.com>
15121 PR middle-end/62092
15122 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
15123 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
15124 in OMP_CLAUSE_MAP in some outer target region.
15126 2014-08-15 Bin Cheng <bin.cheng@arm.com>
15128 * tree-ssa-loop-ivopts.c (ivopts_data): New field
15129 name_expansion_cache.
15130 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
15131 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
15132 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
15133 (difference_cannot_overflow_p): New parameter. Use affine
15134 expansion for equality check.
15135 (iv_elimination_compare_lt): Pass new argument.
15137 2014-08-14 DJ Delorie <dj@redhat.com>
15139 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
15140 variables to the accumulator.
15142 * config/rl78/predicates.md (rl78_near_mem_operand): New.
15143 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
15144 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
15145 with far-far moves.
15147 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
15148 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
15149 (umulqihi3_virt): Likewise.
15150 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
15151 (umulqihi3_real): Likewise.
15153 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
15155 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15157 PR tree-optimization/62091
15158 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
15159 function_entry_reached.
15160 (walk_aliased_vdefs): Clear it here.
15161 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
15163 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15165 * ipa-utils.h (compare_virtual_tables): Declare.
15166 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
15168 2014-08-14 Marek Polacek <polacek@redhat.com>
15171 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
15172 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
15174 2014-08-14 Tom de Vries <tom@codesourcery.com>
15176 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
15178 2014-08-14 Tom de Vries <tom@codesourcery.com>
15180 PR rtl-optimization/62004
15181 PR rtl-optimization/62030
15182 * ifcvt.c (rtx_interchangeable_p): New function.
15183 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
15184 * emit-rtl.h (mem_attrs_eq_p): Declare.
15186 2014-08-14 Roman Gareev <gareevroman@gmail.com>
15188 * graphite-scop-detection.c:
15189 Add inclusion of cp-tree.h.
15190 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
15191 in case they are pointers to object types
15193 2014-08-14 Richard Biener <rguenther@suse.de>
15195 * BASE-VER: Change to 5.0.0
15197 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15198 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15199 Anna Tikhonova <anna.tikhonova@intel.com>
15200 Ilya Tocar <ilya.tocar@intel.com>
15201 Andrey Turetskiy <andrey.turetskiy@intel.com>
15202 Ilya Verbin <ilya.verbin@intel.com>
15203 Kirill Yukhin <kirill.yukhin@intel.com>
15204 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15206 * config/i386/sse.md (define_mode_attr avx512): New.
15207 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
15209 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
15210 (define_mode_attr ssse3_avx2): Ditto.
15211 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
15212 (define_mode_attr avx2_avx512bw): New.
15213 (define_mode_attr ssedoublemodelower): New.
15214 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
15215 V32HI, V64QI modes.
15216 (define_mode_attr ssebytemode): Allow V8DI modes.
15217 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
15218 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
15219 (define_mode_attr ssePSmode2): New.
15220 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
15221 V16HI, V32HI modes.
15222 (define_mode_attr dbpsadbwmode): New.
15223 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
15224 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
15225 (vi8_sse4_1_avx2_avx512): New.
15226 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
15228 (define_mode_attr blendbits): Move before its immediate use.
15230 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15231 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15232 Anna Tikhonova <anna.tikhonova@intel.com>
15233 Ilya Tocar <ilya.tocar@intel.com>
15234 Andrey Turetskiy <andrey.turetskiy@intel.com>
15235 Ilya Verbin <ilya.verbin@intel.com>
15236 Kirill Yukhin <kirill.yukhin@intel.com>
15237 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15239 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
15240 * config/i386/subst.md
15241 (define_mode_iterator SUBST_V): Update.
15242 (define_mode_iterator SUBST_A): Ditto.
15243 (define_subst_attr "mask_operand7"): New.
15244 (define_subst_attr "mask_operand10"): New.
15245 (define_subst_attr "mask_operand_arg34") : New.
15246 (define_subst_attr "mask_expand_op3"): New.
15247 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
15248 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
15249 (define_subst_attr "mask_avx512vl_condition"): New.
15250 (define_subst_attr "round_mask_operand4"): Ditto.
15251 (define_subst_attr "round_mask_scalar_op3"): Delete.
15252 (define_subst_attr "round_mask_op4"): New.
15253 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
15255 (define_subst_attr "round_modev8sf_condition"): New.
15256 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
15258 (define_subst_attr "round_saeonly_mask_operand4"): New.
15259 (define_subst_attr "round_saeonly_mask_op4"): New.
15260 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
15261 V8DImode, V16SImode.
15262 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
15263 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
15264 (define_subst_attr "mask_expand4_args"): New.
15265 (define_subst "mask_expand4"): New.
15267 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15268 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15269 Anna Tikhonova <anna.tikhonova@intel.com>
15270 Ilya Tocar <ilya.tocar@intel.com>
15271 Andrey Turetskiy <andrey.turetskiy@intel.com>
15272 Ilya Verbin <ilya.verbin@intel.com>
15273 Kirill Yukhin <kirill.yukhin@intel.com>
15274 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15276 * config/i386/i386.md
15277 (define_attr "isa"): Add avx512bw,noavx512bw.
15278 (define_attr "enabled"): Ditto.
15279 (define_split): Add 32/64-bit mask logic.
15280 (define_insn "*k<logic>qi"): New.
15281 (define_insn "*k<logic>hi"): New.
15282 (define_insn "*anddi_1"): Add mask version.
15283 (define_insn "*andsi_1"): Ditto.
15284 (define_insn "*<code><mode>_1"): Ditto.
15285 (define_insn "*<code>hi_1"): Ditto.
15286 (define_insn "kxnor<mode>"): New.
15287 (define_insn "kunpcksi"): New.
15288 (define_insn "kunpckdi"): New.
15289 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
15290 (define_insn "*one_cmplhi2_1"): Ditto.
15292 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15293 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15294 Anna Tikhonova <anna.tikhonova@intel.com>
15295 Ilya Tocar <ilya.tocar@intel.com>
15296 Andrey Turetskiy <andrey.turetskiy@intel.com>
15297 Ilya Verbin <ilya.verbin@intel.com>
15298 Kirill Yukhin <kirill.yukhin@intel.com>
15299 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15301 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
15304 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15305 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15306 Anna Tikhonova <anna.tikhonova@intel.com>
15307 Ilya Tocar <ilya.tocar@intel.com>
15308 Andrey Turetskiy <andrey.turetskiy@intel.com>
15309 Ilya Verbin <ilya.verbin@intel.com>
15310 Kirill Yukhin <kirill.yukhin@intel.com>
15311 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15313 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
15315 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15316 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15317 xmm/ymm16+ when availble.
15318 * config/i386/i386.h
15319 (HARD_REGNO_NREGS): Add mask regs.
15320 (VALID_AVX512F_REG_MODE): Ditto.
15321 (VALID_AVX512F_REG_MODE) : Define.
15322 (VALID_MASK_AVX512BW_MODE): Ditto.
15323 (reg_class) (MASK_REG_P(X)): Define.
15324 * config/i386/i386.md: Do not split long moves with mask register,
15325 use kmovb if avx512bw is availible.
15326 (movdi_internal): Handle mask registers.
15328 2014-08-14 Richard Biener <rguenther@suse.de>
15330 PR tree-optimization/62081
15331 * tree-ssa-loop.c (pass_fix_loops): New pass.
15332 (pass_tree_loop::gate): Do not fixup loops here.
15333 * tree-pass.h (make_pass_fix_loops): Declare.
15334 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15336 2014-08-14 Richard Biener <rguenther@suse.de>
15338 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15339 (type_hash_canon): ... this and avoid 2nd lookup for the add.
15341 2014-08-14 Richard Biener <rguenther@suse.de>
15343 PR tree-optimization/62090
15344 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15345 (fold_builtin_2): Do not fold sprintf.
15346 (fold_builtin_3): Likewise.
15347 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15348 moved from builtins.c.
15349 (gimple_fold_builtin): Fold sprintf.
15351 2014-08-14 Richard Biener <rguenther@suse.de>
15353 PR rtl-optimization/62079
15354 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15357 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15359 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15360 current_function_decl.
15362 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15364 * cgraph.c (cgraph_node::function_symbol): Fix wrong
15365 cgraph_function_node to cgraph_node::function_symbol
15368 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
15370 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15371 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15373 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
15375 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15378 2014-08-13 Roman Gareev <gareevroman@gmail.com>
15380 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15383 2014-08-12 Jakub Jelinek <jakub@redhat.com>
15386 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15387 any registers that are used in mem_insn.
15389 2014-08-12 Steve Ellcey <sellcey@mips.com>
15391 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15393 2014-08-12 Steve Ellcey <sellcey@mips.com>
15395 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15396 (MULTILIB_DIRNAMES): Ditto.
15397 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15398 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15399 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15400 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15401 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15402 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15404 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15407 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15408 of __ARM_SIZEOF_WCHAR_T.
15410 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15413 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
15414 Remove unnecessary attributes.
15416 2014-08-12 Yury Gribov <y.gribov@samsung.com>
15418 * internal-fn.c (init_internal_fns): Fix off-by-one.
15420 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15421 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15422 Anna Tikhonova <anna.tikhonova@intel.com>
15423 Ilya Tocar <ilya.tocar@intel.com>
15424 Andrey Turetskiy <andrey.turetskiy@intel.com>
15425 Ilya Verbin <ilya.verbin@intel.com>
15426 Kirill Yukhin <kirill.yukhin@intel.com>
15427 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15429 * config/i386/i386.c (standard_sse_constant_opcode): Use
15430 vpxord/vpternlog if avx512 is availible.
15432 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
15434 PR middle-end/62103
15435 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15436 bitfields, that is when size doesn't match the size of type or the
15437 size of the constructor.
15439 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15441 * config/rs6000/constraints.md (wh constraint): New constraint,
15442 for FP registers if direct move is available.
15443 (wi constraint): New constraint, for VSX/FP registers that can
15444 handle 64-bit integers.
15445 (wj constraint): New constraint for VSX/FP registers that can
15446 handle 64-bit integers for direct moves.
15447 (wk constraint): New constraint for VSX/FP registers that can
15448 handle 64-bit doubles for direct moves.
15449 (wy constraint): Make documentation match implementation.
15451 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15452 scalar_in_vmx_p field to simplify tests of whether SFmode or
15453 DFmode can go in the Altivec registers.
15454 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15455 (rs6000_setup_reg_addr_masks): Likewise.
15456 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
15457 field, and wh/wi/wj/wk constraints.
15458 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
15459 the wh/wi/wj/wk constraints.
15460 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
15461 upper registers, prefer VSX registers unless the operation is a
15462 memory operation with REG+OFFSET addressing.
15464 * config/rs6000/vsx.md (VSr mode attribute): Add support for
15465 DImode. Change SFmode to use ww constraint instead of d to allow
15466 SF registers in the upper registers.
15469 (VSr5): Fix thinko in comment.
15470 (VSa): New mode attribute that is an alternative to wa, that
15471 returns the VSX register class that a mode can go in, but may not
15472 be the preferred register class.
15473 (VS_64dm): New mode attribute for appropriate register classes for
15474 referencing 64-bit elements of vectors for direct moves and normal
15476 (VS_64reg): Likewise.
15477 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
15478 register allocator to only registers the data type can handle.
15479 (vsx_le_perm_load_<mode>): Likewise.
15480 (vsx_le_perm_store_<mode>): Likewise.
15481 (vsx_xxpermdi2_le_<mode>): Likewise.
15482 (vsx_xxpermdi4_le_<mode>): Likewise.
15483 (vsx_lxvd2x2_le_<mode>): Likewise.
15484 (vsx_lxvd2x4_le_<mode>): Likewise.
15485 (vsx_stxvd2x2_le_<mode>): Likewise.
15486 (vsx_add<mode>3): Likewise.
15487 (vsx_sub<mode>3): Likewise.
15488 (vsx_mul<mode>3): Likewise.
15489 (vsx_div<mode>3): Likewise.
15490 (vsx_tdiv<mode>3_internal): Likewise.
15491 (vsx_fre<mode>2): Likewise.
15492 (vsx_neg<mode>2): Likewise.
15493 (vsx_abs<mode>2): Likewise.
15494 (vsx_nabs<mode>2): Likewise.
15495 (vsx_smax<mode>3): Likewise.
15496 (vsx_smin<mode>3): Likewise.
15497 (vsx_sqrt<mode>2): Likewise.
15498 (vsx_rsqrte<mode>2): Likewise.
15499 (vsx_tsqrt<mode>2_internal): Likewise.
15500 (vsx_fms<mode>4): Likewise.
15501 (vsx_nfma<mode>4): Likewise.
15502 (vsx_eq<mode>): Likewise.
15503 (vsx_gt<mode>): Likewise.
15504 (vsx_ge<mode>): Likewise.
15505 (vsx_eq<mode>_p): Likewise.
15506 (vsx_gt<mode>_p): Likewise.
15507 (vsx_ge<mode>_p): Likewise.
15508 (vsx_xxsel<mode>): Likewise.
15509 (vsx_xxsel<mode>_uns): Likewise.
15510 (vsx_copysign<mode>3): Likewise.
15511 (vsx_float<VSi><mode>2): Likewise.
15512 (vsx_floatuns<VSi><mode>2): Likewise.
15513 (vsx_fix_trunc<mode><VSi>2): Likewise.
15514 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
15515 (vsx_x<VSv>r<VSs>i): Likewise.
15516 (vsx_x<VSv>r<VSs>ic): Likewise.
15517 (vsx_btrunc<mode>2): Likewise.
15518 (vsx_b2trunc<mode>2): Likewise.
15519 (vsx_floor<mode>2): Likewise.
15520 (vsx_ceil<mode>2): Likewise.
15521 (vsx_<VS_spdp_insn>): Likewise.
15522 (vsx_xscvspdp): Likewise.
15523 (vsx_xvcvspuxds): Likewise.
15524 (vsx_float_fix_<mode>2): Likewise.
15525 (vsx_set_<mode>): Likewise.
15526 (vsx_extract_<mode>_internal1): Likewise.
15527 (vsx_extract_<mode>_internal2): Likewise.
15528 (vsx_extract_<mode>_load): Likewise.
15529 (vsx_extract_<mode>_store): Likewise.
15530 (vsx_splat_<mode>): Likewise.
15531 (vsx_xxspltw_<mode>): Likewise.
15532 (vsx_xxspltw_<mode>_direct): Likewise.
15533 (vsx_xxmrghw_<mode>): Likewise.
15534 (vsx_xxmrglw_<mode>): Likewise.
15535 (vsx_xxsldwi_<mode>): Likewise.
15536 (vsx_xscvdpspn): Tighten constraints to only use register classes
15538 (vsx_xscvspdpn): Likewise.
15539 (vsx_xscvdpspn_scalar): Likewise.
15541 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
15542 wj, and wk constraints.
15543 (GPR_REG_CLASS_P): New helper macro for register classes targeting
15544 general purpose registers.
15546 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
15548 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
15549 DImode instead of wm. Use wk constraint for direct move of DFmode
15551 (extendsidi2_lfiwax): Likewise.
15552 (lfiwax): Likewise.
15553 (lfiwzx): Likewise.
15554 (movdi_internal64): Likewise.
15556 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
15557 wk constraints. Make the wy constraint documentation match them
15560 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
15562 Replacement of isl_int by isl_val
15563 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
15564 (compute_bounds_for_param): use isl_val instead of isl_int
15565 (compute_bounds_for_loop): likewise
15566 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
15567 (build_linearized_memory_access): use isl_val instead of isl_int
15568 (pdr_stride_in_loop): likewise
15569 * graphite-optimize-isl.c:
15570 (getPrevectorMap): use isl_val instead of isl_int
15572 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
15573 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
15574 (extern the_isl_ctx): declare
15575 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
15576 (extract_affine_gmp): likewise
15578 (build_loop_iteration_domains): likewise
15579 (add_param_constraints): likewise
15581 2014-08-11 Richard Biener <rguenther@suse.de>
15583 PR tree-optimization/62075
15584 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
15585 handle uses in patterns.
15587 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15588 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15589 Anna Tikhonova <anna.tikhonova@intel.com>
15590 Ilya Tocar <ilya.tocar@intel.com>
15591 Andrey Turetskiy <andrey.turetskiy@intel.com>
15592 Ilya Verbin <ilya.verbin@intel.com>
15593 Kirill Yukhin <kirill.yukhin@intel.com>
15594 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15596 * common/config/i386/i386-common.c
15597 (OPTION_MASK_ISA_AVX512VL_SET): Define.
15598 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
15599 (ix86_handle_option): Handle OPT_mavx512vl.
15600 * config/i386/cpuid.h (bit_AVX512VL): Define.
15601 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
15602 set -mavx512vl accordingly.
15603 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15604 OPTION_MASK_ISA_AVX512VL.
15605 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
15606 (ix86_option_override_internal): Define PTA_AVX512VL, handle
15607 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
15608 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
15609 * config/i386/i386.h (TARGET_AVX512VL): Define.
15610 (TARGET_AVX512VL_P(x)): Ditto.
15611 * config/i386/i386.opt: Add mavx512vl.
15613 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
15615 PR tree-optimization/62073
15616 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
15619 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15620 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15621 Anna Tikhonova <anna.tikhonova@intel.com>
15622 Ilya Tocar <ilya.tocar@intel.com>
15623 Andrey Turetskiy <andrey.turetskiy@intel.com>
15624 Ilya Verbin <ilya.verbin@intel.com>
15625 Kirill Yukhin <kirill.yukhin@intel.com>
15626 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15628 * common/config/i386/i386-common.c
15629 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
15630 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
15631 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
15632 (ix86_handle_option): Handle OPT_mavx512bw.
15633 * config/i386/cpuid.h (bit_AVX512BW): Define.
15634 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
15635 set -mavx512bw accordingly.
15636 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15637 OPTION_MASK_ISA_AVX512BW.
15638 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
15639 (ix86_option_override_internal): Define PTA_AVX512BW, handle
15640 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
15641 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
15642 * config/i386/i386.h (TARGET_AVX512BW): Define.
15643 (TARGET_AVX512BW_P(x)): Ditto.
15644 * config/i386/i386.opt: Add mavx512bw.
15646 2014-08-11 Richard Biener <rguenther@suse.de>
15648 PR tree-optimization/62070
15649 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
15650 Remove SSA checking.
15652 2014-08-11 Yury Gribov <y.gribov@samsung.com>
15654 * asan.c (asan_check_flags): New enum.
15655 (build_check_stmt_with_calls): Removed function.
15656 (build_check_stmt): Split inlining logic to
15657 asan_expand_check_ifn.
15658 (instrument_derefs): Rename parameter.
15659 (instrument_mem_region_access): Rename parameter.
15660 (instrument_strlen_call): Likewise.
15661 (asan_expand_check_ifn): New function.
15662 (asan_instrument): Remove old code.
15663 (pass_sanopt::execute): Change handling of
15664 asan-instrumentation-with-call-threshold.
15665 (asan_clear_shadow): Fix formatting.
15666 (asan_function_start): Likewise.
15667 (asan_emit_stack_protection): Likewise.
15668 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
15669 Update description.
15670 * internal-fn.c (expand_ASAN_CHECK): New function.
15671 * internal-fn.def (ASAN_CHECK): New internal function.
15672 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
15673 Update description.
15674 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
15675 * tree.c: Small comment fix.
15677 2014-08-11 Yury Gribov <y.gribov@samsung.com>
15679 * gimple.c (gimple_call_fnspec): Support internal functions.
15680 (gimple_call_return_flags): Use const.
15681 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
15682 * internal-fn.def: Add fnspec information.
15683 * internal-fn.h (internal_fn_fnspec): New function.
15684 (init_internal_fns): Declare new function.
15685 * internal-fn.c (internal_fn_fnspec_array): New global variable.
15686 (init_internal_fns): New function.
15687 * tree-core.h: Update macro call.
15688 * tree.c (build_common_builtin_nodes): Initialize internal fns.
15690 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
15692 * lto-streamer.h (struct output_block::symbol): Change from
15693 struct symtab_node to plain symtab_node.
15694 (referenced_from_this_partition_p): Change first parameter
15695 from struct symtab_node to plain symtab_node.
15697 2014-08-10 Marek Polacek <polacek@redhat.com>
15700 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
15702 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
15704 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
15705 DECL correctly; do not give up on types in static storage.
15707 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
15709 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
15711 2014-08-09 Roman Gareev <gareevroman@gmail.com>
15713 * graphite-isl-ast-to-gimple.c:
15714 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
15716 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
15718 2014-08-08 Guozhi Wei <carrot@google.com>
15720 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
15722 2014-08-08 Cary Coutant <ccoutant@google.com>
15724 * dwarf2out.c (get_skeleton_type_unit): Remove.
15725 (output_skeleton_debug_sections): Remove skeleton type units.
15726 (output_comdat_type_unit): Likewise.
15727 (dwarf2out_finish): Likewise.
15729 2014-08-07 Yi Yang <ahyangyi@google.com>
15731 * predict.c (expr_expected_value_1): Remove the redundant assignment.
15733 2014-08-08 Richard Biener <rguenther@suse.de>
15735 * lto-streamer.h (struct lto_input_block): Make it a class
15736 with a constructor.
15737 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
15738 (struct lto_function_header, struct lto_simple_header,
15739 struct lto_simple_header_with_strings,
15740 struct lto_decl_header, struct lto_function_header): Make
15741 a simple inheritance hieararchy. Remove unused fields.
15742 (struct lto_asm_header): Remove.
15743 * lto-streamer-out.c (produce_asm): Adjust.
15744 (lto_output_toplevel_asms): Likewise.
15745 (produce_asm_for_decls): Likewise.
15746 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
15747 * data-streamer-in.c (string_for_index): Likewise.
15748 * ipa-inline-analysis.c (inline_read_section): Likewise.
15749 * ipa-prop.c (ipa_prop_read_section): Likewise.
15750 (read_replacements_section): Likewise.
15751 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
15752 * lto-section-in.c (lto_create_simple_input_block): Likewise.
15753 (lto_destroy_simple_input_block): Likewise.
15754 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
15755 (lto_input_toplevel_asms): Likewise.
15757 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
15758 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15759 Anna Tikhonova <anna.tikhonova@intel.com>
15760 Ilya Tocar <ilya.tocar@intel.com>
15761 Andrey Turetskiy <andrey.turetskiy@intel.com>
15762 Ilya Verbin <ilya.verbin@intel.com>
15763 Kirill Yukhin <kirill.yukhin@intel.com>
15764 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15766 * common/config/i386/i386-common.c
15767 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
15768 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
15769 (ix86_handle_option): Handle OPT_mavx512dq.
15770 * config/i386/cpuid.h (bit_AVX512DQ): Define.
15771 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
15772 set -mavx512dq accordingly.
15773 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15774 OPTION_MASK_ISA_AVX512DQ.
15775 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
15776 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
15777 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
15778 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
15779 * config/i386/i386.h (TARGET_AVX512DQ): Define.
15780 (TARGET_AVX512DQ_P(x)): Ditto.
15781 * config/i386/i386.opt: Add mavx512dq.
15783 2014-08-08 Richard Biener <rguenther@suse.de>
15785 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
15786 target_percent, target_percent_s): Export.
15787 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
15788 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
15789 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
15790 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
15791 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
15792 Move to gimple-fold.c.
15793 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
15795 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
15796 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
15797 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
15798 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
15799 (rewrite_call_expr_array): Remove.
15800 (fold_builtin_sprintf_chk): Likewise.
15801 (fold_builtin_snprintf_chk): Likewise.
15802 (fold_builtin_varargs): Remove handling of sprintf_chk,
15803 vsprintf_chk, snprintf_chk and vsnprintf_chk.
15804 (gimple_fold_builtin_sprintf_chk): Remove.
15805 (gimple_fold_builtin_snprintf_chk): Likewise.
15806 (gimple_fold_builtin_varargs): Likewise.
15807 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
15808 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
15809 * gimple.c (gimple_seq_add_seq_without_update): New function.
15810 * gimple.h (gimple_seq_add_seq_without_update): Declare.
15811 * gimple-fold.c: Include output.h.
15812 (gsi_replace_with_seq_vops): New function, split out from ...
15813 (gimplify_and_update_call_from_tree): ... here.
15814 (replace_call_with_value): New function.
15815 (replace_call_with_call_and_fold): Likewise.
15816 (var_decl_component_p): Moved from builtins.c.
15817 (gimple_fold_builtin_memory_op): Moved from builtins.c
15818 fold_builtin_memory_op and rewritten to GIMPLE.
15819 (gimple_fold_builtin_memset): Likewise.
15820 (gimple_fold_builtin_strcpy): Likewise.
15821 (gimple_fold_builtin_strncpy): Likewise.
15822 (gimple_fold_builtin_strcat): Likewise.
15823 (gimple_fold_builtin_fputs): Likewise.
15824 (gimple_fold_builtin_memory_chk): Likewise.
15825 (gimple_fold_builtin_stxcpy_chk): Likewise.
15826 (gimple_fold_builtin_stxncpy_chk): Likewise.
15827 (gimple_fold_builtin_snprintf_chk): Likewise.
15828 (gimple_fold_builtin_sprintf_chk): Likewise.
15829 (gimple_fold_builtin_strlen): New function.
15830 (gimple_fold_builtin_with_strlen): New function split out from
15831 gimple_fold_builtin.
15832 (gimple_fold_builtin): Change signature and handle
15833 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
15834 here. Call gimple_fold_builtin_with_strlen.
15835 (gimple_fold_call): Adjust.
15837 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
15839 * calls.c (precompute_arguments): Check
15840 promoted_for_signed_and_unsigned_p and set the promoted mode.
15841 (promoted_for_signed_and_unsigned_p): New function.
15842 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
15843 and set the promoted mode.
15844 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
15845 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
15846 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
15849 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
15851 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
15852 instead of SUBREG_PROMOTED_UNSIGNED_SET.
15853 (expand_call): Likewise.
15854 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
15855 to get promoted mode.
15856 * combine.c (record_promoted_value): Skip > 0 comparison with
15857 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
15858 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
15859 of SUBREG_PROMOTED_UNSIGNED_P.
15860 (convert_modes): Likewise.
15861 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
15862 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
15863 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
15864 SUBREG_PROMOTED_UNSIGNED_SET.
15865 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
15866 instead of SUBREG_PROMOTED_UNSIGNED_SET.
15867 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
15868 SUBREG_PROMOTED_SET.
15869 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
15870 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
15871 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
15872 of SUBREG_PROMOTED_UNSIGNED_P.
15873 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
15874 (SUBREG_PROMOTED_SET): New define.
15875 (SUBREG_PROMOTED_GET): Likewise.
15876 (SUBREG_PROMOTED_SIGN): Likewise.
15877 (SUBREG_PROMOTED_SIGNED_P): Likewise.
15878 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
15879 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
15880 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
15881 instead of SUBREG_PROMOTED_UNSIGNED_GET.
15882 (nonzero_bits1): Skip > 0 comparison with the results as
15883 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
15884 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
15885 of !SUBREG_PROMOTED_UNSIGNED_P.
15886 * simplify-rtx.c (simplify_unary_operation_1): Use new
15887 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
15888 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
15889 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
15890 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
15892 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
15894 * ipa-devirt.c: Include gimple-pretty-print.h
15895 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
15897 (decl_maybe_in_construction_p): Fix conditional on cdtor check
15898 (get_polymorphic_call_info): Fix return value
15899 (type_change_info): New sturcture based on ipa-prop
15901 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
15902 based on ipa-prop variant.
15903 (extr_type_from_vtbl_ptr_store): New function
15904 based on ipa-prop variant.
15905 (record_known_type): New function.
15906 (check_stmt_for_type_change): New function.
15907 (get_dynamic_type): New function.
15908 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
15909 * tree-ssa-pre.c: ipa-utils.h
15910 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
15911 machinery; sanity check with ipa-prop devirtualization.
15912 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
15915 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
15917 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
15918 * alias.c, cfgexpand.c, cgraphbuild.c,
15919 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
15920 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
15921 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
15922 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
15923 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
15924 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15925 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
15926 dse.c, except.c, gengtype.c, gimple-expr.c,
15927 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
15928 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
15929 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
15930 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
15931 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
15932 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
15934 * pointer-set.c: Remove file.
15935 * pointer-set.h: Remove file.
15937 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15939 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
15940 * config/arm/types.md (f_sels, f_seld): Delete.
15942 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15944 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
15945 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
15946 (aarch64_movdi_<mode>high): Likewise.
15947 (aarch64_mov<mode>high_di): Likewise.
15948 (aarch64_movdi_<mode>low): Likewise.
15949 (aarch64_mov<mode>low_di): Likewise.
15950 (aarch64_movtilow_tilow): Likewise.
15951 Add comment explaining usage of fp,simd attributes and of
15952 TARGET_FLOAT and TARGET_SIMD.
15954 2014-08-07 Ian Bolton <ian.bolton@arm.com>
15955 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15957 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
15958 Use MOVN when one of the half-words is 0xffff.
15960 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
15962 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
15964 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15966 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
15967 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
15968 (rfs_str): String corresponding to RFS_* constants.
15969 (rank_for_schedule_stats_t): New typedef.
15970 (rank_for_schedule_stats): New static variable.
15971 (rfs_result): New static function.
15972 (rank_for_schedule): Track statistics for deciding heuristics.
15973 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
15975 (ready_sort): Use them for debug printouts.
15976 (schedule_block): Init statistics state. Print statistics on
15977 rank_for_schedule decisions.
15979 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15981 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
15983 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
15985 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
15988 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
15990 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
15991 function to not conflict.
15992 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
15993 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
15994 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
15995 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
15996 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
15999 2014-08-07 Marek Polacek <polacek@redhat.com>
16001 * fold-const.c (fold_binary_loc): Add folding of
16002 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16004 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
16006 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16007 instead of type size.
16008 (ASM_FINISH_DECLARE_OBJECT): Likewise.
16010 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16012 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16013 (*thumb1_movqi_insn): Likewise.
16014 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16016 2014-08-07 Tom de Vries <tom@codesourcery.com>
16018 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16019 (glibc_2_11_or_earlier): Remove effective-target keywords.
16021 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16023 * config/arm/arm.c (bdesc_2arg): Fix typo.
16024 (arm_atomic_assign_expand_fenv): Remove The default implementation.
16026 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
16028 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16030 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
16033 * haifa-sched.c (advance_one_cycle): Fix dump.
16034 (schedule_block): Don't advance cycle if we are already at the
16035 beginning of the cycle.
16037 2014-08-06 Martin Jambor <mjambor@suse.cz>
16040 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16042 2014-08-06 Richard Biener <rguenther@suse.de>
16045 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16047 (lto_input_tree): Pop SCCs here.
16049 2014-08-06 Richard Biener <rguenther@suse.de>
16051 PR tree-optimization/61320
16052 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16053 handle misaligned loads.
16055 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
16057 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16058 (aarch64_expand_vec_perm_const): Check for dup before zip.
16060 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16062 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16063 CONST_INT_P instead of GET_CODE and compare.
16064 (aarch64_select_cc_mode): Likewise.
16065 (aarch64_print_operand): Likewise.
16066 (aarch64_rtx_costs): Likewise.
16067 (aarch64_simd_valid_immediate): Likewise.
16068 (aarch64_simd_check_vect_par_cnst_half): Likewise.
16069 (aarch64_simd_emit_pair_result_insn): Likewise.
16071 2014-08-05 David Malcolm <dmalcolm@redhat.com>
16073 * gdbhooks.py (find_gcc_source_dir): New helper function.
16074 (class PassNames): New class, locating and parsing passes.def.
16075 (class BreakOnPass): New command "break-on-pass".
16077 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
16079 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
16082 2014-08-05 Richard Biener <rguenther@suse.de>
16084 PR rtl-optimization/61672
16085 * emit-rtl.h (mem_attrs_eq_p): Declare.
16086 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
16087 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
16088 * cfgcleanup.c (merge_memattrs): Likewise.
16089 Include emit-rtl.h.
16091 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16093 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
16094 rather than singleton vectors.
16095 (vqdmlsls_lane_s32): Likewise.
16097 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16099 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
16100 Use VSDQ_HSI mode iterator.
16101 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16102 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
16103 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
16104 Use BUILTIN_VDQHS macro.
16105 (sqrdmulh_laneq): Likewise.
16106 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
16107 (vqdmlals_laneq_s32): Likewise.
16108 (vqdmlslh_laneq_s16): Likewise.
16109 (vqdmlsls_laneq_s32): Likewise.
16110 (vqdmulhh_laneq_s16): Likewise.
16111 (vqdmulhs_laneq_s32): Likewise.
16112 (vqrdmulhh_laneq_s16): Likewise.
16113 (vqrdmulhs_laneq_s32): Likewise.
16115 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16117 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
16118 (vmuld_laneq_f64): Likewise.
16119 (vmuls_laneq_f32): Likewise.
16120 (vmul_n_f64): Likewise.
16121 (vmuld_lane_f64): Reimplement in C.
16122 (vmuls_lane_f32): Likewise.
16124 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16126 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
16128 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
16130 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16132 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
16133 (rbitsi2): Likewise.
16134 (*arm_rev): Set predicable and predicable_short_it attributes.
16136 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16138 * convert.c (convert_to_integer): Guard transformation to lrint by
16141 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16143 * config/aarch64/aarch64-builtins.c
16144 (aarch64_simd_builtin_type_mode): Delete.
16145 (v8qi_UP): Remap to V8QImode.
16146 (v4hi_UP): Remap to V4HImode.
16147 (v2si_UP): Remap to V2SImode.
16148 (v2sf_UP): Remap to V2SFmode.
16149 (v1df_UP): Remap to V1DFmode.
16150 (di_UP): Remap to DImode.
16151 (df_UP): Remap to DFmode.
16152 (v16qi_UP):V16QImode.
16153 (v8hi_UP): Remap to V8HImode.
16154 (v4si_UP): Remap to V4SImode.
16155 (v4sf_UP): Remap to V4SFmode.
16156 (v2di_UP): Remap to V2DImode.
16157 (v2df_UP): Remap to V2DFmode.
16158 (ti_UP): Remap to TImode.
16159 (ei_UP): Remap to EImode.
16160 (oi_UP): Remap to OImode.
16161 (ci_UP): Map to CImode.
16162 (xi_UP): Remap to XImode.
16163 (si_UP): Remap to SImode.
16164 (sf_UP): Remap to SFmode.
16165 (hi_UP): Remap to HImode.
16166 (qi_UP): Remap to QImode.
16167 (aarch64_simd_builtin_datum): Make mode a machine_mode.
16168 (VAR1): Build builtin name.
16169 (aarch64_init_simd_builtins): Remove dead code.
16171 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16173 * graphite-isl-ast-to-gimple.c:
16174 (set_options): New function.
16175 (scop_to_isl_ast): Add calling of set_options.
16177 2014-08-05 Jakub Jelinek <jakub@redhat.com>
16179 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
16180 (analyze_iv_to_split_insn): Don't initialize them.
16181 (get_ivts_expr): Removed.
16182 (allocate_basic_variable, insert_base_initialization): Use
16183 SET_SRC instead of *get_ivts_expr.
16184 (split_iv): Use &SET_SRC instead of get_ivts_expr.
16186 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16188 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
16189 (translate_isl_ast_for_loop): Add checking of the
16190 flag_loop_parallelize_all.
16191 (ast_build_before_for): New function.
16192 (scop_to_isl_ast): Add checking of the
16193 flag_loop_parallelize_all.
16194 * graphite-dependences.c: Move the defenition of the
16195 scop_get_dependences from graphite-optimize-isl.c to this file.
16196 (apply_schedule_on_deps): Add checking of the ux's emptiness.
16197 (carries_deps): Add checking of the x's value.
16198 * graphite-optimize-isl.c: Move the defenition of the
16199 scop_get_dependences to graphite-dependences.c.
16200 * graphite-poly.h: Add declarations of scop_get_dependences
16203 2014-08-04 Rohit <rohitarulraj@freescale.com>
16206 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
16208 (alt_reg_names): Likewise.
16209 (rs6000_dwarf_register_span): For SPE high registers, replace
16210 dwarf register numbers with GCC hard register numbers.
16211 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
16212 (rs6000_dbx_register_number): For SPE high registers, return dwarf
16213 register number for the corresponding GCC hard register number.
16214 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
16215 newly added GCC hard register numbers for SPE high registers.
16216 (DWARF_FRAME_REGISTERS): Likewise.
16217 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
16218 (DWARF_FRAME_REGNUM): Likewise.
16219 (FIXED_REGISTERS): Likewise.
16220 (CALL_USED_REGISTERS): Likewise.
16221 (CALL_REALLY_USED_REGISTERS): Likewise.
16222 (REG_ALLOC_ORDER): Likewise.
16223 (enum reg_class): Likewise.
16224 (REG_CLASS_NAMES): Likewise.
16225 (REG_CLASS_CONTENTS): Likewise.
16226 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
16228 2014-08-04 Richard Biener <rguenther@suse.de>
16230 * gimple-fold.h (gimple_fold_builtin): Remove.
16231 * gimple-fold.c (gimple_fold_builtin): Make static.
16232 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
16233 fold_stmt, not gimple_fold_builtin.
16235 2014-08-04 Martin Liska <mliska@suse.cz>
16237 * cgraph.h (csi_end_p): Removed.
16238 (csi_next): Likewise.
16239 (csi_node): Likewise.
16240 (csi_start): Likewise.
16241 (cgraph_node_in_set_p): Likewise.
16242 (cgraph_node_set_size): Likewise.
16243 (vsi_end_p): Likewise.
16244 (vsi_next): Likewise.
16245 (vsi_node): Likewise.
16246 (vsi_start): Likewise.
16247 (varpool_node_set_size): Likewise.
16248 (cgraph_node_set_nonempty_p): Likewise.
16249 (varpool_node_set_nonempty_p): Likewise.
16250 * cgraphunit.c (cgraph_process_new_functions): vec replaces
16252 * ipa-inline-transform.c: Likewise.
16253 * ipa-utils.c (cgraph_node_set_new): Removed.
16254 (cgraph_node_set_add): Likewise.
16255 (cgraph_node_set_remove): Likewise.
16256 (cgraph_node_set_find): Likewise.
16257 (dump_cgraph_node_set): Likewise.
16258 (debug_cgraph_node_set): Likewise.
16259 (free_cgraph_node_set): Likewise.
16260 (varpool_node_set_new): Likewise.
16261 (varpool_node_set_add): Likewise.
16262 (varpool_node_set_remove): Likewise.
16263 (varpool_node_set_find): Likewise.
16264 (dump_varpool_node_set): Likewise.
16265 (free_varpool_node_set): Likewise.
16266 (debug_varpool_node_set): Likewise.
16267 * tree-emutls.c (struct tls_var_data):
16268 (emutls_index): Removed.
16269 (emutls_decl): Likewise.
16270 (gen_emutls_addr): Function implementation uses newly added
16271 hash_map<varpool_node *, tls_var_data>.
16272 (clear_access_vars): Likewise.
16273 (create_emultls_var): Likewise.
16274 (ipa_lower_emutls): Likewise.
16275 (reset_access): New function.
16277 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16279 * config/i386/i386.c (ix86_option_override_internal): Add
16280 PTA_RDRND and PTA_MOVBE for bdver4.
16282 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16283 James Greenhalgh <james.greenhalgh@arm.com>
16285 * doc/md.texi (clrsb): Document.
16286 (clz): Change reference to x into operand 1.
16288 (popcount): Likewise.
16290 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16293 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
16294 move to subtarget in serial version if result is ignored.
16296 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16297 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16299 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
16300 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
16301 (sched_analyze_insn): Update use of try_group_insn to
16302 sched_macro_fuse_insns.
16303 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
16304 arguments that are not conditional jumps.
16306 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16308 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
16309 family information. Handle BTVER2 cpu with cpuid family value.
16311 2014-08-04 Tom de Vries <tom@codesourcery.com>
16313 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16314 (glibc_2_11_or_earlier): Document effective-target keywords.
16316 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16318 * ipa-devirt.c (odr_type_warn_count): Add type.
16319 (possible_polymorphic_call_targets): Set it.
16320 (ipa_devirt): Use it.
16322 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16324 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16326 * ipa-devirt.c: Include hash-map.h
16327 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16328 (clear_speculation): Break out of ...
16329 (get_class_context): ... here; speed up handling obviously useless
16331 (odr_type_warn_count, decl_warn_count): New structures.
16332 (final_warning_record): New structure.
16333 (final_warning_records): New static variable.
16334 (possible_polymorphic_call_targets): Cleanup handling of
16335 speculative info; do not build speculation when user do not care;
16336 record info about warnings when asked for.
16337 (add_decl_warning): New function.
16338 (type_warning_cmp): New function.
16339 (decl_warning_cmp): New function.
16340 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16341 (gate): Enable pass when warnings are requested.
16342 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16345 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16347 * hash-map.h (default_hashmap_traits::mark_key_deleted):
16349 (hash_map::remove): New method.
16350 (hash_map::traverse): New method.
16351 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16352 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16353 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16354 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16355 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16356 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16359 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16361 * hash-set.h: new File.
16362 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16363 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16364 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16365 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16366 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16367 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16368 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16369 varpool.c: Use hash_set instead of pointer_set.
16371 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
16373 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16375 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16377 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16378 for frame access when strict_p is false.
16380 2014-08-01 Renlin Li <renlin.li@arm.com>
16381 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16383 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16384 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16385 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16387 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16389 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16390 aarch64_mem_pair_offset.
16392 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16394 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16396 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16397 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16399 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
16401 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16403 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
16405 PR regression/61510
16406 * cgraphunit.c (analyze_functions): Use get_create rather than get
16407 for decls which are clones of abstract functions.
16409 2014-08-01 Martin Liska <mliska@suse.cz>
16411 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
16412 * ipa-prop.h (count_formal_params): Global function created from static.
16413 * ipa-prop.c (count_formal_params): Likewise.
16414 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
16415 profiles for semantically equivalent functions.
16416 * passes.c (do_per_function): If we load body of a function
16417 during WPA, this condition should behave same.
16418 * varpool.c (ctor_for_folding): More tolerant assert for variable
16419 aliases created during WPA.
16421 2014-08-01 Martin Liska <mliska@suse.cz>
16423 * doc/invoke.texi (Options That Control Optimization): Documentation
16424 for -foptimize-strlen introduced. Optimization levels default options
16427 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16429 * opts.c (common_handle_option): Handle -fsanitize=alignment.
16430 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16431 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16433 * stor-layout.h (min_align_of_type): New prototype.
16434 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16435 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
16437 * ubsan.c: Include builtins.h.
16438 (ubsan_expand_bounds_ifn): Change return type to bool,
16439 always return true.
16440 (ubsan_expand_null_ifn): Change return type to bool, change
16441 argument to gimple_stmt_iterator *. Handle both null and alignment
16442 sanitization, take type from ckind argument's type rather than
16444 (instrument_member_call): Removed.
16445 (instrument_mem_ref): Remove t argument, add mem and base arguments.
16446 Handle both null and alignment sanitization, don't say whole
16447 struct access is member access. Build 3 argument IFN_UBSAN_NULL
16448 call instead of 2 argument.
16449 (instrument_null): Adjust instrument_mem_ref caller. Don't
16450 instrument calls here.
16451 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16452 like SANITIZE_NULL.
16453 * stor-layout.c (min_align_of_type): New function.
16454 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16455 Or it into SANITIZE_UNDEFINED.
16456 * doc/invoke.texi (-fsanitize=alignment): Document.
16458 2014-07-31 Andi Kleen <ak@linux.intel.com>
16460 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
16462 2014-07-31 Andi Kleen <ak@linux.intel.com>
16464 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
16466 (vn_reference_compute_hash): Dito.
16467 (vn_nary_op_compute_hash): Dito.
16468 (vn_phi_compute_hash): Dito.
16469 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
16471 2014-07-31 Andi Kleen <ak@linux.intel.com>
16473 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
16474 Rename to inchash:add_expr_commutative. Convert to inchash.
16475 (iterative_hash_hashable_expr): Rename to
16476 inchash:add_hashable_expr. Convert to inchash.
16477 (avail_expr_hash): Dito.
16479 2014-07-31 Andi Kleen <ak@linux.intel.com>
16481 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
16482 Convert to inchash.
16484 2014-07-31 Andi Kleen <ak@linux.intel.com>
16486 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
16488 2014-07-31 Andi Kleen <ak@linux.intel.com>
16490 * Makefile.in (OBJS): Add rtlhash.o
16491 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
16492 (loc_checksum): Dito.
16493 (loc_checksum_ordered): Dito.
16494 (hash_loc_operands): Dito.
16496 (hash_loc_list): Dito.
16497 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
16498 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
16499 * rtlhash.c: New file.
16500 * rtlhash.h: New file.
16502 2014-07-31 Andi Kleen <ak@linux.intel.com>
16504 * inchash.h (inchash): Change inchash class to namespace.
16505 (class hash): ... Rename from inchash.
16506 (add_object): Move from macro to class template.
16507 * lto-streamer-out.c (hash_tree): Change inchash
16509 * tree.c (build_type_attribute_qual_variant): Dito.
16510 (type_hash_list): Dito.
16511 (attribute_hash_list): Dito.
16512 (iterative_hstate_expr): Rename to inchash::add_expr
16513 (build_range_type_1): Change inchash to inchash::hash
16514 and use hash::add_expr.
16515 (build_array_type_1): Dito.
16516 (build_function_type): Dito
16517 (build_method_type_directly): Dito.
16518 (build_offset_type): Dito.
16519 (build_complex_type): Dito.
16520 (make_vector_type): Dito.
16521 * tree.h (iterative_hash_expr): Dito.
16523 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
16525 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
16527 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16529 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
16530 correct alphabetical position.
16531 (vpaddd_f64): Rewrite using builtins.
16532 (vpaddd_s64): Move to correct alphabetical position.
16535 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
16538 * config/sh/sh.c (sh_legitimate_address_p,
16539 sh_legitimize_reload_address): Handle reg+reg address modes when
16540 ALLOW_INDEXED_ADDRESS is false.
16541 * config/sh/predicates.md (general_movsrc_operand,
16542 general_movdst_operand): Likewise.
16544 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16546 * config/aarch64/aarch64-builtins.c
16547 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
16550 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16552 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
16553 the generated mask based on BYTES_BIG_ENDIAN.
16554 (aarch64_simd_check_vect_par_cnst_half): New.
16555 * config/aarch64/aarch64-protos.h
16556 (aarch64_simd_check_vect_par_cnst_half): New.
16557 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
16558 the check out to aarch64_simd_check_vect_par_cnst_half.
16559 (vect_par_cnst_lo_half): Likewise.
16560 * config/aarch64/aarch64-simd.md
16561 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
16562 (move_hi_quad_<mode>): Always generate a low mask.
16564 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16566 * doc/invoke.texi (AVR Options): Add documentation about
16567 __AVR_DEVICE_NAME__ built-in macro.
16569 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
16572 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
16573 constraints are satisfied.
16574 (<shift>di3_neon): Likewise.
16576 2014-07-31 Richard Biener <rguenther@suse.de>
16578 PR tree-optimization/61964
16579 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
16580 by structural equality.
16582 2014-07-31 Yury Gribov <y.gribov@samsung.com>
16584 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
16585 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
16586 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
16588 * gcc.c (sanitize_spec_function): Support new option.
16589 (SANITIZER_SPEC): Remove now redundant check.
16590 * opts.c (common_handle_option): Support new option.
16591 (finish_options): Check for incompatibilities.
16592 * toplev.c (process_options): Split userspace-specific checks.
16594 2014-07-31 Richard Biener <rguenther@suse.de>
16596 * lto-streamer.h (struct output_block): Remove global.
16597 (struct data_in): Remove labels, num_named_labels and
16598 num_unnamed_labels.
16599 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
16600 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
16602 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
16605 * common.opt (-Wreturn-local-addr): Moved from c.opt.
16606 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
16607 (isolate_path): New argument to avoid inserting a trap.
16608 (find_implicit_erroneous_behaviour): Handle returning the address
16609 of a local variable.
16610 (find_explicit_erroneous_behaviour): Likewise.
16612 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
16615 * toplev.c (init_random_seed): Move piece of code never called to
16617 (set_random_seed): see above.
16619 2014-07-31 Tom de Vries <tom@codesourcery.com>
16621 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
16623 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
16625 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
16626 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
16628 2014-07-31 Richard Biener <rguenther@suse.de>
16630 * data-streamer.h (streamer_write_data_stream): Declare here,
16632 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
16633 * lto-cgraph.c (lto_output_node): Adjust.
16634 (lto_output_varpool_node): Likewise.
16635 * data-streamer-out.c (streamer_string_index): Likewise.
16636 (streamer_write_data_stream, lto_append_block): Move from ...
16637 * lto-section-out.c (lto_output_data_stream,
16638 lto_append_block): ... here.
16640 2014-07-30 Mike Stump <mikestump@comcast.net>
16642 * configure.ac: Also check for popen.
16643 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
16644 * configure: Regenerate.
16645 * config.in: Regenerate.
16647 2014-07-30 Martin Jambor <mjambor@suse.cz>
16649 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
16650 parameter to gimple.
16652 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16654 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
16655 address as second parameter to __tpf_eh_return routine.
16657 2014-07-30 Jiong Wang <jiong.wang@arm.com>
16659 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
16662 2014-07-30 Tom Tromey <tromey@redhat.com>
16665 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
16666 * doc/extend.texi (Type Attributes): Document designated_init
16669 2014-07-30 Roman Gareev <gareevroman@gmail.com>
16671 * graphite-isl-ast-to-gimple.c:
16672 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
16673 (gcc_expression_from_isl_expression): Pass type to
16674 gcc_expression_from_isl_ast_expr_id.
16676 2014-07-30 Richard Biener <rguenther@suse.de>
16678 * lto-streamer.h (lto_write_data): New function.
16679 * langhooks.c (lhd_append_data): Do not free block.
16680 * lto-section-out.c (lto_write_data): New function writing
16681 raw data to the current section.
16682 (lto_write_stream): Adjust for langhook semantic change.
16683 (lto_destroy_simple_output_block): Write header directly.
16684 * lto-opts.c (lto_write_options): Write options directly.
16685 * lto-streamer-out.c (produce_asm): Write heaeder directly.
16686 (lto_output_toplevel_asms): Likewise.
16687 (copy_function_or_variable): Copy data directly.
16688 (write_global_references): Output index table directly.
16689 (lto_output_decl_state_refs): Likewise.
16690 (write_symbol): Write data directly.
16691 (produce_symtab): Adjust.
16692 (produce_asm_for_decls): Output header and refs directly.
16694 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
16696 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
16697 to speculative_targets
16698 (get_class_context): Fix handling of contextes without outer type;
16699 avoid matching non-polymorphic types in LTO.
16700 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
16701 parameter to speculative_targetsp; handle speculation.
16702 (dump_possible_polymorphic_call_targets): Update dumping.
16704 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
16706 * common.opt (Wodr): Enable by default.
16708 2014-07-29 Olivier Hainque <hainque@adacore.com>
16710 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
16712 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
16715 * gengtype.c (strtoken): New function.
16716 (create_user_defined_type): Replace strtok with strtoken.
16718 2014-07-29 Nathan Sidwell <nathan@acm.org>
16720 * gcov-io.c (gcov_var): Make hidden.
16721 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
16722 (gcov_do_dump): Declare.
16723 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
16725 2014-07-29 Martin Jambor <mjambor@suse.cz>
16727 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
16728 parameter to gimple.
16729 (sra_modify_assign): Likewise.
16731 2014-07-29 Richard Biener <rguenther@suse.de>
16733 PR middle-end/52478
16734 * expr.c (expand_expr_real_2): Revert last change.
16736 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
16738 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
16739 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
16740 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
16742 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
16743 (contains_type_p): Forward declare.
16744 (polymorphic_call_target_hasher::hash): Hash speculative info.
16745 (polymorphic_call_target_hasher::equal): Compare speculative info.
16746 (get_class_context): Handle speuclation.
16747 (contains_type_p): Update.
16748 (get_polymorphic_call_info_for_decl): Update.
16749 (walk_ssa_copies): Break out from ...
16750 (get_polymorphic_call_info): ... here; set speculative context
16752 * ipa-prop.c (ipa_write_indirect_edge_info,
16753 ipa_read_indirect_edge_info): Stream speculative context.
16754 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
16755 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
16756 SPECULATIVE_MAYBE_DERIVED_TYPE).
16757 (possible_polymorphic_call_targets overriders): Update.
16758 (dump_possible_polymorphic_call_targets overriders): Update.
16759 (dump_possible_polymorphic_call_target_p overriders): Update.
16761 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
16763 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
16764 ipa-devirt path; fix thinko there.
16766 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
16768 * config/i386/i386.c (ix86_return_in_memory): Replace one
16769 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
16771 2014-07-28 Marek Polacek <polacek@redhat.com>
16773 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
16775 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
16777 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
16778 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
16779 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
16780 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16781 (USE_LD_AS_NEEDED): Likewise.
16782 (ASM_APP_ON): Likewise.
16783 (ASM_APP_OFF): Likewise.
16784 (TARGET_POSIX_IO): Likewise.
16785 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
16786 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16787 (USE_LD_AS_NEEDED): Likewise.
16788 (ASM_APP_ON): Likewise.
16789 (ASM_APP_OFF): Likewise.
16790 (TARGET_POSIX_IO): Likewise.
16792 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
16794 PR middle-end/61734
16795 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
16796 operators other than the equality operators.
16798 2014-07-28 Richard Biener <rguenther@suse.de>
16800 PR middle-end/52478
16801 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
16802 sure to register SImode ones, not only >= word_mode ones.
16803 * expr.c (expand_expr_real_2): When expanding -ftrapv
16804 binops do not use OPTAB_LIB_WIDEN.
16806 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
16808 PR middle-end/61919
16809 * tree-outof-ssa.c (insert_partition_copy_on_edge)
16810 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
16811 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
16812 inserting them in the insn stream.
16814 2014-07-28 Marek Polacek <polacek@redhat.com>
16816 PR middle-end/61913
16817 * common.opt (Wodr): Add Var.
16819 2014-07-28 Richard Biener <rguenther@suse.de>
16821 PR tree-optimization/61921
16822 * tree-ssa-structalias.c (create_variable_info_for_1): Check
16823 if there is a varpool node before dereferencing it.
16825 2014-07-28 Roman Gareev <gareevroman@gmail.com>
16827 * graphite-sese-to-poly.c:
16828 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
16829 id of the pbb), which contains pointer to the pbb1.
16831 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
16833 2014-07-28 Roman Gareev <gareevroman@gmail.com>
16835 * graphite-isl-ast-to-gimple.c:
16836 (graphite_create_new_guard): New function.
16837 (translate_isl_ast_node_if): New function.
16838 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
16840 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
16842 2014-07-27 Anthony Green <green@moxielogic.com>
16844 * config.gcc: Add moxie-*-moxiebox* configuration.
16845 * config/moxie/moxiebox.h: New file.
16847 2014-07-26 Andrew Pinski <apinski@cavium.com>
16849 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
16850 from the read only register.
16852 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
16854 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
16855 as the allocation class if it isn't likely to be spilled.
16857 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
16859 * rtl.h (tls_referenced_p): Declare.
16860 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
16861 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
16862 (mips_cannot_force_const_mem): Use tls_referenced_p.
16863 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
16864 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
16865 instead of pa_tls_referenced_p.
16866 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
16867 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
16868 (pa_legitimate_constant_p): Likewise.
16869 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
16870 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
16871 (rs6000_cannot_force_const_mem, rs6000_emit_move)
16872 (rs6000_address_for_altivec): Use tls_referenced_p instead of
16873 rs6000_tls_referenced_p.
16874 (rs6000_tls_symbol_ref_1): Delete.
16876 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
16879 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
16880 Optimize inverse of a VEC_CONCAT.
16882 2014-07-25 Xinliang David Li <davidxl@google.com>
16884 * params.def: New parameter.
16885 * coverage.c (get_coverage_counts): Check new flag.
16886 (coverage_compute_profile_id): Check new flag.
16887 (coverage_begin_function): Check new flag.
16888 (coverage_end_function): Check new flag.
16889 * value-prof.c (coverage_node_map_initialized_p): New function.
16890 (init_node_map): Populate map with all functions.
16891 * doc/invoke.texi: Document new parameter.
16893 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
16894 Richard Biener <rguenther@suse.de>
16896 * lto-streamer-out.c (struct sccs): Turn to ...
16897 (class DFS): ... this one; refactor the DFS walk so it can
16898 be re-done on per-SCC basis.
16899 (DFS::DFS): New constructor.
16900 (DFS::~DFS): New destructor.
16901 (hash_tree): Add new MAP argument holding in-SCC hash values;
16902 remove POINTER_TYPE hashing hack.
16903 (scc_entry_compare): Rename to ...
16904 (DFS::scc_entry_compare): ... this one.
16905 (hash_scc): Rename to ...
16906 (DFS::hash_scc): ... this one; pass output_block instead
16907 of streamer_cache; work harder to get unique and stable SCC
16909 (DFS_write_tree): Rename to ...
16910 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
16911 (lto_output_tree): Update.
16913 2014-07-25 Andi Kleen <ak@linux.intel.com>
16915 * lto-streamer-out.c (hash_tree): Convert to inchash.
16917 2014-07-25 Andi Kleen <ak@linux.intel.com>
16919 * tree.c (build_type_attribute_qual_variant): Use inchash.
16920 (type_hash_list): Dito.
16921 (attribute_hash_list): Dito
16922 (iterative_hstate_expr): Dito.
16923 (iterative_hash_expr): Dito.
16924 (build_range_type_1): Dito.
16925 (build_array_type_1): Dito.
16926 (build_function_type): Dito.
16927 (build_method_type_directly): Dito.
16928 (build_offset_type): Dito.
16929 (build_complex_type): Dito.
16930 (make_vector_type): Dito.
16931 * tree.h (iterative_hash_expr): Add compat wrapper.
16932 (iterative_hstate_expr): Add.
16934 2014-07-25 Andi Kleen <ak@linux.intel.com>
16936 * Makefile.in (OBJS): Add inchash.o.
16937 (PLUGIN_HEADERS): Add inchash.h.
16938 * ipa-devirt.c: Include inchash.h.
16939 * lto-streamer-out.c: Dito.
16940 * tree-ssa-dom.c: Dito.
16941 * tree-ssa-pre.c: Dito.
16942 * tree-ssa-sccvn.c: Dito.
16943 * tree-ssa-tail-merge.c: Dito.
16945 * tree.c (iterative_hash_hashval_t): Move to ...
16946 (iterative_hash_host_wide_int): Move to ...
16947 * inchash.c: Here. New file.
16948 * tree.h (iterative_hash_hashval_t): Move to ...
16949 (iterative_hash_host_wide_int): Move to ...
16950 * inchash.h: Here. New file.
16952 2014-07-25 Richard Biener <rguenther@suse.de>
16954 PR middle-end/61762
16955 PR middle-end/61894
16956 * fold-const.c (native_encode_int): Add and handle offset
16957 parameter to do partial encodings of expr.
16958 (native_encode_fixed): Likewise.
16959 (native_encode_real): Likewise.
16960 (native_encode_complex): Likewise.
16961 (native_encode_vector): Likewise.
16962 (native_encode_string): Likewise.
16963 (native_encode_expr): Likewise.
16964 * fold-const.c (native_encode_expr): Add offset parameter
16966 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
16967 (fold_ctor_reference): Handle all reads from tcc_constant
16970 2014-07-25 Richard Biener <rguenther@suse.de>
16972 * tree-inline.c (estimate_move_cost): Mark speed_p argument
16973 as possibly unused.
16975 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16977 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
16979 2014-07-24 Kyle McMartin <kyle@redhat.com>
16981 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
16983 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16985 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
16987 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
16989 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
16990 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
16991 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
16993 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16995 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
16996 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
16997 aggregate types. Instead, *all* aggregate types, except for single-
16998 element or homogeneous float/vector aggregates, are quadword-aligned
16999 if required by their type alignment. Issue -Wpsabi note when a type
17000 is now treated differently than before.
17002 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17004 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17005 does not fit fully into floating-point registers, and there is still
17006 space in the register parameter area, use GPRs to pass those parts
17007 of the argument. Issue -Wpsabi note if any parameter is now treated
17008 differently than before.
17009 (rs6000_arg_partial_bytes): Update.
17011 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
17013 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17015 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17017 * rtl.h (target_rtl): Remove lang_dependent_initialized.
17018 * toplev.c (initialize_rtl): Don't use it. Move previously
17019 "language-dependent" calls to...
17020 (backend_init): ...here.
17021 (lang_dependent_init_target): Don't set lang_dependent_initialized.
17022 Assert that RTL initialization hasn't happend yet.
17024 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17026 PR rtl-optimization/61629
17027 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17028 they have already been initialized.
17030 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17032 PR middle-end/61268
17033 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17034 DECL_INCOMING_RTL and entry_parm.
17035 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17036 * calls.c (load_register_parameters): Likewise argument values.
17037 (emit_library_call_value_1, store_one_arg): Likewise argument
17039 * config/i386/i386.c (assign_386_stack_local): Likewise the local
17041 * explow.c (validize_mem): Modify the argument in-place.
17043 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17045 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17046 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17048 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17050 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17051 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17053 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17055 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17056 (aarch64_save_callee_saves): New parameter "skip_wb".
17057 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17059 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17061 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17063 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
17065 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17067 * graphite-isl-ast-to-gimple.c:
17068 (graphite_create_new_loop): Add calling of isl_id_free to properly
17069 decrement reference counts.
17071 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
17073 2014-07-24 Martin Liska <mliska@suse.cz>
17074 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
17076 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
17077 (rs6000_code_end): Likewise.
17079 2014-07-24 Martin Liska <mliska@suse.cz>
17081 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
17082 symtab_node funtion used.
17083 (rs6000_xcoff_declare_object_name): Likewise.
17085 2014-07-24 Martin Liska <mliska@suse.cz>
17087 * cgraphunit.c (compile): Correct function used.
17089 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17091 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
17094 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17097 * varasm.c (bss_initializer_p): Handle offlined ctors.
17098 (align_variable, get_variable_align): Likewise.
17099 (make_decl_one_only): Likewise.
17100 (default_binds_local_p_1): Likewise.
17101 (decl_binds_to_current_def_p): Likewise.
17102 (get_variable_section): Get constructor if it is offlined.
17103 (assemble_variable_contents): Sanity check that the caller
17104 streamed in the ctor in LTO.
17106 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17108 * graphite-isl-ast-to-gimple.c:
17109 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
17110 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
17111 isl_ast_op_pdiv_r to the different case.
17113 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
17115 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17117 PR middle-end/61876
17118 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
17119 when flag_errno_math is on.
17121 2014-07-24 Martin Liska <mliska@suse.cz>
17123 * cgraph.h (varpool_node):
17124 (availability get_availability (void)):
17125 created from cgraph_variable_initializer_availability
17126 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
17127 created from: cgraph_variable_initializer_availability
17128 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
17129 (void finalize_named_section_flags (void)):
17130 created from varpool_finalize_named_section_flags
17131 (bool assemble_decl (void)): created from varpool_assemble_decl
17132 (void analyze (void)): created from varpool_analyze_node
17133 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
17134 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
17135 (void remove_initializer (void)): created from varpool_remove_initializer
17136 (tree get_constructor (void)): created from varpool_get_constructor
17137 (bool externally_visible_p (void)): created from varpool_externally_visible_p
17138 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
17139 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
17140 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
17141 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
17142 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
17143 (static bool output_variables (void)): created from varpool_output_variables
17144 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
17145 created from varpool_extra_name_alias
17146 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
17147 (static void dump_varpool (FILE *f)): created from dump_varpool
17148 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
17149 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
17150 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
17151 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
17152 (void assemble_aliases (void)): created from assemble_aliases
17154 2014-07-24 Martin Liska <mliska@suse.cz>
17156 * cgraph.h (symtab_node):
17157 (void register_symbol (void)): created from symtab_register_node
17158 (void remove (void)): created from symtab_remove_node
17159 (void dump (FILE *f)): created from dump_symtab_node
17160 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
17161 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
17162 (struct ipa_ref *add_reference (symtab_node *referred_node,
17163 enum ipa_ref_use use_type)): created from add_reference
17164 (struct ipa_ref *add_reference (symtab_node *referred_node,
17165 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
17166 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
17167 gimple stmt)): created from maybe_add_reference
17168 (bool semantically_equivalent_p (symtab_node *target)): created from
17169 symtab_semantically_equivalent_p
17170 (void remove_from_same_comdat_group (void)): created from
17171 remove_from_same_comdat_group
17172 (void add_to_same_comdat_group (symtab_node *old_node)): created from
17173 symtab_add_to_same_comdat_group
17174 (void dissolve_same_comdat_group_list (void)): created from
17175 symtab_dissolve_same_comdat_group_list
17176 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
17177 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
17178 created from symtab_alias_ultimate_target
17179 (inline symtab_node *next_defined_symbol (void)): created from
17180 symtab_next_defined_symbol
17181 (bool resolve_alias (symtab_node *target)): created from
17182 symtab_resolve_alias
17183 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
17184 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
17185 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
17186 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
17187 (void set_section (const char *section)): created from set_section_1
17188 (enum availability get_availability (void)): created from symtab_node_availability
17189 (void make_decl_local (void)): created from symtab_make_decl_local
17190 (bool real_symbol_p (void)): created from symtab_read_node
17191 (can_be_discarded_p (void)): created from symtab_can_be_discarded
17192 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
17193 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
17194 symtab_in_same_comdat_p;
17195 (bool address_taken_from_non_vtable_p (void)): created from
17196 address_taken_from_non_vtable_p
17197 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
17198 (static void dump_table (FILE *)): created from dump_symtab
17199 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
17200 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
17201 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
17202 symtab_used_from_object_file_p
17203 (void dump_base (FILE *)): created from dump_symtab_base
17204 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
17205 (void unregister (void)): created from symtab_unregister_node
17206 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
17207 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
17208 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
17209 symtab_nonoverwritable_alias_1
17210 * cgraph.h (cgraph_node):
17211 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
17212 created from cgraph_remove_node_and_inline_clones
17213 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
17214 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
17215 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
17216 (cgraph_node *function_symbol (enum availability *avail = NULL)):
17217 created from cgraph_function_node
17218 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
17219 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
17220 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
17221 created from cgraph_create_clone
17222 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
17223 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
17224 created from cgraph_create_virtual_clone
17225 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
17226 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
17227 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
17228 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
17229 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
17230 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
17231 created from cgraph_function_version_info
17232 (struct cgraph_function_version_info *insert_new_function_version (void)):
17233 created from insert_new_cgraph_node_version
17234 (struct cgraph_function_version_info *function_version (void)): created from
17235 get_cgraph_node_version
17236 (void analyze (void)): created from analyze_function
17237 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
17238 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
17239 tree real_alias) cgraph_add_thunk
17240 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
17241 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
17242 created from cgraph_function_or_thunk_node
17243 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
17244 created from expand_thunk
17245 (void reset (void)): created from cgraph_reset_node
17246 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
17247 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
17248 (void remove (void)): created from cgraph_remove_node
17249 (void dump (FILE *f)): created from dump_cgraph_node
17250 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
17251 (bool get_body (void)): created from cgraph_get_body
17252 (void release_body (void)): created from cgraph_release_function_body
17253 (void unnest (void)): created from cgraph_unnest_node
17254 (void make_local (void)): created from cgraph_make_node_local
17255 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
17256 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
17257 gcov_type count, int freq)): created from cgraph_create_edge
17258 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
17259 gcov_type count, int freq)): created from cgraph_create_indirect_edge
17260 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
17261 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
17262 created from cgraph_create_edge_including_clones
17263 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
17264 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
17265 (void remove_callers (void)): created from cgraph_node_remove_callers
17266 (void remove_callees (void)): created from cgraph_node_remove_callees
17267 (enum availability get_availability (void)): created from cgraph_function_body_availability
17268 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
17269 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
17270 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
17271 (void call_duplication_hooks (cgraph_node *node2)): created from
17272 cgraph_call_node_duplication_hooks
17273 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
17274 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
17275 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
17276 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
17277 (void call_function_insertion_hooks (void)):
17278 created from cgraph_call_function_insertion_hooks
17279 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
17280 (bool local_p (void)): created from cgraph_local_node
17281 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
17282 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
17283 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
17284 (inline bool only_called_directly_or_aliased_p (void)):
17285 created from cgraph_only_called_directly_or_aliased_p
17286 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
17287 created from cgraph_will_be_removed_from_program_if_no_direct_calls
17288 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
17289 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
17290 (bool can_remove_if_no_direct_calls_p (void)):
17291 created from cgraph_can_remove_if_no_direct_calls_p
17292 (inline bool has_gimple_body_p (void)):
17293 created from cgraph_function_with_gimple_body_p
17294 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
17295 (static void dump_cgraph (FILE *f)): created from dump_cgraph
17296 (static inline void debug_cgraph (void)): created from debug_cgraph
17297 (static void record_function_versions (tree decl1, tree decl2)):
17298 created from record_function_versions
17299 (static void delete_function_version (tree decl)):
17300 created from delete_function_version
17301 (static void add_new_function (tree fndecl, bool lowered)):
17302 created from cgraph_add_new_function
17303 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
17304 (static cgraph_node * create (tree decl)): created from cgraph_create_node
17305 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
17306 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
17307 (static cgraph_node *get_for_asmname (tree asmname)):
17308 created from cgraph_node_for_asm
17309 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
17310 created from cgraph_same_body_alias
17311 (static bool used_from_object_file_p_worker (cgraph_node *node,
17312 void *): new function
17313 (static bool non_local_p (cgraph_node *node, void *)):
17314 created from cgraph_non_local_node_p_1
17315 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17316 created from verify_cgraph
17317 (static bool make_local (cgraph_node *node, void *)):
17318 created from cgraph_make_node_local
17319 (static cgraph_node *create_alias (tree alias, tree target)):
17320 created from cgraph_create_function_alias
17321 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17322 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17323 created from cgraph_create_edge_1
17324 * cgraph.h (varpool_node):
17325 (void remove (void)): created from varpool_remove_node
17326 (void dump (FILE *f)): created from dump_varpool_node
17328 2014-07-24 Richard Biener <rguenther@suse.de>
17331 * tree-ssa-structalias.c (create_variable_info_for_1):
17332 Use varpool_get_constructor.
17333 (create_variable_info_for): Likewise.
17335 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17337 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17338 subtract outgoing area size when restoring stack_pointer_rtx.
17340 2014-07-24 Nick Clifton <nickc@redhat.com>
17342 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17343 that operations are taking place in parallel.
17344 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17346 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
17348 * omp-low.c (extract_omp_for_data): Add missing break statement.
17350 2014-07-24 Richard Biener <rguenther@suse.de>
17352 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17353 * tree-inline.c (estimate_move_cost): Add speed_p parameter
17354 and adjust MOVE_RATIO query accordingly.
17355 (estimate_num_insns): Adjust callers.
17356 * ipa-prop.c (ipa_populate_param_decls): Likewise.
17357 * ipa-cp.c (gather_context_independent_values,
17358 estimate_local_effects): Likewise.
17359 * ipa-split.c (consider_split): Likewise.
17361 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
17363 * config/i386/driver-i386.c: Remove names of unused arguments and
17364 unnecessary unused attributes.
17365 * config/i386/host-mingw32.c: Likewise.
17366 * config/i386/i386.c: Likewise.
17367 * config/i386/winnt-stubs.c: Likewise.
17368 * config/i386/winnt.c: Likewise.
17370 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17372 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17373 (aarch64_gen_loadwb_pair): New helper function.
17374 (aarch64_expand_epilogue): Simplify code using new helper functions.
17375 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17377 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17379 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17380 (aarch64_gen_storewb_pair): New helper function.
17381 (aarch64_expand_prologue): Simplify code using new helper functions.
17382 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17384 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17386 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17387 Rename to aarch64_save_callee_saves, remove restore code.
17388 (aarch64_restore_callee_saves): New function.
17390 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17392 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17393 (aarch64_save_callee_saves): New function to handle reg save
17394 for both core and vectore regs.
17396 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17398 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17399 (aarch64_gen_store_pair): New helper function.
17400 (aarch64_save_or_restore_callee_save_registers)
17401 (aarch64_save_or_restore_fprs): Use new helper functions.
17403 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17405 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17406 (aarch64_save_or_restore_callee_save_registers)
17407 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
17409 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17411 * config/aarch64/aarch64.c
17412 (aarch64_save_or_restore_callee_save_registers)
17413 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
17415 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17417 * config/aarch64/aarch64.c
17418 (aarch64_save_or_restore_callee_save_registers)
17419 (aarch64_save_or_restore_fprs): Remove 'increment'.
17421 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17423 * config/aarch64/aarch64.c
17424 (aarch64_save_or_restore_callee_save_registers)
17425 (aarch64_save_or_restore_fprs): Use register offset in
17426 cfun->machine->frame.reg_offset.
17428 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17430 * config/aarch64/aarch64.c
17431 (aarch64_save_or_restore_callee_save_registers)
17432 (aarch64_save_or_restore_fprs): Remove base_rtx.
17434 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17436 * config/aarch64/aarch64.c
17437 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17438 to 'start_offset'. Remove local variable 'start_offset'.
17440 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17442 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17443 type to HOST_WIDE_INT.
17445 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17447 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17448 (aarch64_save_or_restore_fprs)
17449 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17451 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17453 * config/arm/t-rtems-eabi: Add
17454 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17455 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17456 mbig-endian/mthumb/march=armv7-r, and
17457 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
17460 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17461 Chris Johns <chrisj@rtems.org>
17462 Joel Sherrill <joel.sherrill@oarcorp.com>
17464 * config.gcc: Add nios2-*-rtems*.
17465 * config/nios2/rtems.h: New file.
17466 * gcc/config/nios2/t-rtems: New file.
17468 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
17471 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
17472 constant numbers, not general constants.
17473 (rs6000_expand_vector_init): Ditto.
17475 2014-07-23 Nathan Sidwell <nathan@acm.org>
17477 * gcov-tool.c (gcov_list): Declare here.
17478 (set_gcov_list): Remove.
17479 (gcov_output_files): Set gcov_list directly.
17481 2014-07-23 Host Schirmeier <horst@schirmeier.com>
17483 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
17485 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17487 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
17488 callee-saved registers are available for padding purpose
17489 and r3 is not mandatory, then prefer use those callee-saved
17492 2014-07-23 Richard Biener <rguenther@suse.de>
17494 * params.def (PARAM_MAX_COMBINE_INSNS): New.
17495 * combine.c: Include statistics.h and params.h.
17496 (combine_instructions): Guard three and four insn combines
17497 with max-combine-insns value. Record statistics for combines
17499 * doc/invoke.texi (max-combine-insns): Document new param.
17501 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17503 * graphite-isl-ast-to-gimple.c:
17504 (translate_isl_ast_node_block): New function.
17505 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
17507 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
17508 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
17510 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17512 * graphite-isl-ast-to-gimple.c:
17513 (get_max_schedule_dimensions): New function.
17514 (extend_schedule): Likewise.
17515 (generate_isl_schedule): Add calling of extend_schedule and
17516 get_max_schedule_dimensions.
17518 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17520 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
17521 (case UNSPEC): Handle UNSPEC_RBIT.
17523 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17525 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
17526 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
17528 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17530 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
17532 2014-07-22 Roman Gareev <gareevroman@gmail.com>
17534 * graphite-isl-ast-to-gimple.c:
17535 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
17536 (ivs_params_clear):
17537 (build_iv_mapping): New function.
17538 (translate_isl_ast_node_user): Likewise.
17539 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
17541 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
17542 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
17543 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
17545 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17548 * config/arm/arm.md (setmem): New pattern.
17549 * config/arm/arm-protos.h (struct tune_params): New fields.
17550 (arm_gen_setmem): New prototype.
17551 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17552 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17553 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17554 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17555 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17556 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17557 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17558 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17559 (arm_const_inline_cost): New function.
17560 (arm_block_set_max_insns): New function.
17561 (arm_block_set_non_vect_profit_p): New function.
17562 (arm_block_set_vect_profit_p): New function.
17563 (arm_block_set_unaligned_vect): New function.
17564 (arm_block_set_aligned_vect): New function.
17565 (arm_block_set_unaligned_non_vect): New function.
17566 (arm_block_set_aligned_non_vect): New function.
17567 (arm_block_set_vect, arm_gen_setmem): New functions.
17569 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17571 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
17573 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
17576 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
17577 out of #ifdef __OPTIMIZE__.
17579 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
17581 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
17582 different trapping status if -fnon-call-exceptions is enabled.
17584 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
17586 * expr.c (store_field): Handle VOIDmode for calls that return values
17587 in multiple locations.
17589 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17591 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
17592 (altivec_vsldoi_<mode>): Likewise.
17594 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17596 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
17597 to the number of characters in the line.
17599 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17601 * graphite-isl-ast-to-gimple.c: Add using of
17602 build_nonstandard_integer_type instead of int128_integer_type_node.
17604 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
17606 * toplev.c (output_stack_usage): Adjust the location of the warning.
17608 2014-07-19 Daniel Cederman <cederman@gaisler.com>
17610 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
17611 (*membar_storeload): Disable for LEON3.
17613 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
17615 PR rtl-optimization/61461
17616 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
17618 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
17621 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
17622 Fix instruction constraint.
17623 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
17625 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
17627 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
17629 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
17631 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
17632 GNU coding standards.
17633 (nds32_register_move_cost): Likewise.
17634 (nds32_memory_move_cost): Likewise.
17635 (nds32_address_cost): Likewise.
17637 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17639 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
17641 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
17643 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
17644 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
17645 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17646 (HAVE_sync_compare_and_swapqi): Define.
17647 (HAVE_sync_compare_and_swaphi): Likewise.
17648 (HAVE_sync_compare_and_swapsi): Likewise.
17650 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
17652 * config/mips/p5600.md: Add missing cpu tests.
17654 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17656 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
17657 (vmla_f64): Likewise.
17658 (vfms_f64): Likewise.
17659 (vmls_f64): Likewise.
17661 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17663 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
17664 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
17666 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17668 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
17669 (vmlal_high_lane_s32): Likewise.
17670 (vmlal_high_lane_u16): Likewise.
17671 (vmlal_high_lane_u32): Likewise.
17672 (vmlsl_high_lane_s16): Likewise.
17673 (vmlsl_high_lane_s32): Likewise.
17674 (vmlsl_high_lane_u16): Likewise.
17675 (vmlsl_high_lane_u32): Likewise.
17677 2014-07-17 Terry Guo <terry.guo@arm.com>
17679 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
17680 (alus_reg): Renamed to alus_sreg.
17681 * config/arm/arm-fixed.md: Change type of non-dsp instructions
17682 from alu_reg to alu_sreg. Change type of dsp instructions from
17683 alu_reg to alu_dsp_reg.
17684 * config/arm/thumb1.md: Likewise.
17685 * config/arm/thumb2.md: Likewise.
17686 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
17687 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
17688 with alu_sreg and alus_sreg.
17689 * config/arm/arm1026ejs.md (alu_op): Likewise.
17690 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
17691 * config/arm/arm926ejs.md (9_alu_op): Likewise.
17692 * config/arm/fa526.md (526_alu_op): Likewise.
17693 * config/arm/fa606te.md (606te_alu_op): Likewise.
17694 * config/arm/fa626te.md (626te_alu_op): Likewise.
17695 * config/arm/fa726te.md (726te_alu_op): Likewise.
17696 * config/arm/fmp626.md (mp626_alu_op): Likewise.
17697 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
17698 alu_sreg, alu_dsp_reg and alus_sreg.
17699 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
17700 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17701 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17702 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
17703 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
17704 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17705 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17706 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17707 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
17708 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
17709 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
17710 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
17711 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
17712 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
17713 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
17714 alus_reg to alus_sreg.
17716 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
17718 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
17721 2014-07-17 Richard Biener <rguenther@suse.de>
17723 PR rtl-optimization/61801
17724 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
17725 don't set reg_pending_barrier if it appears in a debug-insn.
17727 2014-07-16 DJ Delorie <dj@redhat.com>
17729 * config/rx/rx.c (rx_option_override): Fix alignment values.
17730 (rx_align_for_label): Likewise.
17732 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
17735 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
17736 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
17737 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
17739 (cris_print_index, cris_print_operand, cris_constant_index_p)
17740 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
17741 (cris_address_cost): Ditto last CONSTANT_P.
17742 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
17743 callers changed. Yield cris_offsettable_symbol for non-PIC
17744 constant symbolic expressions including labels. Yield cris_unspec
17746 (cris_expand_pic_call_address): New parameter MARKERP. Set its
17747 target to pic_offset_table_rtx for calls that will likely go
17748 through PLT, const0_rtx when they can't. All callers changed.
17749 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
17750 symbolic expressions to be PICified. Remove second, redundant,
17751 assert on can_create_pseudo_p returning non-zero. Use
17752 replace_equiv_address_nv, not replace_equiv_address, for final
17754 * config/cris/cris.md ("movsi"): Move variable t to pattern
17755 toplevel. Adjust assert for new cris_symbol_type member. Use
17756 CONSTANT_P instead of CONSTANT_ADDRESS_P.
17757 ("*movsi_internal") <case 9>: Make check for valid unspec operands
17759 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
17760 ("call", "call_value"): Use second incoming operand as a marker
17761 for pic-offset-table-register being used.
17762 ("*expanded_call_non_v32", "*expanded_call_v32")
17763 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
17764 second incoming operand to CALL, match cris_call_type_marker.
17765 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
17766 ("*expanded_call_side"): Ditto. Fix typo in comment.
17767 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
17769 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
17770 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
17771 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
17772 users changed. Add members cris_offsettable_symbol and cris_unspec.
17773 (cris_symbol_type): Rename from cris_pic_symbol_type.
17774 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
17776 * config/cris/cris-protos.h (cris_symbol_type_of,
17777 cris_expand_pic_call_address): Adjust prototypes.
17778 (cris_legitimate_constant_p): New prototype.
17780 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
17781 an existing tmake_file. Don't add t-slibgcc and t-linux.
17783 2014-07-17 Jason Merrill <jason@redhat.com>
17786 * symtab.c (symtab_remove_from_same_comdat_group): Also
17787 set_comdat_group to NULL_TREE.
17788 (verify_symtab): Fix diagnostic.
17790 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
17793 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
17795 2014-07-16 Dodji Seketeli <dodji@redhat.com>
17797 Support location tracking for built-in macro tokens
17798 * input.h (is_location_from_builtin_token): New function declaration.
17799 * input.c (is_location_from_builtin_token): New function definition.
17800 * toplev.c (general_init): Tell libcpp what the pre-defined
17801 spelling location for built-in tokens is.
17803 2014-07-16 Jakub Jelinek <jakub@redhat.com>
17805 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
17806 on the FUNCTION_DECL.
17808 2014-07-16 Richard Biener <rguenther@suse.de>
17811 * doc/extend.texi (always_inline): Clarify.
17813 2014-07-15 Eric Christopher <echristo@gmail.com>
17815 * doc/invoke.texi (Link Options): Document -z option.
17817 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
17819 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
17820 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17822 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
17824 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
17826 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
17828 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
17829 varpool_assemble_decl.
17830 * varpool.c (varpool_assemble_decl): Assert that node->definition is
17833 2014-07-15 Michael Matz <matz@suse.de>
17835 PR rtl-optimization/61772
17836 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
17838 2014-07-15 Richard Biener <rguenther@suse.de>
17840 * opts.c (default_options_table): Disable bit-ccp at -Og.
17842 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
17844 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
17846 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
17848 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
17849 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
17850 call langhook for unknown declaration.
17851 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
17852 * tree.h (DECL_ARGUMENTS): Update.
17853 * print-tree.c (print_node): Update.
17854 * tree-core.h (tree_decl_non_common): Remove arguments.
17855 (tree_function_decl): Add arguments.
17857 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
17859 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
17861 2014-07-14 Richard Biener <rguenther@suse.de>
17863 PR tree-optimization/61779
17864 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
17865 simplifying a condition.
17867 2014-07-14 Richard Biener <rguenther@suse.de>
17869 * builtins.c (c_strlen): Make only_value == 2 really only
17870 affect warning generation.
17872 2014-07-14 Richard Biener <rguenther@suse.de>
17874 PR tree-optimization/61757
17875 PR tree-optimization/61783
17876 PR tree-optimization/61787
17877 * tree-ssa-dom.c (record_equality): Revert canonicalization
17878 change and add comment.
17879 (propagate_rhs_into_lhs): Revert previous fix, removing
17880 loop depth restriction again.
17882 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17884 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
17885 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17886 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17887 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
17888 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17889 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17890 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17892 2014-07-14 Richard Biener <rguenther@suse.de>
17894 * cgraph.h (decl_in_symtab_p): Make inline.
17896 2014-07-14 Jakub Jelinek <jakub@redhat.com>
17898 PR middle-end/61294
17899 * doc/invoke.texi (-Wmemset-transposed-args): Document.
17902 * config/i386/i386.c (classify_argument): Don't merge classes above
17905 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
17907 * cgraph.h (symtab_node): Add nonzero_address.
17908 (decl_in_symtab_p): Break out from ...
17909 (symtab_get_node): ... here.
17910 * fold-const.c: Include cgraph.h
17911 (tree_single_nonzero_warnv_p): Use symtab to determine
17912 if symbol is non-zero.
17913 * symtab.c (symtab_node::nonzero_address): New method.
17915 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
17917 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
17918 forgotten in previous commit.
17920 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
17922 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
17924 * ipa-devirt.c: Include stor-layout.h and intl.h
17925 (odr_subtypes_equivalent_p): New function.
17926 (warn_odr): New function.
17927 (warn_type_mismatch): New function.
17928 (odr_types_equivalent_p): New function.
17929 (add_type_duplicate): Use it.
17930 * common.opt (Wodr): New flag.
17931 * doc/invoke.texi (Wodr): Document new warning.
17933 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
17935 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
17936 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
17937 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
17938 (varpool_get_constructor): Push CTORS_IN timevar.
17939 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
17941 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
17943 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
17944 Remove VOID_FTYPE_PUSHORT.
17945 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
17946 Change code to USHORT_FTYPE_VOID.
17947 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
17948 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
17949 (ix86_atomic_assign_expand_fenv): Update for
17950 __builtin_ia32_fnstsw changes.
17951 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
17952 (fnstsw): Change operand 0 to nonimmediate operand.
17954 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
17956 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
17957 (varpool_get_constructor): New function.
17958 (varpool_ctor_useable_for_folding_p): Break out from ...
17959 (ctor_for_folding): ... here; use varpool_get_constructor.
17960 (varpool_assemble_decl): Likewise.
17961 * lto-streamer.h (struct output_block): Turn cgraph_node
17963 (lto_input_variable_constructor): Declare.
17964 * ipa-visibility.c (function_and_variable_visibility): Use
17965 varpool_get_constructor.
17966 * cgraph.h (varpool_get_constructor): Declare.
17967 (varpool_ctor_useable_for_folding_p): New function.
17968 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
17969 parameter; return error_mark_node for non-trivial constructors.
17970 (lto_write_tree_1, DFS_write_tree): Update use of
17971 get_symbol_initial_value.
17972 (output_function): Update initialization of symbol.
17973 (output_constructor): New function.
17974 (copy_function): Rename to ..
17975 (copy_function_or_variable): ... this one; handle vars too.
17976 (lto_output): Output variable sections.
17977 * lto-streamer-in.c (input_constructor): New function.
17978 (lto_read_body): Rename from ...
17979 (lto_read_body_or_constructor): ... this one; handle vars too.
17980 (lto_input_variable_constructor): New function.
17981 * ipa-prop.c (ipa_prop_write_jump_functions,
17982 ipa_prop_write_all_agg_replacement): Update.
17983 * lto-cgraph.c (compute_ltrans_boundary): Use it.
17984 (output_cgraph_opt_summary): Set symbol to NULL.
17986 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
17988 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
17989 non-polymorphic types.
17990 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
17991 * ipa-devirt.c (types_same_for_odr): Do not explode when one
17992 of types is not polymorphic.
17994 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
17996 * lra-constraints.c (remove_inheritance_pseudos): Process
17997 destination pseudo too.
17999 2014-07-11 Rong Xu <xur@google.com>
18001 * gcov-tool.c (gcov_output_files): Fix build error introduced in
18004 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18006 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18007 * config/avr/avr-devices.c (AVR_MCU): Same.
18008 (avr_mcu_types): add text start value to end of device list.
18009 * config/avr/avr-mcus.def: Add text section start for all devices.
18010 (ata5782): Add new avr5 device.
18012 * config/avr/avr-tables.opt: Regenerate.
18013 * config/avr/avr.h: Add declaration for text section start handler.
18014 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18016 (LINK_SPEC): Include text section start handler to linker spec.
18017 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18018 pass -Ttext option to linker if the text section start for the device
18020 * config/avr/t-multilib: Regenerate.
18021 * doc/avr-mmcu.texi: Regenerate.
18023 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
18025 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18026 * config/rs6000/aix52.h (LINK_SPEC): Same.
18027 * config/rs6000/aix53.h (LINK_SPEC): Same.
18028 * config/rs6000/aix61.h (LINK_SPEC): Same.
18029 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18031 2014-07-11 Roman Gareev <gareevroman@gmail.com>
18033 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18034 (graphite_verify): New function.
18035 (ivs_params_clear): New function.
18036 (gcc_expression_from_isl_ast_expr_id): New function.
18037 (gcc_expression_from_isl_expr_int): New function.
18038 (binary_op_to_tree): New function.
18039 (ternary_op_to_tree): New function.
18040 (unary_op_to_tree): New function.
18041 (nary_op_to_tree): New function.
18042 (gcc_expression_from_isl_expr_op): New function.
18043 (gcc_expression_from_isl_expression): New function.
18044 (graphite_create_new_loop): New function.
18045 (translate_isl_ast_for_loop): New function.
18046 (get_upper_bound): New function.
18047 (graphite_create_new_loop_guard): New function.
18048 (translate_isl_ast_node_for): New function.
18049 (translate_isl_ast): New function.
18050 (add_parameters_to_ivs_params): New function.
18051 (scop_to_isl_ast): New parameter ip.
18052 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18054 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18056 * config/xtensa/predicates.md (call expander): Update for
18057 DECL_SECTION_NAME being string.
18059 2014-07-11 Richard Biener <rguenther@suse.de>
18061 PR middle-end/61473
18062 * builtins.c (fold_builtin_memory_op): Inline memory moves that
18063 can be implemented with a single load followed by a single store.
18064 (c_strlen): Only warn when only_value is not 2.
18066 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
18068 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
18070 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
18073 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
18074 (*movhi_bytes): Likewise.
18075 (*arm_movqi_insn): Likewise.
18077 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
18080 * config/alpha/alpha.c: Include tree-pass.h, context.h
18081 and pass_manager.h.
18082 (pass_data_handle_trap_shadows): New pass.
18083 (pass_handle_trap_shadows::gate): New pass gate function.
18084 (make_pass_handle_trap_shadows): New function.
18085 (rest_of_handle_trap_shadows): Ditto.
18087 (alpha_align_insns_1): Rename from alpha_align_insns.
18088 (pass_data_align_insns): New pass.
18089 (pass_align_insns::gate): New pass gate function.
18090 (make_pass_aling_insns): New function.
18091 (rest_of_align_insns): Ditto.
18092 (alpha_align_insns): Ditto.
18094 (alpha_option_override): Declare handle_trap_shadows info
18095 and align_insns_info. Register handle_trap_shadows and align_insns
18097 (alpha_reorg): Do not call alpha_trap_shadows and
18098 alpha_align_insn from here.
18100 (alpha_pad_function_end): Do not skip BARRIERs.
18102 2014-07-10 Rong Xu <xur@google.com>
18104 Add gcov-tool: an offline gcda profile processing tool support.
18105 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
18106 (gcov_is_error): Ditto.
18107 (gcov_read_string): Ditto.
18108 (gcov_read_sync): Ditto.
18109 * gcov-io.h: Move counter defines to gcov-counter.def.
18110 * gcov-dump.c (tag_counters): Use gcov-counter.def.
18111 * coverage.c: Ditto.
18112 * gcov-tool.c: Offline gcda profile processing tool.
18113 (unlink_gcda_file): Remove one gcda file.
18114 (unlink_profile_dir): Remove gcda files from the profile path.
18115 (gcov_output_files): Output gcda files to an output dir.
18116 (profile_merge): Merge two profiles in directory.
18117 (print_merge_usage_message): Print merge usage.
18118 (merge_usage): Print merge usage and exit.
18119 (do_merge): Driver for profile merge sub-command.
18120 (profile_rewrite): Rewrite profile.
18121 (print_rewrite_usage_message): Print rewrite usage.
18122 (rewrite_usage): Print rewrite usage and exit.
18123 (do_rewrite): Driver for profile rewrite sub-command.
18124 (print_usage): Print gcov-info usage and exit.
18125 (print_version): Print gcov-info version.
18126 (process_args): Process arguments.
18127 (main): Main routine for gcov-tool.
18128 * Makefile.in: Build and install gcov-tool.
18129 * gcov-counter.def: New file split from gcov-io.h.
18130 * doc/gcc.texi: Include gcov-tool.texi.
18131 * doc/gcov-tool.texi: Document for gcov-tool.
18133 2014-07-10 Richard Biener <rguenther@suse.de>
18135 PR tree-optimization/61757
18136 * tree-ssa-dom.c (loop_depth_of_name): Restore.
18137 (propagate_rhs_into_lhs): Revert part of last change.
18139 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
18141 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
18144 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
18146 PR middle-end/53590
18147 * function.c (allocate_struct_function): Revert r188667 change.
18149 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
18151 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
18153 * doc/install.texi: Remove links to defunct package providers for
18156 2014-07-09 Tom de Vries <tom@codesourcery.com>
18158 * final.c (get_call_fndecl): Declare.
18159 (self_recursive_call_p): New function.
18160 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
18162 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18164 * ipa-devirt.c (record_node): Walk through aliases.
18166 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18168 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
18170 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18173 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18175 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18177 * ipa-visibility.c (function_and_variable_visibility): Remove
18178 temporary hack disabling local aliases on AIX.
18180 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18182 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
18183 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
18185 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18187 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
18188 * rs6000/rs6000.c: Inline output of .set instruction.
18189 (declare_alias_data): New struct.
18190 (rs6000_declare_alias): New function.
18191 (rs6000_xcoff_declare_function_name): Use it.
18192 (rs6000_xcoff_declare_object_name): New function.
18193 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
18194 (ASM_OUTPUT_DEF): Turn to empty definition.
18196 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18199 * hash-table.h: use hash_table::value_type instead of
18200 Descriptor::value_type in the return types of several methods.
18202 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18204 * tree-pass.h (pass_data): Remove has_execute member.
18205 * passes.c (execute_one_pass): Don't check pass->has_execute.
18206 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18207 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18208 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18209 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18210 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18211 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18212 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18213 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18214 gimple-low.c, gimple-ssa-isolate-paths.c,
18215 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18216 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
18217 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
18218 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
18219 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
18220 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18221 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
18222 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
18223 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
18224 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
18225 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
18226 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18227 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18228 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18229 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18230 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18231 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18232 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18233 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18234 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18235 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18236 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18237 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
18238 web.c: Remove initializer for pass_data::has_execute.
18240 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18242 * graphite-htab.h: Use hash_map instead of hash_table.
18243 * graphite-clast-to-gimple.c: Adjust.
18244 * passes.c: Use hash_map instead of hash_table.
18245 * sese.c: Likewise.
18246 * sese.h: Remove now unused code.
18248 2014-07-08 Sriraman Tallam <tmsriram@google.com>
18251 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
18254 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18256 PR rtl-optimization/61673
18257 * combine.c (simplify_comparison): Test just mode's sign bit
18258 in tmode rather than the sign bit and any bits above it.
18260 2014-07-08 Roman Gareev <gareevroman@gmail.com>
18262 * graphite-isl-ast-to-gimple.c (generate_isl_context):
18263 Add __isl_give to the declaration.
18264 (generate_isl_schedule): Likewise.
18265 (scop_to_isl_ast): Likewise.
18267 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18269 * config/arm/arm.c (cortexa5_extra_costs): New table.
18270 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
18272 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18274 PR tree-optimization/61725
18275 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
18276 range, use range_includes_zerop_p instead of integer_zerop on
18277 vr0->min, only use log2 of max if min is not negative.
18279 2014-07-08 Richard Biener <rguenther@suse.de>
18281 * tree-ssa-dom.h (loop_depth_of_name): Remove.
18282 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
18283 restriction on loop depth difference.
18284 (record_equality): Likewise.
18285 (propagate_rhs_into_lhs): Likewise. Simplify condition.
18286 (loop_depth_of_name): Remove.
18287 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
18288 restriction on loop depth difference.
18289 (init_copy_prop): Likewise.
18291 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18293 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
18295 (walk_aliased_vdefs): Likewise.
18296 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
18297 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
18298 (detect_type_change_from_memory_writes): Check if entry was reached.
18300 2014-07-08 Richard Biener <rguenther@suse.de>
18302 PR tree-optimization/61681
18303 * tree-ssa-structalias.c (find_what_var_points_to): Expand
18304 NONLOCAL inside ESCAPED.
18306 2014-07-08 Richard Biener <rguenther@suse.de>
18308 PR tree-optimization/61680
18309 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18310 Handle properly all read-write dependences with group accesses.
18312 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
18314 PR tree-optimization/61576
18315 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18316 block containing reduction statement is predecessor of phi basi block.
18318 2014-07-08 Marek Polacek <polacek@redhat.com>
18321 * fold-const.c (round_up_loc): Change the parameter type.
18323 * fold-const.h (round_up_loc): Adjust declaration.
18324 * stor-layout.c (finalize_record_size): Check for too large types.
18326 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
18328 * symtab.c: Include calls.h.
18329 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18331 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
18333 * config/rs6000/rs6000.c (output_vec_const_move): Handle
18334 little-endian code generation.
18335 * config/rs6000/spe.md (spe_evmergehi): Rename to...
18336 (vec_perm00_v2si): ... this. Handle little-endian code generation.
18337 (spe_evmergehilo): Rename to...
18338 (vec_perm01_v2si): ... this. Handle little-endian code generation.
18339 (spe_evmergelo): Rename to...
18340 (vec_perm11_v2si): ... this. Handle little-endian code generation.
18341 (spe_evmergelohi): Rename to...
18342 (vec_perm10_v2si): ... this. Handle little-endian code generation.
18343 (spe_evmergehi, spe_evmergehilo): New expanders.
18344 (spe_evmergelo, spe_evmergelohi): Likewise.
18345 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18346 (*frob_tf_ti): Likewise.
18347 (*frob_<mode>_di_2): Likewise.
18348 (*frob_tf_di_8_2): Likewise.
18349 (*frob_di_<mode>): Likewise.
18350 (*frob_ti_tf): Likewise.
18351 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18352 (*frob_ti_<mode>_8_2): Likewise.
18353 (*frob_ti_tf_2): Likewise.
18354 (mov_si<mode>_e500_subreg0): Rename to...
18355 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
18357 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18358 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18359 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
18360 the big endianness only.
18361 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18362 (*mov_si<mode>_e500_subreg0_2): Rename to...
18363 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
18364 big big endianness only.
18365 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18366 (*mov_si<mode>_e500_subreg4): Rename to...
18367 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
18369 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18370 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18371 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
18372 the big endianness only.
18373 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18375 (*mov_si<mode>_e500_subreg4_2): Rename to...
18376 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
18378 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18379 (*mov_sitf_e500_subreg8): Rename to...
18380 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
18382 (*mov_sitf_e500_subreg8_le): New instruction pattern.
18383 (*mov_sitf_e500_subreg8_2): Rename to...
18384 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
18386 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18387 (*mov_sitf_e500_subreg12): Rename to...
18388 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
18390 (*mov_sitf_e500_subreg12_le): New instruction pattern.
18391 (*mov_sitf_e500_subreg12_2): Rename to...
18392 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
18394 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18396 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
18398 * asan.c (instrument_strlen_call): Do not instrument first byte
18399 in strlen if already instrumented.
18401 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18403 * config/arm/arm.opt (mwords-little-endian): Delete.
18404 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18405 of TARGET_LITTLE_WORDS.
18406 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18407 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
18409 * doc/invoke.texi: Remove references to -mwords-little-endian.
18411 2014-07-07 Jakub Jelinek <jakub@redhat.com>
18413 * expmed.c (struct init_expmed_rtl): Change all fields but
18414 pow2 and cint from struct rtx_def to rtx.
18415 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
18416 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
18419 2014-07-06 Marek Polacek <polacek@redhat.com>
18422 * doc/invoke.texi: Document -Wsizeof-array-argument.
18424 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
18426 * wide-int.h (wide_int_storage): Change declaration from struct
18429 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
18431 * cgraph.c (cgraph_create_indirect_edge): Update call of
18432 get_polymorphic_call_info.
18433 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18434 (possible_polymorphic_call_targets): Add parameter call.
18435 (decl_maybe_in_construction_p): New predicate.
18436 (get_polymorphic_call_info): Add parameter call;
18437 use decl_maybe_in_construction_p.
18438 * gimple-fold.c (fold_gimple_assign): Update use of
18439 possible_polymorphic_call_targets.
18440 (gimple_fold_call): Likewise.
18441 * ipa-prop.c: Inlcude calls.h
18442 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18443 (param_type_may_change_p): New predicate.
18444 (detect_type_change_from_memory_writes): Break out from ...
18445 (detect_type_change): ... this one; use param_type_may_change_p.
18446 (detect_type_change_ssa): Use param_type_may_change_p.
18447 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18449 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
18452 * config/arm/arm-protos.h (arm_legitimate_address_p,
18453 arm_is_constant_pool_ref): Add prototypes.
18454 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18455 (arm_is_constant_pool_ref) New function.
18456 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
18457 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
18458 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
18459 operand. Remove pool_range and neg_pool_range attributes.
18460 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
18461 pool_range and neg_pool_range attributes.
18462 * config/arm/constraints.md (Uh): New constraint.
18463 (Uq): Don't allow constant pool references.
18465 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
18467 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
18468 (move_lo_quad_internal_be_<mode>): Likewise.
18469 (move_lo_quad_<mode>): Convert to define_expand.
18470 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
18471 (aarch64_simd_move_hi_quad_be_<mode>): New.
18472 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
18473 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
18474 (aarch64_combinez_be<mode>): New.
18475 (aarch64_combine<mode>): Convert to define_expand.
18476 (aarch64_combine_internal<mode>): New.
18477 (aarch64_simd_combine<mode>): Remove bogus RTL description.
18479 2014-07-04 Tom de Vries <tom@codesourcery.com>
18481 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
18482 combination of earlyclobber and read/write modifiers.
18484 2014-07-04 Tom de Vries <tom@codesourcery.com>
18486 * config/aarch64/aarch64-simd.md
18487 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
18489 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
18492 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
18494 2014-07-04 Jakub Jelinek <jakub@redhat.com>
18496 PR middle-end/61654
18497 * cgraphunit.c (expand_thunk): Call free_dominance_info.
18499 PR tree-optimization/61684
18500 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
18501 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
18503 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18504 Kito Cheng <kito@0xlab.org>
18505 Monk Chiang <sh.chiang04@gmail.com>
18507 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
18508 (nds32_symbol_load_store_p): Move to ...
18509 (nds32_fp_as_gp_check_available): Move to ...
18510 * config/nds32/nds32-fp-as-gp.c: ... here.
18511 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
18512 extern declaration.
18514 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18515 Kito Cheng <kito@0xlab.org>
18516 Monk Chiang <sh.chiang04@gmail.com>
18518 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
18519 (nds32_expand_store_multiple): Move to ...
18520 (nds32_expand_movmemqi): Move to ...
18521 * config/nds32/nds32-memory-manipulation.c: ... here.
18523 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18524 Kito Cheng <kito@0xlab.org>
18525 Monk Chiang <sh.chiang04@gmail.com>
18527 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
18528 (nds32_output_casesi_pc_relative): Move to ...
18529 (nds32_output_casesi): Move to ...
18530 (nds32_mem_format): Move to ...
18531 (nds32_output_16bit_store): Move to ...
18532 (nds32_output_16bit_load): Move to ...
18533 (nds32_output_32bit_store): Move to ...
18534 (nds32_output_32bit_load): Move to ...
18535 (nds32_output_32bit_load_s): Move to ...
18536 (nds32_output_stack_push): Move to ...
18537 (nds32_output_stack_pop): Move to ...
18538 * config/nds32/nds32-md-auxiliary.c: ... here.
18540 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18541 Ling-Hua Tseng <uranus@tinlans.org>
18543 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
18544 the purpose of this file.
18546 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18547 Kito Cheng <kito@0xlab.org>
18548 Monk Chiang <sh.chiang04@gmail.com>
18550 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
18551 (nds32_address_cost): Move implementation to ...
18552 * config/nds32/nds32-cost.c: ... here.
18553 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
18554 (nds32_address_cost_impl): Declare.
18556 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18557 Kito Cheng <kito@0xlab.org>
18558 Monk Chiang <sh.chiang04@gmail.com>
18560 * config/nds32/nds32.c
18561 (nds32_consecutive_registers_load_store_p): Move to ...
18562 (nds32_valid_multiple_load_store): Move to ...
18563 (nds32_valid_stack_push_pop): Move to ...
18564 (nds32_can_use_bclr_p): Move to ...
18565 (nds32_can_use_bset_p): Move to ...
18566 (nds32_can_use_btgl_p): Move to ...
18567 (nds32_can_use_bitci_p): Move to ...
18568 * config/nds32/nds32-predicates.c: ... here.
18570 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18571 Kito Cheng <kito@0xlab.org>
18572 Monk Chiang <sh.chiang04@gmail.com>
18574 * config/nds32/nds32.c
18575 (nds32_expand_builtin_null_ftype_reg): Move to ...
18576 (nds32_expand_builtin_reg_ftype_imm): Move to ...
18577 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
18578 (nds32_init_builtins): Move implementation to ...
18579 (nds32_expand_builtin): Move implementation to ...
18580 * config/nds32/nds32-intrinsic.c: ... here.
18581 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
18582 (nds32_expand_builtin_impl): Declare.
18584 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18585 Kito Cheng <kito@0xlab.org>
18586 Monk Chiang <sh.chiang04@gmail.com>
18588 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
18589 (nds32_emit_section_tail_template): Move to ...
18590 (nds32_emit_isr_jmptbl_section): Move to ...
18591 (nds32_emit_isr_vector_section): Move to ...
18592 (nds32_emit_isr_reset_conten): Move to ...
18593 (nds32_check_isr_attrs_conflict): Move to ...
18594 (nds32_construct_isr_vectors_information): Move to ...
18595 (nds32_asm_file_start): Move implementation to ...
18596 (nds32_asm_file_end): Move implementation to ...
18597 * config/nds32/nds32-isr.c: ... here.
18598 * config/nds32/nds32-protos.h
18599 (nds32_check_isr_attrs_conflict): Declare.
18600 (nds32_construct_isr_vectors_information): Declare.
18601 (nds32_asm_file_start_for_isr): Declare.
18602 (nds32_asm_file_end_for_isr): Declare.
18604 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18605 Kito Cheng <kito@0xlab.org>
18606 Monk Chiang <sh.chiang04@gmail.com>
18608 * config.gcc (nds32*): Add new modules to extra_objs.
18609 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
18610 (nds32be-*-*): Likewise.
18611 * config/nds32/nds32-cost.c: New file.
18612 * config/nds32/nds32-fp-as-gp.c: New file.
18613 * config/nds32/nds32-intrinsic.c: New file.
18614 * config/nds32/nds32-isr.c: New file.
18615 * config/nds32/nds32-md-auxiliary.c: New file.
18616 * config/nds32/nds32-memory-manipulation.c: New file.
18617 * config/nds32/nds32-pipelines-auxiliary.c: New file.
18618 * config/nds32/nds32-predicates.c: New file.
18619 * config/nds32/t-nds32: New file.
18621 2014-07-03 Jakub Jelinek <jakub@redhat.com>
18623 PR tree-optimization/61682
18624 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
18625 using cases and when one of the operands is equal to 1.
18627 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
18629 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
18630 ashr<mode>3): Correct mode of operands[2].
18631 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
18632 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
18633 Correct mode of operands[2]. Fix split condition.
18635 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
18637 * arm.md (arch): Add armv6_or_vfpv3.
18638 (arch_enabled): Add test for the above.
18639 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
18641 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
18643 2014-07-03 Jakub Jelinek <jakub@redhat.com>
18645 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
18646 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
18647 HWI 1 and negate the unsigned value.
18648 * expmed.c (expand_sdiv_pow2): For modes wider than word always
18649 use AND instead of shift.
18650 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
18652 2014-07-03 Marek Polacek <polacek@redhat.com>
18654 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
18655 (-fsanitize=float-divide-by-zero): Move to the table with
18656 -fsanitize=undefined suboptions.
18657 (-fsanitize=float-cast-overflow): Likewise.
18659 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
18661 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
18662 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
18665 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18667 * loop-invariant.c (struct invariant): Add a new member: eqno;
18668 (find_identical_invariants): Update eqno;
18669 (create_new_invariant): Init eqno;
18670 (get_inv_cost): Compute comp_cost with eqno;
18672 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
18674 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
18675 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
18676 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
18677 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
18678 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
18680 2014-07-02 Christian Bruel <christian.bruel@st.com>
18684 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
18685 (make_preds_opaque): Delete.
18686 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
18687 (commit_mode_sets): New function.
18688 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
18689 Process all modes at once.
18690 * basic-block.h (pre_edge_lcm_avs): Declare.
18691 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
18692 Call clear_aux_for_edges. Fix comments.
18693 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
18694 (pre_edge_rev_lcm): Idem.
18695 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
18697 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
18698 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
18700 * config/i386/i386.c (x96_emit_mode_set): Idem.
18701 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
18702 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
18703 (fpscr_toggle) Disallow from delay slot.
18704 * target.def (emit_mode_set): Add prev_mode parameter.
18705 * doc/tm.texi: Regenerate.
18707 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18709 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
18712 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
18714 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
18715 vtable_pointer_value_to_vtable): Constify.
18716 (contains_polymorphic_type_p): Declare.
18717 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
18718 vtable_pointer_value_to_vtable): Constify.
18719 (contains_polymorphic_type_p): New predicate.
18720 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
18722 (ipa_set_ancestor_jf): Likewise.
18723 (detect_type_change): Return false in easy cases.
18724 (compute_complex_assign_jump_func): Require type to contain
18726 (compute_known_type_jump_func): Likewise.
18728 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
18730 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
18732 (type_in_anonymous_namespace_p): Constify argument.
18733 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
18734 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
18735 (main_odr_variant): New function.
18736 (hash_type_name): Make static; update assert; do not ICE on
18738 (types_same_for_odr): Bring here from tree.c; simplify and remove
18739 old structural comparing code that doesn't work for templates.
18740 (odr_hasher::equal): Update assert.
18741 (add_type_duplicate): Return true when bases should be computed;
18742 replace incomplete loader by complete; do not output duplicated
18743 warnings; do not ICE on non-records; set odr_violated flag.
18744 (get_odr_type): Be ready to replace incomplete type by complete
18745 one; work on ODR variants instead of main variants; reorder item
18746 in array so bases have still smaller indexes.
18747 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
18748 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
18750 2014-07-01 Cary Coutant <ccoutant@google.com>
18752 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
18754 (resolve_addr_in_expr): When replacing the rtx in a location list
18755 entry, get a new address table entry.
18756 (dwarf2out_finish): Call index_location_lists even if there are no
18757 addr_index_table entries yet.
18759 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
18761 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
18762 change for not being obvious.
18764 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
18766 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
18769 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18771 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
18772 (vcagt_f64): Likewise.
18773 (vcale_f64): Likewise.
18774 (vcaled_f64): Likewise.
18775 (vcales_f32): Likewise.
18776 (vcalt_f64): Likewise.
18777 (vcaltd_f64): Likewise.
18778 (vcalts_f32): Likewise.
18780 2014-07-01 Marek Polacek <polacek@redhat.com>
18782 * doc/invoke.texi: Document -Wint-conversion.
18784 2014-07-01 Marek Polacek <polacek@redhat.com>
18787 * doc/invoke.texi: Document -Wincompatible-pointer-types.
18789 2014-07-01 Martin Liska <mliska@suse.cz>
18791 IPA REF alias refactoring
18792 * cgraph.h (iterate_direct_aliases): New function.
18793 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
18794 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
18795 FOR_EACH_ALIAS added.
18796 (cgraph_for_node_and_aliases): Likewise.
18797 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
18798 * ipa-inline.c (reset_edge_caches): Likewise.
18799 (update_caller_keys): Likewise.
18800 * trans-mem.c (ipa_tm_execute): Likewise.
18801 *varpool.c (varpool_analyze_node): Likewise.
18802 (varpool_for_node_and_aliases): Likewise.
18803 * ipa-ref.h (first_alias): New function.
18804 (last_alias): Likewise.
18805 (has_aliases_p): Likewise.
18806 * ipa-ref.c (ipa_ref::remove_reference): Removal function
18807 is sensitive to IPA_REF_ALIASes.
18808 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
18809 are put at the beginning of the list.
18810 (symtab_node::iterate_direct_aliases): New function.
18812 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18815 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
18817 (write_ts_type_common_tree_pointers): Do not stream fields not set
18818 for incomplete types; do not stream duplicated fields for variants;
18819 sanity check that variant and type match.
18820 (write_ts_type_non_common_tree_pointers): Likewise.
18821 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
18822 TYPE_SIZE whether type is complete.
18823 (lto_input_ts_type_common_tree_pointers): Do same changes as in
18824 write_ts_type_common_tree_pointers
18825 (lto_input_ts_type_non_common_tree_pointers): Likewise.
18827 2014-06-30 Joseph Myers <joseph@codesourcery.com>
18829 * var-tracking.c (add_stores): Return instead of asserting if old
18830 and new values for conditional store are the same.
18832 2014-06-30 Richard Henderson <rth@redhat.com>
18836 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
18837 the cfg if there were any changes.
18838 * passes.def: Revert move of peephole2 after reorder_blocks;
18839 move duplicate_computed_gotos before peephole2.
18841 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
18843 * except.c (emit_note_eh_region_end): New helper function.
18844 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
18845 emit EH_REGION_END note.
18846 * jump.c (cleanup_barriers): Do not split a call and its
18847 corresponding CALL_ARG_LOCATION note.
18849 2014-06-30 Jeff Law <law@redhat.com>
18851 PR tree-optimization/61607
18852 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
18853 deeper into the SSA_NAME_VALUE chain.
18855 2014-06-30 Marek Polacek <polacek@redhat.com>
18857 * convert.c (convert_to_integer): Don't instrument conversions if the
18858 function has no_sanitize_undefined attribute.
18859 * ubsan.c: Don't run the ubsan pass if the function has
18860 no_sanitize_undefined attribute.
18862 2014-06-30 Jakub Jelinek <jakub@redhat.com>
18864 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
18865 -fsanitize=undefined suboptions.
18867 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
18869 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
18870 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
18871 against bigendian and adjust indices.
18873 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
18875 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
18877 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
18880 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
18881 Add alternative; make early clobber. Adjust both split patterns
18882 to use operand 0 as the working register.
18884 2014-06-30 Jakub Jelinek <jakub@redhat.com>
18886 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
18887 as ira_object_id_map might be NULL, or 1.
18889 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18891 * loop-invariant.c (get_inv_cost): Handle register class.
18892 (gain_for_invariant): Check the register pressure of the inv
18893 and its overlapped register class, other than all.
18895 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
18897 * doc/invoke.texi (Optimize Options): Fix descriptions of
18898 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
18900 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
18902 * doc/extend.texi (Function Attributes): Update 'naked' attribute
18905 2014-06-29 Tobias Grosser <tobias@grosser.es>
18908 * graphite-isl-ast-to-gimple.c: Add missing guards.
18910 2014-06-29 Roman Gareev <gareevroman@gmail.com>
18912 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
18913 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
18914 * flag-types.h: Add new enum fgraphite_generator.
18915 * graphite-isl-ast-to-gimple.c: New.
18916 * graphite-isl-ast-to-gimple.h: New.
18917 * graphite.c (graphite_transform_loops): Add choice of Graphite
18918 code generator, which depends on flag_graphite_code_gen.
18920 2014-06-29 Roman Gareev <gareevroman@gmail.com>
18922 * graphite-dependences.c (subtract_commutative_associative_deps):
18923 Add NULL checking of the following variables: must_raw_no_source,
18924 may_raw_no_source, must_war_no_source, may_war_no_source,
18925 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
18926 must_war, may_war, must_waw, may_waw.
18928 2014-06-29 Roman Gareev <gareevroman@gmail.com>
18930 * graphite-clast-to-gimple.c: gloog is renamed to
18931 graphite_regenerate_ast_cloog. gloog_error is renamed to
18932 graphite_regenerate_error.
18933 * graphite-clast-to-gimple.h: The definition of the struct
18934 bb_pbb_def is moved to graphite-htab.h.
18935 Add inclusion of the hash-table.h.
18936 * graphite-htab.h: The declaration of the function gloog is moved
18937 to graphite-clast-to-gimple.h and renamed to
18938 graphite_regenerate_ast_cloog.
18939 * graphite.c (graphite_transform_loops): gloog is renamed
18940 to graphite_regenerate_ast_cloog.
18942 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18944 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
18946 (write_ts_type_common_tree_pointers): Do not stream fields not set
18947 for incomplete types; do not stream duplicated fields for variants;
18948 sanity check that variant and type match.
18949 (write_ts_type_non_common_tree_pointers): Likewise.
18950 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
18951 TYPE_SIZE whether type is complete.
18952 (lto_input_ts_type_common_tree_pointers): Do same changes as in
18953 write_ts_type_common_tree_pointers
18954 (lto_input_ts_type_non_common_tree_pointers): Likewise.
18956 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18958 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
18960 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18962 * tree-inline.c (remap_type_1): Do not duplicate fields
18963 that are shared in between type and its main variant.
18965 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18967 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
18969 (ipa_set_ancestor_jf) Likewise.
18970 (check_stmt_for_type_change): Check that we work on main variant.
18971 (detect_type_change): Look into main variant.
18972 (compute_known_type_jump_func): Check that main variant has BINFO.
18974 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18976 * ipa-devirt.c (set_type_binfo): New function.
18977 (add_type_duplicate): Use it.
18978 (get_odr_type): Sanity check that binfos points to main variants.
18979 (get_class_context): Be sure the context's outer_type is main variant.
18980 (contains_type_p): Walk main variant.
18981 (get_polymorphic_call_info_for_decl): Set outer_type to be
18983 (get_polymorphic_call_info): Likewise.
18984 (possible_polymorphic_call_targets): Sanity check that we operate
18987 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18989 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18991 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18993 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
18994 accidental change due to wide-int branch merge.
18996 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18998 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
18999 compressed debug support.
19000 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19001 * configure: Regenerate.
19002 * config.in: Regenerate.
19003 * common.opt (compressed_debug_sections): New enum.
19004 (gz, gz=): New options.
19005 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19006 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19007 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19008 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19009 LINK_COMPRESS_DEBUG_SPEC.
19010 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19011 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19012 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19013 (Debugging Options): Document -gz[=type].
19015 2014-06-27 Martin Jambor <mjambor@suse.cz>
19018 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19019 args_to_skip, use those from node instead. Copy args_to_skip and
19020 combined_args_to_skip from node to the new thunk.
19021 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19022 (cgraph_create_virtual_clone): Moved computation of
19023 combined_args_to_skip...
19024 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19026 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
19028 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19029 redundant diagnostic machinary.
19031 2014-06-27 Richard Biener <rguenther@suse.de>
19033 * tree-ssa-math-opts.c (bswap_replace): Fix
19034 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19036 2014-06-27 Martin Liska <mliska@suse.cz>
19038 * gimple.h (gimple_location_safe): New function introduced.
19039 * cgraphunit.c (walk_polymorphic_call_targets): Usage
19040 of gimple_location_safe replaces gimple_location.
19041 (gimple_fold_call): Likewise.
19042 * ipa-devirt.c (ipa_devirt): Likewise.
19043 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19044 * ipa.c (walk_polymorphic_call_targets): Likewise.
19045 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19047 2014-06-27 Jakub Jelinek <jakub@redhat.com>
19049 PR tree-optimization/57233
19050 PR tree-optimization/61299
19051 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19053 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
19054 would be lowered to scalar shifts, check if corresponding
19055 shifts and vector BIT_IOR_EXPR are supported and don't lower
19056 or lower just to narrower vector type in that case.
19057 * expmed.c (expand_shift_1): Fix up handling of vector
19058 shifts and rotates.
19060 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
19063 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
19065 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
19067 * doc/invoke.texi (-fsemantic-interposition): Document.
19068 * common.opt (fsemantic-interposition): New flag.
19069 * varasm.c (decl_replaceable_p): Use it.
19071 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19074 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
19075 extraction other than index 3.
19077 2014-06-26 Teresa Johnson <tejohnson@google.com>
19079 * doc/invoke.texi: Fix typo.
19080 * dumpfile.c: Add support for documented -fdump-* options
19081 optimized/missed/note/optall.
19083 2014-06-26 Martin Jambor <mjambor@suse.cz>
19085 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
19086 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
19087 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
19088 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
19089 * opts.c (default_options_optimization): Set
19090 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
19091 * doc/invoke.texi (allow-load-data-races)
19092 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
19093 (allow-store-data-races): Document the new default.
19095 2014-06-26 Martin Jambor <mjambor@suse.cz>
19097 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
19098 renamed to ipa_impossible_devirt_target. Fix typo.
19099 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
19100 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
19101 ipa_impossible_devirt_target.
19103 2014-06-26 Richard Biener <rguenther@suse.de>
19105 PR tree-optimization/61607
19106 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
19107 explaining why we restrict copies on loop depth.
19108 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19110 (record_equivalences_from_phis): Instead add it here.
19112 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
19114 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
19115 (LTO_WRAPPER_OBJS): New variable.
19116 (lto-wrapper$(exeext)): Use it.
19117 * collect2.c: Include "collect-utils.h".
19118 (verbose, debug): Remove variables.
19119 (at_file_supplied): No longer static.
19120 (tool_name): New variable.
19121 (do_wait, fork_execute, maybe_unlink): Don't declare.
19122 (tool_cleanup): No longer static.
19123 (notice): Remove function.
19124 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
19125 fork_execute calls.
19126 (collect_wait, do_wait, collect_execute): Remove functions.
19127 (maybe_unlink): No longer static.
19128 * collect2.h (verbose, debug): Don't declare.
19129 (at_file_supplied): Declare.
19130 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
19132 (collect_execute): Replace with implementation from collect2, plus a
19133 new arg use_atfile. All callers changed.
19134 (collect_wait): Replace with implementation from collect2.
19135 (maybe_unlink_file): Remove function.
19136 (fork_execute): Replace with implementation from collect2, plus a
19137 new arg use_atfile. All callers changed.
19138 (do_wait): Add call to utils_cleanup to the error path.
19139 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
19140 (tool_cleanup): Adjust declarations.
19141 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
19142 * tlink.c: Include "collect-utils.h".
19143 (tlink_execute): New arg use_atfile. All callers changed.
19144 (tlink_init, tlink_execute): Remove declarations.
19146 * collect-utils.c (save_temps): New variable.
19147 (do_wait): Use it instead of debug. Use fatal_error.
19148 * collect-utils.h (save_temps): Declare.
19149 * collect2.c (verbose): Rename from vflag. All uses changed.
19150 (tool_cleanup): New function, copied from collect_atexit.
19151 (collect_atexit, handler): Just call it.
19152 * collect2.h (verbose): Declaration renamed from vflag.
19153 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
19156 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
19157 (lto-wrapper$(exeext)): Link with collect-utils.o.
19158 * collect-utils.c: New file.
19159 * collect-utils.h: New file.
19160 * lto-wrapper.c: Include "collect-utils.h".
19161 (args_name): Delete variable.
19162 (tool_name): New variable.
19163 (tool_cleanup): New function.
19164 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
19165 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
19166 (fork_execute): Remove functions.
19168 2014-06-26 Nick Clifton <nickc@redhat.com>
19170 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
19172 * doc/extend.texi (Function Attributes): Fix typo in description
19173 of RX vector attribute.
19175 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19177 * config.gcc (supported_defaults): Error when passing either
19178 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
19180 2014-06-26 Richard Biener <rguenther@suse.de>
19182 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19183 propagating volatile pointers.
19185 2014-06-26 Richard Biener <rguenther@suse.de>
19187 PR tree-optimization/61607
19188 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
19189 loop if we redirected its latch edge.
19190 (thread_block_1): Do not cancel loops prematurely.
19192 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
19194 * toplev.c (backend_init_target): Move init_emit_regs and
19196 (backend_init) ... here; skip ira_init_once and backend_init_target.
19197 (target_reinit) ... and here; clear
19198 this_target_rtl->lang_dependent_initialized.
19199 (lang_dependent_init_target): Clear
19200 this_target_rtl->lang_dependent_initialized;
19201 break out rtl initialization to ...
19202 (initialize_rtl): ... here; call also backend_init_target
19204 * toplev.h (initialize_rtl): New function.
19205 * function.c: Include toplev.h
19206 (init_function_start): Call initialize_rtl.
19207 * rtl.h (target_rtl): Add target_specific_initialized,
19208 lang_dependent_initialized.
19210 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
19211 Jakub Jelinek <jakub@redhat.com>
19213 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
19215 2014-06-25 Tom de Vries <tom@codesourcery.com>
19217 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
19219 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19221 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
19222 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
19223 Issue a strict overflow warning if appropriate.
19225 2014-06-25 Martin Liska <mliska@suse.cz>
19227 IPA REF refactoring
19228 * Makefile.in: Removed header file (ipa-ref-inline.h).
19229 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
19231 (cgraph_speculative_call_info): Likewise.
19232 (cgraph_for_node_thunks_and_aliases): Likewise.
19233 (cgraph_for_node_and_aliases): Likewise.
19234 (verify_cgraph_node): Likewise.
19235 * cgraph.h: Batch of IPA REF functions become member functions of
19236 symtab_node: add_reference, maybe_add_reference, clone_references,
19237 clone_referring, clone_reference, find_reference,
19238 remove_stmt_references, remove_all_references,
19239 remove_all_referring, dump_references, dump_referring,
19240 has_alias_p, iterate_reference, iterate_referring.
19241 * cgraphbuild.c (record_reference): New IPA REF function used.
19242 (record_type_list): Likewise.
19243 (record_eh_tables): Likewise.
19244 (mark_address): Likewise.
19245 (mark_load): Likewise.
19246 (mark_store): Likewise.
19247 (pass_build_cgraph_edges): Likewise.
19248 (rebuild_cgraph_edge): Likewise.
19249 (cgraph_rebuild_references): Likewise.
19250 (pass_remove_cgraph_callee_edges): Likewise.
19251 * cgraphclones.c (cgraph_clone_node): Likewise.
19252 (cgraph_create_virtual_clone): Likewise.
19253 (cgraph_materialize_clone): Likewise.
19254 (cgraph_materialize_all_clones): Likewise.
19255 * cgraphunit.c (cgraph_reset_node): Likewise.
19256 (cgraph_reset_node): Likewise.
19257 (analyze_function): Likewise.
19258 (assemble_thunks_and_aliases): Likewise.
19259 (expand_function): Likewise.
19260 * ipa-comdats.c (propagate_comdat_group): Likewise.
19261 (enqueue_references): Likewise.
19262 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
19263 (create_specialized_node): Likewise.
19264 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
19265 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
19266 * ipa-inline.c (reset_edge_caches): Likewise.
19267 (update_caller_keys): Likewise.
19268 (execute): Likewise.
19269 * ipa-prop.c (remove_described_reference): Likewise.
19270 (propagate_controlled_uses): Likewise.
19271 (ipa_edge_duplication_hook): Likewise.
19272 (ipa_modify_call_arguments): Likewise.
19273 * ipa-pure-const.c (propagate_pure_const): Likewise.
19274 * ipa-ref-inline.h: Header file removed, functions moved
19275 to symtab_node class.
19276 * ipa-ref.c (remove_reference): New class member function.
19277 (cannot_lead_to_return): New class member function.
19278 (referring_ref_list): Likewise.
19279 (referred_ref_list): Likewise.
19280 Rest of functions moved to symtab_node class.
19281 * ipa-ref.h: New member functions remove_reference,
19282 cannot_lead_to_return, referring_ref_list, referred_ref_list added
19284 ipa_ref_list class has new member functions: first_reference,
19285 first_referring, clear, nreferences.
19286 * ipa-reference.c (analyze_function): New IPA REF function used.
19287 (write_node_summary_p): Likewise.
19288 (ipa_reference_write_optimization_summary): Likewise.
19289 * ipa-split.c (split_function): Likewise.
19290 * ipa-utils.c (ipa_reverse_postorder): Likewise.
19291 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
19292 (function_and_variable_visibility): Likewise.
19293 * ipa.c (has_addr_references_p): Likewise.
19294 (process_references): Argument type changed.
19295 (symtab_remove_unreachable_nodes): New IPA REF function used.
19296 (process_references): Likewise.
19297 (set_writeonly_bit): Likewise.
19298 * lto-cgraph.c: Implementation of new symtab_node member functions
19299 that uses new IPA REF functions.
19300 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
19302 * lto-streamer-out.c (output_symbol_p): Likewise.
19303 * lto-streamer.h (referenced_from_this_partition_p): Argument type
19305 * symtab.c: Implementation of new IPA REF API.
19306 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
19307 (ipa_tm_create_version): Likewise.
19308 (ipa_tm_execute): Likewise.
19309 * tree-emutls.c (gen_emutls_addr): Likewise.
19310 * tree-inline.c (copy_bb): Likewise.
19311 (delete_unreachable_blocks_update_callgraph): Likewise.
19312 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19313 (varpool_for_node_and_aliases): Likewise.
19315 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19317 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19319 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19322 * fold-const.c (fold_checksum_tree): Use a hash_table of const
19323 tree_node * instead of tree_node *.
19325 (print_fold_checksum): Likewise.
19326 (fold_check_failed): Likewise.
19327 (debug_fold_checksum): Likewise.
19328 (fold_build1_stat_loc): Likewise.
19329 (fold_build2_stat_loc): Likewise.
19330 (fold_build3_stat_loc): Likewise.
19331 (fold_build_call_array_loc): Likewise.
19333 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
19335 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19336 implementation with call to...
19337 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19339 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19342 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
19344 PR tree-optimization/57742
19345 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19346 after replacing the statement.
19348 2014-06-25 Nick Clifton <nickc@redhat.com>
19350 * config/v850/v850.c (GHS_default_section_names): Change to const
19352 (GHS_current_section_names): Likewise.
19353 (v850_insert_attributes): Do not build strings, just assign the
19354 names directly. Change the type of 'chosen_section' to const
19356 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19357 directly to the array entry.
19358 * config/v850/v850.h (GHS_default_section_names): Change to const
19360 (GHS_current_section_names): Likewise.
19362 2014-06-25 Jakub Jelinek <jakub@redhat.com>
19364 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19365 (LANG_HOOKS_DECLS): Add it.
19366 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19368 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19369 * langhooks.h (struct lang_hooks_for_decls): Add
19370 omp_clause_linear_ctor hook.
19371 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19372 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
19373 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
19374 combined simd loop use omp_clause_linear_ctor hook.
19376 2014-06-24 Cong Hou <congh@google.com>
19378 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19379 pattern recognition.
19380 (type_conversion_p): PROMOTION is true if it's a type promotion
19381 conversion, and false otherwise. Return true if the given expression
19382 is a type conversion one.
19383 * tree-vectorizer.h: Adjust the number of patterns.
19384 * tree.def: Add SAD_EXPR.
19385 * optabs.def: Add sad_optab.
19386 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19387 * expr.c (expand_expr_real_2): Likewise.
19388 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19389 * gimple.c (get_gimple_rhs_num_ops): Likewise.
19390 * optabs.c (optab_for_tree_code): Likewise.
19391 * tree-cfg.c (estimate_operator_cost): Likewise.
19392 * tree-ssa-operands.c (get_expr_operands): Likewise.
19393 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19394 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19395 * doc/generic.texi: Add document for SAD_EXPR.
19396 * doc/md.texi: Add document for ssad and usad.
19398 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19400 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19401 qualification in cast.
19403 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
19405 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19406 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19407 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19408 (tree_function_decl): ... here.
19409 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
19410 streaming of vindex to ...
19411 (write_ts_function_decl_tree_pointers): ... here.
19412 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19413 Do not stream DECL_VINDEX.
19414 (lto_input_ts_function_decl_tree_pointers): Stream it here.
19416 2014-06-24 Catherine Moore <clm@codesourcery.com>
19417 Sandra Loosemore <sandra@codesourcery.com>
19419 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
19420 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
19421 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
19423 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19425 * doc/invoke.texi (Warning Options): Remove duplicated
19426 -Wmaybe-uninitialized.
19428 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19430 PR tree-optimization/57742
19431 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19432 (handle_builtin_malloc, handle_builtin_memset): New functions.
19433 (strlen_optimize_stmt): Call them.
19434 * passes.def: Move strlen after loop+dom but before vrp.
19436 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19439 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19440 model family 6 CPU with has_longmode never use a CPU without
19443 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
19446 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19449 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19451 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19452 * dominance.c (iterate_fix_dominators): Use hash_map instead of
19454 * hash-map.h: New file.
19455 * ipa-comdats.c: Use hash_map instead of pointer_map.
19457 * lto-section-out.c: Adjust.
19458 * lto-streamer.h: Replace pointer_map with hash_map.
19459 * symtab.c (verify_symtab): Likewise.
19460 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
19461 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
19462 * tree-streamer.h: Likewise.
19463 * tree-streamer.c: Adjust.
19464 * pointer-set.h: Remove pointer_map.
19466 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19468 * hash-table.h: Add a template arg to choose between storing values
19469 and storing pointers to values, and then provide partial
19470 specializations for both.
19471 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
19472 should store, not the type values should point to.
19473 * tree-into-ssa.c (var_info_hasher): Likewise.
19474 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19475 * tree-complex.c: Adjust.
19476 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
19477 table instead of int_tree_map *.
19478 * tree-parloops.c: Adjust.
19479 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
19480 type is being stored.
19481 * tree-vectorizer.c: Adjust.
19483 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19485 * hash-table.h: Remove a layer of indirection from hash_table so that
19486 it contains the hash table's data instead of a pointer to the data.
19487 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
19488 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
19489 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
19490 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
19491 fold-const.c, gcse.c, ggc-common.c,
19492 gimple-ssa-strength-reduction.c, gimplify.c,
19493 graphite-clast-to-gimple.c, graphite-dependences.c,
19494 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
19495 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19496 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
19497 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
19498 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
19499 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
19500 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
19501 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
19502 tree-ssa-live.c, tree-ssa-loop-im.c,
19503 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
19504 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
19505 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19506 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
19507 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
19508 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
19509 vtable-verify.c, vtable-verify.h: Adjust.
19511 2014-06-24 Richard Biener <rguenther@suse.de>
19513 PR tree-optimization/61572
19514 * tree-ssa-sink.c (statement_sink_location): Do not sink
19515 loads from hard registers.
19517 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19519 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
19520 not mentioned in clauses use private clause if the iterator is
19521 declared in #pragma omp for simd, and when adding lastprivate
19522 instead, add it to the outer #pragma omp for too. Diagnose
19523 if the variable is private in outer context. For simd collapse > 1
19524 loops, replace all iterators with temporaries.
19525 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
19526 same even in collapse > 1 loops.
19528 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
19529 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
19531 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
19532 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
19534 (gimplify_adjust_omp_clauses): Likewise.
19535 * omp-low.c (lower_rec_simd_input_clauses,
19536 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
19537 safelen the same as safelen(1).
19538 * tree-nested.c (convert_nonlocal_omp_clauses,
19539 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
19540 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
19541 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
19542 Fixup handling of GIMPLE_OMP_TARGET.
19543 (convert_tramp_reference_stmt, convert_gimple_call): Handle
19546 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
19548 PR tree-optimization/61554
19549 * tree-ssa-propagate.c: Include "bitmap.h".
19550 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
19551 properly update constructor/destructor.
19552 (substitute_and_fold_dom_walker::before_dom_children):
19553 Remove call to gimple_purge_dead_eh_edges, add bb->index to
19554 need_eh_cleaup instead.
19555 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
19558 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19560 * varpool.c (dump_varpool_node): Dump used_by_single_function.
19561 * tree-pass.h (make_pass_ipa_single_use): New pass.
19562 * cgraph.h (used_by_single_function): New flag.
19563 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
19565 * passes.def (pass_ipa_single_use): Scedule.
19566 * ipa.c (BOTTOM): New macro.
19567 (meet): New function
19568 (propagate_single_user): New function.
19569 (ipa_single_use): New function.
19570 (pass_data_ipa_single_use): New pass.
19571 (pass_ipa_single_use): New pass.
19572 (pass_ipa_single_use::gate): New gate.
19573 (make_pass_ipa_single_use): New function.
19575 2014-06-23 Kai Tietz <ktietz@redhat.com>
19578 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
19579 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
19581 2014-06-23 Richard Biener <rguenther@suse.de>
19583 * tree-ssa-loop.c (gate_loop): New function.
19584 (pass_tree_loop::gate): Call it.
19585 (pass_data_tree_no_loop, pass_tree_no_loop,
19586 make_pass_tree_no_loop): New.
19587 * tree-vectorizer.c: Include tree-scalar-evolution.c
19588 (pass_slp_vectorize::execute): Initialize loops and SCEV if
19590 (pass_slp_vectorize::clone): New method.
19591 * timevar.def (TV_TREE_NOLOOP): New.
19592 * tree-pass.h (make_pass_tree_no_loop): Declare.
19593 * passes.def (pass_tree_no_loop): New pass group with
19596 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
19599 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
19600 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
19602 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
19604 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
19605 "yes" where needed.
19607 2014-06-23 Alan Modra <amodra@gmail.com>
19610 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
19611 to zero on debug statements.
19613 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
19616 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
19617 Ignore third operand if present by marking qualifier_internal.
19619 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
19621 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
19623 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
19624 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
19625 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
19626 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
19627 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
19628 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
19629 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
19630 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
19631 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
19632 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
19633 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
19634 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
19635 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
19636 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
19637 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
19638 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
19639 logic in GCC vector extensions
19641 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
19642 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
19643 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
19644 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
19645 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
19646 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
19647 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
19648 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
19649 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
19650 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
19652 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
19654 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
19657 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
19658 (vget_low_s64): Use __GET_LOW macro.
19659 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
19660 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
19661 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
19662 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
19663 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
19665 (vcombine_s64): Use GCC vector extensions; remove cast.
19666 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
19667 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
19668 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
19669 Fix type signature; remove cast.
19671 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
19674 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
19676 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
19678 (BUILTIN_VD1): New.
19679 (BUILTIN_VD_RE): Remove.
19680 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
19681 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
19682 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
19683 variant but not df.
19684 (vreinterpretv1df*, vreinterpret*v1df): New.
19685 (vreinterpretdf*, vreinterpret*df): Remove.
19686 * config/aarch64/aarch64-simd.md (aarch64_create,
19687 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
19688 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
19690 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
19691 (vcreate_f64): Remove cast, use v1df builtin.
19692 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
19693 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
19694 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
19695 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
19696 vmov_n_f64, vst1_f64): Use gcc vector extensions.
19697 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
19698 add range check using __builtin_aarch64_im_lane_boundsi.
19699 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
19700 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
19701 type signature, use gcc vector extensions.
19702 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
19703 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
19704 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
19705 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
19706 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
19707 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
19708 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
19709 vreinterpret_u64_f64): Use v1df builtin not df.
19711 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
19713 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
19716 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19718 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
19721 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19723 * loop-invariant.c (pre_check_invariant_p): New function.
19724 (find_invariant_insn): Call pre_check_invariant_p.
19726 2014-06-22 Richard Henderson <rth@redhat.com>
19729 * compare-elim.c (struct comparison): Add eh_note.
19730 (find_comparison_dom_walker::before_dom_children): Don't eliminate
19731 a redundant comparison in a different EH region. Purge EH edges if
19734 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19736 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
19737 (var_shift): Use it.
19738 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
19739 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19740 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19741 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19742 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19743 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
19744 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
19745 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
19746 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
19747 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
19748 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
19749 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
19750 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
19751 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
19752 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
19753 *rotldi3_internal15be): Use the new attribute. Merge register and
19754 integer alternatives.
19756 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19758 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
19759 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
19760 split, *ashrdi3_internal3 and split): Delete, merge into...
19761 (ashr<mode>3): New expander.
19762 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
19763 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
19765 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19767 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
19768 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
19769 *rotldi3_internal3 and split): Delete, merge into...
19770 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
19771 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
19772 Use "rotlw" extended mnemonic.
19774 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19776 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
19777 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
19778 and split, *ashldi3_internal3 and split): Delete, merge into...
19779 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
19780 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
19782 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19784 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
19785 (lshrsi3, two anonymous define_insns and define_splits,
19786 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
19787 *lshrdi3_internal3 and split): Delete, merge into...
19788 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
19789 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
19791 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19793 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
19794 Remove "O" alternative.
19796 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
19798 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
19799 (mips_move_from_gpr_cost): Likewise.
19800 (mips_register_move_cost): Update accordingly.
19801 (mips_secondary_reload_class): Remove name of in_p.
19803 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
19806 * config/i386/i386.md (x86_64_shrd, x86_shrd,
19807 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
19809 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19811 * config/nios2/nios2.c: Include "builtins.h".
19813 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
19815 * cgraph.h (tls_model_names): New variable.
19816 * print-tree.c (print_node): Simplify.
19817 * varpool.c (tls_model_names): New variable.
19818 (dump_varpool_node): Output tls model.
19820 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
19822 * ipa-visibility.c (function_and_variable_visibility): Disable
19823 temporarily local aliases for some targets.
19825 2014-06-20 Marek Polacek <polacek@redhat.com>
19827 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
19828 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
19829 into SANITIZE_UNDEFINED.
19830 * doc/invoke.texi: Describe -fsanitize=bounds.
19831 * gimplify.c (gimplify_call_expr): Add gimplification of internal
19832 functions created in the FEs.
19833 * internal-fn.c: Move "internal-fn.h" after "tree.h".
19834 (expand_UBSAN_BOUNDS): New function.
19835 * internal-fn.def (UBSAN_BOUNDS): New internal function.
19836 * internal-fn.h: Don't define internal functions here.
19837 * opts.c (common_handle_option): Add -fsanitize=bounds.
19838 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
19839 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
19840 * tree-core.h: Define internal functions here.
19841 (struct tree_base): Add ifn field.
19842 * tree-pretty-print.c: Include "internal-fn.h".
19843 (dump_generic_node): Handle functions without CALL_EXPR_FN.
19844 * tree.c (get_callee_fndecl): Likewise.
19845 (build_call_expr_internal_loc): New function.
19846 * tree.def (CALL_EXPR): Update description.
19847 * tree.h (CALL_EXPR_IFN): Define.
19848 (build_call_expr_internal_loc): Declare.
19849 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
19851 (ubsan_type_descriptor): Change bool parameter to enum
19852 ubsan_print_style. Adjust the code. Add handling of
19854 (ubsan_expand_bounds_ifn): New function.
19855 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
19856 (ubsan_build_overflow_builtin): Likewise.
19857 (instrument_bool_enum_load): Likewise.
19858 (ubsan_instrument_float_cast): Likewise.
19859 * ubsan.h (enum ubsan_print_style): New enum.
19860 (ubsan_expand_bounds_ifn): Declare.
19861 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
19863 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
19865 * config/rs6000/rs6000.md: Append `DONE' to preparation
19866 statements of `bswap' pattern splitters.
19868 2014-06-20 Tom de Vries <tom@codesourcery.com>
19870 * target.def (call_fusage_contains_non_callee_clobbers): Update
19872 * doc/tm.texi: Regenerate.
19874 2014-06-20 Yury Gribov <y.gribov@samsung.com>
19875 Max Ostapenko <m.ostapenko@partner.samsung.com>
19878 * asan.c (instrument_strlen_call): Fixed instrumentation of
19881 2014-06-20 Martin Jambor <mjambor@suse.cz>
19884 * ipa-prop.c (impossible_devirt_target): New function.
19885 (try_make_edge_direct_virtual_call): Use it, also instead of
19888 2014-06-20 Yury Gribov <y.gribov@samsung.com>
19889 Max Ostapenko <m.ostapenko@partner.samsung.com>
19892 * asan.c (build_check_stmt): Add condition.
19894 2014-06-20 Martin Jambor <mjambor@suse.cz>
19897 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
19900 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19902 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
19904 (VCONQ): Make comment more helpful.
19906 * config/aarch64/aarch64-simd.md
19907 (aarch64_sqdmulh_lane<mode>):
19908 Use VCOND for operands 2. Update lane checking and flipping logic.
19909 (aarch64_sqrdmulh_lane<mode>): Likewise.
19910 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
19911 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
19912 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
19913 attribute of operand 3 to VCOND.
19914 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
19915 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
19916 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
19917 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
19918 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
19919 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
19921 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
19922 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
19923 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
19924 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
19925 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
19926 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
19927 operand to VCOND. Update lane flipping and bounds checking logic.
19928 (aarch64_sqdmlal2_lane<mode>): Likewise.
19929 (aarch64_sqdmlsl_lane<mode>): Likewise.
19930 (aarch64_sqdmull_lane<mode>): Likewise.
19931 (aarch64_sqdmull2_lane<mode>): Likewise.
19932 (aarch64_sqdmlal_laneq<mode>):
19933 Replace VCON usage with VCONQ.
19934 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
19935 (aarch64_sqdmlal2_laneq<mode>): Emit
19936 aarch64_sqdmlal2_laneq<mode>_internal insn.
19937 Replace VCON with VCONQ.
19938 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
19939 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
19940 (aarch64_sqdmull_laneq<mode>): Emit
19941 aarch64_sqdmull_laneq<mode>_internal insn.
19942 Replace VCON with VCONQ.
19943 (aarch64_sqdmull2_laneq<mode>): Emit
19944 aarch64_sqdmull2_laneq<mode>_internal insn.
19945 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
19946 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
19947 of 3rd argument to int16x4_t.
19948 (vqdmlalh_lane_s16): Likewise.
19949 (vqdmlslh_lane_s16): Likewise.
19950 (vqdmull_high_lane_s16): Likewise.
19951 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
19952 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
19953 (vqdmlsl_lane_s16): Likewise.
19954 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
19955 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
19956 (vqdmlals_lane_s32): Likewise.
19957 (vqdmlsls_lane_s32): Likewise.
19958 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
19959 (vqdmulls_lane_s32): Likewise.
19960 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
19961 (vqdmlsl_lane_s32): Likewise.
19962 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
19963 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
19964 (vqrdmulhh_lane_s16): Likewise.
19965 (vqdmlsl_high_lane_s16): Likewise.
19966 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
19967 (vqdmlsl_high_lane_s32): Likewise.
19968 (vqrdmulhs_lane_s32): Likewise.
19970 2014-06-20 Tom de Vries <tom@codesourcery.com>
19972 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
19973 get_call_reg_set_usage.
19975 2014-06-20 Tom de Vries <tom@codesourcery.com>
19977 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
19978 it contains all call_used_regs.
19980 2014-06-20 Tom de Vries <tom@codesourcery.com>
19982 * final.c (collect_fn_hard_reg_usage): Add and use variable
19983 function_used_regs.
19985 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
19987 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
19988 (set_init_priority, get_init_priority, set_fini_priority,
19989 get_fini_priority): New methods.
19990 * tree.c (init_priority_for_decl): Remove.
19991 (init_ttree): Do not initialize init priority.
19992 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
19993 (decl_priority_info): Remove.
19994 (decl_init_priority_insert): Rewrite.
19995 (decl_fini_priority_insert): Rewrite.
19996 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
19997 tree_priority_map_marked_p): Remove.
19998 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
19999 * lto-streamer-out.c (hash_tree): Do not hash priorities.
20000 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20001 not output priorities.
20002 (pack_ts_function_decl_value_fields): Likewise.
20003 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20004 not input priorities.
20005 (unpack_ts_function_decl_value_fields): Likewise.
20006 * symtab.c (symbol_priority_map): Declare.
20007 (init_priority_hash): Declare.
20008 (symtab_unregister_node): Unregister from priority hash, too.
20009 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20011 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20012 (symbol_priority_info): New function.
20013 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20015 * tree-core.h (tree_priority_map): Remove.
20017 2014-06-20 Jakub Jelinek <jakub@redhat.com>
20019 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20020 0xff to uint64_t before shifting it up.
20022 2014-06-20 Julian Brown <julian@codesourcery.com>
20023 Chung-Lin Tang <cltang@codesourcery.com>
20025 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20026 TARGET_THUMB1_ONLY. Add comments.
20028 2014-06-19 Tom de Vries <tom@codesourcery.com>
20030 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20031 return type to void.
20032 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20034 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20036 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20037 as "move", from depends_on.
20039 2014-06-19 Terry Guo <terry.guo@arm.com>
20041 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20044 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20046 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20048 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
20050 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
20053 * config/sh/sh.c (prepare_move_operands): Don't process TLS
20054 addresses here if reload in progress or completed.
20056 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20058 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20059 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20060 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20061 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20062 (mips_register_priority): New function that implements the target
20063 hook TARGET_REGISTER_PRIORITY.
20064 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
20065 (mips_lra_p): Likewise for TARGET_LRA_P.
20066 (TARGET_REGISTER_PRIORITY): Define macro.
20067 (TARGET_SPILL_CLASS): Likewise.
20068 (TARGET_LRA_P): Likewise.
20069 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
20071 (REG_CLASS_NAMES): Likewise.
20072 (REG_CLASS_CONTENTS): Likewise.
20073 (BASE_REG_CLASS): Use M16_SP_REGS.
20074 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
20075 New set attribute to enable alternatives depending on the register
20077 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
20078 (*lea64): Disable pattern for MIPS16.
20079 * config/mips/mips.opt (mlra): New option.
20081 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20083 * lra-constraints.c (base_to_reg): New function.
20084 (process_address): Use new function.
20086 2014-06-18 Tom de Vries <tom@codesourcery.com>
20088 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
20089 * config/aarch64/aarch64.c
20090 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
20091 (aarch64_emit_call_insn): New function.
20092 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
20094 * config/aarch64/aarch64.md (define_expand "call_internal")
20095 (define_expand "call_value_internal", define_expand "sibcall_internal")
20096 (define_expand "sibcall_value_internal"): New.
20097 (define_expand "call", define_expand "call_value")
20098 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
20099 expand variant and aarch64_emit_call_insn.
20101 2014-06-18 Radovan Obradovic <robradovic@mips.com>
20102 Tom de Vries <tom@codesourcery.com>
20104 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
20105 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20107 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
20108 clobbers to CALL_INSN_FUNCTION_USAGE.
20109 (define_expand "sibcall_internal")
20110 (define_expand "sibcall_value_internal"): New.
20111 (define_expand "call", define_expand "call_value"): Add argument to
20112 arm_emit_call_insn.
20113 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
20114 (define_expand "sibcall_value"): Use sibcall_value_internal and
20115 arm_emit_call_insn.
20117 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20119 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
20121 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20123 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
20126 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20128 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
20129 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
20130 annotations. Fix DWARF information.
20132 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20134 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
20135 __udivmoddi4, and fixups for negative operands.
20137 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20139 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
20141 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20143 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
20146 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20148 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
20151 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20153 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
20154 describing register usage on function entry and exit.
20156 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20158 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
20159 (__aeabi_ldivmod): Fix whitespace.
20161 2014-06-18 Andreas Schwab <schwab@suse.de>
20163 * doc/md.texi (Standard Names): Use @itemx for grouped items.
20164 Remove blank line after @item.
20166 2014-06-18 Richard Henderson <rth@redhat.com>
20169 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
20171 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20173 * config/arm/arm.c (neon_vector_mem_operand): Allow register
20174 POST_MODIFY for neon loads and stores.
20175 (arm_print_operand): Output post-index register for neon loads and
20178 2014-06-18 Richard Biener <rguenther@suse.de>
20180 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
20182 2014-06-18 Richard Biener <rguenther@suse.de>
20184 * tree-pass.h (make_pass_dce_loop): Remove.
20185 * passes.def: Replace pass_dce_loop with pass_dce.
20186 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
20187 changed free niter estimates and reset the scev cache.
20188 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
20189 make_pass_dce_loop): Remove.
20190 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
20191 (fini_copy_prop): Return whether something changed. Always
20192 let substitute_and_fold perform DCE and free niter estimates
20193 and reset the scev cache if so.
20194 (execute_copy_prop): If sth changed schedule cleanup-cfg.
20195 (pass_data_copy_prop): Do not unconditionally schedule
20196 cleanup-cfg or update-ssa.
20198 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
20200 PR tree-optimization/61518
20201 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20202 reduction var is used in reduction stmt or phi-function only.
20204 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20206 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
20208 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
20210 PR tree-optimization/61517
20211 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
20212 whose rhs's first tree is the source expression instead of the
20214 (find_bswap_or_nop): Likewise.
20215 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
20216 gimple stmt whose rhs's first tree is the source. In the memory source
20217 case, move the stmt to be replaced close to one of the original load to
20218 avoid the problem of a store between the load and the stmt's original
20220 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
20223 2014-06-18 Andreas Schwab <schwab@suse.de>
20225 PR rtl-optimization/54555
20226 * postreload.c (move2add_use_add2_insn): Substitute
20227 STRICT_LOW_PART only if it is cheaper.
20229 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
20231 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
20232 Do not use unspec as call operand. Use memory_operand instead of
20233 memory_nox32_operand and add "m" operand constraint. Disable
20234 pattern for TARGET_X32.
20235 (*sibcall_pop_memory): Ditto.
20236 (*sibcall_value_memory): Ditto.
20237 (*sibcall_value_pop_memory): Ditto.
20238 (sibcall peepholes): Merge SImode and DImode patterns using
20239 W mode iterator. Use memory_operand instead of memory_nox32_operand.
20240 Disable pattern for TARGET_X32. Check if eliminated register is
20241 really dead after call insn. Generate call RTX without unspec operand.
20242 (sibcall_value peepholes): Ditto.
20243 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
20244 instead of memory_nox32_operand. Check if eliminated register is
20245 really dead after call insn. Generate call RTX without unspec operand.
20246 (sibcall_value_pop peepholes): Ditto.
20247 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
20249 2014-06-18 Terry Guo <terry.guo@arm.com>
20252 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
20255 2014-06-18 Olivier Hainque <hainque@adacore.com>
20257 * tree-core.h (tree_block): Add an "end_locus" field, allowing
20258 memorization of the end of block source location.
20259 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
20260 * gimplify.c (gimplify_bind_expr): Propagate the block start and
20261 end source location info we have on the block entry/exit code we
20264 2014-06-18 Richard Biener <rguenther@suse.de>
20266 * common.opt (fssa-phiopt): New option.
20267 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
20269 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
20270 * doc/invoke.texi (-fssa-phiopt): Document.
20272 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20274 * genattrtab.c (n_bypassed): New variable.
20275 (process_bypasses): Initialise n_bypassed.
20276 Count number of bypassed reservations.
20277 (make_automaton_attrs): Allocate space for bypassed reservations
20278 rather than number of bypasses.
20280 2014-06-18 Richard Biener <rguenther@suse.de>
20282 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
20283 we propagated anything.
20284 (substitute_and_fold_dom_walker::before_dom_children): Something
20285 changed if we propagated into PHI arguments.
20286 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
20289 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
20291 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
20293 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
20294 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
20295 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
20296 Introduces alternative way of loads group permutaions.
20297 (vect_transform_grouped_load): Try alternative way of permutations.
20299 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20301 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
20302 changed in ORT_TARGET region, don't jump to do_outer.
20303 (struct gimplify_adjust_omp_clauses_data): New type.
20304 (gimplify_adjust_omp_clauses_1): Adjust for data being
20305 a struct gimplify_adjust_omp_clauses_data pointer instead
20306 of tree *. Pass pre_p as a new argument to
20307 lang_hooks.decls.omp_finish_clause hook.
20308 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
20309 splay_tree_foreach to pass both list_p and pre_p.
20310 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
20311 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
20312 gimplify_adjust_omp_clauses callers.
20313 * langhooks.c (lhd_omp_finish_clause): New function.
20314 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20315 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20316 * langhooks.h (struct lang_hooks_for_decls): Add a new
20317 gimple_seq * argument to omp_finish_clause hook.
20318 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20319 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20320 (scan_omp_parallel, lower_omp_for): When adding
20321 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20322 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20323 * tree-nested.c (convert_nonlocal_omp_clauses,
20324 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20325 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20327 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
20329 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20330 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20332 2014-06-17 Xinliang David Li <davidxl@google.com>
20334 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20335 * passes.c (pass_init_dump_file): Do not set initialize
20336 flag to false unconditionally.
20338 2014-06-17 Richard Biener <rguenther@suse.de>
20340 * genopinit.c (main): Use vec<>::qsort method.
20341 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20343 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20345 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
20347 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20348 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20349 (mips_move_to_gpr_cost): Remove ST_REGS case.
20350 (mips_move_from_gpr_cost): Likewise.
20351 (mips_register_move_cost): Likewise.
20352 (mips_secondary_reload_class): Likewise.
20354 2014-06-17 Richard Biener <rguenther@suse.de>
20356 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20357 (pass_all_optimizations): Move 3rd copy-prop pass from after
20358 fre to before ifcombine/phiopt.
20360 2014-06-17 Richard Biener <rguenther@suse.de>
20362 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20363 and allow all blocks to be forwarders.
20365 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
20368 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20369 variable 'size'; calculate 'size' right in the front; use
20370 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20371 pcum->aapcs_stack_words.
20373 2014-06-17 Nick Clifton <nickc@redhat.com>
20375 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20376 (umulhi3, mulsidi3, umulsidi3): Likewise.
20378 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
20380 PR middle-end/61508
20381 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20382 check for section name.
20384 2014-06-17 Richard Biener <rguenther@suse.de>
20386 * tree-ssa-propagate.c: Include domwalk.h.
20387 (substitute_and_fold): Outline main worker into a domwalker ...
20388 (substitute_and_fold_dom_walker::before_dom_children): ... here.
20389 Schedule stmts we can fully propagate for removal. Remove
20391 (substitute_and_fold): Apply a dominator walk to perform
20392 substitution. Process stmts scheduled for removal here.
20394 2014-06-17 Richard Biener <rguenther@suse.de>
20396 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20397 of PHI node moving.
20399 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20401 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20402 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20403 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20404 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20405 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20407 (get_fpscr) : Likewise.
20409 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20411 PR rtl-optimization/61325
20412 * lra-constraints.c (valid_address_p): Add forward declaration.
20413 (simplify_operand_subreg): Check address validity before and after
20414 alter_reg of memory subreg.
20416 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
20418 * config/i386/i386.c (decide_alg): Correctly handle
20419 maximum size of stringop algorithm.
20421 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20423 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
20425 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20427 PR rtl-optimization/61522
20428 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20430 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
20433 * symtab.c (symtab_node::reset_section): New method.
20434 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20436 * cgraph.h (reset_section): Declare.
20437 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20438 do not consider comdat locals.
20439 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20441 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20442 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20443 reset sections of symbols dragged out of the comdats.
20444 (function_and_variable_visibility): Reset sections of
20447 2014-06-16 Richard Biener <rguenther@suse.de>
20449 PR tree-optimization/61482
20450 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20451 [-INF(OVF), +INF(OVF)] range.
20453 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20455 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20456 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
20457 handling 32-bit multiplication.
20459 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
20461 PR middle-end/61430
20462 * lra-lives.c (process_bb_lives): Skip creating copy during
20463 insn scan when src/dest has constrained to same regno.
20465 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20467 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
20468 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
20470 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20472 * asan.c (check_func): New function.
20473 (maybe_create_ssa_name): Likewise.
20474 (build_check_stmt_with_calls): Likewise.
20475 (use_calls_p): Likewise.
20476 (report_error_func): Change interface.
20477 (build_check_stmt): Allow non-integer lengths; add support
20479 (asan_instrument): Likewise.
20480 (instrument_mem_region_access): Moved code to build_check_stmt.
20481 (instrument_derefs): Likewise.
20482 (instrument_strlen_call): Likewise.
20483 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
20484 * doc/invoke.texi: Describe new parameter.
20485 * params.def: Define new parameter.
20486 * params.h: Likewise.
20487 * sanitizer.def: Describe new builtins.
20489 2014-06-16 Richard Biener <rguenther@suse.de>
20491 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20492 Make all defs available at the end.
20493 (eliminate): If we remove a PHI node schedule cfg-cleanup.
20495 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20498 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
20500 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
20503 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
20504 initialization. Replace remaining use of uid.
20506 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20508 * c-family/c-common.c (handle_tls_model_attribute): Use
20509 set_decl_tls_model.
20510 * c-family/c-common.c (handle_tls_model_attribute): Use
20511 set_decl_tls_model.
20512 * cgraph.h (struct varpool_node): Add tls_model.
20513 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
20514 * tree.h (DECL_TLS_MODEL): Update.
20515 (DECL_THREAD_LOCAL_P): Check that variable is static.
20516 (decl_tls_model): Declare.
20517 (set_decl_tls_model): Declare.
20518 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
20519 set symbol prorperties.
20520 (get_emutls_init_templ_addr): Cleanup.
20521 (new_emutls_decl): Update.
20522 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
20523 (lto_input_varpool_node): Likewise.
20524 * lto-streamer-out.c (hash_tree): Likewise.
20525 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20526 not stream DECL_TLS_MODEL.
20527 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
20528 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
20530 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20532 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
20534 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20536 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
20537 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
20539 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
20540 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
20541 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
20542 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
20543 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
20544 (df_get_artificial_defs, df_get_artificial_uses)
20545 (df_single_def, df_single_use): Update accordingly.
20546 (df_refs_chain_dump): Take the first element in a linked list as
20547 parameter, rather than a pointer to an array of pointers.
20548 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
20549 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
20550 (df_chain_create_bb_process_use): Likewise.
20551 (df_md_bb_local_compute_process_def): Likewise.
20552 * fwprop.c (process_defs, process_uses): Likewise.
20553 (register_active_defs, update_uses): Likewise.
20554 (forward_propagate_asm): Update for new df_ref linking.
20555 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
20556 (df_null_ref_rec, df_null_mw_rec): Likewise.
20557 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
20559 (df_scan_free_bb_info): Remove check for null artificial_defs.
20560 (df_install_ref_incremental): Adjust for new df_ref linking.
20561 Use a single-element insertion rather than a full sort.
20562 (df_ref_chain_delete_du_chain): Take the first element
20563 in a linked list as parameter, rather than a pointer to an array of
20565 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
20566 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
20567 (df_insn_info_delete): Remove check for null defs and call to
20568 df_scan_free_mws_vec.
20569 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
20570 null rather than df_null_*_rec.
20571 (df_insn_rescan_debug_internal): Likewise, and update null
20572 checks in the same way. Remove check for null defs.
20573 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
20574 Move a single element rather doing a full sort.
20575 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
20577 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
20578 Initialize df_ref and df_mw_hardreg lists to null rather than
20580 (df_ref_compare): Take df_refs as parameter, transferring the
20581 old interface to...
20582 (df_ref_ptr_compare): ...this new function.
20583 (df_sort_and_compress_refs): Update accordingly.
20584 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
20585 old interface to...
20586 (df_mw_ptr_compare): ...this new function.
20587 (df_sort_and_compress_mws): Update accordingly.
20588 (df_install_refs, df_install_mws): Return a linked list rather than
20589 an array of pointers.
20590 (df_refs_add_to_chains): Assert that old lists are empty rather
20592 (df_insn_refs_verify): Don't handle null defs speciailly.
20593 * web.c (union_match_dups): Update for new df_ref linking.
20595 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20597 * df.h (df_ref_create, df_ref_remove): Delete.
20598 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
20599 (df_ref_remove): Likewise.
20601 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20603 * df.h (df_single_def, df_single_use): New functions.
20604 * ira.c (find_moveable_pseudos): Use them.
20606 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20608 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
20609 * df-problems.c (df_note_bb_compute): Use it.
20610 * regstat.c (regstat_bb_compute_ri): Likewise.
20612 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20614 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
20615 * cse.c (cse_extended_basic_block): Use them.
20616 * dce.c (mark_artificial_use): Likewise.
20617 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
20618 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20619 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
20620 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
20621 (df_simulate_initialize_backwards): Likewise.
20622 (df_simulate_finalize_backwards): Likewise.
20623 (df_simulate_initialize_forwards): Likewise.
20624 (df_md_simulate_artificial_defs_at_top): Likewise.
20625 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20626 * regrename.c (init_rename_info): Likewise.
20627 * regstat.c (regstat_bb_compute_ri): Likewise.
20628 (regstat_bb_compute_calls_crossed): Likewise.
20630 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20632 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
20633 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
20634 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
20635 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
20636 * combine.c (create_log_links): Likewise.
20637 * compare-elim.c (find_flags_uses_in_insn): Likewise.
20638 (try_eliminate_compare): Likewise.
20639 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
20640 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
20641 (remove_reg_equal_equiv_notes_for_defs): Likewise.
20642 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
20643 (word_dce_process_block, dce_process_block): Likewise.
20644 * ddg.c (def_has_ccmode_p): Likewise.
20645 * df-core.c (df_bb_regno_first_def_find): Likewise.
20646 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
20647 * df-problems.c (df_rd_simulate_one_insn): Likewise.
20648 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20649 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
20650 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
20651 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
20652 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
20653 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
20654 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
20655 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
20656 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20657 * fwprop.c (local_ref_killed_between_p): Likewise.
20658 (all_uses_available_at, free_load_extend): Likewise.
20659 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
20660 * hw-doloop.c (scan_loop): Likewise.
20661 * ifcvt.c (dead_or_predicable): Likewise.
20662 * init-regs.c (initialize_uninitialized_regs): Likewise.
20663 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
20664 (process_bb_node_lives): Likewise.
20665 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
20666 (find_moveable_pseudos): Likewise.
20667 * loop-invariant.c (check_dependencies, record_uses): Likewise.
20668 * recog.c (peep2_find_free_register): Likewise.
20669 * ree.c (get_defs): Likewise.
20670 * regstat.c (regstat_bb_compute_ri): Likewise.
20671 (regstat_bb_compute_calls_crossed): Likewise.
20672 * sched-deps.c (find_inc, find_mem): Likewise.
20673 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
20674 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
20675 * shrink-wrap.c (requires_stack_frame_p): Likewise.
20676 (prepare_shrink_wrap): Likewise.
20677 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
20678 * web.c (union_defs, pass_web::execute): Likewise.
20679 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
20680 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
20682 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
20684 * lra-assign.c (assign_by_spills): Add code to assign vector regs
20685 to inheritance pseudos.
20686 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
20688 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
20691 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
20692 (BU_MISC_2): Rename to ...
20693 (BU_LDBL128_2): ... this.
20694 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
20695 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
20696 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20697 RS6000_BTM_LDBL128.
20698 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
20699 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
20700 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
20701 (unpacktf_1): Likewise.
20702 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
20703 (__builtin_longdouble_dw1): Likewise.
20704 * doc/sourcebuild.texi (longdouble128): Document.
20706 2014-06-13 Jeff Law <law@redhat.com>
20708 PR rtl-optimization/61094
20709 PR rtl-optimization/61446
20710 * ree.c (combine_reaching_defs): Get the mode for the copy from
20711 the extension insn rather than the defining insn.
20713 2014-06-13 Dehao Chen <dehao@google.com>
20715 * dwarf2out.c (add_linkage_name): Emit more linkage name.
20717 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
20719 * doc/install.texi (--enable-linker-plugin-configure-flags)
20720 (--enable-linker-plugin-flags): Document new flags.
20722 2014-06-13 Martin Jambor <mjambor@suse.cz>
20725 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
20726 cache_token if returning early.
20728 2014-06-13 Nick Clifton <nickc@redhat.com>
20730 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
20731 requested alignment is active.
20732 (LABEL_ALIGN): Likewise.
20733 (LOOP_ALIGN): Likewise.
20735 2014-06-13 Richard Biener <rguenther@suse.de>
20737 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20738 Rewrite to propagate the VN result into all uses where
20739 possible and to remove stmts becoming dead because of that.
20740 (eliminate): Generalize stmt removal handling, remove in
20741 reverse dominator order to support proper debug stmt
20742 generation. Update stmts before removing stmts.
20743 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
20745 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
20747 PR tree-optimization/61375
20748 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
20749 symbolic number cannot be represented in an uint64_t.
20750 (find_bswap_or_nop_1): Likewise.
20752 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
20754 * symtab.c (symtab_node::reset_section): New method.
20755 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20757 * cgraph.h (reset_section): Declare.
20758 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20759 do not consider comdat locals.
20760 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20762 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20763 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20764 reset sections of symbols dragged out of the comdats.
20765 (function_and_variable_visibility): Reset sections of
20768 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
20770 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
20771 to use symtab and decl_binds_to_current_def_p
20772 * tree-vectorizer.c (increase_alignment): Increase alignment
20773 of alias target, too.
20775 2014-06-12 Jakub Jelinek <jakub@redhat.com>
20777 PR middle-end/61486
20778 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
20779 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
20780 if outer combined construct is distribute.
20781 (gimplify_omp_for): For OMP_DISTRIBUTE set
20782 gimplify_omp_ctxp->distribute.
20783 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
20784 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
20785 mapping into decl map.
20787 2014-06-12 Jason Merrill <jason@redhat.com>
20789 * common.opt (fabi-version): Change default to 0.
20791 2014-06-12 Jason Merrill <jason@redhat.com>
20793 * toplev.c (process_options): Reject -fabi-version=1.
20795 2014-06-12 Jeff Law <law@redhat.com>
20797 PR tree-optimization/61009
20798 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
20799 value when we stop processing a block due to problematic PHIs.
20801 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
20803 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
20804 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
20805 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
20806 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
20807 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
20808 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
20809 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
20810 are not in the spec.
20812 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
20815 * config/aarch64/aarch64-modes.def: Add V1DFmode.
20816 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
20819 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
20821 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
20823 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
20826 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
20827 loading from address spaces.
20829 2014-06-12 Martin Liska <mliska@suse.cz>
20832 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
20833 statement is reachable.
20835 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
20837 * symtab.c (section_hash): New hash.
20838 (symtab_unregister_node): Clear section before freeing.
20839 (hash_section_hash_entry): New haser.
20840 (eq_sections): New function.
20841 (symtab_node::set_section_for_node): New method.
20842 (set_section_1): Update.
20843 (symtab_node::set_section): Take string instead of tree as parameter.
20844 (symtab_resolve_alias): Update.
20845 * cgraph.h (section_hash_entry_d): New structure.
20846 (section_hash_entry): New typedef.
20847 (cgraph_node): Change comdat_group_ to x_comdat_group,
20848 change section_ to x_section and turn into section_hash_entry;
20849 update accestors; put set_section_for_node offline.
20850 * tree.c (decl_section_name): Turn into string.
20851 (set_decl_section_name): Change parameter to be string.
20852 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
20853 * sdbout.c (sdbout_one_type): Update.
20854 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
20855 * varasm.c (IN_NAMED_SECTION, get_named_section,
20856 resolve_unique_section, hot_function_section, get_named_text_section,
20857 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
20858 make_decl_rtl, default_unique_section): Update.
20859 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
20860 (c6x_elf_unique_section): Update.
20861 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
20862 * config/pa/pa.c (pa_function_section): Update.
20863 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
20864 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
20865 * config/arc/arc.c (arc_in_small_data_p): Update.
20866 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
20867 * config/mcore/mcore.c (mcore_unique_section): Update.
20868 * config/mips/mips.c (mips16_build_function_stub): Update.
20869 (mips16_build_call_stub): Update.
20870 (mips_function_rodata_section): Update.
20871 (mips_in_small_data_p): Update.
20872 * config/score/score.c (score_in_small_data_p): Update.
20873 * config/rx/rx.c (rx_in_small_data): Update.
20874 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
20875 (rs6000_xcoff_asm_named_section): Update.
20876 (rs6000_xcoff_unique_section): Update.
20877 * config/frv/frv.c (frv_string_begins_with): Update.
20878 (frv_in_small_data_p): Update.
20879 * config/v850/v850.c (v850_encode_data_area): Update.
20880 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
20881 (bfin_handle_l1_data_attribute): Update.
20882 (bfin_handle_l2_attribute): Update.
20883 * config/mep/mep.c (mep_unique_section): Update.
20884 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
20886 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
20887 (h8300_handle_tiny_data_attribute): Update.
20888 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
20889 (m32r_in_small_data_p): Update.
20890 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
20891 * config/i386/i386.c (ix86_in_large_data_p): Update.
20892 * config/i386/winnt.c (i386_pe_unique_section): Update.
20893 * config/darwin.c (darwin_function_section): Update.
20894 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
20895 * tree-emutls.c (get_emutls_init_templ_addr): Update.
20896 (new_emutls_decl): Update.
20897 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
20898 input_varpool_node): Update.
20899 (ead_string_cst): Turn to ...
20900 (read_string): ... this one.
20901 * dwarf2out.c (secname_for_decl): Update.
20902 * asan.c (asan_protect_global): Update.
20904 2014-06-11 DJ Delorie <dj@redhat.com>
20906 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
20908 * config/rx/rx.c (rx_option_override): Likewise.
20909 (rx_align_for_label): Likewise.
20911 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
20913 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
20915 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
20918 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20920 * common.md: New file.
20921 * doc/md.texi: Update description of generic, machine-independent
20923 * config/s390/constraints.md (e): Delete.
20924 * Makefile.in (md_file): Include common.md.
20925 * config/m32c/t-m32c (md_file): Likewise.
20926 * genpreds.c (general_mem): New array.
20927 (generic_constraint_letters): Remove constraints now defined by
20929 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
20930 Allow the first character to be '<' or '>' as well.
20931 * genoutput.c (general_mem): New array.
20932 (indep_constraints): Remove constraints now defined by common.md.
20933 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
20934 Remove special handling of 'm'.
20935 * ira-costs.c (record_reg_classes): Remove special handling of
20936 constraints now defined by common.md.
20937 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
20938 * ira-lives.c (single_reg_class): Likewise.
20939 (ira_implicitly_set_insn_hard_regs): Likewise.
20940 * lra-constraints.c (reg_class_from_constraints): Likewise.
20941 (process_alt_operands, process_address, curr_insn_transform): Likewise.
20942 * postreload.c (reload_cse_simplify_operands): Likewise.
20943 * reload.c (push_secondary_reload, scratch_reload_class)
20944 (find_reloads, alternative_allows_const_pool_ref): Likewise.
20945 * reload1.c (maybe_fix_stack_asms): Likewise.
20946 * targhooks.c (default_secondary_reload): Likewise.
20947 * stmt.c (parse_output_constraint): Likewise.
20948 * recog.c (preprocess_constraints): Likewise.
20949 (constrain_operands, peep2_find_free_register): Likewise.
20950 (asm_operand_ok): Likewise, but add a comment saying why 'o'
20951 must be handled specially.
20953 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20955 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
20956 * genpreds.c (have_const_dbl_constraints): Delete.
20957 (add_constraint): Don't set it.
20958 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
20959 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
20960 constraints using the lookup_constraint logic.
20961 * ira-lives.c (single_reg_class): Likewise.
20962 * ira.c (ira_setup_alts): Likewise.
20963 * lra-constraints.c (process_alt_operands): Likewise.
20964 * recog.c (asm_operand_ok, constrain_operands): Likewise.
20965 * reload.c (find_reloads): Likewise.
20967 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20969 * genpreds.c (const_int_start, const_int_end): New variables.
20970 (choose_enum_order): Output CONST_INT constraints before memory
20972 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
20974 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
20975 * ira.c (ira_setup_alts): Likewise.
20976 * lra-constraints.c (process_alt_operands): Likewise.
20977 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
20978 * reload.c (find_reloads): Likewise.
20980 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20982 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
20983 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
20984 * recog.c (preprocess_constraints): Update accordingly.
20986 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20988 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
20989 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
20990 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
20991 * genpreds.c (print_type_tree): New function.
20992 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
20993 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
20994 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
20995 Write out enum constraint_type and get_constraint_type.
20996 * lra-constraints.c (satisfies_memory_constraint_p): Take a
20997 constraint_num rather than a constraint string.
20998 (satisfies_address_constraint_p): Likewise.
20999 (reg_class_from_constraints): Avoid old constraint macros.
21000 (process_alt_operands, process_address_1): Likewise.
21001 (curr_insn_transform): Likewise.
21002 * ira-costs.c (record_reg_classes): Likewise.
21003 (record_operand_costs): Likewise.
21004 * ira-lives.c (single_reg_class): Likewise.
21005 (ira_implicitly_set_insn_hard_regs): Likewise.
21006 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21007 * postreload.c (reload_cse_simplify_operands): Likewise.
21008 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21009 (constrain_operands, peep2_find_free_register): Likewise.
21010 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21011 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21012 * reload1.c (maybe_fix_stack_asms): Likewise.
21013 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21014 * targhooks.c (default_secondary_reload): Likewise.
21015 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21016 to EXTRA_CONSTRAINT_STR.
21017 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21019 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21021 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21022 (write_constraint_satisfied_p_array): ...this new function.
21023 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21025 (write_insn_preds_c): Update accordingly.
21027 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21029 * genpreds.c (write_lookup_constraint): Rename to...
21030 (write_lookup_constraint_1): ...this.
21031 (write_lookup_constraint_array): New function.
21032 (write_tm_preds_h): Define lookup_constraint as an inline function
21033 that uses write_lookup_constraint_array where possible.
21034 (write_insn_preds_c): Update for the changes above.
21036 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21038 * doc/md.texi (regclass_for_constraint): Rename to...
21039 (reg_class_for_constraint): ...this.
21040 * genpreds.c (num_constraints, enum_order, register_start)
21041 (register_end, satisfied_start, memory_start, memory_end)
21042 (address_start, address_end): New variables.
21043 (add_constraint): Count the number of constraints.
21044 (choose_enum_order): New function.
21045 (write_enum_constraint_num): Iterate over enum_order.
21046 (write_regclass_for_constraint): Rename to...
21047 (write_reg_class_for_constraint_1): ...this and update output
21049 (write_constraint_satisfied_p): Rename to...
21050 (write_constraint_satisfied_p_1): ...this and update output
21051 accordingly. Do nothing if all extra constraints are register
21053 (write_insn_extra_memory_constraint): Delete.
21054 (write_insn_extra_address_constraint): Delete.
21055 (write_range_function): New function.
21056 (write_tm_preds_h): Define constraint_satisfied_p and
21057 reg_class_for_constraint as inline functions that do a range check
21058 before calling the out-of-line function. Use write_range_function
21059 to implement insn_extra_{register,memory,address}_constraint,
21060 the first of which is new.
21061 (write_insn_preds_c): Update after above changes to write_* functions.
21062 (main): Call choose_enum_order.
21064 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
21066 PR tree-optimization/61306
21067 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
21068 expression instead of its size.
21069 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
21070 false to prevent optimization when the result is unpredictable due to
21071 arithmetic right shift of signed type with highest byte is set.
21072 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
21073 (init_symbolic_number): Likewise.
21074 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
21075 when the result is unpredictable due to sign extension.
21077 2014-06-11 Terry Guo <terry.guo@arm.com>
21079 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
21080 (*thumb1_addsi3): Ditto.
21081 (*thumb_subdi3): Ditto.
21082 (thumb1_subsi3_insn): Ditto.
21083 (*thumb_mulsi3): Ditto.
21084 (*thumb_mulsi3_v6): Ditto.
21085 (*thumb1_andsi3_insn): Ditto.
21086 (thumb1_bicsi3): Ditto.
21087 (*thumb1_iorsi3_insn): Ditto.
21088 (*thumb1_xorsi3_insn): Ditto.
21089 (*thumb1_ashlsi3): Ditto.
21090 (*thumb1_ashrsi3): Ditto.
21091 (*thumb1_lshrsi3): Ditto.
21092 (*thumb1_rotrsi3): Ditto.
21093 (*thumb1_negdi2): Ditto.
21094 (*thumb1_negsi2): Ditto.
21095 (*thumb1_abssi2): Ditto.
21096 (*thumb1_neg_abssi2): Ditto.
21097 (*thumb1_one_cmplsi2): Ditto.
21098 (*thumb1_zero_extendhisi2): Ditto.
21099 (*thumb1_zero_extendqisi2): Ditto.
21100 (*thumb1_zero_extendqisi2_v6): Ditto.
21101 (thumb1_extendhisi2): Ditto.
21102 (thumb1_extendqisi2): Ditto.
21103 (*thumb1_movdi_insn): Ditto.
21104 (*thumb1_movsi_insn): Ditto.
21105 (*thumb1_movhi_insn): Ditto.
21106 (thumb_movhi_clobber): Ditto.
21107 (*thumb1_movqi_insn): Ditto.
21108 (*thumb1_movhf): Ditto.
21109 (*thumb1_movsf_insn): Ditto.
21110 (*thumb_movdf_insn): Ditto.
21111 (movmem12b): Ditto.
21113 (cbranchqi4): Ditto.
21114 (cbranchsi4_insn): Ditto.
21115 (cbranchsi4_scratch): Ditto.
21116 (*negated_cbranchsi4): Ditto.
21117 (*tbit_cbranch): Ditto.
21118 (*tlobits_cbranch): Ditto.
21119 (*tstsi3_cbranch): Ditto.
21120 (*cbranchne_decr1): Ditto.
21121 (*addsi3_cbranch): Ditto.
21122 (*addsi3_cbranch_scratch): Ditto.
21123 (*thumb_cmpdi_zero): Ditto.
21124 (cstoresi_eq0_thumb1): Ditto.
21125 (cstoresi_ne0_thumb1): Ditto.
21126 (*cstoresi_eq0_thumb1_insn): Ditto.
21127 (*cstoresi_ne0_thumb1_insn): Ditto.
21128 (cstoresi_nltu_thumb1): Ditto.
21129 (cstoresi_ltu_thumb1): Ditto.
21130 (thumb1_addsi3_addgeu): Ditto.
21131 (*thumb_jump): Ditto.
21132 (*call_reg_thumb1_v5): Ditto.
21133 (*call_reg_thumb1): Ditto.
21134 (*call_value_reg_thumb1_v5): Ditto.
21135 (*call_value_reg_thumb1): Ditto.
21136 (*call_insn): Ditto.
21137 (*call_value_insn): Ditto.
21138 (thumb1_casesi_internal_pic): Ditto.
21139 (thumb1_casesi_dispatch): Ditto.
21140 (*thumb1_indirect_jump): Ditto.
21141 (prologue_thumb1_interwork): Ditto.
21142 (*epilogue_insns): Ditto.
21143 (consttable_1): Ditto.
21144 (consttable_2): Ditto.
21145 (tablejump): Ditto.
21146 (*thumb1_tablejump): Ditto.
21147 (thumb_eh_return): Ditto.
21148 (define_peephole2): Two of them are thumb1 only and got moved into
21149 new file thumb1.md.
21150 (define_split): Six of them are thumb1 only and got moved into new
21152 * config/arm/thumb1.md: New file comprised of above thumb1 only
21155 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21157 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
21158 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
21160 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
21161 (aarch64_crc_builtin_datum): New struct.
21162 (aarch64_crc_builtin_data): New.
21163 (aarch64_init_crc32_builtins): New function.
21164 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
21165 (aarch64_crc32_expand_builtin): New.
21166 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
21167 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21168 __ARM_FEATURE_CRC32 when appropriate.
21169 (TARGET_CRC32): Define.
21170 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
21171 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
21172 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
21173 (aarch64_<crc_variant>): New pattern.
21174 * config/aarch64/arm_acle.h: New file.
21175 * config/aarch64/iterators.md (CRC): New int iterator.
21176 (crc_variant, crc_mode): New int attributes.
21177 * doc/aarch64-acle-intrinsics.texi: New file.
21178 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
21179 Include aarch64-acle-intrinsics.texi.
21181 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
21183 * tree-vect-data-refs.c (vect_grouped_store_supported): New
21184 check for stores group of length 3.
21185 (vect_permute_store_chain): New permutations for stores group of
21187 * tree-vect-stmts.c (vect_model_store_cost): Change cost
21188 of vec_perm_shuffle for the new permutations.
21190 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21192 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
21193 table rewriting temporarily on targets not supporting ONE_ONLY.
21195 2014-06-11 Richard Biener <rguenther@suse.de>
21197 PR middle-end/61437
21199 2014-06-04 Richard Biener <rguenther@suse.de>
21201 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21202 TREE_PUBLIC and DECL_EXTERNAL decls.
21204 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21206 * varasm.c (set_implicit_section): New function.
21207 (resolve_unique_section): Use it to set implicit section
21209 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
21210 (default_function_section): Likewise.
21211 (decl_binds_to_current_def_p): Constify argument.
21212 * varasm.h (decl_binds_to_current_def_p): Update prototype.
21213 * asan.c (asan_protect_global): Use
21214 symtab_get_node (decl)->implicit_section.
21215 * symtab.c (dump_symtab_base): Dump implicit sections.
21216 (verify_symtab_base): Verify sanity of sectoins and comdats.
21217 (symtab_resolve_alias): Alias share the section of its target.
21218 (set_section_1): New function.
21219 (symtab_node::set_section): Move here, recurse to aliases.
21220 (verify_symtab): Check for duplicated symtab lists.
21221 * tree-core.h (implicit_section_name_p): Remove.
21222 * tree-vect-data-refs.c: Include varasm.h.
21223 (vect_can_force_dr_alignment_p): Fix conditional on when
21224 decl bints to current definition; use
21225 symtab_get_node (decl)->implicit_section.
21226 * cgraph.c (cgraph_make_node_local_1): Fix section set.
21227 * cgraph.h (struct symtab_node): Add implicit_section.
21228 (set_section): Rename to ...
21229 (set_section_for_node): ... this one.
21230 (set_section): Declare.
21231 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
21232 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21233 input_overwrite_node, input_varpool_node): Stream implicit_section.
21234 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
21235 removal; it will fail in LTO.
21237 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21239 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
21240 Change second alternative type to f_mcr.
21241 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
21242 and 12th alternatives' types to f_mcr and f_mrc.
21243 (*movdi_aarch64): Same for 12th and 13th alternatives.
21244 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
21245 (aarch64_movtilow_tilow): Change type to fmov.
21247 2014-06-10 Jiong Wang <jiong.wang@arm.com>
21249 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
21250 (aarch64_save_or_restore_callee_save_registers): Fix layout.
21252 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21254 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
21256 (aarch64_sqrdmulh_lane<mode>): Likewise.
21257 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21258 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21259 (aarch64_sqdmulh_laneq<mode>): New expander.
21260 (aarch64_sqrdmulh_laneq<mode>): Likewise.
21261 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
21262 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
21263 (aarch64_sqdmulh_lane<mode>): New expander.
21264 (aarch64_sqrdmulh_lane<mode>): Likewise.
21265 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21266 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21267 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
21268 (aarch64_sqdmlal_laneq<mode>): Likewise.
21269 (aarch64_sqdmlsl_lane<mode>): Likewise.
21270 (aarch64_sqdmlsl_laneq<mode>): Likewise.
21271 (aarch64_sqdmlal2_lane<mode>): Likewise.
21272 (aarch64_sqdmlal2_laneq<mode>): Likewise.
21273 (aarch64_sqdmlsl2_lane<mode>): Likewise.
21274 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21275 (aarch64_sqdmull_lane<mode>): Likewise.
21276 (aarch64_sqdmull_laneq<mode>): Likewise.
21277 (aarch64_sqdmull2_lane<mode>): Likewise.
21278 (aarch64_sqdmull2_laneq<mode>): Likewise.
21280 2014-06-10 Richard Biener <rguenther@suse.de>
21282 PR tree-optimization/61438
21283 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
21284 (eliminate_dom_walker::before_dom_children): Only try to inhibit
21285 insertion of IVs if running PRE.
21286 (eliminate): Adjust.
21287 (pass_pre::execute): Likewise.
21288 (pass_fre::execute): Likewise.
21290 2014-06-10 Richard Biener <rguenther@suse.de>
21292 PR middle-end/61456
21293 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21294 Do not use the main variant for the type comparison.
21295 (ncr_compar): Likewise.
21296 (nonoverlapping_component_refs_p): Likewise.
21298 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
21300 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
21301 REG_CFA_RESTORE mode.
21303 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
21305 * config/i386/i386.c (expand_vec_perm_pblendv): New.
21306 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
21307 expand_vec_perm_pblendv.
21309 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21311 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21313 Simplify description of __crc32d and __crc32cd intrinsics.
21314 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21317 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
21320 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21321 * config.in: Regenerate.
21322 * configure: Likewise.
21324 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21326 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21328 (intersect_static_var_sets): Remove.
21329 (propagate): Do not prune local statics.
21331 2014-06-10 Jakub Jelinek <jakub@redhat.com>
21334 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21335 Set lastprivate_firstprivate even if omp_private_outer_ref
21336 langhook returns true.
21337 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21338 langhook, call unshare_expr on new_var and call
21339 build_outer_var_ref to get the last argument.
21341 2014-06-10 Marek Polacek <polacek@redhat.com>
21344 * doc/extend.texi: Add cindex for transparent_union.
21346 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
21348 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21349 init_symbolic_number ().
21351 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
21353 PR middle-end/61141
21354 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21355 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21356 (verify_rtl_sharing): Likewise.
21358 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
21361 * tree.c (build_qualified_type): Use a canonical type for
21364 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21366 * config/arm/arm-modes.def: Remove XFmode.
21368 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
21371 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21372 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21373 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21374 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21375 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21376 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21377 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21378 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21379 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21381 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
21383 * tree-core.h (tree_decl_with_vis): Remove section_name.
21385 2014-06-09 Kito Cheng <kito@0xlab.org>
21387 * ira.c (ira): Don't call init_caller_save if LRA enabled
21388 since LRA use its own infrastructure to handle that.
21390 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21392 * symtab.c (dump_symtab_base): Update dumping.
21393 (symtab_make_decl_local): Clear only DECL_COMDAT.
21394 * tree-vect-data-refs.c (Check that variable is static before
21395 tampering with sections.
21396 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21397 (cgraph_create_virtual_clone): Likewise.
21398 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21399 (decl_section_name, set_decl_section_name): New accessors.
21400 (find_decls_types_r): Do not walk section name
21401 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21402 (decl_comdat_group, decl_comdat_group_id): Constify.
21403 (decl_section_name, set_decl_section_name): Update.
21404 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21405 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21406 (cgraph_make_node_local_1): Clear section and comdat group.
21407 * cgraph.h (set_comdat_group): Sanity check.
21408 (get_section, set_section): New.
21409 * ipa-comdats.c (ipa_comdats): Use get_section.
21410 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
21411 * lto-streamer-out.c: Do not follow section names.
21412 * c-family/c-common.c (handle_section_attribute): Update.
21413 * lto-cgraph.c (lto_output_node): Output section.
21414 (lto_output_varpool_node): Likewise.
21415 (read_comdat_group): Rename to ...
21416 (read_identifier): ... this one.
21417 (read_string_cst): New function.
21418 (input_node, input_varpool_node): Input section names.
21419 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21420 (new_emutls_decl): Update.
21421 (secname_for_decl): Check section names only of static vars.
21422 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
21423 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
21424 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21425 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21426 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
21427 * config/mcore/mcore.c (mcore_unique_section): Likewise.
21428 * config/mips/mips.c (mips16_build_function_stub): Likewise.
21429 * config/v850/v850.c (v850_insert_attributes): Likewise.
21430 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21432 (h8300_handle_tiny_data_attribute): Likewise.
21433 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21434 (bfin_handle_l2_attribute): Likewise.
21436 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21438 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21439 remove static initializer.
21441 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21443 * varasm.c (use_blocks_for_decl_p): Check symbol table
21444 instead of alias attribute.
21445 (place_block_symbol): Recurse on aliases.
21447 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21449 * ipa-visibility.c: Include varasm.h
21450 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21452 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21454 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21455 outputting aliases.
21457 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
21459 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
21460 from test_insn into GGC space escape via SET_SRC.
21462 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
21464 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
21465 call statement, if any.
21466 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
21467 statements, if any. Tidy up.
21469 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21472 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
21473 iterators, VSX_D that handles 64-bit types, and VSX_LE that
21474 handles swapping the two 64-bit double words on little endian
21475 systems. Include V1TImode and optionally TImode in VSX_LE so that
21476 these types are properly swapped. Change all of the insns and
21477 splits that do the 64-bit swaps to use VSX_LE.
21478 (vsx_le_perm_load_<mode>): Likewise.
21479 (vsx_le_perm_store_<mode>): Likewise.
21480 (splitters for little endian memory operations): Likewise.
21481 (vsx_xxpermdi2_le_<mode>): Likewise.
21482 (vsx_lxvd2x2_le_<mode>): Likewise.
21483 (vsx_stxvd2x2_le_<mode>): Likewise.
21485 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
21488 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
21489 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
21490 and corresponding splitters. Zero extend general register
21491 or memory input operand to XMM temporary. Enable for
21492 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
21493 (floatunssi<mode>2): Update expander predicate.
21495 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
21497 PR rtl-optimization/61325
21498 * lra-constraints.c (process_address_1): Check scale equal to one
21499 to prevent transformation: base + scale * index => base + new_reg.
21501 2014-06-06 Richard Biener <rguenther@suse.de>
21503 PR tree-optimization/59299
21504 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
21506 (nearest_common_dominator_of_uses): Likewise.
21507 (statement_sink_location): Adjust. Support sinking loads.
21509 2014-06-06 Martin Jambor <mjambor@suse.cz>
21511 * ipa-prop.c (get_place_in_agg_contents_list): New function.
21512 (build_agg_jump_func_from_list): Likewise.
21513 (determine_known_aggregate_parts): Renamed to
21514 determine_locally_known_aggregate_parts. Moved some functionality
21515 to the two functions above, removed bound checks.
21517 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
21519 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
21520 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
21521 (aarch64_progress_pointer): Likewise.
21522 (aarch64_copy_one_part_and_move_pointers): Likewise.
21523 (aarch64_expand_movmen): Likewise.
21524 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
21525 * config/aarch64/aarch64.md (movmem<mode>): New.
21527 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
21529 * targhooks.c (default_add_stmt_cost): Call target specific
21530 hook instead of default one.
21532 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
21534 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
21535 endianness instead of host endianness.
21536 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
21539 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21542 * function.c (instantiate_decls): Process the saved static chain.
21543 (expand_function_start): If not optimizing, save the static chain
21545 * tree-nested.c (convert_all_function_calls): Always create the static
21546 chain for nested functions if not optimizing.
21548 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21550 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
21552 2014-06-06 Richard Biener <rguenther@suse.de>
21554 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
21555 (construct_init_block): Likewise.
21556 (construct_exit_block): Likewise.
21557 (pass_expand::execute): Likewise.
21558 * graphite.c (graphite_transforms): Replace check for current_loops
21559 with a check for > 1 loops.
21560 (pass_graphite_transforms::execute): Adjust.
21561 * ipa-split.c (split_function): Remove check for current_loops.
21562 * omp-low.c (expand_parallel_call): Likewise.
21563 (expand_omp_for_init_counts): Likewise.
21564 (extract_omp_for_update_vars): Likewise.
21565 (expand_omp_for_generic): Likewise.
21566 (expand_omp_sections): Likewise.
21567 (expand_omp_target): Likewise.
21568 * tracer.c (tail_duplicate): Likewise.
21569 (pass_tracer::execute): Likewise.
21570 * trans-mem.c (expand_transaction): Likewise.
21571 * tree-complex.c (expand_complex_div_wide): Likewise.
21572 * tree-eh.c (lower_resx): Likewise.
21573 (cleanup_empty_eh_merge_phis): Likewise.
21574 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
21575 current_loops with a check for > 1 loops.
21576 (pass_predcom::execute): Adjust.
21577 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
21578 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
21579 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
21580 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
21581 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
21582 * tree-switch-conversion.c (process_switch): Likewise.
21583 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
21584 * tree-vrp.c (vrp_visit_phi_node): Likewise.
21585 (execute_vrp): Likewise.
21586 * ubsan.c (ubsan_expand_null_ifn): Likewise.
21588 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21590 * rtl.h (insn_location): Declare.
21591 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
21592 with UNKNOWN_LOCATION.
21593 * emit-rtl.c (insn_location): New function.
21594 * final.c (notice_source_line): Check that the instruction has a
21595 location before retrieving it and use insn_location.
21596 * modulo-sched.c (loop_single_full_bb_p): Likewise.
21597 * print-rtl.c (print_rtx): Likewise.
21599 2014-06-06 Richard Biener <rguenther@suse.de>
21601 * passes.def: Move 2nd VRP pass before phi-only-cprop.
21603 2014-06-06 Christian Bruel <christian.bruel@st.com>
21605 PR tree-optimization/43934
21606 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
21609 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
21611 * ira-lives.c (single_reg_class): Add missing break. Explicitly
21612 return NO_REGS for extra address and memory constraints. Handle
21613 operands that match (or are equivalent to something that matches)
21614 extra constant constraints. Ignore other non-register operands.
21616 2014-06-06 Alan Modra <amodra@gmail.com>
21619 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
21620 * doc/tm.texi: Regenerate.
21621 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
21622 Use throughout in place of REG_PARM_STACK_SPACE.
21623 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
21624 "incoming" param. Pass to rs6000_function_parms_need_stack.
21625 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
21626 prototype_p when incoming. Use function decl when incoming
21627 to handle K&R style functions.
21628 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
21629 (INCOMING_REG_PARM_STACK_SPACE): Define.
21631 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21634 * cfgexpand.c (expand_debug_expr): Use address space of nested
21635 TREE_TYPE for ADDR_EXPR and MEM_REF.
21637 2014-06-05 Jeff Law <law@redhat.com>
21639 PR tree-optimization/61289
21640 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
21641 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
21642 looking for those which match LHS. All callers changed.
21643 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
21644 parameters and code which manipulated them. All callers changed.
21645 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
21646 and DST_MAP parameters. Simplify invalidation code by just calling
21647 invalidate_equivalences. All callers changed.
21648 (thread_across_edge): Simplify now that we don't need to maintain
21649 the map of equivalences to invalidate.
21651 2014-06-05 Kai Tietz <ktietz@redhat.com>
21652 Richard Henderson <rth@redhat.com>
21655 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
21656 checking for !TARGET_X32.
21657 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
21658 (sibcall_intern): New define_insn, plus required peepholes.
21659 (sibcall_pop_intern): Likewise.
21660 (sibcall_value_intern): Likewise.
21661 (sibcall_value_pop_intern): Likewise.
21663 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
21665 * tree-inline.c (tree_function_versioning): Check DF info existence
21666 before accessing it.
21668 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21670 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
21672 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
21673 aarch64_frame hard_fp_offset and frame_size.
21674 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
21675 frame_size; remove original_frame_size.
21676 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
21677 (aarch64_initial_elimination_offset): Remove frame_size and
21678 offset. Use aarch64_frame frame_size.
21680 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21681 Jiong Wang <jiong.wang@arm.com>
21682 Renlin <renlin.li@arm.com>
21684 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
21685 initialization of R30 offset. Update offset. Iterate core
21686 regisers upto X30. Remove X29, X30 specific code.
21688 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21689 Jiong Wang <jiong.wang@arm.com>
21691 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
21692 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
21693 (aarch64_register_saved_on_entry): Adjust test.
21695 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21697 * config/aarch64/aarch64.h (machine_function): Move
21698 saved_varargs_size from here...
21699 (aarch64_frame): ... to here.
21701 * config/aarch64/aarch64.c (aarch64_expand_prologue)
21702 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
21703 (aarch64_initial_elimination_offset)
21704 (aarch64_setup_incoming_varargs): Adjust location of
21705 saved_varargs_size.
21707 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21709 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
21712 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
21713 Prachi Godbole <Prachi.Godbole@imgtec.com>
21715 * config/mips/mips-cpus.def: Add definition for p5600. Updated
21716 mips32r5 entry to use PROCESSOR_P5600.
21717 * config/mips/mips-tables.opt: Regenerate.
21718 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
21719 * config/mips/mips.c (mips_fmadd_bypass): New function.
21720 (mips_rtx_cost_data): Add costs for p5600.
21721 (mips_issue_rate): Add support for p5600.
21722 (mips_multipass_dfa_lookahead): Likewise.
21723 * config/mips/mips.h (TUNE_P5600): New define.
21724 (TUNE_MACC_CHAINS): Add TUNE_P5600.
21725 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
21726 * config/mips/mips.md: Include p5600.md.
21727 (processor): Add p5600.
21728 * config/mips/p5600.md: New file.
21730 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
21732 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
21733 * config/i386/predicates.md (palignr_operand): New.
21734 Indicates if permutation is suitable for palignr instruction.
21736 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
21738 PR tree-optimization/61319
21739 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21740 stmt belongs to loop.
21742 2014-06-05 Richard Biener <rguenther@suse.de>
21744 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
21745 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
21746 (lookup_tmp_var): Adjust.
21747 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
21749 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21751 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
21753 2014-06-05 Marek Polacek <polacek@redhat.com>
21756 * doc/invoke.texi: Document -Wlogical-not-parentheses.
21758 2014-06-04 Tom de Vries <tom@codesourcery.com>
21760 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
21763 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
21765 PR tree-optimization/61385
21766 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
21768 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
21770 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
21771 changed to use fatal_error.
21772 (main): Ensure lto_wrapper_cleanup is run atexit.
21774 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21776 * lra-constraints.c (valid_address_p): Move earlier in file.
21777 (address_eliminator): New structure.
21778 (satisfies_memory_constraint_p): New function.
21779 (satisfies_address_constraint_p): Likewise.
21780 (process_alt_operands, process_address, curr_insn_transform): Use them.
21782 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21784 * lra-int.h (lra_static_insn_data): Make operand_alternative a
21786 (target_lra_int, default_target_lra_int, this_target_lra_int)
21787 (op_alt_data): Delete.
21788 * lra.h (lra_init): Delete.
21789 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
21790 (init_insn_code_data_once): Remove op_alt_data handling.
21791 (finish_insn_code_data_once): Likewise.
21792 (init_op_alt_data): Delete.
21793 (get_static_insn_data): Initialize operand_alternative to null.
21794 (free_insn_recog_data): Cast operand_alternative before freeing it.
21795 (setup_operand_alternative): Take the operand_alternative as
21796 parameter and assume it isn't already cached in the static
21798 (lra_set_insn_recog_data): Update accordingly.
21799 (lra_init): Delete.
21800 * ira.c (ira_init): Don't call lra_init.
21801 * target-globals.h (this_target_lra_int): Declare.
21802 (target_globals): Remove lra_int.
21803 (restore_target_globals): Update accordingly.
21804 * target-globals.c: Don't include lra-int.h.
21805 (default_target_globals, save_target_globals): Remove lra_int.
21807 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21809 * recog.h (operand_alternative): Convert reg_class, reject,
21810 matched and matches into bitfields.
21811 (preprocess_constraints): New overload.
21812 (preprocess_insn_constraints): New function.
21813 (preprocess_constraints): Take the insn as parameter.
21814 (recog_op_alt): Change into a pointer.
21815 (target_recog): Add x_op_alt.
21816 * recog.c (asm_op_alt): New variable.
21817 (recog_op_alt): Change into a pointer.
21818 (preprocess_constraints): New overload, replacing the old function
21819 definition with one that doesn't use global state.
21820 (preprocess_insn_constraints): New function.
21821 (preprocess_constraints): Use them. Take the insn as parameter.
21822 Use asm_op_alt for asms.
21823 (recog_init): Free existing x_op_alt entries.
21824 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
21826 (make_early_clobber_and_input_conflicts): Likewise.
21827 (process_bb_node_lives): Pass the insn to process_constraints.
21828 * reg-stack.c (check_asm_stack_operands): Likewise.
21829 (subst_asm_stack_regs): Likewise.
21830 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
21831 * regrename.c (build_def_use): Likewise.
21832 * sched-deps.c (sched_analyze_insn): Likewise.
21833 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
21834 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
21835 (note_invalid_constants): Likewise.
21836 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21837 (ix86_legitimate_combined_insn): Make operand_alternative pointer
21840 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21842 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
21843 * ira-lives.c (check_and_make_def_conflict): Check for disabled
21845 (make_early_clobber_and_input_conflicts): Likewise.
21846 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21848 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21850 * recog.h (alternative_class): New function.
21851 (which_op_alt): Return a const recog_op_alt.
21852 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
21853 (subst_asm_stack_regs): Likewise.
21854 * config/arm/arm.c (note_invalid_constants): Likewise.
21855 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
21856 the operand_alternative; use alternative class instead.
21857 * sel-sched.c (get_reg_class): Likewise.
21858 * regrename.c (build_def_use): Likewise.
21859 (hide_operands, restore_operands, record_out_operands): Update type
21862 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21864 * recog.h (recog_op_alt): Convert to a flat array.
21865 (which_op_alt): New function.
21866 * recog.c (recog_op_alt): Convert to a flat array.
21867 (preprocess_constraints): Update accordingly, grouping all
21868 operands of the same alternative together, rather than the
21870 * ira-lives.c (check_and_make_def_conflict): Likewise.
21871 (make_early_clobber_and_input_conflicts): Likewise.
21872 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21873 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
21874 (subst_asm_stack_regs): Likewise.
21875 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
21876 * regrename.c (hide_operands, record_out_operands): Likewise.
21877 (build_def_use): Likewise.
21878 * sel-sched.c (get_reg_class): Likewise.
21879 * config/arm/arm.c (note_invalid_constants): Likewise.
21881 2014-06-04 Jason Merrill <jason@redhat.com>
21885 * gimplify.c (gimplify_arg): Non-static.
21886 * gimplify.h: Declare it.
21888 2014-06-04 Richard Biener <rguenther@suse.de>
21890 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21891 TREE_PUBLIC and DECL_EXTERNAL decls.
21893 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
21895 * regcprop.c (copyprop_hardreg_forward_1): Account for
21896 HARD_REGNO_CALL_PART_CLOBBERED.
21898 2014-06-04 Richard Biener <rguenther@suse.de>
21900 * configure.ac: Check whether the underlying type of int64_t
21901 is long or long long.
21902 * configure: Regenerate.
21903 * config.in: Likewise.
21904 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
21905 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
21907 2014-06-04 Richard Biener <rguenther@suse.de>
21909 PR tree-optimization/60098
21910 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
21912 (dse_optimize_stmt): Simplify, now that we found a kill
21915 2014-06-04 Richard Biener <rguenther@suse.de>
21917 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
21918 of accesses with non-invariant address.
21920 2014-06-04 Martin Liska <mliska@suse.cz>
21922 * cgraph.h (cgraph_make_wrapper): New function introduced.
21923 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
21924 * ipa-inline.h (inline_analyze_function): The function is global.
21925 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
21927 2014-06-04 Martin Liska <mliska@suse.cz>
21929 * tree.h (private_lookup_attribute_starting): New function.
21930 (lookup_attribute_starting): Likewise.
21931 * tree.c (private_lookup_attribute_starting): Likewise.
21933 2014-06-04 Martin Liska <mliska@suse.cz>
21935 * cgraph.h (expand_thunk): New argument added.
21936 (address_taken_from_non_vtable_p): New global function.
21937 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
21938 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
21939 * cgraphunit.c (analyze_function): Likewise.
21940 (assemble_thunks_and_aliases): Argument added to call.
21941 (expand_thunk): New argument forces to produce GIMPLE thunk.
21943 2014-06-04 Martin Liska <mliska@suse.cz>
21945 * coverage.h (coverage_compute_cfg_checksum): Argument added.
21946 * coverage.c (coverage_compute_cfg_checksum): Likewise.
21947 * profile.c (branch_prob): Likewise.
21949 2014-06-04 Martin Jambor <mjambor@suse.cz>
21952 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
21953 handler for switch on an ipa_ref_use enum.
21954 * ipa-reference.c (analyze_function): Likewise.
21956 2014-06-04 Kai Tietz <ktietz@redhat.com>
21958 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
21959 from old call-instruction.
21961 2014-06-04 Bin Cheng <bin.cheng@arm.com>
21963 * config/aarch64/aarch64.c (aarch64_classify_address)
21964 (aarch64_legitimize_reload_address): Support full addressing modes
21966 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
21967 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
21969 2014-06-03 Andrew Pinski <apinski@cavium.com>
21971 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
21974 2014-06-03 Andrew Pinski <apinski@cavium.com>
21976 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
21977 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
21979 2014-06-03 Kai Tietz <ktietz@redhat.com>
21981 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
21984 2014-06-03 Dehao Chen <dehao@google.com>
21986 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
21989 2014-06-03 Marek Polacek <polacek@redhat.com>
21992 * doc/invoke.texi: Document -Wswitch-bool.
21993 * function.c (stack_protect_epilogue): Cast controlling expression of
21995 * gengtype.c (walk_type): Generate switch expression with its
21996 controlling expression cast to int.
21998 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
22000 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22002 * config/avr/avr-tables.opt: Regenerate.
22003 * config/avr/t-multilib: Regenerate.
22004 * doc/avr-mmcu.texi: Regenerate.
22006 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
22007 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22009 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22010 (ata6617c, ata664251): Add new avr35 devices.
22011 (ata6612c): Add new avr4 device.
22012 (ata6613c, ata6614q): Add new avr5 devices.
22013 * config/avr/avr-tables.opt: Regenerate.
22014 * config/avr/t-multilib: Regenerate.
22015 * doc/avr-mmcu.texi: Regenerate.
22017 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22019 * gcc/config/aarch64/aarch64-builtins.c
22020 (aarch64_types_binop_ssu_qualifiers): New static data.
22021 (TYPES_BINOP_SSU): Define.
22022 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22023 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22024 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22025 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22026 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22027 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22028 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22029 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22030 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22031 suffix to builtin function name, remove cast.
22032 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22033 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22034 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22036 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22038 * gcc/config/aarch64/aarch64-builtins.c
22039 (aarch64_types_binop_uus_qualifiers,
22040 aarch64_types_shift_to_unsigned_qualifiers,
22041 aarch64_types_unsigned_shiftacc_qualifiers): Define.
22042 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22043 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22044 sqshlu_n, uqshl_n): Update qualifiers.
22045 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22046 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22047 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22048 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22049 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22050 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22051 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22052 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22053 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22054 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22055 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22056 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22057 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22058 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22059 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22060 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22061 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22062 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22063 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
22064 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
22065 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
22066 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
22067 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
22068 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
22069 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
22070 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
22071 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
22073 2014-06-03 Teresa Johnson <tejohnson@google.com>
22075 * tree-sra.c (modify_function): Record caller nodes after rebuild.
22077 2014-06-02 Jason Merrill <jason@redhat.com>
22080 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
22082 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22084 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
22087 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22089 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
22091 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
22092 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
22093 * config/aarch64/iterators.md (REVERSE): New iterator.
22094 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
22095 (rev_op): New int_attribute.
22096 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
22097 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
22098 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
22099 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
22100 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
22101 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
22102 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
22103 Replace temporary __asm__ with __builtin_shuffle.
22105 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22107 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
22109 * config/mips/mips-tables.opt: Regenerate.
22110 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
22111 to use mips_isa_rev rather than ISA_MIPS32R2.
22112 * config/mips/mips.h (ISA_MIPS32R3): New define.
22113 (ISA_MIPS32R5): New define.
22114 (ISA_MIPS64R3): New define.
22115 (ISA_MIPS64R5): New define.
22116 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
22117 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
22118 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
22120 (MIPS_ISA_SYNCI_SPEC): Likewise.
22121 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
22122 (LINK_SPEC): Added mips32r3 and mips32r5.
22123 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
22124 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
22125 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
22126 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
22127 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
22128 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
22129 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
22131 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22133 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
22135 * config/mips/mips.opt (mxpa): New option.
22136 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
22139 2014-06-03 Martin Jambor <mjambor@suse.cz>
22142 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
22145 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
22147 PR tree-optimization/61328
22148 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
22149 initialization from find_bswap_or_nop_1.
22150 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
22151 in source_expr2 before using the size value the function sets. Also
22152 make use of init_symbolic_number () in both the old place and
22153 find_bswap_or_nop_load () to avoid reading uninitialized memory when
22154 doing recursion in the GIMPLE_BINARY_RHS case.
22156 2014-06-03 Richard Biener <rguenther@suse.de>
22158 PR tree-optimization/61383
22159 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
22162 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
22164 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
22165 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
22166 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
22167 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
22169 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
22170 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
22171 * system.h: ...here and make it unconditional.
22172 * target.def (conditional_register_usage): Mention
22173 define_register_constraint instead of old-style constraint macros.
22174 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
22175 * doc/tm.texi: Regenerate.
22176 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
22177 protected by !USE_MD_CONSTRAINTS.
22178 * config/frv/frv.md: Remove quote from old version of documentation.
22179 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
22180 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
22181 CONST_DOUBLE_OK_FOR_LETTER.
22182 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
22184 2014-06-02 Andrew Pinski <apinski@cavium.com>
22186 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
22187 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
22188 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
22189 file whose name depends on -mabi= and -mbig-endian.
22190 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
22191 Handle LP64 better and handle ilp32 too.
22192 (MULTILIB_OPTIONS): Delete.
22193 (MULTILIB_DIRNAMES): Delete.
22195 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
22197 * expr.h: Remove prototypes of functions defined in builtins.c.
22198 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
22199 Remove prototypes of functions defined in builtins.c.
22200 * builtins.h: Update prototype list to include all exported functions.
22201 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
22202 no_c99_libc_has_function): Move to targhooks.c
22203 (build_string_literal, build_call_expr_loc_array,
22204 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
22206 (expand_builtin_object_size, fold_builtin_object_size): Make static.
22207 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
22208 no_c99_libc_has_function): Relocate from builtins.c.
22209 * tree.c: Include builtins.h.
22210 (build_call_expr_loc_array, build_call_expr_loc_vec,
22211 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
22213 * fold-const.h (fold_fma): Move prototype to builtins.h.
22214 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
22215 * asan.c: Include builtins.h.
22216 * cfgexpand.c: Likewise.
22217 * convert.c: Likewise.
22218 * emit-rtl.c: Likewise.
22219 * except.c: Likewise.
22220 * expr.c: Likewise.
22221 * fold-const.c: Likewise.
22222 * gimple-fold.c: Likewise.
22223 * gimple-ssa-strength-reduction.c: Likewise.
22224 * gimplify.c: Likewise.
22225 * ipa-inline.c: Likewise.
22226 * ipa-prop.c: Likewise.
22227 * lto-streamer-out.c: Likewise.
22228 * stmt.c: Likewise.
22229 * tree-inline.c: Likewise.
22230 * tree-object-size.c: Likewise.
22231 * tree-sra.c: Likewise.
22232 * tree-ssa-ccp.c: Likewise.
22233 * tree-ssa-forwprop.c: Likewise.
22234 * tree-ssa-loop-ivcanon.c: Likewise.
22235 * tree-ssa-loop-ivopts.c: Likewise.
22236 * tree-ssa-math-opts.c: Likewise.
22237 * tree-ssa-reassoc.c: Likewise.
22238 * tree-ssa-threadedge.c: Likewise.
22239 * tree-streamer-in.c: Likewise.
22240 * tree-vect-data-refs.c: Likewise.
22241 * tree-vect-patterns.c: Likewise.
22242 * tree-vect-stmts.c: Likewise.
22243 * config/aarch64/aarch64.c: Likewise.
22244 * config/alpha/alpha.c: Likewise.
22245 * config/arc/arc.c: Likewise.
22246 * config/arm/arm.c: Likewise.
22247 * config/avr/avr.c: Likewise.
22248 * config/bfin/bfin.c: Likewise.
22249 * config/c6x/c6x.c: Likewise.
22250 * config/cr16/cr16.c: Likewise.
22251 * config/cris/cris.c: Likewise.
22252 * config/epiphany/epiphany.c: Likewise.
22253 * config/fr30/fr30.c: Likewise.
22254 * config/frv/frv.c: Likewise.
22255 * config/h8300/h8300.c: Likewise.
22256 * config/i386/i386.c: Likewise.
22257 * config/i386/winnt.c: Likewise.
22258 * config/ia64/ia64.c: Likewise.
22259 * config/iq2000/iq2000.c: Likewise.
22260 * config/lm32/lm32.c: Likewise.
22261 * config/m32c/m32c.c: Likewise.
22262 * config/m32r/m32r.c: Likewise.
22263 * config/m68k/m68k.c: Likewise.
22264 * config/mcore/mcore.c: Likewise.
22265 * config/mep/mep.c: Likewise.
22266 * config/microblaze/microblaze.c: Likewise.
22267 * config/mips/mips.c: Likewise.
22268 * config/mmix/mmix.c: Likewise.
22269 * config/mn10300/mn10300.c: Likewise.
22270 * config/moxie/moxie.c: Likewise.
22271 * config/msp430/msp430.c: Likewise.
22272 * config/nds32/nds32.c: Likewise.
22273 * config/pa/pa.c: Likewise.
22274 * config/pdp11/pdp11.c: Likewise.
22275 * config/picochip/picochip.c: Likewise.
22276 * config/rl78/rl78.c: Likewise.
22277 * config/rs6000/rs6000.c: Likewise.
22278 * config/rx/rx.c: Likewise.
22279 * config/s390/s390.c: Likewise.
22280 * config/score/score.c: Likewise.
22281 * config/sh/sh.c: Likewise.
22282 * config/sparc/sparc.c: Likewise.
22283 * config/spu/spu.c: Likewise.
22284 * config/stormy16/stormy16.c: Likewise.
22285 * config/tilegx/tilegx.c: Likewise.
22286 * config/tilepro/tilepro.c: Likewise.
22287 * config/v850/v850.c: Likewise.
22288 * config/vax/vax.c: Likewise.
22289 * config/xtensa/xtensa.c: Likewise.
22291 2014-06-02 Jeff Law <law@redhat.com>
22293 PR rtl-optimization/61094
22294 * ree.c (combine_reaching_defs): Do not reextend an insn if it
22295 was marked as do_no_reextend. If a copy is needed to eliminate
22296 an extension, then mark it as do_not_reextend.
22298 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
22300 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
22302 2014-06-02 Richard Henderson <rth@redhat.com>
22305 * config/alpha/alpha.c (print_operand_address): Allow symbolic
22306 addresses inside asms. Use output_operand_lossage instead of
22309 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
22312 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22313 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22315 2014-06-02 Tom de Vries <tom@codesourcery.com>
22317 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22318 case that x has VOIDmode.
22320 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
22322 * varasm.c (copy_constant): Delete function.
22323 (build_constant_desc): Don't call it.
22325 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22328 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22329 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22330 with immediate_operand.
22332 2014-06-02 Andreas Schwab <schwab@suse.de>
22334 * config/ia64/ia64.c
22335 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22336 pending_data_specs first.
22338 2014-06-02 Richard Biener <rguenther@suse.de>
22340 PR tree-optimization/61378
22341 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22342 valueized_anything.
22344 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
22346 * config/i386/constraints.md (Bw): Rename from 'w'.
22347 (Bz): Rename from 'z'.
22348 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22350 2014-06-01 Kai Tietz <ktietz@redhat.com>
22353 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22354 * config/i386/i386.md (sibcall_insn_operand): Use Bs
22355 instead of m constraint.
22357 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
22359 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22360 a separate alternative where the scratch operand 2 is marked as
22363 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
22365 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22366 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22367 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22368 and __builtins_arm_get_fpscr.
22369 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22370 __builtins_arm_get_fpscr.
22371 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22372 __builtins_arm_ldfpscr.
22373 (arm_atomic_assign_expand_fenv): New function.
22374 * config/arm/vfp.md (set_fpscr): New pattern.
22375 (get_fpscr) : Likewise.
22376 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22378 * doc/extend.texi (AARCH64 Built-in Functions) : Document
22379 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22381 2014-05-30 Jakub Jelinek <jakub@redhat.com>
22383 * asan.c (report_error_func): Add SLOW_P argument, use
22384 BUILT_IN_ASAN_*_N if set.
22385 (build_check_stmt): Likewise.
22386 (instrument_derefs): If T has insufficient alignment,
22387 force same handling as for odd sizes.
22389 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22390 BUILT_IN_ASAN_REPORT_STORE_N): New.
22391 * asan.c (struct asan_mem_ref): Change access_size type to
22393 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22394 update_mem_ref_hash_table): Likewise.
22395 (asan_mem_ref_hasher::hash): Hash in a HWI.
22396 (report_error_func): Change size_in_bytes argument to HWI.
22397 Use *_N builtins if size_in_bytes is larger than 16 or not power of
22399 (build_shadow_mem_access): New function.
22400 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
22401 Handle size_in_bytes not power of two or larger than 16.
22402 (instrument_derefs): Don't give up if size_in_bytes is not
22403 power of two or is larger than 16.
22405 2014-05-30 Kai Tietz <ktietz@redhat.com>
22408 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
22409 for sibling-tail-calls.
22410 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
22412 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
22413 (sibcall_insn_operand): Add check for sibcall_memory_operand.
22415 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22417 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
22418 * config/avr/avr-tables.opt: Regenerate.
22419 * config/avr/t-multilib: Regenerate.
22420 * doc/avr-mmcu.texi: Regenerate.
22422 2014-05-30 Ian Lance Taylor <iant@google.com>
22424 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
22427 2014-05-30 Tom de Vries <tom@codesourcery.com>
22429 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22432 2014-05-30 Tom de Vries <tom@codesourcery.com>
22434 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22435 * lra.c (initialize_lra_reg_info_element): Add init of
22436 actual_call_used_reg_set field.
22437 (lra): Call lra_create_live_ranges before lra_inheritance for
22439 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22441 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22442 instead of call_used_reg_set for -fuse-caller-save.
22443 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22445 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22447 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22449 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22451 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
22453 * ira.c (ira_get_dup_out_num): Check for output operands at
22454 the start of the loop. Handle cases where an included alternative
22455 follows an excluded one.
22457 2014-05-29 Mike Stump <mikestump@comcast.net>
22460 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
22461 post ld passes when lto is used.
22463 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
22465 PR rtl-optimization/61325
22466 * lra-constraints.c (process_address): Rename to process_address_1.
22467 (process_address): New function.
22469 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
22471 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
22472 TYPES_BINOPV): New static data.
22473 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
22475 * config/aarch64/aarch64-simd.md (aarch64_ext,
22476 aarch64_im_lane_boundsi): New patterns.
22477 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
22479 (aarch64_evpc_ext): New function.
22481 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
22483 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
22484 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
22485 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
22486 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
22487 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
22489 2014-05-29 Tom de Vries <tom@codesourcery.com>
22491 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
22493 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
22494 Richard Sandiford <rdsandiford@googlemail.com>
22496 * arm/iterators.md (shiftable_ops): New code iterator.
22497 (t2_binop0, arith_shift_insn): New code attributes.
22498 * arm/predicates.md (shift_nomul_operator): New predicate.
22499 * arm/arm.md (insn_enabled): Delete.
22500 (enabled): Remove insn_enabled test.
22501 (*arith_shiftsi): Delete. Replace with ...
22502 (*<arith_shift_insn>_multsi): ... new pattern.
22503 (*<arith_shift_insn>_shiftsi): ... new pattern.
22504 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
22506 2014-05-29 Radovan Obradovic <robradovic@mips.com>
22507 Tom de Vries <tom@codesourcery.com>
22509 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
22510 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
22512 (mips_split_call): Use POST_CALL_TMP_REG.
22513 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
22515 2014-05-29 Tom de Vries <tom@codesourcery.com>
22517 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
22518 with #ifdef STACK_REGS.
22520 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
22522 * varasm.c (get_variable_section): Walk aliases.
22523 (place_block_symbol): Walk aliases.
22525 2014-05-28 Tom de Vries <tom@codesourcery.com>
22528 2014-05-28 Tom de Vries <tom@codesourcery.com>
22530 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22531 * lra.c (initialize_lra_reg_info_element): Add init of
22532 actual_call_used_reg_set field.
22533 (lra): Call lra_create_live_ranges before lra_inheritance for
22535 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22537 * lra-constraints.c (need_for_call_save_p): Use
22538 actual_call_used_reg_set instead of call_used_reg_set for
22540 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22542 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22544 * doc/md.texi: Document that the % constraint character must
22545 be at the beginning of the string.
22546 * genoutput.c (validate_insn_alternatives): Check that '=',
22547 '+' and '%' only appear at the beginning of a constraint.
22548 * ira.c (commutative_constraint_p): Delete.
22549 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
22550 at the start of the string.
22551 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
22553 * config/arm/neon.md (bicdi3_neon): Likewise.
22554 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
22555 (slt_si, sltu_si): Likewise.
22556 * config/vax/vax.md (sbcdi3): Likewise.
22557 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
22558 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
22559 (mul64): Move '%' to beginning of constraint.
22560 * config/arm/arm.md (*xordi3_insn): Likewise.
22561 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
22562 (xorsi3): Likewise.
22564 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22566 * doc/md.texi: Document the restrictions on the "enabled" attribute.
22568 2014-05-28 Jason Merrill <jason@redhat.com>
22571 * cgraph.h (symtab_node::get_comdat_group_id): New.
22572 * cgraphunit.c (analyze_functions): Call it.
22573 * symtab.c (dump_symtab_node): Likewise.
22574 * tree.c (decl_comdat_group_id): New.
22575 * tree.h: Declare it.
22576 * lto-streamer-out.c (write_symbol): Use it.
22577 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
22579 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
22581 PR bootstrap/PR61146
22582 * wide-int.cc: Do not include longlong.h when compiling with clang.
22584 2014-05-28 Richard Biener <rguenther@suse.de>
22586 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
22587 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
22588 (vrp_visit_assignment_or_call): Print less vertical space.
22589 (vrp_visit_stmt): Likewise.
22590 (vrp_visit_phi_node): Likewise. For a PHI argument with
22591 VR_VARYING range consider recording it as copy.
22593 2014-05-28 Richard Biener <rguenther@suse.de>
22596 2014-05-28 Richard Biener <rguenther@suse.de>
22598 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22600 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
22602 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
22603 sufficiently aligned and an offset is used at the same time.
22604 (expand_expr_real_1): Likewise.
22606 2014-05-28 Richard Biener <rguenther@suse.de>
22608 PR middle-end/61045
22609 * fold-const.c (fold_comparison): When folding
22610 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
22611 the sign of the remaining constant operand stays the same.
22613 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
22615 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
22616 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
22617 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
22619 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
22620 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
22621 (m32bit-doubles) Likewise.
22622 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
22623 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
22626 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22628 * configure.ac ($gcc_cv_ld_clearcap): New test.
22629 * configure: Regenerate.
22630 * config.in: Regenerate.
22631 * config/sol2.opt (mclear-hwcap): New option.
22632 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
22633 * config/sol2-clearcap.map: Moved here from
22634 testsuite/gcc.target/i386/clearcap.map.
22635 * config/sol2-clearcapv2.map: Move here from
22636 gcc.target/i386/clearcapv2.map.
22637 * config/t-sol2 (install): Depend on install-clearcap-map.
22638 (install-clearcap-map): New target.
22639 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
22642 2014-05-28 Richard Biener <rguenther@suse.de>
22644 * hwint.h (*_HALF_WIDE_INT*): Move to ...
22645 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
22646 ... here and remove the rest.
22647 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22649 2014-05-28 Richard Biener <rguenther@suse.de>
22651 PR tree-optimization/61335
22652 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
22653 new range fails, drop to varying.
22655 2014-05-28 Olivier Hainque <hainque@adacore.com>
22657 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
22658 (CPP_SPEC): Add entry for -mcpu=8548.
22659 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
22660 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
22662 2014-05-28 Tom de Vries <tom@codesourcery.com>
22664 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22665 * lra.c (initialize_lra_reg_info_element): Add init of
22666 actual_call_used_reg_set field.
22667 (lra): Call lra_create_live_ranges before lra_inheritance for
22669 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22671 * lra-constraints.c (need_for_call_save_p): Use
22672 actual_call_used_reg_set instead of call_used_reg_set for
22674 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22676 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22677 Tom de Vries <tom@codesourcery.com>
22679 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
22681 (@item -fuse-caller-save): New item.
22683 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22684 Tom de Vries <tom@codesourcery.com>
22686 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
22687 OPT_fuse_caller_save.
22689 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22690 Tom de Vries <tom@codesourcery.com>
22692 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
22693 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
22694 get_call_reg_set_usage.
22695 * resource.c (mark_set_resources, mark_target_live_regs): Use
22696 get_call_reg_set_usage.
22697 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
22699 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
22700 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
22701 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22702 * ira-build.c (ira_create_allocno): Init
22703 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22704 (create_cap_allocno, propagate_allocno_info)
22705 (propagate_some_info_from_allocno)
22706 (copy_info_to_removed_store_destinations): Handle
22707 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22708 * ira-costs.c (ira_tune_allocno_costs): Use
22709 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
22711 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22712 Tom de Vries <tom@codesourcery.com>
22714 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
22715 and function_used_regs_valid fields.
22716 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
22717 find_all_hard_reg_sets.
22718 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
22719 (get_call_reg_set_usage): New function.
22720 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
22721 * regs.h (get_call_reg_set_usage): Declare.
22723 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
22726 * config/dbx.h (License): Add Runtime Library Exception.
22727 * config/newlib-stdint.h (License): Same.
22728 * config/rtems.h (License): Same
22729 * config/initfini-array.h (License): Same
22730 * config/v850/v850.h (License): Same.
22731 * config/v850/v850-opts.h (License): Same
22732 * config/v850/rtems.h (License): Same.
22734 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
22737 * doc/extend.texi (Local Labels): Note that label differences are
22738 not supported for AVR.
22740 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22741 Olivier Hainque <hainque@adacore.com>
22743 * rtl.h (set_for_reg_notes): Declare.
22744 * emit-rtl.c (set_for_reg_notes): New function.
22745 (set_unique_reg_note): Use it.
22746 * optabs.c (add_equal_note): Likewise
22748 2014-05-27 Andrew Pinski <apinski@cavium.com>
22750 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
22751 Use <w> for the register in assembly template.
22752 (stack_protect_test): Use the mode of operands[0] for the result.
22753 (stack_protect_test_<mode>): Use <w> for the register
22754 in assembly template.
22756 2014-05-27 DJ Delorie <dj@redhat.com>
22758 * config/rx/rx.c (add_vector_labels): New.
22759 (rx_output_function_prologue): Call it.
22760 (rx_handle_func_attribute): Don't require empty arguments.
22761 (rx_handle_vector_attribute): New.
22762 (rx_attribute_table): Add "vector" attribute.
22763 * doc/extend.texi (interrupt, vector): Document new/changed
22764 RX-specific attributes.
22766 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
22768 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
22770 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
22771 predicate to detect a negative quotient.
22773 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
22775 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
22776 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
22777 Add X - Y CMP 0 to X CMP Y transformation.
22778 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
22780 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
22782 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
22785 2014-05-27 Steve Ellcey <sellcey@mips.com>
22787 * config/mips/mips.c: Add include of cgraph.h.
22789 2014-05-27 Richard Biener <rguenther@suse.de>
22791 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
22793 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
22796 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
22797 * config/arm/arm-cores.def (License): Same.
22798 * config/arm/arm-opts.h (License): Same.
22799 * config/arm/aout.h (License): Same.
22800 * config/arm/bpabi.h (License): Same.
22801 * config/arm/elf.h (License): Same.
22802 * config/arm/linux-elf.h (License): Same.
22803 * config/arm/linux-gas.h (License): Same.
22804 * config/arm/netbsd-elf.h (License): Same.
22805 * config/arm/uclinux-eabi.h (License): Same.
22806 * config/arm/uclinux-elf.h (License): Same.
22807 * config/arm/vxworks.h (License): Same.
22809 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22811 * config/arm/neon.md (neon_bswap<mode>): New pattern.
22812 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
22813 (arm_init_neon_builtins): Handle NEON_BSWAP.
22814 Define required type nodes.
22815 (arm_expand_neon_builtin): Handle NEON_BSWAP.
22816 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
22817 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
22818 * config/arm/iterators.md (VDQHSD): New mode iterator.
22820 2014-05-27 Richard Biener <rguenther@suse.de>
22822 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
22823 Try using literal operands when comparing value-ranges failed.
22825 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
22827 * ira.c (commutative_operand): Adjust for change to recog_data.
22828 [Missing from previous commit.]
22830 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
22832 * system.h (TEST_BIT): New macro.
22833 * recog.h (alternative_mask): New type.
22834 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
22835 (recog_data_d): Replace alternative_enabled_p array with
22836 enabled_alternatives.
22837 (target_recog): New structure.
22838 (default_target_recog, this_target_recog): Declare.
22839 (get_enabled_alternatives, recog_init): Likewise.
22840 * recog.c (default_target_recog, this_target_recog): New variables.
22841 (get_enabled_alternatives): New function.
22842 (extract_insn): Use it.
22843 (recog_init): New function.
22844 (preprocess_constraints, constrain_operands): Adjust for change to
22846 * postreload.c (reload_cse_simplify_operands): Likewise.
22847 * reload.c (find_reloads): Likewise.
22848 * ira-costs.c (record_reg_classes): Likewise.
22849 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
22850 all alternatives after a disabled one would be skipped.
22851 (ira_implicitly_set_insn_hard_regs): Likewise.
22852 * ira.c (ira_setup_alts): Adjust for change to recog_data.
22853 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
22854 with enabled_alternatives.
22855 * lra.c (free_insn_recog_data): Update accordingly.
22856 (lra_update_insn_recog_data): Likewise.
22857 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
22858 * lra-constraints.c (process_alt_operands): Likewise. Handle
22859 only_alternative as part of the enabled mask.
22860 * target-globals.h (this_target_recog): Declare.
22861 (target_globals): Add a recog field.
22862 (restore_target_globals): Restore this_target_recog.
22863 * target-globals.c: Include recog.h.
22864 (default_target_globals): Initialize recog field.
22865 (save_target_globals): Likewise.
22866 * reginfo.c (reinit_regs): Call recog_init.
22867 * toplev.c (backend_init_target): Likewise.
22869 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
22871 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
22872 rather than any named insn's code.
22874 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
22877 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
22878 * config/arm/arm-cores.def (License): Same.
22880 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
22882 * tree.h (decl_comdat_group): Declare.
22883 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
22884 * tree.c (decl_comdat_group): Here.
22886 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
22888 PR rtl-optimization/61222
22889 * combine.c (simplify_shift_const_1): When moving a PLUS outside
22890 the shift, truncate the PLUS operand to the result mode.
22892 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
22895 * config/i386/i386.c (ix86_rtx_costs)
22896 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
22899 2014-05-26 Martin Jambor <mjambor@suse.cz>
22901 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
22904 2014-05-26 Richard Biener <rguenther@suse.de>
22906 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
22907 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
22908 Provide specializations.
22909 (wi::int_traits <HOST_WIDE_INT>,
22910 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
22912 2014-05-26 Alan Modra <amodra@gmail.com>
22915 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
22916 params and return a bool. Remove dead code. Update comment.
22917 Assert we have a const_int source. Remove bogus code from
22918 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
22919 handling of constants > 2G and reg_equal note, from..
22920 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
22921 return value. Update comment. If we can, use a new pseudo
22922 for intermediate calculations.
22923 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
22925 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
22926 call to rs6000_emit_set_const in splitter.
22927 (movdi_internal64+2, +3): Likewise.
22929 2014-05-26 Richard Biener <rguenther@suse.de>
22931 * system.h: Define __STDC_FORMAT_MACROS before
22932 including inttypes.h.
22933 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
22934 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
22935 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
22936 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
22937 HOST_WIDEST_INT_C): Remove.
22938 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
22939 if C99 inttypes.h is not available.
22940 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
22941 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
22942 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
22943 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
22944 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
22945 (struct output_info): Likewise.
22946 (print_statistics): Adjust.
22947 (dump_bitmap_statistics): Likewise.
22948 * bt-load.c (migrate_btr_defs): Print with PRId64.
22949 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
22950 (MAX_SAFE_MULTIPLIER): Adjust.
22951 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
22952 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
22953 dump_cgraph_node): Likewise.
22954 * final.c (dump_basic_block_info): Likewise.
22955 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
22956 * gcov.c (format_gcov): Likewise.
22957 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
22959 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
22960 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
22961 (inline_small_functions, dump_overall_stats, dump_inline_stats):
22962 Use PRId64 for dumping.
22963 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
22964 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
22965 (add_allocno_hard_regs): Adjust.
22966 * loop-doloop.c (doloop_modify): Print using PRId64.
22967 * loop-iv.c (inverse): Compute in uint64_t.
22968 (determine_max_iter, iv_number_of_iterations): Likewise.
22969 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
22970 Print using PRId64.
22971 * lto-streamer-out.c (write_symbol): Use uint64_t.
22972 * mcf.c (CAP_INFINITY): Use int64_t maximum.
22973 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
22974 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
22975 * modulo-sched.c (const_iteration_count): Use int64_t.
22976 (sms_schedule): Dump using PRId64.
22977 * predict.c (dump_prediction): Likewise.
22978 * pretty-print.h (pp_widest_integer): Remove.
22979 * profile.c (get_working_sets, is_edge_inconsistent,
22980 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
22981 * tree-pretty-print.c (pp_double_int): Remove case handling
22982 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
22983 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
22985 (pass_optimize_bswap::execute): Remove restriction on hosts.
22986 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
22987 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
22988 * tree.c (widest_int_cst_value): Remove.
22989 * tree.h (widest_int_cst_value): Likewise.
22990 * value-prof.c (dump_histogram_value): Print using PRId64.
22991 * gengtype.c (main): Also inject int64_t.
22992 * ggc-page.c (struct max_alignment): Use int64_t.
22993 * alloc-pool.c (struct allocation_object_def): Likewise.
22994 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
22996 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
22997 * doc/tm.texi: Regenerated.
22998 * gengtype-lex.l (IWORD): Handle [u]int64_t.
22999 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23000 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23001 mmix_output_register_setting): Use [u]int64_t in prototypes.
23002 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23003 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23004 mmix_output_octa, mmix_output_shifted_value): Adjust.
23005 (mmix_intval): Adjust. Remove unreachable case.
23006 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23008 2014-05-26 Richard Biener <rguenther@suse.de>
23010 * configure.ac: Drop __int64 type check. Insist that we
23011 found uint64_t and int64_t.
23012 * hwint.h (HOST_BITS_PER___INT64): Remove.
23013 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23014 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23015 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23016 (HOST_WIDEST_FAST_INT): Remove __int64 case.
23017 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23018 for dst_q_src_df_rms_cdt.
23019 * configure: Regenerate.
23020 * config.in: Likewise.
23022 2014-05-26 Michael Tautschnig <mt@debian.org>
23025 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23026 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23028 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23030 PR rtl-optimization/61278
23031 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23033 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23035 PR rtl-optimization/61220
23036 Part of PR rtl-optimization/61225
23037 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23038 insn; skip split_edge for a block with only one successor.
23040 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23042 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23045 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23047 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23048 (update_vtable_references): New function.
23049 (function_and_variable_visibility): Rewrite also vtable initializers.
23050 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23052 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23054 * ggc.h (ggc_grow): New function.
23055 * ggc-none.c (ggc_grow): New function.
23056 * ggc-page.c (ggc_grow): Likewise.
23058 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23060 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23061 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23062 comdat_can_be_unshared_p, cgraph_externally_visible_p,
23063 varpool_externally_visible_p, can_replace_by_local_alias,
23064 update_visibility_by_resolution_info, function_and_variable_visibility,
23065 pass_data_ipa_function_and_variable_visibility,
23066 make_pass_ipa_function_and_variable_visibility,
23067 whole_program_function_and_variable_visibility,
23068 pass_data_ipa_whole_program_visibility,
23069 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
23070 * cgraph.h (cgraph_local_node_p): Declare.
23071 * ipa-visibility.c: New file.
23072 * Makefile.in (OBJS): Add ipa-visiblity.o
23074 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23076 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
23077 that var decl is available.
23079 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23081 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
23082 symtab_node pointer.
23083 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
23084 (find_decls_types_r): Do not walk COMDAT_GROUP.
23085 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
23086 * varasm.c (make_decl_one_only): Use set_comdat_group;
23087 create node if needed.
23088 * ipa-inline-transform.c (save_inline_function_body): Update
23089 way we decl->symtab mapping.
23090 * symtab.c (symtab_hash, hash_node, eq_node
23091 symtab_insert_node_to_hashtable): Remove.
23092 (symtab_register_node): Update.
23093 (symtab_unregister_node): Update.
23094 (symtab_get_node): Reimplement as inline function.
23095 (symtab_add_to_same_comdat_group): Update.
23096 (symtab_dissolve_same_comdat_group_list): Update.
23097 (dump_symtab_base): Update.
23098 (verify_symtab_base): Update.
23099 (symtab_make_decl_local): Update.
23100 (fixup_same_cpp_alias_visibility): Update.
23101 (symtab_nonoverwritable_alias): Update.
23102 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
23103 * ipa.c (update_visibility_by_resolution_info): UPdate.
23104 * bb-reorder.c: Include cgraph.h
23105 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
23106 with comdat groups.
23107 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
23108 * cgraph.c (cgraph_get_create_node): Update.
23109 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
23111 (symtab_get_node): Make inline.
23112 (symtab_insert_node_to_hashtable): Remove.
23113 (symtab_can_be_discarded): Update.
23114 (decl_comdat_group): New function.
23115 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
23117 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
23119 (read_comdat_group): New function.
23120 (input_node, input_varpool_node): Use it.
23121 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
23123 * mips.c (mips_start_unique_function): Likewise.
23124 (ix86_code_end): Likewise.
23125 (rs6000_code_end): Likweise.
23126 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
23128 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23130 * gengtype-state.c (fatal_reading_state): Bring offline.
23131 * optabs.c (widening_optab_handler): Bring offline.
23132 * optabs.h (widening_optab_handler): Likewise.
23133 * final.c (get_attr_length_1): Likewise.
23135 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23137 * sched-int.h (sd_iterator_cond): Manually tail recurse.
23139 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23141 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
23142 (ppc440-compare): Include shift with dot.
23143 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
23144 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
23146 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
23148 (e6500_sfx2): Include it.
23149 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
23150 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
23151 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
23152 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
23153 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
23154 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
23155 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
23156 *lshiftrt_internal1le, *lshiftrt_internal1be,
23157 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
23158 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
23159 *rotldi3_internal10le, *rotldi3_internal10be,
23160 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
23161 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
23162 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
23163 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
23164 define_insns): Use type "shift" in the appropriate alternatives.
23166 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23168 * config/rs6000/rs6000.md (type): Add "logical". Delete
23170 (dot): Adjust comment.
23171 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
23172 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
23173 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
23174 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
23175 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
23176 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
23177 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
23178 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23180 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23181 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23182 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23183 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23184 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23185 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23186 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23187 * config/rs6000/8540.md (ppc8540_su): Adjust.
23188 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23189 cell-cmp-microcoded): Adjust.
23190 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23191 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23192 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23193 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23194 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23195 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23196 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23197 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23198 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23200 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23201 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
23202 Adjust. Adjust comment.
23203 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23204 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23206 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23208 * config/rs6000/rs6000.md (type): Add "add".
23209 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
23210 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
23211 define_insns): Use it.
23212 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23214 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23215 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23216 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23217 * config/rs6000/601.md (ppc601-integer): Adjust.
23218 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23219 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23220 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23221 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23222 * config/rs6000/8540.md (ppc8540_su): Adjust.
23223 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23224 cell-cmp-microcoded): Adjust.
23225 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23226 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23227 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23228 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23229 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23230 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23231 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23232 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23233 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23235 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23236 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
23237 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23238 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23240 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23242 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
23243 "delayed_compare", "var_delayed_compare".
23244 (var_shift): New attribute.
23245 (cell_micro): Adjust.
23246 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
23247 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
23248 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
23249 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23250 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23251 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23252 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23253 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
23254 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
23255 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23256 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
23257 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
23258 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
23259 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
23260 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
23261 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
23262 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
23263 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
23264 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
23265 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
23266 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
23267 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
23268 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
23269 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23270 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23272 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23273 * config/rs6000/440.md (ppc440-integer): Adjust.
23274 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23275 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
23276 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23277 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23278 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23279 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23280 * config/rs6000/8540.md (ppc8540_su): Adjust.
23281 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23282 cell-cmp-microcoded): Adjust.
23283 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
23284 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23285 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
23286 e500mc64_delayed): Adjust.
23287 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
23288 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
23289 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23290 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
23291 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
23292 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
23293 power6-delayed-compare, power6-var-delayed-compare): Adjust.
23294 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
23295 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
23297 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23298 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23300 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23302 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
23303 (bits): New mode_attr.
23304 (idiv_ldiv): Delete mode_attr.
23305 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
23306 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23307 rs6000_adjust_priority, is_nonpipeline_insn,
23308 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23310 * config/rs6000/40x.md (ppc403-idiv): Adjust.
23311 * config/rs6000/440.md (ppc440-idiv): Adjust.
23312 * config/rs6000/476.md (ppc476-idiv): Adjust.
23313 * config/rs6000/601.md (ppc601-idiv): Adjust.
23314 * config/rs6000/603.md (ppc603-idiv): Adjust.
23315 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23316 ppc620-ldiv): Adjust.
23317 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23318 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23319 * config/rs6000/8540.md (ppc8540_divide): Adjust.
23320 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23321 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23322 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23323 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23324 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23325 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23326 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23327 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23328 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23329 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23330 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23331 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23332 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23333 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23334 * config/rs6000/titan.md (titan_fxu_div): Adjust.
23336 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23338 * config/rs6000/rs6000.md (type): Delete "insert_word",
23339 "insert_dword". Add "insert".
23340 (size): Update comment.
23341 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23342 insn_must_be_first_in_group): Adjust.
23343 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23344 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23345 *insvsi_internal6, insvdi_internal): Adjust.
23347 * config/rs6000/40x.md (ppc403-integer): Adjust.
23348 * config/rs6000/440.md (ppc440-integer): Adjust.
23349 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23350 * config/rs6000/601.md (ppc601-integer): Adjust.
23351 * config/rs6000/603.md (ppc603-integer): Adjust.
23352 * config/rs6000/6xx.md (ppc604-integer): Adjust.
23353 * config/rs6000/7450.md (ppc7450-integer): Adjust.
23354 * config/rs6000/7xx.md (ppc750-integer): Adjust.
23355 * config/rs6000/8540.md (ppc8540_su): Adjust.
23356 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23357 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23358 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23359 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23360 * config/rs6000/e5500.md (e5500_sfx): Adjust.
23361 * config/rs6000/e6500.md (e6500_sfx): Adjust.
23362 * config/rs6000/mpc.md (mpccore-integer): Adjust.
23363 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23364 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23365 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23366 * config/rs6000/power7.md (power7-integer): Adjust.
23367 * config/rs6000/power8.md (power8-1cyc): Adjust.
23368 * config/rs6000/rs64.md (rs64a-integer): Adjust.
23369 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23371 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23373 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
23374 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23375 (size): New attribute.
23376 (dot): New attribute.
23377 (cell_micro): Adjust.
23378 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23379 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23380 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23381 umuldi3_highpart): Adjust.
23382 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23383 rs6000_adjust_priority, is_nonpipeline_insn,
23384 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23386 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23387 ppc405-imul3): Adjust.
23388 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23389 * config/rs6000/476.md (ppc476-imul): Adjust.
23390 * config/rs6000/601.md (ppc601-imul): Adjust.
23391 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23392 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23393 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23394 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23395 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23397 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23398 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23399 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23400 cell-imul): Adjust.
23401 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23402 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23403 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23404 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23405 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23406 * config/rs6000/mpc.md (mpccore-imul): Adjust.
23407 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23408 power4-lmul, power4-imul, power4-imul3): Adjust.
23409 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
23410 power5-lmul, power5-imul, power5-imul3): Adjust.
23411 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
23412 power6-lmul, power6-imul, power6-imul3): Adjust.
23413 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
23414 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
23416 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
23417 rs64a-lmul): Adjust.
23418 * config/rs6000/titan.md (titan_imul): Adjust.
23420 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23422 * config/rs6000/rs6000.md (type): Add new value "halfmul".
23423 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
23424 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
23425 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
23426 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
23427 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23428 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23429 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23430 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23431 * config/rs6000/titan.md: Delete nonsensical comment.
23432 (titan_imul): Add type imul3.
23433 (titan_mulhw): Remove type imul3; add type halfmul.
23435 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23437 * config/rs6000/rs6000.md (type): Reorder, reformat.
23439 2014-05-23 Martin Jambor <mjambor@suse.cz>
23441 PR tree-optimization/53787
23442 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23443 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23444 analysis_done, update all uses.
23445 * ipa-prop.c: Include domwalk.h
23446 (param_analysis_info): Removed.
23447 (param_aa_status): New type.
23448 (ipa_bb_info): Likewise.
23449 (func_body_info): Likewise.
23450 (ipa_get_bb_info): New function.
23451 (aa_overwalked): Likewise.
23452 (find_dominating_aa_status): Likewise.
23453 (parm_bb_aa_status_for_bb): Likewise.
23454 (parm_preserved_before_stmt_p): Changed to use new param AA info.
23455 (load_from_unmodified_param): Accept func_body_info as a parameter
23456 instead of parms_ainfo.
23457 (parm_ref_data_preserved_p): Changed to use new param AA info.
23458 (parm_ref_data_pass_through_p): Likewise.
23459 (ipa_load_from_parm_agg_1): Likewise. Update callers.
23460 (compute_complex_assign_jump_func): Changed to use new param AA info.
23461 (compute_complex_ancestor_jump_func): Likewise.
23462 (ipa_compute_jump_functions_for_edge): Likewise.
23463 (ipa_compute_jump_functions): Removed.
23464 (ipa_compute_jump_functions_for_bb): New function.
23465 (ipa_analyze_indirect_call_uses): Likewise, moved variable
23467 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
23468 and info, moved variable declarations down.
23469 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
23471 (ipa_analyze_stmt_uses): Likewise.
23472 (ipa_analyze_params_uses): Removed.
23473 (ipa_analyze_params_uses_in_bb): New function.
23474 (ipa_analyze_controlled_uses): Likewise.
23475 (free_ipa_bb_info): Likewise.
23476 (analysis_dom_walker): New class.
23477 (ipa_analyze_node): Handle node-specific forbidden analysis,
23478 initialize and free func_body_info, use dominator walker.
23479 (ipcp_modif_dom_walker): New class.
23480 (ipcp_transform_function): Create and free func_body_info, use
23481 ipcp_modif_dom_walker, moved a lot of functionality there.
23483 2014-05-23 Marek Polacek <polacek@redhat.com>
23484 Jakub Jelinek <jakub@redhat.com>
23486 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
23487 * gcc.c (sanitize_spec_function): Likewise.
23488 * convert.c (convert_to_integer): Include "ubsan.h". Add
23489 floating-point to integer instrumentation.
23490 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
23491 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
23492 SANITIZE_NONDEFAULT.
23493 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
23494 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
23495 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
23496 * ubsan.c: Include "realmpfr.h" and "dfp.h".
23497 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
23498 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
23499 float/double/long double.
23500 (ubsan_instrument_float_cast): New function.
23501 * ubsan.h (ubsan_instrument_float_cast): Declare.
23503 2014-05-23 Jiong Wang <jiong.wang@arm.com>
23505 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
23507 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
23508 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
23509 Adjust for tailcalling through registers.
23510 * config/aarch64/aarch64.h (enum reg_class): New caller save
23512 (REG_CLASS_NAMES): Likewise.
23513 (REG_CLASS_CONTENTS): Likewise.
23514 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
23515 Allow tailcalling without decls.
23517 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23519 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23520 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
23522 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
23523 gsi, and variables v_* to v*.
23525 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
23527 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
23529 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23531 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
23532 * omp-low.c: Update accordingly.
23534 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
23535 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
23536 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
23537 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
23538 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
23539 GF_OMP_TARGET_KIND_UPDATE.
23541 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23542 Explicitly enumerate the expected region types.
23544 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
23547 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
23548 documentation; the old documentation didn't clearly state the
23549 constraints on the contents of the pointed-to storage.
23551 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23553 Fix bootstrap error on ia64
23554 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
23555 Return default value.
23557 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
23559 PR tree-optimization/54733
23560 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
23562 (find_bswap_or_nop_load): New.
23563 (find_bswap_1): Renamed to ...
23564 (find_bswap_or_nop_1): This. Also add support for memory source.
23565 (find_bswap): Renamed to ...
23566 (find_bswap_or_nop): This. Also add support for memory source and
23567 detection of bitwise operations equivalent to load in target
23569 (execute_optimize_bswap): Likewise. Also move its leading comment back
23570 in place and split statement transformation into ...
23571 (bswap_replace): This.
23573 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23575 PR rtl-optimization/61215
23576 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
23577 simplify_gen_subreg until final substitution.
23579 2014-05-23 Alan Modra <amodra@gmail.com>
23582 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
23583 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
23584 Use "Y" constraint rather than "m".
23586 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
23588 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
23590 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
23591 New function declaration.
23592 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
23593 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
23594 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
23595 (aarch64_init_builtins) : Initialize builtins
23596 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23597 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23598 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
23599 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
23600 and __builtins_aarch64_set_fpsr.
23601 (aarch64_atomic_assign_expand_fenv): New function.
23602 * config/aarch64/aarch64.md (set_fpcr): New pattern.
23603 (get_fpcr) : Likewise.
23604 (set_fpsr) : Likewise.
23605 (get_fpsr) : Likewise.
23606 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
23607 and UNSPECV_SET_FPSR.
23608 * doc/extend.texi (AARCH64 Built-in Functions) : Document
23609 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23610 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23612 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23614 PR rtl-optimization/60969
23615 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
23616 constraints. Set up mem cost for NO_REGS case.
23618 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
23620 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
23622 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
23624 * config/darwin.c: Include "lto-section-names.h".
23625 (LTO_SEGMENT_NAME): Don't define.
23626 * config/i386/winnt.c: Include "lto-section-names.h".
23627 * lto-streamer.c: Include "lto-section-names.h".
23628 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
23629 * lto-wrapper.c: Include "lto-section-names.h".
23630 (LTO_SECTION_NAME_PREFIX): Don't define.
23631 * lto-section-names.h: New file.
23632 * cgraphunit.c: Include "lto-section-names.h".
23634 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
23636 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
23638 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
23641 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
23643 2014-05-22 Nick Clifton <nickc@redhat.com>
23645 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
23647 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
23649 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
23650 -> (T)A transformation to integer types.
23652 2014-05-22 Teresa Johnson <tejohnson@google.com>
23654 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
23655 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
23656 (gcov_rewrite): Use gcov_nonruntime_assert.
23657 (gcov_open): Ditto.
23658 (gcov_write_words): Ditto.
23659 (gcov_write_length): Ditto.
23660 (gcov_read_words): Use gcov_nonruntime_assert, and remove
23661 gcc_assert from IN_LIBGCOV code.
23662 (gcov_read_summary): Use gcov_error to flag profile corruption.
23663 (gcov_sync): Use gcov_nonruntime_assert.
23664 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
23665 (gcov_histo_index): Use gcov_nonruntime_assert.
23666 (static void gcov_histogram_merge): Ditto.
23667 (compute_working_sets): Ditto.
23668 * gcov-io.h (gcov_nonruntime_assert): Define.
23669 (gcov_error): Define for !IN_LIBGCOV
23671 2014-05-22 Richard Biener <rguenther@suse.de>
23673 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23674 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
23675 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
23676 and deallocation site.
23677 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23678 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
23679 passing through the incoming points-to set.
23680 (handle_lhs_call): Use flags argument instead of recomputing it.
23681 (find_func_aliases_for_call): Call handle_lhs_call with proper
23684 2014-05-22 Jakub Jelinek <jakub@redhat.com>
23686 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
23687 all padding bits in REAL_VALUE_TYPE are cleared.
23689 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23691 Cleanup and improve multipass_dfa_lookahead_guard
23692 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
23693 (core2i7_first_cycle_multipass_begin,)
23694 (core2i7_first_cycle_multipass_issue,)
23695 (core2i7_first_cycle_multipass_backtrack): Update signature.
23696 * config/ia64/ia64.c
23697 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
23698 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
23699 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
23701 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
23702 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
23704 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
23706 * doc/tm.texi: Regenerate.
23708 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
23709 * haifa-sched.c (ready_try): Make signed to allow negative values.
23710 (rebug_ready_list_1): Update.
23711 (choose_ready): Simplify.
23712 (sched_extend_ready_list): Update.
23714 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23716 Remove IA64 speculation tweaking flags
23717 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
23718 speculation tuning flags.
23719 (msched-prefer-non-data-spec-insns,)
23720 (msched-prefer-non-control-spec-insns): Obsolete options.
23721 * haifa-sched.c (choose_ready): Remove handling of
23722 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23723 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
23724 and PREFER_NON_DATA_SPEC.
23725 * sel-sched.c (process_spec_exprs): Remove handling of
23726 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23728 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23730 Improve scheduling debug output
23731 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
23732 (advance_one_cycle): Update.
23733 (schedule_insn, queue_to_ready): Add debug printouts.
23734 (debug_ready_list_1): New static function.
23735 (debug_ready_list): Update.
23736 (max_issue): Add debug printouts.
23737 (dump_insn_stream): New static function.
23738 (schedule_block): Use it. Also better indent printouts.
23740 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23742 Fix sched_insn debug counter
23743 * haifa-sched.c (schedule_insn): Update.
23744 (struct haifa_saved_data): Add nonscheduled_insns_begin.
23745 (save_backtrack_point, restore_backtrack_point): Update.
23746 (first_nonscheduled_insn): New static function.
23747 (queue_to_ready, choose_ready): Use it.
23748 (schedule_block): Init nonscheduled_insns_begin.
23749 (sched_emit_insn): Update.
23752 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23754 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
23756 (aarch64_secondary_reload) : LikeWise.
23757 (aarch64_class_max_nregs) : Remove CORE_REGS.
23758 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
23759 (REG_CLASS_NAMES) : Likewise.
23760 (REG_CLASS_CONTENTS) : LikeWise.
23761 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
23763 2014-05-21 Guozhi Wei <carrot@google.com>
23766 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
23768 (vqdmulhq_n_s16): Likewise.
23770 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23772 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
23774 2014-05-21 Marek Polacek <polacek@redhat.com>
23777 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
23779 2014-05-21 Martin Jambor <mjambor@suse.cz>
23781 * doc/invoke.texi (Optimize Options): Document parameters
23782 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
23783 ipa-cp-array-index-hint-bonus.
23785 2014-05-21 Mark Wielaard <mjw@redhat.com>
23788 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
23789 version >= 3 or not strict DWARF.
23790 * langhooks.h (struct lang_hooks_for_types): Add
23791 enum_underlying_base_type.
23792 * langhooks.c (lhd_enum_underlying_base_type): New function.
23793 * gcc/langhooks.h (struct lang_hooks_for_types): Add
23794 enum_underlying_base_type.
23795 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
23796 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
23797 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
23799 2014-05-21 Richard Biener <rguenther@suse.de>
23801 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
23803 2014-05-21 John Marino <gnugcc@marino.st>
23805 * config.gcc (*-*-dragonfly*): New target.
23806 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
23807 * configure: Regenerate.
23808 * config/dragonfly-stdint.h: New.
23809 * config/dragonfly.h: New.
23810 * config/dragonfly.opt: New.
23811 * config/i386/dragonfly.h: New.
23812 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
23814 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23816 * tree.def (VOID_CST): New.
23817 * tree-core.h (TI_VOID): New.
23818 * tree.h (void_node): New.
23819 * tree.c (tree_node_structure_for_code, tree_code_size)
23820 (iterative_hash_expr): Handle VOID_CST.
23821 (build_common_tree_nodes): Initialize void_node.
23823 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
23825 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
23827 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
23829 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
23832 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
23833 flag_reorder_blocks_and_partition.
23834 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
23836 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
23839 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
23841 (*addc_r_t): Add new insn_and_split.
23843 2014-05-21 Jakub Jelinek <jakub@redhat.com>
23845 PR middle-end/61252
23846 * omp-low.c (handle_simd_reference): New function.
23847 (lower_rec_input_clauses): Use it. Defer adding reference
23848 initialization even for reduction without placeholder if in simd,
23849 handle it properly later on.
23851 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23853 PR tree-optimization/60899
23854 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
23855 assume all static symbols will have definition wile parsing and
23856 check the do have definition later in compilation; check that
23857 variable referring symbol will be output before concluding that
23858 reference is safe; be conservative for referring local statics;
23859 be more precise about when comdat is output in other partition.
23861 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23864 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
23866 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
23867 (ipa_inline): Loop inline_to_all_callers until no more aliases
23870 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23872 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
23873 set writeonly flag only for vars actually written to.
23875 2014-05-20 Dehao Chen <dehao@google.com>
23877 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
23878 and callee count to get clone count.
23879 * tree-inline.c (expand_call_inline): Use callee count instead of bb
23880 count in copy_body.
23882 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
23884 PR rtl-optimization/61243
23885 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
23887 2014-05-20 Xinliang David Li <davidxl@google.com>
23889 * cgraphunit.c (walk_polymorphic_call_targets): Add
23890 dbgcnt and fopt-info support.
23891 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
23892 * ipa-devirt.c (ipa_devirt): Ditto.
23893 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
23894 * ipa.c (walk_polymorphic_call_targets): Ditto.
23895 * gimple-fold.c (fold_gimple_assign): Ditto.
23896 (gimple_fold_call): Ditto.
23897 * dbgcnt.def: New counter.
23899 2014-05-20 DJ Delorie <dj@redhat.com>
23901 * config/msp430/msp430.md (split): Don't allow subregs when
23902 splitting SImode adds.
23903 (andneghi): Fix subtraction logic.
23904 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
23906 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23908 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
23910 * except.c (switch_to_exception_section, resolve_unique_section,
23911 get_named_text_section, default_function_rodata_section,
23912 align_variable, get_block_for_decl, default_section_type_flags):
23913 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
23914 * symtab.c (symtab_add_to_same_comdat_group,
23915 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
23916 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
23918 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
23919 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
23920 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
23921 (c6x_function_in_section_p): Likewise.
23922 * config/darwin.c (machopic_select_section): Likewise.
23923 * config/arm/arm.c (arm_function_in_section_p): Likewise.
23924 * config/mips/mips.c (mips_function_rodata_section): Likewise.
23925 * config/mep/mep.c (mep_select_section): LIkewise.
23926 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
23928 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
23930 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
23931 EH region of calls to pure functions that can throw an exception.
23932 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
23933 (copy_reference_ops_from_call): Also copy the EH region of the call if
23934 it can throw an exception.
23936 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23938 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
23939 nested VEC_SELECTs that are inverses of each other.
23941 2014-05-20 Richard Biener <rguenther@suse.de>
23943 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
23944 (extract_and_process_scc_for_name): not here.
23945 (cond_dom_walker::before_dom_children): Only process
23946 stmts that end the BB in interesting ways.
23947 (run_scc_vn): Mark param uses as visited.
23949 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23951 * config/arm/arm.md (arith_shiftsi): Do not predicate for
23954 2014-05-20 Nick Clifton <nickc@redhat.com>
23956 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
23957 (msp430_gimplify_va_arg_expr): New function.
23958 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
23960 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
23961 operand 0 in order to prevent confusion about the number of
23962 registers involved.
23964 2014-05-20 Richard Biener <rguenther@suse.de>
23966 PR tree-optimization/61221
23967 * tree-ssa-pre.c (el_to_update): Remove.
23968 (eliminate_dom_walker::before_dom_children): Handle released
23969 VDEFs by value-numbering them to the associated VUSE. Update
23970 stmt immediately for substituted call address.
23971 (eliminate): Remove delayed stmt updating code.
23972 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
23973 possibly late re-numbered vuses.
23974 (vn_reference_lookup_2): Adjust.
23975 (vn_reference_lookup_pieces): Likewise.
23976 (vn_reference_lookup): Likewise.
23978 2014-05-20 Richard Biener <rguenther@suse.de>
23980 * config.gcc: Remove need_64bit_hwint.
23981 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
23982 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
23984 * config.in: Regenerate.
23985 * configure: Likewise.
23987 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
23989 * doc/extend.texi: Create Label Attributes section,
23990 move all label attributes into it and reference it.
23992 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
23994 * arm.c (thumb1_reorg): When scanning backwards skip anything
23995 that's not a proper insn.
23997 2014-05-19 Richard Biener <rguenther@suse.de>
23999 PR tree-optimization/61221
24000 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24001 Do nothing for unreachable blocks.
24002 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24003 Improve unreachability detection.
24005 2014-05-19 Richard Biener <rguenther@suse.de>
24007 PR tree-optimization/61209
24008 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24010 2014-05-19 Nick Clifton <nickc@redhat.com>
24012 * except.c (init_eh): Fix computation of builtin setjmp buffer
24013 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24015 2014-05-19 Richard Biener <rguenther@suse.de>
24017 PR tree-optimization/61184
24018 * tree-vrp.c (is_negative_overflow_infinity): Use
24019 TREE_OVERFLOW_P and do that check first.
24020 (is_positive_overflow_infinity): Likewise.
24021 (is_overflow_infinity): Likewise.
24022 (vrp_operand_equal_p): Properly treat operands with
24023 differing overflow as not equal.
24025 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
24027 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24028 shift simplification where it was intended.
24030 2014-05-19 Christian Bruel <christian.bruel@st.com>
24033 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24035 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
24038 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24041 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24043 * reg-notes.def (CROSSING_JUMP): Likewise.
24044 * rtl.h (rtx_def): Update comment for jump flag.
24045 (CROSSING_JUMP_P): Define.
24046 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24047 of a REG_CROSSING_JUMP note.
24048 * cfghooks.c (tidy_fallthru_edges): Likewise.
24049 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24050 * emit-rtl.c (try_split): Likewise.
24051 * haifa-sched.c (sched_create_recovery_edges): Likewise.
24052 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24053 * jump.c (redirect_jump_2): Likewise.
24054 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24055 (relax_delay_slots): Likewise.
24056 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24057 (bbit_di): Likewise.
24058 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24059 * config/sh/sh.md (jump_compact): Likewise.
24060 * bb-reorder.c (rotate_loop): Likewise.
24061 (pass_duplicate_computed_gotos::execute): Likewise.
24062 (add_reg_crossing_jump_notes): Rename to...
24063 (update_crossing_jump_flags): ...this.
24064 (pass_partition_blocks::execute): Update accordingly.
24066 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24068 * tree.h: Remove extraneous template <>.
24070 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24072 * ipa.c (symtab_remove_unreachable_nodes): Remove
24073 symbol from comdat group if its body was eliminated.
24074 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
24075 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
24076 (symtab_unregister_node): ... this one.
24077 (verify_symtab_base): More strict checking of comdats.
24078 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
24080 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24082 * tree-pass.h (make_pass_ipa_comdats): New pass.
24083 * timevar.def (TV_IPA_COMDATS): New timevar.
24084 * passes.def (pass_ipa_comdats): Add.
24085 * Makefile.in (OBJS): Add ipa-comdats.o
24086 * ipa-comdats.c: New file.
24088 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24090 * ipa.c (update_visibility_by_resolution_info): New function.
24091 (function_and_variable_visibility): Use it.
24093 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24095 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
24097 (FOR_EACH_DEFINED_SYMBOL): New macro.
24098 (varpool_first_static_initializer, varpool_next_static_initializer,
24099 varpool_first_defined_variable, varpool_next_defined_variable):
24101 (symtab_in_same_comdat_p): Correctly deal with inline functions.
24103 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24105 * ggc-page.c (ggc_handle_finalizers): Add comment.
24107 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24109 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
24110 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
24111 (ggc_internal_cleared_alloc): Likewise.
24112 * ggc-page.c (finalizer): New class.
24113 (vec_finalizer): Likewise.
24114 (globals::finalizers): New member.
24115 (globals::vec_finalizers): Likewise.
24116 (ggc_internal_alloc): Record the finalizer if any for the block being
24118 (ggc_handle_finalizers): New function.
24119 (ggc_collect): Call ggc_handle_finalizers.
24120 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
24122 (ggc_internal_cleared_alloc): Likewise.
24123 (finalize): New function.
24124 (need_finalization_p): Likewise.
24125 (ggc_alloc): Install the type's destructor as the finalizer if it
24126 might do something.
24127 (ggc_cleared_alloc): Likewise.
24128 (ggc_vec_alloc): Likewise.
24129 (ggc_cleared_vec_alloc): Likewise.
24131 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24133 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
24135 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24137 * alias.c (record_alias_subset): Adjust.
24138 * bitmap.c (bitmap_element_allocate): Likewise.
24139 (bitmap_gc_alloc_stat): Likewise.
24140 * cfg.c (init_flow): Likewise.
24141 (alloc_block): Likewise.
24142 (unchecked_make_edge): Likewise.
24143 * cfgloop.c (alloc_loop): Likewise.
24144 (flow_loops_find): Likewise.
24145 (rescan_loop_exit): Likewise.
24146 * cfgrtl.c (init_rtl_bb_info): Likewise.
24147 * cgraph.c (insert_new_cgraph_node_version): Likewise.
24148 (cgraph_allocate_node): Likewise.
24149 (cgraph_create_edge_1): Likewise.
24150 (cgraph_allocate_init_indirect_info): Likewise.
24151 * cgraphclones.c (cgraph_clone_edge): Likewise.
24152 * cgraphunit.c (add_asm_node): Likewise.
24153 (init_lowered_empty_function): Likewise.
24154 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
24155 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24156 (alpha_use_linkage): Likewise.
24157 * config/arc/arc.c (arc_init_machine_status): Likewise.
24158 * config/arm/arm.c (arm_init_machine_status): Likewise.
24159 * config/avr/avr.c (avr_init_machine_status): Likewise.
24160 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24161 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
24162 * config/cris/cris.c (cris_init_machine_status): Likewise.
24163 * config/darwin.c (machopic_indirection_name): Likewise.
24164 (darwin_build_constant_cfstring): Likewise.
24165 (darwin_enter_string_into_cfstring_table): Likewise.
24166 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
24167 * config/frv/frv.c (frv_init_machine_status): Likewise.
24168 * config/i386/i386.c (get_dllimport_decl): Likewise.
24169 (ix86_init_machine_status): Likewise.
24170 (assign_386_stack_local): Likewise.
24171 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24172 (i386_pe_maybe_record_exported_symbol): Likewise.
24173 (i386_pe_record_stub): Likewise.
24174 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24175 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24176 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24177 (m32c_note_pragma_address): Likewise.
24178 * config/mep/mep.c (mep_init_machine_status): Likewise.
24179 (mep_note_pragma_flag): Likewise.
24180 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24181 (mips16_local_alias): Likewise.
24182 (mips_init_machine_status): Likewise.
24183 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24184 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24185 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
24186 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
24187 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
24188 * config/pa/pa.c (pa_init_machine_status): Likewise.
24189 (pa_get_deferred_plabel): Likewise.
24190 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
24191 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24192 (rs6000_init_machine_status): Likewise.
24193 (output_toc): Likewise.
24194 * config/s390/s390.c (s390_init_machine_status): Likewise.
24195 * config/score/score.c (score_output_external): Likewise.
24196 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24197 * config/spu/spu.c (spu_init_machine_status): Likewise.
24198 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
24199 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
24200 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24201 * coverage.c (coverage_end_function): Likewise.
24202 * dbxout.c (dbxout_init): Likewise.
24203 * doc/gty.texi: Don't mention variable_size attribute.
24204 * dwarf2cfi.c (new_cfi): Adjust.
24205 (new_cfi_row): Likewise.
24206 (copy_cfi_row): Likewise.
24207 (create_cie_data): Likewise.
24208 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
24209 (new_loc_descr): Likewise.
24210 (find_AT_string_in_table): Likewise.
24211 (add_addr_table_entry): Likewise.
24212 (new_die): Likewise.
24213 (add_var_loc_to_decl): Likewise.
24214 (clone_die): Likewise.
24215 (clone_as_declaration): Likewise.
24216 (break_out_comdat_types): Likewise.
24217 (new_loc_list): Likewise.
24218 (add_loc_descr_to_each): Likewise.
24219 (add_location_or_const_value_attribute): Likewise.
24220 (add_linkage_name): Likewise.
24221 (lookup_filename): Likewise.
24222 (dwarf2out_var_location): Likewise.
24223 (new_line_info_table): Likewise.
24224 (dwarf2out_init): Likewise.
24225 (mem_loc_descriptor): Likewise.
24226 (loc_descriptor): Likewise.
24227 (add_const_value_attribute): Likewise.
24228 (tree_add_const_value_attribute): Likewise.
24229 (comp_dir_string): Likewise.
24230 (dwarf2out_vms_debug_main_pointer): Likewise.
24231 (string_cst_pool_decl): Likewise.
24232 * emit-rtl.c (set_mem_attrs): Likewise.
24233 (get_reg_attrs): Likewise.
24234 (start_sequence): Likewise.
24235 (init_emit): Likewise.
24236 (init_emit_regs): Likewise.
24237 * except.c (init_eh_for_function): Likewise.
24238 (gen_eh_region): Likewise.
24239 (gen_eh_region_catch): Likewise.
24240 (gen_eh_landing_pad): Likewise.
24241 (add_call_site): Likewise.
24242 * function.c (add_frame_space): Likewise.
24243 (insert_temp_slot_address): Likewise.
24244 (assign_stack_temp_for_type): Likewise.
24245 (get_hard_reg_initial_val): Likewise.
24246 (allocate_struct_function): Likewise.
24247 (prepare_function_start): Likewise.
24248 (types_used_by_var_decl_insert): Likewise.
24249 * gengtype.c (variable_size_p): Remove function.
24250 (enum alloc_quantity): Remove enum.
24251 (write_typed_alloc_def): Remove function.
24252 (write_typed_struct_alloc_def): Likewise.
24253 (write_typed_typedef_alloc_def): Likewise.
24254 (write_typed_alloc_defns): Likewise.
24256 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
24257 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
24258 * ggc.h (ggc_alloc): new function.
24259 (ggc_cleared_alloc): Likewise.
24260 (ggc_vec_alloc): Template on type of vector element, and remove
24261 element size argument.
24262 (ggc_cleared_vec_alloc): Likewise.
24263 * gimple.c (gimple_build_omp_for): Adjust.
24264 (gimple_copy): Likewise.
24265 * ipa-cp.c (get_replacement_map): Likewise.
24266 (find_aggregate_values_for_callers_subset): Likewise.
24267 (known_aggs_to_agg_replacement_list): Likewise.
24268 * ipa-devirt.c (get_odr_type): Likewise.
24269 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
24270 (read_agg_replacement_chain): Likewise.
24271 * loop-iv.c (get_simple_loop_desc): Likewise.
24272 * lto-cgraph.c (input_node_opt_summary): Likewise.
24273 * lto-section-in.c (lto_new_in_decl_state): Likewise.
24274 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24275 (input_eh_region): Likewise.
24276 (input_eh_lp): Likewise.
24277 (input_cfg): Likewise.
24278 * optabs.c (set_optab_libfunc): Likewise.
24279 (init_tree_optimization_optabs): Likewise.
24280 (set_conv_libfunc): Likewise.
24281 * passes.c (do_per_function_toporder): Likewise.
24282 * rtl.h: Don't use variable_size gty attribute.
24283 * sese.c (if_region_set_false_region): Adjust.
24284 * stringpool.c (gt_pch_save_stringpool): Likewise.
24285 * target-globals.c (save_target_globals): Likewise.
24286 * toplev.c (general_init): Likewise.
24287 * trans-mem.c (record_tm_replacement): Likewise.
24288 (split_bb_make_tm_edge): Likewise.
24289 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24290 * tree-data-ref.h (lambda_vector_new): Likewise.
24291 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24292 * tree-iterator.c (tsi_link_before): Likewise.
24293 (tsi_link_after): Likewise.
24294 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24295 * tree-ssa-loop-niter.c (record_estimate): Likewise.
24296 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24297 * tree-ssa-operands.h: Don't use variable_size gty attribute.
24298 * tree-ssa.c (init_tree_ssa): Adjust.
24299 * tree-ssanames.c (set_range_info): Likewise.
24300 (get_ptr_info): Likewise.
24301 (duplicate_ssa_name_ptr_info): Likewise.
24302 (duplicate_ssa_name_range_info): Likewise.
24303 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
24304 (unpack_ts_fixed_cst_value_fields): Likewise.
24305 * tree.c (build_fixed): Likewise.
24306 (build_real): Likewise.
24307 (build_string): Likewise.
24308 (decl_priority_info): Likewise.
24309 (decl_debug_expr_insert): Likewise.
24310 (decl_value_expr_insert): Likewise.
24311 (decl_debug_args_insert): Likewise.
24312 (type_hash_add): Likewise.
24313 (build_omp_clause): Likewise.
24314 * ubsan.c (decl_for_type_insert): Likewise.
24315 * varasm.c (get_unnamed_section): Likewise.
24316 (get_noswitch_section): Likewise.
24317 (get_section): Likewise.
24318 (get_block_for_section): Likewise.
24319 (create_block_symbol): Likewise.
24320 (build_constant_desc): Likewise.
24321 (create_constant_pool): Likewise.
24322 (force_const_mem): Likewise.
24323 (record_tm_clone_pair): Likewise.
24324 * varpool.c (varpool_create_empty_node): Likewise.
24326 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24328 * dwarf2out.c (tree_add_const_value_attribute): Call
24329 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24330 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24331 instead of ggc_internal_<x>alloc_stat.
24332 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24333 (ggc_realloc): Likewise.
24334 * ggc-none.c (ggc_internal_alloc): Likewise.
24335 (ggc_internal_cleared_alloc): Likewise.
24336 * ggc-page.c: Likewise.
24337 * ggc.h (ggc_internal_alloc_stat): Likewise.
24338 (ggc_internal_alloc): Remove macro.
24339 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24340 (ggc_internal_cleared_alloc): Remove macro.
24341 (GGC_RESIZEVEC): Adjust.
24342 (ggc_resizevar): Remove macro.
24343 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24344 (ggc_internal_cleared_vec_alloc_stat): Likewise.
24345 (ggc_internal_vec_cleared_alloc): Remove macro.
24346 (ggc_alloc_atomic_stat): Drop _stat suffix.
24347 (ggc_alloc_atomic): Remove macro.
24348 (ggc_alloc_cleared_atomic): Remove macro.
24349 (ggc_alloc_string_stat): Drop _stat suffix.
24350 (ggc_alloc_string): Remove macro.
24351 (ggc_alloc_rtx_def_stat): Adjust.
24352 (ggc_alloc_tree_node_stat): Likewise.
24353 (ggc_alloc_cleared_tree_node_stat): Likewise.
24354 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24355 (ggc_alloc_cleared_simd_clone_stat): Likewise.
24356 * gimple.c (gimple_build_omp_for): Likewise.
24357 (gimple_copy): Likewise.
24358 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24359 * toplev.c (realloc_for_line_map): Adjust.
24360 * tree-data-ref.h (lambda_vector_new): Likewise.
24361 * tree-phinodes.c (allocate_phi_node): Likewise.
24362 * tree.c (grow_tree_vec_stat): Likewise.
24363 * vec.h (va_gc::reserve): Adjust.
24365 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
24367 * config/microblaze/microblaze.c (break_handler): New Declaration.
24368 (microblaze_break_function_p,microblaze_is_break_handler): New.
24369 (compute_frame_size): Use microblaze_break_function_p.
24370 Add the test of break_handler.
24371 (microblaze_function_prologue) : Add the test of variable
24372 break_handler. Check the fnname by BREAK_HANDLER_NAME.
24373 (microblaze_function_epilogue) : Add the test of break_handler.
24374 (microblaze_globalize_label) : Add the test of break_handler.
24375 Check the name by BREAK_HANDLER_NAME.
24377 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24379 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24380 microblaze_is_break_handler test.
24381 (call_internal1,call_value_intern): Use microblaze_break_function_p.
24382 Use SYMBOL_REF_DECL.
24384 * config/microblaze/microblaze-protos.h
24385 (microblaze_break_function_p,microblaze_is_break_handler):
24388 * doc/extend.texi (MicroBlaze break_handler Functions): Document
24389 new MicroBlaze break_handler functions.
24391 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24393 * doc/extend.texi (Size of an asm): Move node text according
24394 to its @menu entry position.
24396 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
24398 PR tree-optimization/61140
24399 PR tree-optimization/61150
24400 PR tree-optimization/61197
24401 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24403 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24405 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
24407 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
24409 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
24410 __SIZEOF_INT128__ is defined.
24412 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24414 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
24415 (rs6000_delegitimize_address): Use it.
24417 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24419 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
24420 inplace argument. Store the new address in the original MEM when true.
24421 * emit-rtl.c (change_address_1): Likewise.
24422 (adjust_address_1, adjust_automodify_address_1, offset_address):
24423 Update accordingly.
24424 * rtl.h (plus_constant): Add an inplace argument.
24425 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
24426 when true. Avoid generating (plus X (const_int 0)).
24427 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24428 in-place. Pass true to plus_constant.
24429 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24431 2014-05-16 Dehao Chen <dehao@google.com>
24433 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24435 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24438 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24440 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24442 2014-05-16 Dehao Chen <dehao@google.com>
24444 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24445 optimize_function_for_size_p.
24446 * regs.h (REG_FREQ_FROM_BB): Likewise.
24448 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24451 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24452 negt_reg_operand cases.
24453 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24455 * config/sh/predicates.md (cbranch_treg_value): Simplify.
24457 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24459 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
24462 2014-05-16 David Malcolm <dmalcolm@redhat.com>
24465 2014-04-29 David Malcolm <dmalcolm@redhat.com>
24467 * tree-cfg.c (dump_function_to_file): Dump the return type of
24468 functions, in a line to itself before the function body, mimicking
24469 the layout of a C function.
24471 2014-05-16 Dehao Chen <dehao@google.com>
24473 * cfghooks.c (make_forwarder_block): Use direct computation to
24474 get fall-through edge's count and frequency.
24476 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
24478 * config/arc/arc.c (arc_init): Fix typo in error message.
24479 * config/i386/i386.c (ix86_expand_builtin): Likewise.
24480 (split_stack_prologue_scratch_regno): Likewise.
24481 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
24482 word from error message.
24484 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24486 * ira-costs.c: Fix typo in comment.
24488 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
24490 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
24492 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
24494 * varpool.c (dump_varpool_node): Dump write-only flag.
24495 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
24497 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
24498 write-only variables.
24499 * ipa.c (process_references): New function.
24500 (set_readonly_bit): New function.
24501 (set_writeonly_bit): New function.
24502 (clear_addressable_bit): New function.
24503 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
24504 fix handling of aliases.
24505 * cgraph.h (struct varpool_node): Add writeonly flag.
24507 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
24509 PR rtl-optimization/60969
24510 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
24511 Calculate costs for this case.
24513 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
24515 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
24516 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
24518 2014-05-16 Richard Biener <rguenther@suse.de>
24520 PR tree-optimization/61194
24521 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
24522 bool patterns ending in a COND_EXPR.
24524 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24526 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
24528 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24530 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
24531 where we were unable to cost an RTX.
24533 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24535 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
24538 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24539 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24541 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
24543 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24544 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24546 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
24547 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
24549 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24550 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24552 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
24555 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24556 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24558 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24561 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24562 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24564 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
24565 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
24567 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24568 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24570 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24571 rotates and shifts.
24573 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24574 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24576 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
24577 ZERO_EXTEND and SIGN_EXTEND better.
24579 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24580 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24582 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
24583 logical operations.
24585 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24586 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24588 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
24589 costs when costing loads and stores to memory.
24591 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24592 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
24594 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
24597 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24599 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
24601 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24602 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24604 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
24606 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
24608 (aarch64_rtx_mult_cost): New.
24609 (aarch64_rtx_costs): Use it, refactor as appropriate.
24611 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24612 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24614 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
24615 emit instructions, return number of instructions which would
24617 (aarch64_add_constant): Update call to aarch64_build_constant.
24618 (aarch64_output_mi_thunk): Likewise.
24619 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
24622 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24624 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
24625 (TARGET_RTX_COSTS): Call it.
24627 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24629 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
24630 (cortexa57_vector_cost): Likewise.
24631 (cortexa57_tunings): Use them.
24633 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24635 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
24636 (cpu_addrcost_table): Use it.
24637 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
24638 (aarch64_address_cost): Rewrite using aarch64_classify_address,
24641 2014-05-16 Richard Biener <rguenther@suse.de>
24643 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
24644 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
24645 (visit_phi): Ignore edges marked as not executable.
24646 (class cond_dom_walker): New.
24647 (cond_dom_walker::before_dom_children): Value-number
24648 control statements and mark successor edges as not
24649 executable if possible.
24650 (run_scc_vn): First walk all control statements in
24651 dominator order, marking edges as not executable.
24652 * tree-inline.c (copy_edges_for_bb): Be not confused
24653 about random edge flags.
24655 2014-05-16 Richard Biener <rguenther@suse.de>
24657 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
24659 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
24662 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
24663 (__TM_simple_begin): Use it.
24664 (__TM_begin): Likewise.
24666 2014-05-15 Martin Jambor <mjambor@suse.cz>
24669 * ipa-prop.c (update_indirect_edges_after_inlining): Check
24670 type_preserved flag when the indirect edge is polymorphic.
24672 2014-05-15 Martin Jambor <mjambor@suse.cz>
24674 PR tree-optimization/61090
24675 * tree-sra.c (sra_modify_expr): Pass the current gsi to
24676 build_ref_for_model.
24678 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24680 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
24681 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
24683 2014-05-15 Jakub Jelinek <jakub@redhat.com>
24685 PR tree-optimization/61158
24686 * fold-const.c (fold_binary_loc): If X is zero-extended and
24687 shiftc >= prec, make sure zerobits is all ones instead of
24688 invoking undefined behavior.
24690 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24692 * regcprop.h: New file.
24693 * regcprop.c (skip_debug_insn_p): New decl.
24694 (replace_oldest_value_reg): Check skip_debug_insn_p.
24695 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
24696 * shrink-wrap.c: Include regcprop.h.
24697 (prepare_shrink_wrap): Call
24698 copyprop_hardreg_forward_bb_without_debug_insn.
24700 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24702 * shrink-wrap.h: Update comment.
24703 * shrink-wrap.c: Update comment.
24704 (next_block_for_reg): Rename to live_edge_for_reg.
24705 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
24706 (move_insn_for_shrink_wrap): Split live_edge.
24707 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
24709 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
24711 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
24713 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
24714 * config/sparc/sparc.md (fptype_ut699): New attribute.
24715 (in_branch_delay): Return false if -mfix-ut699 is specified and
24716 fptype_ut699 is set to single.
24717 (truncdfsf2): Add fptype_ut699 attribute.
24718 (fix_truncdfsi2): Likewise.
24719 (floatsisf2): Change fptype attribute.
24720 (fix_truncsfsi2): Likewise.
24721 (negtf2_notv9): Delete.
24722 (negtf2_v9): Likewise.
24723 (negtf2_hq): New instruction.
24724 (negtf2): New instruction and splitter.
24725 (negdf2_notv9): Rewrite.
24726 (abstf2_notv9): Delete.
24727 (abstf2_hq_v9): Likewise.
24728 (abstf2_v9): Likewise.
24729 (abstf2_hq): New instruction.
24730 (abstf2): New instruction and splitter.
24731 (absdf2_notv9): Rewrite.
24733 2014-05-14 Cary Coutant <ccoutant@google.com>
24736 * opts.c (common_handle_option): Don't special-case "-g".
24737 (set_debug_level): Default to at least level 2 with "-g".
24739 2014-05-14 DJ Delorie <dj@redhat.com>
24741 * config/msp430/msp430.c (msp430_builtin): Add
24742 MSP430_BUILTIN_DELAY_CYCLES.
24743 (msp430_init_builtins): Register void __delay_cycles(long long).
24744 (msp430_builtin_decl): Add it.
24745 (cg_magic_constant): New.
24746 (msp430_expand_delay_cycles): New.
24747 (msp430_expand_builtin): Call it.
24748 (msp430_print_operand_raw): Change integer printing from "int" to
24750 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
24751 (delay_cycles_start): New.
24752 (delay_cycles_end): New.
24753 (delay_cycles_32): New.
24754 (delay_cycles_32x): New.
24755 (delay_cycles_16): New.
24756 (delay_cycles_16x): New.
24757 (delay_cycles_2): New.
24758 (delay_cycles_1): New.
24759 * doc/extend.texi: Document __delay_cycles().
24761 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
24763 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
24764 length attribute computation.
24766 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
24769 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
24771 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
24774 * config/sparc/sparc.md: Fix types of low and high in DI constant
24775 splitter. Use gen_int_mode in some other splitters.
24777 2014-05-14 Martin Jambor <mjambor@suse.cz>
24780 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
24782 2014-05-14 James Norris <jnorris@codesourcery.com>
24784 * omp-low.c (expand_parallel_call): Remove shadow variable.
24785 (expand_omp_taskreg): Likewise.
24787 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
24789 * common/config/i386/i386-common.c
24790 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
24791 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
24792 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
24793 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
24794 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
24795 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
24796 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
24797 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
24798 xsavecintrin.h, xsavesintrin.h.
24799 (x86_64-*-*): Ditto.
24800 * config/i386/clflushoptintrin.h: New.
24801 * config/i386/xsavecintrin.h: Ditto.
24802 * config/i386/xsavesintrin.h: Ditto.
24803 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
24804 (bit_XSAVES): Ditto.
24805 (bit_XSAVES): Ditto.
24806 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24807 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
24809 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24810 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
24811 OPTION_MASK_ISA_XSAVES.
24812 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
24813 -mxsavec, -mxsaves.
24814 (PTA_CLFLUSHOPT) Define.
24815 (PTA_XSAVEC): Ditto.
24816 (PTA_XSAVES): Ditto.
24817 (ix86_option_override_internal): Handle new options.
24818 (ix86_valid_target_attribute_inner_p): Ditto.
24819 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
24820 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
24821 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
24822 (bdesc_special_args): Add __builtin_ia32_xsaves,
24823 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
24824 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
24825 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
24826 (ix86_expand_builtin): Handle new builtins.
24827 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
24828 (TARGET_CLFLUSHOPT_P): Ditto.
24829 (TARGET_XSAVEC): Ditto.
24830 (TARGET_XSAVEC_P): Ditto.
24831 (TARGET_XSAVES): Ditto.
24832 (TARGET_XSAVES_P): Ditto.
24833 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
24834 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
24835 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
24837 (ANY_XRSTOR64): Ditto.
24839 (xrstor): Change into <xrstor>.
24840 (xrstor_rex64): Change into <xrstor>_rex64.
24841 (xrstor64): Change into <xrstor>64
24843 * config/i386/i386.opt (mclflushopt): New.
24846 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
24848 * doc/invoke.texi: Document new options.
24850 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
24852 PR rtl-optimization/60866
24853 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
24854 Default it to -1. Pass it down to init_simplejump_data.
24855 (init_simplejump_data): New parameter old_seqno. Pass it down
24856 to get_seqno_for_a_jump.
24857 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
24858 initializing new jump seqno as a last resort. Add comment.
24859 (sel_redirect_edge_and_branch): Save old seqno of the conditional
24860 jump and pass it down to sel_init_new_insn.
24861 (sel_redirect_edge_and_branch_force): Likewise.
24863 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
24865 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
24866 shifted values to avoid build warning.
24868 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
24870 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
24871 * cfgrtl.c (rtl_merge_blocks): Fix comment.
24872 (cfg_layout_merge_blocks): Likewise.
24873 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
24875 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
24877 PR rtl-optimization/60901
24878 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
24879 bb predecessor belongs to the same scheduling region. Adjust comment.
24881 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
24883 * doc/sourcebuild.texi: (dfp_hw): Document.
24884 (p8vector_hw): Likewise.
24885 (powerpc_eabi_ok): Likewise.
24886 (powerpc_elfv2): Likewise.
24887 (powerpc_htm_ok): Likewise.
24888 (ppc_recip_hw): Likewise.
24889 (vsx_hw): Likewise.
24891 2014-05-13 Cary Coutant <ccoutant@google.com>
24893 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
24895 2014-05-13 David Malcolm <dmalcolm@redhat.com>
24897 * gengtype-parse.c (require3): Eliminate in favor of...
24899 (require_template_declaration): Update to support optional single *
24902 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
24903 (create_user_defined_type): Handle a single level of explicit
24904 pointerness within template arguments.
24905 (struct write_types_data): Add field "kind".
24906 (filter_type_name): Handle "*" character.
24907 (write_user_func_for_structure_ptr): Require a write_types_data
24908 rather than just a prefix string, so that we can look up the kind
24909 of the wtd and use it as an index into wrote_user_func_for_ptr,
24910 ensuring that such functions are written at most once. Support
24911 subclasses by invoking the marking function of the ultimate base class.
24912 (write_user_func_for_structure_body): Require a write_types_data
24913 rather than just a prefix string, so that we can pass this to
24914 write_user_func_for_structure_ptr.
24915 (write_func_for_structure): Likewise.
24916 (ggc_wtd): Add initializer of new "kind" field.
24917 (pch_wtd): Likewise.
24919 * gengtype.h (enum write_types_kinds): New.
24920 (struct type): Add field wrote_user_func_for_ptr to the "s"
24923 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
24925 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
24926 instead of const_binop.
24927 (fold_binary_loc): Likewise.
24929 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
24931 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
24932 calculation to match get_ref_base_and_extent.
24934 2014-05-13 Catherine Moore <clm@codesourcery.com>
24935 Sandra Loosemore <sandra@codesourcery.com>
24937 * configure.ac: Fix assembly for explicit JALR relocation check.
24938 * configure: Regenerate.
24940 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24942 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
24943 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
24944 Remove associated type declarations and initialisations.
24945 (arm_expand_neon_builtin): Likewise.
24946 (neon_emit_pair_result_insn): Delete.
24947 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
24948 * config/arm/neon.md (neon_vtrn<mode>): Delete.
24949 (neon_vzip<mode>): Likewise.
24950 (neon_vuzp<mode>): Likewise.
24952 2014-05-13 Richard Biener <rguenther@suse.de>
24955 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
24956 it needs revisiting whether the call still may be tail-called.
24958 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24960 * rtl.def (SYMBOL_REF): Remove middle "0" field.
24961 * rtl.h (block_symbol): Reduce number of fields to 2.
24962 (rtx_def): Add u2.symbol_ref_flags.
24963 (SYMBOL_REF_FLAGS): Use it.
24964 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
24965 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
24966 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
24967 Lower index of SYMBOL_REF_DATA.
24968 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
24969 Print SYMBOL_REF_FLAGS at the same time.
24970 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
24972 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24974 * rtl.def (VAR_LOCATION): Remove "i" field.
24975 * rtl.h (rtx_def): Add u2.var_location_status.
24976 (PAT_VAR_LOCATION_STATUS): Use it.
24977 (gen_rtx_VAR_LOCATION): Declare.
24978 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
24979 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
24980 * var-tracking.c (emit_note_insn_var_location): Remove casts.
24982 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24984 * rtl.def (scratch): Fix outdated comment and remove "0" field.
24985 * gengtype.c (adjust_field_rtx_def): Update accordingly.
24987 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24989 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
24990 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
24991 * rtl.h (rtx_def): Add insn_uid to u2 field.
24992 (RTX_FLAG_CHECK8): Delete in favor of...
24993 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
24994 (INSN_DELETED_P): Update accordingly.
24995 (INSN_UID): Use u2.insn_uid.
24996 (INSN_CHAIN_CODE_P): Define.
24997 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
24998 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
24999 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25000 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25001 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25002 indices accordingly.
25003 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25004 Update indices for insn-chain rtxes.
25005 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25006 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25007 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25008 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25009 * combine.c (try_combine): Likewise.
25010 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25012 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25014 * rtl.def (REG): Remove middle field.
25015 * rtl.h (rtx_def): Add orignal_regno to u2.
25016 (ORIGINAL_REGNO): Use it instead of field 1.
25017 (REG_ATTRS): Lower field index accordingly.
25018 * gengtype.c (adjust_field_rtx_def): Remove handling of
25019 ORIGINAL_REGNO. Move REG_ATTRS index down.
25020 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25021 code that prints the REGNO.
25023 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25025 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25028 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25030 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25032 2014-05-13 Bin Cheng <bin.cheng@arm.com>
25034 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25035 (alloc_iv): Lower base expressions containing ADDR_EXPR.
25037 2014-05-13 Ian Bolton <ian.bolton@arm.com>
25039 * config/aarch64/aarch64-protos.h
25040 (aarch64_hard_regno_caller_save_mode): New prototype.
25041 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25043 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25045 2014-05-13 Christian Bruel <christian.bruel@st.com>
25047 * target.def (mode_switching): New hook vector.
25048 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25049 (mode_exit, modepriority_to_mode): Likewise.
25050 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25051 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25052 * target.h: Include tm.h and hard-reg-set.h.
25053 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25054 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25055 * doc/tm.texi Regenerate.
25056 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25057 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25058 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25059 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25060 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25061 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25062 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25063 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
25064 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
25065 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
25066 (ix86_emit_mode_set): Hookify.
25067 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
25069 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25070 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
25071 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
25072 (epiphany_mode_priority_to_mode): Remove declaration.
25073 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
25074 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
25075 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
25077 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
25078 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
25079 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
25081 2014-05-13 Jakub Jelinek <jakub@redhat.com>
25084 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
25085 is const0_rtx, return immediately. Don't test count == 0 when
25088 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25090 * Makefile.in: add shrink-wrap.o.
25091 * config/i386/i386.c: include "shrink-wrap.h"
25092 * function.c: Likewise.
25093 (requires_stack_frame_p, next_block_for_reg,
25094 move_insn_for_shrink_wrap, prepare_shrink_wrap,
25095 dup_block_and_redirect): Move to shrink-wrap.c
25096 (thread_prologue_and_epilogue_insns): Extract three code segments
25097 as functions in shrink-wrap.c
25098 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
25100 * shrink-wrap.c: New file.
25101 * shrink-wrap.h: New file.
25103 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25105 * doc/extend.texi: Reflect current numbers of pragmas. Remove
25106 reference to Solaris.
25108 2014-05-12 Mike Stump <mikestump@comcast.net>
25111 * genattrtab.c (filename): Add.
25112 (convert_set_attr_alternative): Improve error message.
25113 (check_defs): Restore read_md_filename for error messages.
25114 (gen_insn): Save filename.
25116 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
25118 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
25119 -fno-local-ivars and -fivar-visibility.
25120 * c-family/c.opt: Make -Wshadow also implicitly enable
25123 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25125 * doc/tm.texi: Remove reference to deleted macro.
25126 * doc/tm.texi.in: Likewise.
25128 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25131 * config/avr/avr.c (avr_out_store_psi): Use correct constant
25134 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
25137 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
25138 * config/arm/aout.h (License): Same.
25139 * config/arm/bpabi.h (License): Same.
25140 * config/arm/elf.h (License): Same.
25141 * config/arm/linux-elf.h (License): Same.
25142 * config/arm/linux-gas.h (License): Same.
25143 * config/arm/netbsd-elf.h (License): Same.
25144 * config/arm/uclinux-eabi.h (License): Same.
25145 * config/arm/uclinux-elf.h (License): Same.
25146 * config/arm/vxworks.h (License): Same.
25148 2014-05-11 Jakub Jelinek <jakub@redhat.com>
25150 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
25151 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
25152 number of operands to 3.
25153 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
25154 * tree-nested.c (convert_nonlocal_omp_clauses,
25155 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
25156 * gimplify.c (gimplify_scan_omp_clauses): Handle
25157 OMP_CLAUSE_LINEAR_STMT.
25158 * omp-low.c (lower_rec_input_clauses): Fix typo.
25159 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
25160 cast between Fortran boolean_type_node and C _Bool if
25163 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
25165 PR tree-optimization/61136
25166 * wide-int.h (multiple_of_p): Define a version that doesn't return
25168 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
25169 integer_zerop/const_binop pair.
25170 (multiple_of_p): Likewise, converting both operands to widest_int
25173 2014-05-09 Teresa Johnson <tejohnson@google.com>
25175 * cgraphunit.c (analyze_functions): Use correct dump file.
25177 2014-05-09 Florian Weimer <fweimer@redhat.com>
25179 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
25181 (stack_protect_return_slot_p): New function.
25182 (expand_used_vars): Call stack_protect_decl_p and
25183 stack_protect_return_slot_p for -fstack-protector-strong.
25185 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
25186 Andrew Haley <aph@redhat.com>
25187 Richard Sandiford <rdsandiford@googlemail.com>
25189 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
25192 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
25194 PR middle-end/61111
25195 * fold-const.c (fold_binary_loc): Changed width of mask.
25197 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25199 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
25200 unsigned int initializers for regno_in, regno_out.
25202 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25205 * config/avr/avr.md (cc): Add new attribute set_vzn.
25206 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
25207 Set cc insn attribute to set_vzn instead of set_zn for alternatives
25208 with INC, DEC or NEG.
25209 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
25210 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
25211 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
25213 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25216 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25218 * wide-int.cc (UTItype): Define.
25219 (UDWtype): Define for appropriate W_TYPE_SIZE.
25221 2014-05-09 Richard Biener <rguenther@suse.de>
25223 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
25224 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
25225 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
25226 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
25227 ssa_propagate): Adjust.
25229 2014-05-08 Jeff Law <law@redhat.com>
25231 PR tree-optimization/61009
25232 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
25233 tri-state rather than a boolean. When a block is too big to
25234 thread through, inform caller via negative return value.
25235 (thread_across_edge): If a block was too big for normal threading,
25236 then it's too big for a joiner too, so remove temporary equivalences
25237 and return immediately.
25239 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
25240 Matthias Klose <doko@ubuntu.com>
25243 * optc-gen.awk: Fix option handling for -Wunused-parameter.
25245 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25248 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
25250 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25253 * config/alpha/alpha.c: Include gimple-iterator.h.
25254 (alpha_gimple_fold_builtin): New function. Move
25255 ALPHA_BUILTIN_UMULH folding from ...
25256 (alpha_fold_builtin): ... here.
25257 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
25259 2014-05-08 Wei Mi <wmi@google.com>
25262 * config/i386/i386.c (ix86_compute_frame_layout): Update
25263 preferred_stack_boundary for call, expanded from tls descriptor.
25264 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
25265 to depend on SP register.
25266 (*tls_local_dynamic_base_32_gnu): Ditto.
25267 (*tls_local_dynamic_32_once): Ditto.
25268 (tls_global_dynamic_64_<mode>): Set
25269 ix86_tls_descriptor_calls_expanded_in_cfun.
25270 (tls_local_dynamic_base_64_<mode>): Ditto.
25271 (tls_global_dynamic_32): Set
25272 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
25273 to depend on SP register.
25274 (tls_local_dynamic_base_32): Ditto.
25276 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25278 * config/arm/arm_neon.h: Update comment.
25279 * config/arm/neon-docgen.ml: Delete.
25280 * config/arm/neon-gen.ml: Delete.
25281 * doc/arm-neon-intrinsics.texi: Update comment.
25283 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25285 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
25287 (vand, vorr, veor, vorn, vbic): Remove.
25288 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
25290 (neon_vsub_unspec): Likewise.
25291 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
25293 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25295 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
25296 (vadd_s16): Likewise.
25297 (vadd_s32): Likewise.
25298 (vadd_f32): Likewise.
25299 (vadd_u8): Likewise.
25300 (vadd_u16): Likewise.
25301 (vadd_u32): Likewise.
25302 (vadd_s64): Likewise.
25303 (vadd_u64): Likewise.
25304 (vaddq_s8): Likewise.
25305 (vaddq_s16): Likewise.
25306 (vaddq_s32): Likewise.
25307 (vaddq_s64): Likewise.
25308 (vaddq_f32): Likewise.
25309 (vaddq_u8): Likewise.
25310 (vaddq_u16): Likewise.
25311 (vaddq_u32): Likewise.
25312 (vaddq_u64): Likewise.
25313 (vmul_s8): Likewise.
25314 (vmul_s16): Likewise.
25315 (vmul_s32): Likewise.
25316 (vmul_f32): Likewise.
25317 (vmul_u8): Likewise.
25318 (vmul_u16): Likewise.
25319 (vmul_u32): Likewise.
25320 (vmul_p8): Likewise.
25321 (vmulq_s8): Likewise.
25322 (vmulq_s16): Likewise.
25323 (vmulq_s32): Likewise.
25324 (vmulq_f32): Likewise.
25325 (vmulq_u8): Likewise.
25326 (vmulq_u16): Likewise.
25327 (vmulq_u32): Likewise.
25328 (vsub_s8): Likewise.
25329 (vsub_s16): Likewise.
25330 (vsub_s32): Likewise.
25331 (vsub_f32): Likewise.
25332 (vsub_u8): Likewise.
25333 (vsub_u16): Likewise.
25334 (vsub_u32): Likewise.
25335 (vsub_s64): Likewise.
25336 (vsub_u64): Likewise.
25337 (vsubq_s8): Likewise.
25338 (vsubq_s16): Likewise.
25339 (vsubq_s32): Likewise.
25340 (vsubq_s64): Likewise.
25341 (vsubq_f32): Likewise.
25342 (vsubq_u8): Likewise.
25343 (vsubq_u16): Likewise.
25344 (vsubq_u32): Likewise.
25345 (vsubq_u64): Likewise.
25346 (vand_s8): Likewise.
25347 (vand_s16): Likewise.
25348 (vand_s32): Likewise.
25349 (vand_u8): Likewise.
25350 (vand_u16): Likewise.
25351 (vand_u32): Likewise.
25352 (vand_s64): Likewise.
25353 (vand_u64): Likewise.
25354 (vandq_s8): Likewise.
25355 (vandq_s16): Likewise.
25356 (vandq_s32): Likewise.
25357 (vandq_s64): Likewise.
25358 (vandq_u8): Likewise.
25359 (vandq_u16): Likewise.
25360 (vandq_u32): Likewise.
25361 (vandq_u64): Likewise.
25362 (vorr_s8): Likewise.
25363 (vorr_s16): Likewise.
25364 (vorr_s32): Likewise.
25365 (vorr_u8): Likewise.
25366 (vorr_u16): Likewise.
25367 (vorr_u32): Likewise.
25368 (vorr_s64): Likewise.
25369 (vorr_u64): Likewise.
25370 (vorrq_s8): Likewise.
25371 (vorrq_s16): Likewise.
25372 (vorrq_s32): Likewise.
25373 (vorrq_s64): Likewise.
25374 (vorrq_u8): Likewise.
25375 (vorrq_u16): Likewise.
25376 (vorrq_u32): Likewise.
25377 (vorrq_u64): Likewise.
25378 (veor_s8): Likewise.
25379 (veor_s16): Likewise.
25380 (veor_s32): Likewise.
25381 (veor_u8): Likewise.
25382 (veor_u16): Likewise.
25383 (veor_u32): Likewise.
25384 (veor_s64): Likewise.
25385 (veor_u64): Likewise.
25386 (veorq_s8): Likewise.
25387 (veorq_s16): Likewise.
25388 (veorq_s32): Likewise.
25389 (veorq_s64): Likewise.
25390 (veorq_u8): Likewise.
25391 (veorq_u16): Likewise.
25392 (veorq_u32): Likewise.
25393 (veorq_u64): Likewise.
25394 (vbic_s8): Likewise.
25395 (vbic_s16): Likewise.
25396 (vbic_s32): Likewise.
25397 (vbic_u8): Likewise.
25398 (vbic_u16): Likewise.
25399 (vbic_u32): Likewise.
25400 (vbic_s64): Likewise.
25401 (vbic_u64): Likewise.
25402 (vbicq_s8): Likewise.
25403 (vbicq_s16): Likewise.
25404 (vbicq_s32): Likewise.
25405 (vbicq_s64): Likewise.
25406 (vbicq_u8): Likewise.
25407 (vbicq_u16): Likewise.
25408 (vbicq_u32): Likewise.
25409 (vbicq_u64): Likewise.
25410 (vorn_s8): Likewise.
25411 (vorn_s16): Likewise.
25412 (vorn_s32): Likewise.
25413 (vorn_u8): Likewise.
25414 (vorn_u16): Likewise.
25415 (vorn_u32): Likewise.
25416 (vorn_s64): Likewise.
25417 (vorn_u64): Likewise.
25418 (vornq_s8): Likewise.
25419 (vornq_s16): Likewise.
25420 (vornq_s32): Likewise.
25421 (vornq_s64): Likewise.
25422 (vornq_u8): Likewise.
25423 (vornq_u16): Likewise.
25424 (vornq_u32): Likewise.
25425 (vornq_u64): Likewise.
25427 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25429 * wide-int.cc (UTItype): Define.
25430 (UDWtype): Define for appropriate W_TYPE_SIZE.
25432 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
25434 PR tree-optimization/59100
25435 * tree-ssa-phiopt.c: Include tree-inline.h.
25436 (neutral_element_p, absorbing_element_p): New functions.
25437 (value_replacement): Handle conditional binary operations with a
25438 neutral or absorbing element.
25440 2014-05-08 Richard Biener <rguenther@suse.de>
25442 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25443 folding the expression.
25444 (valueize_expr): Remove.
25445 (visit_reference_op_load): Do not valueize the result of
25447 (simplify_binary_expression): Likewise.
25448 (simplify_unary_expression): Likewise.
25450 2014-05-08 Richard Biener <rguenther@suse.de>
25452 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25453 looking at TYPE_ARG_TYPES.
25455 2014-05-08 Richard Biener <rguenther@suse.de>
25457 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
25458 pointer propagation special-case.
25460 2014-05-08 Bin Cheng <bin.cheng@arm.com>
25462 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
25463 core part of address expressions.
25465 2014-05-08 Alan Modra <amodra@gmail.com>
25468 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
25469 loads and stores when -mno-strict-align at any alignment.
25470 (expand_block_clear): Similarly. Also correct calculation of
25473 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
25475 PR middle-end/39246
25476 * tree-complex.c (expand_complex_move): Keep line info when expanding
25478 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
25479 of complex expression. Use new argument to display correct location
25480 for values coming from phi statement.
25481 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
25482 (warn_uninitialized_phi): Pass location of phi argument to
25484 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
25485 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
25487 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25489 * config/rs6000/predicates.md (indexed_address_mem): New.
25490 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
25491 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
25492 fpstore_ux, fpstore_u.
25493 (sign_extend, indexed, update): New.
25494 (cell_micro): Adjust.
25495 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
25496 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
25497 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
25498 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
25499 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
25500 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
25501 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
25502 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
25503 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
25504 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
25505 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
25506 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
25507 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
25508 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
25509 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
25511 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
25512 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
25513 *vsx_extract_<mode>_store): Adjust.
25514 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
25515 is_cracked_insn, insn_must_be_first_in_group,
25516 insn_must_be_last_in_group): Adjust.
25518 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
25520 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
25521 ppc440-fpstore): Adjust.
25522 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
25523 ppc476-fpstore): Adjust.
25524 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
25525 ppc601-fpstore): Adjust.
25526 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
25528 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
25530 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
25531 ppc7450-fpstore): Adjust.
25532 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
25533 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
25534 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
25536 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
25537 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
25538 cell-fpstore, cell-fpstore-update): Adjust.
25539 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
25540 ppce300c3_store, ppce300c3_fpstore): Adjust.
25541 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
25542 e500mc_fpstore): Adjust.
25543 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
25544 e500mc64_store, e500mc64_fpstore): Adjust.
25545 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
25546 e5500_fpstore): Adjust.
25547 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
25548 e6500_fpstore): Adjust.
25549 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
25551 * config/rs6000/power4.md (power4-load, power4-load-ext,
25552 power4-load-ext-update, power4-load-ext-update-indexed,
25553 power4-load-update-indexed, power4-load-update, power4-fpload,
25554 power4-fpload-update, power4-store, power4-store-update,
25555 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
25557 * config/rs6000/power5.md (power5-load, power5-load-ext,
25558 power5-load-ext-update, power5-load-ext-update-indexed,
25559 power5-load-update-indexed, power5-load-update, power5-fpload,
25560 power5-fpload-update, power5-store, power5-store-update,
25561 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
25563 * config/rs6000/power6.md (power6-load, power6-load-ext,
25564 power6-load-update, power6-load-update-indexed,
25565 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
25566 power6-fpload-update, power6-store, power6-store-update,
25567 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
25569 * config/rs6000/power7.md (power7-load, power7-load-ext,
25570 power7-load-update, power7-load-update-indexed,
25571 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
25572 power7-fpload-update, power7-store, power7-store-update,
25573 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
25575 * config/rs6000/power8.md (power8-load, power8-load-update,
25576 power8-load-ext, power8-load-ext-update, power8-fpload,
25577 power8-fpload-update, power8-store, power8-store-update-indexed,
25578 power8-fpstore, power8-fpstore-update): Adjust.
25579 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
25581 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
25582 titan_lsu_store, titan_lsu_fpstore): Adjust.
25583 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
25585 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25588 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
25589 unrolled byte insns. Emit address increments after move insns.
25591 2014-05-07 David Malcolm <dmalcolm@redhat.com>
25593 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
25594 const_gimple, rather than a gimple.
25595 (gimple_call_builtin_p): Likewise, for the three variants.
25597 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
25598 (gimple_call_builtin_p): Likewise, for the three variants.
25600 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25602 PR tree-optimization/61095
25603 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
25605 2014-05-07 Richard Biener <rguenther@suse.de>
25607 PR tree-optimization/61034
25608 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
25609 (maybe_skip_until): Use translate to take into account
25610 lattices when trying to do disambiguations.
25611 (get_continuation_for_phi_1): Likewise.
25612 (get_continuation_for_phi): Adjust for added translate arguments.
25613 (walk_non_aliased_vuses): Likewise.
25614 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
25615 (walk_non_aliased_vuses): Likewise.
25616 (call_may_clobber_ref_p_1): Declare.
25617 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
25618 calls. Stop early if we are only supposed to disambiguate.
25619 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
25621 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
25623 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
25624 Emit an error when the function has arguments.
25626 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
25628 * cfgloop.h (unswitch_loops): Remove.
25629 * doc/passes.texi: Remove references to loop-unswitch.c
25630 * timevar.def (TV_LOOP_UNSWITCH): Remove.
25632 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
25634 * tree-vect-data-refs.c (vect_grouped_load_supported): New
25635 check for loads group of length 3.
25636 (vect_permute_load_chain): New permutations for loads group of
25638 * tree-vect-stmts.c (vect_model_load_cost): Change cost
25639 of vec_perm_shuffle for the new permutations.
25641 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
25643 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
25644 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
25645 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
25646 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
25647 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
25648 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
25649 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
25650 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
25652 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
25654 * loop-unswitch.c: Delete.
25656 2014-05-07 Richard Biener <rguenther@suse.de>
25658 * config.gcc: Always set need_64bit_hwint to yes.
25660 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
25662 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
25663 of using optimize_size.
25665 2014-05-06 Mike Stump <mikestump@comcast.net>
25667 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
25669 2014-05-06 Joseph Myers <joseph@codesourcery.com>
25671 * config/i386/sse.md (*mov<mode>_internal)
25672 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
25673 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
25674 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
25675 (*<code><mode>3, *andnot<mode>3<mask_name>)
25676 (<mask_codefor><code><mode>3<mask_name>): Only consider
25677 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
25679 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25682 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
25684 * lra-constraints.c (valid_address_p): Move earlier in file.
25685 Add a constraint argument to the address_info version.
25686 (satisfies_memory_constraint_p): New function.
25687 (satisfies_address_constraint_p): Likewise.
25688 (process_alt_operands, curr_insn_transform): Use them.
25689 (process_address): Pass the constraint to valid_address_p when
25690 checking address operands.
25692 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
25694 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
25695 to their respective blocks. Fix inadvertent use of "node".
25697 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25699 * emit-rtl.c (init_derived_machine_modes): New functionm, split
25701 (init_emit_once): ...here.
25702 * rtl.h (init_derived_machine_modes): Declare.
25703 * toplev.c (do_compile): Call it even if no_backend.
25705 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
25706 Mike Stump <mikestump@comcast.net>
25707 Richard Sandiford <rdsandiford@googlemail.com>
25708 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25710 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
25711 (rtx_equal_for_memref_p): Update comment.
25712 (adjust_offset_for_component_ref): Use wide-int interfaces.
25713 * builtins.c (get_object_alignment_2): Likewise.
25714 (c_readstr): Likewise.
25715 (target_char_cast): Add comment.
25716 (determine_block_size): Use wide-int interfaces.
25717 (expand_builtin_signbit): Likewise.
25718 (fold_builtin_int_roundingfn): Likewise.
25719 (fold_builtin_bitop): Likewise.
25720 (fold_builtin_bswap): Likewise.
25721 (fold_builtin_logarithm): Use signop.
25722 (fold_builtin_pow): Likewise.
25723 (fold_builtin_memory_op): Use wide-int interfaces.
25724 (fold_builtin_object_size): Likewise.
25725 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
25726 nb_iterations_estimate.
25727 (record_niter_bound): Use wide-int interfaces.
25728 (get_estimated_loop_iterations_int): Likewise.
25729 (get_estimated_loop_iterations): Likewise.
25730 (get_max_loop_iterations): Likewise.
25731 * cfgloop.h: Include wide-int.h.
25732 (struct nb_iter_bound): Change bound to widest_int.
25733 (struct loop): Change nb_iterations_upper_bound and
25734 nb_iterations_estimate to widest_int.
25735 (record_niter_bound): Switch to use widest_int.
25736 (get_estimated_loop_iterations): Likewise.
25737 (get_max_loop_iterations): Likewise.
25738 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
25739 update for wide-int.
25740 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
25741 * combine.c (try_combine): Likewise.
25742 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
25743 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
25745 (aarch64_float_const_representable_p): Likewise.
25746 * config/arc/arc.c: Include wide-int.h.
25747 (arc_can_use_doloop_p): Use wide-int interfaces.
25748 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
25749 (vfp3_const_double_index): Likewise.
25750 * config/avr/avr.c (avr_out_round): Likewise.
25751 (avr_fold_builtin): Likewise.
25752 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
25753 (bfin_can_use_doloop_p): Likewise.
25754 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
25755 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
25756 * config/i386/i386.c: Include wide-int.h.
25757 (ix86_data_alignment): Use wide-int interfaces.
25758 (ix86_local_alignment): Likewise.
25759 (ix86_emit_swsqrtsf): Update real_from_integer.
25760 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
25761 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
25762 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
25763 (zero_constant): Likewise.
25764 (input_operand): Likewise.
25765 (splat_input_operand): Likewise.
25766 (non_logical_cint_operand): Change const_double to const_wide_int.
25767 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
25768 (easy_altivec_constant): Remove comment.
25769 (paired_expand_vector_init): Use CONSTANT_P.
25770 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
25771 (rs6000_emit_move): Update checks.
25772 (rs6000_aggregate_candidate): Use wide-int interfaces.
25773 (rs6000_expand_ternop_builtin): Likewise.
25774 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
25775 (rs6000_assemble_integer): Likewise.
25776 (rs6000_hash_constant): Likewise.
25777 (output_toc): Likewise.
25778 (rs6000_rtx_costs): Likewise.
25779 (rs6000_emit_swrsqrt); Update call to real_from_integer.
25780 * config/rs6000/rs6000-c.c: Include wide-int.h.
25781 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
25782 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
25783 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
25784 Handle CONST_WIDE_INT.
25785 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
25786 Use tree_fits_uhwi_p.
25787 * config/sparc/sparc.c: Include wide-int.h.
25788 (sparc_fold_builtin): Use wide-int interfaces.
25789 * config/vax/vax.c: Include wide-int.h.
25790 (vax_float_literal): Use real_from_integer.
25791 * coretypes.h (struct hwivec_def): New.
25793 (const_hwivec): New.
25794 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
25795 (equiv_constant): Handle CONST_WIDE_INT.
25796 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
25797 (cselib_hash_rtx): Handle CONST_WIDE_INT.
25798 * dbxout.c (stabstr_U): Use wide-int interfaces.
25799 (dbxout_type): Update to use cst_fits_shwi_p.
25800 * defaults.h (LOG2_BITS_PER_UNIT): Define.
25801 (TARGET_SUPPORTS_WIDE_INT): Add default.
25802 * dfp.c: Include wide-int.h.
25803 (decimal_real_to_integer2): Use wide-int interfaces and rename to
25804 decimal_real_to_integer.
25805 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
25806 decimal_real_to_integer.
25807 * doc/generic.texi (Constant expressions): Update for wide_int.
25808 * doc/rtl.texi (const_double): Likewise.
25809 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
25810 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
25811 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
25812 (REAL_VALUE_FROM_INT): Remove.
25813 (TARGET_SUPPORTS_WIDE_INT): New.
25814 * doc/tm.texi: Regenerate.
25815 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
25816 * double-int.h: Include wide-int.h.
25817 (struct wi::int_traits): New.
25818 * dwarf2out.c (get_full_len): New.
25819 (dw_val_equal_p): Add case dw_val_class_wide_int.
25820 (size_of_loc_descr): Likewise.
25821 (output_loc_operands): Likewise.
25822 (insert_double): Remove.
25823 (insert_wide_int): New.
25824 (add_AT_wide): New.
25825 (print_die): Add case dw_val_class_wide_int.
25826 (attr_checksum): Likewise.
25827 (attr_checksum_ordered): Likewise.
25828 (same_dw_val_p): Likewise.
25829 (size_of_die): Likewise.
25830 (value_format): Likewise.
25831 (output_die): Likewise.
25832 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
25834 (clz_loc_descriptor): Use wide-int interfaces.
25835 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
25836 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
25837 (round_up_to_align): Use wide-int interfaces.
25838 (field_byte_offset): Likewise.
25839 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
25840 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
25841 CONST_DOUBLE handling. Use wide-int interfaces.
25842 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
25843 (gen_enumeration_type_die): Use add_AT_wide.
25844 (hash_loc_operands): Add case dw_val_class_wide_int.
25845 (compare_loc_operands): Likewise.
25846 * dwarf2out.h: Include wide-int.h.
25847 (wide_int_ptr): New.
25848 (enum dw_val_class): Add dw_val_class_wide_int.
25849 (struct dw_val_struct): Add val_wide.
25850 * emit-rtl.c (const_wide_int_htab): New.
25851 (const_wide_int_htab_hash): New.
25852 (const_wide_int_htab_eq): New.
25853 (lookup_const_wide_int): New.
25854 (const_double_htab_hash): Use wide-int interfaces.
25855 (const_double_htab_eq): Likewise.
25856 (rtx_to_double_int): Conditionally compile for wide-int.
25857 (immed_double_int_const): Rename to immed_wide_int_const and
25858 update for wide-int.
25859 (immed_double_const): Conditionally compile for wide-int.
25860 (init_emit_once): Use wide-int interfaces.
25861 * explow.c (plus_constant): Likewise.
25862 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
25863 (lshift_value): Use wide-int interfaces.
25864 (expand_mult): Likewise.
25865 (choose_multiplier): Likewise.
25866 (expand_smod_pow2): Likewise.
25867 (make_tree): Likewise.
25868 * expr.c (convert_modes): Consolidate handling of constants.
25869 Use wide-int interfaces.
25870 (emit_group_load_1): Add note.
25871 (store_expr): Update comment.
25872 (get_inner_reference): Use wide-int interfaces.
25873 (expand_constructor): Update comment.
25874 (expand_expr_real_2): Use wide-int interfaces.
25875 (expand_expr_real_1): Likewise.
25876 (reduce_to_bit_field_precision): Likewise.
25877 (const_vector_from_tree): Likewise.
25878 * final.c: Include wide-int-print.h.
25879 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
25880 * fixed-value.c: Include wide-int.h.
25881 (fixed_from_string): Use wide-int interfaces.
25882 (fixed_to_decimal): Likewise.
25883 (fixed_convert_from_real): Likewise.
25884 (real_convert_from_fixed): Likewise.
25885 * fold-const.h (mem_ref_offset): Return an offset_int.
25886 (div_if_zero_remainder): Remove code parameter.
25887 * fold-const.c (div_if_zero_remainder): Remove code parameter.
25888 Use wide-int interfaces.
25889 (may_negate_without_overflow_p): Use wide-int interfaces.
25890 (negate_expr_p): Likewise.
25891 (fold_negate_expr): Likewise.
25892 (int_const_binop_1): Likewise.
25893 (const_binop): Likewise.
25894 (fold_convert_const_int_from_int): Likewise.
25895 (fold_convert_const_int_from_real): Likewise.
25896 (fold_convert_const_int_from_fixed): Likewise.
25897 (fold_convert_const_fixed_from_int): Likewise.
25898 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
25899 (sign_bit_p): Use wide-int interfaces.
25900 (make_range_step): Likewise.
25901 (build_range_check): Likewise. Pass an integer of the correct type
25902 instead of using integer_one_node.
25903 (range_predecessor): Pass an integer of the correct type instead
25904 of using integer_one_node.
25905 (range_successor): Likewise.
25906 (merge_ranges): Likewise.
25907 (unextend): Use wide-int interfaces.
25908 (extract_muldiv_1): Likewise.
25909 (fold_div_compare): Likewise.
25910 (fold_single_bit_test): Likewise.
25911 (fold_sign_changed_comparison): Likewise.
25912 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
25913 (fold_plusminus_mult_expr): Use wide-int interfaces.
25914 (native_encode_int): Likewise.
25915 (native_interpret_int): Likewise.
25916 (fold_unary_loc): Likewise.
25917 (pointer_may_wrap_p): Likewise.
25918 (size_low_cst): Likewise.
25919 (mask_with_tz): Likewise.
25920 (fold_binary_loc): Likewise.
25921 (fold_ternary_loc): Likewise.
25922 (multiple_of_p): Likewise.
25923 (tree_call_nonnegative_warnv_p): Update calls to
25924 tree_int_cst_min_precision and real_from_integer.
25925 (fold_negate_const): Use wide-int interfaces.
25926 (fold_abs_const): Likewise.
25927 (fold_relational_const): Use tree_int_cst_lt.
25928 (round_up_loc): Use wide-int interfaces.
25929 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
25930 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
25931 * gengtype.c: Remove include of double-int.h.
25932 (do_typedef): Use wide-int interfaces.
25933 (open_base_files): Add wide-int.h.
25934 (main): Add offset_int and widest_int typedefs.
25935 * gengtype-lex.l: Handle "^".
25936 (CXX_KEYWORD): Add "static".
25937 * gengtype-parse.c (require3): New.
25938 (require_template_declaration): Handle constant template arguments
25939 and nested templates.
25940 * gengtype-state.c: Don't include "double-int.h".
25941 * genpreds.c (write_one_predicate_function): Update comment.
25942 (write_tm_constrs_h): Add check for hval and lval use in
25944 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
25945 (add_to_sequence): Likewise.
25946 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
25947 and const_double_operand.
25948 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
25950 * gimple-fold.c (get_base_constructor): Likewise.
25951 (fold_array_ctor_reference): Likewise.
25952 (fold_nonarray_ctor_reference): Likewise.
25953 (fold_const_aggregate_ref_1): Likewise.
25954 (gimple_val_nonnegative_real_p): Likewise.
25955 (gimple_fold_indirect_ref): Likewise.
25956 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
25957 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
25958 (struct slsr_cand_d): Change index to be widest_int.
25959 (struct incr_info_d): Change incr to be widest_int.
25960 (alloc_cand_and_find_basis): Use wide-int interfaces.
25961 (slsr_process_phi): Likewise.
25962 (backtrace_base_for_ref): Likewise. Return a widest_int.
25963 (restructure_reference): Take a widest_int instead of a double_int.
25964 (slsr_process_ref): Use wide-int interfaces.
25965 (create_mul_ssa_cand): Likewise.
25966 (create_mul_imm_cand): Likewise.
25967 (create_add_ssa_cand): Likewise.
25968 (create_add_imm_cand): Take a widest_int instead of a double_int.
25969 (slsr_process_add): Use wide-int interfaces.
25970 (slsr_process_cast): Likewise.
25971 (slsr_process_copy): Likewise.
25972 (dump_candidate): Likewise.
25973 (dump_incr_vec): Likewise.
25974 (replace_ref): Likewise.
25975 (cand_increment): Likewise. Return a widest_int.
25976 (cand_abs_increment): Likewise.
25977 (replace_mult_candidate): Take a widest_int instead of a double_int.
25978 (replace_unconditional_candidate): Use wide-int interfaces.
25979 (incr_vec_index): Take a widest_int instead of a double_int.
25980 (create_add_on_incoming_edge): Likewise.
25981 (create_phi_basis): Use wide-int interfaces.
25982 (replace_conditional_candidate): Likewise.
25983 (record_increment): Take a widest_int instead of a double_int.
25984 (record_phi_increments): Use wide-int interfaces.
25985 (phi_incr_cost): Take a widest_int instead of a double_int.
25986 (lowest_cost_path): Likewise.
25987 (total_savings): Likewise.
25988 (analyze_increments): Use wide-int interfaces.
25989 (ncd_with_phi): Take a widest_int instead of a double_int.
25990 (ncd_of_cand_and_phis): Likewise.
25991 (nearest_common_dominator_for_cands): Likewise.
25992 (insert_initializers): Use wide-int interfaces.
25993 (all_phi_incrs_profitable): Likewise.
25994 (replace_one_candidate): Likewise.
25995 (replace_profitable_candidates): Likewise.
25996 * godump.c: Include wide-int-print.h.
25997 (go_output_typedef): Use wide-int interfaces.
25998 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
25999 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26000 (build_loop_iteration_domains): Likewise.
26001 * hooks.h: Include wide-int.h rather than double-int.h.
26002 (hook_bool_dint_dint_uint_bool_true): Delete.
26003 (hook_bool_wint_wint_uint_bool_true): Declare.
26004 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26005 (hook_bool_wint_wint_uint_bool_true): New.
26006 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26008 (ubsan_expand_si_overflow_mul_check): Likewise.
26009 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26010 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26011 (get_ancestor_addr_info): Likewise.
26012 (ipa_modify_call_arguments): Likewise.
26013 * loop-doloop.c (doloop_modify): Likewise.
26014 (doloop_optimize): Likewise.
26015 * loop-iv.c (iv_number_of_iterations): Likewise.
26016 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26017 (unroll_loop_constant_iterations): Likewise.
26018 (decide_unroll_runtime_iterations): Likewise.
26019 (unroll_loop_runtime_iterations): Likewise.
26020 (decide_peel_simple): Likewise.
26021 (decide_unroll_stupid): Likewise.
26022 * lto-streamer-in.c (streamer_read_wi): Add.
26023 (input_cfg): Use wide-int interfaces.
26024 (lto_input_tree_1): Likewise.
26025 * lto-streamer-out.c (streamer_write_wi): Add.
26026 (hash_tree): Use wide-int interfaces.
26027 (output_cfg): Likewise.
26028 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26029 (GTFILES): Add wide-int.h and signop.h.
26030 (TAGS): Look for .cc files too.
26031 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26032 * optabs.c (expand_subword_shift): Likewise.
26033 (expand_doubleword_shift): Likewise.
26034 (expand_absneg_bit): Likewise.
26035 (expand_copysign_absneg): Likewise.
26036 (expand_copysign_bit): Likewise.
26037 * postreload.c (reload_cse_simplify_set): Likewise.
26038 * predict.c (predict_iv_comparison): Likewise.
26039 * pretty-print.h: Include wide-int-print.h.
26041 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26042 * print-tree.c: Include wide-int-print.h.
26043 (print_node_brief): Use wide-int interfaces.
26044 (print_node): Likewise.
26045 * read-rtl.c (validate_const_wide_int): New.
26046 (read_rtx_code): Add CONST_WIDE_INT case.
26047 * real.c: Include wide-int.h.
26048 (real_to_integer2): Delete.
26049 (real_to_integer): New function, returning a wide_int.
26050 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26051 (ten_to_ptwo): Update call to real_from_integer.
26052 (real_digit): Likewise.
26053 * real.h: Include signop.h, wide-int.h and insn-modes.h.
26054 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26055 (REAL_VALUE_TO_INT): Delete.
26056 (real_to_integer): Declare a wide-int form.
26057 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26058 * recog.c (const_int_operand): Improve comment.
26059 (const_scalar_int_operand): New.
26060 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26061 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26062 (split_double): Likewise.
26063 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
26064 (rtx_size): Likewise.
26065 (rtx_alloc_stat_v): New.
26066 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
26067 (cwi_output_hex): New.
26068 (iterative_hash_rtx): Handle CONST_WIDE_INT.
26069 (cwi_check_failed_bounds): New.
26070 * rtl.def (CONST_WIDE_INT): New.
26071 * rtl.h: Include <utility> and wide-int.h.
26072 (struct hwivec_def): New.
26073 (CWI_GET_NUM_ELEM): New.
26074 (CWI_PUT_NUM_ELEM): New.
26075 (struct rtx_def): Add num_elem and hwiv.
26076 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
26077 (CASE_CONST_UNIQUE): Likewise.
26078 (CASE_CONST_ANY): Likewise.
26079 (CONST_SCALAR_INT_P): Likewise.
26080 (CONST_WIDE_INT_P): New.
26082 (HWIVEC_CHECK): New.
26083 (cwi_check_failed_bounds): New.
26085 (HWIVEC_CHECK): New.
26086 (CONST_WIDE_INT_VEC) New.
26087 (CONST_WIDE_INT_NUNITS) New.
26088 (CONST_WIDE_INT_ELT) New.
26089 (rtx_mode_t): New type.
26090 (wi::int_traits <rtx_mode_t>): New.
26092 (wi::min_value): New.
26093 (wi::max_value): New.
26095 (const_wide_int_alloc): New.
26096 (immed_wide_int_const): New.
26097 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
26098 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
26099 * signop.h: New file.
26100 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
26101 (simplify_const_unary_operation): Use wide-int interfaces.
26102 (simplify_binary_operation_1): Likewise.
26103 (simplify_const_binary_operation): Likewise.
26104 (simplify_const_relational_operation): Likewise.
26105 (simplify_immed_subreg): Likewise.
26106 * stmt.c (expand_case): Likewise.
26107 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
26108 signop rather than a bool.
26109 * stor-layout.c (layout_type): Use wide-int interfaces.
26110 (initialize_sizetypes): Update calls to
26111 set_min_and_max_values_for_integral_type.
26112 (set_min_and_max_values_for_integral_type): Take a signop rather
26113 than a bool. Use wide-int interfaces.
26114 (fixup_signed_type): Update accordingly. Remove
26115 HOST_BITS_PER_DOUBLE_INT limit.
26116 (fixup_unsigned_type): Likewise.
26117 * system.h (STATIC_CONSTANT_P): New.
26118 (STATIC_ASSERT): New.
26119 * target.def (can_use_doloop_p): Take widest_ints rather than
26121 * target.h: Include wide-int.h rather than double-int.h.
26122 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
26124 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
26125 rather than INT_CST_LT_UNSIGNED.
26126 (can_use_doloop_if_innermost): Take widest_ints rather than
26128 * tree-affine.c: Include wide-int-print.h.
26129 (double_int_ext_for_comb): Delete.
26130 (wide_int_ext_for_comb): New.
26131 (aff_combination_zero): Use wide-int interfaces.
26132 (aff_combination_const): Take a widest_int instead of a double_int.
26133 (aff_combination_elt): Use wide-int interfaces.
26134 (aff_combination_scale): Take a widest_int instead of a double_int.
26135 (aff_combination_add_elt): Likewise.
26136 (aff_combination_add_cst): Likewise.
26137 (aff_combination_add): Use wide-int interfaces.
26138 (aff_combination_convert): Likewise.
26139 (tree_to_aff_combination): Likewise.
26140 (add_elt_to_tree): Take a widest_int instead of a double_int.
26141 (aff_combination_to_tree): Use wide-int interfaces.
26142 (aff_combination_remove_elt): Likewise.
26143 (aff_combination_add_product): Take a widest_int instead of
26145 (aff_combination_mult): Use wide-int interfaces.
26146 (aff_combination_expand): Likewise.
26147 (double_int_constant_multiple_p): Delete.
26148 (wide_int_constant_multiple_p): New.
26149 (aff_combination_constant_multiple_p): Take a widest_int pointer
26150 instead of a double_int pointer.
26151 (print_aff): Use wide-int interfaces.
26152 (get_inner_reference_aff): Take a widest_int pointer
26153 instead of a double_int pointer.
26154 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
26155 * tree-affine.h: Include wide-int.h.
26156 (struct aff_comb_elt): Change type of coef to widest_int.
26157 (struct affine_tree_combination): Change type of offset to widest_int.
26158 (double_int_ext_for_comb): Delete.
26159 (wide_int_ext_for_comb): New.
26160 (aff_combination_const): Use widest_int instead of double_int.
26161 (aff_combination_scale): Likewise.
26162 (aff_combination_add_elt): Likewise.
26163 (aff_combination_constant_multiple_p): Likewise.
26164 (get_inner_reference_aff): Likewise.
26165 (aff_comb_cannot_overlap_p): Likewise.
26166 (aff_combination_zero_p): Use wide-int interfaces.
26167 * tree.c: Include tree.h.
26168 (init_ttree): Use make_int_cst.
26169 (tree_code_size): Removed code for INTEGER_CST case.
26170 (tree_size): Add INTEGER_CST case.
26171 (make_node_stat): Update comment.
26172 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
26173 (build_int_cst_type): Use wide-int interfaces.
26174 (double_int_to_tree): Likewise.
26175 (double_int_fits_to_tree_p): Delete.
26176 (force_fit_type_double): Delete.
26177 (force_fit_type): New.
26178 (int_cst_hash_hash): Use wide-int interfaces.
26179 (int_cst_hash_eq): Likewise.
26180 (build_int_cst_wide): Delete.
26181 (wide_int_to_tree): New.
26182 (cache_integer_cst): Use wide-int interfaces.
26183 (build_low_bits_mask): Likewise.
26184 (cst_and_fits_in_hwi): Likewise.
26185 (real_value_from_int_cst): Likewise.
26186 (make_int_cst_stat): New.
26187 (integer_zerop): Use wide_int interfaces.
26188 (integer_onep): Likewise.
26189 (integer_all_onesp): Likewise.
26190 (integer_pow2p): Likewise.
26191 (integer_nonzerop): Likewise.
26192 (tree_log2): Likewise.
26193 (tree_floor_log2): Likewise.
26194 (tree_ctz): Likewise.
26195 (int_size_in_bytes): Likewise.
26196 (mem_ref_offset): Return an offset_int rather than a double_int.
26197 (build_type_attribute_qual_variant): Use wide_int interfaces.
26198 (type_hash_eq): Likewise
26199 (tree_int_cst_equal): Likewise.
26200 (tree_int_cst_lt): Delete.
26201 (tree_int_cst_compare): Likewise.
26202 (tree_fits_shwi_p): Use wide_int interfaces.
26203 (tree_fits_uhwi_p): Likewise.
26204 (tree_int_cst_sign_bit): Likewise.
26205 (tree_int_cst_sgn): Likewise.
26206 (tree_int_cst_min_precision): Take a signop rather than a bool.
26207 (simple_cst_equal): Use wide_int interfaces.
26208 (compare_tree_int): Likewise.
26209 (iterative_hash_expr): Likewise.
26210 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
26212 (get_type_static_bounds): Use wide_int interfaces.
26213 (tree_int_cst_elt_check_failed): New.
26214 (build_common_tree_nodes): Reordered to set prec before filling in
26216 (int_cst_value): Check cst_and_fits_in_hwi.
26217 (widest_int_cst_value): Use wide_int interfaces.
26218 (upper_bound_in_type): Likewise.
26219 (lower_bound_in_type): Likewise.
26220 (num_ending_zeros): Likewise.
26221 (drop_tree_overflow): Likewise.
26222 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
26223 (gen_conditions_for_pow_cst_base): Likewise.
26224 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
26225 (group_case_labels_stmt): Use wide-int interfaces.
26226 (verify_gimple_assign_binary): Likewise.
26227 (print_loop): Likewise.
26228 * tree-chrec.c (tree_fold_binomial): Likewise.
26229 * tree-core.h (struct tree_base): Add int_length.
26230 (struct tree_int_cst): Change rep of value.
26231 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
26232 (dr_may_alias_p): Likewise.
26233 (max_stmt_executions_tree): Likewise.
26234 * tree.def (INTEGER_CST): Update comment.
26235 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
26236 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
26237 * tree-dump.c: Include wide-int.h and wide-int-print.h.
26238 (dequeue_and_dump): Use wide-int interfaces.
26239 * tree.h: Include wide-int.h.
26240 (NULL_TREE): Moved to earlier loc in file.
26241 (TREE_INT_CST_ELT_CHECK): New.
26242 (tree_int_cst_elt_check_failed): New.
26244 (TREE_INT_CST): Delete.
26245 (TREE_INT_CST_LOW): Use wide-int interfaces.
26246 (TREE_INT_CST_HIGH): Delete.
26247 (TREE_INT_CST_NUNITS): New.
26248 (TREE_INT_CST_EXT_NUNITS): Likewise.
26249 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
26250 (TREE_INT_CST_ELT): Likewise.
26251 (INT_CST_LT): Delete.
26252 (tree_int_cst_elt_check): New (two forms).
26253 (type_code_size): Update comment.
26254 (make_int_cst_stat, make_int_cst): New.
26255 (tree_to_double_int): Delete.
26256 (double_int_fits_to_tree_p): Delete.
26257 (force_fit_type_double): Delete.
26258 (build_int_cstu): Replace with out-of-line function.
26259 (build_int_cst_wide): Delete.
26260 (tree_int_cst_lt): Define inline.
26261 (tree_int_cst_le): New.
26262 (tree_int_cst_compare): Define inline.
26263 (tree_int_cst_min_precision): Take a signop rather than a bool.
26264 (wi::int_traits <const_tree>): New.
26265 (wi::int_traits <tree>): New.
26266 (wi::extended_tree): New.
26267 (wi::int_traits <wi::extended_tree>): New.
26268 (wi::to_widest): New.
26269 (wi::to_offset): New.
26270 (wi::fits_to_tree_p): New.
26271 (wi::min_value): New.
26272 (wi::max_value): New.
26273 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
26274 (copy_tree_body_r): Likewise.
26275 * tree-object-size.c (compute_object_offset): Likewise.
26276 (addr_object_size): Likewise.
26277 * tree-predcom.c: Include wide-int-print.h.
26278 (struct dref_d): Change type of offset to widest_int.
26279 (dump_dref): Call wide-int printer.
26280 (aff_combination_dr_offset): Use wide-int interfaces.
26281 (determine_offset): Take a widest_int pointer rather than a
26282 double_int pointer.
26283 (split_data_refs_to_components): Use wide-int interfaces.
26284 (suitable_component_p): Likewise.
26285 (order_drefs): Likewise.
26286 (add_ref_to_chain): Likewise.
26287 (valid_initializer_p): Likewise.
26288 (determine_roots_comp): Likewise.
26289 * tree-pretty-print.c: Include wide-int-print.h.
26290 (dump_generic_node): Use wide-int interfaces.
26291 * tree-sra.c (sra_ipa_modify_expr): Likewise.
26292 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
26293 (move_fixed_address_to_symbol): Likewise.
26294 (move_hint_to_base): Likewise.
26295 (move_pointer_to_base): Likewise.
26296 (move_variant_to_index): Likewise.
26297 (most_expensive_mult_to_index): Likewise.
26298 (addr_to_parts): Likewise.
26299 (copy_ref_info): Likewise.
26300 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26301 (indirect_refs_may_alias_p): Likewise.
26302 (stmt_kills_ref_p_1): Likewise.
26303 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
26304 * tree-ssa-ccp.c: Update comment at top of file. Include
26306 (struct prop_value_d): Change type of mask to widest_int.
26307 (extend_mask): New function.
26308 (dump_lattice_value): Use wide-int interfaces.
26309 (get_default_value): Likewise.
26310 (set_constant_value): Likewise.
26311 (set_value_varying): Likewise.
26312 (valid_lattice_transition): Likewise.
26313 (set_lattice_value): Likewise.
26314 (value_to_double_int): Delete.
26315 (value_to_wide_int): New.
26316 (get_value_from_alignment): Use wide-int interfaces.
26317 (get_value_for_expr): Likewise.
26318 (do_dbg_cnt): Likewise.
26319 (ccp_finalize): Likewise.
26320 (ccp_lattice_meet): Likewise.
26321 (bit_value_unop_1): Use widest_ints rather than double_ints.
26322 (bit_value_binop_1): Likewise.
26323 (bit_value_unop): Use wide-int interfaces.
26324 (bit_value_binop): Likewise.
26325 (bit_value_assume_aligned): Likewise.
26326 (evaluate_stmt): Likewise.
26327 (ccp_fold_stmt): Likewise.
26328 (visit_cond_stmt): Likewise.
26329 (ccp_visit_stmt): Likewise.
26330 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26331 (constant_pointer_difference): Likewise.
26332 (associate_pointerplus): Likewise.
26333 (combine_conversions): Likewise.
26334 * tree-ssa-loop.h: Include wide-int.h.
26335 (struct tree_niter_desc): Change type of max to widest_int.
26336 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26337 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26338 (remove_redundant_iv_tests): Likewise.
26339 (canonicalize_loop_induction_variables): Likewise.
26340 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26341 (constant_multiple_of): Take a widest_int pointer instead of
26342 a double_int pointer.
26343 (get_computation_aff): Use wide-int interfaces.
26344 (ptr_difference_cost): Likewise.
26345 (difference_cost): Likewise.
26346 (get_loop_invariant_expr_id): Likewise.
26347 (get_computation_cost_at): Likewise.
26348 (iv_elimination_compare_lt): Likewise.
26349 (may_eliminate_iv): Likewise.
26350 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26351 instead of double_int.
26352 (max_loop_iterations): Likewise.
26353 (max_stmt_executions): Likewise.
26354 (estimated_stmt_executions): Likewise.
26355 * tree-ssa-loop-niter.c: Include wide-int-print.h.
26356 (split_to_var_and_offset): Use wide-int interfaces.
26357 (determine_value_range): Likewise.
26358 (bound_difference_of_offsetted_base): Likewise.
26359 (bounds_add): Take a widest_int instead of a double_int.
26360 (number_of_iterations_ne_max): Use wide-int interfaces.
26361 (number_of_iterations_ne): Likewise.
26362 (number_of_iterations_lt_to_ne): Likewise.
26363 (assert_loop_rolls_lt): Likewise.
26364 (number_of_iterations_lt): Likewise.
26365 (number_of_iterations_le): Likewise.
26366 (number_of_iterations_cond): Likewise.
26367 (number_of_iterations_exit): Likewise.
26368 (finite_loop_p): Likewise.
26369 (derive_constant_upper_bound_assign): Likewise.
26370 (derive_constant_upper_bound): Return a widest_int.
26371 (derive_constant_upper_bound_ops): Likewise.
26372 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26373 (record_estimate): Take a widest_int rather than a double_int.
26374 (record_nonwrapping_iv): Use wide-int interfaces.
26375 (double_int_cmp): Delete.
26376 (wide_int_cmp): New.
26377 (bound_index): Take a widest_int rather than a double_int.
26378 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26379 (maybe_lower_iteration_bound): Likewise.
26380 (estimate_numbers_of_iterations_loop): Likewise.
26381 (estimated_loop_iterations): Take a widest_int pointer than than
26382 a double_int pointer.
26383 (estimated_loop_iterations_int): Use wide-int interfaces.
26384 (max_loop_iterations): Take a widest_int pointer than than
26385 a double_int pointer.
26386 (max_loop_iterations_int): Use wide-int interfaces.
26387 (max_stmt_executions): Take a widest_int pointer than than
26388 a double_int pointer.
26389 (estimated_stmt_executions): Likewise.
26390 (n_of_executions_at_most): Use wide-int interfaces.
26391 (scev_probably_wraps_p): Likewise.
26392 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26393 to real_to_integer.
26394 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26396 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26397 double_ints. Adjust for trailing_wide_ints <3> representation.
26398 (set_nonzero_bits): Likewise.
26399 (get_range_info): Return wide_ints rather than double_ints.
26400 Adjust for trailing_wide_ints <3> representation.
26401 (get_nonzero_bits): Likewise.
26402 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26404 * tree-ssanames.h (struct range_info_def): Replace min, max and
26405 nonzero_bits with a trailing_wide_ints <3>.
26406 (set_range_info): Use wide_int_refs rather than double_ints.
26407 (set_nonzero_bits): Likewise.
26408 (get_range_info): Return wide_ints rather than double_ints.
26409 (get_nonzero_bits): Likewise.
26410 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
26411 * tree-ssa-pre.c (phi_translate_1): Likewise.
26412 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
26413 (acceptable_pow_call): Likewise.
26414 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
26416 (vn_reference_fold_indirect): Likewise.
26417 (vn_reference_maybe_forwprop_address): Likewise.
26418 (valueize_refs_1): Likewise.
26419 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
26420 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
26421 tree_int_cst_lt and tree_int_cst_le.
26422 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
26424 (streamer_alloc_tree): Likewise.
26425 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
26426 (streamer_write_tree_header): Likewise.
26427 (streamer_write_integer_cst): Likewise.
26428 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26429 (build_constructors): Likewise.
26430 (array_value_type): Likewise.
26431 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26432 (vect_check_gather): Likewise.
26433 * tree-vect-generic.c (build_replicated_const): Likewise.
26434 (expand_vector_divmod): Likewise.
26435 * tree-vect-loop.c (vect_transform_loop): Likewise.
26436 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26437 (vect_do_peeling_for_alignment): Likewise.
26438 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26439 * tree-vrp.c: Include wide-int.h.
26440 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26441 (extract_range_from_assert): Use wide-int interfaces.
26442 (vrp_int_const_binop): Likewise.
26443 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26444 double_int pointers.
26445 (ranges_from_anti_range): Use wide-int interfaces.
26446 (quad_int_cmp): Delete.
26447 (quad_int_pair_sort): Likewise.
26448 (extract_range_from_binary_expr_1): Use wide-int interfaces.
26449 (extract_range_from_unary_expr_1): Likewise.
26450 (adjust_range_with_scev): Likewise.
26451 (masked_increment): Take and return wide_ints rather than double_ints.
26452 (register_edge_assert_for_2): Use wide-int interfaces.
26453 (check_array_ref): Likewise.
26454 (search_for_addr_array): Likewise.
26455 (maybe_set_nonzero_bits): Likewise.
26456 (union_ranges): Pass an integer of the correct type instead of
26457 using integer_one_node.
26458 (intersect_ranges): Likewise.
26459 (simplify_truth_ops_using_ranges): Likewise.
26460 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
26461 (range_fits_type_p): Likewise.
26462 (simplify_cond_using_ranges): Likewise. Take a signop rather than
26464 (simplify_conversion_using_ranges): Use wide-int interfaces.
26465 (simplify_float_conversion_using_ranges): Likewise.
26466 (vrp_finalize): Likewise.
26467 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
26468 (gimple_stringops_transform): Likewise.
26469 * varasm.c (decode_addr_const): Likewise.
26470 (const_hash_1): Likewise.
26471 (const_rtx_hash_1): Likewise
26472 (output_constant): Likewise.
26473 (array_size_for_constructor): Likewise.
26474 (output_constructor_regular_field): Likewise.
26475 (output_constructor_bitfield): Likewise.
26476 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
26477 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
26479 * gencheck.c: Define BITS_PER_UNIT.
26480 * wide-int.cc: New.
26482 * wide-int-print.cc: New.
26483 * wide-int-print.h: New.
26485 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26487 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
26489 2014-05-06 Richard Biener <rguenther@suse.de>
26491 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
26492 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
26493 (TODO_verify_all): Adjust.
26494 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
26495 TODO_verify_stmts and TODO_verify_rtl_sharing.
26496 * bb-reorder.c: Likewise.
26497 * cfgexpand.c: Likewise.
26498 * cprop.c: Likewise.
26500 * function.c: Likewise.
26501 * fwprop.c: Likewise.
26502 * gcse.c: Likewise.
26503 * gimple-ssa-isolate-paths.c: Likewise.
26504 * gimple-ssa-strength-reduction.c: Likewise.
26505 * ipa-split.c: Likewise.
26506 * loop-init.c: Likewise.
26507 * loop-unroll.c: Likewise.
26508 * lower-subreg.c: Likewise.
26509 * modulo-sched.c: Likewise.
26510 * postreload-gcse.c: Likewise.
26511 * predict.c: Likewise.
26512 * recog.c: Likewise.
26513 * sched-rgn.c: Likewise.
26514 * store-motion.c: Likewise.
26515 * tracer.c: Likewise.
26516 * trans-mem.c: Likewise.
26517 * tree-call-cdce.c: Likewise.
26518 * tree-cfg.c: Likewise.
26519 * tree-cfgcleanup.c: Likewise.
26520 * tree-complex.c: Likewise.
26521 * tree-eh.c: Likewise.
26522 * tree-emutls.c: Likewise.
26523 * tree-if-conv.c: Likewise.
26524 * tree-into-ssa.c: Likewise.
26525 * tree-loop-distribution.c: Likewise.
26526 * tree-object-size.c: Likewise.
26527 * tree-parloops.c: Likewise.
26528 * tree-pass.h: Likewise.
26529 * tree-sra.c: Likewise.
26530 * tree-ssa-ccp.c: Likewise.
26531 * tree-ssa-copy.c: Likewise.
26532 * tree-ssa-copyrename.c: Likewise.
26533 * tree-ssa-dce.c: Likewise.
26534 * tree-ssa-dom.c: Likewise.
26535 * tree-ssa-dse.c: Likewise.
26536 * tree-ssa-forwprop.c: Likewise.
26537 * tree-ssa-ifcombine.c: Likewise.
26538 * tree-ssa-loop-ch.c: Likewise.
26539 * tree-ssa-loop-ivcanon.c: Likewise.
26540 * tree-ssa-loop.c: Likewise.
26541 * tree-ssa-math-opts.c: Likewise.
26542 * tree-ssa-phiopt.c: Likewise.
26543 * tree-ssa-phiprop.c: Likewise.
26544 * tree-ssa-pre.c: Likewise.
26545 * tree-ssa-reassoc.c: Likewise.
26546 * tree-ssa-sink.c: Likewise.
26547 * tree-ssa-strlen.c: Likewise.
26548 * tree-ssa-tail-merge.c: Likewise.
26549 * tree-ssa-uncprop.c: Likewise.
26550 * tree-switch-conversion.c: Likewise.
26551 * tree-tailcall.c: Likewise.
26552 * tree-vect-generic.c: Likewise.
26553 * tree-vectorizer.c: Likewise.
26554 * tree-vrp.c: Likewise.
26555 * tsan.c: Likewise.
26556 * var-tracking.c: Likewise.
26557 * bt-load.c: Likewise.
26558 * cfgcleanup.c: Likewise.
26559 * combine-stack-adj.c: Likewise.
26560 * combine.c: Likewise.
26561 * compare-elim.c: Likewise.
26562 * config/epiphany/resolve-sw-modes.c: Likewise.
26563 * config/i386/i386.c: Likewise.
26564 * config/mips/mips.c: Likewise.
26565 * config/s390/s390.c: Likewise.
26566 * config/sh/sh_treg_combine.cc: Likewise.
26567 * config/sparc/sparc.c: Likewise.
26570 * final.c: Likewise.
26571 * ifcvt.c: Likewise.
26572 * mode-switching.c: Likewise.
26573 * passes.c: Likewise.
26574 * postreload.c: Likewise.
26576 * reg-stack.c: Likewise.
26577 * regcprop.c: Likewise.
26578 * regrename.c: Likewise.
26581 2014-05-06 Richard Biener <rguenther@suse.de>
26583 PR middle-end/61070
26584 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
26585 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
26587 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
26590 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
26592 2014-05-05 Radovan Obradovic <robradovic@mips.com>
26593 Tom de Vries <tom@codesourcery.com>
26595 * target.def (call_fusage_contains_non_callee_clobbers): New
26597 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
26599 (@node Miscellaneous Register Hooks): New node.
26600 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
26601 * doc/tm.texi: Regenerate.
26603 2014-05-05 Marek Polacek <polacek@redhat.com>
26606 * opts.c (common_handle_option): Call error_at instead of warning_at.
26608 2014-05-05 Richard Biener <rguenther@suse.de>
26610 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
26611 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
26612 under the TODO_verify_il umbrella.
26614 2014-05-05 Richard Biener <rguenther@suse.de>
26616 * passes.c (execute_function_todo): Move TODO_verify_flow under
26617 the TODO_verify_ul umbrella.
26619 2014-05-05 Richard Biener <rguenther@suse.de>
26621 PR middle-end/61010
26622 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
26623 X & CST away from a CST that is the mask of a mode.
26625 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26627 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
26628 int argument to enum machine_mode.
26629 (picochip_class_max_nregs): Ditto.
26630 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
26631 (picochip_class_max_nregs): Ditto.
26633 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26635 * target.def: Add new target hook.
26636 * doc/tm.texi: Regenerate.
26637 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
26638 * targhooks.c (default_keep_leaf_when_profiled): New function.
26640 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
26641 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
26643 2014-05-05 Bin Cheng <bin.cheng@arm.com>
26645 PR tree-optimization/60363
26646 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
26647 (copy_phi_args): New parameters. Call get_value_locus_in_path.
26648 (update_destination_phis): New parameter.
26649 (create_edge_and_update_destination_phis): Ditto.
26650 (ssa_fix_duplicate_block_edges): Pass new arguments.
26651 (thread_single_edge): Ditto.
26653 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
26655 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
26656 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
26657 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
26658 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
26659 Use RS6000_BTM_HARD_FLOAT.
26660 (BU_MISC_2): Likewise.
26661 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
26662 RS6000_BTM_HARD_FLOAT.
26663 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
26664 is explicitly used.
26665 (rs6000_invalid_builtin): Add hard floating builtin support.
26666 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
26667 hard float builtins.
26668 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
26670 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26672 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
26673 Add missing function* argument.
26675 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26677 * lra-constraints.c (valid_address_p): Move earlier in file.
26678 Add a constraint argument to the address_info version.
26679 (satisfies_memory_constraint_p): New function.
26680 (satisfies_address_constraint_p): Likewise.
26681 (process_alt_operands, curr_insn_transform): Use them.
26682 (process_address): Pass the constraint to valid_address_p when
26683 checking address operands.
26685 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26687 * config/mips/mips.c (mips_isa_rev): New variable.
26688 (mips_set_architecture): Set it.
26689 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
26691 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
26692 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
26693 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
26694 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
26695 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
26696 conditions in terms of mips_isa_rev.
26697 (mips_isa_rev): Declare.
26699 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26701 * config/sh/sh-mem.cc: Use tabs instead of spaces.
26702 (prob_unlikely, prob_likely): Make variables const.
26704 2014-05-03 Denis Chertykov <chertykov@gmail.com>
26706 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
26708 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26710 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
26712 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26714 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
26715 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
26716 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
26718 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
26719 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
26721 Replace usage of ROUND_REG with sh_round_reg.
26722 Use CEIL instead of ROUND_ADVANCE.
26724 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26727 * config/sh/sh.c: Include stdlib headers before everything else.
26729 2014-05-02 Jakub Jelinek <jakub@redhat.com>
26731 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
26732 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
26733 (gimplify_adjust_omp_clauses): Simd region is never
26734 directly nested in combined parallel. Instead, for linear
26735 with copyin/copyout, if in combined for simd loop, make decl
26736 firstprivate/lastprivate on OMP_FOR.
26737 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
26738 expand_omp_for_static_chunk): When setting endvar, also set
26739 fd->loop.v to the same value.
26741 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26743 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
26745 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
26747 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
26750 2014-05-02 Marek Polacek <polacek@redhat.com>
26752 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
26754 2014-05-02 Kito Cheng <kito@0xlab.org>
26756 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
26757 to a C expression marco.
26758 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
26759 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
26760 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
26761 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
26762 HONOR_REG_ALLOC_ORDER.
26763 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
26765 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26767 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
26769 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26771 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
26773 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
26775 * tree-if-conv.c (is_cond_scalar_reduction): New function.
26776 (convert_scalar_cond_reduction): Likewise.
26777 (predicate_scalar_phi): Add recognition and transformation
26778 of simple conditioanl reduction to be vectorizable.
26780 2014-05-01 Marek Polacek <polacek@redhat.com>
26783 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
26785 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
26787 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
26788 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
26789 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
26790 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
26791 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
26792 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
26793 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
26794 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
26796 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
26798 * config/arc/arc.opt (mlra): Move comment above option name
26799 to avoid mis-parsing as language options.
26801 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26803 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
26804 * config/sol2.h: ... here.
26805 * config/sol2-10.h: Remove.
26807 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
26808 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
26809 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
26810 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
26811 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
26812 * config/sol2.h: ... here.
26813 (SECTION_NAME_FORMAT): Don't redefine.
26814 (STARTFILE_ARCH32_SPEC): Rename to ...
26815 (STARTFILE_ARCH_SPEC): ... this.
26816 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
26817 * config/sparc/sol2.h: ... here.
26818 (SECTION_NAME_FORMAT): Don't undef.
26819 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
26820 (SUBTARGET_EXTRA_SPECS): Remove.
26821 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
26823 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
26824 (MD_STARTFILE_PREFIX): Remove.
26825 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
26826 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
26827 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
26828 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
26829 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
26830 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
26831 * config/i386/sol2.h: ... here.
26832 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
26833 * config/i386/sol2-bi.h: Remove.
26834 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
26835 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
26837 * config/i386/t-sol2-64: Rename to ...
26838 * config/i386/t-sol2: ... this.
26839 * config/sparc/t-sol2-64: Rename to ...
26840 * config/sparc/t-sol2: ... this.
26842 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
26843 sol2_tm_file_head, sol2_tm_file_tail.
26844 Include ${cpu_type}/sol2.h before sol2.h.
26846 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
26847 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
26848 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
26849 Reflect i386/t-sol2-64 renaming.
26850 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
26851 Reflect sparc/t-sol2-64 renaming.
26853 2014-04-30 Richard Biener <rguenther@suse.de>
26855 * passes.c (execute_function_todo): Move TODO_verify_stmts
26856 and TODO_verify_ssa under the TODO_verify_il umbrella.
26857 * tree-ssa.h (verify_ssa): Adjust prototype.
26858 * tree-ssa.c (verify_ssa): Add parameter to tell whether
26859 we should verify SSA operands.
26860 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
26861 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
26862 whether we should verify whether not throwing stmts have EH info.
26863 * graphite-scop-detection.c (create_sese_edges): Adjust.
26864 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
26865 * tree-eh.c (lower_try_finally_switch): Do not add the
26866 default case label twice.
26868 2014-04-30 Marek Polacek <polacek@redhat.com>
26870 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
26871 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
26872 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
26873 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
26875 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
26877 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
26878 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
26879 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
26880 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
26881 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
26882 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
26883 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
26884 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
26886 2014-04-29 David Malcolm <dmalcolm@redhat.com>
26888 * tree-cfg.c (dump_function_to_file): Dump the return type of
26889 functions, in a line to itself before the function body, mimicking
26890 the layout of a C function.
26892 2014-04-29 Jakub Jelinek <jakub@redhat.com>
26894 PR tree-optimization/60971
26895 * tree-tailcall.c (process_assignment): Reject conversions which
26898 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26900 * calls.c (initialize_argument_information): Always treat
26901 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
26902 (expand_call): Likewise.
26903 (emit_library_call_calue_1): Likewise.
26904 * expr.c (PUSH_ARGS_REVERSED): Do not define.
26905 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
26908 2014-04-29 Nick Clifton <nickc@redhat.com>
26910 * config/msp430/msp430.md (umulsidi): Fix typo.
26911 (mulhisi3): Enable even inside interrupt handlers.
26912 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
26913 bigger return address pushed in large mode.
26915 2014-04-29 Nick Clifton <nickc@redhat.com>
26917 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
26918 (arc_init_reg_tables): Use a machine_mode enum to iterate over
26920 * config/m32r/m32r.c (init_reg_tables): Likewise.
26921 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
26922 enum to hold the modes.
26924 2014-04-29 Richard Biener <rguenther@suse.de>
26926 * dominance.c (free_dominance_info): Add overload with
26927 function parameter.
26928 (dom_info_state): Likewise.
26929 (dom_info_available_p): Likewise.
26930 * basic-block.h (free_dominance_info, dom_info_state,
26931 dom_info_available_p): Declare overloads.
26932 * passes.c (execute_function_todo): Verify that verifiers
26933 don't change dominator info state. Drop dominator info
26934 for IPA pass invocations.
26935 * cgraph.c (release_function_body): Restore asserts that
26936 dominator information is released.
26938 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
26940 * doc/invoke.texi: Fix typo.
26941 * tree-vrp.c: Fix typos.
26942 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
26944 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26946 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
26948 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
26950 * config/aarch64/aarch64-builtins.c
26951 (aarch64_types_storestruct_lane_qualifiers): New.
26952 (TYPES_STORESTRUCT_LANE): Likewise.
26953 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
26954 (st3_lane): Likewise.
26955 (st4_lane): Likewise.
26956 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
26957 (vec_store_lanesci_lane<mode>): Likewise.
26958 (vec_store_lanesxi_lane<mode>): Likewise.
26959 (aarch64_st2_lane<VQ:mode>): Likewise.
26960 (aarch64_st3_lane<VQ:mode>): Likewise.
26961 (aarch64_st4_lane<VQ:mode>): Likewise.
26962 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
26963 * config/aarch64/arm_neon.h
26964 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
26965 use new macro arguments.
26966 (__ST3_LANE_FUNC): Likewise.
26967 (__ST4_LANE_FUNC): Likewise.
26968 * config/aarch64/iterators.md (V_TWO_ELEM): New.
26969 (V_THREE_ELEM): Likewise.
26970 (V_FOUR_ELEM): Likewise.
26972 2014-04-28 David Malcolm <dmalcolm@redhat.com>
26974 * doc/gimple.texi: Replace the description of the now-defunct
26975 union gimple_statement_d with a diagram showing the
26976 gimple_statement_base class hierarchy and its relationships to
26977 the GSS_ and GIMPLE_ enums.
26979 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
26981 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
26982 * config/aarch64/aarch64.c
26983 (aarch64_cannot_change_mode_class): Weaken conditions.
26984 (aarch64_modes_tieable_p): New.
26985 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
26987 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
26989 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26990 (loadsync_<mode>): Change mode.
26991 (load_quadpti, store_quadpti): New.
26992 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26993 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26995 2014-04-28 Martin Jambor <mjambor@suse.cz>
26997 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
26998 same alias type as the original statement.
26999 (subreplacement_assignment_data): New type.
27000 (handle_unscalarized_data_in_subtree): New type of parameter,
27001 generate new memory accesses with same alias type as the original
27003 (load_assign_lhs_subreplacements): Likewise.
27004 (sra_modify_constructor_assign): Generate new memory accesses with
27005 same alias type as the original statement.
27007 2014-04-28 Richard Biener <rguenther@suse.de>
27009 * tree-pass.h (TODO_verify_il): Define.
27010 (TODO_verify_all): Complete properly.
27011 * passes.c (execute_function_todo): Move existing loop-closed
27012 SSA verification under TODO_verify_il.
27013 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27014 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27015 Fix tree sharing issue.
27017 2014-04-28 Richard Biener <rguenther@suse.de>
27019 PR middle-end/60092
27020 * builtins.def (DEF_C11_BUILTIN): Add.
27021 (BUILT_IN_ALIGNED_ALLOC): Likewise.
27022 * coretypes.h (enum function_class): Add function_c11_misc.
27023 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27024 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27025 (call_may_clobber_ref_p_1): Likewise.
27026 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27027 (mark_all_reaching_defs_necessary_1): Likewise.
27028 (propagate_necessity): Likewise.
27029 (eliminate_unnecessary_stmts): Likewise.
27030 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27032 2014-04-28 Richard Biener <rguenther@suse.de>
27034 * tree-vrp.c (vrp_var_may_overflow): Remove.
27035 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27036 with overflow immediately bump to one before that value and
27037 let iteration figure out overflow status.
27039 2014-04-28 Richard Biener <rguenther@suse.de>
27041 * configure.ac: Do valgrind header checks unconditionally.
27042 Add --enable-valgrind-annotations.
27043 * system.h: Guard valgrind header inclusion with
27044 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27045 * alloc-pool.c (pool_alloc, pool_free): Use
27046 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27047 to guard possibly dead code.
27048 * config.in: Regenerated.
27049 * configure: Likewise.
27051 2014-04-28 Jeff Law <law@redhat.com>
27053 PR tree-optimization/60902
27054 * tree-ssa-threadedge.c
27055 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27056 over real defs when invalidating outputs from statements that do not
27057 produce useful outputs for threading.
27059 2014-04-28 Richard Biener <rguenther@suse.de>
27061 PR tree-optimization/60979
27062 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27063 SCOPs that end in a block with a successor with abnormal
27066 2014-04-28 Richard Biener <rguenther@suse.de>
27068 * tree-pass.h (execute_pass_list): Adjust prototype.
27069 * passes.c (pass_manager::execute_early_local_passes): Adjust.
27070 (do_per_function): Change callback signature, push all actual
27071 work to the callbals.
27072 (do_per_function_toporder): Likewise.
27073 (execute_function_dump): Adjust.
27074 (execute_function_todo): Likewise.
27075 (clear_last_verified): Likewise.
27076 (verify_curr_properties): Likewise.
27077 (update_properties_after_pass): Likewise.
27078 (execute_pass_list_1): Split out from ...
27079 (execute_pass_list): ... here. Adjust.
27080 (execute_ipa_pass_list): Likewise.
27081 * cgraphunit.c (cgraph_add_new_function): Adjust.
27082 (analyze_function): Likewise.
27083 (expand_function): Likewise.
27084 * cgraph.c (release_function_body): Free dominance info
27085 here instead of asserting it was magically freed elsewhere.
27087 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
27089 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
27090 * configure: Regenerate.
27091 * config/sparc/sparc.opt (muser-mode): New option.
27092 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
27094 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
27095 * doc/invoke.texi (SPARC options): Document -muser-mode.
27097 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
27099 * cselib.c (find_slot_memmode): Delete.
27100 (cselib_hasher): Change compare_type to a struct.
27101 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
27103 (preserve_constants_and_equivs): Adjust for new compare_type.
27104 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
27105 (wrap_constant): Delete.
27106 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
27108 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27110 * doc/install.texi (Building with profile feedback): Remove
27113 2014-04-26 Tom de Vries <tom@codesourcery.com>
27115 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
27118 2014-04-25 Cary Coutant <ccoutant@google.com>
27121 * dwarf2out.c (should_move_die_to_comdat): A type definition
27122 can contain a subprogram definition, but don't move it to a
27124 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
27125 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
27127 (clone_tree_hash): Rename to...
27128 (clone_tree_partial): ...this; change callers. Copy
27129 DW_TAG_subprogram DIEs as declarations.
27130 (copy_decls_walk): Don't copy children of a declaration into a
27133 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
27136 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
27139 2014-04-25 Jiong Wang <jiong.wang@arm.com>
27141 * config/arm/predicates.md (call_insn_operand): Add long_call check.
27142 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
27144 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
27147 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27149 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
27151 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27153 PR tree-optimization/60930
27154 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
27155 creating a multiply candidate by folding two constant
27156 multiplicands when the result overflows.
27158 2014-04-25 Jakub Jelinek <jakub@redhat.com>
27160 PR tree-optimization/60960
27161 * tree-vect-generic.c (expand_vector_operation): Only call
27162 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
27164 2014-04-25 Tom de Vries <tom@codesourcery.com>
27166 * expr.c (clobber_reg_mode): New function.
27167 * expr.h (clobber_reg): New function.
27169 2014-04-25 Tom de Vries <tom@codesourcery.com>
27171 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
27174 2014-04-25 Radovan Obradovic <robradovic@mips.com>
27175 Tom de Vries <tom@codesourcery.com>
27177 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
27179 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
27180 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
27181 new argument to find_all_hard_reg_sets call.
27183 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27185 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
27186 Use HOST_WIDE_INT_C for mask literal.
27187 (aarch_rev16_shleft_mask_imm_p): Likewise.
27189 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
27192 * config/sparc/sparc.md (ashlsi3_extend): Delete.
27194 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
27196 PR preprocessor/56540
27197 * config/i386/i386-c.c (ix86_target_macros): Define
27198 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
27200 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27202 * configure.ac (tga_func): Remove.
27203 (LIB_TLS_SPEC): Remove.
27204 * configure: Regenerate.
27205 * config.in: Regenerate.
27206 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
27208 2014-04-25 Richard Biener <rguenther@suse.de>
27211 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
27212 call stmt use/clobber sets during stmt walk instead of
27213 walking the possibly incomplete set of caller edges.
27215 2014-04-25 Richard Biener <rguenther@suse.de>
27218 * passes.c (apply_ipa_transforms): Inline into only caller ...
27219 (execute_one_pass): ... here. Properly bring in function
27220 bodies for nodes we want to apply IPA transforms to.
27222 2014-04-24 Cong Hou <congh@google.com>
27224 PR tree-optimization/60896
27225 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
27226 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
27227 (vect_mark_pattern_stmts): Set the def type of all statements in
27228 PATTERN_DEF_SEQ as vect_internal_def.
27230 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27232 * doc/extend.texi (PowerPC Built-in Functions): Document new
27233 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
27234 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
27236 * config/rs6000/predicates.md (const_0_to_3_operand): New
27237 predicate to match 0..3 integer constants.
27239 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
27240 to support adding miscellaneous builtin functions.
27241 (BU_DFP_MISC_2): Likewise.
27242 (BU_P7_MISC_1): Likewise.
27243 (BU_P7_MISC_2): Likewise.
27244 (BU_P8V_MISC_3): Likewise.
27245 (BU_MISC_1): Likewise.
27246 (BU_MISC_2): Likewise.
27247 (DIVWE): Add extended divide builtin functions.
27248 (DIVWEO): Likewise.
27249 (DIVWEU): Likewise.
27250 (DIVWEUO): Likewise.
27252 (DIVDEO): Likewise.
27253 (DIVDEU): Likewise.
27254 (DIVDEUO): Likewise.
27255 (DXEX): Add decimal floating-point builtin functions.
27257 (DDEDPD): Likewise.
27258 (DDEDPDQ): Likewise.
27259 (DENBCD): Likewise.
27260 (DENBCDQ): Likewise.
27264 (DSCLIQ): Likewise.
27266 (DSCRIQ): Likewise.
27267 (CDTBCD): Add new BCD builtin functions.
27268 (CBCDTD): Likewise.
27269 (ADDG6S): Likewise.
27270 (BCDADD): Likewise.
27271 (BCDADD_LT): Likewise.
27272 (BCDADD_EQ): Likewise.
27273 (BCDADD_GT): Likewise.
27274 (BCDADD_OV): Likewise.
27275 (BCDSUB): Likewise.
27276 (BCDSUB_LT): Likewise.
27277 (BCDSUB_EQ): Likewise.
27278 (BCDSUB_GT): Likewise.
27279 (BCDSUB_OV): Likewise.
27280 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
27281 (UNPACK_TD): Likewise.
27282 (PACK_TF): Likewise.
27283 (UNPACK_TF): Likewise.
27284 (UNPACK_TF_0): Likewise.
27285 (UNPACK_TF_1): Likewise.
27286 (PACK_V1TI): Likewise.
27287 (UNPACK_V1TI): Likewise.
27289 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27290 support for decimal floating point builtin functions.
27291 (rs6000_expand_ternop_builtin): Add checks for the new builtin
27292 functions that take constant arguments.
27293 (rs6000_invalid_builtin): Add decimal floating point builtin support.
27294 (rs6000_init_builtins): Setup long double, _Decimal64, and
27295 _Decimal128 types for new builtin functions.
27296 (builtin_function_type): Set the unsigned flags appropriately for
27297 the new builtin functions.
27298 (rs6000_opt_masks): Add support for decimal floating point builtin
27301 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
27302 floating point builtin functions.
27303 (RS6000_BTM_COMMON): Likewise.
27304 (RS6000_BTI_long_double): Likewise.
27305 (RS6000_BTI_dfloat64): Likewise.
27306 (RS6000_BTI_dfloat128): Likewise.
27307 (long_double_type_internal_node): Likewise.
27308 (dfloat64_type_internal_node): Likewise.
27309 (dfloat128_type_internal_node): Likewise.
27311 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
27312 2.07 bcd arithmetic instructions.
27313 (UNSPEC_BCDSUB): Likewise.
27314 (UNSPEC_BCD_OVERFLOW): Likewise.
27315 (UNSPEC_BCD_ADD_SUB): Likewise.
27316 (bcd_add_sub): Likewise.
27317 (BCD_TEST): Likewise.
27318 (bcd<bcd_add_sub>): Likewise.
27319 (bcd<bcd_add_sub>_test): Likewise.
27320 (bcd<bcd_add_sub>_test2): Likewise.
27321 (bcd<bcd_add_sub>_<code>): Likewise.
27322 (peephole2 for combined bcd ops): Likewise.
27324 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27325 decimal floating point builtin functions.
27326 (UNSPEC_DENBCD): Likewise.
27327 (UNSPEC_DXEX): Likewise.
27328 (UNSPEC_DIEX): Likewise.
27329 (UNSPEC_DSCLI): Likewise.
27330 (UNSPEC_DSCRI): Likewise.
27331 (D64_D128): Likewise.
27332 (dfp_suffix): Likewise.
27333 (dfp_ddedpd_<mode>): Likewise.
27334 (dfp_denbcd_<mode>): Likewise.
27335 (dfp_dxex_<mode>): Likewise.
27336 (dfp_diex_<mode>): Likewise.
27337 (dfp_dscli_<mode>): Likewise.
27338 (dfp_dscri_<mode>): Likewise.
27340 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27342 (UNSPEC_CDTBCD): Likewise.
27343 (UNSPEC_CBCDTD): Likewise.
27344 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27345 (UNSPEC_DIVEO): Likewise.
27346 (UNSPEC_DIVEU): Likewise.
27347 (UNSPEC_DIVEUO): Likewise.
27348 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27349 pack/unpack 128-bit types.
27350 (UNSPEC_PACK_128BIT): Likewise.
27351 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27352 (udiv<mode>3): Use idiv_ldiv mode attribute.
27353 (div<mode>3): Likewise.
27354 (addg6s): Add new BCD builtin functions.
27355 (cdtbcd): Likewise.
27356 (cbcdtd): Likewise.
27357 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27358 (div_extend): Likewise.
27359 (div<div_extend>_<mode>"): Likewise.
27360 (FP128_64): Add support for new builtin functions to pack/unpack
27362 (unpack<mode>): Likewise.
27363 (unpacktf_0): Likewise.
27364 (unpacktf_1): Likewise.
27365 (unpack<mode>_dm): Likewise.
27366 (unpack<mode>_nodm): Likewise.
27367 (pack<mode>): Likewise.
27368 (unpackv1ti): Likewise.
27369 (packv1ti): Likewise.
27371 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
27373 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27376 2014-04-24 Jakub Jelinek <jakub@redhat.com>
27378 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27379 * gimplify.c (omp_is_private): Change last argument's type to int.
27380 Only diagnose lastprivate if the simd argument is 1, only diagnose
27381 linear if the simd argument is 2.
27382 (gimplify_omp_for): Adjust omp_is_private callers. When adding
27383 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
27384 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
27385 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27386 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27387 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27388 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27389 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27390 * tree-nested.c (convert_nonlocal_omp_clauses,
27391 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27393 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
27396 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27399 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
27401 * flag-types.h (enum ivar_visibility): Add.
27403 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
27405 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27406 function * argument.
27408 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
27410 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
27412 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27413 Tom de Vries <tom@codesourcery.com>
27415 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
27416 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
27418 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
27419 * emit-rtl.c (try_split): Same.
27421 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27422 Tom de Vries <tom@codesourcery.com>
27424 * common.opt (fuse-caller-save): New option.
27426 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
27428 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27429 elements for big-endian.
27431 2014-04-24 Richard Biener <rguenther@suse.de>
27433 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27434 during TER and instead use the sepops interface for expanding
27435 non-GIMPLE_SINGLE_RHS.
27437 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27439 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27440 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27442 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27444 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27445 assembler 64-bit option.
27446 * configure: Regenerate.
27448 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27450 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27451 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27452 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27453 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27454 (TARGET_CRYPTO): Take TARGET_SIMD into account.
27456 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27458 * config/aarch64/aarch64-builtins.c
27459 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
27460 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
27461 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
27462 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
27464 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
27465 (Vrevsuff): New mode attribute.
27467 2014-04-24 Terry Guo <terry.guo@arm.com>
27469 * config/arm/arm.h (machine_function): Define variable
27470 after_arm_reorg here.
27471 * config/arm/arm.c (after_arm_reorg): Remove the definition.
27472 (arm_split_constant): Update the way to access variable
27474 (arm_reorg): Ditto.
27475 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
27477 2014-04-23 Tom de Vries <tom@codesourcery.com>
27479 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
27481 2014-04-23 David Malcolm <dmalcolm@redhat.com>
27483 * is-a.h: Update comments to reflect the following changes to the
27484 "pointerness" of the API, making the template parameter match the
27485 return type, allowing use of is-a.h with typedefs of pointers.
27486 (is_a_helper::cast): Return a T rather then a pointer to a T, so
27487 that the return type matches the parameter to the is_a_helper.
27489 (dyn_cast): Likewise.
27491 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
27492 pointer from the is-a.h API.
27494 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
27495 (is_a_helper <cgraph_node *>::test): ...this, matching change to
27497 (is_a_helper <varpool_node>::test): Likewise, convert to...
27498 (is_a_helper <varpool_node *>::test): ...this.
27500 (varpool_first_variable): Update for removal of implicit pointer
27501 from the is-a.h API.
27502 (varpool_next_variable): Likewise.
27503 (varpool_first_static_initializer): Likewise.
27504 (varpool_next_static_initializer): Likewise.
27505 (varpool_first_defined_variable): Likewise.
27506 (varpool_next_defined_variable): Likewise.
27507 (cgraph_first_defined_function): Likewise.
27508 (cgraph_next_defined_function): Likewise.
27509 (cgraph_first_function): Likewise.
27510 (cgraph_next_function): Likewise.
27511 (cgraph_first_function_with_gimple_body): Likewise.
27512 (cgraph_next_function_with_gimple_body): Likewise.
27513 (cgraph_alias_target): Likewise.
27514 (varpool_alias_target): Likewise.
27515 (cgraph_function_or_thunk_node): Likewise.
27516 (varpool_variable_node): Likewise.
27517 (symtab_real_symbol_p): Likewise.
27518 * cgraphunit.c (referred_to_p): Likewise.
27519 (analyze_functions): Likewise.
27520 (handle_alias_pairs): Likewise.
27521 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
27522 * gimple-ssa.h (gimple_vuse_op): Likewise.
27523 (gimple_vdef_op): Likewise.
27524 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
27525 * gimple.c (gimple_build_asm_1): Likewise.
27526 (gimple_build_try): Likewise.
27527 (gimple_build_resx): Likewise.
27528 (gimple_build_eh_dispatch): Likewise.
27529 (gimple_build_omp_for): Likewise.
27530 (gimple_omp_for_set_clauses): Likewise.
27532 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
27533 (is_a_helper <gimple_statement_asm *>::test): ...this.
27534 (is_a_helper <gimple_statement_bind>::test): Convert to...
27535 (is_a_helper <gimple_statement_bind *>::test): ...this.
27536 (is_a_helper <gimple_statement_call>::test): Convert to...
27537 (is_a_helper <gimple_statement_call *>::test): ...this.
27538 (is_a_helper <gimple_statement_catch>::test): Convert to...
27539 (is_a_helper <gimple_statement_catch *>::test): ...this.
27540 (is_a_helper <gimple_statement_resx>::test): Convert to...
27541 (is_a_helper <gimple_statement_resx *>::test): ...this.
27542 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
27543 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
27544 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
27545 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
27546 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
27547 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
27548 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
27549 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
27550 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
27551 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
27552 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
27553 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
27554 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
27555 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
27556 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
27557 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
27558 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
27559 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
27560 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
27561 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
27562 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
27563 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
27564 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
27565 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
27566 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
27567 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
27568 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
27569 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
27570 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
27571 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
27572 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
27573 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
27574 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
27575 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
27576 (is_a_helper <gimple_statement_phi>::test): Convert to...
27577 (is_a_helper <gimple_statement_phi *>::test): ...this.
27578 (is_a_helper <gimple_statement_transaction>::test): Convert to...
27579 (is_a_helper <gimple_statement_transaction *>::test): ...this.
27580 (is_a_helper <gimple_statement_try>::test): Convert to...
27581 (is_a_helper <gimple_statement_try *>::test): ...this.
27582 (is_a_helper <gimple_statement_wce>::test): Convert to...
27583 (is_a_helper <gimple_statement_wce *>::test): ...this.
27584 (is_a_helper <const gimple_statement_asm>::test): Convert to...
27585 (is_a_helper <const gimple_statement_asm *>::test): ...this.
27586 (is_a_helper <const gimple_statement_bind>::test): Convert to...
27587 (is_a_helper <const gimple_statement_bind *>::test): ...this.
27588 (is_a_helper <const gimple_statement_call>::test): Convert to...
27589 (is_a_helper <const gimple_statement_call *>::test): ...this.
27590 (is_a_helper <const gimple_statement_catch>::test): Convert to...
27591 (is_a_helper <const gimple_statement_catch *>::test): ...this.
27592 (is_a_helper <const gimple_statement_resx>::test): Convert to...
27593 (is_a_helper <const gimple_statement_resx *>::test): ...this.
27594 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
27595 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
27596 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
27597 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
27598 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
27600 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
27602 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
27604 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
27606 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
27607 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
27608 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
27610 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
27611 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
27613 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
27614 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
27615 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
27616 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
27617 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
27618 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
27620 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
27621 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
27622 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
27623 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
27625 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
27626 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
27627 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
27628 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
27629 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
27630 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
27631 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
27632 (is_a_helper <const gimple_statement_phi>::test): Convert to...
27633 (is_a_helper <const gimple_statement_phi *>::test): ...this.
27634 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
27635 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
27636 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
27637 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
27638 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
27639 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
27640 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
27642 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
27644 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
27645 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
27647 (gimple_use_ops): Update for removal of implicit pointer from the
27649 (gimple_set_use_ops): Likewise.
27650 (gimple_vuse): Likewise.
27651 (gimple_vdef): Likewise.
27652 (gimple_vuse_ptr): Likewise.
27653 (gimple_vdef_ptr): Likewise.
27654 (gimple_set_vuse): Likewise.
27655 (gimple_set_vdef): Likewise.
27656 (gimple_omp_return_set_lhs): Likewise.
27657 (gimple_omp_return_lhs): Likewise.
27658 (gimple_omp_return_lhs_ptr): Likewise.
27659 (gimple_call_fntype): Likewise.
27660 (gimple_call_set_fntype): Likewise.
27661 (gimple_call_set_internal_fn): Likewise.
27662 (gimple_call_use_set): Likewise.
27663 (gimple_call_clobber_set): Likewise.
27664 (gimple_bind_vars): Likewise.
27665 (gimple_bind_set_vars): Likewise.
27666 (gimple_bind_body_ptr): Likewise.
27667 (gimple_bind_set_body): Likewise.
27668 (gimple_bind_add_stmt): Likewise.
27669 (gimple_bind_block): Likewise.
27670 (gimple_bind_set_block): Likewise.
27671 (gimple_asm_ninputs): Likewise.
27672 (gimple_asm_noutputs): Likewise.
27673 (gimple_asm_nclobbers): Likewise.
27674 (gimple_asm_nlabels): Likewise.
27675 (gimple_asm_input_op): Likewise.
27676 (gimple_asm_input_op_ptr): Likewise.
27677 (gimple_asm_output_op): Likewise.
27678 (gimple_asm_output_op_ptr): Likewise.
27679 (gimple_asm_set_output_op): Likewise.
27680 (gimple_asm_clobber_op): Likewise.
27681 (gimple_asm_set_clobber_op): Likewise.
27682 (gimple_asm_label_op): Likewise.
27683 (gimple_asm_set_label_op): Likewise.
27684 (gimple_asm_string): Likewise.
27685 (gimple_catch_types): Likewise.
27686 (gimple_catch_types_ptr): Likewise.
27687 (gimple_catch_handler_ptr): Likewise.
27688 (gimple_catch_set_types): Likewise.
27689 (gimple_catch_set_handler): Likewise.
27690 (gimple_eh_filter_types): Likewise.
27691 (gimple_eh_filter_types_ptr): Likewise.
27692 (gimple_eh_filter_failure_ptr): Likewise.
27693 (gimple_eh_filter_set_types): Likewise.
27694 (gimple_eh_filter_set_failure): Likewise.
27695 (gimple_eh_must_not_throw_fndecl): Likewise.
27696 (gimple_eh_must_not_throw_set_fndecl): Likewise.
27697 (gimple_eh_else_n_body_ptr): Likewise.
27698 (gimple_eh_else_e_body_ptr): Likewise.
27699 (gimple_eh_else_set_n_body): Likewise.
27700 (gimple_eh_else_set_e_body): Likewise.
27701 (gimple_try_eval_ptr): Likewise.
27702 (gimple_try_cleanup_ptr): Likewise.
27703 (gimple_try_set_eval): Likewise.
27704 (gimple_try_set_cleanup): Likewise.
27705 (gimple_wce_cleanup_ptr): Likewise.
27706 (gimple_wce_set_cleanup): Likewise.
27707 (gimple_phi_capacity): Likewise.
27708 (gimple_phi_num_args): Likewise.
27709 (gimple_phi_result): Likewise.
27710 (gimple_phi_result_ptr): Likewise.
27711 (gimple_phi_set_result): Likewise.
27712 (gimple_phi_arg): Likewise.
27713 (gimple_phi_set_arg): Likewise.
27714 (gimple_resx_region): Likewise.
27715 (gimple_resx_set_region): Likewise.
27716 (gimple_eh_dispatch_region): Likewise.
27717 (gimple_eh_dispatch_set_region): Likewise.
27718 (gimple_omp_critical_name): Likewise.
27719 (gimple_omp_critical_name_ptr): Likewise.
27720 (gimple_omp_critical_set_name): Likewise.
27721 (gimple_omp_for_clauses): Likewise.
27722 (gimple_omp_for_clauses_ptr): Likewise.
27723 (gimple_omp_for_set_clauses): Likewise.
27724 (gimple_omp_for_collapse): Likewise.
27725 (gimple_omp_for_index): Likewise.
27726 (gimple_omp_for_index_ptr): Likewise.
27727 (gimple_omp_for_set_index): Likewise.
27728 (gimple_omp_for_initial): Likewise.
27729 (gimple_omp_for_initial_ptr): Likewise.
27730 (gimple_omp_for_set_initial): Likewise.
27731 (gimple_omp_for_final): Likewise.
27732 (gimple_omp_for_final_ptr): Likewise.
27733 (gimple_omp_for_set_final): Likewise.
27734 (gimple_omp_for_incr): Likewise.
27735 (gimple_omp_for_incr_ptr): Likewise.
27736 (gimple_omp_for_set_incr): Likewise.
27737 (gimple_omp_for_pre_body_ptr): Likewise.
27738 (gimple_omp_for_set_pre_body): Likewise.
27739 (gimple_omp_parallel_clauses): Likewise.
27740 (gimple_omp_parallel_clauses_ptr): Likewise.
27741 (gimple_omp_parallel_set_clauses): Likewise.
27742 (gimple_omp_parallel_child_fn): Likewise.
27743 (gimple_omp_parallel_child_fn_ptr): Likewise.
27744 (gimple_omp_parallel_set_child_fn): Likewise.
27745 (gimple_omp_parallel_data_arg): Likewise.
27746 (gimple_omp_parallel_data_arg_ptr): Likewise.
27747 (gimple_omp_parallel_set_data_arg): Likewise.
27748 (gimple_omp_task_clauses): Likewise.
27749 (gimple_omp_task_clauses_ptr): Likewise.
27750 (gimple_omp_task_set_clauses): Likewise.
27751 (gimple_omp_task_child_fn): Likewise.
27752 (gimple_omp_task_child_fn_ptr): Likewise.
27753 (gimple_omp_task_set_child_fn): Likewise.
27754 (gimple_omp_task_data_arg): Likewise.
27755 (gimple_omp_task_data_arg_ptr): Likewise.
27756 (gimple_omp_task_set_data_arg): Likewise.
27757 (gimple_omp_taskreg_clauses): Likewise.
27758 (gimple_omp_taskreg_clauses_ptr): Likewise.
27759 (gimple_omp_taskreg_set_clauses): Likewise.
27760 (gimple_omp_taskreg_child_fn): Likewise.
27761 (gimple_omp_taskreg_child_fn_ptr): Likewise.
27762 (gimple_omp_taskreg_set_child_fn): Likewise.
27763 (gimple_omp_taskreg_data_arg): Likewise.
27764 (gimple_omp_taskreg_data_arg_ptr): Likewise.
27765 (gimple_omp_taskreg_set_data_arg): Likewise.
27766 (gimple_omp_task_copy_fn): Likewise.
27767 (gimple_omp_task_copy_fn_ptr): Likewise.
27768 (gimple_omp_task_set_copy_fn): Likewise.
27769 (gimple_omp_task_arg_size): Likewise.
27770 (gimple_omp_task_arg_size_ptr): Likewise.
27771 (gimple_omp_task_set_arg_size): Likewise.
27772 (gimple_omp_task_arg_align): Likewise.
27773 (gimple_omp_task_arg_align_ptr): Likewise.
27774 (gimple_omp_task_set_arg_align): Likewise.
27775 (gimple_omp_single_clauses): Likewise.
27776 (gimple_omp_single_clauses_ptr): Likewise.
27777 (gimple_omp_single_set_clauses): Likewise.
27778 (gimple_omp_target_clauses): Likewise.
27779 (gimple_omp_target_clauses_ptr): Likewise.
27780 (gimple_omp_target_set_clauses): Likewise.
27781 (gimple_omp_target_child_fn): Likewise.
27782 (gimple_omp_target_child_fn_ptr): Likewise.
27783 (gimple_omp_target_set_child_fn): Likewise.
27784 (gimple_omp_target_data_arg): Likewise.
27785 (gimple_omp_target_data_arg_ptr): Likewise.
27786 (gimple_omp_target_set_data_arg): Likewise.
27787 (gimple_omp_teams_clauses): Likewise.
27788 (gimple_omp_teams_clauses_ptr): Likewise.
27789 (gimple_omp_teams_set_clauses): Likewise.
27790 (gimple_omp_sections_clauses): Likewise.
27791 (gimple_omp_sections_clauses_ptr): Likewise.
27792 (gimple_omp_sections_set_clauses): Likewise.
27793 (gimple_omp_sections_control): Likewise.
27794 (gimple_omp_sections_control_ptr): Likewise.
27795 (gimple_omp_sections_set_control): Likewise.
27796 (gimple_omp_for_set_cond): Likewise.
27797 (gimple_omp_for_cond): Likewise.
27798 (gimple_omp_atomic_store_set_val): Likewise.
27799 (gimple_omp_atomic_store_val): Likewise.
27800 (gimple_omp_atomic_store_val_ptr): Likewise.
27801 (gimple_omp_atomic_load_set_lhs): Likewise.
27802 (gimple_omp_atomic_load_lhs): Likewise.
27803 (gimple_omp_atomic_load_lhs_ptr): Likewise.
27804 (gimple_omp_atomic_load_set_rhs): Likewise.
27805 (gimple_omp_atomic_load_rhs): Likewise.
27806 (gimple_omp_atomic_load_rhs_ptr): Likewise.
27807 (gimple_omp_continue_control_def): Likewise.
27808 (gimple_omp_continue_control_def_ptr): Likewise.
27809 (gimple_omp_continue_set_control_def): Likewise.
27810 (gimple_omp_continue_control_use): Likewise.
27811 (gimple_omp_continue_control_use_ptr): Likewise.
27812 (gimple_omp_continue_set_control_use): Likewise.
27813 (gimple_transaction_body_ptr): Likewise.
27814 (gimple_transaction_label): Likewise.
27815 (gimple_transaction_label_ptr): Likewise.
27816 (gimple_transaction_set_body): Likewise.
27817 (gimple_transaction_set_label): Likewise.
27819 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
27820 * ipa-inline-analysis.c (inline_write_summary): Likewise.
27821 * ipa-ref.c (ipa_record_reference): Likewise.
27822 * ipa-reference.c (analyze_function): Likewise.
27823 (ipa_reference_write_optimization_summary): Likewise.
27824 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
27825 (address_taken_from_non_vtable_p): Likewise.
27826 (comdat_can_be_unshared_p_1): Likewise.
27827 * lto-cgraph.c (lto_output_ref): Likewise.
27828 (add_references): Likewise.
27829 (compute_ltrans_boundary): Likewise.
27830 (output_symtab): Likewise.
27831 (input_ref): Likewise.
27832 (input_cgraph_1): Likewise.
27833 (output_cgraph_opt_summary): Likewise.
27834 * lto-streamer-out.c (lto_output): Likewise.
27835 (output_symbol_p): Likewise.
27836 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
27837 (lsei_start_function_in_partition): Likewise.
27838 (lsei_next_variable_in_partition): Likewise.
27839 (lsei_start_variable_in_partition): Likewise.
27840 * symtab.c (insert_to_assembler_name_hash): Likewise.
27841 (unlink_from_assembler_name_hash): Likewise.
27842 (symtab_unregister_node): Likewise.
27843 (symtab_remove_node): Likewise.
27844 (dump_symtab_node): Likewise.
27845 (verify_symtab_base): Likewise.
27846 (verify_symtab_node): Likewise.
27847 (symtab_make_decl_local): Likewise.
27848 (symtab_alias_ultimate_target): Likewise.
27849 (symtab_resolve_alias): Likewise.
27850 (symtab_get_symbol_partitioning_class): Likewise.
27851 * tree-phinodes.c (allocate_phi_node): Likewise.
27852 (reserve_phi_args_for_new_edge): Likewise.
27853 (remove_phi_args): Likewise.
27854 * varpool.c (varpool_node_for_asm): Likewise.
27855 (varpool_remove_unreferenced_decls): Likewise.
27857 2014-04-23 Jeff Law <law@redhat.com>
27859 PR tree-optimization/60902
27860 * tree-ssa-threadedge.c
27861 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
27862 invalidate outputs from statements that do not produce useful
27863 outputs for threading.
27865 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
27867 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
27868 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
27869 machine descriptions for Stack Smashing Protector.
27871 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
27873 * aarch64.md (<optab>_rol<mode>3): New pattern.
27874 (<optab>_rolsi3_uxtw): Likewise.
27875 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
27877 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
27879 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
27880 (arm_cortex_a12_tune): Likewise.
27882 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27884 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
27886 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27888 * config/arm/arm.md (arm_rev16si2): New pattern.
27889 (arm_rev16si2_alt): Likewise.
27890 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
27892 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27894 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
27895 (rev16<mode>2_alt): Likewise.
27896 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
27897 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
27898 (aarch_rev16_shleft_mask_imm_p): Likewise.
27899 (aarch_rev16_p_1): Likewise.
27900 (aarch_rev16_p): Likewise.
27901 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
27902 (aarch_rev16_shright_mask_imm_p): Likewise.
27903 (aarch_rev16_shleft_mask_imm_p): Likewise.
27905 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27907 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
27908 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
27910 (cortex_a53_extra_costs): Likewise.
27911 (cortex_a57_extra_costs): Likewise.
27912 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
27913 (cortexa7_extra_costs): Likewise.
27914 (cortexa8_extra_costs): Likewise.
27915 (cortexa12_extra_costs): Likewise.
27916 (cortexa15_extra_costs): Likewise.
27917 (v7m_extra_costs): Likewise.
27918 (arm_new_rtx_costs): Handle BSWAP.
27920 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27922 * config/arm/arm.c (cortexa8_extra_costs): New table.
27923 (arm_cortex_a8_tune): New tuning struct.
27924 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
27926 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27928 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
27930 2014-04-23 Richard Biener <rguenther@suse.de>
27932 * Makefile.in (OBJS): Remove loop-unswitch.o.
27933 * tree-pass.h (make_pass_rtl_unswitch): Remove.
27934 * passes.def (pass_rtl_unswitch): Likewise.
27935 * loop-init.c (gate_rtl_unswitch): Likewise.
27936 (rtl_unswitch): Likewise.
27937 (pass_data_rtl_unswitch): Likewise.
27938 (pass_rtl_unswitch): Likewise.
27939 (make_pass_rtl_unswitch): Likewise.
27940 * rtl.h (reversed_condition): Likewise.
27941 (compare_and_jump_seq): Likewise.
27942 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
27944 * loop-unroll.c (compare_and_jump_seq): Likewise.
27946 2014-04-23 Richard Biener <rguenther@suse.de>
27948 PR tree-optimization/60903
27949 * tree-ssa-loop-im.c (analyze_memory_references): Remove
27950 commented code block.
27951 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
27952 loop flags to newly created BBs and edges.
27954 2014-04-23 Nick Clifton <nickc@redhat.com>
27956 * config/msp430/msp430.c (msp430_handle_option): Move function
27958 (msp430_option_override): Simplify mcu and mcpu option handling.
27959 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
27960 support for -mhwmult command line option.
27961 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
27962 -mhwmult command line option.
27963 (msp430_hwmult_enabled): Delete.
27964 (msp43o_output_labelref): Add support for -mhwmult command line option.
27965 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
27966 (umulsidi3): Likewise.
27967 * config/msp430/msp430.opt (mmcu): Add Report attribute.
27968 (mcpu, mlarge, msmall): Likewise.
27969 (mhwmult): New option.
27970 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
27972 (msp430_is_f5_mcu): Remove prototype.
27973 (msp430_use_f5_series_hwmult): Add prototype.
27974 * config/msp430/msp430-opts.h: New file.
27975 * common/config/msp430: New directory.
27976 * common/config/msp430/msp430-common.c: New file.
27977 * config.gcc (msp430): Remove target_has_targetm_common.
27978 * doc/invoke.texi: Document -mhwmult command line option.
27980 2014-04-23 Nick Clifton <nickc@redhat.com>
27982 * config/i386/cygwin.h (ENDFILE_SPEC): Include
27983 default-manifest.o if it can be found in the search path.
27984 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
27986 2014-04-23 Terry Guo <terry.guo@arm.com>
27988 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
27990 2014-04-23 Richard Biener <rguenther@suse.de>
27992 PR middle-end/60895
27993 * tree-inline.c (declare_return_variable): Use mark_addressable.
27995 2014-04-23 Richard Biener <rguenther@suse.de>
27997 PR middle-end/60891
27998 * loop-init.c (loop_optimizer_init): Make sure to apply
27999 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28001 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28004 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28006 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28007 if flag_sanitize_undefined_trap_on_error.
28008 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28009 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28010 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28011 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28012 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28013 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28014 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28015 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28016 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28017 * ubsan.c (ubsan_instrument_unreachable): Return
28018 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28019 (ubsan_expand_null_ifn): Emit __builtin_trap ()
28020 if flag_sanitize_undefined_trap_on_error and
28021 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28022 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28023 instrument_bool_enum_load): Emit __builtin_trap () if
28024 flag_sanitize_undefined_trap_on_error and
28025 __builtin_handle_*_abort () if !flag_sanitize_recover.
28026 * doc/invoke.texi (-fsanitize-recover,
28027 -fsanitize-undefined-trap-on-error): Document.
28029 2014-04-22 Christian Bruel <christian.bruel@st.com>
28031 * config/sh/sh.md (mov<mode>): Replace movQIHI.
28032 Force immediates to SImode.
28034 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
28036 * config/nios2/nios2.md (UNSPEC_ROUND): New.
28037 (lroundsfsi2): New.
28038 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28039 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28040 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28041 (nios2_fpu_insn): Add entry for round.
28042 (N2FPU_NO_ERRNO_P): Define.
28043 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28045 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28047 2014-04-22 Richard Henderson <rth@redhat.com>
28049 * config/aarch64/aarch64 (addti3, subti3): New expanders.
28050 (add<GPI>3_compare0): Remove leading * from name.
28051 (add<GPI>3_carryin): Likewise.
28052 (sub<GPI>3_compare0): Likewise.
28053 (sub<GPI>3_carryin): Likewise.
28054 (<su_optab>mulditi3): New expander.
28055 (multi3): New expander.
28056 (madd<GPI>): Remove leading * from name.
28058 2014-04-22 Martin Jambor <mjambor@suse.cz>
28060 * cgraphclones.c (cgraph_function_versioning): Copy
28061 ipa_transforms_to_apply instead of asserting it is empty.
28063 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
28066 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
28067 on count_exp to get mode.
28069 2014-04-22 Andrew Pinski <apinski@cavium.com>
28071 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28072 Handle TLS for ILP32.
28073 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
28074 (tlsie_small_<mode>): this and handle PTR.
28075 (tlsie_small_sidi): New pattern.
28076 (tlsle_small): Change to an expand to handle ILP32.
28077 (tlsle_small_<mode>): New pattern.
28078 (tlsdesc_small): Rename to ...
28079 (tlsdesc_small_<mode>): this and handle PTR.
28081 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28083 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
28085 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28087 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28088 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
28089 (aarch64_types_signed_poly_qualifiers): Likewise.
28090 (aarch64_types_unsigned_signed_qualifiers): Likewise.
28091 (aarch64_types_poly_signed_qualifiers): Likewise.
28092 (TYPES_REINTERP_SS): Type macro added.
28093 (TYPES_REINTERP_SU): Likewise.
28094 (TYPES_REINTERP_SP): Likewise.
28095 (TYPES_REINTERP_US): Likewise.
28096 (TYPES_REINTERP_PS): Likewise.
28097 (aarch64_fold_builtin): New expression folding added.
28098 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
28099 Declarations removed.
28100 (REINTERP_SS): Declarations added.
28101 (REINTERP_US): Likewise.
28102 (REINTERP_PS): Likewise.
28103 (REINTERP_SU): Likewise.
28104 (REINTERP_SP): Likewise.
28105 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
28106 (vreinterpretq_p8_f64): Likewise.
28107 (vreinterpret_p16_f64): Likewise.
28108 (vreinterpretq_p16_f64): Likewise.
28109 (vreinterpret_f32_f64): Likewise.
28110 (vreinterpretq_f32_f64): Likewise.
28111 (vreinterpret_f64_f32): Likewise.
28112 (vreinterpret_f64_p8): Likewise.
28113 (vreinterpret_f64_p16): Likewise.
28114 (vreinterpret_f64_s8): Likewise.
28115 (vreinterpret_f64_s16): Likewise.
28116 (vreinterpret_f64_s32): Likewise.
28117 (vreinterpret_f64_s64): Likewise.
28118 (vreinterpret_f64_u8): Likewise.
28119 (vreinterpret_f64_u16): Likewise.
28120 (vreinterpret_f64_u32): Likewise.
28121 (vreinterpret_f64_u64): Likewise.
28122 (vreinterpretq_f64_f32): Likewise.
28123 (vreinterpretq_f64_p8): Likewise.
28124 (vreinterpretq_f64_p16): Likewise.
28125 (vreinterpretq_f64_s8): Likewise.
28126 (vreinterpretq_f64_s16): Likewise.
28127 (vreinterpretq_f64_s32): Likewise.
28128 (vreinterpretq_f64_s64): Likewise.
28129 (vreinterpretq_f64_u8): Likewise.
28130 (vreinterpretq_f64_u16): Likewise.
28131 (vreinterpretq_f64_u32): Likewise.
28132 (vreinterpretq_f64_u64): Likewise.
28133 (vreinterpret_s64_f64): Likewise.
28134 (vreinterpretq_s64_f64): Likewise.
28135 (vreinterpret_u64_f64): Likewise.
28136 (vreinterpretq_u64_f64): Likewise.
28137 (vreinterpret_s8_f64): Likewise.
28138 (vreinterpretq_s8_f64): Likewise.
28139 (vreinterpret_s16_f64): Likewise.
28140 (vreinterpretq_s16_f64): Likewise.
28141 (vreinterpret_s32_f64): Likewise.
28142 (vreinterpretq_s32_f64): Likewise.
28143 (vreinterpret_u8_f64): Likewise.
28144 (vreinterpretq_u8_f64): Likewise.
28145 (vreinterpret_u16_f64): Likewise.
28146 (vreinterpretq_u16_f64): Likewise.
28147 (vreinterpret_u32_f64): Likewise.
28148 (vreinterpretq_u32_f64): Likewise.
28150 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28152 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28153 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
28154 (vreinterpret_p8_s8): Likewise.
28155 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
28156 (vreinterpret_p8_s16): Likewise.
28157 (vreinterpret_p8_s32): Likewise.
28158 (vreinterpret_p8_s64): Likewise.
28159 (vreinterpret_p8_f32): Likewise.
28160 (vreinterpret_p8_u8): Likewise.
28161 (vreinterpret_p8_u16): Likewise.
28162 (vreinterpret_p8_u32): Likewise.
28163 (vreinterpret_p8_u64): Likewise.
28164 (vreinterpret_p8_p16): Likewise.
28165 (vreinterpretq_p8_s8): Likewise.
28166 (vreinterpretq_p8_s16): Likewise.
28167 (vreinterpretq_p8_s32): Likewise.
28168 (vreinterpretq_p8_s64): Likewise.
28169 (vreinterpretq_p8_f32): Likewise.
28170 (vreinterpretq_p8_u8): Likewise.
28171 (vreinterpretq_p8_u16): Likewise.
28172 (vreinterpretq_p8_u32): Likewise.
28173 (vreinterpretq_p8_u64): Likewise.
28174 (vreinterpretq_p8_p16): Likewise.
28175 (vreinterpret_p16_s8): Likewise.
28176 (vreinterpret_p16_s16): Likewise.
28177 (vreinterpret_p16_s32): Likewise.
28178 (vreinterpret_p16_s64): Likewise.
28179 (vreinterpret_p16_f32): Likewise.
28180 (vreinterpret_p16_u8): Likewise.
28181 (vreinterpret_p16_u16): Likewise.
28182 (vreinterpret_p16_u32): Likewise.
28183 (vreinterpret_p16_u64): Likewise.
28184 (vreinterpret_p16_p8): Likewise.
28185 (vreinterpretq_p16_s8): Likewise.
28186 (vreinterpretq_p16_s16): Likewise.
28187 (vreinterpretq_p16_s32): Likewise.
28188 (vreinterpretq_p16_s64): Likewise.
28189 (vreinterpretq_p16_f32): Likewise.
28190 (vreinterpretq_p16_u8): Likewise.
28191 (vreinterpretq_p16_u16): Likewise.
28192 (vreinterpretq_p16_u32): Likewise.
28193 (vreinterpretq_p16_u64): Likewise.
28194 (vreinterpretq_p16_p8): Likewise.
28195 (vreinterpret_f32_s8): Likewise.
28196 (vreinterpret_f32_s16): Likewise.
28197 (vreinterpret_f32_s32): Likewise.
28198 (vreinterpret_f32_s64): Likewise.
28199 (vreinterpret_f32_u8): Likewise.
28200 (vreinterpret_f32_u16): Likewise.
28201 (vreinterpret_f32_u32): Likewise.
28202 (vreinterpret_f32_u64): Likewise.
28203 (vreinterpret_f32_p8): Likewise.
28204 (vreinterpret_f32_p16): Likewise.
28205 (vreinterpretq_f32_s8): Likewise.
28206 (vreinterpretq_f32_s16): Likewise.
28207 (vreinterpretq_f32_s32): Likewise.
28208 (vreinterpretq_f32_s64): Likewise.
28209 (vreinterpretq_f32_u8): Likewise.
28210 (vreinterpretq_f32_u16): Likewise.
28211 (vreinterpretq_f32_u32): Likewise.
28212 (vreinterpretq_f32_u64): Likewise.
28213 (vreinterpretq_f32_p8): Likewise.
28214 (vreinterpretq_f32_p16): Likewise.
28215 (vreinterpret_s64_s8): Likewise.
28216 (vreinterpret_s64_s16): Likewise.
28217 (vreinterpret_s64_s32): Likewise.
28218 (vreinterpret_s64_f32): Likewise.
28219 (vreinterpret_s64_u8): Likewise.
28220 (vreinterpret_s64_u16): Likewise.
28221 (vreinterpret_s64_u32): Likewise.
28222 (vreinterpret_s64_u64): Likewise.
28223 (vreinterpret_s64_p8): Likewise.
28224 (vreinterpret_s64_p16): Likewise.
28225 (vreinterpretq_s64_s8): Likewise.
28226 (vreinterpretq_s64_s16): Likewise.
28227 (vreinterpretq_s64_s32): Likewise.
28228 (vreinterpretq_s64_f32): Likewise.
28229 (vreinterpretq_s64_u8): Likewise.
28230 (vreinterpretq_s64_u16): Likewise.
28231 (vreinterpretq_s64_u32): Likewise.
28232 (vreinterpretq_s64_u64): Likewise.
28233 (vreinterpretq_s64_p8): Likewise.
28234 (vreinterpretq_s64_p16): Likewise.
28235 (vreinterpret_u64_s8): Likewise.
28236 (vreinterpret_u64_s16): Likewise.
28237 (vreinterpret_u64_s32): Likewise.
28238 (vreinterpret_u64_s64): Likewise.
28239 (vreinterpret_u64_f32): Likewise.
28240 (vreinterpret_u64_u8): Likewise.
28241 (vreinterpret_u64_u16): Likewise.
28242 (vreinterpret_u64_u32): Likewise.
28243 (vreinterpret_u64_p8): Likewise.
28244 (vreinterpret_u64_p16): Likewise.
28245 (vreinterpretq_u64_s8): Likewise.
28246 (vreinterpretq_u64_s16): Likewise.
28247 (vreinterpretq_u64_s32): Likewise.
28248 (vreinterpretq_u64_s64): Likewise.
28249 (vreinterpretq_u64_f32): Likewise.
28250 (vreinterpretq_u64_u8): Likewise.
28251 (vreinterpretq_u64_u16): Likewise.
28252 (vreinterpretq_u64_u32): Likewise.
28253 (vreinterpretq_u64_p8): Likewise.
28254 (vreinterpretq_u64_p16): Likewise.
28255 (vreinterpret_s8_s16): Likewise.
28256 (vreinterpret_s8_s32): Likewise.
28257 (vreinterpret_s8_s64): Likewise.
28258 (vreinterpret_s8_f32): Likewise.
28259 (vreinterpret_s8_u8): Likewise.
28260 (vreinterpret_s8_u16): Likewise.
28261 (vreinterpret_s8_u32): Likewise.
28262 (vreinterpret_s8_u64): Likewise.
28263 (vreinterpret_s8_p8): Likewise.
28264 (vreinterpret_s8_p16): Likewise.
28265 (vreinterpretq_s8_s16): Likewise.
28266 (vreinterpretq_s8_s32): Likewise.
28267 (vreinterpretq_s8_s64): Likewise.
28268 (vreinterpretq_s8_f32): Likewise.
28269 (vreinterpretq_s8_u8): Likewise.
28270 (vreinterpretq_s8_u16): Likewise.
28271 (vreinterpretq_s8_u32): Likewise.
28272 (vreinterpretq_s8_u64): Likewise.
28273 (vreinterpretq_s8_p8): Likewise.
28274 (vreinterpretq_s8_p16): Likewise.
28275 (vreinterpret_s16_s8): Likewise.
28276 (vreinterpret_s16_s32): Likewise.
28277 (vreinterpret_s16_s64): Likewise.
28278 (vreinterpret_s16_f32): Likewise.
28279 (vreinterpret_s16_u8): Likewise.
28280 (vreinterpret_s16_u16): Likewise.
28281 (vreinterpret_s16_u32): Likewise.
28282 (vreinterpret_s16_u64): Likewise.
28283 (vreinterpret_s16_p8): Likewise.
28284 (vreinterpret_s16_p16): Likewise.
28285 (vreinterpretq_s16_s8): Likewise.
28286 (vreinterpretq_s16_s32): Likewise.
28287 (vreinterpretq_s16_s64): Likewise.
28288 (vreinterpretq_s16_f32): Likewise.
28289 (vreinterpretq_s16_u8): Likewise.
28290 (vreinterpretq_s16_u16): Likewise.
28291 (vreinterpretq_s16_u32): Likewise.
28292 (vreinterpretq_s16_u64): Likewise.
28293 (vreinterpretq_s16_p8): Likewise.
28294 (vreinterpretq_s16_p16): Likewise.
28295 (vreinterpret_s32_s8): Likewise.
28296 (vreinterpret_s32_s16): Likewise.
28297 (vreinterpret_s32_s64): Likewise.
28298 (vreinterpret_s32_f32): Likewise.
28299 (vreinterpret_s32_u8): Likewise.
28300 (vreinterpret_s32_u16): Likewise.
28301 (vreinterpret_s32_u32): Likewise.
28302 (vreinterpret_s32_u64): Likewise.
28303 (vreinterpret_s32_p8): Likewise.
28304 (vreinterpret_s32_p16): Likewise.
28305 (vreinterpretq_s32_s8): Likewise.
28306 (vreinterpretq_s32_s16): Likewise.
28307 (vreinterpretq_s32_s64): Likewise.
28308 (vreinterpretq_s32_f32): Likewise.
28309 (vreinterpretq_s32_u8): Likewise.
28310 (vreinterpretq_s32_u16): Likewise.
28311 (vreinterpretq_s32_u32): Likewise.
28312 (vreinterpretq_s32_u64): Likewise.
28313 (vreinterpretq_s32_p8): Likewise.
28314 (vreinterpretq_s32_p16): Likewise.
28315 (vreinterpret_u8_s8): Likewise.
28316 (vreinterpret_u8_s16): Likewise.
28317 (vreinterpret_u8_s32): Likewise.
28318 (vreinterpret_u8_s64): Likewise.
28319 (vreinterpret_u8_f32): Likewise.
28320 (vreinterpret_u8_u16): Likewise.
28321 (vreinterpret_u8_u32): Likewise.
28322 (vreinterpret_u8_u64): Likewise.
28323 (vreinterpret_u8_p8): Likewise.
28324 (vreinterpret_u8_p16): Likewise.
28325 (vreinterpretq_u8_s8): Likewise.
28326 (vreinterpretq_u8_s16): Likewise.
28327 (vreinterpretq_u8_s32): Likewise.
28328 (vreinterpretq_u8_s64): Likewise.
28329 (vreinterpretq_u8_f32): Likewise.
28330 (vreinterpretq_u8_u16): Likewise.
28331 (vreinterpretq_u8_u32): Likewise.
28332 (vreinterpretq_u8_u64): Likewise.
28333 (vreinterpretq_u8_p8): Likewise.
28334 (vreinterpretq_u8_p16): Likewise.
28335 (vreinterpret_u16_s8): Likewise.
28336 (vreinterpret_u16_s16): Likewise.
28337 (vreinterpret_u16_s32): Likewise.
28338 (vreinterpret_u16_s64): Likewise.
28339 (vreinterpret_u16_f32): Likewise.
28340 (vreinterpret_u16_u8): Likewise.
28341 (vreinterpret_u16_u32): Likewise.
28342 (vreinterpret_u16_u64): Likewise.
28343 (vreinterpret_u16_p8): Likewise.
28344 (vreinterpret_u16_p16): Likewise.
28345 (vreinterpretq_u16_s8): Likewise.
28346 (vreinterpretq_u16_s16): Likewise.
28347 (vreinterpretq_u16_s32): Likewise.
28348 (vreinterpretq_u16_s64): Likewise.
28349 (vreinterpretq_u16_f32): Likewise.
28350 (vreinterpretq_u16_u8): Likewise.
28351 (vreinterpretq_u16_u32): Likewise.
28352 (vreinterpretq_u16_u64): Likewise.
28353 (vreinterpretq_u16_p8): Likewise.
28354 (vreinterpretq_u16_p16): Likewise.
28355 (vreinterpret_u32_s8): Likewise.
28356 (vreinterpret_u32_s16): Likewise.
28357 (vreinterpret_u32_s32): Likewise.
28358 (vreinterpret_u32_s64): Likewise.
28359 (vreinterpret_u32_f32): Likewise.
28360 (vreinterpret_u32_u8): Likewise.
28361 (vreinterpret_u32_u16): Likewise.
28362 (vreinterpret_u32_u64): Likewise.
28363 (vreinterpret_u32_p8): Likewise.
28364 (vreinterpret_u32_p16): Likewise.
28365 (vreinterpretq_u32_s8): Likewise.
28366 (vreinterpretq_u32_s16): Likewise.
28367 (vreinterpretq_u32_s32): Likewise.
28368 (vreinterpretq_u32_s64): Likewise.
28369 (vreinterpretq_u32_f32): Likewise.
28370 (vreinterpretq_u32_u8): Likewise.
28371 (vreinterpretq_u32_u16): Likewise.
28372 (vreinterpretq_u32_u64): Likewise.
28373 (vreinterpretq_u32_p8): Likewise.
28374 (vreinterpretq_u32_p16): Likewise.
28376 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28378 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28380 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28382 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28383 (vqnegd_s64): Likewise.
28384 (vqabs_s64): Likewise.
28385 (vqabsd_s64): Likewise.
28387 2014-04-22 Richard Henderson <rth@redhat.com>
28389 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28390 computation to the top of the loop.
28392 2014-04-22 Renlin <renlin.li@arm.com>
28393 Jiong Wang <jiong.wang@arm.com>
28395 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28396 * config/aarch64/aarch64.c (aarch64_layout_frame)
28397 (aarch64_initial_elimination_offset): Likewise.
28399 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
28401 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28404 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
28406 * machmode.h (bitwise_mode_for_mode): Declare.
28407 * stor-layout.h (bitwise_type_for_mode): Likewise.
28408 * stor-layout.c (bitwise_mode_for_mode): New function.
28409 (bitwise_type_for_mode): Likewise.
28410 * builtins.c (fold_builtin_memory_op): Use it instead of
28411 int_mode_for_mode and build_nonstandard_integer_type.
28413 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28415 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
28416 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
28417 (*-*-solaris2*): Simplify.
28418 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
28419 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
28420 *-*-solaris2.9* handling.
28422 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
28424 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
28425 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
28426 handling, simplify.
28427 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28428 * configure: Regenerate.
28430 * config/i386/sol2-9.h: Remove.
28432 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28433 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28434 Remove Solaris 9 references.
28436 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
28438 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28439 (floatuns<GPI:mode><GPF:mode>2): Remove.
28440 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28441 and floatuns conversions.
28442 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28443 and floatuns conversions.
28444 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28445 (w1,w2): New mode attributes for inequal width conversions.
28447 2014-04-22 Renlin Li <Renlin.Li@arm.com>
28449 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28450 the output asm format.
28452 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28454 * config/aarch64/aarch64-simd.md
28455 (aarch64_cm<optab>di): Always split.
28456 (*aarch64_cm<optab>di): New.
28457 (aarch64_cmtstdi): Always split.
28458 (*aarch64_cmtstdi): New.
28460 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28462 PR tree-optimization/60823
28463 * omp-low.c (ipa_simd_modify_function_body): Go through
28464 all SSA_NAMEs and for those refering to vector arguments
28465 which are going to be replaced adjust SSA_NAME_VAR and,
28466 if it is a default definition, change it into a non-default
28467 definition assigned at the beginning of function from new_decl.
28468 (ipa_simd_modify_stmt_ops): Rewritten.
28469 * tree-dfa.c (set_ssa_default_def): When removing default def,
28470 check for NULL loc instead of NULL *loc.
28472 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28474 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
28475 restrictions on core registers for DImode values in Thumb2.
28477 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28479 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
28480 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
28482 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28484 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
28485 (*iordi_notzesidi_di): Likewise.
28486 (*iordi_notsesidi_di): Likewise.
28488 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28490 * config/arm/arm-protos.h (tune_params): New struct members.
28491 * config/arm/arm.c: Initialise tune_params per processor.
28492 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
28493 for speed, based on new tune_params.
28495 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28497 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
28498 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
28499 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
28500 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
28501 * config/aarch64/arm_neon.h (vrnd_f64): Added.
28502 (vrnda_f64): Likewise.
28503 (vrndi_f64): Likewise.
28504 (vrndm_f64): Likewise.
28505 (vrndn_f64): Likewise.
28506 (vrndp_f64): Likewise.
28507 (vrndx_f64): Likewise.
28509 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28511 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
28512 GET_MODE_SIZE argument is enum machine_mode.
28514 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28517 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
28518 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
28520 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
28522 PR middle-end/60281
28523 * asan.c (asan_emit_stack_protection): Force the base to align to
28524 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
28525 appropriate bits if STRICT_ALIGNMENT.
28526 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
28528 (expand_used_vars): Leave a space in the stack frame for alignment
28529 if STRICT_ALIGNMENT.
28531 2014-04-21 David Malcolm <dmalcolm@redhat.com>
28533 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
28535 (gimple_store_p): Likewise.
28536 (gimple_assign_load_p): Likewise.
28537 (gimple_assign_cast_p): Likewise.
28538 (gimple_clobber_p): Likewise.
28540 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
28541 rather than a gimple.
28542 (gimple_assign_cast_p): Likewise.
28544 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28547 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
28548 If mode is DDmode and TARGET_E500_DOUBLE allow move.
28550 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
28551 more debug information for E500 if -mdebug=reg.
28553 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
28556 * config/i386/i386.c (ix86_expand_builtin)
28557 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
28558 register for target RTX.
28559 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
28561 2014-04-18 Cong Hou <congh@google.com>
28563 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
28564 the widen-mult pattern by handling two operands with different sizes,
28565 and operands whose size is smaller than half of the result type.
28567 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
28569 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
28570 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
28571 (do_estimate_edge_time): Compute it.
28572 * ipa-inline.c (want_inline_small_function_p): Bypass
28573 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
28575 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
28577 * ipa-inline.c (spec_rem): New static variable.
28578 (dump_overall_stats): New function.
28579 (dump_inline_stats): New function.
28581 2014-04-18 Richard Henderson <rth@redhat.com>
28583 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
28584 to GET_MODE_SIZE, not a reg_class_t.
28586 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28588 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
28589 (vsx_xxmrglw_<mode>): Likewise.
28591 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
28594 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
28595 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
28596 (rs6000_init_hard_regno_mode_ok): Likewise.
28598 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
28600 * ipa-inline.c (inline_small_functions): Account only non-cold
28602 * doc/invoke.texi (inline-unit-growth): Update documentation.
28604 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
28606 * config/rs6000/rs6000.md (addti3, subti3): New.
28608 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
28611 * config/i386/i386.c (ix86_expand_clear): Remove outdated
28612 comment. Check optimize_insn_for_size_p instead of
28613 optimize_insn_for_speed_p.
28615 2014-04-17 Martin Jambor <mjambor@suse.cz>
28617 * gimple-iterator.c (gsi_start_edge): New function.
28618 * gimple-iterator.h (gsi_start_edge): Declare.
28619 * tree-sra.c (single_non_eh_succ): New function.
28620 (disqualify_ops_if_throwing_stmt): Renamed to
28621 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
28622 having one non-EH successor BB.
28623 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
28624 generate loads into replacements.
28625 (sra_modify_assign): Likewise and and also use the simple path for
28627 (sra_modify_function_body): Commit statements on edges.
28629 2014-04-17 Richard Biener <rguenther@suse.de>
28631 PR middle-end/60849
28632 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
28633 comparison results and add clarifying comment.
28635 2014-04-17 Jakub Jelinek <jakub@redhat.com>
28637 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
28638 (blank_mode): Initialize it.
28639 (emit_mode_size_inline, emit_mode_nunits_inline,
28640 emit_mode_inner_inline): New functions.
28641 (emit_insn_modes_h): Call them and surround their output with
28642 #if GCC_VERSION >= 4001 ... #endif.
28643 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
28644 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
28645 mode_* arrays if the argument is __builtin_constant_p.
28646 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
28647 is enum machine_mode.
28649 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28651 * passes.c (opt_pass::execute): Adjust.
28652 (pass_manager::execute_pass_mode_switching): Likewise.
28653 (early_local_passes::execute): Likewise.
28654 (execute_one_pass): Pass cfun to the pass's execute method.
28655 * tree-pass.h (opt_pass::execute): Add function * argument.
28656 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28657 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28658 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28659 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28660 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28661 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
28662 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
28663 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28664 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28665 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
28666 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
28667 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
28668 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
28669 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
28670 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28671 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28672 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28673 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
28674 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
28675 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28676 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28677 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28678 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28679 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28680 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28681 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28682 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28683 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28684 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28687 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28689 * passes.c (opt_pass::gate): Take function * argument.
28690 (gate_all_early_local_passes): Merge into
28691 (early_local_passes::gate): this.
28692 (gate_all_early_optimizations): Merge into
28693 (all_early_optimizations::gate): this.
28694 (gate_all_optimizations): Mege into
28695 (all_optimizations::gate): this.
28696 (gate_all_optimizations_g): Merge into
28697 (all_optimizations_g::gate): this.
28698 (gate_rest_of_compilation): Mege into
28699 (rest_of_compilation::gate): this.
28700 (gate_postreload): Merge into
28701 (postreload::gate): this.
28702 (dump_one_pass): Pass cfun to the pass's gate method.
28703 (execute_ipa_summary_passes): Likewise.
28704 (execute_one_pass): Likewise.
28705 (ipa_write_summaries_2): Likewise.
28706 (ipa_write_optimization_summaries_1): Likewise.
28707 (ipa_read_summaries_1): Likewise.
28708 (ipa_read_optimization_summaries_1): Likewise.
28709 (execute_ipa_stmt_fixups): Likewise.
28710 * tree-pass.h (opt_pass::gate): Add function * argument.
28711 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
28712 combine-stack-adj.c, combine.c, compare-elim.c,
28713 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28714 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
28715 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
28716 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
28717 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28718 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28719 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28720 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
28721 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
28722 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
28723 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28724 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28725 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
28726 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28727 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28728 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28729 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28730 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28731 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28732 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28733 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28734 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28735 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
28736 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
28737 var-tracking.c, vtable-verify.c, web.c: Adjust.
28739 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28741 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
28742 * configure: Regenerate.
28744 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28746 * passes.c (dump_one_pass): don't check pass->has_gate.
28747 (execute_ipa_summary_passes): Likewise.
28748 (execute_one_pass): Likewise.
28749 (ipa_write_summaries_2): Likewise.
28750 (ipa_write_optimization_summaries_1): Likewise.
28751 (ipa_read_optimization_summaries_1): Likewise.
28752 (execute_ipa_stmt_fixups): Likewise.
28753 * tree-pass.h (pass_data::has_gate): Remove.
28754 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28755 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28756 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28757 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28758 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28759 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
28760 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
28761 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
28762 gimple-low.c, gimple-ssa-isolate-paths.c,
28763 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
28764 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
28765 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28766 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
28767 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
28768 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
28769 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
28770 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
28771 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
28772 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28773 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28774 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28775 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28776 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28777 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28778 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28779 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28780 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28781 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28782 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28783 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28784 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28787 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28789 * pass_manager.h (pass_manager::register_dump_files_1): Remove
28791 * passes.c (pass_manager::register_dump_files_1): Merge into
28792 (pass_manager::register_dump_files): this, and remove its handling of
28793 properties since the pass always has the properties anyway.
28794 (pass_manager::pass_manager): Adjust.
28796 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28798 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
28799 * passes.c (pass_manager::register_dump_files_1): Remove dead code
28800 dealing with properties.
28801 (pass_manager::register_dump_files): Adjust.
28803 2014-03-20 Mark Wielaard <mjw@redhat.com>
28805 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
28806 then represent the bound as normal constant value.
28808 2014-04-17 Jakub Jelinek <jakub@redhat.com>
28811 Forward port from 4.8 branch
28812 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
28814 * config/i386/bmiintrin.h (_blsi_u32): New.
28815 (_blsi_u64): Ditto.
28816 (_blsr_u32): Ditto.
28817 (_blsr_u64): Ditto.
28818 (_blsmsk_u32): Ditto.
28819 (_blsmsk_u64): Ditto.
28820 (_tzcnt_u32): Ditto.
28821 (_tzcnt_u64): Ditto.
28823 2014-04-17 Kito Cheng <kito@0xlab.org>
28825 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
28827 2014-04-17 Richard Biener <rguenther@suse.de>
28829 PR middle-end/60849
28830 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
28831 boolean results for comparisons.
28833 2014-04-17 Richard Biener <rguenther@suse.de>
28835 PR tree-optimization/60836
28836 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
28837 initial PHI args to be gimple values.
28839 2014-04-17 Richard Biener <rguenther@suse.de>
28841 PR tree-optimization/60841
28842 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
28843 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
28844 of stmts to SLP build.
28845 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
28846 (vect_analyze_slp): Likewise.
28847 (vect_analyze_slp_instance): Likewise.
28848 (vect_build_slp_tree): Limit overall SLP tree growth.
28849 * tree-vectorizer.h (vect_analyze_data_refs,
28850 vect_analyze_slp): Adjust prototypes.
28852 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
28854 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
28857 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
28859 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
28860 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
28861 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
28862 for TARGET_SLOW_PSHUFB
28864 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
28866 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
28867 * config/i386/i386.c (intel_cost): Ditto.
28869 2014-04-17 Joey Ye <joey.ye@arm.com>
28871 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
28873 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
28875 * opts.c (common_handle_option): Disable -fipa-reference coorectly
28876 with -fuse-profile.
28878 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
28880 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
28881 (type_all_derivations_known_p): New predicate.
28882 (type_all_ctors_visible_p): New predicate.
28883 (type_possibly_instantiated_p): New predicate.
28884 (get_odr_type): Compute all_derivations_known.
28885 (dump_odr_type): Dump the flag.
28886 (maybe_record_type): Cleanup.
28887 (record_target_from_binfo): Add bases_to_consider array;
28888 record bases for types w/o instances and skip CXX destructor.
28889 (possible_polymorphic_call_targets_1): Add bases_to_consider
28890 and consider_construction parameters; check if type may have instance.
28891 (get_polymorphic_call_info): Set maybe_in_construction to true
28892 when we know nothing.
28893 (record_targets_from_bases): Skip CXX destructors; they are
28894 never called for types in construction.
28895 (possible_polymorphic_call_targets): Do not record target when
28896 type may not have instance.
28898 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
28901 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
28902 external aliases alive, too.
28904 2014-04-16 Andrew Pinski <apinski@cavium.com>
28906 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
28909 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
28911 * final.c (compute_alignments): Do not apply loop alignment to a block
28912 falling through to the exit.
28914 2014-04-16 Catherine Moore <clm@codesourcery.com>
28916 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
28917 Adjust constraints for microMIPS store patterns.
28919 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
28921 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
28923 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
28925 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
28926 (append_use): Run at -O0.
28927 (append_vdef): Likewise.
28928 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
28929 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
28931 2014-04-16 Jakub Jelinek <jakub@redhat.com>
28933 PR tree-optimization/60844
28934 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
28935 (propagate_op_to_single_use, remove_visited_stmt_chain,
28936 linearize_expr, repropagate_negates, reassociate_bb): Use it
28937 instead of gsi_remove.
28939 2014-04-16 Martin Jambor <mjambor@suse.cz>
28941 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
28942 ipa_transforms_to_apply.
28943 (cgraph_function_versioning): Assert that old_node has empty
28944 ipa_transforms_to_apply.
28945 * trans-mem.c (ipa_tm_create_version): Likewise.
28946 * tree-inline.c (tree_function_versioning): Do not duplicate
28947 ipa_transforms_to_apply.
28949 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28952 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
28954 Pass necessary as flags on 64-bit Solaris/x86.
28955 Use lowercase relocs for x86_64-*-*.
28956 * configure: Regenerate.
28958 2014-04-15 Jan Hubicka <jh@suse.cz>
28960 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
28961 (maybe_record_node, likely_target_p): Use it.
28963 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28966 Revert following patch
28968 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28971 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
28972 software floating point or no floating point registers, do not
28973 allow any type in the FPRs. Eliminate a test for SPE SIMD types
28974 in GPRs that occurs after we tested for GPRs that would never be
28977 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
28978 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
28979 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
28980 specifically allow DDmode, since that does not use the SPE SIMD
28983 2014-03-21 Mark Wielaard <mjw@redhat.com>
28985 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
28986 as unsigned or int depending on type and value used.
28988 2014-04-15 Richard Biener <rguenther@suse.de>
28990 PR rtl-optimization/56965
28991 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
28992 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
28994 * alias.c (true_dependence_1): Do not call
28995 nonoverlapping_component_refs_p.
28996 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
28997 nonoverlapping_component_refs_p.
28998 (indirect_refs_may_alias_p): Likewise.
29000 2014-04-15 Teresa Johnson <tejohnson@google.com>
29002 * cfg.c (dump_bb_info): Fix flags check.
29003 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29005 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29007 PR rtl-optimization/60663
29008 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29011 2014-04-15 Richard Biener <rguenther@suse.de>
29013 * lto-streamer.h (LTO_major_version): Bump to 4.
29015 2014-04-15 Richard Biener <rguenther@suse.de>
29017 * common.opt (lto_partition_model): New enum.
29018 (flto-partition=): Merge separate options with a single with argument,
29019 add -flto-partition=one support.
29020 * flag-types.h (enum lto_partition_model): Declare.
29021 * opts.c (finish_options): Remove duplicate -flto-partition=
29023 * lto-wrapper.c (run_gcc): Adjust.
29025 2014-04-15 Richard Biener <rguenther@suse.de>
29027 * alias.c (ncr_compar): New function.
29028 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29030 2014-04-15 Richard Biener <rguenther@suse.de>
29032 * alias.c (record_component_aliases): Do not walk BINFOs.
29034 2014-04-15 Richard Biener <rguenther@suse.de>
29036 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29037 Add struct function argument and adjust.
29038 (find_func_aliases_for_call): Likewise.
29039 (find_func_aliases): Likewise.
29040 (find_func_clobbers): Likewise.
29041 (intra_create_variable_infos): Likewise.
29042 (compute_points_to_sets): Likewise.
29043 (ipa_pta_execute): Adjust. Do not push/pop cfun.
29045 2014-04-15 Richard Biener <rguenther@suse.de>
29047 * tree.c (iterative_hash_expr): Use enum tree_code_class
29048 to store TREE_CODE_CLASS.
29049 (tree_block): Likewise.
29050 (tree_set_block): Likewise.
29051 * tree.h (fold_build_pointer_plus_loc): Use
29052 convert_to_ptrofftype_loc.
29054 2014-04-15 Jakub Jelinek <jakub@redhat.com>
29057 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29060 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
29062 * cfgloop.h (struct loop): Move force_vectorize down.
29063 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
29064 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
29065 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
29066 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
29067 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
29068 * tree-core.h (enum annot_expr_kind): Add new kind values.
29069 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
29070 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
29072 * tree.def (ANNOTATE_EXPR): Tweak comment.
29074 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29076 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
29079 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
29081 * tree.h (TYPE_IDENTIFIER): Declare.
29082 * tree.c (subrange_type_for_debug_p): Use it.
29083 * godump.c (go_format_type): Likewise.
29084 * dwarf2out.c (is_cxx_auto, modified_type_die,
29085 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
29086 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
29088 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29091 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
29093 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
29095 * config/i386/i386.c (examine_argument): Return bool. Return true if
29096 parameter should be passed in memory.
29097 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
29098 (construct_container): Update calls to examine_argument.
29099 (function_arg_advance_64): Ditto.
29100 (return_in_memory_32): Merge with ix86_return_in_memory.
29101 (return_in_memory_64): Ditto.
29102 (return_in_memory_ms_64): Ditto.
29104 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29106 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
29107 * coverage.c (coverage_compute_profile_id): Handle externally visible
29110 2014-04-14 Martin Jambor <mjambor@suse.cz>
29112 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
29113 DECL_DISREGARD_INLINE_LIMITS functions.
29115 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29118 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
29120 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29123 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
29124 optimize_insn_for_speed_p instead of
29125 optimize_function_for_speed_p.
29127 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
29129 * doc/invoke.texi (free): Document AArch64.
29131 2014-04-14 Richard Biener <rguenther@suse.de>
29133 PR tree-optimization/60042
29134 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
29135 (insert_into_preds_of_block): Do not prevent PHI insertion
29136 for REFERENCE exprs here ...
29137 (eliminate_dom_walker::before_dom_children): ... but prevent
29138 their use here under similar conditions when applied to the
29139 IL after PRE optimizations.
29141 2014-04-14 Richard Biener <rguenther@suse.de>
29143 * passes.def: Move early points-to after early SRA.
29145 2014-04-14 Richard Biener <rguenther@suse.de>
29147 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
29148 check for which sign-changes we allow when forwarding
29149 a converted value into a switch.
29151 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29153 * stor-layout.c (place_field): Finalize non-constant offset for the
29156 2014-04-14 Richard Biener <rguenther@suse.de>
29158 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
29160 (expand_switch_using_bit_tests_p): Likewise.
29161 (process_switch): Compute and pass on speed_p based on the
29163 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
29164 optimize_bb_for_speed_p.
29166 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29168 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
29169 * function.h (struct function): Rename has_force_vect_loops into
29170 has_force_vectorize_loops.
29171 * lto-streamer-in.c (input_cfg): Adjust for renaming.
29172 (input_struct_function_base): Likewise.
29173 * lto-streamer-out.c (output_cfg): Likewise.
29174 (output_struct_function_base): Likewise.
29175 * omp-low.c (expand_omp_simd): Likewise.
29176 * tree-cfg.c (move_sese_region_to_fn): Likewise.
29177 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
29178 (version_loop_for_if_conversion): Likewise.
29179 (tree_if_conversion): Likewise.
29180 (main_tree_if_conversion): Likewise.
29181 (gate_tree_if_conversion): Likewise.
29182 * tree-inline.c (copy_loops): Likewise.
29183 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
29184 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
29185 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
29186 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
29187 * tree-vectorizer.c (vectorize_loops): Likewise.
29188 * tree-vectorizer.h (unlimited_cost_model): Likewise.
29190 2014-04-14 Richard Biener <rguenther@suse.de>
29193 * lto-streamer-out.c (wrap_refs): New function.
29194 (lto_output): Wrap symbol references in global initializes in
29195 type-preserving MEM_REFs.
29197 2014-04-14 Christian Bruel <christian.bruel@st.com>
29199 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
29201 2014-04-14 Christian Bruel <christian.bruel@st.com>
29203 * config/sh/sh.md (setmemqi): New expand pattern.
29204 * config/sh/sh.h (CLEAR_RATIO): Define.
29205 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
29206 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
29208 2014-04-14 Richard Biener <rguenther@suse.de>
29210 PR middle-end/55022
29211 * fold-const.c (negate_expr_p): Don't negate directional rounding
29213 (fold_negate_expr): Likewise.
29215 2014-04-14 Richard Biener <rguenther@suse.de>
29217 PR tree-optimization/59817
29218 PR tree-optimization/60453
29219 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
29220 recursion to catch all CHRECs in the scalar evolution and restrict
29221 the predicate for the remains appropriately.
29223 2014-04-12 Catherine Moore <clm@codesourcery.com>
29225 * config/mips/constraints.md: Add new register constraint "kb".
29226 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
29227 (*movhi_internal): Likewise.
29228 (*movqi_internal): Likewise.
29229 * config/mips/mips.h (M16_STORE_REGS): New register class.
29230 (REG_CLASS_NAMES): Add M16_STORE_REGS.
29231 (REG_CLASS_CONTENTS): Likewise.
29232 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
29234 2014-04-11 Tobias Burnus <burnus@net-b.de>
29237 * doc/invoke.texi (-Wformat-signedness): Document it.
29238 (Wformat=2): Mention that this enables -Wformat-signedness.
29240 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29242 * common/config/epiphany/epiphany-common.c
29243 (epiphany_option_optimization_table): Enable section anchors by
29244 default at -O1 or higher.
29245 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
29246 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
29247 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
29248 carries no extra cost.
29249 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
29250 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
29251 * config/epiphany/predicates.md (memclob_operand): New predicate.
29252 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
29253 Use memclob_operand predicate and X constraint for operand 3.
29255 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29257 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
29258 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
29261 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29263 PR rtl-optimization/60651
29264 * mode-switching.c (optimize_mode_switching): Make sure to emit
29265 sets of a lower numbered entity before sets of a higher numbered
29266 entity to a mode of the same or lower priority.
29267 When creating a seginfo for a basic block that starts with a code
29268 label, move the insertion point past the code label.
29269 (new_seginfo): Document and enforce requirement that
29270 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
29271 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
29272 * doc/tm.texi: Regenerate.
29274 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
29277 * config/arc/arc.c (arc_save_restore): Fix assert typo.
29279 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29281 * BASE-VER: Set to 4.10.0.
29283 2014-04-11 Tobias Burnus <burnus@net-b.de>
29286 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
29287 * doc/gcc.texi (Service): Update description in the @menu
29288 * doc/invoke.texi (Option Summary): Remove misplaced and
29291 2014-04-11 Steve Ellcey <sellcey@mips.com>
29292 Jakub Jelinek <jakub@redhat.com>
29294 PR middle-end/60556
29295 * expr.c (convert_move): Use emit_store_flag_force instead of
29296 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
29299 2014-04-11 Richard Biener <rguenther@suse.de>
29301 PR middle-end/60797
29302 * varasm.c (assemble_alias): Avoid endless error reporting
29303 recursion by setting TREE_ASM_WRITTEN.
29305 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29307 * config/s390/s390.md: Add a splitter for NOT rtx.
29309 2014-04-11 Jakub Jelinek <jakub@redhat.com>
29311 PR rtl-optimization/60663
29312 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29314 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
29315 Jakub Jelinek <jakub@redhat.com>
29318 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29319 flag from decl_node to node.
29321 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29324 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29325 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29326 ameliorating the cases where it can be.
29328 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
29331 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29333 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29334 (loadsync_<mode>): Change mode.
29335 (load_quadpti, store_quadpti): New.
29336 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29337 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29338 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29340 2014-04-09 Cong Hou <congh@google.com>
29343 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29346 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29348 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29349 instead of vnor to exploit possible fusion opportunity in the
29351 (altivec_expand_vec_perm_const_le): Likewise.
29353 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29355 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29356 (loadsync_<mode>): Change mode.
29357 (load_quadpti, store_quadpti): New.
29358 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29359 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29361 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
29364 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29365 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29366 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29368 2014-04-08 Richard Biener <rguenther@suse.de>
29370 PR middle-end/60706
29371 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29372 a 64bit widest int print double-int similar to on HWI64 hosts.
29374 2014-04-08 Richard Biener <rguenther@suse.de>
29376 PR tree-optimization/60785
29377 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29378 default defs properly.
29380 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
29382 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29383 (Weffc++): Likewise.
29385 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
29387 * ipa-devirt.c (maybe_record_node): When node is not recorded,
29388 set completep to false rather than true.
29390 2014-04-07 Douglas B Rupp <rupp@adacore.com>
29393 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29394 ARM_TARGET2_DWARF_FORMAT.
29396 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
29399 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29400 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29403 2014-04-07 Richard Biener <rguenther@suse.de>
29405 PR tree-optimization/60766
29406 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29407 (may_eliminate_iv): Convert cand_value_at result to desired type.
29409 2014-04-07 Jason Merrill <jason@redhat.com>
29412 * common.opt (-fno-gnu-unique): Add.
29413 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
29415 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29417 * haifa-sched.c: Fix outdated function reference and minor
29418 grammar errors in introductory comment.
29420 2014-04-07 Richard Biener <rguenther@suse.de>
29422 PR middle-end/60750
29423 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
29424 for noreturn calls.
29425 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
29427 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
29430 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29431 size accounting for thunks.
29432 (pa_asm_output_mi_thunk): Use final_start_function() and
29433 final_end_function() to output function start and end directives.
29435 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29437 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29438 device specific ISA/ feature information. Remove short_sp and
29439 errata_skip ds. Add avr_device_specific_features enum to have device
29441 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29442 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29443 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29444 updated device specific info.
29445 * config/avr/avr-mcus.def: Merge device specific details to
29446 dev_attribute field.
29447 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29449 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29450 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29451 assembler if RMW isa supported by current device.
29452 * config/avr/genmultilib.awk: Update as device info structure changed.
29453 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29455 2014-04-04 Cong Hou <congh@google.com>
29457 PR tree-optimization/60656
29458 * tree-vect-stmts.c (supportable_widening_operation):
29459 Fix a bug that elements in a vector with vect_used_by_reduction
29460 property are incorrectly reordered when the operation on it is not
29461 consistant with the one in reduction operation.
29463 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
29465 PR rtl-optimization/60155
29466 * gcse.c (record_set_data): New function.
29467 (single_set_gcse): New function.
29468 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
29469 (hoist_code): Likewise.
29470 (get_pressure_class_and_nregs): Likewise.
29472 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
29474 * explow.c (probe_stack_range): Emit a final optimization blockage.
29476 2014-04-04 Anthony Green <green@moxielogic.com>
29478 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
29481 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
29484 * lto-cgraph.c (input_overwrite_node): Check that partitioning
29485 flags are set only during streaming.
29486 * ipa.c (process_references, walk_polymorphic_call_targets,
29487 symtab_remove_unreachable_nodes): Drop bodies of always inline
29488 after early inlining.
29489 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
29491 2014-04-04 Jakub Jelinek <jakub@redhat.com>
29492 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29495 * dwarf2out.c (const_ok_for_output_1): Reject expressions
29498 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29501 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
29503 (cortex_a53_fdivd): Likewise.
29505 2014-04-04 Martin Jambor <mjambor@suse.cz>
29508 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
29509 Adjust all callers.
29510 * cgraph.c (clone_of_p): Also return true if thunks match.
29511 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
29512 cgraph_function_or_thunk_node and an obsolete comment.
29513 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
29515 (build_function_decl_skip_args): Likewise.
29516 (set_new_clone_decl_and_node_flags): New function.
29517 (duplicate_thunk_for_node): Likewise.
29518 (redirect_edge_duplicating_thunks): Likewise.
29519 (cgraph_clone_node): New parameter args_to_skip, pass it to
29520 redirect_edge_duplicating_thunks which is called instead of
29521 cgraph_redirect_edge_callee.
29522 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
29523 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
29525 2014-04-04 Jeff Law <law@redhat.com>
29528 * config/arm/predicates.md (const_int_I_operand): New predicate.
29529 (const_int_M_operand): Similarly.
29530 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
29532 (insv_t2, extv_reg, extzv_t2): Likewise.
29533 (load_multiple_with_writeback): Similarly for const_int_I_operand.
29534 (pop_multiple_with_writeback_and_return): Likewise.
29535 (vfp_pop_multiple_with_writeback): Likewise
29537 2014-04-04 Richard Biener <rguenther@suse.de>
29540 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
29541 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
29543 * gimplify.h (gimple_add_tmp_var_fn): Declare.
29544 * gimplify.c (gimple_add_tmp_var_fn): New function.
29545 * gimple-expr.h (create_tmp_reg_fn): Declare.
29546 * gimple-expr.c (create_tmp_reg_fn): New function.
29547 * gimple-low.c (record_vars_into): Don't change cfun.
29548 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
29549 code generation without cfun.
29551 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
29554 * Makefile.in (install-driver): Fix shell scripting.
29556 2014-04-03 Cong Hou <congh@google.com>
29558 PR tree-optimization/60505
29559 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
29560 threshold of number of iterations below which no vectorization
29562 * tree-vect-loop.c (new_loop_vec_info):
29563 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
29564 * tree-vect-loop.c (vect_analyze_loop_operations):
29565 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
29566 * tree-vect-loop.c (vect_transform_loop):
29567 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
29568 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
29569 of iterations of the loop and see if we should build the epilogue.
29571 2014-04-03 Richard Biener <rguenther@suse.de>
29573 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
29574 (streamer_tree_cache_create): Adjust.
29575 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
29576 to allow optional nodes array.
29577 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
29578 (streamer_tree_cache_append): Likewise.
29579 (streamer_tree_cache_create): Create nodes array optionally
29580 as specified by parameter.
29581 * lto-streamer-out.c (create_output_block): Avoid maintaining
29582 the node array in the writer cache.
29583 (DFS_write_tree): Remove assertion.
29584 (produce_asm_for_decls): Free the out decl state hash table early.
29585 * lto-streamer-in.c (lto_data_in_create): Adjust for
29586 streamer_tree_cache_create prototype change.
29588 2014-04-03 Richard Biener <rguenther@suse.de>
29590 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
29591 set TREE_CHAIN to NULL_TREE.
29593 2014-04-03 Richard Biener <rguenther@suse.de>
29595 PR tree-optimization/60740
29596 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
29597 over all GIMPLE_COND operands.
29599 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
29601 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
29602 (Weffc++): Remove Scott's numbering, merge lists and reference
29605 2014-04-03 Nick Clifton <nickc@redhat.com>
29607 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
29610 2014-04-03 Martin Jambor <mjambor@suse.cz>
29612 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
29613 mention gcc_unreachable before failing.
29614 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
29617 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
29620 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
29621 inconsistent code and instead mark the context inconsistent.
29622 (possible_polymorphic_call_targets): For inconsistent contexts
29623 return empty complete list.
29625 2014-04-02 Anthony Green <green@moxielogic.com>
29627 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
29628 (extendqisi2, extendhisi2): Define.
29629 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
29630 (WCHAR_TYPE): Change to unsigned int.
29632 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29634 PR tree-optimization/60733
29635 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
29636 insertion point for PHI candidates to be the end of the feeding
29637 block for the PHI argument.
29639 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
29641 PR rtl-optimization/60650
29642 * lra-constraints.c (process_alt_operands): Decrease reject for
29643 earlyclobber matching.
29645 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29647 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
29649 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29651 * config/spu/spu.c (pad_bb): Do not crash when the last
29652 insn is CODE_FOR_blockage.
29654 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29656 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
29657 lies outside the target mode.
29659 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29662 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29663 software floating point or no floating point registers, do not
29664 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29665 in GPRs that occurs after we tested for GPRs that would never be
29668 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29669 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29670 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29671 specifically allow DDmode, since that does not use the SPE SIMD
29674 2014-04-02 Richard Biener <rguenther@suse.de>
29676 PR middle-end/60729
29677 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
29678 MODE_INTs. Properly use negv_optab.
29679 (expand_abs): Likewise.
29681 2014-04-02 Richard Biener <rguenther@suse.de>
29684 * Makefile.in (install-driver): Guard extra installs with special
29687 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
29689 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29690 Document vec_vgbbd.
29692 2014-04-01 Richard Henderson <rth@redhat.com>
29695 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
29696 alternative enabled before register allocation.
29698 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
29700 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
29701 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
29703 (nios2_large_got_address): Remove unneeded 'sym' parameter.
29704 (nios2_got_address): Update nios2_large_got_address call site.
29705 (nios2_delegitimize_address): New function.
29706 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
29707 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
29708 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
29710 2014-04-01 Martin Husemann <martin@duskware.de>
29712 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
29715 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
29717 PR rtl-optimization/60604
29718 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
29719 check from register_operand.
29720 (register_operand): Redefine in terms of general_operand.
29721 (nonmemory_operand): Use register_operand for the non-constant cases.
29723 2014-04-01 Richard Biener <rguenther@suse.de>
29725 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
29727 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
29729 * doc/invoke.texi (mapp-regs): Clarify.
29731 2014-03-31 Ulrich Drepper <drepper@gmail.com>
29733 * config/i386/avx512fintrin.h (__v32hi): Define type.
29734 (__v64qi): Likewise.
29735 (_mm512_set1_epi8): Define.
29736 (_mm512_set1_epi16): Define.
29737 (_mm512_set4_epi32): Define.
29738 (_mm512_set4_epi64): Define.
29739 (_mm512_set4_pd): Define.
29740 (_mm512_set4_ps): Define.
29741 (_mm512_setr4_epi64): Define.
29742 (_mm512_setr4_epi32): Define.
29743 (_mm512_setr4_pd): Define.
29744 (_mm512_setr4_ps): Define.
29745 (_mm512_setzero_epi32): Define.
29747 2014-03-31 Martin Jambor <mjambor@suse.cz>
29749 PR middle-end/60647
29750 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
29751 callsite_arguments_match_p. Updated all callers. Also check types of
29752 corresponding formal parameters and actual arguments.
29753 (not_all_callers_have_enough_arguments_p) Renamed to
29754 some_callers_have_mismatched_arguments_p.
29756 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
29758 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
29760 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
29763 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
29766 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
29768 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
29769 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
29771 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
29772 Use FMAMODE_NOVF512 mode iterator.
29773 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
29774 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
29775 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
29776 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
29778 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
29779 Use VF_128_256 mode iterator.
29780 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
29783 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29785 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
29786 static chain if needed.
29788 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
29791 * lra-constraints.c (index_part_to_reg): New.
29792 (process_address): Use it.
29794 2014-03-27 Jeff Law <law@redhat.com>
29795 Jakub Jelinek <jakub@redhat.com>
29798 * expr.c (do_tablejump): Use simplify_gen_binary rather than
29799 gen_rtx_{PLUS,MULT} to build up the address expression.
29801 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
29802 creating non-canonical RTL.
29804 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29807 * ipa-inline.c (want_inline_small_function_p): Short circuit large
29808 functions; reorganize to make cheap checks first.
29809 (inline_small_functions): Do not estimate growth when dumping;
29811 * ipa-inline.h (inline_summary): Add min_size.
29812 (growth_likely_positive): New function.
29813 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
29814 (set_cond_stmt_execution_predicate): Cleanup.
29815 (estimate_edge_size_and_time): Compute min_size.
29816 (estimate_calls_size_and_time): Likewise.
29817 (estimate_node_size_and_time): Likewise.
29818 (inline_update_overall_summary): Update min_size.
29819 (do_estimate_edge_time): Likewise.
29820 (do_estimate_edge_size): Update.
29821 (do_estimate_edge_hints): Update.
29822 (growth_likely_positive): New function.
29824 2014-03-28 Jakub Jelinek <jakub@redhat.com>
29827 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
29828 also if addr has VOIDmode.
29830 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29832 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
29833 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
29835 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
29836 instructions as well as AdvancedSIMD loads.
29838 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29840 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
29841 Use crypto_aese type.
29842 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
29843 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
29844 crypto_aese, crypto_aesmc. Move to types.md.
29845 * config/arm/types.md (crypto_aes): Split into crypto_aese,
29847 * config/arm/iterators.md (crypto_type): Likewise.
29849 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29851 * cgraph.c: Include expr.h and tree-dfa.h.
29852 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
29855 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
29858 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
29859 regs from checking multi-reg pseudos.
29861 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29863 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
29865 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29867 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
29868 if it would clobber the stack pointer, even temporarily.
29870 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
29872 * mode-switching.c: Make small adjustments to the top comment.
29874 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
29876 * config/rs6000/constraints.md (wD constraint): New constraint to
29877 match the constant integer to get the top DImode/DFmode out of a
29878 vector in a VSX register.
29880 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
29881 match the constant integer to get the top DImode/DFmode out of a
29882 vector in a VSX register.
29884 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
29887 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29890 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29891 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
29893 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
29894 Optimize vec_extract of 64-bit values, where the value being
29895 extracted is in the top word, where we can use scalar
29896 instructions. Add direct move and store support. Combine the big
29897 endian/little endian vector select load support into a single insn.
29898 (vsx_extract_<mode>_internal1): Likewise.
29899 (vsx_extract_<mode>_internal2): Likewise.
29900 (vsx_extract_<mode>_load): Likewise.
29901 (vsx_extract_<mode>_store): Likewise.
29902 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
29903 combined into vsx_extract_<mode>_load.
29904 (vsx_extract_<mode>_one_le): Likewise.
29906 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
29907 define the top 64-bit vector element.
29909 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
29912 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29913 Document vec_vbpermq builtin.
29916 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
29917 enable use of xxsldwi and xxpermdi builtin functions.
29918 (vec_xxpermdi): Likewise.
29920 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29921 Document use of vec_xxsldwi and vec_xxpermdi builtins.
29923 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
29925 PR rtl-optimization/60650
29926 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
29928 (find_spills_for): New.
29929 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
29930 Spill all pseudos on the second iteration.
29932 2014-03-27 Marek Polacek <polacek@redhat.com>
29935 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
29938 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29940 * config/s390/s390.c (s390_can_use_return_insn): Check for
29941 call-saved FPRs on 31 bit.
29943 2014-03-27 Jakub Jelinek <jakub@redhat.com>
29945 PR middle-end/60682
29946 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
29947 if they need regimplification, just drop them instead of
29948 calling gimple_regimplify_operands on them.
29950 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
29953 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
29954 (aarch64_frame_pointer_required): Adjust logic.
29955 (aarch64_can_eliminate): Adjust logic.
29956 (aarch64_override_options_after_change): Adjust logic.
29958 2014-03-27 Dehao Chen <dehao@google.com>
29960 * ipa-inline.c (early_inliner): Update node's inline info.
29962 2014-03-26 Dehao Chen <dehao@google.com>
29964 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
29965 compiler inserted conditional jumps for NAN float check.
29967 2014-03-26 Jakub Jelinek <jakub@redhat.com>
29969 * ubsan.h (ubsan_create_data): Change second argument's type
29970 to const location_t *.
29971 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
29973 (ubsan_create_data): Change second argument to const location_t *PLOC.
29974 Create Loc field whenever PLOC is non-NULL.
29975 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
29976 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
29980 * real.c (real_to_integer2): Change type of low to UHWI.
29982 2014-03-26 Tobias Burnus <burnus@net-b.de>
29984 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
29985 (CILK_SELF_SPECS): New define.
29986 (driver_self_specs): Use it.
29988 2014-03-26 Richard Biener <rguenther@suse.de>
29990 * tree-pretty-print.c (percent_K_format): Implement special
29991 case for LTO and its stripped down BLOCK tree.
29993 2014-03-26 Jakub Jelinek <jakub@redhat.com>
29996 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
29998 * tree-vrp.c (simplify_internal_call_using_ranges): If only
29999 one range is range_int_cst_p, but not both, at least optimize
30000 addition/subtraction of 0 and multiplication by 0 or 1.
30001 * gimple-fold.c (gimple_fold_call): Fold
30002 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30003 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30004 INTEGER_CSTs, try to fold at least x * 0 and y - y.
30006 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
30008 PR rtl-optimization/60452
30009 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30010 <case REG>: Return 1 for invalid offsets from the frame pointer.
30012 2014-03-26 Marek Polacek <polacek@redhat.com>
30015 * doc/extend.texi (C Extensions): Mention variable-length arrays in
30018 2014-03-26 Marek Polacek <polacek@redhat.com>
30021 * doc/extend.texi (Designated Inits): Describe what happens to omitted
30024 2014-03-26 Marek Polacek <polacek@redhat.com>
30027 * ira-color.c (update_conflict_hard_regno_costs): Perform the
30028 multiplication in unsigned type.
30030 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30032 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30034 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30036 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30038 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30041 * cif-code.def (UNREACHABLE) New code.
30042 * ipa-inline.c (inline_small_functions): Skip edges to
30043 __builtlin_unreachable.
30044 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30045 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30046 predicate to __bulitin_unreachable.
30047 (set_cond_stmt_execution_predicate): Fix issue when
30048 invert_tree_comparison returns ERROR_MARK.
30049 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30050 propagate to inline clones.
30051 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30053 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30054 * cgraphclones.c (cgraph_clone_node): If call destination is already
30055 ureachable, do not redirect it back.
30056 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30059 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30061 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30062 Do not modify inline clones.
30064 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30066 * config/i386/i386.md (general_sext_operand): New mode attr.
30067 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
30068 don't generate (sign_extend (const_int)).
30069 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
30070 operands[2]. Use We constraint instead of <i> and
30071 <general_sext_operand> predicate instead of <general_operand>.
30072 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
30073 * config/i386/constraints.md (We): New constraint.
30074 * config/i386/predicates.md (x86_64_sext_operand,
30075 sext_operand): New predicates.
30077 2014-03-25 Martin Jambor <mjambor@suse.cz>
30080 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
30081 inconsistent devirtualizations to __builtin_unreachable.
30083 2014-03-25 Marek Polacek <polacek@redhat.com>
30086 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
30088 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
30090 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
30091 order of elements for big-endian.
30093 2014-03-25 Richard Biener <rguenther@suse.de>
30095 PR middle-end/60635
30096 * gimplify-me.c (gimple_regimplify_operands): Update the
30099 2014-03-25 Martin Jambor <mjambor@suse.cz>
30102 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
30103 (lto_output_varpool_node): Likewise.
30104 (input_overwrite_node): Likewise.
30105 (input_varpool_node): Likewise.
30107 2014-03-25 Richard Biener <rguenther@suse.de>
30109 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
30110 (run_gcc): Likewise.
30112 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30114 * combine.c (simplify_compare_const): Add MODE argument.
30115 Handle mode_width 0 as very large mode_width.
30116 (try_combine, simplify_comparison): Adjust callers.
30118 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
30119 type to avoid signed integer overflow.
30120 * explow.c (plus_constant): Likewise.
30122 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
30124 * doc/generic.texi: Correct typos.
30126 2014-03-24 Tobias Burnus <burnus@net-b.de>
30128 * doc/invoke.texi (-flto): Expand section about
30129 using static libraries with LTO.
30131 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30133 PR rtl-optimization/60501
30134 * optabs.def (addptr3_optab): New optab.
30135 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
30136 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
30137 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
30139 * lra.c (emit_add3_insn): Use the addptr pattern if available.
30141 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
30143 2014-03-24 Ulrich Drepper <drepper@gmail.com>
30145 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
30148 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
30149 (_mm256_undefined_ps): Define.
30150 (_mm256_undefined_pd): Define.
30151 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
30152 (_mm_undefined_pd): Define.
30153 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
30154 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
30155 (_mm512_undefined_ps): Define.
30156 (_mm512_undefined_pd): Define.
30157 Use _mm*_undefined_*.
30158 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
30160 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
30162 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
30163 (lshr_simd): DI mode added.
30164 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
30165 (aarch64_ushr_simddi): Likewise.
30166 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
30167 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
30168 (vshrd_n_u64): Likewise.
30170 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30172 * Makefile.in (s-macro_list): Depend on cc1.
30174 2014-03-23 Teresa Johnson <tejohnson@google.com>
30176 * ipa-utils.c (ipa_print_order): Use specified dump file.
30178 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
30180 PR rtl-optimization/60601
30181 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
30183 * gcc.c (eval_spec_function): Initialize save_growing_value.
30185 2014-03-22 Jakub Jelinek <jakub@redhat.com>
30188 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
30189 code == MINUS_EXPR, never swap op0 with op1.
30191 * toplev.c (init_local_tick): Avoid signed integer multiplication
30193 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
30194 shift by first operand's bitsize.
30196 2014-03-21 Jakub Jelinek <jakub@redhat.com>
30199 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
30200 redefine to 1 or 0.
30201 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
30202 TARGET_ISA_64BIT_P(x).
30204 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30206 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
30207 pattern for vector nor instead of subtract from splat(-1).
30208 (altivec_expand_vec_perm_const_le): Likewise.
30210 2014-03-21 Richard Henderson <rth@twiddle.net>
30213 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
30214 related insns after epilogue_completed.
30216 2014-03-21 Martin Jambor <mjambor@suse.cz>
30219 * cgraph.h (symtab_node): New flag body_removed.
30220 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
30221 when removing bodies.
30222 * symtab.c (dump_symtab_base): Dump body_removed flag.
30223 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
30224 had their bodies removed.
30226 2014-03-21 Martin Jambor <mjambor@suse.cz>
30229 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
30232 2014-03-21 Richard Biener <rguenther@suse.de>
30234 PR tree-optimization/60577
30235 * tree-core.h (struct tree_base): Document nothrow_flag use
30236 in DECL_NONALIASED.
30237 * tree.h (DECL_NONALIASED): New.
30238 (may_be_aliased): Adjust.
30239 * coverage.c (build_var): Set DECL_NONALIASED.
30241 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30243 * expr.c (expand_expr_real_1): Remove outdated comment.
30245 2014-03-20 Jakub Jelinek <jakub@redhat.com>
30247 PR middle-end/60597
30248 * ira.c (adjust_cleared_regs): Call copy_rtx on
30249 *reg_equiv[REGNO (loc)].src_p before passing it to
30250 simplify_replace_fn_rtx.
30253 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
30254 into CONST, put pic register as first operand of PLUS. Use
30255 gen_const_mem for both 32-bit and 64-bit PIC got loads.
30257 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30259 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
30261 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30263 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
30264 around for store forwarding issue in the FPU on the UT699.
30265 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
30266 loads and operations if -mfix-ut699 is specified.
30267 (divtf3_hq): Tweak attribute.
30268 (sqrttf2_hq): Likewise.
30270 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30272 * calls.c (store_one_arg): Remove incorrect const qualification on the
30273 type of the temporary.
30274 * cfgexpand.c (expand_return): Likewise.
30275 * expr.c (expand_constructor): Likewise.
30276 (expand_expr_real_1): Likewise.
30278 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30280 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
30283 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
30286 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
30288 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
30290 * config/arm/aarch-common-protos.h
30291 (alu_cost_table): Fix spelling of "extend".
30292 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
30294 2014-03-19 Richard Biener <rguenther@suse.de>
30296 PR middle-end/60553
30297 * tree-core.h (tree_type_common): Re-order pointer members
30298 to reduce recursion depth during GC walks.
30300 2014-03-19 Marek Polacek <polacek@redhat.com>
30303 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
30304 before accessing it.
30306 2014-03-19 Richard Biener <rguenther@suse.de>
30309 * lto-streamer-in.c (input_function): In WPA stage do not drop
30312 2014-03-19 Jakub Jelinek <jakub@redhat.com>
30314 PR tree-optimization/60559
30315 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30316 with build_zero_cst assignment.
30318 2014-03-18 Kai Tietz <ktietz@redhat.com>
30320 PR rtl-optimization/56356
30321 * sdbout.c (sdbout_parms): Verify that parms'
30322 incoming argument is valid.
30323 (sdbout_reg_parms): Likewise.
30325 2014-03-18 Richard Henderson <rth@redhat.com>
30328 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30329 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
30330 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30332 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
30334 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30335 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30336 Italicize plugin event names in description. Explain that
30337 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
30338 Remind that no GCC functions should be called after PLUGIN_FINISH.
30339 Explain what pragmas with expansion are.
30341 2014-03-18 Martin Liska <mliska@suse.cz>
30343 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30344 gimple call statement is update.
30345 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30346 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30348 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30351 * ubsan.c (ubsan_instrument_unreachable): Call
30352 initialize_sanitizer_builtins.
30353 (ubsan_pass): Likewise.
30356 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30357 varpool_finalize_decl instead of rest_of_decl_compilation.
30359 2014-03-18 Richard Biener <rguenther@suse.de>
30361 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30362 by using bitmap_and_compl instead of bitmap_and_compl_into.
30363 (df_rd_transfer_function): Likewise.
30365 2014-03-18 Richard Biener <rguenther@suse.de>
30367 * doc/lto.texi (fresolution): Fix typo.
30369 2014-03-18 Richard Biener <rguenther@suse.de>
30371 * doc/invoke.texi (flto): Update for changes in 4.9.
30373 2014-03-18 Richard Biener <rguenther@suse.de>
30375 * doc/loop.texi: Remove section on the removed lambda framework.
30376 Update loop docs with recent changes in preserving loop structure.
30378 2014-03-18 Richard Biener <rguenther@suse.de>
30380 * doc/lto.texi (-fresolution): Document.
30382 2014-03-18 Richard Biener <rguenther@suse.de>
30384 * doc/contrib.texi: Adjust my name.
30386 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30389 * internal-fn.c: Include diagnostic-core.h.
30390 (expand_BUILTIN_EXPECT): New function.
30391 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30392 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30393 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30394 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30395 IFN_BUILTIN_EXPECT.
30396 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30397 Revert 3 argument __builtin_expect code.
30398 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30399 * gimple-fold.c (gimple_fold_call): Likewise.
30400 * tree.h (fold_builtin_expect): New prototype.
30401 * builtins.c (build_builtin_expect_predicate): Add predictor
30402 argument, if non-NULL, create 3 argument __builtin_expect.
30403 (fold_builtin_expect): No longer static. Add ARG2 argument,
30404 pass it through to build_builtin_expect_predicate.
30405 (fold_builtin_2): Adjust caller.
30406 (fold_builtin_3): Handle BUILT_IN_EXPECT.
30407 * internal-fn.def (BUILTIN_EXPECT): New.
30409 2014-03-18 Tobias Burnus <burnus@net-b.de>
30412 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
30413 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
30414 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
30416 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
30419 * predict.c (combine_predictions_for_bb): Fix up formatting.
30420 (expr_expected_value_1, expr_expected_value): Add predictor argument,
30421 fill what it points to if non-NULL.
30422 (tree_predict_by_opcode): Adjust caller, use the predictor.
30423 * predict.def (PRED_COMPARE_AND_SWAP): Add.
30425 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
30427 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30428 proper constant for the store mode.
30430 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
30432 * symtab.c (change_decl_assembler_name): Fix transparent alias
30433 chain construction.
30435 2014-03-16 Renlin Li <Renlin.Li@arm.com>
30437 * config/aarch64/aarch64.c: Correct the comments about the
30438 aarch64 stack layout.
30440 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
30442 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30443 check for GF_OMP_FOR_KIND_FOR.
30445 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
30447 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30448 ymm and zmm register names.
30450 2014-03-17 Jakub Jelinek <jakub@redhat.com>
30453 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30454 note creation for the 2010-08-31 changes.
30456 2014-03-17 Marek Polacek <polacek@redhat.com>
30458 PR middle-end/60534
30459 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
30460 as -fno-tree-loop-vectorize.
30461 (expand_omp_simd): Likewise.
30463 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
30465 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
30466 (eligible_for_call_delay): New prototype.
30467 * config/sparc/sparc.c (tls_call_delay): Rename into...
30468 (eligible_for_call_delay): ...this. Return false if the instruction
30469 cannot be put in the delay slot of a branch.
30470 (eligible_for_restore_insn): Simplify.
30471 (eligible_for_return_delay): Return false if the instruction cannot be
30472 put in the delay slot of a branch and simplify.
30473 (eligible_for_sibcall_delay): Return false if the instruction cannot be
30474 put in the delay slot of a branch.
30475 * config/sparc/sparc.md (fix_ut699): New attribute.
30476 (tls_call_delay): Delete.
30477 (in_call_delay): Reimplement.
30478 (eligible_for_sibcall_delay): Rename into...
30479 (in_sibcall_delay): ...this.
30480 (eligible_for_return_delay): Rename into...
30481 (in_return_delay): ...this.
30482 (in_branch_delay): Reimplement.
30483 (in_uncond_branch_delay): Delete.
30484 (in_annul_branch_delay): Delete.
30486 2014-03-14 Richard Henderson <rth@redhat.com>
30489 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
30490 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
30491 (*floathi<X87MODEF>2_i387_with_temp): Remove.
30492 (floathi splitters): Remove.
30493 (float<SWI48x>xf2): New pattern.
30494 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
30495 code that tried to handle DImode for 32-bit, but which was excluded
30496 by the pattern's condition. Drop allocation of stack temporary.
30497 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
30498 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
30499 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
30500 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
30501 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
30502 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
30503 (*float<SWI48><MODEF>2_sse_interunit): Remove.
30504 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
30505 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
30506 (*float<SWI48x><X87MODEF>2_i387): Remove.
30507 (all float _with_temp splitters): Remove.
30508 (*float<SWI48x><MODEF>2_i387): New pattern.
30509 (*float<SWI48><MODEF>2_sse): New pattern.
30510 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
30511 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
30513 2014-03-14 Jakub Jelinek <jakub@redhat.com>
30514 Marek Polacek <polacek@redhat.com>
30516 PR middle-end/60484
30517 * common.opt (dump_base_name_prefixed): New Variable.
30518 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
30519 if x_dump_base_name_prefixed is already set, set it at the end.
30521 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
30523 PR rtl-optimization/60508
30524 * lra-constraints.c (get_reload_reg): Add new parameter
30526 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
30527 Pass the new parameter values.
30529 2014-03-14 Richard Biener <rguenther@suse.de>
30531 * common.opt: Revert unintented changes from r205065.
30532 * opts.c: Likewise.
30534 2014-03-14 Richard Biener <rguenther@suse.de>
30536 PR middle-end/60518
30537 * cfghooks.c (split_block): Properly adjust all loops the
30538 block was a latch of.
30540 2014-03-14 Martin Jambor <mjambor@suse.cz>
30543 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
30546 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
30549 * config/avr/avr.c (avr_set_current_function): Pass function name
30550 through default_strip_name_encoding before sanity checking instead
30551 of skipping the first char of the assembler name.
30553 2014-03-13 Richard Henderson <rth@redhat.com>
30556 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
30557 (ix86_force_to_memory, ix86_free_from_memory): Remove.
30558 * config/i386/i386-protos.h: Likewise.
30559 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
30560 in the expander instead of a splitter.
30561 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
30562 any possibility of requiring a memory.
30563 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
30564 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
30565 (fp branch splitters): Update for ix86_split_fp_branch.
30566 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
30567 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
30568 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
30569 (*fop_<MODEF>_2_i387): Remove f/r alternative.
30570 (*fop_<MODEF>_3_i387): Likewise.
30571 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
30572 (splitters for the fop_* register patterns): Remove.
30573 (fscalexf4_i387): Rename from *fscalexf4_i387.
30574 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
30576 2014-03-13 Jakub Jelinek <jakub@redhat.com>
30578 PR tree-optimization/59779
30579 * tree-dfa.c (get_ref_base_and_extent): Use double_int
30580 type for bitsize and maxsize instead of HOST_WIDE_INT.
30582 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
30584 PR rtl-optimization/57320
30585 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
30586 the CFG after thread_prologue_and_epilogue_insns.
30588 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
30590 PR rtl-optimization/57189
30591 * lra-constraints.c (process_alt_operands): Disfavor spilling
30594 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
30596 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
30598 2014-03-13 Jakub Jelinek <jakub@redhat.com>
30600 PR tree-optimization/59025
30601 PR middle-end/60418
30602 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
30603 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
30605 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
30608 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
30609 calls of avr_out_plus_1.
30611 2014-03-13 Bin Cheng <bin.cheng@arm.com>
30613 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
30614 BB's single pred and update the father loop's latch info later.
30616 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
30618 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
30622 (VEC_base): Likewise.
30623 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
30624 registers, we need to swap double words in little endian mode.
30626 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
30627 to be a container mode for 128-bit integer operations added in ISA
30628 2.07. Unlike TImode and PTImode, the preferred register set is
30629 the Altivec/VMX registers for the 128-bit operations.
30631 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
30633 (rs6000_split_128bit_ok_p): Likewise.
30635 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
30636 macros for creating ISA 2.07 normal and overloaded builtin
30637 functions with 3 arguments.
30638 (BU_P8V_OVERLOAD_3): Likewise.
30639 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
30640 for use as overloaded functions.
30641 (VPERM_1TI_UNS): Likewise.
30642 (VSEL_1TI): Likewise.
30643 (VSEL_1TI_UNS): Likewise.
30644 (ST_INTERNAL_1ti): Likewise.
30645 (LD_INTERNAL_1ti): Likewise.
30646 (XXSEL_1TI): Likewise.
30647 (XXSEL_1TI_UNS): Likewise.
30648 (VPERM_1TI): Likewise.
30649 (VPERM_1TI_UNS): Likewise.
30650 (XXPERMDI_1TI): Likewise.
30651 (SET_1TI): Likewise.
30652 (LXVD2X_V1TI): Likewise.
30653 (STXVD2X_V1TI): Likewise.
30654 (VEC_INIT_V1TI): Likewise.
30655 (VEC_SET_V1TI): Likewise.
30656 (VEC_EXT_V1TI): Likewise.
30657 (EQV_V1TI): Likewise.
30658 (NAND_V1TI): Likewise.
30659 (ORC_V1TI): Likewise.
30660 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
30661 added in ISA 2.07. Add both normal 'altivec' builtins, and the
30662 overloaded builtin.
30663 (VADDUQM): Likewise.
30664 (VSUBCUQ): Likewise.
30665 (VADDEUQM): Likewise.
30666 (VADDECUQ): Likewise.
30667 (VSUBEUQM): Likewise.
30668 (VSUBECUQ): Likewise.
30670 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
30671 __int128_t and __uint128_t types.
30672 (__uint128_type): Likewise.
30673 (altivec_categorize_keyword): Add support for vector __int128_t,
30674 vector __uint128_t, vector __int128, and vector unsigned __int128
30675 as a container type for TImode operations that need to be done in
30676 VSX/Altivec registers.
30677 (rs6000_macro_to_expand): Likewise.
30678 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
30679 to support 128-bit integer instructions vaddcuq, vadduqm,
30680 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
30681 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
30683 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
30684 for V1TImode, and set up preferences to use VSX/Altivec registers.
30685 Setup VSX reload handlers.
30686 (rs6000_debug_reg_global): Likewise.
30687 (rs6000_init_hard_regno_mode_ok): Likewise.
30688 (rs6000_preferred_simd_mode): Likewise.
30689 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
30690 (easy_altivec_constant): Likewise.
30691 (output_vec_const_move): Likewise.
30692 (rs6000_expand_vector_set): Convert V1TImode set and extract to
30694 (rs6000_expand_vector_extract): Likewise.
30695 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
30697 (rs6000_const_vec): Add support for V1TImode.
30698 (rs6000_emit_le_vsx_load): Swap double words when loading or
30699 storing TImode/V1TImode.
30700 (rs6000_emit_le_vsx_store): Likewise.
30701 (rs6000_emit_le_vsx_move): Likewise.
30702 (rs6000_emit_move): Add support for V1TImode.
30703 (altivec_expand_ld_builtin): Likewise.
30704 (altivec_expand_st_builtin): Likewise.
30705 (altivec_expand_vec_init_builtin): Likewise.
30706 (altivec_expand_builtin): Likewise.
30707 (rs6000_init_builtins): Add support for V1TImode type. Add
30708 support for ISA 2.07 128-bit integer builtins. Define type names
30709 for the VSX/Altivec vector types.
30710 (altivec_init_builtins): Add support for overloaded vector
30711 functions with V1TImode type.
30712 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
30713 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
30715 (rs6000_split_128bit_ok_p): Likewise.
30716 (rs6000_handle_altivec_attribute): Create V1TImode from vector
30717 __int128_t and vector __uint128_t.
30719 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
30720 and mode attributes.
30722 (VSX_M2): Likewise.
30727 (VS_scalar): Likewise.
30728 (VS_double): Likewise.
30729 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
30731 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
30732 we support the ISA 2.07 128-bit integer arithmetic instructions.
30733 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
30734 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
30735 and TImode types for use with the builtin functions.
30736 (V1TI_type_node): Likewise.
30737 (unsigned_V1TI_type_node): Likewise.
30738 (intTI_type_internal_node): Likewise.
30739 (uintTI_type_internal_node): Likewise.
30741 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
30742 128-bit builtin functions.
30743 (UNSPEC_VADDEUQM): Likewise.
30744 (UNSPEC_VADDECUQ): Likewise.
30745 (UNSPEC_VSUBCUQ): Likewise.
30746 (UNSPEC_VSUBEUQM): Likewise.
30747 (UNSPEC_VSUBECUQ): Likewise.
30748 (VM): Add V1TImode to vector mode iterators.
30750 (VI_unit): Likewise.
30751 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
30752 (altivec_vaddcuq): Likewise.
30753 (altivec_vsubuqm): Likewise.
30754 (altivec_vsubcuq): Likewise.
30755 (altivec_vaddeuqm): Likewise.
30756 (altivec_vaddecuq): Likewise.
30757 (altivec_vsubeuqm): Likewise.
30758 (altivec_vsubecuq): Likewise.
30760 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
30762 (BOOL_128): Likewise.
30763 (BOOL_REGS_OUTPUT): Likewise.
30764 (BOOL_REGS_OP1): Likewise.
30765 (BOOL_REGS_OP2): Likewise.
30766 (BOOL_REGS_UNARY): Likewise.
30767 (BOOL_REGS_AND_CR0): Likewise.
30769 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
30770 128-bit integer builtin support.
30771 (vec_vadduqm): Likewise.
30772 (vec_vaddecuq): Likewise.
30773 (vec_vaddeuqm): Likewise.
30774 (vec_vsubecuq): Likewise.
30775 (vec_vsubeuqm): Likewise.
30776 (vec_vsubcuq): Likewise.
30777 (vec_vsubuqm): Likewise.
30779 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30780 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
30781 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
30782 128-bit integer add/subtract to ISA 2.07.
30784 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
30786 * config/arc/arc.c (arc_predicate_delay_insns):
30787 Fix third argument passed to conditionalize_nonjump.
30789 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
30791 * config/aarch64/aarch64-builtins.c
30792 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
30793 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
30794 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
30795 instead of __builtin_lfloor.
30796 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
30798 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30800 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
30801 (tree_ssa_ifcombine_bb_1): New function.
30802 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
30803 is an empty forwarder block to then_bb or vice versa and then_bb
30804 and else_bb are effectively swapped.
30806 2014-03-12 Christian Bruel <christian.bruel@st.com>
30809 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
30810 REG_CFA_DEF_CFA note.
30811 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
30812 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
30814 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
30816 PR tree-optimization/60454
30817 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
30819 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30821 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
30822 Do not define target_cpu_default2 to generic.
30823 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
30824 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
30825 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
30827 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30828 Marc Glisse <marc.glisse@inria.fr>
30830 PR tree-optimization/60502
30831 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
30832 instead of build_low_bits_mask.
30834 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30836 PR middle-end/60482
30837 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
30838 if there are multiple uses, but op doesn't live on E edge.
30839 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
30840 clobber stmts before __builtin_unreachable.
30842 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
30844 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
30845 hard_frame_pointer_rtx.
30846 * cse.c (cse_insn): Remove volatile check.
30847 * cselib.c (cselib_process_insn): Likewise.
30848 * dse.c (scan_insn): Likewise.
30850 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
30852 * config/arc/arc.c (conditionalize_nonjump): New function,
30854 (arc_ifcvt): ... this.
30855 (arc_predicate_delay_insns): Use it.
30857 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
30859 * config/arc/predicates.md (extend_operand): During/after reload,
30860 allow const_int_operand.
30861 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
30862 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
30863 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
30865 (umulsi3_highpart_i): Likewise.
30867 2014-03-11 Richard Biener <rguenther@suse.de>
30869 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
30870 Add asserts to guard possible wrong-code bugs.
30872 2014-03-11 Richard Biener <rguenther@suse.de>
30874 PR tree-optimization/60429
30875 PR tree-optimization/60485
30876 * tree-ssa-structalias.c (set_union_with_increment): Properly
30877 take into account all fields that overlap the shifted vars.
30878 (do_sd_constraint): Likewise.
30879 (do_ds_constraint): Likewise.
30880 (get_constraint_for_ptr_offset): Likewise.
30882 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
30884 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
30885 (nios2_compute_frame_layout):
30886 Add calculation of cfun->machine->fp_save_offset.
30887 (nios2_expand_prologue): Correct setting of frame pointer register
30889 (nios2_expand_epilogue): Update recovery of stack pointer from
30890 frame pointer accordingly.
30891 (nios2_initial_elimination_offset): Update calculation of offset
30892 for eliminating to HARD_FRAME_POINTER_REGNUM.
30894 2014-03-10 Jakub Jelinek <jakub@redhat.com>
30897 * ipa.c (symtab_remove_unreachable_nodes): Don't call
30898 cgraph_get_create_node on VAR_DECLs.
30900 2014-03-10 Richard Biener <rguenther@suse.de>
30902 PR middle-end/60474
30903 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
30905 2014-03-08 Douglas B Rupp <rupp@gnat.com>
30907 * config/vms/vms.opt (vms_float_format): New variable.
30909 2014-03-08 Tobias Burnus <burnus@net-b.de>
30911 * doc/invoke.texi (-fcilkplus): Update implementation status.
30913 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
30914 Richard Biener <rguenther@suse.de>
30916 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
30917 consistently accross all TUs.
30918 (run_gcc): Enable -fshort-double automatically at link at link-time
30919 and disallow override.
30921 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
30924 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
30925 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
30926 if they can't be used.
30928 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30930 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
30931 for Solaris 11/x86 ld.
30932 * configure: Regenerate.
30934 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30936 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
30937 (LIB_TLS_SPEC): Save as ld_tls_libs.
30938 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
30939 (HAVE_AS_IX86_TLSLDM): New test.
30940 * configure, config.in: Regenerate.
30941 * config/i386/i386.c (legitimize_tls_address): Fall back to
30942 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
30943 cannot support TLS_MODEL_LOCAL_DYNAMIC.
30944 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
30945 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
30947 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
30949 * common.opt (fira-loop-pressure): Mark as optimization.
30951 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
30953 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
30954 an OpenMP mappable type.
30956 2014-03-06 Matthias Klose <doko@ubuntu.com>
30958 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
30959 MULTILIB_OSDIRNAMES is not defined.
30961 2014-03-06 Jakub Jelinek <jakub@redhat.com>
30962 Meador Inge <meadori@codesourcery.com>
30965 * config/arm/arm.c (arm_tls_symbol_p): Remove.
30966 (arm_legitimize_address): Call legitimize_tls_address for any
30967 arm_tls_referenced_p expression, handle constant addend. Call it
30968 before testing for !TARGET_ARM.
30969 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
30971 2014-03-06 Richard Biener <rguenther@suse.de>
30973 PR middle-end/60445
30977 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
30979 * tree-streamer.c (record_common_node): Assert we don't record
30980 nodes with type double.
30981 (preload_common_node): Skip type double, complex double and double
30982 pointer since it is now frontend dependent due to fshort-double option.
30984 2014-03-06 Richard Biener <rguenther@suse.de>
30986 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
30987 or -fno-lto is specified and the linker has full plugin support.
30988 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
30989 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
30990 * lto-wrapper.c (merge_and_complain): Merge compile-time
30991 optimization levels.
30992 (run_gcc): And pass it through to the link options.
30994 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
30998 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31000 * cselib.c (remove_useless_values): Skip to avoid quadratic
31001 behavior if the condition moved from...
31002 (cselib_process_insn): ... here holds.
31004 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31007 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31008 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31011 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31012 (TM_H): Add x86-tune.def.
31014 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31016 * config/aarch64/aarch64.c (generic_tunings):
31017 Use cortexa57_extra_costs.
31019 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31022 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31023 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31024 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31027 2014-03-04 Heiher <r@hev.cc>
31029 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31030 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31032 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
31034 * config/i386/predicates.md (const2356_operand): Change to ...
31035 (const2367_operand): ... this.
31036 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31038 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31039 (*avx512pf_scatterpf<mode>sf): Ditto.
31040 (avx512pf_scatterpf<mode>df): Ditto.
31041 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31042 (*avx512pf_scatterpf<mode>df): Ditto.
31043 * config/i386/i386.c (ix86_expand_builtin): Update
31044 incorrect hint operand error message.
31046 2014-03-04 Richard Biener <rguenther@suse.de>
31048 * lto-section-in.c (lto_get_section_data): Fix const cast.
31050 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31052 * tree-streamer.c (record_common_node): Assert we don't record
31053 nodes with type double.
31054 (preload_common_node): Skip type double, complex double and double
31055 pointer since it is now frontend dependent due to fshort-double option.
31057 2014-03-04 Richard Biener <rguenther@suse.de>
31060 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31061 (lto_input_toplevel_asms): Likewise.
31062 * lto-section-in.c (lto_get_section_data): Instead do it here
31065 2014-03-04 Richard Biener <rguenther@suse.de>
31067 PR tree-optimization/60382
31068 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
31069 dead PHIs a reduction.
31071 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
31073 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
31075 (_mm_prefetch): Move out of GCC target("sse") pragma.
31076 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
31077 GCC target("prfchw") pragma.
31078 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
31080 * config/i386/i386.c (ix86_option_override_internal): Enable
31081 -mprfchw with -mprefetchwt1.
31083 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31085 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
31088 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31090 * opts.h (CL_PCH_IGNORE): Define.
31091 * targhooks.c (option_affects_pch_p):
31092 Return false for options that have CL_PCH_IGNORE set.
31093 * opt-functions.awk: Process PchIgnore.
31094 * doc/options.texi: Document PchIgnore.
31096 * config/arc/arc.opt (misize): Add PchIgnore property.
31098 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31100 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
31101 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
31102 constraint on constants to permit them being loaded into
31103 GENERAL_REGS or BASE_REGS.
31105 2014-03-03 Nick Clifton <nickc@redhat.com>
31107 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
31108 anti-cacnonical alternatives.
31109 (negandhi3_real): New pattern.
31110 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
31112 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31114 * config/avr/avr-mcus.def: Remove atxmega16x1.
31115 * config/avr/avr-tables.opt: Regenerate.
31116 * config/avr/t-multilib: Regenerate.
31117 * doc/avr-mmcu.texi: Regenerate.
31119 2014-03-03 Tobias Grosser <tobias@grosser.es>
31120 Mircea Namolaru <mircea.namolaru@inria.fr>
31122 PR tree-optimization/58028
31123 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
31126 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31128 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
31129 not handled by recognizers.
31131 2014-03-03 Jakub Jelinek <jakub@redhat.com>
31133 PR middle-end/60175
31134 * function.c (expand_function_end): Don't emit
31135 clobber_return_register sequence if clobber_after is a BARRIER.
31136 * cfgexpand.c (construct_exit_block): Append instructions before
31137 return_label to prev_bb.
31139 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31141 * config/rs6000/constraints.md: Document reserved use of "wc".
31143 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31146 * ipa.c (function_and_variable_visibility): When dissolving comdat
31147 group, also set all symbols to local.
31149 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31154 2013-12-14 Jan Hubicka <jh@suse.cz>
31155 PR middle-end/58477
31156 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
31158 2014-03-02 Jon Beniston <jon@beniston.com>
31164 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
31165 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
31166 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
31167 (simple_return, *simple_return): New patterns
31168 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
31169 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
31171 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
31173 * dwarf2out.c (gen_subprogram_die): Tidy.
31175 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
31178 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
31179 (*mov_t_msb_neg_negc): ... this new insn.
31181 2014-02-28 Jason Merrill <jason@redhat.com>
31184 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
31187 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31190 * dwarf2out.c (decltype_auto_die): New static.
31191 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
31192 (gen_type_die_with_usage): Handle 'decltype(auto)'.
31193 (is_cxx_auto): Likewise.
31195 2014-02-28 Ian Bolton <ian.bolton@arm.com>
31197 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
31198 we are not using general regs only.
31200 2014-02-28 Richard Biener <rguenther@suse.de>
31203 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
31204 previous fix and only allow to remove trivial pre-headers
31205 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
31206 (remove_forwarder_block): Properly update the latch of a loop.
31208 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31211 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
31212 (cselib_preserved_hash_table): New.
31213 (preserve_constants_and_equivs): Move preserved vals to it.
31214 (cselib_find_slot): Look it up first.
31215 (cselib_init): Initialize it.
31216 (cselib_finish): Release it.
31217 (dump_cselib_table): Dump it.
31219 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31222 * cselib.c (remove_useless_values): Skip to avoid quadratic
31223 behavior if the condition moved from...
31224 (cselib_process_insn): ... here holds.
31226 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31229 * var-tracking.c (vt_initialize): Apply the same condition to
31230 preserve the CFA base value.
31232 2014-02-28 Joey Ye <joey.ye@arm.com>
31235 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
31236 if reload in progress or completed.
31238 2014-02-28 Tobias Burnus <burnus@net-b.de>
31240 PR middle-end/60147
31241 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
31244 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
31246 * doc/tm.texi.in (Condition Code Status): Update documention for
31247 relative locations of cc0-setter and cc0-user.
31249 2014-02-27 Jeff Law <law@redhat.com>
31251 PR rtl-optimization/52714
31252 * combine.c (try_combine): When splitting an unrecognized PARALLEL
31253 into two independent simple sets, if I3 is a jump, ensure the
31254 pattern we place into I3 is a (set (pc) ...).
31256 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
31257 Jeff Law <law@redhat.com>
31259 PR rtl-optimization/49847
31260 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
31261 are in different blocks.
31262 * doc/tm.texi (Condition Code Status): Update documention for
31263 relative locations of cc0-setter and cc0-user.
31265 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
31268 * lra.c (lra_emit_add): Check SUBREG too.
31270 2014-02-27 Andreas Schwab <schwab@suse.de>
31272 * config/m68k/m68k.c (m68k_option_override): Disable
31273 -flive-range-shrinkage for classic m68k.
31274 (m68k_override_options_after_change): Likewise.
31276 2014-02-27 Marek Polacek <polacek@redhat.com>
31278 PR middle-end/59223
31279 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
31280 -Wmaybe-uninitialized.
31282 2014-02-27 Alan Modra <amodra@gmail.com>
31285 * reload1.c (emit_input_reload_insns): When reload_override_in,
31286 set old to rl->in_reg when rl->in_reg is a subreg.
31288 2014-02-26 Richard Biener <rguenther@suse.de>
31291 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
31293 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31295 * common/config/i386/predicates.md (const1256_operand): Remove.
31296 (const2356_operand): New.
31297 (const_1_to_2_operand): Remove.
31298 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31299 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31300 (*avx512pf_gatherpf<mode>sf): Ditto.
31301 (avx512pf_gatherpf<mode>df): Ditto.
31302 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31303 (*avx512pf_gatherpf<mode>df): Ditto.
31304 (avx512pf_scatterpf<mode>sf): Ditto.
31305 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31306 (*avx512pf_scatterpf<mode>sf): Ditto.
31307 (avx512pf_scatterpf<mode>df): Ditto.
31308 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31309 (*avx512pf_scatterpf<mode>df): Ditto.
31310 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
31312 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
31314 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31315 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31316 (_mm512_mask_testn_epi64_mask): Move to ...
31317 * config/i386/avx512cdintrin.h: Here.
31318 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31319 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31320 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31321 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31322 TARGET_AVX512F from TARGET_AVX512CD.
31324 2014-02-26 Richard Biener <rguenther@suse.de>
31327 * ipa.c (walk_polymorphic_call_targets): Properly guard
31328 call to inline_update_overall_summary.
31330 2014-02-26 Bin Cheng <bin.cheng@arm.com>
31333 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31334 and latches only if requested. Fix latch if it is removed.
31335 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31336 LOOPS_HAVE_PREHEADERS.
31338 2014-02-25 Andrew Pinski <apinski@cavium.com>
31340 * builtins.c (expand_builtin_thread_pointer): Create a new target
31341 when the target is NULL.
31343 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
31345 PR rtl-optimization/60317
31346 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31347 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31348 * lra-assigns.c: Include params.h.
31349 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31350 other reload pseudos considerations.
31352 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31354 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31355 to use canonical form for nor<mode>3.
31357 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31360 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31363 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31365 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31366 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31367 (ix86_handle_option): Handle OPT_mprefetchwt1.
31368 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31369 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31371 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31372 OPTION_MASK_ISA_PREFETCHWT1.
31373 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31374 (PTA_PREFETCHWT1): New.
31375 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31376 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31377 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31378 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31379 (*prefetch_avx512pf_<mode>_: Change into ...
31380 (*prefetch_prefetchwt1_<mode>: This.
31381 * config/i386/i386.opt (mprefetchwt1): New.
31382 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31383 (_mm_prefetch): Handle intent to write.
31384 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31386 2014-02-25 Richard Biener <rguenther@suse.de>
31388 PR middle-end/60291
31389 * emit-rtl.c (mem_attrs_htab): Remove.
31390 (mem_attrs_htab_hash): Likewise.
31391 (mem_attrs_htab_eq): Likewise.
31392 (set_mem_attrs): Always allocate new mem-attrs when something changed.
31393 (init_emit_once): Do not allocate mem_attrs_htab.
31395 2014-02-25 Richard Biener <rguenther@suse.de>
31398 * lto-opts.c (lto_write_options): Output non-explicit conservative
31399 -fwrapv, -fno-trapv and -fno-strict-overflow.
31400 * lto-wrapper.c (merge_and_complain): Handle merging those options.
31401 (run_gcc): And pass them through.
31403 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31405 * sel-sched.c (calculate_new_fences): New parameter ptime.
31406 Calculate it as a maximum over all fence cycles.
31407 (sel_sched_region_2): Adjust the call to calculate_new_fences.
31408 Print the final schedule timing when sched_verbose.
31410 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31412 PR rtl-optimization/60292
31413 * sel-sched.c (fill_vec_av_set): Do not reset target availability
31414 bit fot the fence instruction.
31416 2014-02-24 Alangi Derick <alangiderick@gmail.com>
31418 * calls.h: Fix typo in comment.
31420 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
31422 * config/pa/pa.c (pa_output_move_double): Don't valididate when
31423 adjusting offsetable addresses.
31425 2014-02-24 Guozhi Wei <carrot@google.com>
31427 * sparseset.h (sparseset_pop): Fix the wrong index.
31429 2014-02-24 Walter Lee <walt@tilera.com>
31431 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31432 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31434 * common/config/tilegx/tilegx-common.c
31435 (TARGET_DEFAULT_TARGET_FLAGS): Define.
31436 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31437 (LINK_SPEC): Ditto.
31438 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31439 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31440 (tilegx_gimplify_va_arg_expr): Handle big endian.
31441 (tilegx_expand_unaligned_load): Ditto.
31442 (tilegx_expand_unaligned_store): Ditto.
31443 (TARGET_RETURN_IN_MSB): New.
31444 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31445 (TARGET_ENDIAN_DEFAULT): New.
31446 (TARGET_BIG_ENDIAN): Handle big endian.
31447 (BYTES_BIG_ENDIAN): Ditto.
31448 (WORDS_BIG_ENDIAN): Ditto.
31449 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31450 (ENDIAN_SPEC): New.
31451 (EXTRA_SPECS): New.
31452 * config/tilegx/tilegx.md (extv): Handle big endian.
31454 (insn_st<n>): Ditto.
31455 (insn_st<n>_add<bitsuffix>): Ditto.
31456 (insn_stnt<n>): Ditto.
31457 (insn_stnt<n>_add<bitsuffix>):Ditto.
31458 (vec_interleave_highv8qi): Handle big endian.
31459 (vec_interleave_highv8qi_be): New.
31460 (vec_interleave_highv8qi_le): New.
31461 (insn_v1int_h): Handle big endian.
31462 (vec_interleave_lowv8qi): Handle big endian.
31463 (vec_interleave_lowv8qi_be): New.
31464 (vec_interleave_lowv8qi_le): New.
31465 (insn_v1int_l): Handle big endian.
31466 (vec_interleave_highv4hi): Handle big endian.
31467 (vec_interleave_highv4hi_be): New.
31468 (vec_interleave_highv4hi_le): New.
31469 (insn_v2int_h): Handle big endian.
31470 (vec_interleave_lowv4hi): Handle big endian.
31471 (vec_interleave_lowv4hi_be): New.
31472 (vec_interleave_lowv4hi_le): New.
31473 (insn_v2int_l): Handle big endian.
31474 (vec_interleave_highv2si): Handle big endian.
31475 (vec_interleave_highv2si_be): New.
31476 (vec_interleave_highv2si_le): New.
31477 (insn_v4int_h): Handle big endian.
31478 (vec_interleave_lowv2si): Handle big endian.
31479 (vec_interleave_lowv2si_be): New.
31480 (vec_interleave_lowv2si_le): New.
31481 (insn_v4int_l): Handle big endian.
31482 * config/tilegx/tilegx.opt (mbig-endian): New option.
31483 (mlittle-endian): New option.
31484 * doc/install.texi: Document tilegxbe-linux.
31485 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
31487 2014-02-24 Martin Jambor <mjambor@suse.cz>
31490 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
31491 there are no parameter descriptors.
31493 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
31495 PR rtl-optimization/60268
31496 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
31497 initialization to ...
31498 (sched_rgn_init): ... here.
31499 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
31501 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31503 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
31506 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
31508 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
31511 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31513 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
31514 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
31516 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31518 * config/microblaze/predicates.md: Add cmp_op predicate.
31519 * config/microblaze/microblaze.md: Add branch_compare instruction
31520 which uses cmp_op predicate and emits cmp insn before branch.
31521 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
31522 to microblaze_expand_conditional_branch and consolidate logic.
31523 (microblaze_expand_conditional_branch): emit branch_compare
31524 insn instead of handling cmp op separate from branch insn.
31526 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31528 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
31531 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31533 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
31534 define_insn with define_expand and new define_insn
31535 *altivec_lve<VI_char>x_internal.
31536 (altivec_stve<VI_char>x): Replace define_insn with define_expand
31537 and new define_insn *altivec_stve<VI_char>x_internal.
31538 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
31540 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
31542 (altivec_expand_stvex_be): New function.
31544 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
31546 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
31547 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
31548 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
31549 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
31551 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
31554 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
31555 instead of emit_move_insn.
31557 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31559 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
31560 vspltw with vsldoi.
31561 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
31562 gen_altivec_vsumsws.
31564 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31566 * config/rs6000/altivec.md (altivec_lvxl): Rename as
31567 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
31568 (altivec_lvxl_<mode>): New define_expand incorporating
31569 -maltivec=be semantics where needed.
31570 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
31571 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
31572 semantics where needed.
31573 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
31574 (altivec_stvx_<mode>): New define_expand incorporating
31575 -maltivec=be semantics where needed.
31576 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
31577 VM2 iterator instead of V4SI.
31578 (altivec_stvxl_<mode>): New define_expand incorporating
31579 -maltivec=be semantics where needed.
31580 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
31581 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
31582 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
31583 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
31584 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
31585 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
31586 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
31587 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
31588 ALTIVEC_BUILTIN_STVXL.
31589 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
31590 (altivec_expand_stvx_be): Likewise.
31591 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
31592 (altivec_expand_lvx_be): Likewise.
31593 (altivec_expand_stvx_be): Likewise.
31594 (altivec_expand_builtin): Add cases for
31595 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
31596 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
31597 (altivec_init_builtins): Add definitions for
31598 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
31599 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
31601 2014-02-21 Catherine Moore <clm@codesourcery.com>
31603 * doc/invoke.texi (mvirt, mno-virt): Document.
31604 * config/mips/mips.opt (mvirt): New option.
31605 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
31607 2014-02-21 Richard Biener <rguenther@suse.de>
31609 PR tree-optimization/60276
31610 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
31611 (STMT_VINFO_MIN_NEG_DIST): New macro.
31612 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
31613 STMT_VINFO_MIN_NEG_DIST.
31614 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
31615 made for negative dependence distances still hold.
31617 2014-02-21 Richard Biener <rguenther@suse.de>
31619 PR middle-end/60291
31620 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
31621 DECL_INITIAL for globals not in the current function context.
31623 2014-02-21 Jakub Jelinek <jakub@redhat.com>
31625 PR tree-optimization/56490
31626 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
31627 * tree-ssa-uninit.c: Include params.h.
31628 (compute_control_dep_chain): Add num_calls argument, return false
31629 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
31630 num_calls to recursive call.
31631 (find_predicates): Change dep_chain into normal array,
31632 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
31633 variable and adjust compute_control_dep_chain caller.
31634 (find_def_preds): Likewise.
31636 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
31638 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
31639 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
31641 2014-02-21 Nick Clifton <nickc@redhat.com>
31643 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
31644 (pushhi1): Likewise.
31645 (popqi1): Add mode to pre_dec.
31646 (pophi1): Likewise.
31648 2014-02-21 Jakub Jelinek <jakub@redhat.com>
31650 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
31651 mode for mask of V8SFmode permutation.
31653 2014-02-20 Richard Henderson <rth@redhat.com>
31656 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
31657 a new pseudo for OLDVAL.
31659 2014-02-20 Jakub Jelinek <jakub@redhat.com>
31662 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
31663 gen_reg_rtx if d->testing_p.
31664 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
31665 if d->testing_p and we will certainly return true.
31666 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
31669 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
31671 * emit-rtl.c (gen_reg_rtx): Assert that
31672 crtl->emit.regno_pointer_align_length is non-zero.
31674 2014-02-20 Richard Henderson <rth@redhat.com>
31677 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
31678 on failure the store back into EXPECT.
31680 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
31681 Sandra Loosemore <sandra@codesourcery.com>
31683 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
31684 * config/nios2/nios2.c (nios2_function_profiler): Add
31685 -fPIC (flag_pic == 2) support.
31686 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
31687 (nios2_large_offset_p): New function.
31688 (nios2_unspec_reloc_p): Move up position, update to use
31689 nios2_large_offset_p.
31690 (nios2_unspec_address): Remove function.
31691 (nios2_unspec_offset): New function.
31692 (nios2_large_got_address): New function.
31693 (nios2_got_address): Add large offset support.
31694 (nios2_legitimize_tls_address): Update usage of removed and new
31696 (nios2_symbol_binds_local_p): New function.
31697 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
31698 (nios2_legitimize_address): Update to use nios2_large_offset_p.
31699 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
31700 (nios2_print_operand): Merge H/L processing, add hiadj/lo
31701 processing for (const (unspec ...)).
31702 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
31704 2014-02-20 Richard Biener <rguenther@suse.de>
31706 * tree-cfg.c (replace_uses_by): Mark altered BBs before
31707 doing the substitution.
31708 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
31710 2014-02-20 Martin Jambor <mjambor@suse.cz>
31713 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
31714 info when checking whether lattices are bottom.
31716 2014-02-20 Richard Biener <rguenther@suse.de>
31718 PR middle-end/60221
31719 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
31722 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
31725 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
31726 parameter specifying the scaling.
31727 (inline_call): Update.
31728 (want_inline_recursively): Guard division by zero.
31729 (recursive_inlining): Update.
31730 * ipa-inline.h (clone_inlined_nodes): Update.
31732 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
31735 * config/i386/i386.c (classify_argument): Pass structures of size
31736 64 bytes or less in register.
31738 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
31739 Kirill Yukhin <kirill.yukhin@intel.com>
31741 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
31742 (_mm_rcp28_round_ss): Ditto.
31743 (_mm_rsqrt28_round_sd): Ditto.
31744 (_mm_rsqrt28_round_ss): Ditto.
31745 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
31746 (_mm_rcp14_round_ss): Ditto.
31747 (_mm_rsqrt14_round_sd): Ditto.
31748 (_mm_rsqrt14_round_ss): Ditto.
31749 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
31750 the first input operand, get rid of match_dup.
31751 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
31753 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
31755 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
31756 operand as the first input operand, set type attribute.
31757 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
31758 Set type attribute.
31759 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
31760 operand as the first input operand, set type attribute.
31762 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31764 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
31767 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
31770 * config/i386/i386.c (construct_container): Remove TFmode check
31771 for X86_64_INTEGER_CLASS.
31773 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
31776 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
31777 only when -Wpsabi is enabled.
31779 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
31782 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
31783 passing arrays in registers are the same as for structs, so remove the
31784 special case for them.
31786 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
31788 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
31789 destination type, extract only the valid bits if the source type is not
31790 integral and has a different mode.
31792 2014-02-19 Richard Biener <rguenther@suse.de>
31795 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
31798 2014-02-19 Richard Biener <rguenther@suse.de>
31801 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
31802 (ipa_modify_call_arguments): Emit an argument load explicitely and
31803 preserve virtual SSA form there and for the replacement call.
31804 Do not update SSA form nor free dominance info.
31806 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31808 * ipa.c (function_and_variable_visibility): Also clear WEAK
31809 flag when disolving COMDAT_GROUP.
31811 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31813 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
31814 * ipa-prop.c (ipa_set_jf_known_type): Return early when
31815 not devirtualizing.
31816 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
31817 do more sanity checks.
31818 (detect_type_change): Return true when giving up early.
31819 (compute_complex_assign_jump_func): Fix type parameter of
31820 ipa_set_ancestor_jf.
31821 (compute_complex_ancestor_jump_func): Likewise.
31822 (update_jump_functions_after_inlining): Fix updating of
31824 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
31826 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31828 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
31829 inline clones when edge disappears.
31831 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
31834 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
31835 Split 64-bit moves into 2 patterns. Do not allow the use of
31836 direct move for TDmode in little endian, since the decimal value
31837 has little endian bytes within a word, but the 64-bit pieces are
31838 ordered in a big endian fashion, and normal subreg's of TDmode are
31840 (mov<mode>_64bit_dm): Likewise.
31841 (movtd_64bit_nodm): Likewise.
31843 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
31845 PR tree-optimization/60174
31846 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
31847 statement of an SSA_NAME that occurs in an abnormal PHI node.
31849 2014-02-18 Jakub Jelinek <jakub@redhat.com>
31852 * final.c (SEEN_BB): Remove.
31853 (SEEN_NOTE, SEEN_EMITTED): Renumber.
31854 (final_scan_insn): Don't force_source_line on second
31855 NOTE_INSN_BASIC_BLOCK.
31857 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
31860 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
31861 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
31862 (type_natural_mode): Warn ABI change when %zmm register is not
31863 available for AVX512F vector value passing.
31865 2014-02-18 Kai Tietz <ktietz@redhat.com>
31868 * config/i386/i386.c (ix86_expand_prologue): Use value in
31869 rax register as displacement when restoring %r10 or %rax.
31870 Fix wrong offset when restoring both registers.
31872 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
31874 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
31875 assertion with conditional return.
31877 2014-02-18 Jakub Jelinek <jakub@redhat.com>
31878 Uros Bizjak <ubizjak@gmail.com>
31881 * config/i386/driver-i386.c (host_detect_local_cpu): If
31882 YMM state is not saved by the OS, also clear has_f16c. Move
31883 CPUID 0x80000001 handling before YMM state saving checking.
31885 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
31887 PR rtl-optimization/58960
31888 * haifa-sched.c (alloc_global_sched_pressure_data): New,
31889 factored out from ...
31890 (sched_init): ... here.
31891 (free_global_sched_pressure_data): New, factored out from ...
31892 (sched_finish): ... here.
31893 * sched-int.h (free_global_sched_pressure_data): Declare.
31894 * sched-rgn.c (nr_regions_initial): New static global.
31895 (haifa_find_rgns): Initialize it.
31896 (schedule_region): Disable sched-pressure for the newly
31899 2014-02-17 Richard Biener <rguenther@suse.de>
31901 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
31902 release SSA defs of pattern stmts.
31904 2014-02-17 Richard Biener <rguenther@suse.de>
31906 * tree-inline.c (expand_call_inline): Release the virtual
31907 operand defined by the call we are about to inline.
31909 2014-02-17 Richard Biener <rguenther@suse.de>
31911 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
31913 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
31914 Ilya Tocar <ilya.tocar@intel.com>
31916 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
31917 arguments order in builtin.
31918 (_mm512_permutexvar_epi64): Ditto.
31919 (_mm512_mask_permutexvar_epi64): Ditto
31920 (_mm512_maskz_permutexvar_epi32): Ditto
31921 (_mm512_permutexvar_epi32): Ditto
31922 (_mm512_mask_permutexvar_epi32): Ditto
31924 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31926 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
31927 (p8_vmrgow): Likewise.
31929 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31931 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
31934 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
31937 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
31938 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
31939 into 64-bit and 32-bit moves. On 64-bit moves, add support for
31940 using direct move instructions on ISA 2.07. Also adjust
31941 instruction length for 64-bit.
31942 (mov<mode>_64bit, TFmode/TDmode): Likewise.
31943 (mov<mode>_32bit, TFmode/TDmode): Likewise.
31945 2014-02-15 Alan Modra <amodra@gmail.com>
31949 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31950 find_replacement on parts of insn rtl that might be reloaded.
31952 2014-02-15 Richard Biener <rguenther@suse.de>
31954 PR tree-optimization/60183
31955 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
31956 (tree_ssa_phiprop): Calculate and free post-dominators.
31958 2014-02-14 Jeff Law <law@redhat.com>
31960 PR rtl-optimization/60131
31961 * ree.c (get_extended_src_reg): New function.
31962 (combine_reaching_defs): Use it rather than assuming location of REG.
31963 (find_and_remove_re): Verify first operand of extension is
31964 a REG before adding the insns to the copy list.
31966 2014-02-14 Roland McGrath <mcgrathr@google.com>
31968 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
31969 * configure: Regenerated.
31970 * config.in: Regenerated.
31971 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
31972 instead of ASM_SHORT.
31974 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
31975 Richard Earnshaw <rearnsha@arm.com>
31977 PR rtl-optimization/59535
31978 * lra-constraints.c (process_alt_operands): Encourage alternative
31979 when unassigned pseudo class is superset of the alternative class.
31980 (inherit_reload_reg): Don't inherit when optimizing for code size.
31981 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
31982 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
31983 modes not less than 4 for Thumb1.
31985 2014-02-14 Kyle McMartin <kyle@redhat.com>
31988 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
31990 2014-02-14 Richard Biener <rguenther@suse.de>
31992 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
31993 (get_frame_arg): Drop the assert with langhook types_compatible_p.
31994 Do not strip INDIRECT_REFs.
31996 2014-02-14 Richard Biener <rguenther@suse.de>
31999 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32000 DECL_FUNCTION_SPECIFIC_TARGET.
32001 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32002 * tree-streamer-out.c (pack_ts_target_option): Remove.
32003 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32004 (write_ts_function_decl_tree_pointers): Do not stream
32005 DECL_FUNCTION_SPECIFIC_TARGET.
32006 * tree-streamer-in.c (unpack_ts_target_option): Remove.
32007 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32008 (lto_input_ts_function_decl_tree_pointers): Do not stream
32009 DECL_FUNCTION_SPECIFIC_TARGET.
32011 2014-02-14 Jakub Jelinek <jakub@redhat.com>
32013 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32014 (get_initial_def_for_induction, vectorizable_induction): Ignore
32015 debug stmts when looking for exit_phi.
32016 (vectorizable_live_operation): Fix up condition.
32018 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32020 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32021 nreverse() because it changes the content of original tree list.
32023 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32025 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32026 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32028 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32030 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32031 GNU coding standards.
32033 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32036 * dwarf2out.c (gen_subprogram_die): Don't call
32037 add_calling_convention_attribute if subr_die is old_die.
32039 2014-02-13 Sharad Singhai <singhai@google.com>
32041 * doc/optinfo.texi: Fix order of nodes.
32043 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
32045 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32046 operands[2], not operands[3].
32048 2014-02-13 Richard Biener <rguenther@suse.de>
32051 * doc/install.texi (ISL): Update recommended version to 0.12.2,
32052 mention the possibility of an in-tree build.
32053 (CLooG): Update recommended version to 0.18.1, mention the
32054 possibility of an in-tree build and clarify that the ISL
32055 bundled with CLooG does not work.
32057 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32060 * expr.c (compress_float_constant): If x is a hard register,
32061 extend into a pseudo and then move to x.
32063 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
32065 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
32066 caused by bad second argument to warning_at() with -mhotpatch and
32067 nested functions (e.g. with gfortran).
32069 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
32071 * opts.c (option_name): Remove "enabled by default" rider.
32073 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
32075 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
32077 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
32078 Uros Bizjak <ubizjak@gmail.com>
32081 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
32082 * configure: Regenerated.
32084 2014-02-12 Richard Biener <rguenther@suse.de>
32086 * vec.c (vec_prefix::calculate_allocation): Move as
32087 inline variant to vec.h.
32088 (vec_prefix::calculate_allocation_1): New out-of-line version.
32089 * vec.h (vec_prefix::calculate_allocation_1): Declare.
32090 (vec_prefix::m_has_auto_buf): Rename to ...
32091 (vec_prefix::m_using_auto_storage): ... this.
32092 (vec_prefix::calculate_allocation): Inline the easy cases
32093 and dispatch to calculate_allocation_1 which doesn't need the
32095 (va_heap::reserve): Use gcc_checking_assert.
32096 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
32097 m_using_auto_storage.
32098 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
32100 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
32101 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
32102 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
32104 2014-02-12 Richard Biener <rguenther@suse.de>
32106 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
32107 when we found a dependence.
32109 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
32111 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
32113 (maybe_fold_stmt): ... into this new function.
32114 * omp-low.c (lower_omp): Update comment.
32116 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
32119 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
32122 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
32124 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
32125 identifiers in comments.
32126 (cortexa53_extra_costs): Likewise.
32127 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
32128 (cortexa7_extra_costs): Likewise.
32129 (cortexa12_extra_costs): Likewise.
32130 (cortexa15_extra_costs): Likewise.
32131 (v7m_extra_costs): Likewise.
32133 2014-02-12 Richard Biener <rguenther@suse.de>
32135 PR middle-end/60092
32136 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
32137 of posix_memalign being successful.
32138 (lower_stmt): Restrict lowering of posix_memalign to when
32139 -ftree-bit-ccp is enabled.
32141 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32143 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
32145 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
32147 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
32149 PR rtl-optimization/60116
32150 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
32151 other_insn once the combination has been validated.
32153 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
32156 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
32158 * ipa-devirt.c: Include demangle.h
32159 (odr_violation_reported): New static variable.
32160 (add_type_duplicate): Update odr_violations.
32161 (maybe_record_node): Add completep parameter; update it.
32162 (record_target_from_binfo): Add COMPLETEP parameter;
32163 update it as needed.
32164 (possible_polymorphic_call_targets_1): Likewise.
32165 (struct polymorphic_call_target_d): Add nonconstruction_targets;
32166 rename FINAL to COMPLETE.
32167 (record_targets_from_bases): Sanity check we found the binfo;
32168 fix COMPLETEP updating.
32169 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
32170 parameter, fix computing of COMPLETEP.
32171 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
32172 at LTO time do demangling.
32173 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
32174 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
32176 (gimple_get_virt_method_for_binfo): Likewise.
32177 * gimple-fold.h (gimple_get_virt_method_for_binfo,
32178 gimple_get_virt_method_for_vtable): Update prototypes.
32180 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
32183 * genautomata.c (add_presence_absence): Fix typo with
32184 {final_}presence_list.
32186 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
32189 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
32190 for VSX/Altivec vectors that land in GPR registers.
32192 2014-02-11 Richard Henderson <rth@redhat.com>
32193 Jakub Jelinek <jakub@redhat.com>
32196 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
32197 around drhs if type conversion to lacc->type is not useless.
32199 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32201 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
32203 (cortex-a57.cortex-a53): Likewise.
32204 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
32206 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32208 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
32211 2014-02-11 Renlin Li <Renlin.Li@arm.com>
32213 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
32214 add_options_for_arm_vfp3.
32216 2014-02-11 Jeff Law <law@redhat.com>
32218 PR middle-end/54041
32219 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
32220 object with an undesirable mode.
32222 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32225 * config/i386/sol2-9.h: New file.
32226 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
32227 *-*-solaris2.9*): Use it.
32229 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32231 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
32232 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
32234 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32236 * config/microblaze/microblaze.c: Extend mcpu version format
32238 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
32240 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
32242 2014-02-10 Richard Henderson <rth@redhat.com>
32245 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
32246 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
32247 ms-abi vs -mno-accumulate-outgoing-args.
32248 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
32249 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
32252 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
32254 PR middle-end/60080
32255 * cfgexpand.c (expand_asm_operands): Attach source location to
32256 ASM_INPUT rtx objects.
32257 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
32259 2014-02-10 Nick Clifton <nickc@redhat.com>
32261 * config/mn10300/mn10300.c (popcount): New function.
32262 (mn10300_expand_prologue): Include saved registers in stack usage
32265 2014-02-10 Jeff Law <law@redhat.com>
32267 PR middle-end/52306
32268 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
32269 when changing the SET_DEST of a prior insn to avoid an input reload.
32271 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32273 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
32274 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
32275 -mcall-openbsd, or -mcall-linux.
32276 (CC1_ENDIAN_BIG_SPEC): Remove.
32277 (CC1_ENDIAN_LITTLE_SPEC): Remove.
32278 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32279 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
32280 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
32281 and %cc1_endian_default.
32282 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32284 2014-02-10 Richard Biener <rguenther@suse.de>
32286 PR tree-optimization/60115
32287 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
32288 MEM_REF handling. Properly verify that the accesses are not
32289 out of the objects bound.
32291 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32293 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
32296 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
32298 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
32299 proper constants and fix formatting.
32300 (possible_polymorphic_call_targets): Fix formatting.
32302 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
32303 Ilya Tocar <ilya.tocar@intel.com>
32305 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
32306 (_mm512_loadu_epi32): Renamed into...
32307 (_mm512_loadu_si512): This.
32308 (_mm512_storeu_epi32): Renamed into...
32309 (_mm512_storeu_si512): This.
32310 (_mm512_maskz_ceil_ps): Removed.
32311 (_mm512_maskz_ceil_pd): Ditto.
32312 (_mm512_maskz_floor_ps): Ditto.
32313 (_mm512_maskz_floor_pd): Ditto.
32314 (_mm512_floor_round_ps): Ditto.
32315 (_mm512_floor_round_pd): Ditto.
32316 (_mm512_ceil_round_ps): Ditto.
32317 (_mm512_ceil_round_pd): Ditto.
32318 (_mm512_mask_floor_round_ps): Ditto.
32319 (_mm512_mask_floor_round_pd): Ditto.
32320 (_mm512_mask_ceil_round_ps): Ditto.
32321 (_mm512_mask_ceil_round_pd): Ditto.
32322 (_mm512_maskz_floor_round_ps): Ditto.
32323 (_mm512_maskz_floor_round_pd): Ditto.
32324 (_mm512_maskz_ceil_round_ps): Ditto.
32325 (_mm512_maskz_ceil_round_pd): Ditto.
32326 (_mm512_expand_pd): Ditto.
32327 (_mm512_expand_ps): Ditto.
32328 * config/i386/i386.c (ix86_builtins): Remove
32329 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32330 (bdesc_args): Ditto.
32331 * config/i386/predicates.md (const1256_operand): New.
32332 (const_1_to_2_operand): Ditto.
32333 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32334 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32335 (*avx512pf_gatherpf<mode>sf): Ditto.
32336 (avx512pf_gatherpf<mode>df): Ditto.
32337 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32338 (*avx512pf_gatherpf<mode>df): Ditto.
32339 (avx512pf_scatterpf<mode>sf): Ditto.
32340 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32341 (*avx512pf_scatterpf<mode>sf): Ditto.
32342 (avx512pf_scatterpf<mode>df): Ditto.
32343 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32344 (*avx512pf_scatterpf<mode>df): Ditto.
32345 (avx512f_expand<mode>): Removed.
32346 (<shift_insn><mode>3<mask_name>): Change predicate type.
32348 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32350 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32351 not at the end of datarefs vector use ordered_remove to avoid
32352 reordering datarefs vector.
32355 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32356 mark local addressable non-static vars as GOVD_PRIVATE
32357 instead of GOVD_LOCAL.
32358 * omp-low.c (lower_omp_for): Move gimple_bind_vars
32359 and BLOCK_VARS of gimple_bind_block to new_stmt rather
32362 PR middle-end/60092
32363 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32364 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32365 assume_aligned or alloc_align attributes.
32366 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32367 arguments. Handle also assume_aligned and alloc_align attributes.
32368 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
32369 calls to functions with assume_aligned or alloc_align attributes.
32370 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32372 2014-02-08 Terry Guo <terry.guo@arm.com>
32374 * doc/invoke.texi: Document ARM -march=armv7e-m.
32376 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32378 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32379 flag on __cilkrts_rethrow builtin.
32382 * ipa-cp.c (determine_versionability): Fail at -O0
32383 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32384 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32387 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32390 * tree-inline.c (copy_forbidden): Fail for
32391 __attribute__((optimize (0))) functions.
32393 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32395 * varpool.c: Include pointer-set.h.
32396 (varpool_remove_unreferenced_decls): Variables in other partitions
32397 will not be output; be however careful to not lose information
32398 about partitioning.
32400 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32402 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32403 lookup in the vtable constructor.
32405 2014-02-07 Jeff Law <law@redhat.com>
32408 * config/m68k/m68k.md (ashldi_extsi): Turn into a
32409 define_insn_and_split.
32411 * ipa-inline.c (inline_small_functions): Fix typos.
32413 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32415 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
32416 (s390_can_use_return_insn): Declare.
32417 * config/s390/s390.h (EPILOGUE_USES): Define.
32418 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
32420 (s390_chunkify_start): Handle return JUMP_LABELs.
32421 (s390_early_mach): Emit a main_pool instruction on the entry edge.
32422 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
32423 (s390_can_use_return_insn): New functions.
32424 (s390_fix_long_loop_prediction): Handle conditional returns.
32425 (TARGET_SET_UP_BY_PROLOGUE): Define.
32426 * config/s390/s390.md (ANY_RETURN): New code iterator.
32427 (*creturn, *csimple_return, return, simple_return): New patterns.
32429 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32431 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32432 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
32433 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
32434 REG_CFA_RESTORE list when deciding not to restore a register.
32436 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32438 * config/s390/s390.c: Include tree-pass.h and context.h.
32439 (s390_early_mach): New function, split out from...
32440 (s390_emit_prologue): ...here.
32441 (pass_data_s390_early_mach): New pass structure.
32442 (pass_s390_early_mach): New class.
32443 (s390_option_override): Create and register early_mach pass.
32444 Move to end of file.
32446 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32448 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32449 to match for the exit block.
32451 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32453 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32454 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32455 Reject misaligned operands.
32457 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32459 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
32461 2014-02-07 Richard Biener <rguenther@suse.de>
32463 PR middle-end/60092
32464 * gimple-low.c (lower_builtin_posix_memalign): New function.
32465 (lower_stmt): Call it to lower posix_memalign in a way
32466 to make alignment info accessible.
32468 2014-02-07 Jakub Jelinek <jakub@redhat.com>
32471 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
32472 __builtin_setjmp_receiver.
32474 2014-02-07 Richard Biener <rguenther@suse.de>
32476 PR middle-end/60092
32477 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
32478 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
32479 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32480 Handle BUILT_IN_POSIX_MEMALIGN.
32481 (find_func_clobbers): Likewise.
32482 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32483 (call_may_clobber_ref_p_1): Likewise.
32485 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32488 * ipa-devirt.c (record_target_from_binfo): Remove overactive
32491 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32494 * lto-cgraph.c (lto_output_node): Use
32495 symtab_get_symbol_partitioning_class.
32496 (lto_output_varpool_node): likewise.
32497 (symtab_get_symbol_partitioning_class): Move here from
32498 lto/lto-partition.c
32499 * cgraph.h (symbol_partitioning_class): Likewise.
32500 (symtab_get_symbol_partitioning_class): Declare.
32502 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32504 * ggc.h (ggc_internal_cleared_alloc): New macro.
32505 * vec.h (vec_safe_copy): Handle memory stats.
32506 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
32507 * target-globals.c (save_target_globals): Likewise.
32509 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32512 * expr.c (emit_move_resolve_push): Export; be bit more selective
32513 on when to clear alias set.
32514 * expr.h (emit_move_resolve_push): Declare.
32515 * function.h (struct function): Add tail_call_marked.
32516 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
32517 * config/i386/i386-protos.h (ix86_expand_push): Remove.
32518 * config/i386/i386.md (TImode move expander): De not call
32520 (FP push expanders): Preserve memory attributes.
32521 * config/i386/sse.md (push<mode>1): Remove.
32522 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
32523 (ix86_expand_push): Remove.
32524 * config/i386/mmx.md (push<mode>1): Remove.
32526 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32528 PR rtl-optimization/60030
32529 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
32530 lopart with paradoxical subreg before shifting it up by hprec.
32532 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32534 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
32535 Remove extra newline at end of file.
32536 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
32537 (arm_issue_rate): Handle cortexa57.
32538 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
32539 (cortex-a57.cortex-a53): Likewise.
32541 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32544 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
32545 don't record in REG_FRAME_RELATED_EXPR registers not set in that
32547 (arm_expand_prologue): Adjust all callers.
32548 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
32549 info, registers also at the lowest numbered registers side. Use
32550 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
32554 * var-tracking.c (adjust_mems): Before adding a SET to
32555 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
32557 2014-02-06 Alan Modra <amodra@gmail.com>
32560 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
32561 change SDmode to DDmode when lra_in_progress.
32563 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32565 PR middle-end/59150
32566 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
32567 free_data_ref on the dr first, and before goto again also set dr
32568 to the next dr. For simd_lane_access, free old datarefs[i] before
32569 overwriting it. For get_vectype_for_scalar_type failure, don't
32570 free_data_ref if simd_lane_access.
32572 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
32575 * tree.h (opts_for_fn): New inline function.
32576 (opt_for_fn): Define.
32577 * config/i386/i386.c (ix86_function_regparm): Use
32578 opt_for_fn (decl, optimize) instead of optimize.
32580 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
32582 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
32583 for SYMBOL_REF in large memory model.
32585 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32587 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
32588 and crypto support.
32589 (cortex-a57): Likewise.
32590 (cortex-a57.cortex-a53): Likewise.
32592 2014-02-06 Yury Gribov <y.gribov@samsung.com>
32593 Kugan Vivekanandarajah <kuganv@linaro.org>
32595 * config/arm/arm.c (arm_vector_alignment_reachable): Check
32597 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
32599 2014-02-06 Richard Biener <rguenther@suse.de>
32601 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
32602 set_loop_copy and initialize_original_copy_tables.
32604 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
32606 * config/aarch64/aarch64-simd.md
32607 (aarch64_ashr_simddi): Change QI to SI.
32609 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
32610 Jakub Jelinek <jakub@redhat.com>
32612 PR middle-end/60013
32613 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
32616 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32618 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
32619 CODE_FOR_altivec_vpku[hw]um to
32620 CODE_FOR_altivec_vpku[hw]um_direct.
32621 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
32622 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
32623 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
32624 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
32626 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32628 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
32629 generation for -maltivec=be.
32630 (altivec_vsumsws): Simplify redundant test.
32632 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32634 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
32635 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
32636 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
32637 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
32638 gen_altivec_vpkuwum.
32639 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
32641 (altivec_vpks<VI_char>ss): Likewise.
32642 (altivec_vpks<VI_char>us): Likewise.
32643 (altivec_vpku<VI_char>us): Likewise.
32644 (altivec_vpku<VI_char>um): Likewise.
32645 (altivec_vpku<VI_char>um_direct): New (copy of
32646 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
32648 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
32649 target is little endian and -maltivec=be is not specified.
32650 (*altivec_vupkhs<VU_char>_direct): New (copy of
32651 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
32652 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
32653 target is little endian and -maltivec=be is not specified.
32654 (*altivec_vupkls<VU_char>_direct): New (copy of
32655 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
32656 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
32657 little endian and -maltivec=be is not specified.
32658 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
32659 little endian and -maltivec=be is not specified.
32661 2014-02-05 Richard Henderson <rth@redhat.com>
32664 * combine-stack-adj.c: Revert r206943.
32665 * sched-int.h (struct deps_desc): Add last_args_size.
32666 * sched-deps.c (init_deps): Initialize it.
32667 (sched_analyze_insn): Add OUTPUT dependencies between insns that
32668 contain REG_ARGS_SIZE notes.
32670 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
32672 * lto-cgraph.c (asm_nodes_output): Make global.
32673 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
32674 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
32675 (driver_handle_option): Handle OPT_fwpa.
32677 2014-02-05 Jakub Jelinek <jakub@redhat.com>
32680 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
32681 a comment typo and formatting issue. If odr_hash hasn't been
32682 created, return vNULL and set *completep to false.
32684 PR middle-end/57499
32685 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
32686 bb with no successors.
32688 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
32691 * doc/invoke.texi (-march): Clarify documentation for ARM.
32692 (-mtune): Likewise.
32695 2014-02-05 Richard Biener <rguenther@suse.de>
32697 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
32698 when not vectorizing because of too many alias checks.
32699 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32700 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
32702 2014-02-05 Nick Clifton <nickc@redhat.com>
32704 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
32705 accept extended registers in any mode when compiling for the MN10300.
32707 2014-02-05 Yury Gribov <y.gribov@samsung.com>
32709 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
32710 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
32711 sanitization attributes.
32712 (can_inline_edge_p): Likewise.
32713 (sanitize_attrs_match_for_inline_p): New function.
32715 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32717 * ipa-prop.c (detect_type_change): Shor circuit testing of
32718 type changes on THIS pointer.
32720 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
32723 * config/pa/pa.c (legitimize_tls_address): Return original address
32724 if not passed a SYMBOL_REF rtx.
32725 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
32727 (pa_emit_move_sequence): Simplify TLS source operands.
32728 (pa_legitimate_constant_p): Reject all TLS constants.
32729 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
32730 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
32732 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32734 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
32735 groups when we know they are controlled by LTO.
32736 * varasm.c (default_binds_local_p_1): If object is in other partition,
32737 it will be resolved locally.
32739 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
32741 * config/host-linux.c (linux_gt_pch_use_address): Don't
32742 use SSIZE_MAX because it is not always defined.
32744 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
32747 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
32748 threshold for pseudo splitting.
32749 (update_ebb_live_info): Process call argument hard registers and
32750 hard registers from insn definition too.
32751 (max_small_class_regs_num): New constant.
32752 (inherit_in_ebb): Update live hard regs through EBBs. Update
32753 reloads_num only for small register classes. Don't split for
32756 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
32759 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
32762 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32764 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
32765 visibility is safe.
32767 2014-02-04 Marek Polacek <polacek@redhat.com>
32769 * gdbinit.in (pel): Define.
32771 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
32773 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
32776 2014-02-04 Richard Biener <rguenther@suse.de>
32779 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
32780 in function context local.
32781 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
32782 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
32783 similar to LTO_imported_decl_ref.
32785 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32787 PR tree-optimization/60002
32788 * cgraphclones.c (build_function_decl_skip_args): Clear
32789 DECL_LANG_SPECIFIC.
32791 PR tree-optimization/60023
32792 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
32793 false to gsi_replace.
32794 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
32795 has been in some EH region and vec_stmt could throw, add
32796 vec_stmt into the same EH region.
32797 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
32798 has no lhs, ignore it.
32799 * internal-fn.c (expand_MASK_LOAD): Likewise.
32802 * tree-inline.c (copy_forbidden): Fail for
32803 __attribute__((optimize (0))) functions.
32806 * omp-low.c (simd_clone_struct_copy): If from->inbranch
32807 is set, copy one less argument.
32808 (expand_simd_clones): Don't subtract clone_info->inbranch
32809 from simd_clone_struct_alloc argument.
32811 PR rtl-optimization/57915
32812 * recog.c (simplify_while_replacing): If all unary/binary/relational
32813 operation arguments are constant, attempt to simplify those.
32815 PR middle-end/59261
32816 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
32817 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
32819 2014-02-04 Richard Biener <rguenther@suse.de>
32821 PR tree-optimization/60012
32822 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
32823 TBAA disambiguation to all DDRs.
32825 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32828 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
32829 (LINK_SPEC): Use it for -shared, -shared-libgcc.
32831 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32834 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
32836 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32838 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
32839 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
32841 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32844 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
32845 to figure out targets of polymorphic calls with known decl.
32846 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32847 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
32848 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
32849 (get_polymorphic_call_info): ... here.
32850 (get_polymorphic_call_info_from_invariant): New function.
32852 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32854 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
32855 lookup via vtable pointer; check for type consistency
32856 and turn inconsitent facts into UNREACHABLE.
32857 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32858 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
32859 type inconsistent querries; return UNREACHABLE instead.
32861 2014-02-03 Richard Henderson <rth@twiddle.net>
32864 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
32865 already processed this node.
32866 (normalize_one_pred_1): Pass along mark_set.
32867 (normalize_one_pred): Create and destroy a pointer_set_t.
32868 (normalize_one_pred_chain): Likewise.
32870 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
32872 PR gcov-profile/58602
32873 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
32875 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32878 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
32879 -fno-devirtualize; try to devirtualize by the knowledge of
32880 virtual table pointer given by aggregate propagation.
32881 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32882 (ipa_print_node_jump_functions): Dump also offset that
32883 is relevant for polymorphic calls.
32884 (determine_known_aggregate_parts): Add arg_type parameter; use it
32885 instead of determining the type from pointer type.
32886 (ipa_compute_jump_functions_for_edge): Update call of
32887 determine_known_aggregate_parts.
32888 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
32889 (gimple_get_virt_method_for_binfo): ... here; simplify using
32890 vtable_pointer_value_to_vtable.
32891 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
32892 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
32893 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
32894 (vtable_pointer_value_to_vtable): Break out from ...; handle also
32896 (vtable_pointer_value_to_binfo): ... here.
32897 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
32899 2014-02-03 Teresa Johnson <tejohnson@google.com>
32901 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
32902 redef of outer loop index variable.
32904 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
32908 * doc/extend.texi (Function Attributes): Typo.
32910 2014-02-03 Cong Hou <congh@google.com>
32912 PR tree-optimization/60000
32913 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
32914 if the vectorized statement is a store. A store statement can only
32915 appear at the end of pattern statements.
32917 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
32919 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
32920 (ix86_option_override_internal): Default long double to 64-bit for
32921 32-bit Bionic and to 128-bit for 64-bit Bionic.
32923 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
32924 TARGET_LONG_DOUBLE_128 is true.
32925 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
32927 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
32928 (mlong-double-64): Negate -mlong-double-128.
32929 (mlong-double-128): New option.
32931 * config/i386/i386-c.c (ix86_target_macros): Define
32932 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
32934 * doc/invoke.texi: Document -mlong-double-128.
32936 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
32938 PR rtl-optimization/60024
32939 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
32941 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
32943 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
32945 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
32947 PR rtl-optimization/57662
32948 * sel-sched.c (code_motion_path_driver): Do not mark already not
32949 existing blocks in the visiting bitmap.
32951 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
32953 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
32954 on the insn being emitted.
32956 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
32957 Will Deacon <will.deacon@arm.com>
32959 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
32961 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32963 * config/arm/arm-tables.opt: Regenerate.
32965 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32967 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
32968 for vector types other than V16QImode.
32969 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
32970 define_expand, and call altivec_expand_vec_perm_le when producing
32971 code with little endian element order.
32972 (*altivec_vperm_<mode>_internal): New insn having previous
32973 behavior of altivec_vperm_<mode>.
32974 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
32975 altivec_expand_vec_perm_le when producing code with little endian
32977 (*altivec_vperm_<mode>_uns_internal): New insn having previous
32978 behavior of altivec_vperm_<mode>_uns.
32980 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32982 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
32983 (altivec_vsumsws): Add handling for -maltivec=be with a little
32985 (altivec_vsumsws_direct): New.
32986 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
32987 gen_altivec_vsumsws.
32989 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
32991 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
32992 vtable_pointer_value_to_binfo): New functions.
32993 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
32994 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
32996 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
32998 * config/nios2/nios2.md (load_got_register): Initialize GOT
32999 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33000 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33002 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33004 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33005 preserverd by passthrough, do not propagate the type.
33007 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33009 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33010 (mips_atomic_assign_expand_fenv): New function.
33011 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33013 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33015 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33016 (__builtin_mips_set_fcsr): Likewise.
33017 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33018 MIPS_USI_FTYPE_VOID.
33019 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33020 (mips16_expand_set_fcsr): Likewise.
33021 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33022 (mips16_set_fcsr_stub): Likewise.
33023 (mips16_get_fcsr_one_only_stub): New class.
33024 (mips16_set_fcsr_one_only_stub): Likewise.
33025 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33026 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33027 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33028 (hard_float): New availability predicate.
33029 (mips_builtins): Add get_fcsr and set_fcsr.
33030 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33031 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33032 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33033 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33034 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33037 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33039 * config/mips/mips.c (mips_one_only_stub): New class.
33040 (mips_need_mips16_rdhwr_p): Replace with...
33041 (mips16_rdhwr_stub): ...this new variable.
33042 (mips16_stub_call_address): New function.
33043 (mips16_rdhwr_one_only_stub): New class.
33044 (mips_expand_thread_pointer): Use mips16_stub_call_address.
33045 (mips_output_mips16_rdhwr): Delete.
33046 (mips_finish_stub): New function.
33047 (mips_code_end): Use it to handle rdhwr stubs.
33049 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
33052 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33053 when calculating size of integer atomic types.
33055 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
33057 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33059 2014-02-01 Jakub Jelinek <jakub@redhat.com>
33061 PR tree-optimization/60003
33062 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33063 * profile.c (branch_prob): Use gimple_call_builtin_p
33064 to check for BUILT_IN_SETJMP_RECEIVER.
33065 * tree-inline.c (copy_bb): Call notice_special_calls.
33067 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
33070 * lra-constraints.c (process_alt_operands): Update reload_sum only
33073 2014-01-31 Richard Henderson <rth@redhat.com>
33075 PR middle-end/60004
33076 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
33077 until after else_eh is processed.
33079 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33081 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
33082 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
33083 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
33084 in smmintrin.h, remove them.
33085 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
33086 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
33087 * config/i386/i386.md (ROUND_SAE): Fix value.
33088 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
33089 (const48_operand): New.
33090 * config/i386/subst.md (round), (round_expand): Use
33091 const_4_or_8_to_11_operand.
33092 (round_saeonly), (round_saeonly_expand): Use const48_operand.
33094 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33096 * config/i386/constraints.md (Yk): Swap meaning with k.
33097 * config/i386/i386.md (movhi_internal): Change Yk to k.
33098 (movqi_internal): Ditto.
33099 (*k<logic><mode>): Ditto.
33102 (kandn<mode>): Ditto.
33103 (*<code>hi_1): Ditto.
33104 (*<code>qi_1): Ditto.
33105 (kxnor<mode>): Ditto.
33106 (kortestzhi): Ditto.
33107 (kortestchi): Ditto.
33109 (*one_cmplhi2_1): Ditto.
33110 (*one_cmplqi2_1): Ditto.
33111 * config/i386/sse.md (): Change k to Yk.
33112 (avx512f_load<mode>_mask): Ditto.
33113 (avx512f_blendm<mode>): Ditto.
33114 (avx512f_store<mode>_mask): Ditto.
33115 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
33116 (avx512f_storedqu<mode>_mask): Ditto.
33117 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
33119 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
33120 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
33121 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
33122 (avx512f_maskcmp<mode>3): Ditto.
33123 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
33124 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
33125 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
33126 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
33127 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
33128 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
33129 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
33130 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
33131 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
33132 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
33133 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
33134 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
33135 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
33136 (vec_extract_lo_<mode>_maskm): Ditto.
33137 (vec_extract_hi_<mode>_maskm): Ditto.
33138 (avx512f_vternlog<mode>_mask): Ditto.
33139 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
33140 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
33141 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
33142 (avx512f_<code>v8div16qi2_mask): Ditto.
33143 (avx512f_<code>v8div16qi2_mask_store): Ditto.
33144 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
33145 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
33146 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
33147 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
33148 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33149 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33150 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33151 (*avx512pf_scatterpf<mode>df_mask): Ditto.
33152 (avx512cd_maskb_vec_dupv8di): Ditto.
33153 (avx512cd_maskw_vec_dupv16si): Ditto.
33154 (avx512f_vpermi2var<mode>3_maskz): Ditto.
33155 (avx512f_vpermi2var<mode>3_mask): Ditto.
33156 (avx512f_vpermi2var<mode>3_mask): Ditto.
33157 (avx512f_vpermt2var<mode>3_maskz): Ditto.
33158 (*avx512f_gathersi<mode>): Ditto.
33159 (*avx512f_gathersi<mode>_2): Ditto.
33160 (*avx512f_gatherdi<mode>): Ditto.
33161 (*avx512f_gatherdi<mode>_2): Ditto.
33162 (*avx512f_scattersi<mode>): Ditto.
33163 (*avx512f_scatterdi<mode>): Ditto.
33164 (avx512f_compress<mode>_mask): Ditto.
33165 (avx512f_compressstore<mode>_mask): Ditto.
33166 (avx512f_expand<mode>_mask): Ditto.
33167 * config/i386/subst.md (mask): Change k to Yk.
33168 (mask_scalar_merge): Ditto.
33171 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
33173 * doc/extend.texi (Vector Extensions): Document ?: in C++.
33175 2014-01-31 Richard Biener <rguenther@suse.de>
33177 PR middle-end/59990
33178 * builtins.c (fold_builtin_memory_op): Make sure to not
33179 use a floating-point mode or a boolean or enumeral type for
33180 the copy operation.
33182 2014-01-30 DJ Delorie <dj@redhat.com>
33184 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
33185 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
33186 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
33187 whenever main() has an epilogue.
33189 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33191 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
33192 unused variable "field".
33193 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
33194 (vsx_mergeh_<mode>): Likewise.
33195 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
33196 (altivec_vmrghh): Likewise.
33197 (altivec_vmrghw): Likewise.
33198 (altivec_vmrglb): Likewise.
33199 (altivec_vmrglh): Likewise.
33200 (altivec_vmrglw): Likewise.
33201 (altivec_vspltb): Add missing uses.
33202 (altivec_vsplth): Likewise.
33203 (altivec_vspltw): Likewise.
33204 (altivec_vspltsf): Likewise.
33206 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33209 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
33210 frame related instructions.
33212 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
33214 PR rtl-optimization/59959
33215 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
33216 any reload of register whose subreg is invalid.
33218 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33220 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
33221 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
33222 Add missing return type - void.
33224 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33226 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
33227 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
33228 remove element index adjustment for endian (now handled in vsx.md
33230 (altivec_expand_vec_perm_const): Use
33231 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
33232 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
33233 (vsx_xxspltw_<mode>): Adjust element index for little endian.
33234 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
33235 define_expand and a new define_insn *altivec_vspltb_internal;
33236 adjust for -maltivec=be on a little endian target.
33237 (altivec_vspltb_direct): New.
33238 (altivec_vsplth): Divide into a define_expand and a new
33239 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
33240 little endian target.
33241 (altivec_vsplth_direct): New.
33242 (altivec_vspltw): Divide into a define_expand and a new
33243 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
33244 little endian target.
33245 (altivec_vspltw_direct): New.
33246 (altivec_vspltsf): Divide into a define_expand and a new
33247 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
33248 a little endian target.
33250 2014-01-30 Richard Biener <rguenther@suse.de>
33252 PR tree-optimization/59993
33253 * tree-ssa-forwprop.c (associate_pointerplus): Check we
33254 can propagate form the earlier stmt and avoid the transform
33255 when the intermediate result is needed.
33257 2014-01-30 Alangi Derick <alangiderick@gmail.com>
33259 * README.Portability: Fix typo.
33261 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
33263 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
33264 comparison_operator with ordered_comparison_operator.
33266 2014-01-30 Nick Clifton <nickc@redhat.com>
33268 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
33269 Rename to mn10300_store_multiple_regs.
33270 * config/mn10300/mn10300.c: Likewise.
33271 * config/mn10300/mn10300.md (store_movm): Fix typo: call
33272 store_multiple_regs.
33273 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
33274 Call mn10300_store_multiple_regs.
33276 2014-01-30 Nick Clifton <nickc@redhat.com>
33277 DJ Delorie <dj@redhat.com>
33279 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
33280 %fp 2 to keep registers after it properly word-aligned.
33281 (rl78_alloc_physical_registers_umul): Handle the case where both
33282 input operands are the same.
33284 2014-01-30 Richard Biener <rguenther@suse.de>
33286 PR tree-optimization/59903
33287 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
33290 2014-01-30 Jason Merrill <jason@redhat.com>
33293 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
33296 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
33298 2014-01-30 Richard Biener <rguenther@suse.de>
33300 PR tree-optimization/59951
33301 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
33303 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
33306 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
33307 SFmode to DFmode case.
33309 2014-01-29 DJ Delorie <dj@redhat.com>
33311 * config/msp430/msp430.opt (-minrt): New.
33312 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33314 (ENDFILE_SPEC): Likewise.
33316 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
33318 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33319 (estimate_function_body_sizes): Use it.
33321 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
33324 * dwarf2out.c (is_cxx_auto): New.
33325 (is_base_type): Use it.
33326 (gen_type_die_with_usage): Likewise.
33328 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33330 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
33331 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33332 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33333 -maltivec=be with LE targets.
33334 (vsx_mergeh_<mode>): Likewise.
33335 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33336 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33337 (altivec_vmrghb): Replace with define_expand and new
33338 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33339 (altivec_vmrghb_direct): New define_insn.
33340 (altivec_vmrghh): Replace with define_expand and new
33341 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33342 (altivec_vmrghh_direct): New define_insn.
33343 (altivec_vmrghw): Replace with define_expand and new
33344 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33345 (altivec_vmrghw_direct): New define_insn.
33346 (*altivec_vmrghsf): Adjust for endianness.
33347 (altivec_vmrglb): Replace with define_expand and new
33348 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33349 (altivec_vmrglb_direct): New define_insn.
33350 (altivec_vmrglh): Replace with define_expand and new
33351 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33352 (altivec_vmrglh_direct): New define_insn.
33353 (altivec_vmrglw): Replace with define_expand and new
33354 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33355 (altivec_vmrglw_direct): New define_insn.
33356 (*altivec_vmrglsf): Adjust for endianness.
33357 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33358 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33359 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33360 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33361 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33362 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33363 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33364 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33366 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
33368 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33369 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33372 2014-01-29 Richard Biener <rguenther@suse.de>
33374 PR tree-optimization/58742
33375 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33376 associate_pointerplus_align.
33377 (associate_pointerplus_diff): New function.
33378 (associate_pointerplus): Likewise. Call associate_pointerplus_align
33379 and associate_pointerplus_diff.
33381 2014-01-29 Richard Biener <rguenther@suse.de>
33383 * lto-streamer.h (LTO_major_version): Bump to 3.
33384 (LTO_minor_version): Reset to 0.
33386 2014-01-29 Renlin Li <Renlin.Li@arm.com>
33388 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33389 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33390 (arm_file_start): Generate correct asm header for armv7ve.
33391 * config/arm/bpabi.h: Add multilib support for armv7ve.
33392 * config/arm/driver-arm.c: Change the architectures of cortex-a7
33393 and cortex-a15 to armv7ve.
33394 * config/arm/t-aprofile: Add multilib support for armv7ve.
33395 * doc/invoke.texi: Document -march=armv7ve.
33397 2014-01-29 Richard Biener <rguenther@suse.de>
33399 PR tree-optimization/58742
33400 * tree-ssa-forwprop.c (associate_plusminus): Return true
33401 if we changed sth, defer EH cleanup to ...
33402 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
33403 (simplify_mult): New function.
33405 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33407 PR middle-end/59917
33408 PR tree-optimization/59920
33409 * tree.c (build_common_builtin_nodes): Remove
33410 __builtin_setjmp_dispatcher initialization.
33411 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
33412 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
33413 instead of gsi_after_labels + manually skipping debug stmts.
33414 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
33415 ignore bbs with IFN_ABNORMAL_DISPATCHER.
33416 * tree-inline.c (copy_edges_for_bb): Remove
33417 can_make_abnormal_goto argument, instead add abnormal_goto_dest
33418 argument. Ignore computed_goto_p stmts. Don't call
33419 make_abnormal_goto_edges. If a call might need abnormal edges
33420 for non-local gotos, see if it already has an edge to
33421 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
33422 with true argument, don't do anything then, otherwise add
33423 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
33424 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
33426 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
33427 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33428 (lower_stmt): Don't set data->calls_builtin_setjmp.
33429 (lower_builtin_setjmp): Adjust comment.
33430 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33431 * tree-cfg.c (found_computed_goto): Remove.
33432 (factor_computed_gotos): Remove.
33433 (make_goto_expr_edges): Return bool, true for computed gotos.
33434 Don't call make_abnormal_goto_edges.
33435 (build_gimple_cfg): Don't set found_computed_goto, don't call
33436 factor_computed_gotos.
33437 (computed_goto_p): No longer static.
33438 (make_blocks): Don't set found_computed_goto.
33439 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33440 (make_edges): If make_goto_expr_edges returns true, push bb
33441 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33442 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33443 vector. Record mapping between bbs and OpenMP regions if there
33444 are any, adjust make_gimple_omp_edges caller. Call
33445 handle_abnormal_edges.
33446 (make_abnormal_goto_edges): Remove.
33447 * tree-cfg.h (make_abnormal_goto_edges): Remove.
33448 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33449 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33450 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33451 * internal-fn.def (ABNORMAL_DISPATCHER): New.
33452 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33453 filling *region also set *region_idx to (*region)->entry->index.
33456 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
33457 For REGs set ORIGINAL_REGNO.
33459 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
33461 * doc/md.texi: Mention that a target shouldn't implement
33462 vec_widen_(s|u)mul_even/odd pair if it is less efficient
33465 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33467 PR tree-optimization/59594
33468 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
33469 a copy of the datarefs vector rather than the vector itself.
33471 2014-01-28 Jason Merrill <jason@redhat.com>
33474 * dwarf2out.c (auto_die): New static.
33475 (gen_type_die_with_usage): Handle C++1y 'auto'.
33476 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
33479 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
33482 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
33483 (SPEC_X32): Likewise.
33484 (SPEC_64): Likewise.
33485 * config/i386/i386.c (ix86_option_override_internal): Turn off
33486 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
33488 (x86_file_start): Output .code16gcc for TARGET_16BIT.
33489 * config/i386/i386.h (TARGET_16BIT): New macro.
33490 (TARGET_16BIT_P): Likewise.
33491 * config/i386/i386.opt: Add m16.
33492 * doc/invoke.texi: Document -m16.
33494 2014-01-28 Jakub Jelinek <jakub@redhat.com>
33496 PR preprocessor/59935
33497 * input.c (location_get_source_line): Bail out on when line number
33498 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
33500 2014-01-28 Richard Biener <rguenther@suse.de>
33502 PR tree-optimization/58742
33503 * tree-ssa-forwprop.c (associate_plusminus): Handle
33504 pointer subtraction of the form (T)(P + A) - (T)P.
33506 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33508 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
33511 2014-01-28 Richard Biener <rguenther@suse.de>
33514 2014-01-28 Richard Biener <rguenther@suse.de>
33516 PR rtl-optimization/45364
33517 PR rtl-optimization/59890
33518 * var-tracking.c (local_get_addr_clear_given_value): Handle
33519 already cleared slot.
33520 (val_reset): Handle not allocated local_get_addr_cache.
33521 (vt_find_locations): Use post-order on the inverted CFG.
33523 2014-01-28 Richard Biener <rguenther@suse.de>
33525 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
33527 2014-01-28 Richard Biener <rguenther@suse.de>
33529 PR rtl-optimization/45364
33530 PR rtl-optimization/59890
33531 * var-tracking.c (local_get_addr_clear_given_value): Handle
33532 already cleared slot.
33533 (val_reset): Handle not allocated local_get_addr_cache.
33534 (vt_find_locations): Use post-order on the inverted CFG.
33536 2014-01-28 Alan Modra <amodra@gmail.com>
33538 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
33539 * configure.ac <recursive call for build != host>: Define
33540 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
33541 and LD_FOR_BUILD too.
33542 * configure: Regenerate.
33544 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
33546 * config/i386/i386.c (get_builtin_code_for_version): Separate
33547 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
33548 Broadwell from Haswell.
33550 2014-01-27 Steve Ellcey <sellcey@mips.com>
33552 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33553 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
33554 * config/mips/mips.c (mips_option_override): Change setting
33556 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
33557 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
33558 Change from Mask to Var.
33560 2014-01-27 Jeff Law <law@redhat.com>
33562 * ipa-inline.c (inline_small_functions): Fix typo.
33564 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
33566 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
33567 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
33568 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
33569 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
33570 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
33571 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
33572 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
33573 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
33574 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
33575 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
33576 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
33577 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
33578 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
33579 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
33580 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
33581 (_mm512_storeu_epi64): Ditto.
33582 (_mm512_cmpge_epi32_mask): Ditto.
33583 (_mm512_cmpge_epu32_mask): Ditto.
33584 (_mm512_cmpge_epi64_mask): Ditto.
33585 (_mm512_cmpge_epu64_mask): Ditto.
33586 (_mm512_cmple_epi32_mask): Ditto.
33587 (_mm512_cmple_epu32_mask): Ditto.
33588 (_mm512_cmple_epi64_mask): Ditto.
33589 (_mm512_cmple_epu64_mask): Ditto.
33590 (_mm512_cmplt_epi32_mask): Ditto.
33591 (_mm512_cmplt_epu32_mask): Ditto.
33592 (_mm512_cmplt_epi64_mask): Ditto.
33593 (_mm512_cmplt_epu64_mask): Ditto.
33594 (_mm512_cmpneq_epi32_mask): Ditto.
33595 (_mm512_cmpneq_epu32_mask): Ditto.
33596 (_mm512_cmpneq_epi64_mask): Ditto.
33597 (_mm512_cmpneq_epu64_mask): Ditto.
33598 (_mm512_expand_pd): Ditto.
33599 (_mm512_expand_ps): Ditto.
33600 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
33601 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
33602 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
33603 * config/i386/i386.c (ix86_builtins): Add
33604 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
33605 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
33606 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
33607 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
33608 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
33609 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
33610 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
33611 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
33612 IX86_BUILTIN_PMOVUSQW512_MEM.
33613 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
33614 __builtin_ia32_pmovsqd512mem_mask,
33615 __builtin_ia32_pmovqd512mem_mask,
33616 __builtin_ia32_pmovusqw512mem_mask,
33617 __builtin_ia32_pmovsqw512mem_mask,
33618 __builtin_ia32_pmovqw512mem_mask,
33619 __builtin_ia32_pmovusdw512mem_mask,
33620 __builtin_ia32_pmovsdw512mem_mask,
33621 __builtin_ia32_pmovdw512mem_mask,
33622 __builtin_ia32_pmovqb512mem_mask,
33623 __builtin_ia32_pmovusqb512mem_mask,
33624 __builtin_ia32_pmovsqb512mem_mask,
33625 __builtin_ia32_pmovusdb512mem_mask,
33626 __builtin_ia32_pmovsdb512mem_mask,
33627 __builtin_ia32_pmovdb512mem_mask.
33628 (bdesc_args): Add __builtin_ia32_expanddf512,
33629 __builtin_ia32_expandsf512.
33630 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
33631 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
33632 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
33633 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
33634 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
33635 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
33636 (avx512f_<code>v8div16qi2_mask_store): This.
33637 (avx512f_expand<mode>): New.
33639 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
33641 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
33643 (_mm512_mask_prefetch_i64gather_pd): Ditto.
33644 (_mm512_prefetch_i32scatter_pd): Ditto.
33645 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
33646 (_mm512_prefetch_i64scatter_pd): Ditto.
33647 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
33648 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
33649 (_mm512_mask_prefetch_i64gather_ps): Ditto.
33650 (_mm512_prefetch_i32scatter_ps): Ditto.
33651 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
33652 (_mm512_prefetch_i64scatter_ps): Ditto.
33653 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
33654 * config/i386/i386-builtin-types.def: Define
33655 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
33656 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
33657 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
33658 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
33659 IX86_BUILTIN_SCATTERPFQPD.
33660 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
33661 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
33662 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
33663 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
33664 __builtin_ia32_scatterpfqps.
33665 (ix86_expand_builtin): Expand new built-ins.
33666 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
33667 fix memory access data type.
33668 (*avx512pf_gatherpf<mode>_mask): Ditto.
33669 (*avx512pf_gatherpf<mode>): Ditto.
33670 (avx512pf_scatterpf<mode>): Ditto.
33671 (*avx512pf_scatterpf<mode>_mask): Ditto.
33672 (*avx512pf_scatterpf<mode>): Ditto.
33673 (GATHER_SCATTER_SF_MEM_MODE): New.
33674 (avx512pf_gatherpf<mode>df): Ditto.
33675 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33676 (*avx512pf_scatterpf<mode>df): Ditto.
33678 2014-01-27 Jakub Jelinek <jakub@redhat.com>
33681 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
33682 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
33685 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
33687 * common/config/arm/arm-common.c
33688 (arm_rewrite_mcpu): Handle multiple names.
33690 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33692 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
33694 * gimple-builder.h (create_gimple_tmp): Delete.
33696 2014-01-27 Christian Bruel <christian.bruel@st.com>
33698 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
33701 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
33703 * config/pa/pa.md (call): Generate indirect long calls to non-local
33704 functions when outputing 32-bit code.
33705 (call_value): Likewise except for special call to buggy powf function.
33707 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
33708 portable runtime and PIC indirect calls.
33709 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
33710 and PIC call sequences. Use ldo instead of blr to set return register
33711 in PIC call sequence.
33713 2014-01-25 Walter Lee <walt@tilera.com>
33715 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
33716 avoid clobbering a live register.
33718 2014-01-25 Walter Lee <walt@tilera.com>
33720 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
33721 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
33722 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
33723 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
33725 2014-01-25 Walter Lee <walt@tilera.com>
33727 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
33728 arguments on even registers.
33729 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
33731 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
33732 (BIGGEST_ALIGNMENT): Ditto.
33733 (BIGGEST_FIELD_ALIGNMENT): Ditto.
33735 2014-01-25 Walter Lee <walt@tilera.com>
33737 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
33738 insns before bundling.
33739 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
33741 2014-01-25 Walter Lee <walt@tilera.com>
33743 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
33744 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
33745 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
33747 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
33749 * config/mips/constraints.md (kl): Delete.
33750 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
33751 define expands, using...
33752 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
33753 instructions for MIPS16.
33754 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
33755 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
33757 2014-01-25 Walter Lee <walt@tilera.com>
33759 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
33763 2014-01-25 Walter Lee <walt@tilera.com>
33765 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
33766 (TARGET_EXPAND_TO_RTL_HOOK): Define.
33768 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
33770 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
33773 2014-01-25 Jakub Jelinek <jakub@redhat.com>
33775 * print-rtl.c (in_call_function_usage): New var.
33776 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
33777 EXPR_LIST mode as mode and not as reg note name.
33779 PR middle-end/59561
33780 * cfgloopmanip.c (copy_loop_info): If
33781 loop->warned_aggressive_loop_optimizations, make sure
33782 the flag is set in target loop too.
33784 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
33786 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
33788 * builtins.def: Likewise.
33789 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
33790 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
33791 * ira.c (ira_setup_eliminable_regset): Likewise.
33792 * omp-low.c (gate_expand_omp): Likewise.
33793 (execute_lower_omp): Likewise.
33794 (diagnose_sb_0): Likewise.
33795 (gate_diagnose_omp_blocks): Likewise.
33796 (simd_clone_clauses_extract): Likewise.
33799 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33801 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
33802 correction for little endian...
33803 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
33806 2014-01-24 Jeff Law <law@redhat.com>
33808 PR tree-optimization/59919
33809 * tree-vrp.c (find_assert_locations_1): Do not register asserts
33810 for non-returning calls.
33812 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
33814 * common/config/aarch64/aarch64-common.c
33815 (aarch64_rewrite_mcpu): Handle multiple names.
33816 * config/aarch64/aarch64.h
33817 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33819 2014-01-24 Dodji Seketeli <dodji@redhat.com>
33821 * input.c (add_file_to_cache_tab): Handle the case where fopen
33824 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
33827 * config/i386/i386.md (pushsf splitter): Get stack adjustment
33828 from push operand if code of push isn't PRE_DEC.
33830 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
33833 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
33834 -mquad-memory-atomic. Update -mquad-memory documentation to say
33835 it is only used for non-atomic loads/stores.
33837 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
33838 -mquad-memory or -mquad-memory-atomic switches.
33840 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
33841 -mquad-memory-atomic to ISA 2.07 support.
33843 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
33844 to separate support of normal quad word memory operations (ldq, stq)
33845 from the atomic quad word memory operations.
33847 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
33848 support to separate non-atomic quad word operations from atomic
33849 quad word operations. Disable non-atomic quad word operations in
33850 little endian mode so that we don't have to swap words after the
33851 load and before the store.
33852 (quad_load_store_p): Add comment about atomic quad word support.
33853 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
33854 options printed with -mdebug=reg.
33856 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
33857 -mquad-memory-atomic as the test for whether we have quad word
33858 atomic instructions.
33859 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
33860 or -mp8-vector are used, allow byte/half-word atomic operations.
33862 * config/rs6000/sync.md (load_lockedti): Insure that the address
33863 is a proper indexed or indirect address for the lqarx instruction.
33864 On little endian systems, swap the hi/lo registers after the lqarx
33866 (load_lockedpti): Use indexed_or_indirect_operand predicate to
33867 insure the address is valid for the lqarx instruction.
33868 (store_conditionalti): Insure that the address is a proper indexed
33869 or indirect address for the stqcrx. instruction. On little endian
33870 systems, swap the hi/lo registers before doing the stqcrx.
33872 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
33873 insure the address is valid for the stqcrx. instruction.
33875 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
33876 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
33877 type of quad memory support is available.
33879 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
33881 PR regression/59915
33882 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
33883 there is a danger of looping.
33885 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
33887 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
33888 force flag_ira_loop_pressure if set via command line.
33890 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
33892 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
33893 (ashr_simd): New builtin handling DI mode.
33894 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
33895 (aarch64_sshr_simddi): New match pattern.
33896 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
33897 (vshrd_n_s64): Likewise.
33898 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
33900 2014-01-23 Nick Clifton <nickc@redhat.com>
33902 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
33903 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
33904 favour of mcu specific scripts.
33905 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
33908 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
33909 Alex Velenko <Alex.Velenko@arm.com>
33911 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
33912 (vaddv_s16): Likewise.
33913 (vaddv_s32): Likewise.
33914 (vaddv_u8): Likewise.
33915 (vaddv_u16): Likewise.
33916 (vaddv_u32): Likewise.
33917 (vaddvq_s8): Likewise.
33918 (vaddvq_s16): Likewise.
33919 (vaddvq_s32): Likewise.
33920 (vaddvq_s64): Likewise.
33921 (vaddvq_u8): Likewise.
33922 (vaddvq_u16): Likewise.
33923 (vaddvq_u32): Likewise.
33924 (vaddvq_u64): Likewise.
33925 (vaddv_f32): Likewise.
33926 (vaddvq_f32): Likewise.
33927 (vaddvq_f64): Likewise.
33928 (vmaxv_f32): Likewise.
33929 (vmaxv_s8): Likewise.
33930 (vmaxv_s16): Likewise.
33931 (vmaxv_s32): Likewise.
33932 (vmaxv_u8): Likewise.
33933 (vmaxv_u16): Likewise.
33934 (vmaxv_u32): Likewise.
33935 (vmaxvq_f32): Likewise.
33936 (vmaxvq_f64): Likewise.
33937 (vmaxvq_s8): Likewise.
33938 (vmaxvq_s16): Likewise.
33939 (vmaxvq_s32): Likewise.
33940 (vmaxvq_u8): Likewise.
33941 (vmaxvq_u16): Likewise.
33942 (vmaxvq_u32): Likewise.
33943 (vmaxnmv_f32): Likewise.
33944 (vmaxnmvq_f32): Likewise.
33945 (vmaxnmvq_f64): Likewise.
33946 (vminv_f32): Likewise.
33947 (vminv_s8): Likewise.
33948 (vminv_s16): Likewise.
33949 (vminv_s32): Likewise.
33950 (vminv_u8): Likewise.
33951 (vminv_u16): Likewise.
33952 (vminv_u32): Likewise.
33953 (vminvq_f32): Likewise.
33954 (vminvq_f64): Likewise.
33955 (vminvq_s8): Likewise.
33956 (vminvq_s16): Likewise.
33957 (vminvq_s32): Likewise.
33958 (vminvq_u8): Likewise.
33959 (vminvq_u16): Likewise.
33960 (vminvq_u32): Likewise.
33961 (vminnmv_f32): Likewise.
33962 (vminnmvq_f32): Likewise.
33963 (vminnmvq_f64): Likewise.
33965 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
33967 * config/aarch64/aarch64-simd.md
33968 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
33969 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
33970 (*aarch64_mul3_elt<mode>): Likewise.
33971 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
33972 (*aarch64_mul3_elt_to_64v2df): Likewise.
33973 (*aarch64_mla_elt<mode>): Likewise.
33974 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
33975 (*aarch64_mls_elt<mode>): Likewise.
33976 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
33977 (*aarch64_fma4_elt<mode>): Likewise.
33978 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
33979 (*aarch64_fma4_elt_to_64v2df): Likewise.
33980 (*aarch64_fnma4_elt<mode>): Likewise.
33981 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
33982 (*aarch64_fnma4_elt_to_64v2df): Likewise.
33983 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
33984 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
33985 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
33986 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
33987 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
33988 (aarch64_sqdmull_lane<mode>_internal): Likewise.
33989 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
33991 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
33993 * config/aarch64/aarch64-simd.md
33994 (aarch64_be_checked_get_lane<mode>): New define_expand.
33995 * config/aarch64/aarch64-simd-builtins.def
33996 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
33997 New builtin definition.
33998 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
33999 Use new safe be builtin.
34001 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34003 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34005 (aarch64_be_st1<mode>): Likewise.
34006 (aarch_ld1<VALL:mode>): Define_expand modified.
34007 (aarch_st1<VALL:mode>): Likewise.
34008 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34009 (UNSPEC_ST1): Likewise.
34011 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
34013 * config/microblaze/microblaze.md: Add trap insn and attribute
34015 2014-01-23 Dodji Seketeli <dodji@redhat.com>
34017 PR preprocessor/58580
34018 * input.h (location_get_source_line): Take an additional line_size
34020 (void diagnostics_file_cache_fini): Declare new function.
34021 * input.c (struct fcache): New type.
34022 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34023 New static constants.
34024 (diagnostic_file_cache_init, total_lines_num)
34025 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34026 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34027 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34028 (get_next_line, read_next_line, goto_next_line, read_line_num):
34029 New static function definitions.
34030 (diagnostic_file_cache_fini): New function.
34031 (location_get_source_line): Take an additional output line_len
34032 parameter. Re-write using lookup_or_add_file_to_cache_tab and
34034 * diagnostic.c (diagnostic_finish): Call
34035 diagnostic_file_cache_fini.
34036 (adjust_line): Take an additional input parameter for the length
34037 of the line, rather than calculating it with strlen.
34038 (diagnostic_show_locus): Adjust the use of
34039 location_get_source_line and adjust_line with respect to their new
34040 signature. While displaying a line now, do not stop at the first
34041 null byte. Rather, display the zero byte as a space and keep
34042 going until we reach the size of the line.
34043 * Makefile.in: Add vec.o to OBJS-libcommon
34045 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34046 Ilya Tocar <ilya.tocar@intel.com>
34048 * config/i386/avx512fintrin.h (_mm512_kmov): New.
34049 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34050 (__builtin_ia32_kmov16): Ditto.
34051 * config/i386/i386.md (UNSPEC_KMOV): New.
34054 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34056 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34057 (_mm512_storeu_si512): Ditto.
34059 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
34062 * rtl.h (get_referenced_operands): Declare.
34063 * recog.c (get_referenced_operands): New function.
34064 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
34065 operands have been referenced when recording LO_SUM references.
34067 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
34069 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
34071 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34073 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
34074 Enable for generic and recent AMD targets.
34076 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34078 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
34079 ARG_SIZE note when adjustment was eliminated.
34081 2014-01-22 Jeff Law <law@redhat.com>
34083 PR tree-optimization/59597
34084 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
34085 in file. Accept new argument REGISTERING and use it to modify
34086 dump output appropriately.
34087 (register_jump_thread): Corresponding changes.
34088 (mark_threaded_blocks): Reinstate code to cancel unprofitable
34089 thread paths involving joiner blocks. Add code to dump cancelled
34090 jump threading paths.
34092 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
34094 PR rtl-optimization/59477
34095 * lra-constraints.c (inherit_in_ebb): Process call for living hard
34096 regs. Update reloads_num and potential_reload_hard_regs for all insns.
34098 2014-01-22 Tom Tromey <tromey@redhat.com>
34100 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
34102 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
34104 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34106 PR rtl-optimization/59896
34107 * lra-constraints.c (process_alt_operands): Check unused note for
34108 matched operands of insn with no output reloads.
34110 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
34112 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
34113 (mips_move_from_gpr_cost): Likewise.
34115 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34117 PR rtl-optimization/59858
34118 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
34119 ira_class_hard_regs_num.
34120 (process_alt_operands): Increase reject for dying matched operand.
34122 2014-01-21 Jakub Jelinek <jakub@redhat.com>
34125 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
34126 smaller than size, perform several stores or loads and stores
34127 at dst + count - size to store or copy all of size bytes, rather
34128 than just last modesize bytes.
34130 2014-01-20 DJ Delorie <dj@redhat.com>
34132 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
34133 that CLOBBERs are REGs before propogating their values.
34135 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
34137 PR middle-end/59789
34138 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
34139 (cgraph_inline_failed_type): New function.
34140 * cgraph.h (DEFCIFCODE): Add type.
34141 (cgraph_inline_failed_type_t): New enum.
34142 (cgraph_inline_failed_type): New prototype.
34143 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
34144 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34145 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
34146 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
34147 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
34148 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
34149 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
34150 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
34151 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
34152 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
34153 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
34154 OPTIMIZATION_MISMATCH.
34155 * tree-inline.c (expand_call_inline): Emit errors during
34156 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
34158 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34161 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
34162 mode attribute in insn output.
34164 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
34166 * output.h (output_constant): Delete.
34167 * varasm.c (output_constant): Make private.
34169 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
34171 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
34173 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34175 PR middle-end/59860
34176 * tree.h (fold_builtin_strcat): New prototype.
34177 * builtins.c (fold_builtin_strcat): No longer static. Add len
34178 argument, if non-NULL, don't call c_strlen. Optimize
34179 directly into __builtin_memcpy instead of __builtin_strcpy.
34180 (fold_builtin_2): Adjust fold_builtin_strcat caller.
34181 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
34183 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34185 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34186 for SImode_address_operand operands, having only a REG argument.
34188 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
34190 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34191 loader name using mbig-endian.
34192 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
34194 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34196 * doc/invoke.texi (-march): Clarify documentation for AArch64.
34197 (-mtune): Likewise.
34200 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
34202 * config/aarch64/aarch64-protos.h
34203 (aarch64_cannot_change_mode_class_ptr): Declare.
34204 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
34205 aarch64_cannot_change_mode_class_ptr): New.
34206 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
34207 backend hook aarch64_cannot_change_mode_class.
34209 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34211 * common/config/aarch64/aarch64-common.c
34212 (aarch64_handle_option): Don't handle any option order logic here.
34213 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
34214 selected_cpu, warn on architecture version mismatch.
34215 (aarch64_override_options): Fix parsing order for option strings.
34217 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34218 Iain Sandoe <iain@codesourcery.com>
34221 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
34222 warning. Amend comment to reflect current functionality.
34224 2014-01-20 Richard Biener <rguenther@suse.de>
34226 PR middle-end/59860
34227 * builtins.c (fold_builtin_strcat): Remove case better handled
34228 by tree-ssa-strlen.c.
34230 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
34232 * config/aarch64/aarch64.opt
34233 (mcpu, march, mtune): Make case-insensitive.
34235 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34238 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34239 if operands[1] is a REG or ZERO_EXTEND of a REG.
34241 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
34243 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
34245 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
34247 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
34248 long non-pic millicode calls.
34250 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34252 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
34254 2014-01-19 Kito Cheng <kito@0xlab.org>
34256 * builtins.c (expand_movstr): Check movstr expand done or fail.
34258 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34259 H.J. Lu <hongjiu.lu@intel.com>
34262 * config/i386/i386.md (*lea<mode>): Zero-extend return register
34263 to DImode for zero-extended addresses.
34265 2014-01-19 Jakub Jelinek <jakub@redhat.com>
34267 PR rtl-optimization/57763
34268 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
34269 on the new indirect jump_insn and increment LABEL_NUSES (label).
34271 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
34275 * config.gcc (x86_archs): New variable.
34276 (x86_64_archs): Likewise.
34277 (x86_cpus): Likewise.
34278 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
34279 --with-arch/--with-cpu= options.
34280 Support --with-arch=/--with-cpu={nehalem,westmere,
34281 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
34283 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34285 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
34286 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
34288 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34290 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
34292 2014-01-18 Jakub Jelinek <jakub@redhat.com>
34295 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
34296 clear cpp_get_options (parse_in)->warn_unused_macros for
34297 ix86_target_macros_internal with cpp_define.
34299 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
34301 * jump.c (delete_related_insns): Keep (use (insn))s.
34302 * reorg.c (redundant_insn): Check for barriers too.
34304 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34306 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
34308 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
34310 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
34311 call to $$dyncall when TARGET_LONG_CALLS is true.
34313 2014-01-17 Jeff Law <law@redhat.com>
34315 * ree.c (combine_set_extension): Temporarily disable test for
34316 changing number of hard registers.
34318 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34320 PR middle-end/58125
34321 * ipa-inline-analysis.c (inline_free_summary):
34322 Do not free summary of aliases.
34324 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34326 PR middle-end/59706
34327 * gimplify.c (gimplify_expr): Use create_tmp_var
34328 instead of create_tmp_var_raw. If cond doesn't have
34329 integral type, don't add the IFN_ANNOTATE builtin at all.
34331 2014-01-17 Martin Jambor <mjambor@suse.cz>
34334 * ipa-cp.c (prev_edge_clone): New variable.
34335 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34336 Also resize prev_edge_clone vector.
34337 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34338 (ipcp_edge_removal_hook): New function.
34339 (ipcp_driver): Register ipcp_edge_removal_hook.
34341 2014-01-17 Andrew Pinski <apinski@cavium.com>
34342 Steve Ellcey <sellcey@mips.com>
34345 * config/mips/mips.c (mips_print_operand): Check operand mode instead
34348 2014-01-17 Jeff Law <law@redhat.com>
34350 PR middle-end/57904
34351 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34352 so that pass_ccp runs first.
34354 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34356 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34357 (ix86_adjust_cost): Use !TARGET_XXX.
34358 (do_reorder_for_imul): Likewise.
34359 (swap_top_of_ready_list): Likewise.
34360 (ix86_sched_reorder): Likewise.
34362 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34364 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34365 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
34366 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
34367 (intel_memset): New. Duplicate slm_memset.
34368 (intel_cost): New. Duplicate slm_cost.
34369 (m_INTEL): New macro.
34370 (processor_target_table): Add "intel".
34371 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34372 with PROCESSOR_INTEL for "intel".
34373 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
34374 PROCESSOR_SILVERMONT.
34375 (ix86_issue_rate): Likewise.
34376 (ix86_adjust_cost): Likewise.
34377 (ia32_multipass_dfa_lookahead): Likewise.
34378 (swap_top_of_ready_list): Likewise.
34379 (ix86_sched_reorder): Likewise.
34380 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34381 instead of TARGET_OPT_AGU.
34382 * config/i386/i386.h (TARGET_INTEL): New.
34383 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34384 (processor_type): Add PROCESSOR_INTEL.
34385 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34386 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34388 2014-01-17 Marek Polacek <polacek@redhat.com>
34391 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34394 2014-01-17 Richard Biener <rguenther@suse.de>
34396 PR tree-optimization/46590
34397 * opts.c (default_options_table): Add entries for
34398 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34399 all enabled at -O1 but not for -Og.
34400 * common.opt (fbranch-count-reg): Remove Init(1).
34401 (fmove-loop-invariants): Likewise.
34402 (ftree-pta): Likewise.
34404 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34406 * config/i386/i386.c (ix86_data_alignment): For compatibility with
34407 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34408 decls to at least the GCC 4.8 used alignments.
34411 * tree-nested.c (convert_nonlocal_reference_stmt,
34412 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
34413 of GIMPLE_BIND stmts, adjust associated decls.
34415 2014-01-17 Richard Biener <rguenther@suse.de>
34417 PR tree-optimization/46590
34418 * vec.h (vec<>::bseach): New member function implementing
34419 binary search according to C89 bsearch.
34420 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
34421 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
34422 bitmap pointer again. Make accesses_in_loop a flat array.
34423 (mem_ref_obstack): New global.
34424 (outermost_indep_loop): Adjust for mem_ref->stored changes.
34425 (mark_ref_stored): Likewise.
34426 (ref_indep_loop_p_2): Likewise.
34427 (set_ref_stored_in_loop): New helper function.
34428 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34429 (memref_free): Adjust.
34430 (record_mem_ref_loc): Simplify.
34431 (gather_mem_refs_stmt): Adjust.
34432 (sort_locs_in_loop_postorder_cmp): New function.
34433 (analyze_memory_references): Sort accesses_in_loop after
34434 loop postorder number.
34435 (find_ref_loc_in_loop_cmp): New function.
34436 (for_all_locs_in_loop): Find relevant cluster of locs in
34437 accesses_in_loop and iterate without recursion.
34438 (execute_sm): Avoid uninit warning.
34439 (struct ref_always_accessed): Simplify.
34440 (ref_always_accessed::operator ()): Likewise.
34441 (ref_always_accessed_p): Likewise.
34442 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34443 loop postorder numbers here.
34444 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34447 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34450 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34451 on decls for which assemble_alias has been called.
34453 2014-01-17 Nick Clifton <nickc@redhat.com>
34455 * config/msp430/msp430.opt: (mcpu): New option.
34456 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
34457 (msp430_option_override): Parse target_cpu. If the MCU name
34458 matches a generic string, clear target_mcu.
34459 (msp430_attr): Allow numeric interrupt values up to 63.
34460 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
34461 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
34463 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
34465 * config/msp430/msp430.md (popm): Use %J rather than %I.
34466 (addsi3): Use msp430_nonimmediate_operand for operand 2.
34467 (addhi_cy_i): Use immediate_operand for operand 2.
34468 * doc/invoke.texi: Document -mcpu option.
34470 2014-01-17 Richard Biener <rguenther@suse.de>
34472 PR rtl-optimization/38518
34473 * df.h (df_analyze_loop): Declare.
34474 * df-core.c: Include cfgloop.h.
34475 (df_analyze_1): Split out main part of df_analyze.
34476 (df_analyze): Adjust.
34477 (loop_inverted_post_order_compute): New function.
34478 (loop_post_order_compute): Likewise.
34479 (df_analyze_loop): New function avoiding whole-function
34480 postorder computes.
34481 * loop-invariant.c (find_defs): Use df_analyze_loop.
34482 (find_invariants): Adjust.
34483 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
34485 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
34487 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
34488 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
34490 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
34492 * ipa-ref.c (ipa_remove_stmt_references): Fix references
34493 traversal when removing references.
34495 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
34498 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
34500 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
34502 PR middle-end/56791
34503 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
34504 pushing a reload for an autoinc when we had previously reloaded an
34505 inner part of the address.
34507 2014-01-16 Jakub Jelinek <jakub@redhat.com>
34509 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
34511 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
34512 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
34513 when not giving up or versioning for alias only because of
34515 (vect_analyze_data_ref_dependences): Set to true.
34516 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
34518 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
34519 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
34522 PR middle-end/58344
34523 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
34526 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
34527 operand 0 predicate for gathers, use a new pseudo as subtarget.
34529 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34531 PR middle-end/59609
34532 * lra-constraints.c (process_alt_operands): Add printing debug info.
34533 Check absence of input/output reloads for matched operands too.
34535 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34537 PR rtl-optimization/59835
34538 * ira.c (ira_init_register_move_cost): Increase cost for
34541 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
34543 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
34545 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
34548 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
34549 non-register objects. Use gen_(high/low)part more consistently.
34552 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
34555 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
34556 endian support, remove tests for WORDS_BIG_ENDIAN.
34557 (p8_mfvsrd_3_<mode>): Likewise.
34558 (reload_gpr_from_vsx<mode>): Likewise.
34559 (reload_gpr_from_vsxsf): Likewise.
34560 (p8_mfvsrd_4_disf): Likewise.
34562 2014-01-16 Richard Biener <rguenther@suse.de>
34564 PR rtl-optimization/46590
34565 * lcm.c (compute_antinout_edge): Use postorder iteration.
34566 (compute_laterin): Use inverted postorder iteration.
34568 2014-01-16 Nick Clifton <nickc@redhat.com>
34570 PR middle-end/28865
34571 * varasm.c (output_constant): Return the number of bytes actually
34573 (output_constructor_array_range): Update the field size with the
34574 number of bytes emitted by output_constant.
34575 (output_constructor_regular_field): Likewise. Also do not
34576 complain if the total number of bytes emitted is now greater
34577 than the expected fieldpos.
34578 * output.h (output_constant): Update prototype and descriptive comment.
34580 2014-01-16 Marek Polacek <polacek@redhat.com>
34582 PR middle-end/59827
34583 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
34584 it is error_mark_node.
34586 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
34588 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
34589 VALID_AVX256_REG_OR_OI_MODE.
34591 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
34593 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
34594 current procedure should be profiled.
34596 2014-01-15 Andrew Pinski <apinski@cavium.com>
34598 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
34599 of moving from/to the STACK_REG register class.
34601 2014-01-15 Richard Henderson <rth@redhat.com>
34604 * reginfo.c (global_regs_decl): Globalize.
34605 * rtl.h (global_regs_decl): Declare.
34606 * ira.c (do_reload): Diagnose frame_pointer_needed and it
34607 reserved via global_regs.
34609 2014-01-15 Teresa Johnson <tejohnson@google.com>
34611 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
34613 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
34615 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
34616 and vmulosh rather than call gen_vec_widen_smult_*.
34617 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
34618 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
34619 (vec_widen_smult_even_v16qi): Likewise.
34620 (vec_widen_umult_even_v8hi): Likewise.
34621 (vec_widen_smult_even_v8hi): Likewise.
34622 (vec_widen_umult_odd_v16qi): Likewise.
34623 (vec_widen_smult_odd_v16qi): Likewise.
34624 (vec_widen_umult_odd_v8hi): Likewise.
34625 (vec_widen_smult_odd_v8hi): Likewise.
34626 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
34627 vmuloub rather than call gen_vec_widen_umult_*.
34628 (vec_widen_umult_lo_v16qi): Likewise.
34629 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
34630 vmulosb rather than call gen_vec_widen_smult_*.
34631 (vec_widen_smult_lo_v16qi): Likewise.
34632 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
34633 rather than call gen_vec_widen_umult_*.
34634 (vec_widen_umult_lo_v8hi): Likewise.
34635 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
34636 rather than call gen_vec_widen_smult_*.
34637 (vec_widen_smult_lo_v8hi): Likewise.
34639 2014-01-15 Jeff Law <law@redhat.com>
34641 PR tree-optimization/59747
34642 * ree.c (find_and_remove_re): Properly handle case where a second
34643 eliminated extension requires widening a copy created for elimination
34644 of a prior extension.
34645 (combine_set_extension): Ensure that the number of hard regs needed
34646 for a destination register does not change when we widen it.
34648 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34650 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
34651 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
34652 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
34653 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
34654 (avr-*-rtems*): Likewise.
34655 (bfin*-rtems*): Likewise.
34656 (moxie-*-rtems*): Likewise.
34657 (h8300-*-rtems*): Likewise.
34658 (i[34567]86-*-rtems*): Likewise.
34659 (lm32-*-rtems*): Likewise.
34660 (m32r-*-rtems*): Likewise.
34661 (m68k-*-rtems*): Likewise.
34662 (microblaze*-*-rtems*): Likewise.
34663 (mips*-*-rtems*): Likewise.
34664 (powerpc-*-rtems*): Likewise.
34665 (sh-*-rtems*): Likewise.
34666 (sparc-*-rtems*): Likewise.
34667 (sparc64-*-rtems*): Likewise.
34668 (v850-*-rtems*): Likewise.
34669 (m32c-*-rtems*): Likewise.
34671 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
34673 PR rtl-optimization/59511
34674 * ira.c (ira_init_register_move_cost): Use memory costs for some
34675 cases of register move cost calculations.
34676 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
34677 instead of BB frequency.
34678 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
34679 * lra-assigns.c (find_hard_regno_for): Ditto.
34681 2014-01-15 Richard Biener <rguenther@suse.de>
34683 PR tree-optimization/59822
34684 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
34685 (vectorizable_load): Use it to hoist defs of uses of invariant
34686 loads out of the loop.
34688 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
34689 Kugan Vivekanandarajah <kuganv@linaro.org>
34692 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
34695 2014-01-15 Richard Biener <rguenther@suse.de>
34697 PR rtl-optimization/59802
34698 * lcm.c (compute_available): Use inverted postorder to seed
34699 the initial worklist.
34701 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34704 * config/s390/s390.c (s390_preferred_reload_class): Don't return
34705 ADDR_REGS for invalid symrefs in non-PIC code.
34707 2014-01-15 Jakub Jelinek <jakub@redhat.com>
34710 * builtins.c (determine_block_size): Initialize *probable_max_size
34711 even if len_rtx is CONST_INT.
34713 2014-01-14 Andrew Pinski <apinski@cavium.com>
34715 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
34716 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
34717 (cortexa53_tunings): Likewise.
34718 (aarch64_sched_issue_rate): New function.
34719 (TARGET_SCHED_ISSUE_RATE): Define.
34721 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
34723 * ira-costs.c (find_costs_and_classes): Add missed
34724 ira_init_register_move_cost_if_necessary.
34726 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
34729 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
34731 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
34734 * config/i386/i386.c (type_natural_mode): Add a bool parameter
34735 to indicate if type is used for function return value. Warn ABI
34736 change if the vector mode isn't available for function return value.
34737 (ix86_function_arg_advance): Pass false to type_natural_mode.
34738 (ix86_function_arg): Likewise.
34739 (ix86_gimplify_va_arg): Likewise.
34740 (function_arg_32): Don't warn ABI change.
34741 (ix86_function_value): Pass true to type_natural_mode.
34742 (ix86_return_in_memory): Likewise.
34743 (ix86_struct_value_rtx): Removed.
34744 (TARGET_STRUCT_VALUE_RTX): Likewise.
34746 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
34748 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
34749 converting a conditional jump into a conditional return.
34751 2014-01-14 Richard Biener <rguenther@suse.de>
34753 PR tree-optimization/58921
34754 PR tree-optimization/59006
34755 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
34756 hoisting invariant stmts.
34757 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
34758 invariant loads on the preheader edge if possible.
34760 2014-01-14 Joey Ye <joey.ye@arm.com>
34762 * doc/plugin.texi (Building GCC plugins): Update to C++.
34764 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
34766 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
34767 (_mm_rcp28_round_ss): Ditto.
34768 (_mm_rsqrt28_round_sd): Ditto.
34769 (_mm_rsqrt28_round_ss): Ditto.
34770 (_mm_rcp28_sd): Ditto.
34771 (_mm_rcp28_ss): Ditto.
34772 (_mm_rsqrt28_sd): Ditto.
34773 (_mm_rsqrt28_ss): Ditto.
34774 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
34775 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
34776 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
34777 (IX86_BUILTIN_RCP28SD): Ditto.
34778 (IX86_BUILTIN_RCP28SS): Ditto.
34779 (IX86_BUILTIN_RSQRT28SD): Ditto.
34780 (IX86_BUILTIN_RSQRT28SS): Ditto.
34781 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
34782 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
34783 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
34784 (ix86_expand_special_args_builtin): Expand new FTYPE.
34785 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
34786 (srcp14<mode>): Make insn unary.
34787 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
34788 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
34789 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
34790 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
34791 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
34792 Fix rounding: make it SAE only.
34793 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
34795 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
34797 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
34798 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
34799 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
34800 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
34801 (round_saeonly_mask_scalar_operand4): Ditto.
34802 (round_saeonly_mask_scalar_op3): Ditto.
34803 (round_saeonly_mask_scalar_op4): Ditto.
34805 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34807 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
34808 Implement -maltivec=be for vec_insert and vec_extract.
34810 2014-01-10 DJ Delorie <dj@redhat.com>
34812 * config/msp430/msp430.md (call_internal): Don't allow memory
34813 references with SP as the base register.
34814 (call_value_internal): Likewise.
34815 * config/msp430/constraints.md (Yc): New. For memory references
34816 that don't use SP as a base register.
34818 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
34819 "an integer without a # prefix"
34820 * config/msp430/msp430.md (epilogue_helper): Use it.
34822 2014-01-13 Jakub Jelinek <jakub@redhat.com>
34825 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
34826 AVX512F gather builtins.
34827 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
34828 on gather decls with INTEGER_TYPE masktype.
34829 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
34830 directly into the builtin rather than hoisting it before loop.
34832 PR tree-optimization/59387
34833 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
34834 (scev_const_prop): If folded_casts and type has undefined overflow,
34835 use force_gimple_operand instead of force_gimple_operand_gsi and
34836 for each added stmt if it is assign with
34837 arith_code_with_undefined_signed_overflow, call
34838 rewrite_to_defined_overflow.
34839 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
34840 gimple-fold.h instead.
34841 (arith_code_with_undefined_signed_overflow,
34842 rewrite_to_defined_overflow): Moved to ...
34843 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
34844 rewrite_to_defined_overflow): ... here. No longer static.
34845 Include gimplify-me.h.
34846 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
34847 rewrite_to_defined_overflow): New prototypes.
34849 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34851 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
34853 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
34855 * builtins.c (get_object_alignment_2): Minor tweak.
34856 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
34858 2014-01-13 Christian Bruel <christian.bruel@st.com>
34860 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
34861 optimized non constant lengths.
34863 2014-01-13 Jakub Jelinek <jakub@redhat.com>
34866 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
34867 load as __atomic_load_N if possible.
34869 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
34871 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
34873 (rs6000_expand_builtin): Adjust call.
34875 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
34878 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
34879 * config/rs6000/rs6000.c: Include target-globals.h.
34880 (rs6000_set_current_function): Instead of doing target_reinit
34881 unconditionally, use save_target_globals_default_opts and
34882 restore_target_globals.
34884 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
34886 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
34887 (rs6000_expand_builtin): Handle mffs and mtfsf.
34888 (rs6000_init_builtins): Define mffs and mtfsf.
34889 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
34890 (rs6000_mffs): New pattern.
34891 (rs6000_mtfsf): New pattern.
34893 2014-01-11 Bin Cheng <bin.cheng@arm.com>
34895 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
34896 Start narrowing with START. Apply candidate-use pair
34897 and check overall cost in narrowing.
34898 (iv_ca_prune): Pass new argument.
34900 2014-01-10 Jeff Law <law@redhat.com>
34902 PR middle-end/59743
34903 * ree.c (combine_reaching_defs): Ensure the defining statement
34904 occurs before the extension when optimizing extensions with
34905 different source and destination hard registers.
34907 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
34910 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
34911 vtables into the type inheritance graph.
34913 2014-01-10 Jakub Jelinek <jakub@redhat.com>
34915 PR rtl-optimization/59754
34916 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
34917 modes in the REGNO != REGNO case.
34919 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34921 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
34923 2014-01-10 Jakub Jelinek <jakub@redhat.com>
34925 PR tree-optimization/59745
34926 * tree-predcom.c (tree_predictive_commoning_loop): Call
34927 free_affine_expand_cache if giving up because components is NULL.
34929 * target-globals.c (save_target_globals): Allocate < 4KB structs using
34930 GC in payload of target_globals struct instead of allocating them on
34931 the heap and the larger structs separately using GC.
34932 * target-globals.h (struct target_globals): Make regs, hard_regs,
34933 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
34934 of GTY((skip)) and change type to void *.
34935 (reset_target_globals): Cast loads from those fields to corresponding
34938 2014-01-10 Steve Ellcey <sellcey@mips.com>
34941 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
34942 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
34943 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
34945 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
34948 * aarch64-modes.def (CC_Zmode): New flags mode.
34949 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
34950 represents an equality.
34951 (aarch64_get_condition_code): Handle CC_Zmode.
34952 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
34954 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34956 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
34957 extraction in good case.
34959 2014-01-10 Richard Biener <rguenther@suse.de>
34961 PR tree-optimization/59374
34962 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
34963 checking after SLP discovery. Mark stmts not participating
34964 in any SLP instance properly.
34966 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34968 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
34969 when handling a SET rtx.
34971 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34973 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
34974 (cortex-a57): Likewise.
34975 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
34977 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34979 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
34980 non-iwmmxt builtins.
34982 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
34986 * ipa-devirt.c record_target_from_binfo): Take as argument
34987 stack of binfos and lookup matching one for virtual inheritance.
34988 (possible_polymorphic_call_targets_1): Update.
34990 2014-01-10 Huacai Chen <chenhc@lemote.com>
34992 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
34993 kernel strings for Loongson-2E/2F/3A.
34995 2014-01-10 Jakub Jelinek <jakub@redhat.com>
34997 PR middle-end/59670
34998 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
34999 is_gimple_call before calling gimple_call_internal_p.
35001 2014-01-09 Steve Ellcey <sellcey@mips.com>
35003 * Makefile.in (TREE_FLOW_H): Remove.
35004 (TREE_SSA_H): Add file names from tree-flow.h.
35005 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35006 * tree.h: Remove tree-flow.h reference.
35007 * hash-table.h: Remove tree-flow.h reference.
35008 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35009 reference with tree-ssa-loop.h.
35011 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35013 * doc/invoke.texi: Add -maltivec={be,le} options, and document
35014 default element-order behavior for -maltivec.
35015 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35016 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35017 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35018 when targeting big endian, at least for now.
35019 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35021 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35023 PR middle-end/47735
35024 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35025 var satisfies use_register_for_decl, just take into account type
35026 alignment, rather than decl alignment.
35028 PR tree-optimization/59622
35029 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
35030 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35031 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35032 Don't devirtualize for inplace at all. For targets.length () == 1,
35033 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35035 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35037 * config/i386/i386.md (cpu): Remove the unused btver1.
35039 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35041 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35043 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35046 * tree-core.h (struct target_globals): New forward declaration.
35047 (struct tree_target_option): Add globals field.
35048 * tree.h (TREE_TARGET_GLOBALS): Define.
35049 (prepare_target_option_nodes_for_pch): New prototype.
35050 * target-globals.h (struct target_globals): Define even if
35051 !SWITCHABLE_TARGET.
35052 * tree.c (prepare_target_option_node_for_pch,
35053 prepare_target_option_nodes_for_pch): New functions.
35054 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35055 * config/i386/i386.c: Include target-globals.h.
35056 (ix86_set_current_function): Instead of doing target_reinit
35057 unconditionally, use save_target_globals_default_opts and
35058 restore_target_globals.
35060 2014-01-09 Richard Biener <rguenther@suse.de>
35062 PR tree-optimization/59715
35063 * tree-cfg.h (split_critical_edges): Declare.
35064 * tree-cfg.c (split_critical_edges): Export.
35065 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
35067 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
35069 * cfgexpand.c (expand_stack_vars): Optionally disable
35070 asan stack protection.
35071 (expand_used_vars): Likewise.
35072 (partition_stack_vars): Likewise.
35073 * asan.c (asan_emit_stack_protection): Optionally disable
35074 after return stack usage.
35075 (instrument_derefs): Optionally disable memory access instrumentation.
35076 (instrument_builtin_call): Likewise.
35077 (instrument_strlen_call): Likewise.
35078 (asan_protect_global): Optionally disable global variables protection.
35079 * doc/invoke.texi: Added doc for new options.
35080 * params.def: Added new options.
35081 * params.h: Likewise.
35083 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35085 PR rtl-optimization/59724
35086 * ifcvt.c (cond_exec_process_if_block): Don't call
35087 flow_find_head_matching_sequence with 0 longest_match.
35088 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
35089 non-active insns if !stop_after.
35090 (try_head_merge_bb): Revert 2014-01-07 changes.
35092 2014-01-08 Jeff Law <law@redhat.com>
35094 * ree.c (get_sub_rtx): New function, extracted from...
35095 (merge_def_and_ext): Here.
35096 (combine_reaching_defs): Use get_sub_rtx.
35098 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
35100 * cgraph.h (varpool_variable_node): Do not choke on null node.
35102 2014-01-08 Catherine Moore <clm@codesourcery.com>
35104 * config/mips/mips.md (simple_return): Attempt to use JRC
35106 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
35108 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35110 PR rtl-optimization/59137
35111 * reorg.c (steal_delay_list_from_target): Call update_block for
35113 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
35115 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35117 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
35118 two duplicate entries.
35120 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35123 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
35125 * config/mips/mips.c (mips_truncated_op_cost): New function.
35126 (mips_rtx_costs): Adjust test for BADDU.
35127 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
35129 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
35131 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
35132 (*baddu_si): ...this new pattern.
35134 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35137 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
35139 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
35141 PR middle-end/57748
35142 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
35144 (expand_expr, expand_normal): Adjust.
35145 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
35146 inner_reference_p. Use inner_reference_p to expand inner references.
35147 (store_expr): Adjust.
35148 * cfgexpand.c (expand_call_stmt): Adjust.
35150 2014-01-08 Rong Xu <xur@google.com>
35152 * gcov-io.c (gcov_var): Move from gcov-io.h.
35153 (gcov_position): Ditto.
35154 (gcov_is_error): Ditto.
35155 (gcov_rewrite): Ditto.
35156 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
35157 only part to libgcc/libgcov.h.
35159 2014-01-08 Marek Polacek <polacek@redhat.com>
35161 PR middle-end/59669
35162 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
35164 2014-01-08 Marek Polacek <polacek@redhat.com>
35167 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
35169 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35171 PR rtl-optimization/59649
35172 * stor-layout.c (get_mode_bounds): For BImode return
35173 0 and STORE_FLAG_VALUE.
35175 2014-01-08 Richard Biener <rguenther@suse.de>
35177 PR middle-end/59630
35178 * gimple.h (is_gimple_builtin_call): Remove.
35179 (gimple_builtin_call_types_compatible_p): New.
35180 (gimple_call_builtin_p): New overload.
35181 * gimple.c (is_gimple_builtin_call): Remove.
35182 (validate_call): Rename to ...
35183 (gimple_builtin_call_types_compatible_p): ... this and export. Also
35184 check return types.
35185 (validate_type): New static function.
35186 (gimple_call_builtin_p): New overload and adjust.
35187 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
35188 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
35189 (gimple_fold_stmt_to_constant_1): Likewise.
35190 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
35192 2014-01-08 Richard Biener <rguenther@suse.de>
35194 PR middle-end/59471
35195 * gimplify.c (gimplify_expr): Gimplify register-register type
35196 VIEW_CONVERT_EXPRs to separate stmts.
35198 2014-01-07 Jeff Law <law@redhat.com>
35200 PR middle-end/53623
35201 * ree.c (combine_set_extension): Handle case where source
35202 and destination registers in an extension insn are different.
35203 (combine_reaching_defs): Allow source and destination registers
35204 in extension to be different under limited circumstances.
35205 (add_removable_extension): Remove restriction that the
35206 source and destination registers in the extension are the same.
35207 (find_and_remove_re): Emit a copy from the extension's
35208 destination to its source after the defining insn if
35209 the source and destination registers are different.
35211 PR middle-end/59285
35212 * ifcvt.c (merge_if_block): If we are merging a block with more than
35213 one successor with a block with no successors, remove any BARRIER
35214 after the second block.
35216 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
35218 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
35220 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
35223 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
35224 for 14-bit register offsets when INT14_OK_STRICT is false.
35226 2014-01-07 Roland Stigge <stigge@antcom.de>
35227 Michael Meissner <meissner@linux.vnet.ibm.com>
35230 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
35231 Only check TFmode for SPE constants. Don't check TImode or TDmode.
35233 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
35235 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
35238 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
35240 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
35241 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
35242 rtx is const0_rtx or not.
35244 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
35247 * target-globals.c (save_target_globals): Remove this_fn_optab
35249 * toplev.c: Include optabs.h.
35250 (target_reinit): Temporarily restore the global options if another
35251 set of options are in force.
35253 2014-01-07 Jakub Jelinek <jakub@redhat.com>
35255 PR rtl-optimization/58668
35256 * cfgcleanup.c (flow_find_cross_jump): Don't count
35257 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
35258 to determine what is counted.
35259 (flow_find_head_matching_sequence): Use active_insn_p to determine
35261 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
35263 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
35264 determine what is counted.
35266 PR tree-optimization/59643
35267 * tree-predcom.c (split_data_refs_to_components): If one dr is
35268 read and one write, determine_offset fails and the write isn't
35269 in the bad component, just put the read into the bad component.
35271 2014-01-07 Mike Stump <mikestump@comcast.net>
35272 Jakub Jelinek <jakub@redhat.com>
35275 * tree-core.h (struct tree_optimization_option): Change optabs
35276 type from unsigned char * to void *.
35277 * optabs.c (init_tree_optimization_optabs): Adjust
35278 TREE_OPTIMIZATION_OPTABS initialization.
35280 2014-01-06 Jakub Jelinek <jakub@redhat.com>
35283 * config/i386/i386.h (struct machine_function): Add
35284 no_drap_save_restore field.
35285 * config/i386/i386.c (ix86_save_reg): Use
35286 !cfun->machine->no_drap_save_restore instead of
35287 crtl->stack_realign_needed.
35288 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
35289 this function clears frame_pointer_needed. Set
35290 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
35291 and DRAP reg is needed.
35293 2014-01-06 Marek Polacek <polacek@redhat.com>
35296 * doc/implement-c.texi: Mention that other integer types are
35297 permitted as bit-field types in strictly conforming mode.
35299 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
35301 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
35302 is newly allocated.
35304 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
35306 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
35308 2014-01-06 Martin Jambor <mjambor@suse.cz>
35311 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35313 * ipa-prop.c (ipa_print_node_params): Fix indentation.
35315 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
35319 * var-tracking.c (add_stores): Preserve the value of the source even if
35320 we don't record the store.
35322 2014-01-06 Terry Guo <terry.guo@arm.com>
35324 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35326 2014-01-05 Iain Sandoe <iain@codesourcery.com>
35329 * config/darwin.c (darwin_function_section): Adjust return values to
35330 correspond to optimisation changes made in r206070.
35332 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
35334 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35335 from prefetch_block tune setting.
35336 (nocona_cost): Correct size of prefetch block to 64.
35338 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
35340 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35341 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35342 used to save the static chain register in the computation of the offset
35343 from which the FP registers need to be restored.
35345 2014-01-04 Jakub Jelinek <jakub@redhat.com>
35347 PR tree-optimization/59519
35348 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35349 ICE if get_current_def (current_new_name) is already non-NULL, as long
35350 as it is a phi result of some other phi in *new_exit_bb that has
35353 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35354 or vmovdqu* for misaligned_operand.
35355 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35356 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35357 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35358 aligned_mem for AVX512F masked aligned load and store builtins and for
35359 non-temporal moves.
35361 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
35363 PR tree-optimization/59651
35364 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35365 Address range for negative step should be added by TYPE_SIZE_UNIT.
35367 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
35369 * config/m68k/m68k.c (handle_move_double): Handle pushes with
35370 overlapping registers also for registers other than the stack pointer.
35372 2014-01-03 Marek Polacek <polacek@redhat.com>
35375 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35378 2014-01-03 Jakub Jelinek <jakub@redhat.com>
35381 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35384 * config/i386/i386.md (MODE_SIZE): New mode attribute.
35385 (push splitter): Use <P:MODE_SIZE> instead of
35386 GET_MODE_SIZE (<P:MODE>mode).
35387 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35388 (mov -1, reg peephole2): Likewise.
35389 * config/i386/sse.md (*mov<mode>_internal,
35390 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35391 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35392 *<code><mode>3, *andnot<mode>3<mask_name>,
35393 <mask_codefor><code><mode>3<mask_name>): Likewise.
35394 * config/i386/subst.md (mask_mode512bit_condition,
35395 sd_mask_mode512bit_condition): Likewise.
35397 2014-01-02 Xinliang David Li <davidxl@google.com>
35399 PR tree-optimization/59303
35400 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35401 (dump_predicates): Better output format.
35402 (pred_equal_p): New function.
35403 (is_neq_relop_p): Ditto.
35404 (is_neq_zero_form_p): Ditto.
35405 (pred_expr_equal_p): Ditto.
35406 (pred_neg_p): Ditto.
35407 (simplify_pred): Ditto.
35408 (simplify_preds_2): Ditto.
35409 (simplify_preds_3): Ditto.
35410 (simplify_preds_4): Ditto.
35411 (simplify_preds): Ditto.
35412 (push_pred): Ditto.
35413 (push_to_worklist): Ditto.
35414 (get_pred_info_from_cmp): Ditto.
35415 (is_degenerated_phi): Ditto.
35416 (normalize_one_pred_1): Ditto.
35417 (normalize_one_pred): Ditto.
35418 (normalize_one_pred_chain): Ditto.
35419 (normalize_preds): Ditto.
35420 (normalize_cond_1): Remove function.
35421 (normalize_cond): Ditto.
35422 (is_gcond_subset_of): Ditto.
35423 (is_subset_of_any): Ditto.
35424 (is_or_set_subset_of): Ditto.
35425 (is_and_set_subset_of): Ditto.
35426 (is_norm_cond_subset_of): Ditto.
35427 (pred_chain_length_cmp): Ditto.
35428 (convert_control_dep_chain_into_preds): Type change.
35429 (find_predicates): Ditto.
35430 (find_def_preds): Ditto.
35431 (destroy_predicates_vecs): Ditto.
35432 (find_matching_predicates_in_rest_chains): Ditto.
35433 (use_pred_not_overlap_with_undef_path_pred): Ditto.
35434 (is_pred_expr_subset): Ditto.
35435 (is_pred_chain_subset_of): Ditto.
35436 (is_included_in): Ditto.
35437 (is_superset_of): Ditto.
35439 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35441 Update copyright years.
35443 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35445 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35446 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35447 config/arc/arc.md, config/arc/arc.opt,
35448 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35449 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35450 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35451 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35452 config/linux-protos.h, config/linux.c, config/winnt-c.c,
35453 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35454 vtable-verify.c, vtable-verify.h: Use the standard form for the
35457 2014-01-02 Tobias Burnus <burnus@net-b.de>
35459 * gcc.c (process_command): Update copyright notice dates.
35460 * gcov-dump.c: Ditto.
35462 * doc/cpp.texi: Bump @copying's copyright year.
35463 * doc/cppinternals.texi: Ditto.
35464 * doc/gcc.texi: Ditto.
35465 * doc/gccint.texi: Ditto.
35466 * doc/gcov.texi: Ditto.
35467 * doc/install.texi: Ditto.
35468 * doc/invoke.texi: Ditto.
35470 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35472 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
35474 2014-01-01 Jakub Jelinek <jakub@redhat.com>
35476 * config/i386/sse.md (*mov<mode>_internal): Guard
35477 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
35479 PR rtl-optimization/59647
35480 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
35481 new_rtx into UNSIGNED_FLOAT rtxes.
35483 Copyright (C) 2014 Free Software Foundation, Inc.
35485 Copying and distribution of this file, with or without modification,
35486 are permitted in any medium without royalty provided the copyright
35487 notice and this notice are preserved.